hadoop_1.0.1.xml 3.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727
  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 Mar 12 19:03:15 UTC 2012 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.0.1"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /grid/0/dev/mfoley/hadoop-1.0/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/grid/0/dev/mfoley/hadoop-1.0/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /grid/0/dev/mfoley/hadoop-1.0/build/classes:/grid/0/dev/mfoley/hadoop-1.0/lib/hsqldb-1.8.0.10.jar:/grid/0/dev/mfoley/hadoop-1.0/lib/jsp-2.1/jsp-2.1.jar:/grid/0/dev/mfoley/hadoop-1.0/lib/jsp-2.1/jsp-api-2.1.jar:/grid/0/dev/mfoley/hadoop-1.0/lib/kfs-0.2.2.jar:/homes/hortonfo/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/homes/hortonfo/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/homes/hortonfo/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/homes/hortonfo/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/homes/hortonfo/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/homes/hortonfo/.ivy2/cache/commons-daemon/commons-daemon/jars/commons-daemon-1.0.1.jar:/homes/hortonfo/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/homes/hortonfo/.ivy2/cache/commons-net/commons-net/jars/commons-net-1.4.1.jar:/homes/hortonfo/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/servlet-api/jars/servlet-api-2.5-20081211.jar:/homes/hortonfo/.ivy2/cache/asm/asm/jars/asm-3.2.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-core/bundles/jersey-core-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-json/bundles/jersey-json-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-server/bundles/jersey-server-1.8.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/homes/hortonfo/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/homes/hortonfo/.ivy2/cache/commons-configuration/commons-configuration/jars/commons-configuration-1.6.jar:/homes/hortonfo/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar:/homes/hortonfo/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.4.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/homes/hortonfo/.ivy2/cache/commons-digester/commons-digester/jars/commons-digester-1.8.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.7.0.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils-core/jars/commons-beanutils-core-1.8.0.jar:/homes/hortonfo/.ivy2/cache/org.apache.commons/commons-math/jars/commons-math-2.1.jar:/homes/hortonfo/.ivy2/cache/junit/junit/jars/junit-4.5.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.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.5.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.5.jar:/homes/hortonfo/.ivy2/cache/org.vafer/jdeb/maven-plugins/jdeb-0.8.jar:/grid/0/dev/mfoley/hadoop-1.0/conf:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/homes/hortonfo/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/homes/hortonfo/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-launcher.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/xml-apis.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-antlr.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-junit.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/xercesImpl.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-javamail.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jmf.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-bcel.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-commons-logging.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jai.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-swing.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jsch.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-netrexx.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-testutil.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-commons-net.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-oro.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-resolver.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-weblogic.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-trax.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-starteam.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-nodeps.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-log4j.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-stylebook.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jdepend.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-bsf.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-regexp.jar:/grid/0/dev/acm/tools/jdk1.6.0_26/lib/tools.jar -sourcepath /grid/0/dev/mfoley/hadoop-1.0/src/core:/grid/0/dev/mfoley/hadoop-1.0/src/mapred:/grid/0/dev/mfoley/hadoop-1.0/src/tools -apidir /grid/0/dev/mfoley/hadoop-1.0/lib/jdiff -apiname hadoop 1.0.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="IPC_SERVER_RPC_READ_THREADS_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="IPC_SERVER_RPC_READ_THREADS_DEFAULT" type="int"
  1635. transient="false" volatile="false"
  1636. static="true" final="true" visibility="public"
  1637. deprecated="not deprecated">
  1638. </field>
  1639. <doc>
  1640. <![CDATA[This class contains constants for configuration keys used
  1641. in the common code.]]>
  1642. </doc>
  1643. </class>
  1644. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1645. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1646. <class name="ContentSummary" extends="java.lang.Object"
  1647. abstract="false"
  1648. static="false" final="false" visibility="public"
  1649. deprecated="not deprecated">
  1650. <implements name="org.apache.hadoop.io.Writable"/>
  1651. <constructor name="ContentSummary"
  1652. static="false" final="false" visibility="public"
  1653. deprecated="not deprecated">
  1654. <doc>
  1655. <![CDATA[Constructor]]>
  1656. </doc>
  1657. </constructor>
  1658. <constructor name="ContentSummary" type="long, long, long"
  1659. static="false" final="false" visibility="public"
  1660. deprecated="not deprecated">
  1661. <doc>
  1662. <![CDATA[Constructor]]>
  1663. </doc>
  1664. </constructor>
  1665. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1666. static="false" final="false" visibility="public"
  1667. deprecated="not deprecated">
  1668. <doc>
  1669. <![CDATA[Constructor]]>
  1670. </doc>
  1671. </constructor>
  1672. <method name="getLength" return="long"
  1673. abstract="false" native="false" synchronized="false"
  1674. static="false" final="false" visibility="public"
  1675. deprecated="not deprecated">
  1676. <doc>
  1677. <![CDATA[@return the length]]>
  1678. </doc>
  1679. </method>
  1680. <method name="getDirectoryCount" return="long"
  1681. abstract="false" native="false" synchronized="false"
  1682. static="false" final="false" visibility="public"
  1683. deprecated="not deprecated">
  1684. <doc>
  1685. <![CDATA[@return the directory count]]>
  1686. </doc>
  1687. </method>
  1688. <method name="getFileCount" return="long"
  1689. abstract="false" native="false" synchronized="false"
  1690. static="false" final="false" visibility="public"
  1691. deprecated="not deprecated">
  1692. <doc>
  1693. <![CDATA[@return the file count]]>
  1694. </doc>
  1695. </method>
  1696. <method name="getQuota" return="long"
  1697. abstract="false" native="false" synchronized="false"
  1698. static="false" final="false" visibility="public"
  1699. deprecated="not deprecated">
  1700. <doc>
  1701. <![CDATA[Return the directory quota]]>
  1702. </doc>
  1703. </method>
  1704. <method name="getSpaceConsumed" return="long"
  1705. abstract="false" native="false" synchronized="false"
  1706. static="false" final="false" visibility="public"
  1707. deprecated="not deprecated">
  1708. <doc>
  1709. <![CDATA[Retuns (disk) space consumed]]>
  1710. </doc>
  1711. </method>
  1712. <method name="getSpaceQuota" return="long"
  1713. abstract="false" native="false" synchronized="false"
  1714. static="false" final="false" visibility="public"
  1715. deprecated="not deprecated">
  1716. <doc>
  1717. <![CDATA[Returns (disk) space quota]]>
  1718. </doc>
  1719. </method>
  1720. <method name="write"
  1721. abstract="false" native="false" synchronized="false"
  1722. static="false" final="false" visibility="public"
  1723. deprecated="not deprecated">
  1724. <param name="out" type="java.io.DataOutput"/>
  1725. <exception name="IOException" type="java.io.IOException"/>
  1726. <doc>
  1727. <![CDATA[{@inheritDoc}]]>
  1728. </doc>
  1729. </method>
  1730. <method name="readFields"
  1731. abstract="false" native="false" synchronized="false"
  1732. static="false" final="false" visibility="public"
  1733. deprecated="not deprecated">
  1734. <param name="in" type="java.io.DataInput"/>
  1735. <exception name="IOException" type="java.io.IOException"/>
  1736. <doc>
  1737. <![CDATA[{@inheritDoc}]]>
  1738. </doc>
  1739. </method>
  1740. <method name="getHeader" return="java.lang.String"
  1741. abstract="false" native="false" synchronized="false"
  1742. static="true" final="false" visibility="public"
  1743. deprecated="not deprecated">
  1744. <param name="qOption" type="boolean"/>
  1745. <doc>
  1746. <![CDATA[Return the header of the output.
  1747. if qOption is false, output directory count, file count, and content size;
  1748. if qOption is true, output quota and remaining quota as well.
  1749. @param qOption a flag indicating if quota needs to be printed or not
  1750. @return the header of the output]]>
  1751. </doc>
  1752. </method>
  1753. <method name="toString" return="java.lang.String"
  1754. abstract="false" native="false" synchronized="false"
  1755. static="false" final="false" visibility="public"
  1756. deprecated="not deprecated">
  1757. <doc>
  1758. <![CDATA[{@inheritDoc}]]>
  1759. </doc>
  1760. </method>
  1761. <method name="toString" return="java.lang.String"
  1762. abstract="false" native="false" synchronized="false"
  1763. static="false" final="false" visibility="public"
  1764. deprecated="not deprecated">
  1765. <param name="qOption" type="boolean"/>
  1766. <doc>
  1767. <![CDATA[Return the string representation of the object in the output format.
  1768. if qOption is false, output directory count, file count, and content size;
  1769. if qOption is true, output quota and remaining quota as well.
  1770. @param qOption a flag indicating if quota needs to be printed or not
  1771. @return the string representation of the object]]>
  1772. </doc>
  1773. </method>
  1774. <doc>
  1775. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1776. </doc>
  1777. </class>
  1778. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1779. <!-- start class org.apache.hadoop.fs.DF -->
  1780. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1781. abstract="false"
  1782. static="false" final="false" visibility="public"
  1783. deprecated="not deprecated">
  1784. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1785. static="false" final="false" visibility="public"
  1786. deprecated="not deprecated">
  1787. <exception name="IOException" type="java.io.IOException"/>
  1788. </constructor>
  1789. <constructor name="DF" type="java.io.File, long"
  1790. static="false" final="false" visibility="public"
  1791. deprecated="not deprecated">
  1792. <exception name="IOException" type="java.io.IOException"/>
  1793. </constructor>
  1794. <method name="getDirPath" return="java.lang.String"
  1795. abstract="false" native="false" synchronized="false"
  1796. static="false" final="false" visibility="public"
  1797. deprecated="not deprecated">
  1798. <doc>
  1799. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1800. </doc>
  1801. </method>
  1802. <method name="getFilesystem" return="java.lang.String"
  1803. abstract="false" native="false" synchronized="false"
  1804. static="false" final="false" visibility="public"
  1805. deprecated="not deprecated">
  1806. <exception name="IOException" type="java.io.IOException"/>
  1807. <doc>
  1808. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1809. </doc>
  1810. </method>
  1811. <method name="getCapacity" return="long"
  1812. abstract="false" native="false" synchronized="false"
  1813. static="false" final="false" visibility="public"
  1814. deprecated="not deprecated">
  1815. <doc>
  1816. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1817. </doc>
  1818. </method>
  1819. <method name="getUsed" return="long"
  1820. abstract="false" native="false" synchronized="false"
  1821. static="false" final="false" visibility="public"
  1822. deprecated="not deprecated">
  1823. <doc>
  1824. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1825. </doc>
  1826. </method>
  1827. <method name="getAvailable" return="long"
  1828. abstract="false" native="false" synchronized="false"
  1829. static="false" final="false" visibility="public"
  1830. deprecated="not deprecated">
  1831. <doc>
  1832. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1833. </doc>
  1834. </method>
  1835. <method name="getPercentUsed" return="int"
  1836. abstract="false" native="false" synchronized="false"
  1837. static="false" final="false" visibility="public"
  1838. deprecated="not deprecated">
  1839. <doc>
  1840. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1841. </doc>
  1842. </method>
  1843. <method name="getMount" return="java.lang.String"
  1844. abstract="false" native="false" synchronized="false"
  1845. static="false" final="false" visibility="public"
  1846. deprecated="not deprecated">
  1847. <exception name="IOException" type="java.io.IOException"/>
  1848. <doc>
  1849. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1850. </doc>
  1851. </method>
  1852. <method name="toString" return="java.lang.String"
  1853. abstract="false" native="false" synchronized="false"
  1854. static="false" final="false" visibility="public"
  1855. deprecated="not deprecated">
  1856. </method>
  1857. <method name="getExecString" return="java.lang.String[]"
  1858. abstract="false" native="false" synchronized="false"
  1859. static="false" final="false" visibility="protected"
  1860. deprecated="not deprecated">
  1861. </method>
  1862. <method name="parseExecResult"
  1863. abstract="false" native="false" synchronized="false"
  1864. static="false" final="false" visibility="protected"
  1865. deprecated="not deprecated">
  1866. <param name="lines" type="java.io.BufferedReader"/>
  1867. <exception name="IOException" type="java.io.IOException"/>
  1868. </method>
  1869. <method name="main"
  1870. abstract="false" native="false" synchronized="false"
  1871. static="true" final="false" visibility="public"
  1872. deprecated="not deprecated">
  1873. <param name="args" type="java.lang.String[]"/>
  1874. <exception name="Exception" type="java.lang.Exception"/>
  1875. </method>
  1876. <field name="DF_INTERVAL_DEFAULT" type="long"
  1877. transient="false" volatile="false"
  1878. static="true" final="true" visibility="public"
  1879. deprecated="not deprecated">
  1880. <doc>
  1881. <![CDATA[Default DF refresh interval.]]>
  1882. </doc>
  1883. </field>
  1884. <doc>
  1885. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  1886. mount points, and java.io.File for space utilization. Tested on Linux,
  1887. FreeBSD, Cygwin.]]>
  1888. </doc>
  1889. </class>
  1890. <!-- end class org.apache.hadoop.fs.DF -->
  1891. <!-- start class org.apache.hadoop.fs.DU -->
  1892. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1893. abstract="false"
  1894. static="false" final="false" visibility="public"
  1895. deprecated="not deprecated">
  1896. <constructor name="DU" type="java.io.File, long"
  1897. static="false" final="false" visibility="public"
  1898. deprecated="not deprecated">
  1899. <exception name="IOException" type="java.io.IOException"/>
  1900. <doc>
  1901. <![CDATA[Keeps track of disk usage.
  1902. @param path the path to check disk usage in
  1903. @param interval refresh the disk usage at this interval
  1904. @throws IOException if we fail to refresh the disk usage]]>
  1905. </doc>
  1906. </constructor>
  1907. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1908. static="false" final="false" visibility="public"
  1909. deprecated="not deprecated">
  1910. <exception name="IOException" type="java.io.IOException"/>
  1911. <doc>
  1912. <![CDATA[Keeps track of disk usage.
  1913. @param path the path to check disk usage in
  1914. @param conf configuration object
  1915. @throws IOException if we fail to refresh the disk usage]]>
  1916. </doc>
  1917. </constructor>
  1918. <method name="decDfsUsed"
  1919. abstract="false" native="false" synchronized="false"
  1920. static="false" final="false" visibility="public"
  1921. deprecated="not deprecated">
  1922. <param name="value" type="long"/>
  1923. <doc>
  1924. <![CDATA[Decrease how much disk space we use.
  1925. @param value decrease by this value]]>
  1926. </doc>
  1927. </method>
  1928. <method name="incDfsUsed"
  1929. abstract="false" native="false" synchronized="false"
  1930. static="false" final="false" visibility="public"
  1931. deprecated="not deprecated">
  1932. <param name="value" type="long"/>
  1933. <doc>
  1934. <![CDATA[Increase how much disk space we use.
  1935. @param value increase by this value]]>
  1936. </doc>
  1937. </method>
  1938. <method name="getUsed" return="long"
  1939. abstract="false" native="false" synchronized="false"
  1940. static="false" final="false" visibility="public"
  1941. deprecated="not deprecated">
  1942. <exception name="IOException" type="java.io.IOException"/>
  1943. <doc>
  1944. <![CDATA[@return disk space used
  1945. @throws IOException if the shell command fails]]>
  1946. </doc>
  1947. </method>
  1948. <method name="getDirPath" return="java.lang.String"
  1949. abstract="false" native="false" synchronized="false"
  1950. static="false" final="false" visibility="public"
  1951. deprecated="not deprecated">
  1952. <doc>
  1953. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  1954. </doc>
  1955. </method>
  1956. <method name="start"
  1957. abstract="false" native="false" synchronized="false"
  1958. static="false" final="false" visibility="public"
  1959. deprecated="not deprecated">
  1960. <doc>
  1961. <![CDATA[Start the disk usage checking thread.]]>
  1962. </doc>
  1963. </method>
  1964. <method name="shutdown"
  1965. abstract="false" native="false" synchronized="false"
  1966. static="false" final="false" visibility="public"
  1967. deprecated="not deprecated">
  1968. <doc>
  1969. <![CDATA[Shut down the refreshing thread.]]>
  1970. </doc>
  1971. </method>
  1972. <method name="toString" return="java.lang.String"
  1973. abstract="false" native="false" synchronized="false"
  1974. static="false" final="false" visibility="public"
  1975. deprecated="not deprecated">
  1976. </method>
  1977. <method name="getExecString" return="java.lang.String[]"
  1978. abstract="false" native="false" synchronized="false"
  1979. static="false" final="false" visibility="protected"
  1980. deprecated="not deprecated">
  1981. </method>
  1982. <method name="parseExecResult"
  1983. abstract="false" native="false" synchronized="false"
  1984. static="false" final="false" visibility="protected"
  1985. deprecated="not deprecated">
  1986. <param name="lines" type="java.io.BufferedReader"/>
  1987. <exception name="IOException" type="java.io.IOException"/>
  1988. </method>
  1989. <method name="main"
  1990. abstract="false" native="false" synchronized="false"
  1991. static="true" final="false" visibility="public"
  1992. deprecated="not deprecated">
  1993. <param name="args" type="java.lang.String[]"/>
  1994. <exception name="Exception" type="java.lang.Exception"/>
  1995. </method>
  1996. <doc>
  1997. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  1998. </doc>
  1999. </class>
  2000. <!-- end class org.apache.hadoop.fs.DU -->
  2001. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2002. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2003. abstract="false"
  2004. static="false" final="false" visibility="public"
  2005. deprecated="not deprecated">
  2006. <constructor name="FileAlreadyExistsException"
  2007. static="false" final="false" visibility="public"
  2008. deprecated="not deprecated">
  2009. </constructor>
  2010. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2011. static="false" final="false" visibility="public"
  2012. deprecated="not deprecated">
  2013. </constructor>
  2014. <doc>
  2015. <![CDATA[Used when target file already exists for any operation and
  2016. is not configured to be overwritten.]]>
  2017. </doc>
  2018. </class>
  2019. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2020. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2021. <class name="FileChecksum" extends="java.lang.Object"
  2022. abstract="true"
  2023. static="false" final="false" visibility="public"
  2024. deprecated="not deprecated">
  2025. <implements name="org.apache.hadoop.io.Writable"/>
  2026. <constructor name="FileChecksum"
  2027. static="false" final="false" visibility="public"
  2028. deprecated="not deprecated">
  2029. </constructor>
  2030. <method name="getAlgorithmName" return="java.lang.String"
  2031. abstract="true" native="false" synchronized="false"
  2032. static="false" final="false" visibility="public"
  2033. deprecated="not deprecated">
  2034. <doc>
  2035. <![CDATA[The checksum algorithm name]]>
  2036. </doc>
  2037. </method>
  2038. <method name="getLength" return="int"
  2039. abstract="true" native="false" synchronized="false"
  2040. static="false" final="false" visibility="public"
  2041. deprecated="not deprecated">
  2042. <doc>
  2043. <![CDATA[The length of the checksum in bytes]]>
  2044. </doc>
  2045. </method>
  2046. <method name="getBytes" return="byte[]"
  2047. abstract="true" native="false" synchronized="false"
  2048. static="false" final="false" visibility="public"
  2049. deprecated="not deprecated">
  2050. <doc>
  2051. <![CDATA[The value of the checksum in bytes]]>
  2052. </doc>
  2053. </method>
  2054. <method name="equals" return="boolean"
  2055. abstract="false" native="false" synchronized="false"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. <param name="other" type="java.lang.Object"/>
  2059. <doc>
  2060. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2061. </doc>
  2062. </method>
  2063. <method name="hashCode" return="int"
  2064. abstract="false" native="false" synchronized="false"
  2065. static="false" final="false" visibility="public"
  2066. deprecated="not deprecated">
  2067. <doc>
  2068. <![CDATA[{@inheritDoc}]]>
  2069. </doc>
  2070. </method>
  2071. <doc>
  2072. <![CDATA[An abstract class representing file checksums for files.]]>
  2073. </doc>
  2074. </class>
  2075. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2076. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2077. <class name="FileStatus" extends="java.lang.Object"
  2078. abstract="false"
  2079. static="false" final="false" visibility="public"
  2080. deprecated="not deprecated">
  2081. <implements name="org.apache.hadoop.io.Writable"/>
  2082. <implements name="java.lang.Comparable"/>
  2083. <constructor name="FileStatus"
  2084. static="false" final="false" visibility="public"
  2085. deprecated="not deprecated">
  2086. </constructor>
  2087. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2088. static="false" final="false" visibility="public"
  2089. deprecated="not deprecated">
  2090. </constructor>
  2091. <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"
  2092. static="false" final="false" visibility="public"
  2093. deprecated="not deprecated">
  2094. </constructor>
  2095. <method name="getLen" return="long"
  2096. abstract="false" native="false" synchronized="false"
  2097. static="false" final="false" visibility="public"
  2098. deprecated="not deprecated">
  2099. </method>
  2100. <method name="isDir" return="boolean"
  2101. abstract="false" native="false" synchronized="false"
  2102. static="false" final="false" visibility="public"
  2103. deprecated="not deprecated">
  2104. <doc>
  2105. <![CDATA[Is this a directory?
  2106. @return true if this is a directory]]>
  2107. </doc>
  2108. </method>
  2109. <method name="getBlockSize" return="long"
  2110. abstract="false" native="false" synchronized="false"
  2111. static="false" final="false" visibility="public"
  2112. deprecated="not deprecated">
  2113. <doc>
  2114. <![CDATA[Get the block size of the file.
  2115. @return the number of bytes]]>
  2116. </doc>
  2117. </method>
  2118. <method name="getReplication" return="short"
  2119. abstract="false" native="false" synchronized="false"
  2120. static="false" final="false" visibility="public"
  2121. deprecated="not deprecated">
  2122. <doc>
  2123. <![CDATA[Get the replication factor of a file.
  2124. @return the replication factor of a file.]]>
  2125. </doc>
  2126. </method>
  2127. <method name="getModificationTime" return="long"
  2128. abstract="false" native="false" synchronized="false"
  2129. static="false" final="false" visibility="public"
  2130. deprecated="not deprecated">
  2131. <doc>
  2132. <![CDATA[Get the modification time of the file.
  2133. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2134. </doc>
  2135. </method>
  2136. <method name="getAccessTime" return="long"
  2137. abstract="false" native="false" synchronized="false"
  2138. static="false" final="false" visibility="public"
  2139. deprecated="not deprecated">
  2140. <doc>
  2141. <![CDATA[Get the access time of the file.
  2142. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2143. </doc>
  2144. </method>
  2145. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2146. abstract="false" native="false" synchronized="false"
  2147. static="false" final="false" visibility="public"
  2148. deprecated="not deprecated">
  2149. <doc>
  2150. <![CDATA[Get FsPermission associated with the file.
  2151. @return permssion. If a filesystem does not have a notion of permissions
  2152. or if permissions could not be determined, then default
  2153. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2154. </doc>
  2155. </method>
  2156. <method name="getOwner" return="java.lang.String"
  2157. abstract="false" native="false" synchronized="false"
  2158. static="false" final="false" visibility="public"
  2159. deprecated="not deprecated">
  2160. <doc>
  2161. <![CDATA[Get the owner of the file.
  2162. @return owner of the file. The string could be empty if there is no
  2163. notion of owner of a file in a filesystem or if it could not
  2164. be determined (rare).]]>
  2165. </doc>
  2166. </method>
  2167. <method name="getGroup" return="java.lang.String"
  2168. abstract="false" native="false" synchronized="false"
  2169. static="false" final="false" visibility="public"
  2170. deprecated="not deprecated">
  2171. <doc>
  2172. <![CDATA[Get the group associated with the file.
  2173. @return group for the file. The string could be empty if there is no
  2174. notion of group of a file in a filesystem or if it could not
  2175. be determined (rare).]]>
  2176. </doc>
  2177. </method>
  2178. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2179. abstract="false" native="false" synchronized="false"
  2180. static="false" final="false" visibility="public"
  2181. deprecated="not deprecated">
  2182. </method>
  2183. <method name="setPermission"
  2184. abstract="false" native="false" synchronized="false"
  2185. static="false" final="false" visibility="protected"
  2186. deprecated="not deprecated">
  2187. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2188. <doc>
  2189. <![CDATA[Sets permission.
  2190. @param permission if permission is null, default value is set]]>
  2191. </doc>
  2192. </method>
  2193. <method name="setOwner"
  2194. abstract="false" native="false" synchronized="false"
  2195. static="false" final="false" visibility="protected"
  2196. deprecated="not deprecated">
  2197. <param name="owner" type="java.lang.String"/>
  2198. <doc>
  2199. <![CDATA[Sets owner.
  2200. @param owner if it is null, default value is set]]>
  2201. </doc>
  2202. </method>
  2203. <method name="setGroup"
  2204. abstract="false" native="false" synchronized="false"
  2205. static="false" final="false" visibility="protected"
  2206. deprecated="not deprecated">
  2207. <param name="group" type="java.lang.String"/>
  2208. <doc>
  2209. <![CDATA[Sets group.
  2210. @param group if it is null, default value is set]]>
  2211. </doc>
  2212. </method>
  2213. <method name="write"
  2214. abstract="false" native="false" synchronized="false"
  2215. static="false" final="false" visibility="public"
  2216. deprecated="not deprecated">
  2217. <param name="out" type="java.io.DataOutput"/>
  2218. <exception name="IOException" type="java.io.IOException"/>
  2219. </method>
  2220. <method name="readFields"
  2221. abstract="false" native="false" synchronized="false"
  2222. static="false" final="false" visibility="public"
  2223. deprecated="not deprecated">
  2224. <param name="in" type="java.io.DataInput"/>
  2225. <exception name="IOException" type="java.io.IOException"/>
  2226. </method>
  2227. <method name="compareTo" return="int"
  2228. abstract="false" native="false" synchronized="false"
  2229. static="false" final="false" visibility="public"
  2230. deprecated="not deprecated">
  2231. <param name="o" type="java.lang.Object"/>
  2232. <doc>
  2233. <![CDATA[Compare this object to another object
  2234. @param o the object to be compared.
  2235. @return a negative integer, zero, or a positive integer as this object
  2236. is less than, equal to, or greater than the specified object.
  2237. @throws ClassCastException if the specified object's is not of
  2238. type FileStatus]]>
  2239. </doc>
  2240. </method>
  2241. <method name="equals" return="boolean"
  2242. abstract="false" native="false" synchronized="false"
  2243. static="false" final="false" visibility="public"
  2244. deprecated="not deprecated">
  2245. <param name="o" type="java.lang.Object"/>
  2246. <doc>
  2247. <![CDATA[Compare if this object is equal to another object
  2248. @param o the object to be compared.
  2249. @return true if two file status has the same path name; false if not.]]>
  2250. </doc>
  2251. </method>
  2252. <method name="hashCode" return="int"
  2253. abstract="false" native="false" synchronized="false"
  2254. static="false" final="false" visibility="public"
  2255. deprecated="not deprecated">
  2256. <doc>
  2257. <![CDATA[Returns a hash code value for the object, which is defined as
  2258. the hash code of the path name.
  2259. @return a hash code value for the path name.]]>
  2260. </doc>
  2261. </method>
  2262. <doc>
  2263. <![CDATA[Interface that represents the client side information for a file.]]>
  2264. </doc>
  2265. </class>
  2266. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2267. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2268. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2269. abstract="true"
  2270. static="false" final="false" visibility="public"
  2271. deprecated="not deprecated">
  2272. <implements name="java.io.Closeable"/>
  2273. <constructor name="FileSystem"
  2274. static="false" final="false" visibility="protected"
  2275. deprecated="not deprecated">
  2276. </constructor>
  2277. <method name="addFileSystemForTesting"
  2278. abstract="false" native="false" synchronized="false"
  2279. static="true" final="false" visibility="public"
  2280. deprecated="not deprecated">
  2281. <param name="uri" type="java.net.URI"/>
  2282. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2283. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2284. <exception name="IOException" type="java.io.IOException"/>
  2285. <doc>
  2286. <![CDATA[This method adds a file system for testing so that we can find it later.
  2287. It is only for testing.
  2288. @param uri the uri to store it under
  2289. @param conf the configuration to store it under
  2290. @param fs the file system to store
  2291. @throws IOException]]>
  2292. </doc>
  2293. </method>
  2294. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2295. abstract="false" native="false" synchronized="false"
  2296. static="true" final="false" visibility="public"
  2297. deprecated="not deprecated">
  2298. <param name="uri" type="java.net.URI"/>
  2299. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2300. <param name="user" type="java.lang.String"/>
  2301. <exception name="IOException" type="java.io.IOException"/>
  2302. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2303. </method>
  2304. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2305. abstract="false" native="false" synchronized="false"
  2306. static="true" final="false" visibility="public"
  2307. deprecated="not deprecated">
  2308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2309. <exception name="IOException" type="java.io.IOException"/>
  2310. <doc>
  2311. <![CDATA[Returns the configured filesystem implementation.]]>
  2312. </doc>
  2313. </method>
  2314. <method name="getDefaultUri" return="java.net.URI"
  2315. abstract="false" native="false" synchronized="false"
  2316. static="true" final="false" visibility="public"
  2317. deprecated="not deprecated">
  2318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2319. <doc>
  2320. <![CDATA[Get the default filesystem URI from a configuration.
  2321. @param conf the configuration to access
  2322. @return the uri of the default filesystem]]>
  2323. </doc>
  2324. </method>
  2325. <method name="setDefaultUri"
  2326. abstract="false" native="false" synchronized="false"
  2327. static="true" final="false" visibility="public"
  2328. deprecated="not deprecated">
  2329. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2330. <param name="uri" type="java.net.URI"/>
  2331. <doc>
  2332. <![CDATA[Set the default filesystem URI in a configuration.
  2333. @param conf the configuration to alter
  2334. @param uri the new default filesystem uri]]>
  2335. </doc>
  2336. </method>
  2337. <method name="setDefaultUri"
  2338. abstract="false" native="false" synchronized="false"
  2339. static="true" final="false" visibility="public"
  2340. deprecated="not deprecated">
  2341. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2342. <param name="uri" type="java.lang.String"/>
  2343. <doc>
  2344. <![CDATA[Set the default filesystem URI in a configuration.
  2345. @param conf the configuration to alter
  2346. @param uri the new default filesystem uri]]>
  2347. </doc>
  2348. </method>
  2349. <method name="initialize"
  2350. abstract="false" native="false" synchronized="false"
  2351. static="false" final="false" visibility="public"
  2352. deprecated="not deprecated">
  2353. <param name="name" type="java.net.URI"/>
  2354. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2355. <exception name="IOException" type="java.io.IOException"/>
  2356. <doc>
  2357. <![CDATA[Called after a new FileSystem instance is constructed.
  2358. @param name a uri whose authority section names the host, port, etc.
  2359. for this FileSystem
  2360. @param conf the configuration]]>
  2361. </doc>
  2362. </method>
  2363. <method name="getUri" return="java.net.URI"
  2364. abstract="true" native="false" synchronized="false"
  2365. static="false" final="false" visibility="public"
  2366. deprecated="not deprecated">
  2367. <doc>
  2368. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2369. </doc>
  2370. </method>
  2371. <method name="getCanonicalUri" return="java.net.URI"
  2372. abstract="false" native="false" synchronized="false"
  2373. static="false" final="false" visibility="protected"
  2374. deprecated="not deprecated">
  2375. <doc>
  2376. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2377. @return URI
  2378. @see NetUtils#getCanonicalUri(URI, int)]]>
  2379. </doc>
  2380. </method>
  2381. <method name="getDefaultPort" return="int"
  2382. abstract="false" native="false" synchronized="false"
  2383. static="false" final="false" visibility="protected"
  2384. deprecated="not deprecated">
  2385. <doc>
  2386. <![CDATA[Get the default port for this file system.
  2387. @return the default port or 0 if there isn't one]]>
  2388. </doc>
  2389. </method>
  2390. <method name="getCanonicalServiceName" return="java.lang.String"
  2391. abstract="false" native="false" synchronized="false"
  2392. static="false" final="false" visibility="public"
  2393. deprecated="not deprecated">
  2394. <doc>
  2395. <![CDATA[Get a canonical service name for this file system. The token cache is
  2396. the only user of this value, and uses it to lookup this filesystem's
  2397. service tokens. The token cache will not attempt to acquire tokens if the
  2398. service is null.
  2399. @return a service string that uniquely identifies this file system, null
  2400. if the filesystem does not implement tokens
  2401. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2402. </doc>
  2403. </method>
  2404. <method name="getName" return="java.lang.String"
  2405. abstract="false" native="false" synchronized="false"
  2406. static="false" final="false" visibility="public"
  2407. deprecated="call #getUri() instead.">
  2408. <doc>
  2409. <![CDATA[@deprecated call #getUri() instead.]]>
  2410. </doc>
  2411. </method>
  2412. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2413. abstract="false" native="false" synchronized="false"
  2414. static="true" final="false" visibility="public"
  2415. deprecated="call #get(URI,Configuration) instead.">
  2416. <param name="name" type="java.lang.String"/>
  2417. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2418. <exception name="IOException" type="java.io.IOException"/>
  2419. <doc>
  2420. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2421. </doc>
  2422. </method>
  2423. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2424. abstract="false" native="false" synchronized="false"
  2425. static="true" final="false" visibility="public"
  2426. deprecated="not deprecated">
  2427. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2428. <exception name="IOException" type="java.io.IOException"/>
  2429. <doc>
  2430. <![CDATA[Get the local file syste
  2431. @param conf the configuration to configure the file system with
  2432. @return a LocalFileSystem]]>
  2433. </doc>
  2434. </method>
  2435. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2436. abstract="false" native="false" synchronized="false"
  2437. static="true" final="false" visibility="public"
  2438. deprecated="not deprecated">
  2439. <param name="uri" type="java.net.URI"/>
  2440. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2441. <exception name="IOException" type="java.io.IOException"/>
  2442. <doc>
  2443. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2444. of the URI determines a configuration property name,
  2445. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2446. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2447. </doc>
  2448. </method>
  2449. <method name="closeAll"
  2450. abstract="false" native="false" synchronized="false"
  2451. static="true" final="false" visibility="public"
  2452. deprecated="not deprecated">
  2453. <exception name="IOException" type="java.io.IOException"/>
  2454. <doc>
  2455. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2456. used anymore.
  2457. @throws IOException]]>
  2458. </doc>
  2459. </method>
  2460. <method name="closeAllForUGI"
  2461. abstract="false" native="false" synchronized="false"
  2462. static="true" final="false" visibility="public"
  2463. deprecated="not deprecated">
  2464. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2465. <exception name="IOException" type="java.io.IOException"/>
  2466. <doc>
  2467. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2468. are not used anymore.
  2469. @param ugi
  2470. @throws IOException]]>
  2471. </doc>
  2472. </method>
  2473. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2474. abstract="false" native="false" synchronized="false"
  2475. static="false" final="false" visibility="public"
  2476. deprecated="not deprecated">
  2477. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2478. <doc>
  2479. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2480. </doc>
  2481. </method>
  2482. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2483. abstract="false" native="false" synchronized="false"
  2484. static="true" final="false" visibility="public"
  2485. deprecated="not deprecated">
  2486. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2487. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2488. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2489. <exception name="IOException" type="java.io.IOException"/>
  2490. <doc>
  2491. <![CDATA[create a file with the provided permission
  2492. The permission of the file is set to be the provided permission as in
  2493. setPermission, not permission&~umask
  2494. It is implemented using two RPCs. It is understood that it is inefficient,
  2495. but the implementation is thread-safe. The other option is to change the
  2496. value of umask in configuration to be 0, but it is not thread-safe.
  2497. @param fs file system handle
  2498. @param file the name of the file to be created
  2499. @param permission the permission of the file
  2500. @return an output stream
  2501. @throws IOException]]>
  2502. </doc>
  2503. </method>
  2504. <method name="mkdirs" return="boolean"
  2505. abstract="false" native="false" synchronized="false"
  2506. static="true" final="false" visibility="public"
  2507. deprecated="not deprecated">
  2508. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2509. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2510. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2511. <exception name="IOException" type="java.io.IOException"/>
  2512. <doc>
  2513. <![CDATA[create a directory with the provided permission
  2514. The permission of the directory is set to be the provided permission as in
  2515. setPermission, not permission&~umask
  2516. @see #create(FileSystem, Path, FsPermission)
  2517. @param fs file system handle
  2518. @param dir the name of the directory to be created
  2519. @param permission the permission of the directory
  2520. @return true if the directory creation succeeds; false otherwise
  2521. @throws IOException]]>
  2522. </doc>
  2523. </method>
  2524. <method name="checkPath"
  2525. abstract="false" native="false" synchronized="false"
  2526. static="false" final="false" visibility="protected"
  2527. deprecated="not deprecated">
  2528. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2529. <doc>
  2530. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2531. </doc>
  2532. </method>
  2533. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2534. abstract="false" native="false" synchronized="false"
  2535. static="false" final="false" visibility="public"
  2536. deprecated="not deprecated">
  2537. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2538. <param name="start" type="long"/>
  2539. <param name="len" type="long"/>
  2540. <exception name="IOException" type="java.io.IOException"/>
  2541. <doc>
  2542. <![CDATA[Return an array containing hostnames, offset and size of
  2543. portions of the given file. For a nonexistent
  2544. file or regions, null will be returned.
  2545. This call is most helpful with DFS, where it returns
  2546. hostnames of machines that contain the given file.
  2547. The FileSystem will simply return an elt containing 'localhost'.]]>
  2548. </doc>
  2549. </method>
  2550. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2551. abstract="true" native="false" synchronized="false"
  2552. static="false" final="false" visibility="public"
  2553. deprecated="not deprecated">
  2554. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2555. <param name="bufferSize" type="int"/>
  2556. <exception name="IOException" type="java.io.IOException"/>
  2557. <doc>
  2558. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2559. @param f the file name to open
  2560. @param bufferSize the size of the buffer to be used.]]>
  2561. </doc>
  2562. </method>
  2563. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2564. abstract="false" native="false" synchronized="false"
  2565. static="false" final="false" visibility="public"
  2566. deprecated="not deprecated">
  2567. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2568. <exception name="IOException" type="java.io.IOException"/>
  2569. <doc>
  2570. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2571. @param f the file to open]]>
  2572. </doc>
  2573. </method>
  2574. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2575. abstract="false" native="false" synchronized="false"
  2576. static="false" final="false" visibility="public"
  2577. deprecated="not deprecated">
  2578. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2579. <exception name="IOException" type="java.io.IOException"/>
  2580. <doc>
  2581. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2582. Files are overwritten by default.]]>
  2583. </doc>
  2584. </method>
  2585. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2586. abstract="false" native="false" synchronized="false"
  2587. static="false" final="false" visibility="public"
  2588. deprecated="not deprecated">
  2589. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2590. <param name="overwrite" type="boolean"/>
  2591. <exception name="IOException" type="java.io.IOException"/>
  2592. <doc>
  2593. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2594. </doc>
  2595. </method>
  2596. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2597. abstract="false" native="false" synchronized="false"
  2598. static="false" final="false" visibility="public"
  2599. deprecated="not deprecated">
  2600. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2601. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2602. <exception name="IOException" type="java.io.IOException"/>
  2603. <doc>
  2604. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2605. reporting.
  2606. Files are overwritten by default.]]>
  2607. </doc>
  2608. </method>
  2609. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2610. abstract="false" native="false" synchronized="false"
  2611. static="false" final="false" visibility="public"
  2612. deprecated="not deprecated">
  2613. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2614. <param name="replication" type="short"/>
  2615. <exception name="IOException" type="java.io.IOException"/>
  2616. <doc>
  2617. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2618. Files are overwritten by default.]]>
  2619. </doc>
  2620. </method>
  2621. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2622. abstract="false" native="false" synchronized="false"
  2623. static="false" final="false" visibility="public"
  2624. deprecated="not deprecated">
  2625. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2626. <param name="replication" type="short"/>
  2627. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2628. <exception name="IOException" type="java.io.IOException"/>
  2629. <doc>
  2630. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2631. reporting.
  2632. Files are overwritten by default.]]>
  2633. </doc>
  2634. </method>
  2635. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2636. abstract="false" native="false" synchronized="false"
  2637. static="false" final="false" visibility="public"
  2638. deprecated="not deprecated">
  2639. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2640. <param name="overwrite" type="boolean"/>
  2641. <param name="bufferSize" type="int"/>
  2642. <exception name="IOException" type="java.io.IOException"/>
  2643. <doc>
  2644. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2645. @param f the file name to open
  2646. @param overwrite if a file with this name already exists, then if true,
  2647. the file will be overwritten, and if false an error will be thrown.
  2648. @param bufferSize the size of the buffer to be used.]]>
  2649. </doc>
  2650. </method>
  2651. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2652. abstract="false" native="false" synchronized="false"
  2653. static="false" final="false" visibility="public"
  2654. deprecated="not deprecated">
  2655. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2656. <param name="overwrite" type="boolean"/>
  2657. <param name="bufferSize" type="int"/>
  2658. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2659. <exception name="IOException" type="java.io.IOException"/>
  2660. <doc>
  2661. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2662. reporting.
  2663. @param f the file name to open
  2664. @param overwrite if a file with this name already exists, then if true,
  2665. the file will be overwritten, and if false an error will be thrown.
  2666. @param bufferSize the size of the buffer to be used.]]>
  2667. </doc>
  2668. </method>
  2669. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2670. abstract="false" native="false" synchronized="false"
  2671. static="false" final="false" visibility="public"
  2672. deprecated="not deprecated">
  2673. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2674. <param name="overwrite" type="boolean"/>
  2675. <param name="bufferSize" type="int"/>
  2676. <param name="replication" type="short"/>
  2677. <param name="blockSize" type="long"/>
  2678. <exception name="IOException" type="java.io.IOException"/>
  2679. <doc>
  2680. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2681. @param f the file name to open
  2682. @param overwrite if a file with this name already exists, then if true,
  2683. the file will be overwritten, and if false an error will be thrown.
  2684. @param bufferSize the size of the buffer to be used.
  2685. @param replication required block replication for the file.]]>
  2686. </doc>
  2687. </method>
  2688. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2689. abstract="false" native="false" synchronized="false"
  2690. static="false" final="false" visibility="public"
  2691. deprecated="not deprecated">
  2692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2693. <param name="overwrite" type="boolean"/>
  2694. <param name="bufferSize" type="int"/>
  2695. <param name="replication" type="short"/>
  2696. <param name="blockSize" type="long"/>
  2697. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2698. <exception name="IOException" type="java.io.IOException"/>
  2699. <doc>
  2700. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2701. reporting.
  2702. @param f the file name to open
  2703. @param overwrite if a file with this name already exists, then if true,
  2704. the file will be overwritten, and if false an error will be thrown.
  2705. @param bufferSize the size of the buffer to be used.
  2706. @param replication required block replication for the file.]]>
  2707. </doc>
  2708. </method>
  2709. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2710. abstract="true" native="false" synchronized="false"
  2711. static="false" final="false" visibility="public"
  2712. deprecated="not deprecated">
  2713. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2714. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2715. <param name="overwrite" type="boolean"/>
  2716. <param name="bufferSize" type="int"/>
  2717. <param name="replication" type="short"/>
  2718. <param name="blockSize" type="long"/>
  2719. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2720. <exception name="IOException" type="java.io.IOException"/>
  2721. <doc>
  2722. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2723. reporting.
  2724. @param f the file name to open
  2725. @param permission
  2726. @param overwrite if a file with this name already exists, then if true,
  2727. the file will be overwritten, and if false an error will be thrown.
  2728. @param bufferSize the size of the buffer to be used.
  2729. @param replication required block replication for the file.
  2730. @param blockSize
  2731. @param progress
  2732. @throws IOException
  2733. @see #setPermission(Path, FsPermission)]]>
  2734. </doc>
  2735. </method>
  2736. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2737. abstract="false" native="false" synchronized="false"
  2738. static="false" final="false" visibility="public"
  2739. deprecated="API only for 0.20-append">
  2740. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2741. <param name="overwrite" type="boolean"/>
  2742. <param name="bufferSize" type="int"/>
  2743. <param name="replication" type="short"/>
  2744. <param name="blockSize" type="long"/>
  2745. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2746. <exception name="IOException" type="java.io.IOException"/>
  2747. <doc>
  2748. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2749. reporting. Same as create(), except fails if parent directory doesn't
  2750. already exist.
  2751. @param f the file name to open
  2752. @param overwrite if a file with this name already exists, then if true,
  2753. the file will be overwritten, and if false an error will be thrown.
  2754. @param bufferSize the size of the buffer to be used.
  2755. @param replication required block replication for the file.
  2756. @param blockSize
  2757. @param progress
  2758. @throws IOException
  2759. @see #setPermission(Path, FsPermission)
  2760. @deprecated API only for 0.20-append]]>
  2761. </doc>
  2762. </method>
  2763. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2764. abstract="false" native="false" synchronized="false"
  2765. static="false" final="false" visibility="public"
  2766. deprecated="API only for 0.20-append">
  2767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2768. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2769. <param name="overwrite" type="boolean"/>
  2770. <param name="bufferSize" type="int"/>
  2771. <param name="replication" type="short"/>
  2772. <param name="blockSize" type="long"/>
  2773. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2774. <exception name="IOException" type="java.io.IOException"/>
  2775. <doc>
  2776. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2777. reporting. Same as create(), except fails if parent directory doesn't
  2778. already exist.
  2779. @param f the file name to open
  2780. @param permission
  2781. @param overwrite if a file with this name already exists, then if true,
  2782. the file will be overwritten, and if false an error will be thrown.
  2783. @param bufferSize the size of the buffer to be used.
  2784. @param replication required block replication for the file.
  2785. @param blockSize
  2786. @param progress
  2787. @throws IOException
  2788. @see #setPermission(Path, FsPermission)
  2789. @deprecated API only for 0.20-append]]>
  2790. </doc>
  2791. </method>
  2792. <method name="createNewFile" return="boolean"
  2793. abstract="false" native="false" synchronized="false"
  2794. static="false" final="false" visibility="public"
  2795. deprecated="not deprecated">
  2796. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2797. <exception name="IOException" type="java.io.IOException"/>
  2798. <doc>
  2799. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2800. create fails, or if it already existed, return false.]]>
  2801. </doc>
  2802. </method>
  2803. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2804. abstract="false" native="false" synchronized="false"
  2805. static="false" final="false" visibility="public"
  2806. deprecated="not deprecated">
  2807. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2808. <exception name="IOException" type="java.io.IOException"/>
  2809. <doc>
  2810. <![CDATA[Append to an existing file (optional operation).
  2811. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2812. @param f the existing file to be appended.
  2813. @throws IOException]]>
  2814. </doc>
  2815. </method>
  2816. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2817. abstract="false" native="false" synchronized="false"
  2818. static="false" final="false" visibility="public"
  2819. deprecated="not deprecated">
  2820. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2821. <param name="bufferSize" type="int"/>
  2822. <exception name="IOException" type="java.io.IOException"/>
  2823. <doc>
  2824. <![CDATA[Append to an existing file (optional operation).
  2825. Same as append(f, bufferSize, null).
  2826. @param f the existing file to be appended.
  2827. @param bufferSize the size of the buffer to be used.
  2828. @throws IOException]]>
  2829. </doc>
  2830. </method>
  2831. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2832. abstract="true" native="false" synchronized="false"
  2833. static="false" final="false" visibility="public"
  2834. deprecated="not deprecated">
  2835. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2836. <param name="bufferSize" type="int"/>
  2837. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2838. <exception name="IOException" type="java.io.IOException"/>
  2839. <doc>
  2840. <![CDATA[Append to an existing file (optional operation).
  2841. @param f the existing file to be appended.
  2842. @param bufferSize the size of the buffer to be used.
  2843. @param progress for reporting progress if it is not null.
  2844. @throws IOException]]>
  2845. </doc>
  2846. </method>
  2847. <method name="getReplication" return="short"
  2848. abstract="false" native="false" synchronized="false"
  2849. static="false" final="false" visibility="public"
  2850. deprecated="Use getFileStatus() instead">
  2851. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2852. <exception name="IOException" type="java.io.IOException"/>
  2853. <doc>
  2854. <![CDATA[Get replication.
  2855. @deprecated Use getFileStatus() instead
  2856. @param src file name
  2857. @return file replication
  2858. @throws IOException]]>
  2859. </doc>
  2860. </method>
  2861. <method name="setReplication" return="boolean"
  2862. abstract="false" native="false" synchronized="false"
  2863. static="false" final="false" visibility="public"
  2864. deprecated="not deprecated">
  2865. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2866. <param name="replication" type="short"/>
  2867. <exception name="IOException" type="java.io.IOException"/>
  2868. <doc>
  2869. <![CDATA[Set replication for an existing file.
  2870. @param src file name
  2871. @param replication new replication
  2872. @throws IOException
  2873. @return true if successful;
  2874. false if file does not exist or is a directory]]>
  2875. </doc>
  2876. </method>
  2877. <method name="rename" return="boolean"
  2878. abstract="true" native="false" synchronized="false"
  2879. static="false" final="false" visibility="public"
  2880. deprecated="not deprecated">
  2881. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2882. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2883. <exception name="IOException" type="java.io.IOException"/>
  2884. <doc>
  2885. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2886. or remote DFS.]]>
  2887. </doc>
  2888. </method>
  2889. <method name="delete" return="boolean"
  2890. abstract="true" native="false" synchronized="false"
  2891. static="false" final="false" visibility="public"
  2892. deprecated="Use delete(Path, boolean) instead">
  2893. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2894. <exception name="IOException" type="java.io.IOException"/>
  2895. <doc>
  2896. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2897. </doc>
  2898. </method>
  2899. <method name="delete" return="boolean"
  2900. abstract="true" native="false" synchronized="false"
  2901. static="false" final="false" visibility="public"
  2902. deprecated="not deprecated">
  2903. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2904. <param name="recursive" type="boolean"/>
  2905. <exception name="IOException" type="java.io.IOException"/>
  2906. <doc>
  2907. <![CDATA[Delete a file.
  2908. @param f the path to delete.
  2909. @param recursive if path is a directory and set to
  2910. true, the directory is deleted else throws an exception. In
  2911. case of a file the recursive can be set to either true or false.
  2912. @return true if delete is successful else false.
  2913. @throws IOException]]>
  2914. </doc>
  2915. </method>
  2916. <method name="deleteOnExit" return="boolean"
  2917. abstract="false" native="false" synchronized="false"
  2918. static="false" final="false" visibility="public"
  2919. deprecated="not deprecated">
  2920. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2921. <exception name="IOException" type="java.io.IOException"/>
  2922. <doc>
  2923. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2924. When the JVM shuts down,
  2925. all FileSystem objects will be closed automatically.
  2926. Then,
  2927. the marked path will be deleted as a result of closing the FileSystem.
  2928. The path has to exist in the file system.
  2929. @param f the path to delete.
  2930. @return true if deleteOnExit is successful, otherwise false.
  2931. @throws IOException]]>
  2932. </doc>
  2933. </method>
  2934. <method name="processDeleteOnExit"
  2935. abstract="false" native="false" synchronized="false"
  2936. static="false" final="false" visibility="protected"
  2937. deprecated="not deprecated">
  2938. <doc>
  2939. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2940. deletes all files in the specified paths.]]>
  2941. </doc>
  2942. </method>
  2943. <method name="exists" return="boolean"
  2944. abstract="false" native="false" synchronized="false"
  2945. static="false" final="false" visibility="public"
  2946. deprecated="not deprecated">
  2947. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2948. <exception name="IOException" type="java.io.IOException"/>
  2949. <doc>
  2950. <![CDATA[Check if exists.
  2951. @param f source file]]>
  2952. </doc>
  2953. </method>
  2954. <method name="isDirectory" return="boolean"
  2955. abstract="false" native="false" synchronized="false"
  2956. static="false" final="false" visibility="public"
  2957. deprecated="Use getFileStatus() instead">
  2958. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2959. <exception name="IOException" type="java.io.IOException"/>
  2960. <doc>
  2961. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2962. </doc>
  2963. </method>
  2964. <method name="isFile" return="boolean"
  2965. abstract="false" native="false" synchronized="false"
  2966. static="false" final="false" visibility="public"
  2967. deprecated="not deprecated">
  2968. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2969. <exception name="IOException" type="java.io.IOException"/>
  2970. <doc>
  2971. <![CDATA[True iff the named path is a regular file.]]>
  2972. </doc>
  2973. </method>
  2974. <method name="getLength" return="long"
  2975. abstract="false" native="false" synchronized="false"
  2976. static="false" final="false" visibility="public"
  2977. deprecated="Use getFileStatus() instead">
  2978. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2979. <exception name="IOException" type="java.io.IOException"/>
  2980. <doc>
  2981. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2982. </doc>
  2983. </method>
  2984. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2985. abstract="false" native="false" synchronized="false"
  2986. static="false" final="false" visibility="public"
  2987. deprecated="not deprecated">
  2988. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2989. <exception name="IOException" type="java.io.IOException"/>
  2990. <doc>
  2991. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  2992. </doc>
  2993. </method>
  2994. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2995. abstract="true" native="false" synchronized="false"
  2996. static="false" final="false" visibility="public"
  2997. deprecated="not deprecated">
  2998. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2999. <exception name="IOException" type="java.io.IOException"/>
  3000. <doc>
  3001. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3002. a directory.
  3003. @param f
  3004. given path
  3005. @return the statuses of the files/directories in the given patch
  3006. returns null, if Path f does not exist in the FileSystem
  3007. @throws IOException]]>
  3008. </doc>
  3009. </method>
  3010. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3011. abstract="false" native="false" synchronized="false"
  3012. static="false" final="false" visibility="public"
  3013. deprecated="not deprecated">
  3014. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3015. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3016. <exception name="IOException" type="java.io.IOException"/>
  3017. <doc>
  3018. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3019. filter.
  3020. @param f
  3021. a path name
  3022. @param filter
  3023. the user-supplied path filter
  3024. @return an array of FileStatus objects for the files under the given path
  3025. after applying the filter
  3026. @throws IOException
  3027. if encounter any problem while fetching the status]]>
  3028. </doc>
  3029. </method>
  3030. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3031. abstract="false" native="false" synchronized="false"
  3032. static="false" final="false" visibility="public"
  3033. deprecated="not deprecated">
  3034. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3035. <exception name="IOException" type="java.io.IOException"/>
  3036. <doc>
  3037. <![CDATA[Filter files/directories in the given list of paths using default
  3038. path filter.
  3039. @param files
  3040. a list of paths
  3041. @return a list of statuses for the files under the given paths after
  3042. applying the filter default Path filter
  3043. @exception IOException]]>
  3044. </doc>
  3045. </method>
  3046. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3047. abstract="false" native="false" synchronized="false"
  3048. static="false" final="false" visibility="public"
  3049. deprecated="not deprecated">
  3050. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3051. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3052. <exception name="IOException" type="java.io.IOException"/>
  3053. <doc>
  3054. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3055. path filter.
  3056. @param files
  3057. a list of paths
  3058. @param filter
  3059. the user-supplied path filter
  3060. @return a list of statuses for the files under the given paths after
  3061. applying the filter
  3062. @exception IOException]]>
  3063. </doc>
  3064. </method>
  3065. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3066. abstract="false" native="false" synchronized="false"
  3067. static="false" final="false" visibility="public"
  3068. deprecated="not deprecated">
  3069. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3070. <exception name="IOException" type="java.io.IOException"/>
  3071. <doc>
  3072. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3073. files. Results are sorted by their names.
  3074. <p>
  3075. A filename pattern is composed of <i>regular</i> characters and
  3076. <i>special pattern matching</i> characters, which are:
  3077. <dl>
  3078. <dd>
  3079. <dl>
  3080. <p>
  3081. <dt> <tt> ? </tt>
  3082. <dd> Matches any single character.
  3083. <p>
  3084. <dt> <tt> * </tt>
  3085. <dd> Matches zero or more characters.
  3086. <p>
  3087. <dt> <tt> [<i>abc</i>] </tt>
  3088. <dd> Matches a single character from character set
  3089. <tt>{<i>a,b,c</i>}</tt>.
  3090. <p>
  3091. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3092. <dd> Matches a single character from the character range
  3093. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3094. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3095. <p>
  3096. <dt> <tt> [^<i>a</i>] </tt>
  3097. <dd> Matches a single character that is not from character set or range
  3098. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3099. immediately to the right of the opening bracket.
  3100. <p>
  3101. <dt> <tt> \<i>c</i> </tt>
  3102. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3103. <p>
  3104. <dt> <tt> {ab,cd} </tt>
  3105. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3106. <p>
  3107. <dt> <tt> {ab,c{de,fh}} </tt>
  3108. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3109. </dl>
  3110. </dd>
  3111. </dl>
  3112. @param pathPattern a regular expression specifying a pth pattern
  3113. @return an array of paths that match the path pattern
  3114. @throws 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. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3123. <exception name="IOException" type="java.io.IOException"/>
  3124. <doc>
  3125. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3126. and is accepted by the user-supplied path filter. Results are sorted by
  3127. their path names.
  3128. Return null if pathPattern has no glob and the path does not exist.
  3129. Return an empty array if pathPattern has a glob and no path matches it.
  3130. @param pathPattern
  3131. a regular expression specifying the path pattern
  3132. @param filter
  3133. a user-supplied path filter
  3134. @return an array of FileStatus objects
  3135. @throws IOException if any I/O error occurs when fetching file status]]>
  3136. </doc>
  3137. </method>
  3138. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3139. abstract="false" native="false" synchronized="false"
  3140. static="false" final="false" visibility="public"
  3141. deprecated="not deprecated">
  3142. <doc>
  3143. <![CDATA[Return the current user's home directory in this filesystem.
  3144. The default implementation returns "/user/$USER/".]]>
  3145. </doc>
  3146. </method>
  3147. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3148. abstract="false" native="false" synchronized="false"
  3149. static="false" final="false" visibility="public"
  3150. deprecated="not deprecated">
  3151. <param name="renewer" type="java.lang.String"/>
  3152. <exception name="IOException" type="java.io.IOException"/>
  3153. <doc>
  3154. <![CDATA[Get a new delegation token for this file system.
  3155. @param renewer the account name that is allowed to renew the token.
  3156. @return a new delegation token
  3157. @throws IOException]]>
  3158. </doc>
  3159. </method>
  3160. <method name="setWorkingDirectory"
  3161. abstract="true" native="false" synchronized="false"
  3162. static="false" final="false" visibility="public"
  3163. deprecated="not deprecated">
  3164. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3165. <doc>
  3166. <![CDATA[Set the current working directory for the given file system. All relative
  3167. paths will be resolved relative to it.
  3168. @param new_dir]]>
  3169. </doc>
  3170. </method>
  3171. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3172. abstract="true" native="false" synchronized="false"
  3173. static="false" final="false" visibility="public"
  3174. deprecated="not deprecated">
  3175. <doc>
  3176. <![CDATA[Get the current working directory for the given file system
  3177. @return the directory pathname]]>
  3178. </doc>
  3179. </method>
  3180. <method name="mkdirs" return="boolean"
  3181. abstract="false" native="false" synchronized="false"
  3182. static="false" final="false" visibility="public"
  3183. deprecated="not deprecated">
  3184. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3185. <exception name="IOException" type="java.io.IOException"/>
  3186. <doc>
  3187. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3188. </doc>
  3189. </method>
  3190. <method name="mkdirs" return="boolean"
  3191. abstract="true" native="false" synchronized="false"
  3192. static="false" final="false" visibility="public"
  3193. deprecated="not deprecated">
  3194. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3195. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3196. <exception name="IOException" type="java.io.IOException"/>
  3197. <doc>
  3198. <![CDATA[Make the given file and all non-existent parents into
  3199. directories. Has the semantics of Unix 'mkdir -p'.
  3200. Existence of the directory hierarchy is not an error.]]>
  3201. </doc>
  3202. </method>
  3203. <method name="copyFromLocalFile"
  3204. abstract="false" native="false" synchronized="false"
  3205. static="false" final="false" visibility="public"
  3206. deprecated="not deprecated">
  3207. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3208. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3209. <exception name="IOException" type="java.io.IOException"/>
  3210. <doc>
  3211. <![CDATA[The src file is on the local disk. Add it to FS at
  3212. the given dst name and the source is kept intact afterwards]]>
  3213. </doc>
  3214. </method>
  3215. <method name="moveFromLocalFile"
  3216. abstract="false" native="false" synchronized="false"
  3217. static="false" final="false" visibility="public"
  3218. deprecated="not deprecated">
  3219. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3220. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3221. <exception name="IOException" type="java.io.IOException"/>
  3222. <doc>
  3223. <![CDATA[The src files is on the local disk. Add it to FS at
  3224. the given dst name, removing the source afterwards.]]>
  3225. </doc>
  3226. </method>
  3227. <method name="moveFromLocalFile"
  3228. abstract="false" native="false" synchronized="false"
  3229. static="false" final="false" visibility="public"
  3230. deprecated="not deprecated">
  3231. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3232. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3233. <exception name="IOException" type="java.io.IOException"/>
  3234. <doc>
  3235. <![CDATA[The src file is on the local disk. Add it to FS at
  3236. the given dst name, removing the source afterwards.]]>
  3237. </doc>
  3238. </method>
  3239. <method name="copyFromLocalFile"
  3240. abstract="false" native="false" synchronized="false"
  3241. static="false" final="false" visibility="public"
  3242. deprecated="not deprecated">
  3243. <param name="delSrc" type="boolean"/>
  3244. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3245. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3246. <exception name="IOException" type="java.io.IOException"/>
  3247. <doc>
  3248. <![CDATA[The src file is on the local disk. Add it to FS at
  3249. the given dst name.
  3250. delSrc indicates if the source should be removed]]>
  3251. </doc>
  3252. </method>
  3253. <method name="copyFromLocalFile"
  3254. abstract="false" native="false" synchronized="false"
  3255. static="false" final="false" visibility="public"
  3256. deprecated="not deprecated">
  3257. <param name="delSrc" type="boolean"/>
  3258. <param name="overwrite" type="boolean"/>
  3259. <param name="srcs" 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 files are on the local disk. Add it to FS at
  3264. the given dst name.
  3265. delSrc indicates if the source should be removed]]>
  3266. </doc>
  3267. </method>
  3268. <method name="copyFromLocalFile"
  3269. abstract="false" native="false" synchronized="false"
  3270. static="false" final="false" visibility="public"
  3271. deprecated="not deprecated">
  3272. <param name="delSrc" type="boolean"/>
  3273. <param name="overwrite" type="boolean"/>
  3274. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3275. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3276. <exception name="IOException" type="java.io.IOException"/>
  3277. <doc>
  3278. <![CDATA[The src file is on the local disk. Add it to FS at
  3279. the given dst name.
  3280. delSrc indicates if the source should be removed]]>
  3281. </doc>
  3282. </method>
  3283. <method name="copyToLocalFile"
  3284. abstract="false" native="false" synchronized="false"
  3285. static="false" final="false" visibility="public"
  3286. deprecated="not deprecated">
  3287. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3288. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3289. <exception name="IOException" type="java.io.IOException"/>
  3290. <doc>
  3291. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3292. Copy it from FS control to the local dst name.]]>
  3293. </doc>
  3294. </method>
  3295. <method name="moveToLocalFile"
  3296. abstract="false" native="false" synchronized="false"
  3297. static="false" final="false" visibility="public"
  3298. deprecated="not deprecated">
  3299. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3300. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3301. <exception name="IOException" type="java.io.IOException"/>
  3302. <doc>
  3303. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3304. Copy it from FS control to the local dst name.
  3305. Remove the source afterwards]]>
  3306. </doc>
  3307. </method>
  3308. <method name="copyToLocalFile"
  3309. abstract="false" native="false" synchronized="false"
  3310. static="false" final="false" visibility="public"
  3311. deprecated="not deprecated">
  3312. <param name="delSrc" type="boolean"/>
  3313. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3314. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3315. <exception name="IOException" type="java.io.IOException"/>
  3316. <doc>
  3317. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3318. Copy it from FS control to the local dst name.
  3319. delSrc indicates if the src will be removed or not.]]>
  3320. </doc>
  3321. </method>
  3322. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3323. abstract="false" native="false" synchronized="false"
  3324. static="false" final="false" visibility="public"
  3325. deprecated="not deprecated">
  3326. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3327. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3328. <exception name="IOException" type="java.io.IOException"/>
  3329. <doc>
  3330. <![CDATA[Returns a local File that the user can write output to. The caller
  3331. provides both the eventual FS target name and the local working
  3332. file. If the FS is local, we write directly into the target. If
  3333. the FS is remote, we write into the tmp local area.]]>
  3334. </doc>
  3335. </method>
  3336. <method name="completeLocalOutput"
  3337. abstract="false" native="false" synchronized="false"
  3338. static="false" final="false" visibility="public"
  3339. deprecated="not deprecated">
  3340. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3341. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3342. <exception name="IOException" type="java.io.IOException"/>
  3343. <doc>
  3344. <![CDATA[Called when we're all done writing to the target. A local FS will
  3345. do nothing, because we've written to exactly the right place. A remote
  3346. FS will copy the contents of tmpLocalFile to the correct target at
  3347. fsOutputFile.]]>
  3348. </doc>
  3349. </method>
  3350. <method name="close"
  3351. abstract="false" native="false" synchronized="false"
  3352. static="false" final="false" visibility="public"
  3353. deprecated="not deprecated">
  3354. <exception name="IOException" type="java.io.IOException"/>
  3355. <doc>
  3356. <![CDATA[No more filesystem operations are needed. Will
  3357. release any held locks.]]>
  3358. </doc>
  3359. </method>
  3360. <method name="getUsed" return="long"
  3361. abstract="false" native="false" synchronized="false"
  3362. static="false" final="false" visibility="public"
  3363. deprecated="not deprecated">
  3364. <exception name="IOException" type="java.io.IOException"/>
  3365. <doc>
  3366. <![CDATA[Return the total size of all files in the filesystem.]]>
  3367. </doc>
  3368. </method>
  3369. <method name="getBlockSize" return="long"
  3370. abstract="false" native="false" synchronized="false"
  3371. static="false" final="false" visibility="public"
  3372. deprecated="Use getFileStatus() instead">
  3373. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3374. <exception name="IOException" type="java.io.IOException"/>
  3375. <doc>
  3376. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3377. </doc>
  3378. </method>
  3379. <method name="getDefaultBlockSize" return="long"
  3380. abstract="false" native="false" synchronized="false"
  3381. static="false" final="false" visibility="public"
  3382. deprecated="not deprecated">
  3383. <doc>
  3384. <![CDATA[Return the number of bytes that large input files should be optimally
  3385. be split into to minimize i/o time.]]>
  3386. </doc>
  3387. </method>
  3388. <method name="getDefaultReplication" return="short"
  3389. abstract="false" native="false" synchronized="false"
  3390. static="false" final="false" visibility="public"
  3391. deprecated="not deprecated">
  3392. <doc>
  3393. <![CDATA[Get the default replication.]]>
  3394. </doc>
  3395. </method>
  3396. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3397. abstract="true" native="false" synchronized="false"
  3398. static="false" final="false" visibility="public"
  3399. deprecated="not deprecated">
  3400. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3401. <exception name="IOException" type="java.io.IOException"/>
  3402. <doc>
  3403. <![CDATA[Return a file status object that represents the path.
  3404. @param f The path we want information from
  3405. @return a FileStatus object
  3406. @throws FileNotFoundException when the path does not exist;
  3407. IOException see specific implementation]]>
  3408. </doc>
  3409. </method>
  3410. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3411. abstract="false" native="false" synchronized="false"
  3412. static="false" final="false" visibility="public"
  3413. deprecated="not deprecated">
  3414. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3415. <exception name="IOException" type="java.io.IOException"/>
  3416. <doc>
  3417. <![CDATA[Get the checksum of a file.
  3418. @param f The file path
  3419. @return The file checksum. The default return value is null,
  3420. which indicates that no checksum algorithm is implemented
  3421. in the corresponding FileSystem.]]>
  3422. </doc>
  3423. </method>
  3424. <method name="setVerifyChecksum"
  3425. abstract="false" native="false" synchronized="false"
  3426. static="false" final="false" visibility="public"
  3427. deprecated="not deprecated">
  3428. <param name="verifyChecksum" type="boolean"/>
  3429. <doc>
  3430. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3431. corresponding FileSystem supports checksum. By default doesn't do anything.
  3432. @param verifyChecksum]]>
  3433. </doc>
  3434. </method>
  3435. <method name="setPermission"
  3436. abstract="false" native="false" synchronized="false"
  3437. static="false" final="false" visibility="public"
  3438. deprecated="not deprecated">
  3439. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3440. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3441. <exception name="IOException" type="java.io.IOException"/>
  3442. <doc>
  3443. <![CDATA[Set permission of a path.
  3444. @param p
  3445. @param permission]]>
  3446. </doc>
  3447. </method>
  3448. <method name="setOwner"
  3449. abstract="false" native="false" synchronized="false"
  3450. static="false" final="false" visibility="public"
  3451. deprecated="not deprecated">
  3452. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3453. <param name="username" type="java.lang.String"/>
  3454. <param name="groupname" type="java.lang.String"/>
  3455. <exception name="IOException" type="java.io.IOException"/>
  3456. <doc>
  3457. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3458. The parameters username and groupname cannot both be null.
  3459. @param p The path
  3460. @param username If it is null, the original username remains unchanged.
  3461. @param groupname If it is null, the original groupname remains unchanged.]]>
  3462. </doc>
  3463. </method>
  3464. <method name="setTimes"
  3465. abstract="false" native="false" synchronized="false"
  3466. static="false" final="false" visibility="public"
  3467. deprecated="not deprecated">
  3468. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3469. <param name="mtime" type="long"/>
  3470. <param name="atime" type="long"/>
  3471. <exception name="IOException" type="java.io.IOException"/>
  3472. <doc>
  3473. <![CDATA[Set access time of a file
  3474. @param p The path
  3475. @param mtime Set the modification time of this file.
  3476. The number of milliseconds since Jan 1, 1970.
  3477. A value of -1 means that this call should not set modification time.
  3478. @param atime Set the access time of this file.
  3479. The number of milliseconds since Jan 1, 1970.
  3480. A value of -1 means that this call should not set access time.]]>
  3481. </doc>
  3482. </method>
  3483. <method name="getStatistics" return="java.util.Map"
  3484. abstract="false" native="false" synchronized="true"
  3485. static="true" final="false" visibility="public"
  3486. deprecated="use {@link #getAllStatistics} instead">
  3487. <doc>
  3488. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3489. @return a Map having a key as URI scheme and value as Statistics object
  3490. @deprecated use {@link #getAllStatistics} instead]]>
  3491. </doc>
  3492. </method>
  3493. <method name="getAllStatistics" return="java.util.List"
  3494. abstract="false" native="false" synchronized="true"
  3495. static="true" final="false" visibility="public"
  3496. deprecated="not deprecated">
  3497. <doc>
  3498. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3499. </doc>
  3500. </method>
  3501. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3502. abstract="false" native="false" synchronized="true"
  3503. static="true" final="false" visibility="public"
  3504. deprecated="not deprecated">
  3505. <param name="scheme" type="java.lang.String"/>
  3506. <param name="cls" type="java.lang.Class"/>
  3507. <doc>
  3508. <![CDATA[Get the statistics for a particular file system
  3509. @param cls the class to lookup
  3510. @return a statistics object]]>
  3511. </doc>
  3512. </method>
  3513. <method name="clearStatistics"
  3514. abstract="false" native="false" synchronized="true"
  3515. static="true" final="false" visibility="public"
  3516. deprecated="not deprecated">
  3517. </method>
  3518. <method name="printStatistics"
  3519. abstract="false" native="false" synchronized="true"
  3520. static="true" final="false" visibility="public"
  3521. deprecated="not deprecated">
  3522. <exception name="IOException" type="java.io.IOException"/>
  3523. </method>
  3524. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3525. transient="false" volatile="false"
  3526. static="true" final="true" visibility="public"
  3527. deprecated="not deprecated">
  3528. </field>
  3529. <field name="LOG" type="org.apache.commons.logging.Log"
  3530. transient="false" volatile="false"
  3531. static="true" final="true" visibility="public"
  3532. deprecated="not deprecated">
  3533. </field>
  3534. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3535. transient="false" volatile="false"
  3536. static="false" final="false" visibility="protected"
  3537. deprecated="not deprecated">
  3538. <doc>
  3539. <![CDATA[The statistics for this file system.]]>
  3540. </doc>
  3541. </field>
  3542. <doc>
  3543. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3544. may be implemented as a distributed filesystem, or as a "local"
  3545. one that reflects the locally-connected disk. The local version
  3546. exists for small Hadoop instances and for testing.
  3547. <p>
  3548. All user code that may potentially use the Hadoop Distributed
  3549. File System should be written to use a FileSystem object. The
  3550. Hadoop DFS is a multi-machine system that appears as a single
  3551. disk. It's useful because of its fault tolerance and potentially
  3552. very large capacity.
  3553. <p>
  3554. The local implementation is {@link LocalFileSystem} and distributed
  3555. implementation is DistributedFileSystem.]]>
  3556. </doc>
  3557. </class>
  3558. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3559. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3560. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3561. abstract="false"
  3562. static="true" final="true" visibility="public"
  3563. deprecated="not deprecated">
  3564. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3565. static="false" final="false" visibility="public"
  3566. deprecated="not deprecated">
  3567. </constructor>
  3568. <method name="incrementBytesRead"
  3569. abstract="false" native="false" synchronized="false"
  3570. static="false" final="false" visibility="public"
  3571. deprecated="not deprecated">
  3572. <param name="newBytes" type="long"/>
  3573. <doc>
  3574. <![CDATA[Increment the bytes read in the statistics
  3575. @param newBytes the additional bytes read]]>
  3576. </doc>
  3577. </method>
  3578. <method name="incrementBytesWritten"
  3579. abstract="false" native="false" synchronized="false"
  3580. static="false" final="false" visibility="public"
  3581. deprecated="not deprecated">
  3582. <param name="newBytes" type="long"/>
  3583. <doc>
  3584. <![CDATA[Increment the bytes written in the statistics
  3585. @param newBytes the additional bytes written]]>
  3586. </doc>
  3587. </method>
  3588. <method name="incrementReadOps"
  3589. abstract="false" native="false" synchronized="false"
  3590. static="false" final="false" visibility="public"
  3591. deprecated="not deprecated">
  3592. <param name="count" type="int"/>
  3593. <doc>
  3594. <![CDATA[Increment the number of read operations
  3595. @param count number of read operations]]>
  3596. </doc>
  3597. </method>
  3598. <method name="incrementLargeReadOps"
  3599. abstract="false" native="false" synchronized="false"
  3600. static="false" final="false" visibility="public"
  3601. deprecated="not deprecated">
  3602. <param name="count" type="int"/>
  3603. <doc>
  3604. <![CDATA[Increment the number of large read operations
  3605. @param count number of large read operations]]>
  3606. </doc>
  3607. </method>
  3608. <method name="incrementWriteOps"
  3609. abstract="false" native="false" synchronized="false"
  3610. static="false" final="false" visibility="public"
  3611. deprecated="not deprecated">
  3612. <param name="count" type="int"/>
  3613. <doc>
  3614. <![CDATA[Increment the number of write operations
  3615. @param count number of write operations]]>
  3616. </doc>
  3617. </method>
  3618. <method name="getBytesRead" return="long"
  3619. abstract="false" native="false" synchronized="false"
  3620. static="false" final="false" visibility="public"
  3621. deprecated="not deprecated">
  3622. <doc>
  3623. <![CDATA[Get the total number of bytes read
  3624. @return the number of bytes]]>
  3625. </doc>
  3626. </method>
  3627. <method name="getBytesWritten" return="long"
  3628. abstract="false" native="false" synchronized="false"
  3629. static="false" final="false" visibility="public"
  3630. deprecated="not deprecated">
  3631. <doc>
  3632. <![CDATA[Get the total number of bytes written
  3633. @return the number of bytes]]>
  3634. </doc>
  3635. </method>
  3636. <method name="getReadOps" return="int"
  3637. abstract="false" native="false" synchronized="false"
  3638. static="false" final="false" visibility="public"
  3639. deprecated="not deprecated">
  3640. <doc>
  3641. <![CDATA[Get the number of file system read operations such as list files
  3642. @return number of read operations]]>
  3643. </doc>
  3644. </method>
  3645. <method name="getLargeReadOps" return="int"
  3646. abstract="false" native="false" synchronized="false"
  3647. static="false" final="false" visibility="public"
  3648. deprecated="not deprecated">
  3649. <doc>
  3650. <![CDATA[Get the number of large file system read operations such as list files
  3651. under a large directory
  3652. @return number of large read operations]]>
  3653. </doc>
  3654. </method>
  3655. <method name="getWriteOps" return="int"
  3656. abstract="false" native="false" synchronized="false"
  3657. static="false" final="false" visibility="public"
  3658. deprecated="not deprecated">
  3659. <doc>
  3660. <![CDATA[Get the number of file system write operations such as create, append
  3661. rename etc.
  3662. @return number of write operations]]>
  3663. </doc>
  3664. </method>
  3665. <method name="toString" return="java.lang.String"
  3666. abstract="false" native="false" synchronized="false"
  3667. static="false" final="false" visibility="public"
  3668. deprecated="not deprecated">
  3669. </method>
  3670. <method name="reset"
  3671. abstract="false" native="false" synchronized="false"
  3672. static="false" final="false" visibility="public"
  3673. deprecated="not deprecated">
  3674. <doc>
  3675. <![CDATA[Reset the counts of bytes to 0.]]>
  3676. </doc>
  3677. </method>
  3678. <method name="getScheme" return="java.lang.String"
  3679. abstract="false" native="false" synchronized="false"
  3680. static="false" final="false" visibility="public"
  3681. deprecated="not deprecated">
  3682. <doc>
  3683. <![CDATA[Get the uri scheme associated with this statistics object.
  3684. @return the schema associated with this set of statistics]]>
  3685. </doc>
  3686. </method>
  3687. </class>
  3688. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3689. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3690. <class name="FileUtil" extends="java.lang.Object"
  3691. abstract="false"
  3692. static="false" final="false" visibility="public"
  3693. deprecated="not deprecated">
  3694. <constructor name="FileUtil"
  3695. static="false" final="false" visibility="public"
  3696. deprecated="not deprecated">
  3697. </constructor>
  3698. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3699. abstract="false" native="false" synchronized="false"
  3700. static="true" final="false" visibility="public"
  3701. deprecated="not deprecated">
  3702. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3703. <doc>
  3704. <![CDATA[convert an array of FileStatus to an array of Path
  3705. @param stats
  3706. an array of FileStatus objects
  3707. @return an array of paths corresponding to the input]]>
  3708. </doc>
  3709. </method>
  3710. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3711. abstract="false" native="false" synchronized="false"
  3712. static="true" final="false" visibility="public"
  3713. deprecated="not deprecated">
  3714. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3715. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3716. <doc>
  3717. <![CDATA[convert an array of FileStatus to an array of Path.
  3718. If stats if null, return path
  3719. @param stats
  3720. an array of FileStatus objects
  3721. @param path
  3722. default path to return in stats is null
  3723. @return an array of paths corresponding to the input]]>
  3724. </doc>
  3725. </method>
  3726. <method name="fullyDelete" return="boolean"
  3727. abstract="false" native="false" synchronized="false"
  3728. static="true" final="false" visibility="public"
  3729. deprecated="not deprecated">
  3730. <param name="dir" type="java.io.File"/>
  3731. <exception name="IOException" type="java.io.IOException"/>
  3732. <doc>
  3733. <![CDATA[Delete a directory and all its contents. If
  3734. we return false, the directory may be partially-deleted.]]>
  3735. </doc>
  3736. </method>
  3737. <method name="fullyDeleteContents" return="boolean"
  3738. abstract="false" native="false" synchronized="false"
  3739. static="true" final="false" visibility="public"
  3740. deprecated="not deprecated">
  3741. <param name="dir" type="java.io.File"/>
  3742. <exception name="IOException" type="java.io.IOException"/>
  3743. <doc>
  3744. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3745. we return false, the directory may be partially-deleted.]]>
  3746. </doc>
  3747. </method>
  3748. <method name="fullyDelete"
  3749. abstract="false" native="false" synchronized="false"
  3750. static="true" final="false" visibility="public"
  3751. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3752. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3753. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3754. <exception name="IOException" type="java.io.IOException"/>
  3755. <doc>
  3756. <![CDATA[Recursively delete a directory.
  3757. @param fs {@link FileSystem} on which the path is present
  3758. @param dir directory to recursively delete
  3759. @throws IOException
  3760. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3761. </doc>
  3762. </method>
  3763. <method name="copy" return="boolean"
  3764. abstract="false" native="false" synchronized="false"
  3765. static="true" final="false" visibility="public"
  3766. deprecated="not deprecated">
  3767. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3768. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3769. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3770. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3771. <param name="deleteSource" type="boolean"/>
  3772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3773. <exception name="IOException" type="java.io.IOException"/>
  3774. <doc>
  3775. <![CDATA[Copy files between FileSystems.]]>
  3776. </doc>
  3777. </method>
  3778. <method name="copy" return="boolean"
  3779. abstract="false" native="false" synchronized="false"
  3780. static="true" final="false" visibility="public"
  3781. deprecated="not deprecated">
  3782. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3783. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3784. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3785. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3786. <param name="deleteSource" type="boolean"/>
  3787. <param name="overwrite" type="boolean"/>
  3788. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3789. <exception name="IOException" type="java.io.IOException"/>
  3790. </method>
  3791. <method name="copy" return="boolean"
  3792. abstract="false" native="false" synchronized="false"
  3793. static="true" final="false" visibility="public"
  3794. deprecated="not deprecated">
  3795. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3796. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3797. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3798. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3799. <param name="deleteSource" type="boolean"/>
  3800. <param name="overwrite" type="boolean"/>
  3801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3802. <exception name="IOException" type="java.io.IOException"/>
  3803. <doc>
  3804. <![CDATA[Copy files between FileSystems.]]>
  3805. </doc>
  3806. </method>
  3807. <method name="copyMerge" return="boolean"
  3808. abstract="false" native="false" synchronized="false"
  3809. static="true" final="false" visibility="public"
  3810. deprecated="not deprecated">
  3811. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3812. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3813. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3814. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3815. <param name="deleteSource" type="boolean"/>
  3816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3817. <param name="addString" type="java.lang.String"/>
  3818. <exception name="IOException" type="java.io.IOException"/>
  3819. <doc>
  3820. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3821. </doc>
  3822. </method>
  3823. <method name="copy" return="boolean"
  3824. abstract="false" native="false" synchronized="false"
  3825. static="true" final="false" visibility="public"
  3826. deprecated="not deprecated">
  3827. <param name="src" type="java.io.File"/>
  3828. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3829. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3830. <param name="deleteSource" type="boolean"/>
  3831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3832. <exception name="IOException" type="java.io.IOException"/>
  3833. <doc>
  3834. <![CDATA[Copy local files to a FileSystem.]]>
  3835. </doc>
  3836. </method>
  3837. <method name="copy" return="boolean"
  3838. abstract="false" native="false" synchronized="false"
  3839. static="true" final="false" visibility="public"
  3840. deprecated="not deprecated">
  3841. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3842. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3843. <param name="dst" type="java.io.File"/>
  3844. <param name="deleteSource" type="boolean"/>
  3845. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3846. <exception name="IOException" type="java.io.IOException"/>
  3847. <doc>
  3848. <![CDATA[Copy FileSystem files to local files.]]>
  3849. </doc>
  3850. </method>
  3851. <method name="makeShellPath" return="java.lang.String"
  3852. abstract="false" native="false" synchronized="false"
  3853. static="true" final="false" visibility="public"
  3854. deprecated="not deprecated">
  3855. <param name="filename" type="java.lang.String"/>
  3856. <exception name="IOException" type="java.io.IOException"/>
  3857. <doc>
  3858. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3859. @param filename The filename to convert
  3860. @return The unix pathname
  3861. @throws IOException on windows, there can be problems with the subprocess]]>
  3862. </doc>
  3863. </method>
  3864. <method name="makeShellPath" return="java.lang.String"
  3865. abstract="false" native="false" synchronized="false"
  3866. static="true" final="false" visibility="public"
  3867. deprecated="not deprecated">
  3868. <param name="file" type="java.io.File"/>
  3869. <exception name="IOException" type="java.io.IOException"/>
  3870. <doc>
  3871. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3872. @param file The filename to convert
  3873. @return The unix pathname
  3874. @throws IOException on windows, there can be problems with the subprocess]]>
  3875. </doc>
  3876. </method>
  3877. <method name="makeShellPath" return="java.lang.String"
  3878. abstract="false" native="false" synchronized="false"
  3879. static="true" final="false" visibility="public"
  3880. deprecated="not deprecated">
  3881. <param name="file" type="java.io.File"/>
  3882. <param name="makeCanonicalPath" type="boolean"/>
  3883. <exception name="IOException" type="java.io.IOException"/>
  3884. <doc>
  3885. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3886. @param file The filename to convert
  3887. @param makeCanonicalPath
  3888. Whether to make canonical path for the file passed
  3889. @return The unix pathname
  3890. @throws IOException on windows, there can be problems with the subprocess]]>
  3891. </doc>
  3892. </method>
  3893. <method name="getDU" return="long"
  3894. abstract="false" native="false" synchronized="false"
  3895. static="true" final="false" visibility="public"
  3896. deprecated="not deprecated">
  3897. <param name="dir" type="java.io.File"/>
  3898. <doc>
  3899. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3900. implementation.
  3901. @param dir
  3902. The input dir to get the disk space of this local dir
  3903. @return The total disk space of the input local directory]]>
  3904. </doc>
  3905. </method>
  3906. <method name="unZip"
  3907. abstract="false" native="false" synchronized="false"
  3908. static="true" final="false" visibility="public"
  3909. deprecated="not deprecated">
  3910. <param name="inFile" type="java.io.File"/>
  3911. <param name="unzipDir" type="java.io.File"/>
  3912. <exception name="IOException" type="java.io.IOException"/>
  3913. <doc>
  3914. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3915. passed as the second parameter
  3916. @param inFile The zip file as input
  3917. @param unzipDir The unzip directory where to unzip the zip file.
  3918. @throws IOException]]>
  3919. </doc>
  3920. </method>
  3921. <method name="unTar"
  3922. abstract="false" native="false" synchronized="false"
  3923. static="true" final="false" visibility="public"
  3924. deprecated="not deprecated">
  3925. <param name="inFile" type="java.io.File"/>
  3926. <param name="untarDir" type="java.io.File"/>
  3927. <exception name="IOException" type="java.io.IOException"/>
  3928. <doc>
  3929. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3930. passed as the second parameter
  3931. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3932. @param inFile The tar file as input.
  3933. @param untarDir The untar directory where to untar the tar file.
  3934. @throws IOException]]>
  3935. </doc>
  3936. </method>
  3937. <method name="symLink" return="int"
  3938. abstract="false" native="false" synchronized="false"
  3939. static="true" final="false" visibility="public"
  3940. deprecated="not deprecated">
  3941. <param name="target" type="java.lang.String"/>
  3942. <param name="linkname" type="java.lang.String"/>
  3943. <exception name="IOException" type="java.io.IOException"/>
  3944. <doc>
  3945. <![CDATA[Create a soft link between a src and destination
  3946. only on a local disk. HDFS does not support this
  3947. @param target the target for symlink
  3948. @param linkname the symlink
  3949. @return value returned by the command]]>
  3950. </doc>
  3951. </method>
  3952. <method name="chmod" return="int"
  3953. abstract="false" native="false" synchronized="false"
  3954. static="true" final="false" visibility="public"
  3955. deprecated="not deprecated">
  3956. <param name="filename" type="java.lang.String"/>
  3957. <param name="perm" type="java.lang.String"/>
  3958. <exception name="IOException" type="java.io.IOException"/>
  3959. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3960. <doc>
  3961. <![CDATA[Change the permissions on a filename.
  3962. @param filename the name of the file to change
  3963. @param perm the permission string
  3964. @return the exit code from the command
  3965. @throws IOException
  3966. @throws InterruptedException]]>
  3967. </doc>
  3968. </method>
  3969. <method name="chmod" return="int"
  3970. abstract="false" native="false" synchronized="false"
  3971. static="true" final="false" visibility="public"
  3972. deprecated="not deprecated">
  3973. <param name="filename" type="java.lang.String"/>
  3974. <param name="perm" type="java.lang.String"/>
  3975. <param name="recursive" type="boolean"/>
  3976. <exception name="IOException" type="java.io.IOException"/>
  3977. <doc>
  3978. <![CDATA[Change the permissions on a file / directory, recursively, if
  3979. needed.
  3980. @param filename name of the file whose permissions are to change
  3981. @param perm permission string
  3982. @param recursive true, if permissions should be changed recursively
  3983. @return the exit code from the command.
  3984. @throws IOException
  3985. @throws InterruptedException]]>
  3986. </doc>
  3987. </method>
  3988. <method name="setPermission"
  3989. abstract="false" native="false" synchronized="false"
  3990. static="true" final="false" visibility="public"
  3991. deprecated="not deprecated">
  3992. <param name="f" type="java.io.File"/>
  3993. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3994. <exception name="IOException" type="java.io.IOException"/>
  3995. <doc>
  3996. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  3997. of forking if group == other.
  3998. @param f the file to change
  3999. @param permission the new permissions
  4000. @throws IOException]]>
  4001. </doc>
  4002. </method>
  4003. <method name="createLocalTempFile" return="java.io.File"
  4004. abstract="false" native="false" synchronized="false"
  4005. static="true" final="true" visibility="public"
  4006. deprecated="not deprecated">
  4007. <param name="basefile" type="java.io.File"/>
  4008. <param name="prefix" type="java.lang.String"/>
  4009. <param name="isDeleteOnExit" type="boolean"/>
  4010. <exception name="IOException" type="java.io.IOException"/>
  4011. <doc>
  4012. <![CDATA[Create a tmp file for a base file.
  4013. @param basefile the base file of the tmp
  4014. @param prefix file name prefix of tmp
  4015. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  4016. @return a newly created tmp file
  4017. @exception IOException If a tmp file cannot created
  4018. @see java.io.File#createTempFile(String, String, File)
  4019. @see java.io.File#deleteOnExit()]]>
  4020. </doc>
  4021. </method>
  4022. <method name="replaceFile"
  4023. abstract="false" native="false" synchronized="false"
  4024. static="true" final="false" visibility="public"
  4025. deprecated="not deprecated">
  4026. <param name="src" type="java.io.File"/>
  4027. <param name="target" type="java.io.File"/>
  4028. <exception name="IOException" type="java.io.IOException"/>
  4029. <doc>
  4030. <![CDATA[Move the src file to the name specified by target.
  4031. @param src the source file
  4032. @param target the target file
  4033. @exception IOException If this operation fails]]>
  4034. </doc>
  4035. </method>
  4036. <method name="listFiles" return="java.io.File[]"
  4037. abstract="false" native="false" synchronized="false"
  4038. static="true" final="false" visibility="public"
  4039. deprecated="not deprecated">
  4040. <param name="dir" type="java.io.File"/>
  4041. <exception name="IOException" type="java.io.IOException"/>
  4042. <doc>
  4043. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4044. when a dir is not a directory or for any I/O error. Instead of having
  4045. null check everywhere File#listFiles() is used, we will add utility API
  4046. to get around this problem. For the majority of cases where we prefer
  4047. an IOException to be thrown.
  4048. @param dir directory for which listing should be performed
  4049. @return list of files or empty list
  4050. @exception IOException for invalid directory or for a bad disk.]]>
  4051. </doc>
  4052. </method>
  4053. <method name="list" return="java.lang.String[]"
  4054. abstract="false" native="false" synchronized="false"
  4055. static="true" final="false" visibility="public"
  4056. deprecated="not deprecated">
  4057. <param name="dir" type="java.io.File"/>
  4058. <exception name="IOException" type="java.io.IOException"/>
  4059. <doc>
  4060. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4061. when a dir is not a directory or for any I/O error. Instead of having
  4062. null check everywhere File#list() is used, we will add utility API
  4063. to get around this problem. For the majority of cases where we prefer
  4064. an IOException to be thrown.
  4065. @param dir directory for which listing should be performed
  4066. @return list of file names or empty string list
  4067. @exception IOException for invalid directory or for a bad disk.]]>
  4068. </doc>
  4069. </method>
  4070. <doc>
  4071. <![CDATA[A collection of file-processing util methods]]>
  4072. </doc>
  4073. </class>
  4074. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4075. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4076. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4077. abstract="false"
  4078. static="false" final="false" visibility="public"
  4079. deprecated="not deprecated">
  4080. <constructor name="FilterFileSystem"
  4081. static="false" final="false" visibility="public"
  4082. deprecated="not deprecated">
  4083. </constructor>
  4084. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4085. static="false" final="false" visibility="public"
  4086. deprecated="not deprecated">
  4087. </constructor>
  4088. <method name="initialize"
  4089. abstract="false" native="false" synchronized="false"
  4090. static="false" final="false" visibility="public"
  4091. deprecated="not deprecated">
  4092. <param name="name" type="java.net.URI"/>
  4093. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4094. <exception name="IOException" type="java.io.IOException"/>
  4095. <doc>
  4096. <![CDATA[Called after a new FileSystem instance is constructed.
  4097. @param name a uri whose authority section names the host, port, etc.
  4098. for this FileSystem
  4099. @param conf the configuration]]>
  4100. </doc>
  4101. </method>
  4102. <method name="getUri" return="java.net.URI"
  4103. abstract="false" native="false" synchronized="false"
  4104. static="false" final="false" visibility="public"
  4105. deprecated="not deprecated">
  4106. <doc>
  4107. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4108. </doc>
  4109. </method>
  4110. <method name="getCanonicalServiceName" return="java.lang.String"
  4111. abstract="false" native="false" synchronized="false"
  4112. static="false" final="false" visibility="public"
  4113. deprecated="not deprecated">
  4114. </method>
  4115. <method name="getName" return="java.lang.String"
  4116. abstract="false" native="false" synchronized="false"
  4117. static="false" final="false" visibility="public"
  4118. deprecated="call #getUri() instead.">
  4119. <doc>
  4120. <![CDATA[@deprecated call #getUri() instead.]]>
  4121. </doc>
  4122. </method>
  4123. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4124. abstract="false" native="false" synchronized="false"
  4125. static="false" final="false" visibility="public"
  4126. deprecated="not deprecated">
  4127. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4128. <doc>
  4129. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4130. </doc>
  4131. </method>
  4132. <method name="checkPath"
  4133. abstract="false" native="false" synchronized="false"
  4134. static="false" final="false" visibility="protected"
  4135. deprecated="not deprecated">
  4136. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4137. <doc>
  4138. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4139. </doc>
  4140. </method>
  4141. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4142. abstract="false" native="false" synchronized="false"
  4143. static="false" final="false" visibility="public"
  4144. deprecated="not deprecated">
  4145. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4146. <param name="start" type="long"/>
  4147. <param name="len" type="long"/>
  4148. <exception name="IOException" type="java.io.IOException"/>
  4149. </method>
  4150. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4151. abstract="false" native="false" synchronized="false"
  4152. static="false" final="false" visibility="public"
  4153. deprecated="not deprecated">
  4154. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4155. <param name="bufferSize" type="int"/>
  4156. <exception name="IOException" type="java.io.IOException"/>
  4157. <doc>
  4158. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4159. @param f the file name to open
  4160. @param bufferSize the size of the buffer to be used.]]>
  4161. </doc>
  4162. </method>
  4163. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4164. abstract="false" native="false" synchronized="false"
  4165. static="false" final="false" visibility="public"
  4166. deprecated="not deprecated">
  4167. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4168. <param name="bufferSize" type="int"/>
  4169. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4170. <exception name="IOException" type="java.io.IOException"/>
  4171. <doc>
  4172. <![CDATA[{@inheritDoc}]]>
  4173. </doc>
  4174. </method>
  4175. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4176. abstract="false" native="false" synchronized="false"
  4177. static="false" final="false" visibility="public"
  4178. deprecated="not deprecated">
  4179. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4180. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4181. <param name="overwrite" type="boolean"/>
  4182. <param name="bufferSize" type="int"/>
  4183. <param name="replication" type="short"/>
  4184. <param name="blockSize" type="long"/>
  4185. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4186. <exception name="IOException" type="java.io.IOException"/>
  4187. <doc>
  4188. <![CDATA[{@inheritDoc}]]>
  4189. </doc>
  4190. </method>
  4191. <method name="setReplication" return="boolean"
  4192. abstract="false" native="false" synchronized="false"
  4193. static="false" final="false" visibility="public"
  4194. deprecated="not deprecated">
  4195. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4196. <param name="replication" type="short"/>
  4197. <exception name="IOException" type="java.io.IOException"/>
  4198. <doc>
  4199. <![CDATA[Set replication for an existing file.
  4200. @param src file name
  4201. @param replication new replication
  4202. @throws IOException
  4203. @return true if successful;
  4204. false if file does not exist or is a directory]]>
  4205. </doc>
  4206. </method>
  4207. <method name="rename" return="boolean"
  4208. abstract="false" native="false" synchronized="false"
  4209. static="false" final="false" visibility="public"
  4210. deprecated="not deprecated">
  4211. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4212. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4213. <exception name="IOException" type="java.io.IOException"/>
  4214. <doc>
  4215. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4216. or remote DFS.]]>
  4217. </doc>
  4218. </method>
  4219. <method name="delete" return="boolean"
  4220. abstract="false" native="false" synchronized="false"
  4221. static="false" final="false" visibility="public"
  4222. deprecated="not deprecated">
  4223. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4224. <exception name="IOException" type="java.io.IOException"/>
  4225. <doc>
  4226. <![CDATA[Delete a file]]>
  4227. </doc>
  4228. </method>
  4229. <method name="delete" return="boolean"
  4230. abstract="false" native="false" synchronized="false"
  4231. static="false" final="false" visibility="public"
  4232. deprecated="not deprecated">
  4233. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4234. <param name="recursive" type="boolean"/>
  4235. <exception name="IOException" type="java.io.IOException"/>
  4236. <doc>
  4237. <![CDATA[Delete a file]]>
  4238. </doc>
  4239. </method>
  4240. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  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. <exception name="IOException" type="java.io.IOException"/>
  4246. <doc>
  4247. <![CDATA[List files in a directory.]]>
  4248. </doc>
  4249. </method>
  4250. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4251. abstract="false" native="false" synchronized="false"
  4252. static="false" final="false" visibility="public"
  4253. deprecated="not deprecated">
  4254. </method>
  4255. <method name="setWorkingDirectory"
  4256. abstract="false" native="false" synchronized="false"
  4257. static="false" final="false" visibility="public"
  4258. deprecated="not deprecated">
  4259. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4260. <doc>
  4261. <![CDATA[Set the current working directory for the given file system. All relative
  4262. paths will be resolved relative to it.
  4263. @param newDir]]>
  4264. </doc>
  4265. </method>
  4266. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4267. abstract="false" native="false" synchronized="false"
  4268. static="false" final="false" visibility="public"
  4269. deprecated="not deprecated">
  4270. <doc>
  4271. <![CDATA[Get the current working directory for the given file system
  4272. @return the directory pathname]]>
  4273. </doc>
  4274. </method>
  4275. <method name="mkdirs" return="boolean"
  4276. abstract="false" native="false" synchronized="false"
  4277. static="false" final="false" visibility="public"
  4278. deprecated="not deprecated">
  4279. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4280. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4281. <exception name="IOException" type="java.io.IOException"/>
  4282. <doc>
  4283. <![CDATA[{@inheritDoc}]]>
  4284. </doc>
  4285. </method>
  4286. <method name="copyFromLocalFile"
  4287. abstract="false" native="false" synchronized="false"
  4288. static="false" final="false" visibility="public"
  4289. deprecated="not deprecated">
  4290. <param name="delSrc" type="boolean"/>
  4291. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4292. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4293. <exception name="IOException" type="java.io.IOException"/>
  4294. <doc>
  4295. <![CDATA[The src file is on the local disk. Add it to FS at
  4296. the given dst name.
  4297. delSrc indicates if the source should be removed]]>
  4298. </doc>
  4299. </method>
  4300. <method name="copyToLocalFile"
  4301. abstract="false" native="false" synchronized="false"
  4302. static="false" final="false" visibility="public"
  4303. deprecated="not deprecated">
  4304. <param name="delSrc" type="boolean"/>
  4305. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4306. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4307. <exception name="IOException" type="java.io.IOException"/>
  4308. <doc>
  4309. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4310. Copy it from FS control to the local dst name.
  4311. delSrc indicates if the src will be removed or not.]]>
  4312. </doc>
  4313. </method>
  4314. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4315. abstract="false" native="false" synchronized="false"
  4316. static="false" final="false" visibility="public"
  4317. deprecated="not deprecated">
  4318. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4319. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4320. <exception name="IOException" type="java.io.IOException"/>
  4321. <doc>
  4322. <![CDATA[Returns a local File that the user can write output to. The caller
  4323. provides both the eventual FS target name and the local working
  4324. file. If the FS is local, we write directly into the target. If
  4325. the FS is remote, we write into the tmp local area.]]>
  4326. </doc>
  4327. </method>
  4328. <method name="completeLocalOutput"
  4329. abstract="false" native="false" synchronized="false"
  4330. static="false" final="false" visibility="public"
  4331. deprecated="not deprecated">
  4332. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4333. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4334. <exception name="IOException" type="java.io.IOException"/>
  4335. <doc>
  4336. <![CDATA[Called when we're all done writing to the target. A local FS will
  4337. do nothing, because we've written to exactly the right place. A remote
  4338. FS will copy the contents of tmpLocalFile to the correct target at
  4339. fsOutputFile.]]>
  4340. </doc>
  4341. </method>
  4342. <method name="getDefaultBlockSize" return="long"
  4343. abstract="false" native="false" synchronized="false"
  4344. static="false" final="false" visibility="public"
  4345. deprecated="not deprecated">
  4346. <doc>
  4347. <![CDATA[Return the number of bytes that large input files should be optimally
  4348. be split into to minimize i/o time.]]>
  4349. </doc>
  4350. </method>
  4351. <method name="getDefaultReplication" return="short"
  4352. abstract="false" native="false" synchronized="false"
  4353. static="false" final="false" visibility="public"
  4354. deprecated="not deprecated">
  4355. <doc>
  4356. <![CDATA[Get the default replication.]]>
  4357. </doc>
  4358. </method>
  4359. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4360. abstract="false" native="false" synchronized="false"
  4361. static="false" final="false" visibility="public"
  4362. deprecated="not deprecated">
  4363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4364. <exception name="IOException" type="java.io.IOException"/>
  4365. <doc>
  4366. <![CDATA[Get file status.]]>
  4367. </doc>
  4368. </method>
  4369. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4370. abstract="false" native="false" synchronized="false"
  4371. static="false" final="false" visibility="public"
  4372. deprecated="not deprecated">
  4373. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4374. <exception name="IOException" type="java.io.IOException"/>
  4375. <doc>
  4376. <![CDATA[{@inheritDoc}]]>
  4377. </doc>
  4378. </method>
  4379. <method name="setVerifyChecksum"
  4380. abstract="false" native="false" synchronized="false"
  4381. static="false" final="false" visibility="public"
  4382. deprecated="not deprecated">
  4383. <param name="verifyChecksum" type="boolean"/>
  4384. <doc>
  4385. <![CDATA[{@inheritDoc}]]>
  4386. </doc>
  4387. </method>
  4388. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4389. abstract="false" native="false" synchronized="false"
  4390. static="false" final="false" visibility="public"
  4391. deprecated="not deprecated">
  4392. </method>
  4393. <method name="close"
  4394. abstract="false" native="false" synchronized="false"
  4395. static="false" final="false" visibility="public"
  4396. deprecated="not deprecated">
  4397. <exception name="IOException" type="java.io.IOException"/>
  4398. </method>
  4399. <method name="setOwner"
  4400. abstract="false" native="false" synchronized="false"
  4401. static="false" final="false" visibility="public"
  4402. deprecated="not deprecated">
  4403. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4404. <param name="username" type="java.lang.String"/>
  4405. <param name="groupname" type="java.lang.String"/>
  4406. <exception name="IOException" type="java.io.IOException"/>
  4407. <doc>
  4408. <![CDATA[{@inheritDoc}]]>
  4409. </doc>
  4410. </method>
  4411. <method name="setPermission"
  4412. abstract="false" native="false" synchronized="false"
  4413. static="false" final="false" visibility="public"
  4414. deprecated="not deprecated">
  4415. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4416. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4417. <exception name="IOException" type="java.io.IOException"/>
  4418. <doc>
  4419. <![CDATA[{@inheritDoc}]]>
  4420. </doc>
  4421. </method>
  4422. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4423. transient="false" volatile="false"
  4424. static="false" final="false" visibility="protected"
  4425. deprecated="not deprecated">
  4426. </field>
  4427. <doc>
  4428. <![CDATA[A <code>FilterFileSystem</code> contains
  4429. some other file system, which it uses as
  4430. its basic file system, possibly transforming
  4431. the data along the way or providing additional
  4432. functionality. The class <code>FilterFileSystem</code>
  4433. itself simply overrides all methods of
  4434. <code>FileSystem</code> with versions that
  4435. pass all requests to the contained file
  4436. system. Subclasses of <code>FilterFileSystem</code>
  4437. may further override some of these methods
  4438. and may also provide additional methods
  4439. and fields.]]>
  4440. </doc>
  4441. </class>
  4442. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4443. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4444. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4445. abstract="false"
  4446. static="false" final="false" visibility="public"
  4447. deprecated="not deprecated">
  4448. <implements name="org.apache.hadoop.fs.Seekable"/>
  4449. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4450. <implements name="java.io.Closeable"/>
  4451. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4452. static="false" final="false" visibility="public"
  4453. deprecated="not deprecated">
  4454. <exception name="IOException" type="java.io.IOException"/>
  4455. </constructor>
  4456. <method name="seek"
  4457. abstract="false" native="false" synchronized="true"
  4458. static="false" final="false" visibility="public"
  4459. deprecated="not deprecated">
  4460. <param name="desired" type="long"/>
  4461. <exception name="IOException" type="java.io.IOException"/>
  4462. </method>
  4463. <method name="getPos" return="long"
  4464. abstract="false" native="false" synchronized="false"
  4465. static="false" final="false" visibility="public"
  4466. deprecated="not deprecated">
  4467. <exception name="IOException" type="java.io.IOException"/>
  4468. </method>
  4469. <method name="read" return="int"
  4470. abstract="false" native="false" synchronized="false"
  4471. static="false" final="false" visibility="public"
  4472. deprecated="not deprecated">
  4473. <param name="position" type="long"/>
  4474. <param name="buffer" type="byte[]"/>
  4475. <param name="offset" type="int"/>
  4476. <param name="length" type="int"/>
  4477. <exception name="IOException" type="java.io.IOException"/>
  4478. </method>
  4479. <method name="readFully"
  4480. abstract="false" native="false" synchronized="false"
  4481. static="false" final="false" visibility="public"
  4482. deprecated="not deprecated">
  4483. <param name="position" type="long"/>
  4484. <param name="buffer" type="byte[]"/>
  4485. <param name="offset" type="int"/>
  4486. <param name="length" type="int"/>
  4487. <exception name="IOException" type="java.io.IOException"/>
  4488. </method>
  4489. <method name="readFully"
  4490. abstract="false" native="false" synchronized="false"
  4491. static="false" final="false" visibility="public"
  4492. deprecated="not deprecated">
  4493. <param name="position" type="long"/>
  4494. <param name="buffer" type="byte[]"/>
  4495. <exception name="IOException" type="java.io.IOException"/>
  4496. </method>
  4497. <method name="seekToNewSource" return="boolean"
  4498. abstract="false" native="false" synchronized="false"
  4499. static="false" final="false" visibility="public"
  4500. deprecated="not deprecated">
  4501. <param name="targetPos" type="long"/>
  4502. <exception name="IOException" type="java.io.IOException"/>
  4503. </method>
  4504. <doc>
  4505. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4506. and buffers input through a {@link BufferedInputStream}.]]>
  4507. </doc>
  4508. </class>
  4509. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4510. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4511. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4512. abstract="false"
  4513. static="false" final="false" visibility="public"
  4514. deprecated="not deprecated">
  4515. <implements name="org.apache.hadoop.fs.Syncable"/>
  4516. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4517. static="false" final="false" visibility="public"
  4518. deprecated="not deprecated">
  4519. <exception name="IOException" type="java.io.IOException"/>
  4520. </constructor>
  4521. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4522. static="false" final="false" visibility="public"
  4523. deprecated="not deprecated">
  4524. <exception name="IOException" type="java.io.IOException"/>
  4525. </constructor>
  4526. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4527. static="false" final="false" visibility="public"
  4528. deprecated="not deprecated">
  4529. <exception name="IOException" type="java.io.IOException"/>
  4530. </constructor>
  4531. <method name="getPos" return="long"
  4532. abstract="false" native="false" synchronized="false"
  4533. static="false" final="false" visibility="public"
  4534. deprecated="not deprecated">
  4535. <exception name="IOException" type="java.io.IOException"/>
  4536. </method>
  4537. <method name="close"
  4538. abstract="false" native="false" synchronized="false"
  4539. static="false" final="false" visibility="public"
  4540. deprecated="not deprecated">
  4541. <exception name="IOException" type="java.io.IOException"/>
  4542. </method>
  4543. <method name="getWrappedStream" return="java.io.OutputStream"
  4544. abstract="false" native="false" synchronized="false"
  4545. static="false" final="false" visibility="public"
  4546. deprecated="not deprecated">
  4547. </method>
  4548. <method name="sync"
  4549. abstract="false" native="false" synchronized="false"
  4550. static="false" final="false" visibility="public"
  4551. deprecated="not deprecated">
  4552. <exception name="IOException" type="java.io.IOException"/>
  4553. <doc>
  4554. <![CDATA[{@inheritDoc}]]>
  4555. </doc>
  4556. </method>
  4557. <doc>
  4558. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4559. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4560. file.]]>
  4561. </doc>
  4562. </class>
  4563. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4564. <!-- start class org.apache.hadoop.fs.FSError -->
  4565. <class name="FSError" extends="java.lang.Error"
  4566. abstract="false"
  4567. static="false" final="false" visibility="public"
  4568. deprecated="not deprecated">
  4569. <doc>
  4570. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4571. in the native filesystem.]]>
  4572. </doc>
  4573. </class>
  4574. <!-- end class org.apache.hadoop.fs.FSError -->
  4575. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4576. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4577. abstract="true"
  4578. static="false" final="false" visibility="public"
  4579. deprecated="not deprecated">
  4580. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4581. static="false" final="false" visibility="protected"
  4582. deprecated="not deprecated">
  4583. <doc>
  4584. <![CDATA[Constructor
  4585. @param file The name of the file to be read
  4586. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4587. </doc>
  4588. </constructor>
  4589. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4590. static="false" final="false" visibility="protected"
  4591. deprecated="not deprecated">
  4592. <doc>
  4593. <![CDATA[Constructor
  4594. @param file The name of the file to be read
  4595. @param numOfRetries Number of read retries when ChecksumError occurs
  4596. @param sum the type of Checksum engine
  4597. @param chunkSize maximun chunk size
  4598. @param checksumSize the number byte of each checksum]]>
  4599. </doc>
  4600. </constructor>
  4601. <method name="readChunk" return="int"
  4602. abstract="true" native="false" synchronized="false"
  4603. static="false" final="false" visibility="protected"
  4604. deprecated="not deprecated">
  4605. <param name="pos" type="long"/>
  4606. <param name="buf" type="byte[]"/>
  4607. <param name="offset" type="int"/>
  4608. <param name="len" type="int"/>
  4609. <param name="checksum" type="byte[]"/>
  4610. <exception name="IOException" type="java.io.IOException"/>
  4611. <doc>
  4612. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4613. and checksum into <code>checksum</code>.
  4614. The method is used for implementing read, therefore, it should be optimized
  4615. for sequential reading
  4616. @param pos chunkPos
  4617. @param buf desitination buffer
  4618. @param offset offset in buf at which to store data
  4619. @param len maximun number of bytes to read
  4620. @return number of bytes read]]>
  4621. </doc>
  4622. </method>
  4623. <method name="getChunkPosition" return="long"
  4624. abstract="true" native="false" synchronized="false"
  4625. static="false" final="false" visibility="protected"
  4626. deprecated="not deprecated">
  4627. <param name="pos" type="long"/>
  4628. <doc>
  4629. <![CDATA[Return position of beginning of chunk containing pos.
  4630. @param pos a postion in the file
  4631. @return the starting position of the chunk which contains the byte]]>
  4632. </doc>
  4633. </method>
  4634. <method name="needChecksum" return="boolean"
  4635. abstract="false" native="false" synchronized="true"
  4636. static="false" final="false" visibility="protected"
  4637. deprecated="not deprecated">
  4638. <doc>
  4639. <![CDATA[Return true if there is a need for checksum verification]]>
  4640. </doc>
  4641. </method>
  4642. <method name="read" return="int"
  4643. abstract="false" native="false" synchronized="true"
  4644. static="false" final="false" visibility="public"
  4645. deprecated="not deprecated">
  4646. <exception name="IOException" type="java.io.IOException"/>
  4647. <doc>
  4648. <![CDATA[Read one checksum-verified byte
  4649. @return the next byte of data, or <code>-1</code> if the end of the
  4650. stream is reached.
  4651. @exception IOException if an I/O error occurs.]]>
  4652. </doc>
  4653. </method>
  4654. <method name="read" return="int"
  4655. abstract="false" native="false" synchronized="true"
  4656. static="false" final="false" visibility="public"
  4657. deprecated="not deprecated">
  4658. <param name="b" type="byte[]"/>
  4659. <param name="off" type="int"/>
  4660. <param name="len" type="int"/>
  4661. <exception name="IOException" type="java.io.IOException"/>
  4662. <doc>
  4663. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4664. the specified byte array, starting at the given offset.
  4665. <p> This method implements the general contract of the corresponding
  4666. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4667. the <code>{@link InputStream}</code> class. As an additional
  4668. convenience, it attempts to read as many bytes as possible by repeatedly
  4669. invoking the <code>read</code> method of the underlying stream. This
  4670. iterated <code>read</code> continues until one of the following
  4671. conditions becomes true: <ul>
  4672. <li> The specified number of bytes have been read,
  4673. <li> The <code>read</code> method of the underlying stream returns
  4674. <code>-1</code>, indicating end-of-file.
  4675. </ul> If the first <code>read</code> on the underlying stream returns
  4676. <code>-1</code> to indicate end-of-file then this method returns
  4677. <code>-1</code>. Otherwise this method returns the number of bytes
  4678. actually read.
  4679. @param b destination buffer.
  4680. @param off offset at which to start storing bytes.
  4681. @param len maximum number of bytes to read.
  4682. @return the number of bytes read, or <code>-1</code> if the end of
  4683. the stream has been reached.
  4684. @exception IOException if an I/O error occurs.
  4685. ChecksumException if any checksum error occurs]]>
  4686. </doc>
  4687. </method>
  4688. <method name="checksum2long" return="long"
  4689. abstract="false" native="false" synchronized="false"
  4690. static="true" final="false" visibility="public"
  4691. deprecated="not deprecated">
  4692. <param name="checksum" type="byte[]"/>
  4693. <doc>
  4694. <![CDATA[Convert a checksum byte array to a long]]>
  4695. </doc>
  4696. </method>
  4697. <method name="getPos" return="long"
  4698. abstract="false" native="false" synchronized="true"
  4699. static="false" final="false" visibility="public"
  4700. deprecated="not deprecated">
  4701. <exception name="IOException" type="java.io.IOException"/>
  4702. </method>
  4703. <method name="available" return="int"
  4704. abstract="false" native="false" synchronized="true"
  4705. static="false" final="false" visibility="public"
  4706. deprecated="not deprecated">
  4707. <exception name="IOException" type="java.io.IOException"/>
  4708. </method>
  4709. <method name="skip" return="long"
  4710. abstract="false" native="false" synchronized="true"
  4711. static="false" final="false" visibility="public"
  4712. deprecated="not deprecated">
  4713. <param name="n" type="long"/>
  4714. <exception name="IOException" type="java.io.IOException"/>
  4715. <doc>
  4716. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4717. input stream.
  4718. <p>This method may skip more bytes than are remaining in the backing
  4719. file. This produces no exception and the number of bytes skipped
  4720. may include some number of bytes that were beyond the EOF of the
  4721. backing file. Attempting to read from the stream after skipping past
  4722. the end will result in -1 indicating the end of the file.
  4723. <p>If <code>n</code> is negative, no bytes are skipped.
  4724. @param n the number of bytes to be skipped.
  4725. @return the actual number of bytes skipped.
  4726. @exception IOException if an I/O error occurs.
  4727. ChecksumException if the chunk to skip to is corrupted]]>
  4728. </doc>
  4729. </method>
  4730. <method name="seek"
  4731. abstract="false" native="false" synchronized="true"
  4732. static="false" final="false" visibility="public"
  4733. deprecated="not deprecated">
  4734. <param name="pos" type="long"/>
  4735. <exception name="IOException" type="java.io.IOException"/>
  4736. <doc>
  4737. <![CDATA[Seek to the given position in the stream.
  4738. The next read() will be from that position.
  4739. <p>This method may seek past the end of the file.
  4740. This produces no exception and an attempt to read from
  4741. the stream will result in -1 indicating the end of the file.
  4742. @param pos the postion to seek to.
  4743. @exception IOException if an I/O error occurs.
  4744. ChecksumException if the chunk to seek to is corrupted]]>
  4745. </doc>
  4746. </method>
  4747. <method name="readFully" return="int"
  4748. abstract="false" native="false" synchronized="false"
  4749. static="true" final="false" visibility="protected"
  4750. deprecated="not deprecated">
  4751. <param name="stm" type="java.io.InputStream"/>
  4752. <param name="buf" type="byte[]"/>
  4753. <param name="offset" type="int"/>
  4754. <param name="len" type="int"/>
  4755. <exception name="IOException" type="java.io.IOException"/>
  4756. <doc>
  4757. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4758. <code>stm</code>
  4759. @param stm an input stream
  4760. @param buf destiniation buffer
  4761. @param offset offset at which to store data
  4762. @param len number of bytes to read
  4763. @return actual number of bytes read
  4764. @throws IOException if there is any IO error]]>
  4765. </doc>
  4766. </method>
  4767. <method name="set"
  4768. abstract="false" native="false" synchronized="true"
  4769. static="false" final="true" visibility="protected"
  4770. deprecated="not deprecated">
  4771. <param name="verifyChecksum" type="boolean"/>
  4772. <param name="sum" type="java.util.zip.Checksum"/>
  4773. <param name="maxChunkSize" type="int"/>
  4774. <param name="checksumSize" type="int"/>
  4775. <doc>
  4776. <![CDATA[Set the checksum related parameters
  4777. @param verifyChecksum whether to verify checksum
  4778. @param sum which type of checksum to use
  4779. @param maxChunkSize maximun chunk size
  4780. @param checksumSize checksum size]]>
  4781. </doc>
  4782. </method>
  4783. <method name="markSupported" return="boolean"
  4784. abstract="false" native="false" synchronized="false"
  4785. static="false" final="true" visibility="public"
  4786. deprecated="not deprecated">
  4787. </method>
  4788. <method name="mark"
  4789. abstract="false" native="false" synchronized="false"
  4790. static="false" final="true" visibility="public"
  4791. deprecated="not deprecated">
  4792. <param name="readlimit" type="int"/>
  4793. </method>
  4794. <method name="reset"
  4795. abstract="false" native="false" synchronized="false"
  4796. static="false" final="true" visibility="public"
  4797. deprecated="not deprecated">
  4798. <exception name="IOException" type="java.io.IOException"/>
  4799. </method>
  4800. <field name="LOG" type="org.apache.commons.logging.Log"
  4801. transient="false" volatile="false"
  4802. static="true" final="true" visibility="public"
  4803. deprecated="not deprecated">
  4804. </field>
  4805. <field name="file" type="org.apache.hadoop.fs.Path"
  4806. transient="false" volatile="false"
  4807. static="false" final="false" visibility="protected"
  4808. deprecated="not deprecated">
  4809. <doc>
  4810. <![CDATA[The file name from which data is read from]]>
  4811. </doc>
  4812. </field>
  4813. <doc>
  4814. <![CDATA[This is a generic input stream for verifying checksums for
  4815. data before it is read by a user.]]>
  4816. </doc>
  4817. </class>
  4818. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4819. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4820. <class name="FSInputStream" extends="java.io.InputStream"
  4821. abstract="true"
  4822. static="false" final="false" visibility="public"
  4823. deprecated="not deprecated">
  4824. <implements name="org.apache.hadoop.fs.Seekable"/>
  4825. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4826. <constructor name="FSInputStream"
  4827. static="false" final="false" visibility="public"
  4828. deprecated="not deprecated">
  4829. </constructor>
  4830. <method name="seek"
  4831. abstract="true" native="false" synchronized="false"
  4832. static="false" final="false" visibility="public"
  4833. deprecated="not deprecated">
  4834. <param name="pos" type="long"/>
  4835. <exception name="IOException" type="java.io.IOException"/>
  4836. <doc>
  4837. <![CDATA[Seek to the given offset from the start of the file.
  4838. The next read() will be from that location. Can't
  4839. seek past the end of the file.]]>
  4840. </doc>
  4841. </method>
  4842. <method name="getPos" return="long"
  4843. abstract="true" native="false" synchronized="false"
  4844. static="false" final="false" visibility="public"
  4845. deprecated="not deprecated">
  4846. <exception name="IOException" type="java.io.IOException"/>
  4847. <doc>
  4848. <![CDATA[Return the current offset from the start of the file]]>
  4849. </doc>
  4850. </method>
  4851. <method name="seekToNewSource" return="boolean"
  4852. abstract="true" native="false" synchronized="false"
  4853. static="false" final="false" visibility="public"
  4854. deprecated="not deprecated">
  4855. <param name="targetPos" type="long"/>
  4856. <exception name="IOException" type="java.io.IOException"/>
  4857. <doc>
  4858. <![CDATA[Seeks a different copy of the data. Returns true if
  4859. found a new source, false otherwise.]]>
  4860. </doc>
  4861. </method>
  4862. <method name="read" return="int"
  4863. abstract="false" native="false" synchronized="false"
  4864. static="false" final="false" visibility="public"
  4865. deprecated="not deprecated">
  4866. <param name="position" type="long"/>
  4867. <param name="buffer" type="byte[]"/>
  4868. <param name="offset" type="int"/>
  4869. <param name="length" type="int"/>
  4870. <exception name="IOException" type="java.io.IOException"/>
  4871. </method>
  4872. <method name="readFully"
  4873. abstract="false" native="false" synchronized="false"
  4874. static="false" final="false" visibility="public"
  4875. deprecated="not deprecated">
  4876. <param name="position" type="long"/>
  4877. <param name="buffer" type="byte[]"/>
  4878. <param name="offset" type="int"/>
  4879. <param name="length" type="int"/>
  4880. <exception name="IOException" type="java.io.IOException"/>
  4881. </method>
  4882. <method name="readFully"
  4883. abstract="false" native="false" synchronized="false"
  4884. static="false" final="false" visibility="public"
  4885. deprecated="not deprecated">
  4886. <param name="position" type="long"/>
  4887. <param name="buffer" type="byte[]"/>
  4888. <exception name="IOException" type="java.io.IOException"/>
  4889. </method>
  4890. <doc>
  4891. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4892. of RAF-style seek ability.]]>
  4893. </doc>
  4894. </class>
  4895. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4896. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4897. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4898. abstract="true"
  4899. static="false" final="false" visibility="public"
  4900. deprecated="not deprecated">
  4901. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4902. static="false" final="false" visibility="protected"
  4903. deprecated="not deprecated">
  4904. </constructor>
  4905. <method name="writeChunk"
  4906. abstract="true" native="false" synchronized="false"
  4907. static="false" final="false" visibility="protected"
  4908. deprecated="not deprecated">
  4909. <param name="b" type="byte[]"/>
  4910. <param name="offset" type="int"/>
  4911. <param name="len" type="int"/>
  4912. <param name="checksum" type="byte[]"/>
  4913. <exception name="IOException" type="java.io.IOException"/>
  4914. </method>
  4915. <method name="write"
  4916. abstract="false" native="false" synchronized="true"
  4917. static="false" final="false" visibility="public"
  4918. deprecated="not deprecated">
  4919. <param name="b" type="int"/>
  4920. <exception name="IOException" type="java.io.IOException"/>
  4921. <doc>
  4922. <![CDATA[Write one byte]]>
  4923. </doc>
  4924. </method>
  4925. <method name="write"
  4926. abstract="false" native="false" synchronized="true"
  4927. static="false" final="false" visibility="public"
  4928. deprecated="not deprecated">
  4929. <param name="b" type="byte[]"/>
  4930. <param name="off" type="int"/>
  4931. <param name="len" type="int"/>
  4932. <exception name="IOException" type="java.io.IOException"/>
  4933. <doc>
  4934. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4935. starting at offset <code>off</code> and generate a checksum for
  4936. each data chunk.
  4937. <p> This method stores bytes from the given array into this
  4938. stream's buffer before it gets checksumed. The buffer gets checksumed
  4939. and flushed to the underlying output stream when all data
  4940. in a checksum chunk are in the buffer. If the buffer is empty and
  4941. requested length is at least as large as the size of next checksum chunk
  4942. size, this method will checksum and write the chunk directly
  4943. to the underlying output stream. Thus it avoids uneccessary data copy.
  4944. @param b the data.
  4945. @param off the start offset in the data.
  4946. @param len the number of bytes to write.
  4947. @exception IOException if an I/O error occurs.]]>
  4948. </doc>
  4949. </method>
  4950. <method name="flushBuffer"
  4951. abstract="false" native="false" synchronized="true"
  4952. static="false" final="false" visibility="protected"
  4953. deprecated="not deprecated">
  4954. <exception name="IOException" type="java.io.IOException"/>
  4955. </method>
  4956. <method name="flushBuffer"
  4957. abstract="false" native="false" synchronized="true"
  4958. static="false" final="false" visibility="protected"
  4959. deprecated="not deprecated">
  4960. <param name="keep" type="boolean"/>
  4961. <exception name="IOException" type="java.io.IOException"/>
  4962. </method>
  4963. <method name="convertToByteStream" return="byte[]"
  4964. abstract="false" native="false" synchronized="false"
  4965. static="true" final="false" visibility="public"
  4966. deprecated="not deprecated">
  4967. <param name="sum" type="java.util.zip.Checksum"/>
  4968. <param name="checksumSize" type="int"/>
  4969. <doc>
  4970. <![CDATA[Converts a checksum integer value to a byte stream]]>
  4971. </doc>
  4972. </method>
  4973. <method name="resetChecksumChunk"
  4974. abstract="false" native="false" synchronized="true"
  4975. static="false" final="false" visibility="protected"
  4976. deprecated="not deprecated">
  4977. <param name="size" type="int"/>
  4978. <doc>
  4979. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  4980. </doc>
  4981. </method>
  4982. <doc>
  4983. <![CDATA[This is a generic output stream for generating checksums for
  4984. data before it is written to the underlying stream]]>
  4985. </doc>
  4986. </class>
  4987. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  4988. <!-- start class org.apache.hadoop.fs.FsShell -->
  4989. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  4990. abstract="false"
  4991. static="false" final="false" visibility="public"
  4992. deprecated="not deprecated">
  4993. <implements name="org.apache.hadoop.util.Tool"/>
  4994. <constructor name="FsShell"
  4995. static="false" final="false" visibility="public"
  4996. deprecated="not deprecated">
  4997. </constructor>
  4998. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  4999. static="false" final="false" visibility="public"
  5000. deprecated="not deprecated">
  5001. </constructor>
  5002. <method name="init"
  5003. abstract="false" native="false" synchronized="false"
  5004. static="false" final="false" visibility="protected"
  5005. deprecated="not deprecated">
  5006. <exception name="IOException" type="java.io.IOException"/>
  5007. </method>
  5008. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  5009. abstract="false" native="false" synchronized="false"
  5010. static="false" final="false" visibility="public"
  5011. deprecated="not deprecated">
  5012. <doc>
  5013. <![CDATA[Returns the Trash object associated with this shell.]]>
  5014. </doc>
  5015. </method>
  5016. <method name="byteDesc" return="java.lang.String"
  5017. abstract="false" native="false" synchronized="false"
  5018. static="true" final="false" visibility="public"
  5019. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  5020. <param name="len" type="long"/>
  5021. <doc>
  5022. <![CDATA[Return an abbreviated English-language desc of the byte length
  5023. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  5024. </doc>
  5025. </method>
  5026. <method name="limitDecimalTo2" return="java.lang.String"
  5027. abstract="false" native="false" synchronized="true"
  5028. static="true" final="false" visibility="public"
  5029. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5030. <param name="d" type="double"/>
  5031. <doc>
  5032. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5033. </doc>
  5034. </method>
  5035. <method name="run" return="int"
  5036. abstract="false" native="false" synchronized="false"
  5037. static="false" final="false" visibility="public"
  5038. deprecated="not deprecated">
  5039. <param name="argv" type="java.lang.String[]"/>
  5040. <exception name="Exception" type="java.lang.Exception"/>
  5041. <doc>
  5042. <![CDATA[run]]>
  5043. </doc>
  5044. </method>
  5045. <method name="close"
  5046. abstract="false" native="false" synchronized="false"
  5047. static="false" final="false" visibility="public"
  5048. deprecated="not deprecated">
  5049. <exception name="IOException" type="java.io.IOException"/>
  5050. </method>
  5051. <method name="main"
  5052. abstract="false" native="false" synchronized="false"
  5053. static="true" final="false" visibility="public"
  5054. deprecated="not deprecated">
  5055. <param name="argv" type="java.lang.String[]"/>
  5056. <exception name="Exception" type="java.lang.Exception"/>
  5057. <doc>
  5058. <![CDATA[main() has some simple utility methods]]>
  5059. </doc>
  5060. </method>
  5061. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5062. transient="false" volatile="false"
  5063. static="false" final="false" visibility="protected"
  5064. deprecated="not deprecated">
  5065. </field>
  5066. <field name="dateForm" type="java.text.SimpleDateFormat"
  5067. transient="false" volatile="false"
  5068. static="true" final="true" visibility="public"
  5069. deprecated="not deprecated">
  5070. </field>
  5071. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5072. transient="false" volatile="false"
  5073. static="true" final="true" visibility="protected"
  5074. deprecated="not deprecated">
  5075. </field>
  5076. <doc>
  5077. <![CDATA[Provide command line access to a FileSystem.]]>
  5078. </doc>
  5079. </class>
  5080. <!-- end class org.apache.hadoop.fs.FsShell -->
  5081. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5082. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5083. abstract="false"
  5084. static="false" final="false" visibility="public"
  5085. deprecated="not deprecated">
  5086. <implements name="java.net.URLStreamHandlerFactory"/>
  5087. <constructor name="FsUrlStreamHandlerFactory"
  5088. static="false" final="false" visibility="public"
  5089. deprecated="not deprecated">
  5090. </constructor>
  5091. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5092. static="false" final="false" visibility="public"
  5093. deprecated="not deprecated">
  5094. </constructor>
  5095. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5096. abstract="false" native="false" synchronized="false"
  5097. static="false" final="false" visibility="public"
  5098. deprecated="not deprecated">
  5099. <param name="protocol" type="java.lang.String"/>
  5100. </method>
  5101. <doc>
  5102. <![CDATA[Factory for URL stream handlers.
  5103. There is only one handler whose job is to create UrlConnections. A
  5104. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5105. implementation.
  5106. Before returning our handler, we make sure that FileSystem knows an
  5107. implementation for the requested scheme/protocol.]]>
  5108. </doc>
  5109. </class>
  5110. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5111. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5112. <class name="GlobPattern" extends="java.lang.Object"
  5113. abstract="false"
  5114. static="false" final="false" visibility="public"
  5115. deprecated="not deprecated">
  5116. <constructor name="GlobPattern" type="java.lang.String"
  5117. static="false" final="false" visibility="public"
  5118. deprecated="not deprecated">
  5119. <doc>
  5120. <![CDATA[Construct the glob pattern object with a glob pattern string
  5121. @param globPattern the glob pattern string]]>
  5122. </doc>
  5123. </constructor>
  5124. <method name="compiled" return="java.util.regex.Pattern"
  5125. abstract="false" native="false" synchronized="false"
  5126. static="false" final="false" visibility="public"
  5127. deprecated="not deprecated">
  5128. <doc>
  5129. <![CDATA[@return the compiled pattern]]>
  5130. </doc>
  5131. </method>
  5132. <method name="compile" return="java.util.regex.Pattern"
  5133. abstract="false" native="false" synchronized="false"
  5134. static="true" final="false" visibility="public"
  5135. deprecated="not deprecated">
  5136. <param name="globPattern" type="java.lang.String"/>
  5137. <doc>
  5138. <![CDATA[Compile glob pattern string
  5139. @param globPattern the glob pattern
  5140. @return the pattern object]]>
  5141. </doc>
  5142. </method>
  5143. <method name="matches" return="boolean"
  5144. abstract="false" native="false" synchronized="false"
  5145. static="false" final="false" visibility="public"
  5146. deprecated="not deprecated">
  5147. <param name="s" type="java.lang.CharSequence"/>
  5148. <doc>
  5149. <![CDATA[Match input against the compiled glob pattern
  5150. @param s input chars
  5151. @return true for successful matches]]>
  5152. </doc>
  5153. </method>
  5154. <method name="set"
  5155. abstract="false" native="false" synchronized="false"
  5156. static="false" final="false" visibility="public"
  5157. deprecated="not deprecated">
  5158. <param name="glob" type="java.lang.String"/>
  5159. <doc>
  5160. <![CDATA[Set and compile a glob pattern
  5161. @param glob the glob pattern string]]>
  5162. </doc>
  5163. </method>
  5164. <method name="hasWildcard" return="boolean"
  5165. abstract="false" native="false" synchronized="false"
  5166. static="false" final="false" visibility="public"
  5167. deprecated="not deprecated">
  5168. <doc>
  5169. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5170. </doc>
  5171. </method>
  5172. <doc>
  5173. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5174. </doc>
  5175. </class>
  5176. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5177. <!-- start class org.apache.hadoop.fs.HardLink -->
  5178. <class name="HardLink" extends="java.lang.Object"
  5179. abstract="false"
  5180. static="false" final="false" visibility="public"
  5181. deprecated="not deprecated">
  5182. <constructor name="HardLink"
  5183. static="false" final="false" visibility="public"
  5184. deprecated="not deprecated">
  5185. </constructor>
  5186. <method name="getLinkMultArgLength" return="int"
  5187. abstract="false" native="false" synchronized="false"
  5188. static="true" final="false" visibility="protected"
  5189. deprecated="not deprecated">
  5190. <param name="fileDir" type="java.io.File"/>
  5191. <param name="fileBaseNames" type="java.lang.String[]"/>
  5192. <param name="linkDir" type="java.io.File"/>
  5193. <exception name="IOException" type="java.io.IOException"/>
  5194. <doc>
  5195. <![CDATA[Calculate the nominal length of all contributors to the total
  5196. commandstring length, including fixed overhead of the OS-dependent
  5197. command. It's protected rather than private, to assist unit testing,
  5198. but real clients are not expected to need it -- see the way
  5199. createHardLinkMult() uses it internally so the user doesn't need to worry
  5200. about it.
  5201. @param fileDir - source directory, parent of fileBaseNames
  5202. @param fileBaseNames - array of path-less file names, relative
  5203. to the source directory
  5204. @param linkDir - target directory where the hardlinks will be put
  5205. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5206. @throws IOException]]>
  5207. </doc>
  5208. </method>
  5209. <method name="getMaxAllowedCmdArgLength" return="int"
  5210. abstract="false" native="false" synchronized="false"
  5211. static="true" final="false" visibility="protected"
  5212. deprecated="not deprecated">
  5213. <doc>
  5214. <![CDATA[Return this private value for use by unit tests.
  5215. Shell commands are not allowed to have a total string length
  5216. exceeding this size.]]>
  5217. </doc>
  5218. </method>
  5219. <method name="createHardLink"
  5220. abstract="false" native="false" synchronized="false"
  5221. static="true" final="false" visibility="public"
  5222. deprecated="not deprecated">
  5223. <param name="file" type="java.io.File"/>
  5224. <param name="linkName" type="java.io.File"/>
  5225. <exception name="IOException" type="java.io.IOException"/>
  5226. <doc>
  5227. <![CDATA[Creates a hardlink
  5228. @param file - existing source file
  5229. @param linkName - desired target link file]]>
  5230. </doc>
  5231. </method>
  5232. <method name="createHardLinkMult"
  5233. abstract="false" native="false" synchronized="false"
  5234. static="true" final="false" visibility="public"
  5235. deprecated="not deprecated">
  5236. <param name="parentDir" type="java.io.File"/>
  5237. <param name="fileBaseNames" type="java.lang.String[]"/>
  5238. <param name="linkDir" type="java.io.File"/>
  5239. <exception name="IOException" type="java.io.IOException"/>
  5240. <doc>
  5241. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5242. directory, into one target directory.
  5243. @param parentDir - directory containing source files
  5244. @param fileBaseNames - list of path-less file names, as returned by
  5245. parentDir.list()
  5246. @param linkDir - where the hardlinks should be put. It must already exist.
  5247. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5248. we will automatically split it into multiple invocations of the
  5249. underlying method.]]>
  5250. </doc>
  5251. </method>
  5252. <method name="createHardLinkMult" return="int"
  5253. abstract="false" native="false" synchronized="false"
  5254. static="true" final="false" visibility="protected"
  5255. deprecated="not deprecated">
  5256. <param name="parentDir" type="java.io.File"/>
  5257. <param name="fileBaseNames" type="java.lang.String[]"/>
  5258. <param name="linkDir" type="java.io.File"/>
  5259. <param name="maxLength" type="int"/>
  5260. <exception name="IOException" type="java.io.IOException"/>
  5261. </method>
  5262. <method name="getLinkCount" return="int"
  5263. abstract="false" native="false" synchronized="false"
  5264. static="true" final="false" visibility="public"
  5265. deprecated="not deprecated">
  5266. <param name="fileName" type="java.io.File"/>
  5267. <exception name="IOException" type="java.io.IOException"/>
  5268. <doc>
  5269. <![CDATA[Retrieves the number of links to the specified file.]]>
  5270. </doc>
  5271. </method>
  5272. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5273. transient="false" volatile="false"
  5274. static="true" final="false" visibility="public"
  5275. deprecated="not deprecated">
  5276. </field>
  5277. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5278. transient="false" volatile="false"
  5279. static="false" final="true" visibility="public"
  5280. deprecated="not deprecated">
  5281. </field>
  5282. <doc>
  5283. <![CDATA[Class for creating hardlinks.
  5284. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5285. The HardLink class was formerly a static inner class of FSUtil,
  5286. and the methods provided were blatantly non-thread-safe.
  5287. To enable volume-parallel Update snapshots, we now provide static
  5288. threadsafe methods that allocate new buffer string arrays
  5289. upon each call. We also provide an API to hardlink all files in a
  5290. directory with a single command, which is up to 128 times more
  5291. efficient - and minimizes the impact of the extra buffer creations.]]>
  5292. </doc>
  5293. </class>
  5294. <!-- end class org.apache.hadoop.fs.HardLink -->
  5295. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5296. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5297. abstract="false"
  5298. static="true" final="false" visibility="public"
  5299. deprecated="not deprecated">
  5300. <constructor name="HardLink.LinkStats"
  5301. static="false" final="false" visibility="public"
  5302. deprecated="not deprecated">
  5303. </constructor>
  5304. <method name="clear"
  5305. abstract="false" native="false" synchronized="false"
  5306. static="false" final="false" visibility="public"
  5307. deprecated="not deprecated">
  5308. </method>
  5309. <method name="report" return="java.lang.String"
  5310. abstract="false" native="false" synchronized="false"
  5311. static="false" final="false" visibility="public"
  5312. deprecated="not deprecated">
  5313. </method>
  5314. <field name="countDirs" type="int"
  5315. transient="false" volatile="false"
  5316. static="false" final="false" visibility="public"
  5317. deprecated="not deprecated">
  5318. </field>
  5319. <field name="countSingleLinks" type="int"
  5320. transient="false" volatile="false"
  5321. static="false" final="false" visibility="public"
  5322. deprecated="not deprecated">
  5323. </field>
  5324. <field name="countMultLinks" type="int"
  5325. transient="false" volatile="false"
  5326. static="false" final="false" visibility="public"
  5327. deprecated="not deprecated">
  5328. </field>
  5329. <field name="countFilesMultLinks" type="int"
  5330. transient="false" volatile="false"
  5331. static="false" final="false" visibility="public"
  5332. deprecated="not deprecated">
  5333. </field>
  5334. <field name="countEmptyDirs" type="int"
  5335. transient="false" volatile="false"
  5336. static="false" final="false" visibility="public"
  5337. deprecated="not deprecated">
  5338. </field>
  5339. <field name="countPhysicalFileCopies" type="int"
  5340. transient="false" volatile="false"
  5341. static="false" final="false" visibility="public"
  5342. deprecated="not deprecated">
  5343. </field>
  5344. <doc>
  5345. <![CDATA[HardLink statistics counters and methods.
  5346. Not multi-thread safe, obviously.
  5347. Init is called during HardLink instantiation, above.
  5348. These are intended for use by knowledgeable clients, not internally,
  5349. because many of the internal methods are static and can't update these
  5350. per-instance counters.]]>
  5351. </doc>
  5352. </class>
  5353. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5354. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5355. <class name="HardLink.OSType" extends="java.lang.Enum"
  5356. abstract="false"
  5357. static="true" final="true" visibility="public"
  5358. deprecated="not deprecated">
  5359. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5360. abstract="false" native="false" synchronized="false"
  5361. static="true" final="false" visibility="public"
  5362. deprecated="not deprecated">
  5363. </method>
  5364. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5365. abstract="false" native="false" synchronized="false"
  5366. static="true" final="false" visibility="public"
  5367. deprecated="not deprecated">
  5368. <param name="name" type="java.lang.String"/>
  5369. </method>
  5370. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5371. transient="false" volatile="false"
  5372. static="true" final="true" visibility="public"
  5373. deprecated="not deprecated">
  5374. </field>
  5375. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5376. transient="false" volatile="false"
  5377. static="true" final="true" visibility="public"
  5378. deprecated="not deprecated">
  5379. </field>
  5380. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5381. transient="false" volatile="false"
  5382. static="true" final="true" visibility="public"
  5383. deprecated="not deprecated">
  5384. </field>
  5385. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5386. transient="false" volatile="false"
  5387. static="true" final="true" visibility="public"
  5388. deprecated="not deprecated">
  5389. </field>
  5390. </class>
  5391. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5392. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5393. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5394. abstract="false"
  5395. static="false" final="false" visibility="public"
  5396. deprecated="not deprecated">
  5397. <constructor name="HarFileSystem"
  5398. static="false" final="false" visibility="public"
  5399. deprecated="not deprecated">
  5400. <doc>
  5401. <![CDATA[public construction of harfilesystem]]>
  5402. </doc>
  5403. </constructor>
  5404. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5405. static="false" final="false" visibility="public"
  5406. deprecated="not deprecated">
  5407. <doc>
  5408. <![CDATA[Constructor to create a HarFileSystem with an
  5409. underlying filesystem.
  5410. @param fs]]>
  5411. </doc>
  5412. </constructor>
  5413. <method name="initialize"
  5414. abstract="false" native="false" synchronized="false"
  5415. static="false" final="false" visibility="public"
  5416. deprecated="not deprecated">
  5417. <param name="name" type="java.net.URI"/>
  5418. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5419. <exception name="IOException" type="java.io.IOException"/>
  5420. <doc>
  5421. <![CDATA[Initialize a Har filesystem per har archive. The
  5422. archive home directory is the top level directory
  5423. in the filesystem that contains the HAR archive.
  5424. Be careful with this method, you do not want to go
  5425. on creating new Filesystem instances per call to
  5426. path.getFileSystem().
  5427. the uri of Har is
  5428. har://underlyingfsscheme-host:port/archivepath.
  5429. or
  5430. har:///archivepath. This assumes the underlying filesystem
  5431. to be used in case not specified.]]>
  5432. </doc>
  5433. </method>
  5434. <method name="getHarVersion" return="int"
  5435. abstract="false" native="false" synchronized="false"
  5436. static="false" final="false" visibility="public"
  5437. deprecated="not deprecated">
  5438. <exception name="IOException" type="java.io.IOException"/>
  5439. </method>
  5440. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5441. abstract="false" native="false" synchronized="false"
  5442. static="false" final="false" visibility="public"
  5443. deprecated="not deprecated">
  5444. <doc>
  5445. <![CDATA[return the top level archive.]]>
  5446. </doc>
  5447. </method>
  5448. <method name="getUri" return="java.net.URI"
  5449. abstract="false" native="false" synchronized="false"
  5450. static="false" final="false" visibility="public"
  5451. deprecated="not deprecated">
  5452. <doc>
  5453. <![CDATA[Returns the uri of this filesystem.
  5454. The uri is of the form
  5455. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5456. </doc>
  5457. </method>
  5458. <method name="getCanonicalServiceName" return="java.lang.String"
  5459. abstract="false" native="false" synchronized="false"
  5460. static="false" final="false" visibility="public"
  5461. deprecated="not deprecated">
  5462. </method>
  5463. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5464. abstract="false" native="false" synchronized="false"
  5465. static="false" final="false" visibility="public"
  5466. deprecated="not deprecated">
  5467. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5468. </method>
  5469. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5470. abstract="false" native="false" synchronized="false"
  5471. static="false" final="false" visibility="public"
  5472. deprecated="not deprecated">
  5473. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5474. <param name="start" type="long"/>
  5475. <param name="len" type="long"/>
  5476. <exception name="IOException" type="java.io.IOException"/>
  5477. <doc>
  5478. <![CDATA[Get block locations from the underlying fs and fix their
  5479. offsets and lengths.
  5480. @param file the input filestatus to get block locations
  5481. @param start the start of the desired range in the contained file
  5482. @param len the length of the desired range
  5483. @return block locations for this segment of file
  5484. @throws IOException]]>
  5485. </doc>
  5486. </method>
  5487. <method name="getHarHash" return="int"
  5488. abstract="false" native="false" synchronized="false"
  5489. static="true" final="false" visibility="public"
  5490. deprecated="not deprecated">
  5491. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5492. <doc>
  5493. <![CDATA[the hash of the path p inside iniside
  5494. the filesystem
  5495. @param p the path in the harfilesystem
  5496. @return the hash code of the path.]]>
  5497. </doc>
  5498. </method>
  5499. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5500. abstract="false" native="false" synchronized="false"
  5501. static="false" final="false" visibility="public"
  5502. deprecated="not deprecated">
  5503. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5504. <exception name="IOException" type="java.io.IOException"/>
  5505. <doc>
  5506. <![CDATA[return the filestatus of files in har archive.
  5507. The permission returned are that of the archive
  5508. index files. The permissions are not persisted
  5509. while creating a hadoop archive.
  5510. @param f the path in har filesystem
  5511. @return filestatus.
  5512. @throws IOException]]>
  5513. </doc>
  5514. </method>
  5515. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5516. abstract="false" native="false" synchronized="false"
  5517. static="false" final="false" visibility="public"
  5518. deprecated="not deprecated">
  5519. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5520. <doc>
  5521. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5522. </doc>
  5523. </method>
  5524. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5525. abstract="false" native="false" synchronized="false"
  5526. static="false" final="false" visibility="public"
  5527. deprecated="not deprecated">
  5528. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5529. <param name="bufferSize" type="int"/>
  5530. <exception name="IOException" type="java.io.IOException"/>
  5531. <doc>
  5532. <![CDATA[Returns a har input stream which fakes end of
  5533. file. It reads the index files to get the part
  5534. file name and the size and start of the file.]]>
  5535. </doc>
  5536. </method>
  5537. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5538. abstract="false" native="false" synchronized="false"
  5539. static="false" final="false" visibility="public"
  5540. deprecated="not deprecated">
  5541. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5542. <param name="bufferSize" type="int"/>
  5543. <exception name="IOException" type="java.io.IOException"/>
  5544. </method>
  5545. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5546. abstract="false" native="false" synchronized="false"
  5547. static="false" final="false" visibility="public"
  5548. deprecated="not deprecated">
  5549. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5550. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5551. <param name="overwrite" type="boolean"/>
  5552. <param name="bufferSize" type="int"/>
  5553. <param name="replication" type="short"/>
  5554. <param name="blockSize" type="long"/>
  5555. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5556. <exception name="IOException" type="java.io.IOException"/>
  5557. </method>
  5558. <method name="close"
  5559. abstract="false" native="false" synchronized="false"
  5560. static="false" final="false" visibility="public"
  5561. deprecated="not deprecated">
  5562. <exception name="IOException" type="java.io.IOException"/>
  5563. </method>
  5564. <method name="setReplication" return="boolean"
  5565. abstract="false" native="false" synchronized="false"
  5566. static="false" final="false" visibility="public"
  5567. deprecated="not deprecated">
  5568. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5569. <param name="replication" type="short"/>
  5570. <exception name="IOException" type="java.io.IOException"/>
  5571. <doc>
  5572. <![CDATA[Not implemented.]]>
  5573. </doc>
  5574. </method>
  5575. <method name="delete" return="boolean"
  5576. abstract="false" native="false" synchronized="false"
  5577. static="false" final="false" visibility="public"
  5578. deprecated="not deprecated">
  5579. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5580. <param name="recursive" type="boolean"/>
  5581. <exception name="IOException" type="java.io.IOException"/>
  5582. <doc>
  5583. <![CDATA[Not implemented.]]>
  5584. </doc>
  5585. </method>
  5586. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5587. abstract="false" native="false" synchronized="false"
  5588. static="false" final="false" visibility="public"
  5589. deprecated="not deprecated">
  5590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5591. <exception name="IOException" type="java.io.IOException"/>
  5592. <doc>
  5593. <![CDATA[liststatus returns the children of a directory
  5594. after looking up the index files.]]>
  5595. </doc>
  5596. </method>
  5597. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5598. abstract="false" native="false" synchronized="false"
  5599. static="false" final="false" visibility="public"
  5600. deprecated="not deprecated">
  5601. <doc>
  5602. <![CDATA[return the top level archive path.]]>
  5603. </doc>
  5604. </method>
  5605. <method name="setWorkingDirectory"
  5606. abstract="false" native="false" synchronized="false"
  5607. static="false" final="false" visibility="public"
  5608. deprecated="not deprecated">
  5609. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5610. </method>
  5611. <method name="mkdirs" return="boolean"
  5612. abstract="false" native="false" synchronized="false"
  5613. static="false" final="false" visibility="public"
  5614. deprecated="not deprecated">
  5615. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5616. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5617. <exception name="IOException" type="java.io.IOException"/>
  5618. <doc>
  5619. <![CDATA[not implemented.]]>
  5620. </doc>
  5621. </method>
  5622. <method name="copyFromLocalFile"
  5623. abstract="false" native="false" synchronized="false"
  5624. static="false" final="false" visibility="public"
  5625. deprecated="not deprecated">
  5626. <param name="delSrc" type="boolean"/>
  5627. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5628. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5629. <exception name="IOException" type="java.io.IOException"/>
  5630. <doc>
  5631. <![CDATA[not implemented.]]>
  5632. </doc>
  5633. </method>
  5634. <method name="copyToLocalFile"
  5635. abstract="false" native="false" synchronized="false"
  5636. static="false" final="false" visibility="public"
  5637. deprecated="not deprecated">
  5638. <param name="delSrc" type="boolean"/>
  5639. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5640. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5641. <exception name="IOException" type="java.io.IOException"/>
  5642. <doc>
  5643. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5644. </doc>
  5645. </method>
  5646. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5647. abstract="false" native="false" synchronized="false"
  5648. static="false" final="false" visibility="public"
  5649. deprecated="not deprecated">
  5650. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5651. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5652. <exception name="IOException" type="java.io.IOException"/>
  5653. <doc>
  5654. <![CDATA[not implemented.]]>
  5655. </doc>
  5656. </method>
  5657. <method name="completeLocalOutput"
  5658. abstract="false" native="false" synchronized="false"
  5659. static="false" final="false" visibility="public"
  5660. deprecated="not deprecated">
  5661. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5662. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5663. <exception name="IOException" type="java.io.IOException"/>
  5664. <doc>
  5665. <![CDATA[not implemented.]]>
  5666. </doc>
  5667. </method>
  5668. <method name="setOwner"
  5669. abstract="false" native="false" synchronized="false"
  5670. static="false" final="false" visibility="public"
  5671. deprecated="not deprecated">
  5672. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5673. <param name="username" type="java.lang.String"/>
  5674. <param name="groupname" type="java.lang.String"/>
  5675. <exception name="IOException" type="java.io.IOException"/>
  5676. <doc>
  5677. <![CDATA[not implemented.]]>
  5678. </doc>
  5679. </method>
  5680. <method name="setPermission"
  5681. abstract="false" native="false" synchronized="false"
  5682. static="false" final="false" visibility="public"
  5683. deprecated="not deprecated">
  5684. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5685. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5686. <exception name="IOException" type="java.io.IOException"/>
  5687. <doc>
  5688. <![CDATA[Not implemented.]]>
  5689. </doc>
  5690. </method>
  5691. <field name="VERSION" type="int"
  5692. transient="false" volatile="false"
  5693. static="true" final="true" visibility="public"
  5694. deprecated="not deprecated">
  5695. </field>
  5696. <doc>
  5697. <![CDATA[This is an implementation of the Hadoop Archive
  5698. Filesystem. This archive Filesystem has index files
  5699. of the form _index* and has contents of the form
  5700. part-*. The index files store the indexes of the
  5701. real files. The index files are of the form _masterindex
  5702. and _index. The master index is a level of indirection
  5703. in to the index file to make the look ups faster. the index
  5704. file is sorted with hash code of the paths that it contains
  5705. and the master index contains pointers to the positions in
  5706. index for ranges of hashcodes.]]>
  5707. </doc>
  5708. </class>
  5709. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5710. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5711. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5712. abstract="false"
  5713. static="false" final="false" visibility="public"
  5714. deprecated="not deprecated">
  5715. <constructor name="InMemoryFileSystem"
  5716. static="false" final="false" visibility="public"
  5717. deprecated="not deprecated">
  5718. </constructor>
  5719. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5720. static="false" final="false" visibility="public"
  5721. deprecated="not deprecated">
  5722. </constructor>
  5723. <method name="reserveSpaceWithCheckSum" return="boolean"
  5724. abstract="false" native="false" synchronized="false"
  5725. static="false" final="false" visibility="public"
  5726. deprecated="not deprecated">
  5727. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5728. <param name="size" type="long"/>
  5729. <doc>
  5730. <![CDATA[Register a file with its size. This will also register a checksum for the
  5731. file that the user is trying to create. This is required since none of
  5732. the FileSystem APIs accept the size of the file as argument. But since it
  5733. is required for us to apriori know the size of the file we are going to
  5734. create, the user must call this method for each file he wants to create
  5735. and reserve memory for that file. We either succeed in reserving memory
  5736. for both the main file and the checksum file and return true, or return
  5737. false.]]>
  5738. </doc>
  5739. </method>
  5740. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5741. abstract="false" native="false" synchronized="false"
  5742. static="false" final="false" visibility="public"
  5743. deprecated="not deprecated">
  5744. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5745. </method>
  5746. <method name="getNumFiles" return="int"
  5747. abstract="false" native="false" synchronized="false"
  5748. static="false" final="false" visibility="public"
  5749. deprecated="not deprecated">
  5750. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5751. </method>
  5752. <method name="getFSSize" return="long"
  5753. abstract="false" native="false" synchronized="false"
  5754. static="false" final="false" visibility="public"
  5755. deprecated="not deprecated">
  5756. </method>
  5757. <method name="getPercentUsed" return="float"
  5758. abstract="false" native="false" synchronized="false"
  5759. static="false" final="false" visibility="public"
  5760. deprecated="not deprecated">
  5761. </method>
  5762. <doc>
  5763. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5764. that the file lengths are known ahead of time and the total lengths of all
  5765. the files is below a certain number (like 100 MB, configurable). Use the API
  5766. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5767. the API for reserving space in the FS. The uri of this filesystem starts with
  5768. ramfs:// .]]>
  5769. </doc>
  5770. </class>
  5771. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5772. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5773. <class name="LocalDirAllocator" extends="java.lang.Object"
  5774. abstract="false"
  5775. static="false" final="false" visibility="public"
  5776. deprecated="not deprecated">
  5777. <constructor name="LocalDirAllocator" type="java.lang.String"
  5778. static="false" final="false" visibility="public"
  5779. deprecated="not deprecated">
  5780. <doc>
  5781. <![CDATA[Create an allocator object
  5782. @param contextCfgItemName]]>
  5783. </doc>
  5784. </constructor>
  5785. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5786. abstract="false" native="false" synchronized="false"
  5787. static="false" final="false" visibility="public"
  5788. deprecated="not deprecated">
  5789. <param name="pathStr" type="java.lang.String"/>
  5790. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5791. <exception name="IOException" type="java.io.IOException"/>
  5792. <doc>
  5793. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5794. the file is not known apriori. We go round-robin over the set of disks
  5795. (via the configured dirs) and return the first complete path where
  5796. we could create the parent directory of the passed path.
  5797. @param pathStr the requested path (this will be created on the first
  5798. available disk)
  5799. @param conf the Configuration object
  5800. @return the complete path to the file on a local disk
  5801. @throws IOException]]>
  5802. </doc>
  5803. </method>
  5804. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5805. abstract="false" native="false" synchronized="false"
  5806. static="false" final="false" visibility="public"
  5807. deprecated="not deprecated">
  5808. <param name="pathStr" type="java.lang.String"/>
  5809. <param name="size" type="long"/>
  5810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5811. <exception name="IOException" type="java.io.IOException"/>
  5812. <doc>
  5813. <![CDATA[Get a path from the local FS. Pass size as
  5814. SIZE_UNKNOWN if not known apriori. We
  5815. round-robin over the set of disks (via the configured dirs) and return
  5816. the first complete path which has enough space
  5817. @param pathStr the requested path (this will be created on the first
  5818. available disk)
  5819. @param size the size of the file that is going to be written
  5820. @param conf the Configuration object
  5821. @return the complete path to the file on a local disk
  5822. @throws IOException]]>
  5823. </doc>
  5824. </method>
  5825. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5826. abstract="false" native="false" synchronized="false"
  5827. static="false" final="false" visibility="public"
  5828. deprecated="not deprecated">
  5829. <param name="pathStr" type="java.lang.String"/>
  5830. <param name="size" type="long"/>
  5831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5832. <param name="checkWrite" type="boolean"/>
  5833. <exception name="IOException" type="java.io.IOException"/>
  5834. <doc>
  5835. <![CDATA[Get a path from the local FS. Pass size as
  5836. SIZE_UNKNOWN if not known apriori. We
  5837. round-robin over the set of disks (via the configured dirs) and return
  5838. the first complete path which has enough space
  5839. @param pathStr the requested path (this will be created on the first
  5840. available disk)
  5841. @param size the size of the file that is going to be written
  5842. @param conf the Configuration object
  5843. @param checkWrite ensure that the path is writable
  5844. @return the complete path to the file on a local disk
  5845. @throws IOException]]>
  5846. </doc>
  5847. </method>
  5848. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5849. abstract="false" native="false" synchronized="false"
  5850. static="false" final="false" visibility="public"
  5851. deprecated="not deprecated">
  5852. <param name="pathStr" type="java.lang.String"/>
  5853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5854. <exception name="IOException" type="java.io.IOException"/>
  5855. <doc>
  5856. <![CDATA[Get a path from the local FS for reading. We search through all the
  5857. configured dirs for the file's existence and return the complete
  5858. path to the file when we find one
  5859. @param pathStr the requested file (this will be searched)
  5860. @param conf the Configuration object
  5861. @return the complete path to the file on a local disk
  5862. @throws IOException]]>
  5863. </doc>
  5864. </method>
  5865. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  5866. abstract="false" native="false" synchronized="false"
  5867. static="false" final="false" visibility="public"
  5868. deprecated="not deprecated">
  5869. <param name="pathStr" type="java.lang.String"/>
  5870. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5871. <exception name="IOException" type="java.io.IOException"/>
  5872. <doc>
  5873. <![CDATA[Get all of the paths that currently exist in the working directories.
  5874. @param pathStr the path underneath the roots
  5875. @param conf the configuration to look up the roots in
  5876. @return all of the paths that exist under any of the roots
  5877. @throws IOException]]>
  5878. </doc>
  5879. </method>
  5880. <method name="createTmpFileForWrite" return="java.io.File"
  5881. abstract="false" native="false" synchronized="false"
  5882. static="false" final="false" visibility="public"
  5883. deprecated="not deprecated">
  5884. <param name="pathStr" type="java.lang.String"/>
  5885. <param name="size" type="long"/>
  5886. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5887. <exception name="IOException" type="java.io.IOException"/>
  5888. <doc>
  5889. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5890. apriori. We round-robin over the set of disks (via the configured dirs)
  5891. and select the first complete path which has enough space. A file is
  5892. created on this directory. The file is guaranteed to go away when the
  5893. JVM exits.
  5894. @param pathStr prefix for the temporary file
  5895. @param size the size of the file that is going to be written
  5896. @param conf the Configuration object
  5897. @return a unique temporary file
  5898. @throws IOException]]>
  5899. </doc>
  5900. </method>
  5901. <method name="isContextValid" return="boolean"
  5902. abstract="false" native="false" synchronized="false"
  5903. static="true" final="false" visibility="public"
  5904. deprecated="not deprecated">
  5905. <param name="contextCfgItemName" type="java.lang.String"/>
  5906. <doc>
  5907. <![CDATA[Method to check whether a context is valid
  5908. @param contextCfgItemName
  5909. @return true/false]]>
  5910. </doc>
  5911. </method>
  5912. <method name="ifExists" return="boolean"
  5913. abstract="false" native="false" synchronized="false"
  5914. static="false" final="false" visibility="public"
  5915. deprecated="not deprecated">
  5916. <param name="pathStr" type="java.lang.String"/>
  5917. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5918. <doc>
  5919. <![CDATA[We search through all the configured dirs for the file's existence
  5920. and return true when we find
  5921. @param pathStr the requested file (this will be searched)
  5922. @param conf the Configuration object
  5923. @return true if files exist. false otherwise
  5924. @throws IOException]]>
  5925. </doc>
  5926. </method>
  5927. <field name="SIZE_UNKNOWN" type="int"
  5928. transient="false" volatile="false"
  5929. static="true" final="true" visibility="public"
  5930. deprecated="not deprecated">
  5931. <doc>
  5932. <![CDATA[Used when size of file to be allocated is unknown.]]>
  5933. </doc>
  5934. </field>
  5935. <doc>
  5936. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5937. files. The way it works is that it is kept track what disk was last
  5938. allocated for a file write. For the current request, the next disk from
  5939. the set of disks would be allocated if the free space on the disk is
  5940. sufficient enough to accommodate the file that is being considered for
  5941. creation. If the space requirements cannot be met, the next disk in order
  5942. would be tried and so on till a disk is found with sufficient capacity.
  5943. Once a disk with sufficient space is identified, a check is done to make
  5944. sure that the disk is writable. Also, there is an API provided that doesn't
  5945. take the space requirements into consideration but just checks whether the
  5946. disk under consideration is writable (this should be used for cases where
  5947. the file size is not known apriori). An API is provided to read a path that
  5948. was created earlier. That API works by doing a scan of all the disks for the
  5949. input pathname.
  5950. This implementation also provides the functionality of having multiple
  5951. allocators per JVM (one for each unique functionality or context, like
  5952. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5953. an allocator per context per JVM.
  5954. Note:
  5955. 1. The contexts referred above are actually the configuration items defined
  5956. in the Configuration class like "mapred.local.dir" (for which we want to
  5957. control the dir allocations). The context-strings are exactly those
  5958. configuration items.
  5959. 2. This implementation does not take into consideration cases where
  5960. a disk becomes read-only or goes out of space while a file is being written
  5961. to (disks are shared between multiple processes, and so the latter situation
  5962. is probable).
  5963. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5964. actually points to the configured directory on the Disk which will be the
  5965. parent for all file write/read allocations.]]>
  5966. </doc>
  5967. </class>
  5968. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5969. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5970. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5971. abstract="false"
  5972. static="false" final="false" visibility="public"
  5973. deprecated="not deprecated">
  5974. <constructor name="LocalFileSystem"
  5975. static="false" final="false" visibility="public"
  5976. deprecated="not deprecated">
  5977. </constructor>
  5978. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5979. static="false" final="false" visibility="public"
  5980. deprecated="not deprecated">
  5981. </constructor>
  5982. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  5983. abstract="false" native="false" synchronized="false"
  5984. static="false" final="false" visibility="public"
  5985. deprecated="not deprecated">
  5986. </method>
  5987. <method name="exists" return="boolean"
  5988. abstract="false" native="false" synchronized="false"
  5989. static="false" final="false" visibility="public"
  5990. deprecated="not deprecated">
  5991. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5992. <exception name="IOException" type="java.io.IOException"/>
  5993. <doc>
  5994. <![CDATA[Get file status.]]>
  5995. </doc>
  5996. </method>
  5997. <method name="pathToFile" return="java.io.File"
  5998. abstract="false" native="false" synchronized="false"
  5999. static="false" final="false" visibility="public"
  6000. deprecated="not deprecated">
  6001. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6002. <doc>
  6003. <![CDATA[Convert a path to a File.]]>
  6004. </doc>
  6005. </method>
  6006. <method name="copyFromLocalFile"
  6007. abstract="false" native="false" synchronized="false"
  6008. static="false" final="false" visibility="public"
  6009. deprecated="not deprecated">
  6010. <param name="delSrc" type="boolean"/>
  6011. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6012. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6013. <exception name="IOException" type="java.io.IOException"/>
  6014. </method>
  6015. <method name="copyToLocalFile"
  6016. abstract="false" native="false" synchronized="false"
  6017. static="false" final="false" visibility="public"
  6018. deprecated="not deprecated">
  6019. <param name="delSrc" type="boolean"/>
  6020. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6021. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6022. <exception name="IOException" type="java.io.IOException"/>
  6023. </method>
  6024. <method name="reportChecksumFailure" return="boolean"
  6025. abstract="false" native="false" synchronized="false"
  6026. static="false" final="false" visibility="public"
  6027. deprecated="not deprecated">
  6028. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6029. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6030. <param name="inPos" type="long"/>
  6031. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6032. <param name="sumsPos" type="long"/>
  6033. <doc>
  6034. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6035. storage will not be reused.]]>
  6036. </doc>
  6037. </method>
  6038. <doc>
  6039. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6040. </doc>
  6041. </class>
  6042. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6043. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6044. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6045. abstract="false"
  6046. static="false" final="false" visibility="public"
  6047. deprecated="not deprecated">
  6048. <constructor name="MD5MD5CRC32FileChecksum"
  6049. static="false" final="false" visibility="public"
  6050. deprecated="not deprecated">
  6051. <doc>
  6052. <![CDATA[Same as this(0, 0, null)]]>
  6053. </doc>
  6054. </constructor>
  6055. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6056. static="false" final="false" visibility="public"
  6057. deprecated="not deprecated">
  6058. <doc>
  6059. <![CDATA[Create a MD5FileChecksum]]>
  6060. </doc>
  6061. </constructor>
  6062. <method name="getAlgorithmName" return="java.lang.String"
  6063. abstract="false" native="false" synchronized="false"
  6064. static="false" final="false" visibility="public"
  6065. deprecated="not deprecated">
  6066. <doc>
  6067. <![CDATA[{@inheritDoc}]]>
  6068. </doc>
  6069. </method>
  6070. <method name="getLength" return="int"
  6071. abstract="false" native="false" synchronized="false"
  6072. static="false" final="false" visibility="public"
  6073. deprecated="not deprecated">
  6074. <doc>
  6075. <![CDATA[{@inheritDoc}]]>
  6076. </doc>
  6077. </method>
  6078. <method name="getBytes" return="byte[]"
  6079. abstract="false" native="false" synchronized="false"
  6080. static="false" final="false" visibility="public"
  6081. deprecated="not deprecated">
  6082. <doc>
  6083. <![CDATA[{@inheritDoc}]]>
  6084. </doc>
  6085. </method>
  6086. <method name="readFields"
  6087. abstract="false" native="false" synchronized="false"
  6088. static="false" final="false" visibility="public"
  6089. deprecated="not deprecated">
  6090. <param name="in" type="java.io.DataInput"/>
  6091. <exception name="IOException" type="java.io.IOException"/>
  6092. <doc>
  6093. <![CDATA[{@inheritDoc}]]>
  6094. </doc>
  6095. </method>
  6096. <method name="write"
  6097. abstract="false" native="false" synchronized="false"
  6098. static="false" final="false" visibility="public"
  6099. deprecated="not deprecated">
  6100. <param name="out" type="java.io.DataOutput"/>
  6101. <exception name="IOException" type="java.io.IOException"/>
  6102. <doc>
  6103. <![CDATA[{@inheritDoc}]]>
  6104. </doc>
  6105. </method>
  6106. <method name="write"
  6107. abstract="false" native="false" synchronized="false"
  6108. static="true" final="false" visibility="public"
  6109. deprecated="not deprecated">
  6110. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6111. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6112. <exception name="IOException" type="java.io.IOException"/>
  6113. <doc>
  6114. <![CDATA[Write that object to xml output.]]>
  6115. </doc>
  6116. </method>
  6117. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6118. abstract="false" native="false" synchronized="false"
  6119. static="true" final="false" visibility="public"
  6120. deprecated="not deprecated">
  6121. <param name="attrs" type="org.xml.sax.Attributes"/>
  6122. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6123. <doc>
  6124. <![CDATA[Return the object represented in the attributes.]]>
  6125. </doc>
  6126. </method>
  6127. <method name="toString" return="java.lang.String"
  6128. abstract="false" native="false" synchronized="false"
  6129. static="false" final="false" visibility="public"
  6130. deprecated="not deprecated">
  6131. <doc>
  6132. <![CDATA[{@inheritDoc}]]>
  6133. </doc>
  6134. </method>
  6135. <field name="LENGTH" type="int"
  6136. transient="false" volatile="false"
  6137. static="true" final="true" visibility="public"
  6138. deprecated="not deprecated">
  6139. </field>
  6140. <doc>
  6141. <![CDATA[MD5 of MD5 of CRC32.]]>
  6142. </doc>
  6143. </class>
  6144. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6145. <!-- start class org.apache.hadoop.fs.Path -->
  6146. <class name="Path" extends="java.lang.Object"
  6147. abstract="false"
  6148. static="false" final="false" visibility="public"
  6149. deprecated="not deprecated">
  6150. <implements name="java.lang.Comparable"/>
  6151. <constructor name="Path" type="java.lang.String, java.lang.String"
  6152. static="false" final="false" visibility="public"
  6153. deprecated="not deprecated">
  6154. <doc>
  6155. <![CDATA[Resolve a child path against a parent path.]]>
  6156. </doc>
  6157. </constructor>
  6158. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6159. static="false" final="false" visibility="public"
  6160. deprecated="not deprecated">
  6161. <doc>
  6162. <![CDATA[Resolve a child path against a parent path.]]>
  6163. </doc>
  6164. </constructor>
  6165. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6166. static="false" final="false" visibility="public"
  6167. deprecated="not deprecated">
  6168. <doc>
  6169. <![CDATA[Resolve a child path against a parent path.]]>
  6170. </doc>
  6171. </constructor>
  6172. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6173. static="false" final="false" visibility="public"
  6174. deprecated="not deprecated">
  6175. <doc>
  6176. <![CDATA[Resolve a child path against a parent path.]]>
  6177. </doc>
  6178. </constructor>
  6179. <constructor name="Path" type="java.lang.String"
  6180. static="false" final="false" visibility="public"
  6181. deprecated="not deprecated">
  6182. <doc>
  6183. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6184. unescaped elements and some additional normalization.]]>
  6185. </doc>
  6186. </constructor>
  6187. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6188. static="false" final="false" visibility="public"
  6189. deprecated="not deprecated">
  6190. <doc>
  6191. <![CDATA[Construct a Path from components.]]>
  6192. </doc>
  6193. </constructor>
  6194. <constructor name="Path" type="java.net.URI"
  6195. static="false" final="false" visibility="public"
  6196. deprecated="not deprecated">
  6197. <doc>
  6198. <![CDATA[Construct a path from a URI]]>
  6199. </doc>
  6200. </constructor>
  6201. <method name="toUri" return="java.net.URI"
  6202. abstract="false" native="false" synchronized="false"
  6203. static="false" final="false" visibility="public"
  6204. deprecated="not deprecated">
  6205. <doc>
  6206. <![CDATA[Convert this to a URI.]]>
  6207. </doc>
  6208. </method>
  6209. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6210. abstract="false" native="false" synchronized="false"
  6211. static="false" final="false" visibility="public"
  6212. deprecated="not deprecated">
  6213. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6214. <exception name="IOException" type="java.io.IOException"/>
  6215. <doc>
  6216. <![CDATA[Return the FileSystem that owns this Path.]]>
  6217. </doc>
  6218. </method>
  6219. <method name="isAbsolute" return="boolean"
  6220. abstract="false" native="false" synchronized="false"
  6221. static="false" final="false" visibility="public"
  6222. deprecated="not deprecated">
  6223. <doc>
  6224. <![CDATA[True if the directory of this path is absolute.]]>
  6225. </doc>
  6226. </method>
  6227. <method name="getName" return="java.lang.String"
  6228. abstract="false" native="false" synchronized="false"
  6229. static="false" final="false" visibility="public"
  6230. deprecated="not deprecated">
  6231. <doc>
  6232. <![CDATA[Returns the final component of this path.]]>
  6233. </doc>
  6234. </method>
  6235. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6236. abstract="false" native="false" synchronized="false"
  6237. static="false" final="false" visibility="public"
  6238. deprecated="not deprecated">
  6239. <doc>
  6240. <![CDATA[Returns the parent of a path or null if at root.]]>
  6241. </doc>
  6242. </method>
  6243. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6244. abstract="false" native="false" synchronized="false"
  6245. static="false" final="false" visibility="public"
  6246. deprecated="not deprecated">
  6247. <param name="suffix" type="java.lang.String"/>
  6248. <doc>
  6249. <![CDATA[Adds a suffix to the final name in the path.]]>
  6250. </doc>
  6251. </method>
  6252. <method name="toString" return="java.lang.String"
  6253. abstract="false" native="false" synchronized="false"
  6254. static="false" final="false" visibility="public"
  6255. deprecated="not deprecated">
  6256. </method>
  6257. <method name="equals" return="boolean"
  6258. abstract="false" native="false" synchronized="false"
  6259. static="false" final="false" visibility="public"
  6260. deprecated="not deprecated">
  6261. <param name="o" type="java.lang.Object"/>
  6262. </method>
  6263. <method name="hashCode" return="int"
  6264. abstract="false" native="false" synchronized="false"
  6265. static="false" final="false" visibility="public"
  6266. deprecated="not deprecated">
  6267. </method>
  6268. <method name="compareTo" return="int"
  6269. abstract="false" native="false" synchronized="false"
  6270. static="false" final="false" visibility="public"
  6271. deprecated="not deprecated">
  6272. <param name="o" type="java.lang.Object"/>
  6273. </method>
  6274. <method name="depth" return="int"
  6275. abstract="false" native="false" synchronized="false"
  6276. static="false" final="false" visibility="public"
  6277. deprecated="not deprecated">
  6278. <doc>
  6279. <![CDATA[Return the number of elements in this path.]]>
  6280. </doc>
  6281. </method>
  6282. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6283. abstract="false" native="false" synchronized="false"
  6284. static="false" final="false" visibility="public"
  6285. deprecated="not deprecated">
  6286. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6287. <doc>
  6288. <![CDATA[Returns a qualified path object.]]>
  6289. </doc>
  6290. </method>
  6291. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6292. abstract="false" native="false" synchronized="false"
  6293. static="false" final="false" visibility="public"
  6294. deprecated="not deprecated">
  6295. <param name="defaultUri" type="java.net.URI"/>
  6296. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6297. <doc>
  6298. <![CDATA[Returns a qualified path object.]]>
  6299. </doc>
  6300. </method>
  6301. <field name="SEPARATOR" type="java.lang.String"
  6302. transient="false" volatile="false"
  6303. static="true" final="true" visibility="public"
  6304. deprecated="not deprecated">
  6305. <doc>
  6306. <![CDATA[The directory separator, a slash.]]>
  6307. </doc>
  6308. </field>
  6309. <field name="SEPARATOR_CHAR" type="char"
  6310. transient="false" volatile="false"
  6311. static="true" final="true" visibility="public"
  6312. deprecated="not deprecated">
  6313. </field>
  6314. <field name="CUR_DIR" type="java.lang.String"
  6315. transient="false" volatile="false"
  6316. static="true" final="true" visibility="public"
  6317. deprecated="not deprecated">
  6318. </field>
  6319. <doc>
  6320. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6321. Path strings use slash as the directory separator. A path string is
  6322. absolute if it begins with a slash.]]>
  6323. </doc>
  6324. </class>
  6325. <!-- end class org.apache.hadoop.fs.Path -->
  6326. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6327. <interface name="PathFilter" abstract="true"
  6328. static="false" final="false" visibility="public"
  6329. deprecated="not deprecated">
  6330. <method name="accept" return="boolean"
  6331. abstract="false" native="false" synchronized="false"
  6332. static="false" final="false" visibility="public"
  6333. deprecated="not deprecated">
  6334. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6335. <doc>
  6336. <![CDATA[Tests whether or not the specified abstract pathname should be
  6337. included in a pathname list.
  6338. @param path The abstract pathname to be tested
  6339. @return <code>true</code> if and only if <code>pathname</code>
  6340. should be included]]>
  6341. </doc>
  6342. </method>
  6343. </interface>
  6344. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6345. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6346. <interface name="PositionedReadable" abstract="true"
  6347. static="false" final="false" visibility="public"
  6348. deprecated="not deprecated">
  6349. <method name="read" return="int"
  6350. abstract="false" native="false" synchronized="false"
  6351. static="false" final="false" visibility="public"
  6352. deprecated="not deprecated">
  6353. <param name="position" type="long"/>
  6354. <param name="buffer" type="byte[]"/>
  6355. <param name="offset" type="int"/>
  6356. <param name="length" type="int"/>
  6357. <exception name="IOException" type="java.io.IOException"/>
  6358. <doc>
  6359. <![CDATA[Read upto the specified number of bytes, from a given
  6360. position within a file, and return the number of bytes read. This does not
  6361. change the current offset of a file, and is thread-safe.]]>
  6362. </doc>
  6363. </method>
  6364. <method name="readFully"
  6365. abstract="false" native="false" synchronized="false"
  6366. static="false" final="false" visibility="public"
  6367. deprecated="not deprecated">
  6368. <param name="position" type="long"/>
  6369. <param name="buffer" type="byte[]"/>
  6370. <param name="offset" type="int"/>
  6371. <param name="length" type="int"/>
  6372. <exception name="IOException" type="java.io.IOException"/>
  6373. <doc>
  6374. <![CDATA[Read the specified number of bytes, from a given
  6375. position within a file. This does not
  6376. change the current offset of a file, and is thread-safe.]]>
  6377. </doc>
  6378. </method>
  6379. <method name="readFully"
  6380. abstract="false" native="false" synchronized="false"
  6381. static="false" final="false" visibility="public"
  6382. deprecated="not deprecated">
  6383. <param name="position" type="long"/>
  6384. <param name="buffer" type="byte[]"/>
  6385. <exception name="IOException" type="java.io.IOException"/>
  6386. <doc>
  6387. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6388. position within a file. This does not
  6389. change the current offset of a file, and is thread-safe.]]>
  6390. </doc>
  6391. </method>
  6392. <doc>
  6393. <![CDATA[Stream that permits positional reading.]]>
  6394. </doc>
  6395. </interface>
  6396. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6397. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6398. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6399. abstract="false"
  6400. static="false" final="false" visibility="public"
  6401. deprecated="not deprecated">
  6402. <constructor name="RawLocalFileSystem"
  6403. static="false" final="false" visibility="public"
  6404. deprecated="not deprecated">
  6405. </constructor>
  6406. <method name="pathToFile" return="java.io.File"
  6407. abstract="false" native="false" synchronized="false"
  6408. static="false" final="false" visibility="public"
  6409. deprecated="not deprecated">
  6410. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6411. <doc>
  6412. <![CDATA[Convert a path to a File.]]>
  6413. </doc>
  6414. </method>
  6415. <method name="getUri" return="java.net.URI"
  6416. abstract="false" native="false" synchronized="false"
  6417. static="false" final="false" visibility="public"
  6418. deprecated="not deprecated">
  6419. </method>
  6420. <method name="initialize"
  6421. abstract="false" native="false" synchronized="false"
  6422. static="false" final="false" visibility="public"
  6423. deprecated="not deprecated">
  6424. <param name="uri" type="java.net.URI"/>
  6425. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6426. <exception name="IOException" type="java.io.IOException"/>
  6427. </method>
  6428. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6429. abstract="false" native="false" synchronized="false"
  6430. static="false" final="false" visibility="public"
  6431. deprecated="not deprecated">
  6432. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6433. <param name="bufferSize" type="int"/>
  6434. <exception name="IOException" type="java.io.IOException"/>
  6435. </method>
  6436. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6437. abstract="false" native="false" synchronized="false"
  6438. static="false" final="false" visibility="public"
  6439. deprecated="not deprecated">
  6440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6441. <param name="bufferSize" type="int"/>
  6442. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6443. <exception name="IOException" type="java.io.IOException"/>
  6444. <doc>
  6445. <![CDATA[{@inheritDoc}]]>
  6446. </doc>
  6447. </method>
  6448. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6449. abstract="false" native="false" synchronized="false"
  6450. static="false" final="false" visibility="public"
  6451. deprecated="not deprecated">
  6452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6453. <param name="overwrite" type="boolean"/>
  6454. <param name="bufferSize" type="int"/>
  6455. <param name="replication" type="short"/>
  6456. <param name="blockSize" type="long"/>
  6457. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6458. <exception name="IOException" type="java.io.IOException"/>
  6459. <doc>
  6460. <![CDATA[{@inheritDoc}]]>
  6461. </doc>
  6462. </method>
  6463. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6464. abstract="false" native="false" synchronized="false"
  6465. static="false" final="false" visibility="public"
  6466. deprecated="not deprecated">
  6467. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6468. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6469. <param name="overwrite" type="boolean"/>
  6470. <param name="bufferSize" type="int"/>
  6471. <param name="replication" type="short"/>
  6472. <param name="blockSize" type="long"/>
  6473. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6474. <exception name="IOException" type="java.io.IOException"/>
  6475. <doc>
  6476. <![CDATA[{@inheritDoc}]]>
  6477. </doc>
  6478. </method>
  6479. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6480. abstract="false" native="false" synchronized="false"
  6481. static="false" final="false" visibility="public"
  6482. deprecated="not deprecated">
  6483. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6484. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6485. <param name="overwrite" type="boolean"/>
  6486. <param name="bufferSize" type="int"/>
  6487. <param name="replication" type="short"/>
  6488. <param name="blockSize" type="long"/>
  6489. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6490. <exception name="IOException" type="java.io.IOException"/>
  6491. <doc>
  6492. <![CDATA[{@inheritDoc}]]>
  6493. </doc>
  6494. </method>
  6495. <method name="rename" return="boolean"
  6496. abstract="false" native="false" synchronized="false"
  6497. static="false" final="false" visibility="public"
  6498. deprecated="not deprecated">
  6499. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6500. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6501. <exception name="IOException" type="java.io.IOException"/>
  6502. </method>
  6503. <method name="delete" return="boolean"
  6504. abstract="false" native="false" synchronized="false"
  6505. static="false" final="false" visibility="public"
  6506. deprecated="not deprecated">
  6507. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6508. <exception name="IOException" type="java.io.IOException"/>
  6509. </method>
  6510. <method name="delete" return="boolean"
  6511. abstract="false" native="false" synchronized="false"
  6512. static="false" final="false" visibility="public"
  6513. deprecated="not deprecated">
  6514. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6515. <param name="recursive" type="boolean"/>
  6516. <exception name="IOException" type="java.io.IOException"/>
  6517. </method>
  6518. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6519. abstract="false" native="false" synchronized="false"
  6520. static="false" final="false" visibility="public"
  6521. deprecated="not deprecated">
  6522. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6523. <exception name="IOException" type="java.io.IOException"/>
  6524. </method>
  6525. <method name="mkdirs" return="boolean"
  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. <exception name="IOException" type="java.io.IOException"/>
  6531. <doc>
  6532. <![CDATA[Creates the specified directory hierarchy. Does not
  6533. treat existence as an error.]]>
  6534. </doc>
  6535. </method>
  6536. <method name="mkdirs" return="boolean"
  6537. abstract="false" native="false" synchronized="false"
  6538. static="false" final="false" visibility="public"
  6539. deprecated="not deprecated">
  6540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6541. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6542. <exception name="IOException" type="java.io.IOException"/>
  6543. <doc>
  6544. <![CDATA[{@inheritDoc}]]>
  6545. </doc>
  6546. </method>
  6547. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6548. abstract="false" native="false" synchronized="false"
  6549. static="false" final="false" visibility="public"
  6550. deprecated="not deprecated">
  6551. </method>
  6552. <method name="setWorkingDirectory"
  6553. abstract="false" native="false" synchronized="false"
  6554. static="false" final="false" visibility="public"
  6555. deprecated="not deprecated">
  6556. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6557. <doc>
  6558. <![CDATA[Set the working directory to the given directory.]]>
  6559. </doc>
  6560. </method>
  6561. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6562. abstract="false" native="false" synchronized="false"
  6563. static="false" final="false" visibility="public"
  6564. deprecated="not deprecated">
  6565. </method>
  6566. <method name="moveFromLocalFile"
  6567. abstract="false" native="false" synchronized="false"
  6568. static="false" final="false" visibility="public"
  6569. deprecated="not deprecated">
  6570. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6571. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6572. <exception name="IOException" type="java.io.IOException"/>
  6573. </method>
  6574. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6575. abstract="false" native="false" synchronized="false"
  6576. static="false" final="false" visibility="public"
  6577. deprecated="not deprecated">
  6578. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6579. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6580. <exception name="IOException" type="java.io.IOException"/>
  6581. </method>
  6582. <method name="completeLocalOutput"
  6583. abstract="false" native="false" synchronized="false"
  6584. static="false" final="false" visibility="public"
  6585. deprecated="not deprecated">
  6586. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6587. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6588. <exception name="IOException" type="java.io.IOException"/>
  6589. </method>
  6590. <method name="close"
  6591. abstract="false" native="false" synchronized="false"
  6592. static="false" final="false" visibility="public"
  6593. deprecated="not deprecated">
  6594. <exception name="IOException" type="java.io.IOException"/>
  6595. </method>
  6596. <method name="toString" return="java.lang.String"
  6597. abstract="false" native="false" synchronized="false"
  6598. static="false" final="false" visibility="public"
  6599. deprecated="not deprecated">
  6600. </method>
  6601. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6602. abstract="false" native="false" synchronized="false"
  6603. static="false" final="false" visibility="public"
  6604. deprecated="not deprecated">
  6605. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6606. <exception name="IOException" type="java.io.IOException"/>
  6607. </method>
  6608. <method name="setOwner"
  6609. abstract="false" native="false" synchronized="false"
  6610. static="false" final="false" visibility="public"
  6611. deprecated="not deprecated">
  6612. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6613. <param name="username" type="java.lang.String"/>
  6614. <param name="groupname" type="java.lang.String"/>
  6615. <exception name="IOException" type="java.io.IOException"/>
  6616. <doc>
  6617. <![CDATA[Use the command chown to set owner.]]>
  6618. </doc>
  6619. </method>
  6620. <method name="setPermission"
  6621. abstract="false" native="false" synchronized="false"
  6622. static="false" final="false" visibility="public"
  6623. deprecated="not deprecated">
  6624. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6625. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6626. <exception name="IOException" type="java.io.IOException"/>
  6627. <doc>
  6628. <![CDATA[Use the command chmod to set permission.]]>
  6629. </doc>
  6630. </method>
  6631. <doc>
  6632. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6633. </doc>
  6634. </class>
  6635. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6636. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6637. <interface name="Seekable" abstract="true"
  6638. static="false" final="false" visibility="public"
  6639. deprecated="not deprecated">
  6640. <method name="seek"
  6641. abstract="false" native="false" synchronized="false"
  6642. static="false" final="false" visibility="public"
  6643. deprecated="not deprecated">
  6644. <param name="pos" type="long"/>
  6645. <exception name="IOException" type="java.io.IOException"/>
  6646. <doc>
  6647. <![CDATA[Seek to the given offset from the start of the file.
  6648. The next read() will be from that location. Can't
  6649. seek past the end of the file.]]>
  6650. </doc>
  6651. </method>
  6652. <method name="getPos" return="long"
  6653. abstract="false" native="false" synchronized="false"
  6654. static="false" final="false" visibility="public"
  6655. deprecated="not deprecated">
  6656. <exception name="IOException" type="java.io.IOException"/>
  6657. <doc>
  6658. <![CDATA[Return the current offset from the start of the file]]>
  6659. </doc>
  6660. </method>
  6661. <method name="seekToNewSource" return="boolean"
  6662. abstract="false" native="false" synchronized="false"
  6663. static="false" final="false" visibility="public"
  6664. deprecated="not deprecated">
  6665. <param name="targetPos" type="long"/>
  6666. <exception name="IOException" type="java.io.IOException"/>
  6667. <doc>
  6668. <![CDATA[Seeks a different copy of the data. Returns true if
  6669. found a new source, false otherwise.]]>
  6670. </doc>
  6671. </method>
  6672. <doc>
  6673. <![CDATA[Stream that permits seeking.]]>
  6674. </doc>
  6675. </interface>
  6676. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6677. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6678. <interface name="Syncable" abstract="true"
  6679. static="false" final="false" visibility="public"
  6680. deprecated="not deprecated">
  6681. <method name="sync"
  6682. abstract="false" native="false" synchronized="false"
  6683. static="false" final="false" visibility="public"
  6684. deprecated="not deprecated">
  6685. <exception name="IOException" type="java.io.IOException"/>
  6686. <doc>
  6687. <![CDATA[Synchronize all buffer with the underlying devices.
  6688. @throws IOException]]>
  6689. </doc>
  6690. </method>
  6691. <doc>
  6692. <![CDATA[This interface declare the sync() operation.]]>
  6693. </doc>
  6694. </interface>
  6695. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6696. <!-- start class org.apache.hadoop.fs.Trash -->
  6697. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6698. abstract="false"
  6699. static="false" final="false" visibility="public"
  6700. deprecated="not deprecated">
  6701. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6702. static="false" final="false" visibility="public"
  6703. deprecated="not deprecated">
  6704. <exception name="IOException" type="java.io.IOException"/>
  6705. <doc>
  6706. <![CDATA[Construct a trash can accessor.
  6707. @param conf a Configuration]]>
  6708. </doc>
  6709. </constructor>
  6710. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6711. static="false" final="false" visibility="public"
  6712. deprecated="not deprecated">
  6713. <exception name="IOException" type="java.io.IOException"/>
  6714. <doc>
  6715. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6716. </doc>
  6717. </constructor>
  6718. <method name="moveToTrash" return="boolean"
  6719. abstract="false" native="false" synchronized="false"
  6720. static="false" final="false" visibility="public"
  6721. deprecated="not deprecated">
  6722. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6723. <exception name="IOException" type="java.io.IOException"/>
  6724. <doc>
  6725. <![CDATA[Move a file or directory to the current trash directory.
  6726. @return false if the item is already in the trash or trash is disabled]]>
  6727. </doc>
  6728. </method>
  6729. <method name="checkpoint"
  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[Create a trash checkpoint.]]>
  6736. </doc>
  6737. </method>
  6738. <method name="expunge"
  6739. abstract="false" native="false" synchronized="false"
  6740. static="false" final="false" visibility="public"
  6741. deprecated="not deprecated">
  6742. <exception name="IOException" type="java.io.IOException"/>
  6743. <doc>
  6744. <![CDATA[Delete old checkpoints.]]>
  6745. </doc>
  6746. </method>
  6747. <method name="getEmptier" return="java.lang.Runnable"
  6748. abstract="false" native="false" synchronized="false"
  6749. static="false" final="false" visibility="public"
  6750. deprecated="not deprecated">
  6751. <exception name="IOException" type="java.io.IOException"/>
  6752. <doc>
  6753. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6754. users, intended to be run by the superuser. Only one checkpoint is kept
  6755. at a time.]]>
  6756. </doc>
  6757. </method>
  6758. <method name="main"
  6759. abstract="false" native="false" synchronized="false"
  6760. static="true" final="false" visibility="public"
  6761. deprecated="not deprecated">
  6762. <param name="args" type="java.lang.String[]"/>
  6763. <exception name="Exception" type="java.lang.Exception"/>
  6764. <doc>
  6765. <![CDATA[Run an emptier.]]>
  6766. </doc>
  6767. </method>
  6768. <doc>
  6769. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6770. directory, a subdirectory of their home directory named ".Trash". Files are
  6771. initially moved to a <i>current</i> sub-directory of the trash directory.
  6772. Within that sub-directory their original path is preserved. Periodically
  6773. one may checkpoint the current trash and remove older checkpoints. (This
  6774. design permits trash management without enumeration of the full trash
  6775. content, without date support in the filesystem, and without clock
  6776. synchronization.)]]>
  6777. </doc>
  6778. </class>
  6779. <!-- end class org.apache.hadoop.fs.Trash -->
  6780. </package>
  6781. <package name="org.apache.hadoop.fs.ftp">
  6782. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6783. <class name="FTPException" extends="java.lang.RuntimeException"
  6784. abstract="false"
  6785. static="false" final="false" visibility="public"
  6786. deprecated="not deprecated">
  6787. <constructor name="FTPException" type="java.lang.String"
  6788. static="false" final="false" visibility="public"
  6789. deprecated="not deprecated">
  6790. </constructor>
  6791. <constructor name="FTPException" type="java.lang.Throwable"
  6792. static="false" final="false" visibility="public"
  6793. deprecated="not deprecated">
  6794. </constructor>
  6795. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6796. static="false" final="false" visibility="public"
  6797. deprecated="not deprecated">
  6798. </constructor>
  6799. <doc>
  6800. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6801. </doc>
  6802. </class>
  6803. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6804. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6805. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6806. abstract="false"
  6807. static="false" final="false" visibility="public"
  6808. deprecated="not deprecated">
  6809. <constructor name="FTPFileSystem"
  6810. static="false" final="false" visibility="public"
  6811. deprecated="not deprecated">
  6812. </constructor>
  6813. <method name="initialize"
  6814. abstract="false" native="false" synchronized="false"
  6815. static="false" final="false" visibility="public"
  6816. deprecated="not deprecated">
  6817. <param name="uri" type="java.net.URI"/>
  6818. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6819. <exception name="IOException" type="java.io.IOException"/>
  6820. </method>
  6821. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6822. abstract="false" native="false" synchronized="false"
  6823. static="false" final="false" visibility="public"
  6824. deprecated="not deprecated">
  6825. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6826. <param name="bufferSize" type="int"/>
  6827. <exception name="IOException" type="java.io.IOException"/>
  6828. </method>
  6829. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6830. abstract="false" native="false" synchronized="false"
  6831. static="false" final="false" visibility="public"
  6832. deprecated="not deprecated">
  6833. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6834. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6835. <param name="overwrite" type="boolean"/>
  6836. <param name="bufferSize" type="int"/>
  6837. <param name="replication" type="short"/>
  6838. <param name="blockSize" type="long"/>
  6839. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6840. <exception name="IOException" type="java.io.IOException"/>
  6841. <doc>
  6842. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6843. this class or else the invocation will block.]]>
  6844. </doc>
  6845. </method>
  6846. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6847. abstract="false" native="false" synchronized="false"
  6848. static="false" final="false" visibility="public"
  6849. deprecated="not deprecated">
  6850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6851. <param name="bufferSize" type="int"/>
  6852. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6853. <exception name="IOException" type="java.io.IOException"/>
  6854. <doc>
  6855. <![CDATA[This optional operation is not yet supported.]]>
  6856. </doc>
  6857. </method>
  6858. <method name="delete" return="boolean"
  6859. abstract="false" native="false" synchronized="false"
  6860. static="false" final="false" visibility="public"
  6861. deprecated="Use delete(Path, boolean) instead">
  6862. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6863. <exception name="IOException" type="java.io.IOException"/>
  6864. <doc>
  6865. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6866. </doc>
  6867. </method>
  6868. <method name="delete" return="boolean"
  6869. abstract="false" native="false" synchronized="false"
  6870. static="false" final="false" visibility="public"
  6871. deprecated="not deprecated">
  6872. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6873. <param name="recursive" type="boolean"/>
  6874. <exception name="IOException" type="java.io.IOException"/>
  6875. </method>
  6876. <method name="getUri" return="java.net.URI"
  6877. abstract="false" native="false" synchronized="false"
  6878. static="false" final="false" visibility="public"
  6879. deprecated="not deprecated">
  6880. </method>
  6881. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6882. abstract="false" native="false" synchronized="false"
  6883. static="false" final="false" visibility="public"
  6884. deprecated="not deprecated">
  6885. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6886. <exception name="IOException" type="java.io.IOException"/>
  6887. </method>
  6888. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6889. abstract="false" native="false" synchronized="false"
  6890. static="false" final="false" visibility="public"
  6891. deprecated="not deprecated">
  6892. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6893. <exception name="IOException" type="java.io.IOException"/>
  6894. </method>
  6895. <method name="mkdirs" return="boolean"
  6896. abstract="false" native="false" synchronized="false"
  6897. static="false" final="false" visibility="public"
  6898. deprecated="not deprecated">
  6899. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6900. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6901. <exception name="IOException" type="java.io.IOException"/>
  6902. </method>
  6903. <method name="rename" return="boolean"
  6904. abstract="false" native="false" synchronized="false"
  6905. static="false" final="false" visibility="public"
  6906. deprecated="not deprecated">
  6907. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6908. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6909. <exception name="IOException" type="java.io.IOException"/>
  6910. </method>
  6911. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6912. abstract="false" native="false" synchronized="false"
  6913. static="false" final="false" visibility="public"
  6914. deprecated="not deprecated">
  6915. </method>
  6916. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6917. abstract="false" native="false" synchronized="false"
  6918. static="false" final="false" visibility="public"
  6919. deprecated="not deprecated">
  6920. </method>
  6921. <method name="setWorkingDirectory"
  6922. abstract="false" native="false" synchronized="false"
  6923. static="false" final="false" visibility="public"
  6924. deprecated="not deprecated">
  6925. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6926. </method>
  6927. <field name="LOG" type="org.apache.commons.logging.Log"
  6928. transient="false" volatile="false"
  6929. static="true" final="true" visibility="public"
  6930. deprecated="not deprecated">
  6931. </field>
  6932. <field name="DEFAULT_BUFFER_SIZE" type="int"
  6933. transient="false" volatile="false"
  6934. static="true" final="true" visibility="public"
  6935. deprecated="not deprecated">
  6936. </field>
  6937. <field name="DEFAULT_BLOCK_SIZE" type="int"
  6938. transient="false" volatile="false"
  6939. static="true" final="true" visibility="public"
  6940. deprecated="not deprecated">
  6941. </field>
  6942. <doc>
  6943. <![CDATA[<p>
  6944. A {@link FileSystem} backed by an FTP client provided by <a
  6945. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  6946. </p>]]>
  6947. </doc>
  6948. </class>
  6949. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6950. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6951. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  6952. abstract="false"
  6953. static="false" final="false" visibility="public"
  6954. deprecated="not deprecated">
  6955. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  6956. static="false" final="false" visibility="public"
  6957. deprecated="not deprecated">
  6958. </constructor>
  6959. <method name="getPos" return="long"
  6960. abstract="false" native="false" synchronized="false"
  6961. static="false" final="false" visibility="public"
  6962. deprecated="not deprecated">
  6963. <exception name="IOException" type="java.io.IOException"/>
  6964. </method>
  6965. <method name="seek"
  6966. abstract="false" native="false" synchronized="false"
  6967. static="false" final="false" visibility="public"
  6968. deprecated="not deprecated">
  6969. <param name="pos" type="long"/>
  6970. <exception name="IOException" type="java.io.IOException"/>
  6971. </method>
  6972. <method name="seekToNewSource" return="boolean"
  6973. abstract="false" native="false" synchronized="false"
  6974. static="false" final="false" visibility="public"
  6975. deprecated="not deprecated">
  6976. <param name="targetPos" type="long"/>
  6977. <exception name="IOException" type="java.io.IOException"/>
  6978. </method>
  6979. <method name="read" return="int"
  6980. abstract="false" native="false" synchronized="true"
  6981. static="false" final="false" visibility="public"
  6982. deprecated="not deprecated">
  6983. <exception name="IOException" type="java.io.IOException"/>
  6984. </method>
  6985. <method name="read" return="int"
  6986. abstract="false" native="false" synchronized="true"
  6987. static="false" final="false" visibility="public"
  6988. deprecated="not deprecated">
  6989. <param name="buf" type="byte[]"/>
  6990. <param name="off" type="int"/>
  6991. <param name="len" type="int"/>
  6992. <exception name="IOException" type="java.io.IOException"/>
  6993. </method>
  6994. <method name="close"
  6995. abstract="false" native="false" synchronized="true"
  6996. static="false" final="false" visibility="public"
  6997. deprecated="not deprecated">
  6998. <exception name="IOException" type="java.io.IOException"/>
  6999. </method>
  7000. <method name="markSupported" return="boolean"
  7001. abstract="false" native="false" synchronized="false"
  7002. static="false" final="false" visibility="public"
  7003. deprecated="not deprecated">
  7004. </method>
  7005. <method name="mark"
  7006. abstract="false" native="false" synchronized="false"
  7007. static="false" final="false" visibility="public"
  7008. deprecated="not deprecated">
  7009. <param name="readLimit" type="int"/>
  7010. </method>
  7011. <method name="reset"
  7012. abstract="false" native="false" synchronized="false"
  7013. static="false" final="false" visibility="public"
  7014. deprecated="not deprecated">
  7015. <exception name="IOException" type="java.io.IOException"/>
  7016. </method>
  7017. </class>
  7018. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7019. </package>
  7020. <package name="org.apache.hadoop.fs.kfs">
  7021. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7022. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7023. abstract="false"
  7024. static="false" final="false" visibility="public"
  7025. deprecated="not deprecated">
  7026. <constructor name="KosmosFileSystem"
  7027. static="false" final="false" visibility="public"
  7028. deprecated="not deprecated">
  7029. </constructor>
  7030. <method name="getUri" return="java.net.URI"
  7031. abstract="false" native="false" synchronized="false"
  7032. static="false" final="false" visibility="public"
  7033. deprecated="not deprecated">
  7034. </method>
  7035. <method name="initialize"
  7036. abstract="false" native="false" synchronized="false"
  7037. static="false" final="false" visibility="public"
  7038. deprecated="not deprecated">
  7039. <param name="uri" type="java.net.URI"/>
  7040. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7041. <exception name="IOException" type="java.io.IOException"/>
  7042. </method>
  7043. <method name="getName" return="java.lang.String"
  7044. abstract="false" native="false" synchronized="false"
  7045. static="false" final="false" visibility="public"
  7046. deprecated="not deprecated">
  7047. </method>
  7048. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7049. abstract="false" native="false" synchronized="false"
  7050. static="false" final="false" visibility="public"
  7051. deprecated="not deprecated">
  7052. </method>
  7053. <method name="setWorkingDirectory"
  7054. abstract="false" native="false" synchronized="false"
  7055. static="false" final="false" visibility="public"
  7056. deprecated="not deprecated">
  7057. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7058. </method>
  7059. <method name="mkdirs" return="boolean"
  7060. abstract="false" native="false" synchronized="false"
  7061. static="false" final="false" visibility="public"
  7062. deprecated="not deprecated">
  7063. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7064. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7065. <exception name="IOException" type="java.io.IOException"/>
  7066. </method>
  7067. <method name="isDirectory" return="boolean"
  7068. abstract="false" native="false" synchronized="false"
  7069. static="false" final="false" visibility="public"
  7070. deprecated="not deprecated">
  7071. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7072. <exception name="IOException" type="java.io.IOException"/>
  7073. </method>
  7074. <method name="isFile" return="boolean"
  7075. abstract="false" native="false" synchronized="false"
  7076. static="false" final="false" visibility="public"
  7077. deprecated="not deprecated">
  7078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7079. <exception name="IOException" type="java.io.IOException"/>
  7080. </method>
  7081. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7082. abstract="false" native="false" synchronized="false"
  7083. static="false" final="false" visibility="public"
  7084. deprecated="not deprecated">
  7085. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7086. <exception name="IOException" type="java.io.IOException"/>
  7087. </method>
  7088. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7089. abstract="false" native="false" synchronized="false"
  7090. static="false" final="false" visibility="public"
  7091. deprecated="not deprecated">
  7092. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7093. <exception name="IOException" type="java.io.IOException"/>
  7094. </method>
  7095. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7096. abstract="false" native="false" synchronized="false"
  7097. static="false" final="false" visibility="public"
  7098. deprecated="not deprecated">
  7099. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7100. <param name="bufferSize" type="int"/>
  7101. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7102. <exception name="IOException" type="java.io.IOException"/>
  7103. <doc>
  7104. <![CDATA[This optional operation is not yet supported.]]>
  7105. </doc>
  7106. </method>
  7107. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7108. abstract="false" native="false" synchronized="false"
  7109. static="false" final="false" visibility="public"
  7110. deprecated="not deprecated">
  7111. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7112. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7113. <param name="overwrite" type="boolean"/>
  7114. <param name="bufferSize" type="int"/>
  7115. <param name="replication" type="short"/>
  7116. <param name="blockSize" type="long"/>
  7117. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7118. <exception name="IOException" type="java.io.IOException"/>
  7119. </method>
  7120. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7121. abstract="false" native="false" synchronized="false"
  7122. static="false" final="false" visibility="public"
  7123. deprecated="not deprecated">
  7124. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7125. <param name="bufferSize" type="int"/>
  7126. <exception name="IOException" type="java.io.IOException"/>
  7127. </method>
  7128. <method name="rename" return="boolean"
  7129. abstract="false" native="false" synchronized="false"
  7130. static="false" final="false" visibility="public"
  7131. deprecated="not deprecated">
  7132. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7133. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7134. <exception name="IOException" type="java.io.IOException"/>
  7135. </method>
  7136. <method name="delete" 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="recursive" type="boolean"/>
  7142. <exception name="IOException" type="java.io.IOException"/>
  7143. </method>
  7144. <method name="delete" 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="getLength" return="long"
  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="getReplication" return="short"
  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="getDefaultReplication" return="short"
  7166. abstract="false" native="false" synchronized="false"
  7167. static="false" final="false" visibility="public"
  7168. deprecated="not deprecated">
  7169. </method>
  7170. <method name="setReplication" return="boolean"
  7171. abstract="false" native="false" synchronized="false"
  7172. static="false" final="false" visibility="public"
  7173. deprecated="not deprecated">
  7174. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7175. <param name="replication" type="short"/>
  7176. <exception name="IOException" type="java.io.IOException"/>
  7177. </method>
  7178. <method name="getDefaultBlockSize" return="long"
  7179. abstract="false" native="false" synchronized="false"
  7180. static="false" final="false" visibility="public"
  7181. deprecated="not deprecated">
  7182. </method>
  7183. <method name="lock"
  7184. abstract="false" native="false" synchronized="false"
  7185. static="false" final="false" visibility="public"
  7186. deprecated="not deprecated">
  7187. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7188. <param name="shared" type="boolean"/>
  7189. <exception name="IOException" type="java.io.IOException"/>
  7190. </method>
  7191. <method name="release"
  7192. abstract="false" native="false" synchronized="false"
  7193. static="false" final="false" visibility="public"
  7194. deprecated="not deprecated">
  7195. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7196. <exception name="IOException" type="java.io.IOException"/>
  7197. </method>
  7198. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7199. abstract="false" native="false" synchronized="false"
  7200. static="false" final="false" visibility="public"
  7201. deprecated="not deprecated">
  7202. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7203. <param name="start" type="long"/>
  7204. <param name="len" type="long"/>
  7205. <exception name="IOException" type="java.io.IOException"/>
  7206. <doc>
  7207. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7208. locations of the various chunks of the file file from KFS.]]>
  7209. </doc>
  7210. </method>
  7211. <method name="copyFromLocalFile"
  7212. abstract="false" native="false" synchronized="false"
  7213. static="false" final="false" visibility="public"
  7214. deprecated="not deprecated">
  7215. <param name="delSrc" type="boolean"/>
  7216. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7217. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7218. <exception name="IOException" type="java.io.IOException"/>
  7219. </method>
  7220. <method name="copyToLocalFile"
  7221. abstract="false" native="false" synchronized="false"
  7222. static="false" final="false" visibility="public"
  7223. deprecated="not deprecated">
  7224. <param name="delSrc" type="boolean"/>
  7225. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7226. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7227. <exception name="IOException" type="java.io.IOException"/>
  7228. </method>
  7229. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7230. abstract="false" native="false" synchronized="false"
  7231. static="false" final="false" visibility="public"
  7232. deprecated="not deprecated">
  7233. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7234. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7235. <exception name="IOException" type="java.io.IOException"/>
  7236. </method>
  7237. <method name="completeLocalOutput"
  7238. abstract="false" native="false" synchronized="false"
  7239. static="false" final="false" visibility="public"
  7240. deprecated="not deprecated">
  7241. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7242. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7243. <exception name="IOException" type="java.io.IOException"/>
  7244. </method>
  7245. <doc>
  7246. <![CDATA[A FileSystem backed by KFS.]]>
  7247. </doc>
  7248. </class>
  7249. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7250. </package>
  7251. <package name="org.apache.hadoop.fs.permission">
  7252. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7253. <class name="AccessControlException" extends="java.io.IOException"
  7254. abstract="false"
  7255. static="false" final="false" visibility="public"
  7256. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7257. instead.">
  7258. <constructor name="AccessControlException"
  7259. static="false" final="false" visibility="public"
  7260. deprecated="not deprecated">
  7261. <doc>
  7262. <![CDATA[Default constructor is needed for unwrapping from
  7263. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7264. </doc>
  7265. </constructor>
  7266. <constructor name="AccessControlException" type="java.lang.String"
  7267. static="false" final="false" visibility="public"
  7268. deprecated="not deprecated">
  7269. <doc>
  7270. <![CDATA[Constructs an {@link AccessControlException}
  7271. with the specified detail message.
  7272. @param s the detail message.]]>
  7273. </doc>
  7274. </constructor>
  7275. <constructor name="AccessControlException" type="java.lang.Throwable"
  7276. static="false" final="false" visibility="public"
  7277. deprecated="not deprecated">
  7278. <doc>
  7279. <![CDATA[Constructs a new exception with the specified cause and a detail
  7280. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7281. typically contains the class and detail message of <tt>cause</tt>).
  7282. @param cause the cause (which is saved for later retrieval by the
  7283. {@link #getCause()} method). (A <tt>null</tt> value is
  7284. permitted, and indicates that the cause is nonexistent or
  7285. unknown.)]]>
  7286. </doc>
  7287. </constructor>
  7288. <doc>
  7289. <![CDATA[An exception class for access control related issues.
  7290. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7291. instead.]]>
  7292. </doc>
  7293. </class>
  7294. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7295. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7296. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7297. abstract="false"
  7298. static="false" final="false" visibility="public"
  7299. deprecated="not deprecated">
  7300. <constructor name="ChmodParser" type="java.lang.String"
  7301. static="false" final="false" visibility="public"
  7302. deprecated="not deprecated">
  7303. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7304. </constructor>
  7305. <method name="applyNewPermission" return="short"
  7306. abstract="false" native="false" synchronized="false"
  7307. static="false" final="false" visibility="public"
  7308. deprecated="not deprecated">
  7309. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7310. <doc>
  7311. <![CDATA[Apply permission against specified file and determine what the
  7312. new mode would be
  7313. @param file File against which to apply mode
  7314. @return File's new mode if applied.]]>
  7315. </doc>
  7316. </method>
  7317. <doc>
  7318. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7319. mode against an existing file.]]>
  7320. </doc>
  7321. </class>
  7322. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7323. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7324. <class name="FsAction" extends="java.lang.Enum"
  7325. abstract="false"
  7326. static="false" final="true" visibility="public"
  7327. deprecated="not deprecated">
  7328. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7329. abstract="false" native="false" synchronized="false"
  7330. static="true" final="false" visibility="public"
  7331. deprecated="not deprecated">
  7332. </method>
  7333. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7334. abstract="false" native="false" synchronized="false"
  7335. static="true" final="false" visibility="public"
  7336. deprecated="not deprecated">
  7337. <param name="name" type="java.lang.String"/>
  7338. </method>
  7339. <method name="implies" return="boolean"
  7340. abstract="false" native="false" synchronized="false"
  7341. static="false" final="false" visibility="public"
  7342. deprecated="not deprecated">
  7343. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7344. <doc>
  7345. <![CDATA[Return true if this action implies that action.
  7346. @param that]]>
  7347. </doc>
  7348. </method>
  7349. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7350. abstract="false" native="false" synchronized="false"
  7351. static="false" final="false" visibility="public"
  7352. deprecated="not deprecated">
  7353. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7354. <doc>
  7355. <![CDATA[AND operation.]]>
  7356. </doc>
  7357. </method>
  7358. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7359. abstract="false" native="false" synchronized="false"
  7360. static="false" final="false" visibility="public"
  7361. deprecated="not deprecated">
  7362. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7363. <doc>
  7364. <![CDATA[OR operation.]]>
  7365. </doc>
  7366. </method>
  7367. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7368. abstract="false" native="false" synchronized="false"
  7369. static="false" final="false" visibility="public"
  7370. deprecated="not deprecated">
  7371. <doc>
  7372. <![CDATA[NOT operation.]]>
  7373. </doc>
  7374. </method>
  7375. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7376. transient="false" volatile="false"
  7377. static="true" final="true" visibility="public"
  7378. deprecated="not deprecated">
  7379. </field>
  7380. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7381. transient="false" volatile="false"
  7382. static="true" final="true" visibility="public"
  7383. deprecated="not deprecated">
  7384. </field>
  7385. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7386. transient="false" volatile="false"
  7387. static="true" final="true" visibility="public"
  7388. deprecated="not deprecated">
  7389. </field>
  7390. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7391. transient="false" volatile="false"
  7392. static="true" final="true" visibility="public"
  7393. deprecated="not deprecated">
  7394. </field>
  7395. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7396. transient="false" volatile="false"
  7397. static="true" final="true" visibility="public"
  7398. deprecated="not deprecated">
  7399. </field>
  7400. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7401. transient="false" volatile="false"
  7402. static="true" final="true" visibility="public"
  7403. deprecated="not deprecated">
  7404. </field>
  7405. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7406. transient="false" volatile="false"
  7407. static="true" final="true" visibility="public"
  7408. deprecated="not deprecated">
  7409. </field>
  7410. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7411. transient="false" volatile="false"
  7412. static="true" final="true" visibility="public"
  7413. deprecated="not deprecated">
  7414. </field>
  7415. <field name="SYMBOL" type="java.lang.String"
  7416. transient="false" volatile="false"
  7417. static="false" final="true" visibility="public"
  7418. deprecated="not deprecated">
  7419. <doc>
  7420. <![CDATA[Symbolic representation]]>
  7421. </doc>
  7422. </field>
  7423. <doc>
  7424. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7425. </doc>
  7426. </class>
  7427. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7428. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7429. <class name="FsPermission" extends="java.lang.Object"
  7430. abstract="false"
  7431. static="false" final="false" visibility="public"
  7432. deprecated="not deprecated">
  7433. <implements name="org.apache.hadoop.io.Writable"/>
  7434. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7435. static="false" final="false" visibility="public"
  7436. deprecated="not deprecated">
  7437. <doc>
  7438. <![CDATA[Construct by the given {@link FsAction}.
  7439. @param u user action
  7440. @param g group action
  7441. @param o other action]]>
  7442. </doc>
  7443. </constructor>
  7444. <constructor name="FsPermission" type="short"
  7445. static="false" final="false" visibility="public"
  7446. deprecated="not deprecated">
  7447. <doc>
  7448. <![CDATA[Construct by the given mode.
  7449. @param mode
  7450. @see #toShort()]]>
  7451. </doc>
  7452. </constructor>
  7453. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7454. static="false" final="false" visibility="public"
  7455. deprecated="not deprecated">
  7456. <doc>
  7457. <![CDATA[Copy constructor
  7458. @param other other permission]]>
  7459. </doc>
  7460. </constructor>
  7461. <constructor name="FsPermission" type="java.lang.String"
  7462. static="false" final="false" visibility="public"
  7463. deprecated="not deprecated">
  7464. <doc>
  7465. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7466. @param mode mode as a string, either in octal or symbolic format
  7467. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7468. </doc>
  7469. </constructor>
  7470. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7471. abstract="false" native="false" synchronized="false"
  7472. static="true" final="false" visibility="public"
  7473. deprecated="not deprecated">
  7474. <param name="permission" type="short"/>
  7475. <doc>
  7476. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7477. </doc>
  7478. </method>
  7479. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7480. abstract="false" native="false" synchronized="false"
  7481. static="false" final="false" visibility="public"
  7482. deprecated="not deprecated">
  7483. <doc>
  7484. <![CDATA[Return user {@link FsAction}.]]>
  7485. </doc>
  7486. </method>
  7487. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7488. abstract="false" native="false" synchronized="false"
  7489. static="false" final="false" visibility="public"
  7490. deprecated="not deprecated">
  7491. <doc>
  7492. <![CDATA[Return group {@link FsAction}.]]>
  7493. </doc>
  7494. </method>
  7495. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7496. abstract="false" native="false" synchronized="false"
  7497. static="false" final="false" visibility="public"
  7498. deprecated="not deprecated">
  7499. <doc>
  7500. <![CDATA[Return other {@link FsAction}.]]>
  7501. </doc>
  7502. </method>
  7503. <method name="fromShort"
  7504. abstract="false" native="false" synchronized="false"
  7505. static="false" final="false" visibility="public"
  7506. deprecated="not deprecated">
  7507. <param name="n" type="short"/>
  7508. </method>
  7509. <method name="write"
  7510. abstract="false" native="false" synchronized="false"
  7511. static="false" final="false" visibility="public"
  7512. deprecated="not deprecated">
  7513. <param name="out" type="java.io.DataOutput"/>
  7514. <exception name="IOException" type="java.io.IOException"/>
  7515. <doc>
  7516. <![CDATA[{@inheritDoc}]]>
  7517. </doc>
  7518. </method>
  7519. <method name="readFields"
  7520. abstract="false" native="false" synchronized="false"
  7521. static="false" final="false" visibility="public"
  7522. deprecated="not deprecated">
  7523. <param name="in" type="java.io.DataInput"/>
  7524. <exception name="IOException" type="java.io.IOException"/>
  7525. <doc>
  7526. <![CDATA[{@inheritDoc}]]>
  7527. </doc>
  7528. </method>
  7529. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7530. abstract="false" native="false" synchronized="false"
  7531. static="true" final="false" visibility="public"
  7532. deprecated="not deprecated">
  7533. <param name="in" type="java.io.DataInput"/>
  7534. <exception name="IOException" type="java.io.IOException"/>
  7535. <doc>
  7536. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7537. </doc>
  7538. </method>
  7539. <method name="toShort" return="short"
  7540. abstract="false" native="false" synchronized="false"
  7541. static="false" final="false" visibility="public"
  7542. deprecated="not deprecated">
  7543. <doc>
  7544. <![CDATA[Encode the object to a short.]]>
  7545. </doc>
  7546. </method>
  7547. <method name="equals" return="boolean"
  7548. abstract="false" native="false" synchronized="false"
  7549. static="false" final="false" visibility="public"
  7550. deprecated="not deprecated">
  7551. <param name="obj" type="java.lang.Object"/>
  7552. <doc>
  7553. <![CDATA[{@inheritDoc}]]>
  7554. </doc>
  7555. </method>
  7556. <method name="hashCode" return="int"
  7557. abstract="false" native="false" synchronized="false"
  7558. static="false" final="false" visibility="public"
  7559. deprecated="not deprecated">
  7560. <doc>
  7561. <![CDATA[{@inheritDoc}]]>
  7562. </doc>
  7563. </method>
  7564. <method name="toString" return="java.lang.String"
  7565. abstract="false" native="false" synchronized="false"
  7566. static="false" final="false" visibility="public"
  7567. deprecated="not deprecated">
  7568. <doc>
  7569. <![CDATA[{@inheritDoc}]]>
  7570. </doc>
  7571. </method>
  7572. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7573. abstract="false" native="false" synchronized="false"
  7574. static="false" final="false" visibility="public"
  7575. deprecated="not deprecated">
  7576. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7577. <doc>
  7578. <![CDATA[Apply a umask to this permission and return a new one]]>
  7579. </doc>
  7580. </method>
  7581. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7582. abstract="false" native="false" synchronized="false"
  7583. static="true" final="false" visibility="public"
  7584. deprecated="not deprecated">
  7585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7586. <doc>
  7587. <![CDATA[Get the user file creation mask (umask)
  7588. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7589. or octal.
  7590. Symbolic umask is applied relative to file mode creation mask;
  7591. the permission op characters '+' clears the corresponding bit in the mask,
  7592. '-' sets bits in the mask.
  7593. Octal umask, the specified bits are set in the file mode creation mask.
  7594. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7595. </doc>
  7596. </method>
  7597. <method name="setUMask"
  7598. abstract="false" native="false" synchronized="false"
  7599. static="true" final="false" visibility="public"
  7600. deprecated="not deprecated">
  7601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7602. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7603. <doc>
  7604. <![CDATA[Set the user file creation mask (umask)]]>
  7605. </doc>
  7606. </method>
  7607. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7608. abstract="false" native="false" synchronized="false"
  7609. static="true" final="false" visibility="public"
  7610. deprecated="not deprecated">
  7611. <doc>
  7612. <![CDATA[Get the default permission.]]>
  7613. </doc>
  7614. </method>
  7615. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7616. abstract="false" native="false" synchronized="false"
  7617. static="true" final="false" visibility="public"
  7618. deprecated="not deprecated">
  7619. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7620. <doc>
  7621. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7622. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7623. </doc>
  7624. </method>
  7625. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7626. transient="false" volatile="false"
  7627. static="true" final="true" visibility="public"
  7628. deprecated="not deprecated">
  7629. <doc>
  7630. <![CDATA[umask property label]]>
  7631. </doc>
  7632. </field>
  7633. <field name="UMASK_LABEL" type="java.lang.String"
  7634. transient="false" volatile="false"
  7635. static="true" final="true" visibility="public"
  7636. deprecated="not deprecated">
  7637. </field>
  7638. <field name="DEFAULT_UMASK" type="int"
  7639. transient="false" volatile="false"
  7640. static="true" final="true" visibility="public"
  7641. deprecated="not deprecated">
  7642. </field>
  7643. <doc>
  7644. <![CDATA[A class for file/directory permissions.]]>
  7645. </doc>
  7646. </class>
  7647. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7648. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7649. <class name="PermissionStatus" extends="java.lang.Object"
  7650. abstract="false"
  7651. static="false" final="false" visibility="public"
  7652. deprecated="not deprecated">
  7653. <implements name="org.apache.hadoop.io.Writable"/>
  7654. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7655. static="false" final="false" visibility="public"
  7656. deprecated="not deprecated">
  7657. <doc>
  7658. <![CDATA[Constructor]]>
  7659. </doc>
  7660. </constructor>
  7661. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7662. abstract="false" native="false" synchronized="false"
  7663. static="true" final="false" visibility="public"
  7664. deprecated="not deprecated">
  7665. <param name="user" type="java.lang.String"/>
  7666. <param name="group" type="java.lang.String"/>
  7667. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7668. <doc>
  7669. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7670. </doc>
  7671. </method>
  7672. <method name="getUserName" return="java.lang.String"
  7673. abstract="false" native="false" synchronized="false"
  7674. static="false" final="false" visibility="public"
  7675. deprecated="not deprecated">
  7676. <doc>
  7677. <![CDATA[Return user name]]>
  7678. </doc>
  7679. </method>
  7680. <method name="getGroupName" return="java.lang.String"
  7681. abstract="false" native="false" synchronized="false"
  7682. static="false" final="false" visibility="public"
  7683. deprecated="not deprecated">
  7684. <doc>
  7685. <![CDATA[Return group name]]>
  7686. </doc>
  7687. </method>
  7688. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7689. abstract="false" native="false" synchronized="false"
  7690. static="false" final="false" visibility="public"
  7691. deprecated="not deprecated">
  7692. <doc>
  7693. <![CDATA[Return permission]]>
  7694. </doc>
  7695. </method>
  7696. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7697. abstract="false" native="false" synchronized="false"
  7698. static="false" final="false" visibility="public"
  7699. deprecated="not deprecated">
  7700. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7701. <doc>
  7702. <![CDATA[Apply umask.
  7703. @see FsPermission#applyUMask(FsPermission)]]>
  7704. </doc>
  7705. </method>
  7706. <method name="readFields"
  7707. abstract="false" native="false" synchronized="false"
  7708. static="false" final="false" visibility="public"
  7709. deprecated="not deprecated">
  7710. <param name="in" type="java.io.DataInput"/>
  7711. <exception name="IOException" type="java.io.IOException"/>
  7712. <doc>
  7713. <![CDATA[{@inheritDoc}]]>
  7714. </doc>
  7715. </method>
  7716. <method name="write"
  7717. abstract="false" native="false" synchronized="false"
  7718. static="false" final="false" visibility="public"
  7719. deprecated="not deprecated">
  7720. <param name="out" type="java.io.DataOutput"/>
  7721. <exception name="IOException" type="java.io.IOException"/>
  7722. <doc>
  7723. <![CDATA[{@inheritDoc}]]>
  7724. </doc>
  7725. </method>
  7726. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7727. abstract="false" native="false" synchronized="false"
  7728. static="true" final="false" visibility="public"
  7729. deprecated="not deprecated">
  7730. <param name="in" type="java.io.DataInput"/>
  7731. <exception name="IOException" type="java.io.IOException"/>
  7732. <doc>
  7733. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7734. </doc>
  7735. </method>
  7736. <method name="write"
  7737. abstract="false" native="false" synchronized="false"
  7738. static="true" final="false" visibility="public"
  7739. deprecated="not deprecated">
  7740. <param name="out" type="java.io.DataOutput"/>
  7741. <param name="username" type="java.lang.String"/>
  7742. <param name="groupname" type="java.lang.String"/>
  7743. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7744. <exception name="IOException" type="java.io.IOException"/>
  7745. <doc>
  7746. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7747. </doc>
  7748. </method>
  7749. <method name="toString" 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[{@inheritDoc}]]>
  7755. </doc>
  7756. </method>
  7757. <doc>
  7758. <![CDATA[Store permission related information.]]>
  7759. </doc>
  7760. </class>
  7761. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7762. </package>
  7763. <package name="org.apache.hadoop.fs.s3">
  7764. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7765. <class name="Block" extends="java.lang.Object"
  7766. abstract="false"
  7767. static="false" final="false" visibility="public"
  7768. deprecated="not deprecated">
  7769. <constructor name="Block" type="long, long"
  7770. static="false" final="false" visibility="public"
  7771. deprecated="not deprecated">
  7772. </constructor>
  7773. <method name="getId" return="long"
  7774. abstract="false" native="false" synchronized="false"
  7775. static="false" final="false" visibility="public"
  7776. deprecated="not deprecated">
  7777. </method>
  7778. <method name="getLength" return="long"
  7779. abstract="false" native="false" synchronized="false"
  7780. static="false" final="false" visibility="public"
  7781. deprecated="not deprecated">
  7782. </method>
  7783. <method name="toString" return="java.lang.String"
  7784. abstract="false" native="false" synchronized="false"
  7785. static="false" final="false" visibility="public"
  7786. deprecated="not deprecated">
  7787. </method>
  7788. <doc>
  7789. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7790. </doc>
  7791. </class>
  7792. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7793. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7794. <interface name="FileSystemStore" abstract="true"
  7795. static="false" final="false" visibility="public"
  7796. deprecated="not deprecated">
  7797. <method name="initialize"
  7798. abstract="false" native="false" synchronized="false"
  7799. static="false" final="false" visibility="public"
  7800. deprecated="not deprecated">
  7801. <param name="uri" type="java.net.URI"/>
  7802. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7803. <exception name="IOException" type="java.io.IOException"/>
  7804. </method>
  7805. <method name="getVersion" return="java.lang.String"
  7806. abstract="false" native="false" synchronized="false"
  7807. static="false" final="false" visibility="public"
  7808. deprecated="not deprecated">
  7809. <exception name="IOException" type="java.io.IOException"/>
  7810. </method>
  7811. <method name="storeINode"
  7812. abstract="false" native="false" synchronized="false"
  7813. static="false" final="false" visibility="public"
  7814. deprecated="not deprecated">
  7815. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7816. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7817. <exception name="IOException" type="java.io.IOException"/>
  7818. </method>
  7819. <method name="storeBlock"
  7820. abstract="false" native="false" synchronized="false"
  7821. static="false" final="false" visibility="public"
  7822. deprecated="not deprecated">
  7823. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7824. <param name="file" type="java.io.File"/>
  7825. <exception name="IOException" type="java.io.IOException"/>
  7826. </method>
  7827. <method name="inodeExists" return="boolean"
  7828. abstract="false" native="false" synchronized="false"
  7829. static="false" final="false" visibility="public"
  7830. deprecated="not deprecated">
  7831. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7832. <exception name="IOException" type="java.io.IOException"/>
  7833. </method>
  7834. <method name="blockExists" return="boolean"
  7835. abstract="false" native="false" synchronized="false"
  7836. static="false" final="false" visibility="public"
  7837. deprecated="not deprecated">
  7838. <param name="blockId" type="long"/>
  7839. <exception name="IOException" type="java.io.IOException"/>
  7840. </method>
  7841. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7842. abstract="false" native="false" synchronized="false"
  7843. static="false" final="false" visibility="public"
  7844. deprecated="not deprecated">
  7845. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7846. <exception name="IOException" type="java.io.IOException"/>
  7847. </method>
  7848. <method name="retrieveBlock" return="java.io.File"
  7849. abstract="false" native="false" synchronized="false"
  7850. static="false" final="false" visibility="public"
  7851. deprecated="not deprecated">
  7852. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7853. <param name="byteRangeStart" type="long"/>
  7854. <exception name="IOException" type="java.io.IOException"/>
  7855. </method>
  7856. <method name="deleteINode"
  7857. abstract="false" native="false" synchronized="false"
  7858. static="false" final="false" visibility="public"
  7859. deprecated="not deprecated">
  7860. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7861. <exception name="IOException" type="java.io.IOException"/>
  7862. </method>
  7863. <method name="deleteBlock"
  7864. abstract="false" native="false" synchronized="false"
  7865. static="false" final="false" visibility="public"
  7866. deprecated="not deprecated">
  7867. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7868. <exception name="IOException" type="java.io.IOException"/>
  7869. </method>
  7870. <method name="listSubPaths" return="java.util.Set"
  7871. abstract="false" native="false" synchronized="false"
  7872. static="false" final="false" visibility="public"
  7873. deprecated="not deprecated">
  7874. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7875. <exception name="IOException" type="java.io.IOException"/>
  7876. </method>
  7877. <method name="listDeepSubPaths" return="java.util.Set"
  7878. abstract="false" native="false" synchronized="false"
  7879. static="false" final="false" visibility="public"
  7880. deprecated="not deprecated">
  7881. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7882. <exception name="IOException" type="java.io.IOException"/>
  7883. </method>
  7884. <method name="purge"
  7885. abstract="false" native="false" synchronized="false"
  7886. static="false" final="false" visibility="public"
  7887. deprecated="not deprecated">
  7888. <exception name="IOException" type="java.io.IOException"/>
  7889. <doc>
  7890. <![CDATA[Delete everything. Used for testing.
  7891. @throws IOException]]>
  7892. </doc>
  7893. </method>
  7894. <method name="dump"
  7895. abstract="false" native="false" synchronized="false"
  7896. static="false" final="false" visibility="public"
  7897. deprecated="not deprecated">
  7898. <exception name="IOException" type="java.io.IOException"/>
  7899. <doc>
  7900. <![CDATA[Diagnostic method to dump all INodes to the console.
  7901. @throws IOException]]>
  7902. </doc>
  7903. </method>
  7904. <doc>
  7905. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7906. </doc>
  7907. </interface>
  7908. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7909. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7910. <class name="INode" extends="java.lang.Object"
  7911. abstract="false"
  7912. static="false" final="false" visibility="public"
  7913. deprecated="not deprecated">
  7914. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7915. static="false" final="false" visibility="public"
  7916. deprecated="not deprecated">
  7917. </constructor>
  7918. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7919. abstract="false" native="false" synchronized="false"
  7920. static="false" final="false" visibility="public"
  7921. deprecated="not deprecated">
  7922. </method>
  7923. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  7924. abstract="false" native="false" synchronized="false"
  7925. static="false" final="false" visibility="public"
  7926. deprecated="not deprecated">
  7927. </method>
  7928. <method name="isDirectory" return="boolean"
  7929. abstract="false" native="false" synchronized="false"
  7930. static="false" final="false" visibility="public"
  7931. deprecated="not deprecated">
  7932. </method>
  7933. <method name="isFile" return="boolean"
  7934. abstract="false" native="false" synchronized="false"
  7935. static="false" final="false" visibility="public"
  7936. deprecated="not deprecated">
  7937. </method>
  7938. <method name="getSerializedLength" return="long"
  7939. abstract="false" native="false" synchronized="false"
  7940. static="false" final="false" visibility="public"
  7941. deprecated="not deprecated">
  7942. </method>
  7943. <method name="serialize" return="java.io.InputStream"
  7944. abstract="false" native="false" synchronized="false"
  7945. static="false" final="false" visibility="public"
  7946. deprecated="not deprecated">
  7947. <exception name="IOException" type="java.io.IOException"/>
  7948. </method>
  7949. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  7950. abstract="false" native="false" synchronized="false"
  7951. static="true" final="false" visibility="public"
  7952. deprecated="not deprecated">
  7953. <param name="in" type="java.io.InputStream"/>
  7954. <exception name="IOException" type="java.io.IOException"/>
  7955. </method>
  7956. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  7957. transient="false" volatile="false"
  7958. static="true" final="true" visibility="public"
  7959. deprecated="not deprecated">
  7960. </field>
  7961. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  7962. transient="false" volatile="false"
  7963. static="true" final="true" visibility="public"
  7964. deprecated="not deprecated">
  7965. </field>
  7966. <doc>
  7967. <![CDATA[Holds file metadata including type (regular file, or directory),
  7968. and the list of blocks that are pointers to the data.]]>
  7969. </doc>
  7970. </class>
  7971. <!-- end class org.apache.hadoop.fs.s3.INode -->
  7972. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  7973. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  7974. abstract="false"
  7975. static="false" final="false" visibility="public"
  7976. deprecated="not deprecated">
  7977. <implements name="org.apache.hadoop.util.Tool"/>
  7978. <constructor name="MigrationTool"
  7979. static="false" final="false" visibility="public"
  7980. deprecated="not deprecated">
  7981. </constructor>
  7982. <method name="main"
  7983. abstract="false" native="false" synchronized="false"
  7984. static="true" final="false" visibility="public"
  7985. deprecated="not deprecated">
  7986. <param name="args" type="java.lang.String[]"/>
  7987. <exception name="Exception" type="java.lang.Exception"/>
  7988. </method>
  7989. <method name="run" return="int"
  7990. abstract="false" native="false" synchronized="false"
  7991. static="false" final="false" visibility="public"
  7992. deprecated="not deprecated">
  7993. <param name="args" type="java.lang.String[]"/>
  7994. <exception name="Exception" type="java.lang.Exception"/>
  7995. </method>
  7996. <method name="initialize"
  7997. abstract="false" native="false" synchronized="false"
  7998. static="false" final="false" visibility="public"
  7999. deprecated="not deprecated">
  8000. <param name="uri" type="java.net.URI"/>
  8001. <exception name="IOException" type="java.io.IOException"/>
  8002. </method>
  8003. <doc>
  8004. <![CDATA[<p>
  8005. This class is a tool for migrating data from an older to a newer version
  8006. of an S3 filesystem.
  8007. </p>
  8008. <p>
  8009. All files in the filesystem are migrated by re-writing the block metadata
  8010. - no datafiles are touched.
  8011. </p>]]>
  8012. </doc>
  8013. </class>
  8014. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8015. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  8016. <class name="S3Credentials" extends="java.lang.Object"
  8017. abstract="false"
  8018. static="false" final="false" visibility="public"
  8019. deprecated="not deprecated">
  8020. <constructor name="S3Credentials"
  8021. static="false" final="false" visibility="public"
  8022. deprecated="not deprecated">
  8023. </constructor>
  8024. <method name="initialize"
  8025. abstract="false" native="false" synchronized="false"
  8026. static="false" final="false" visibility="public"
  8027. deprecated="not deprecated">
  8028. <param name="uri" type="java.net.URI"/>
  8029. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8030. <doc>
  8031. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8032. determined.]]>
  8033. </doc>
  8034. </method>
  8035. <method name="getAccessKey" return="java.lang.String"
  8036. abstract="false" native="false" synchronized="false"
  8037. static="false" final="false" visibility="public"
  8038. deprecated="not deprecated">
  8039. </method>
  8040. <method name="getSecretAccessKey" return="java.lang.String"
  8041. abstract="false" native="false" synchronized="false"
  8042. static="false" final="false" visibility="public"
  8043. deprecated="not deprecated">
  8044. </method>
  8045. <doc>
  8046. <![CDATA[<p>
  8047. Extracts AWS credentials from the filesystem URI or configuration.
  8048. </p>]]>
  8049. </doc>
  8050. </class>
  8051. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8052. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8053. <class name="S3Exception" extends="java.lang.RuntimeException"
  8054. abstract="false"
  8055. static="false" final="false" visibility="public"
  8056. deprecated="not deprecated">
  8057. <constructor name="S3Exception" type="java.lang.Throwable"
  8058. static="false" final="false" visibility="public"
  8059. deprecated="not deprecated">
  8060. </constructor>
  8061. <doc>
  8062. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8063. </doc>
  8064. </class>
  8065. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8066. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8067. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8068. abstract="false"
  8069. static="false" final="false" visibility="public"
  8070. deprecated="not deprecated">
  8071. <constructor name="S3FileSystem"
  8072. static="false" final="false" visibility="public"
  8073. deprecated="not deprecated">
  8074. </constructor>
  8075. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8076. static="false" final="false" visibility="public"
  8077. deprecated="not deprecated">
  8078. </constructor>
  8079. <method name="getUri" return="java.net.URI"
  8080. abstract="false" native="false" synchronized="false"
  8081. static="false" final="false" visibility="public"
  8082. deprecated="not deprecated">
  8083. </method>
  8084. <method name="initialize"
  8085. abstract="false" native="false" synchronized="false"
  8086. static="false" final="false" visibility="public"
  8087. deprecated="not deprecated">
  8088. <param name="uri" type="java.net.URI"/>
  8089. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8090. <exception name="IOException" type="java.io.IOException"/>
  8091. </method>
  8092. <method name="getName" return="java.lang.String"
  8093. abstract="false" native="false" synchronized="false"
  8094. static="false" final="false" visibility="public"
  8095. deprecated="not deprecated">
  8096. </method>
  8097. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8098. abstract="false" native="false" synchronized="false"
  8099. static="false" final="false" visibility="public"
  8100. deprecated="not deprecated">
  8101. </method>
  8102. <method name="setWorkingDirectory"
  8103. abstract="false" native="false" synchronized="false"
  8104. static="false" final="false" visibility="public"
  8105. deprecated="not deprecated">
  8106. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8107. </method>
  8108. <method name="mkdirs" return="boolean"
  8109. abstract="false" native="false" synchronized="false"
  8110. static="false" final="false" visibility="public"
  8111. deprecated="not deprecated">
  8112. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8113. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8114. <exception name="IOException" type="java.io.IOException"/>
  8115. <doc>
  8116. <![CDATA[@param permission Currently ignored.]]>
  8117. </doc>
  8118. </method>
  8119. <method name="isFile" return="boolean"
  8120. abstract="false" native="false" synchronized="false"
  8121. static="false" final="false" visibility="public"
  8122. deprecated="not deprecated">
  8123. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8124. <exception name="IOException" type="java.io.IOException"/>
  8125. </method>
  8126. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8127. abstract="false" native="false" synchronized="false"
  8128. static="false" final="false" visibility="public"
  8129. deprecated="not deprecated">
  8130. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8131. <exception name="IOException" type="java.io.IOException"/>
  8132. </method>
  8133. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8134. abstract="false" native="false" synchronized="false"
  8135. static="false" final="false" visibility="public"
  8136. deprecated="not deprecated">
  8137. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8138. <param name="bufferSize" type="int"/>
  8139. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8140. <exception name="IOException" type="java.io.IOException"/>
  8141. <doc>
  8142. <![CDATA[This optional operation is not yet supported.]]>
  8143. </doc>
  8144. </method>
  8145. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8146. abstract="false" native="false" synchronized="false"
  8147. static="false" final="false" visibility="public"
  8148. deprecated="not deprecated">
  8149. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8150. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8151. <param name="overwrite" type="boolean"/>
  8152. <param name="bufferSize" type="int"/>
  8153. <param name="replication" type="short"/>
  8154. <param name="blockSize" type="long"/>
  8155. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8156. <exception name="IOException" type="java.io.IOException"/>
  8157. <doc>
  8158. <![CDATA[@param permission Currently ignored.]]>
  8159. </doc>
  8160. </method>
  8161. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8162. abstract="false" native="false" synchronized="false"
  8163. static="false" final="false" visibility="public"
  8164. deprecated="not deprecated">
  8165. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8166. <param name="bufferSize" type="int"/>
  8167. <exception name="IOException" type="java.io.IOException"/>
  8168. </method>
  8169. <method name="rename" return="boolean"
  8170. abstract="false" native="false" synchronized="false"
  8171. static="false" final="false" visibility="public"
  8172. deprecated="not deprecated">
  8173. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8174. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8175. <exception name="IOException" type="java.io.IOException"/>
  8176. </method>
  8177. <method name="delete" return="boolean"
  8178. abstract="false" native="false" synchronized="false"
  8179. static="false" final="false" visibility="public"
  8180. deprecated="not deprecated">
  8181. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8182. <param name="recursive" type="boolean"/>
  8183. <exception name="IOException" type="java.io.IOException"/>
  8184. </method>
  8185. <method name="delete" 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. <exception name="IOException" type="java.io.IOException"/>
  8191. </method>
  8192. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8193. abstract="false" native="false" synchronized="false"
  8194. static="false" final="false" visibility="public"
  8195. deprecated="not deprecated">
  8196. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8197. <exception name="IOException" type="java.io.IOException"/>
  8198. <doc>
  8199. <![CDATA[FileStatus for S3 file systems.]]>
  8200. </doc>
  8201. </method>
  8202. <doc>
  8203. <![CDATA[<p>
  8204. A block-based {@link FileSystem} backed by
  8205. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8206. </p>
  8207. @see NativeS3FileSystem]]>
  8208. </doc>
  8209. </class>
  8210. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8211. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8212. <class name="S3FileSystemException" extends="java.io.IOException"
  8213. abstract="false"
  8214. static="false" final="false" visibility="public"
  8215. deprecated="not deprecated">
  8216. <constructor name="S3FileSystemException" type="java.lang.String"
  8217. static="false" final="false" visibility="public"
  8218. deprecated="not deprecated">
  8219. </constructor>
  8220. <doc>
  8221. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8222. </doc>
  8223. </class>
  8224. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8225. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8226. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8227. abstract="false"
  8228. static="false" final="false" visibility="public"
  8229. deprecated="not deprecated">
  8230. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8231. static="false" final="false" visibility="public"
  8232. deprecated="not deprecated">
  8233. </constructor>
  8234. <doc>
  8235. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8236. in {@link S3FileSystem}.]]>
  8237. </doc>
  8238. </class>
  8239. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8240. </package>
  8241. <package name="org.apache.hadoop.fs.s3native">
  8242. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8243. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8244. abstract="false"
  8245. static="false" final="false" visibility="public"
  8246. deprecated="not deprecated">
  8247. <constructor name="NativeS3FileSystem"
  8248. static="false" final="false" visibility="public"
  8249. deprecated="not deprecated">
  8250. </constructor>
  8251. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8252. static="false" final="false" visibility="public"
  8253. deprecated="not deprecated">
  8254. </constructor>
  8255. <method name="initialize"
  8256. abstract="false" native="false" synchronized="false"
  8257. static="false" final="false" visibility="public"
  8258. deprecated="not deprecated">
  8259. <param name="uri" type="java.net.URI"/>
  8260. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8261. <exception name="IOException" type="java.io.IOException"/>
  8262. </method>
  8263. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8264. abstract="false" native="false" synchronized="false"
  8265. static="false" final="false" visibility="public"
  8266. deprecated="not deprecated">
  8267. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8268. <param name="bufferSize" type="int"/>
  8269. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8270. <exception name="IOException" type="java.io.IOException"/>
  8271. <doc>
  8272. <![CDATA[This optional operation is not yet supported.]]>
  8273. </doc>
  8274. </method>
  8275. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8276. abstract="false" native="false" synchronized="false"
  8277. static="false" final="false" visibility="public"
  8278. deprecated="not deprecated">
  8279. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8280. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8281. <param name="overwrite" type="boolean"/>
  8282. <param name="bufferSize" type="int"/>
  8283. <param name="replication" type="short"/>
  8284. <param name="blockSize" type="long"/>
  8285. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8286. <exception name="IOException" type="java.io.IOException"/>
  8287. </method>
  8288. <method name="delete" return="boolean"
  8289. abstract="false" native="false" synchronized="false"
  8290. static="false" final="false" visibility="public"
  8291. deprecated="not deprecated">
  8292. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8293. <exception name="IOException" type="java.io.IOException"/>
  8294. </method>
  8295. <method name="delete" return="boolean"
  8296. abstract="false" native="false" synchronized="false"
  8297. static="false" final="false" visibility="public"
  8298. deprecated="not deprecated">
  8299. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8300. <param name="recursive" type="boolean"/>
  8301. <exception name="IOException" type="java.io.IOException"/>
  8302. </method>
  8303. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8304. abstract="false" native="false" synchronized="false"
  8305. static="false" final="false" visibility="public"
  8306. deprecated="not deprecated">
  8307. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8308. <exception name="IOException" type="java.io.IOException"/>
  8309. </method>
  8310. <method name="getUri" return="java.net.URI"
  8311. abstract="false" native="false" synchronized="false"
  8312. static="false" final="false" visibility="public"
  8313. deprecated="not deprecated">
  8314. </method>
  8315. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8316. abstract="false" native="false" synchronized="false"
  8317. static="false" final="false" visibility="public"
  8318. deprecated="not deprecated">
  8319. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8320. <exception name="IOException" type="java.io.IOException"/>
  8321. <doc>
  8322. <![CDATA[<p>
  8323. If <code>f</code> is a file, this method will make a single call to S3.
  8324. If <code>f</code> is a directory, this method will make a maximum of
  8325. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8326. files and directories contained directly in <code>f</code>.
  8327. </p>]]>
  8328. </doc>
  8329. </method>
  8330. <method name="mkdirs" return="boolean"
  8331. abstract="false" native="false" synchronized="false"
  8332. static="false" final="false" visibility="public"
  8333. deprecated="not deprecated">
  8334. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8335. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8336. <exception name="IOException" type="java.io.IOException"/>
  8337. </method>
  8338. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8339. abstract="false" native="false" synchronized="false"
  8340. static="false" final="false" visibility="public"
  8341. deprecated="not deprecated">
  8342. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8343. <param name="bufferSize" type="int"/>
  8344. <exception name="IOException" type="java.io.IOException"/>
  8345. </method>
  8346. <method name="rename" return="boolean"
  8347. abstract="false" native="false" synchronized="false"
  8348. static="false" final="false" visibility="public"
  8349. deprecated="not deprecated">
  8350. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8351. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8352. <exception name="IOException" type="java.io.IOException"/>
  8353. </method>
  8354. <method name="setWorkingDirectory"
  8355. abstract="false" native="false" synchronized="false"
  8356. static="false" final="false" visibility="public"
  8357. deprecated="not deprecated">
  8358. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8359. <doc>
  8360. <![CDATA[Set the working directory to the given directory.]]>
  8361. </doc>
  8362. </method>
  8363. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8364. abstract="false" native="false" synchronized="false"
  8365. static="false" final="false" visibility="public"
  8366. deprecated="not deprecated">
  8367. </method>
  8368. <field name="LOG" type="org.apache.commons.logging.Log"
  8369. transient="false" volatile="false"
  8370. static="true" final="true" visibility="public"
  8371. deprecated="not deprecated">
  8372. </field>
  8373. <doc>
  8374. <![CDATA[<p>
  8375. A {@link FileSystem} for reading and writing files stored on
  8376. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8377. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8378. stores files on S3 in their
  8379. native form so they can be read by other S3 tools.
  8380. </p>
  8381. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8382. </doc>
  8383. </class>
  8384. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8385. </package>
  8386. <package name="org.apache.hadoop.fs.shell">
  8387. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8388. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8389. abstract="true"
  8390. static="false" final="false" visibility="public"
  8391. deprecated="not deprecated">
  8392. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8393. static="false" final="false" visibility="protected"
  8394. deprecated="not deprecated">
  8395. <doc>
  8396. <![CDATA[Constructor]]>
  8397. </doc>
  8398. </constructor>
  8399. <method name="getCommandName" return="java.lang.String"
  8400. abstract="true" native="false" synchronized="false"
  8401. static="false" final="false" visibility="public"
  8402. deprecated="not deprecated">
  8403. <doc>
  8404. <![CDATA[Return the command's name excluding the leading character -]]>
  8405. </doc>
  8406. </method>
  8407. <method name="run"
  8408. abstract="true" native="false" synchronized="false"
  8409. static="false" final="false" visibility="protected"
  8410. deprecated="not deprecated">
  8411. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8412. <exception name="IOException" type="java.io.IOException"/>
  8413. <doc>
  8414. <![CDATA[Execute the command on the input path
  8415. @param path the input path
  8416. @throws IOException if any error occurs]]>
  8417. </doc>
  8418. </method>
  8419. <method name="runAll" return="int"
  8420. abstract="false" native="false" synchronized="false"
  8421. static="false" final="false" visibility="public"
  8422. deprecated="not deprecated">
  8423. <doc>
  8424. <![CDATA[For each source path, execute the command
  8425. @return 0 if it runs successfully; -1 if it fails]]>
  8426. </doc>
  8427. </method>
  8428. <field name="args" type="java.lang.String[]"
  8429. transient="false" volatile="false"
  8430. static="false" final="false" visibility="protected"
  8431. deprecated="not deprecated">
  8432. </field>
  8433. <doc>
  8434. <![CDATA[An abstract class for the execution of a file system command]]>
  8435. </doc>
  8436. </class>
  8437. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8438. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8439. <class name="CommandFormat" extends="java.lang.Object"
  8440. abstract="false"
  8441. static="false" final="false" visibility="public"
  8442. deprecated="not deprecated">
  8443. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8444. static="false" final="false" visibility="public"
  8445. deprecated="not deprecated">
  8446. <doc>
  8447. <![CDATA[constructor]]>
  8448. </doc>
  8449. </constructor>
  8450. <method name="parse" return="java.util.List"
  8451. abstract="false" native="false" synchronized="false"
  8452. static="false" final="false" visibility="public"
  8453. deprecated="not deprecated">
  8454. <param name="args" type="java.lang.String[]"/>
  8455. <param name="pos" type="int"/>
  8456. <doc>
  8457. <![CDATA[Parse parameters starting from the given position
  8458. @param args an array of input arguments
  8459. @param pos the position at which starts to parse
  8460. @return a list of parameters]]>
  8461. </doc>
  8462. </method>
  8463. <method name="getOpt" return="boolean"
  8464. abstract="false" native="false" synchronized="false"
  8465. static="false" final="false" visibility="public"
  8466. deprecated="not deprecated">
  8467. <param name="option" type="java.lang.String"/>
  8468. <doc>
  8469. <![CDATA[Return if the option is set or not
  8470. @param option String representation of an option
  8471. @return true is the option is set; false otherwise]]>
  8472. </doc>
  8473. </method>
  8474. <doc>
  8475. <![CDATA[Parse the args of a command and check the format of args.]]>
  8476. </doc>
  8477. </class>
  8478. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8479. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8480. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8481. abstract="false"
  8482. static="false" final="false" visibility="public"
  8483. deprecated="not deprecated">
  8484. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8485. static="false" final="false" visibility="public"
  8486. deprecated="not deprecated">
  8487. <doc>
  8488. <![CDATA[Constructor
  8489. @param cmd the count command
  8490. @param pos the starting index of the arguments]]>
  8491. </doc>
  8492. </constructor>
  8493. <method name="matches" return="boolean"
  8494. abstract="false" native="false" synchronized="false"
  8495. static="true" final="false" visibility="public"
  8496. deprecated="not deprecated">
  8497. <param name="cmd" type="java.lang.String"/>
  8498. <doc>
  8499. <![CDATA[Check if a command is the count command
  8500. @param cmd A string representation of a command starting with "-"
  8501. @return true if this is a count command; false otherwise]]>
  8502. </doc>
  8503. </method>
  8504. <method name="getCommandName" return="java.lang.String"
  8505. abstract="false" native="false" synchronized="false"
  8506. static="false" final="false" visibility="public"
  8507. deprecated="not deprecated">
  8508. </method>
  8509. <method name="run"
  8510. abstract="false" native="false" synchronized="false"
  8511. static="false" final="false" visibility="protected"
  8512. deprecated="not deprecated">
  8513. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8514. <exception name="IOException" type="java.io.IOException"/>
  8515. </method>
  8516. <field name="NAME" type="java.lang.String"
  8517. transient="false" volatile="false"
  8518. static="true" final="true" visibility="public"
  8519. deprecated="not deprecated">
  8520. </field>
  8521. <field name="USAGE" type="java.lang.String"
  8522. transient="false" volatile="false"
  8523. static="true" final="true" visibility="public"
  8524. deprecated="not deprecated">
  8525. </field>
  8526. <field name="DESCRIPTION" type="java.lang.String"
  8527. transient="false" volatile="false"
  8528. static="true" final="true" visibility="public"
  8529. deprecated="not deprecated">
  8530. </field>
  8531. <doc>
  8532. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8533. </doc>
  8534. </class>
  8535. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8536. </package>
  8537. <package name="org.apache.hadoop.http">
  8538. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8539. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8540. abstract="false"
  8541. static="false" final="false" visibility="public"
  8542. deprecated="not deprecated">
  8543. <constructor name="AdminAuthorizedServlet"
  8544. static="false" final="false" visibility="public"
  8545. deprecated="not deprecated">
  8546. </constructor>
  8547. <method name="doGet"
  8548. abstract="false" native="false" synchronized="false"
  8549. static="false" final="false" visibility="protected"
  8550. deprecated="not deprecated">
  8551. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8552. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8553. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8554. <exception name="IOException" type="java.io.IOException"/>
  8555. </method>
  8556. <doc>
  8557. <![CDATA[General servlet which is admin-authorized.]]>
  8558. </doc>
  8559. </class>
  8560. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8561. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8562. <interface name="FilterContainer" abstract="true"
  8563. static="false" final="false" visibility="public"
  8564. deprecated="not deprecated">
  8565. <method name="addFilter"
  8566. abstract="false" native="false" synchronized="false"
  8567. static="false" final="false" visibility="public"
  8568. deprecated="not deprecated">
  8569. <param name="name" type="java.lang.String"/>
  8570. <param name="classname" type="java.lang.String"/>
  8571. <param name="parameters" type="java.util.Map"/>
  8572. <doc>
  8573. <![CDATA[Add a filter to the container.
  8574. @param name Filter name
  8575. @param classname Filter class name
  8576. @param parameters a map from parameter names to initial values]]>
  8577. </doc>
  8578. </method>
  8579. <method name="addGlobalFilter"
  8580. abstract="false" native="false" synchronized="false"
  8581. static="false" final="false" visibility="public"
  8582. deprecated="not deprecated">
  8583. <param name="name" type="java.lang.String"/>
  8584. <param name="classname" type="java.lang.String"/>
  8585. <param name="parameters" type="java.util.Map"/>
  8586. <doc>
  8587. <![CDATA[Add a global filter to the container.
  8588. @param name filter name
  8589. @param classname filter class name
  8590. @param parameters a map from parameter names to initial values]]>
  8591. </doc>
  8592. </method>
  8593. <doc>
  8594. <![CDATA[A container class for javax.servlet.Filter.]]>
  8595. </doc>
  8596. </interface>
  8597. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8598. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8599. <class name="FilterInitializer" extends="java.lang.Object"
  8600. abstract="true"
  8601. static="false" final="false" visibility="public"
  8602. deprecated="not deprecated">
  8603. <constructor name="FilterInitializer"
  8604. static="false" final="false" visibility="public"
  8605. deprecated="not deprecated">
  8606. </constructor>
  8607. <method name="initFilter"
  8608. abstract="true" native="false" synchronized="false"
  8609. static="false" final="false" visibility="public"
  8610. deprecated="not deprecated">
  8611. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8612. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8613. <doc>
  8614. <![CDATA[Initialize a Filter to a FilterContainer.
  8615. @param container The filter container
  8616. @param conf Configuration for run-time parameters]]>
  8617. </doc>
  8618. </method>
  8619. <doc>
  8620. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8621. </doc>
  8622. </class>
  8623. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8624. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8625. <class name="HtmlQuoting" extends="java.lang.Object"
  8626. abstract="false"
  8627. static="false" final="false" visibility="public"
  8628. deprecated="not deprecated">
  8629. <constructor name="HtmlQuoting"
  8630. static="false" final="false" visibility="public"
  8631. deprecated="not deprecated">
  8632. </constructor>
  8633. <method name="needsQuoting" return="boolean"
  8634. abstract="false" native="false" synchronized="false"
  8635. static="true" final="false" visibility="public"
  8636. deprecated="not deprecated">
  8637. <param name="data" type="byte[]"/>
  8638. <param name="off" type="int"/>
  8639. <param name="len" type="int"/>
  8640. <doc>
  8641. <![CDATA[Does the given string need to be quoted?
  8642. @param data the string to check
  8643. @param off the starting position
  8644. @param len the number of bytes to check
  8645. @return does the string contain any of the active html characters?]]>
  8646. </doc>
  8647. </method>
  8648. <method name="needsQuoting" return="boolean"
  8649. abstract="false" native="false" synchronized="false"
  8650. static="true" final="false" visibility="public"
  8651. deprecated="not deprecated">
  8652. <param name="str" type="java.lang.String"/>
  8653. <doc>
  8654. <![CDATA[Does the given string need to be quoted?
  8655. @param str the string to check
  8656. @return does the string contain any of the active html characters?]]>
  8657. </doc>
  8658. </method>
  8659. <method name="quoteHtmlChars"
  8660. abstract="false" native="false" synchronized="false"
  8661. static="true" final="false" visibility="public"
  8662. deprecated="not deprecated">
  8663. <param name="output" type="java.io.OutputStream"/>
  8664. <param name="buffer" type="byte[]"/>
  8665. <param name="off" type="int"/>
  8666. <param name="len" type="int"/>
  8667. <exception name="IOException" type="java.io.IOException"/>
  8668. <doc>
  8669. <![CDATA[Quote all of the active HTML characters in the given string as they
  8670. are added to the buffer.
  8671. @param output the stream to write the output to
  8672. @param buffer the byte array to take the characters from
  8673. @param off the index of the first byte to quote
  8674. @param len the number of bytes to quote]]>
  8675. </doc>
  8676. </method>
  8677. <method name="quoteHtmlChars" return="java.lang.String"
  8678. abstract="false" native="false" synchronized="false"
  8679. static="true" final="false" visibility="public"
  8680. deprecated="not deprecated">
  8681. <param name="item" type="java.lang.String"/>
  8682. <doc>
  8683. <![CDATA[Quote the given item to make it html-safe.
  8684. @param item the string to quote
  8685. @return the quoted string]]>
  8686. </doc>
  8687. </method>
  8688. <method name="quoteOutputStream" return="java.io.OutputStream"
  8689. abstract="false" native="false" synchronized="false"
  8690. static="true" final="false" visibility="public"
  8691. deprecated="not deprecated">
  8692. <param name="out" type="java.io.OutputStream"/>
  8693. <exception name="IOException" type="java.io.IOException"/>
  8694. <doc>
  8695. <![CDATA[Return an output stream that quotes all of the output.
  8696. @param out the stream to write the quoted output to
  8697. @return a new stream that the application show write to
  8698. @throws IOException if the underlying output fails]]>
  8699. </doc>
  8700. </method>
  8701. <method name="unquoteHtmlChars" return="java.lang.String"
  8702. abstract="false" native="false" synchronized="false"
  8703. static="true" final="false" visibility="public"
  8704. deprecated="not deprecated">
  8705. <param name="item" type="java.lang.String"/>
  8706. <doc>
  8707. <![CDATA[Remove HTML quoting from a string.
  8708. @param item the string to unquote
  8709. @return the unquoted string]]>
  8710. </doc>
  8711. </method>
  8712. <method name="main"
  8713. abstract="false" native="false" synchronized="false"
  8714. static="true" final="false" visibility="public"
  8715. deprecated="not deprecated">
  8716. <param name="args" type="java.lang.String[]"/>
  8717. <exception name="Exception" type="java.lang.Exception"/>
  8718. </method>
  8719. <doc>
  8720. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8721. </doc>
  8722. </class>
  8723. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8724. <!-- start class org.apache.hadoop.http.HttpServer -->
  8725. <class name="HttpServer" extends="java.lang.Object"
  8726. abstract="false"
  8727. static="false" final="false" visibility="public"
  8728. deprecated="not deprecated">
  8729. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8730. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8731. static="false" final="false" visibility="public"
  8732. deprecated="not deprecated">
  8733. <exception name="IOException" type="java.io.IOException"/>
  8734. <doc>
  8735. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8736. </doc>
  8737. </constructor>
  8738. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8739. static="false" final="false" visibility="public"
  8740. deprecated="not deprecated">
  8741. <exception name="IOException" type="java.io.IOException"/>
  8742. </constructor>
  8743. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8744. static="false" final="false" visibility="public"
  8745. deprecated="not deprecated">
  8746. <exception name="IOException" type="java.io.IOException"/>
  8747. </constructor>
  8748. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8749. static="false" final="false" visibility="public"
  8750. deprecated="not deprecated">
  8751. <exception name="IOException" type="java.io.IOException"/>
  8752. <doc>
  8753. <![CDATA[Create a status server on the given port.
  8754. The jsp scripts are taken from src/webapps/<name>.
  8755. @param name The name of the server
  8756. @param port The port to use on the server
  8757. @param findPort whether the server should start at the given port and
  8758. increment by 1 until it finds a free port.
  8759. @param conf Configuration
  8760. @param adminsAcl {@link AccessControlList} of the admins]]>
  8761. </doc>
  8762. </constructor>
  8763. <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"
  8764. static="false" final="false" visibility="public"
  8765. deprecated="not deprecated">
  8766. <exception name="IOException" type="java.io.IOException"/>
  8767. </constructor>
  8768. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8769. abstract="false" native="false" synchronized="false"
  8770. static="false" final="false" visibility="public"
  8771. deprecated="not deprecated">
  8772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8773. <exception name="IOException" type="java.io.IOException"/>
  8774. <doc>
  8775. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8776. provided. This wrapper and all subclasses must create at least one
  8777. listener.]]>
  8778. </doc>
  8779. </method>
  8780. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  8781. abstract="false" native="false" synchronized="false"
  8782. static="true" final="false" visibility="public"
  8783. deprecated="not deprecated">
  8784. </method>
  8785. <method name="addDefaultApps"
  8786. abstract="false" native="false" synchronized="false"
  8787. static="false" final="false" visibility="protected"
  8788. deprecated="not deprecated">
  8789. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8790. <param name="appDir" type="java.lang.String"/>
  8791. <exception name="IOException" type="java.io.IOException"/>
  8792. <doc>
  8793. <![CDATA[Add default apps.
  8794. @param appDir The application directory
  8795. @throws IOException]]>
  8796. </doc>
  8797. </method>
  8798. <method name="addDefaultServlets"
  8799. abstract="false" native="false" synchronized="false"
  8800. static="false" final="false" visibility="protected"
  8801. deprecated="not deprecated">
  8802. <doc>
  8803. <![CDATA[Add default servlets.]]>
  8804. </doc>
  8805. </method>
  8806. <method name="addContext"
  8807. abstract="false" native="false" synchronized="false"
  8808. static="false" final="false" visibility="public"
  8809. deprecated="not deprecated">
  8810. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8811. <param name="isFiltered" type="boolean"/>
  8812. <exception name="IOException" type="java.io.IOException"/>
  8813. </method>
  8814. <method name="addContext"
  8815. abstract="false" native="false" synchronized="false"
  8816. static="false" final="false" visibility="protected"
  8817. deprecated="not deprecated">
  8818. <param name="pathSpec" type="java.lang.String"/>
  8819. <param name="dir" type="java.lang.String"/>
  8820. <param name="isFiltered" type="boolean"/>
  8821. <exception name="IOException" type="java.io.IOException"/>
  8822. <doc>
  8823. <![CDATA[Add a context
  8824. @param pathSpec The path spec for the context
  8825. @param dir The directory containing the context
  8826. @param isFiltered if true, the servlet is added to the filter path mapping
  8827. @throws IOException]]>
  8828. </doc>
  8829. </method>
  8830. <method name="setAttribute"
  8831. abstract="false" native="false" synchronized="false"
  8832. static="false" final="false" visibility="public"
  8833. deprecated="not deprecated">
  8834. <param name="name" type="java.lang.String"/>
  8835. <param name="value" type="java.lang.Object"/>
  8836. <doc>
  8837. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8838. pages as "application.getAttribute(name)".
  8839. @param name The name of the attribute
  8840. @param value The value of the attribute]]>
  8841. </doc>
  8842. </method>
  8843. <method name="setAttribute"
  8844. abstract="false" native="false" synchronized="false"
  8845. static="false" final="false" visibility="public"
  8846. deprecated="not deprecated">
  8847. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  8848. <param name="name" type="java.lang.String"/>
  8849. <param name="value" type="java.lang.Object"/>
  8850. <doc>
  8851. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8852. pages as "application.getAttribute(name)".
  8853. @param context Context to add attribute
  8854. @param name The name of the attribute
  8855. @param value The value of the attribute]]>
  8856. </doc>
  8857. </method>
  8858. <method name="addJerseyResourcePackage"
  8859. abstract="false" native="false" synchronized="false"
  8860. static="false" final="false" visibility="public"
  8861. deprecated="not deprecated">
  8862. <param name="packageName" type="java.lang.String"/>
  8863. <param name="pathSpec" type="java.lang.String"/>
  8864. <doc>
  8865. <![CDATA[Add a Jersey resource package.
  8866. @param packageName The Java package name containing the Jersey resource.
  8867. @param pathSpec The path spec for the servlet]]>
  8868. </doc>
  8869. </method>
  8870. <method name="addServlet"
  8871. abstract="false" native="false" synchronized="false"
  8872. static="false" final="false" visibility="public"
  8873. deprecated="not deprecated">
  8874. <param name="name" type="java.lang.String"/>
  8875. <param name="pathSpec" type="java.lang.String"/>
  8876. <param name="clazz" type="java.lang.Class"/>
  8877. <doc>
  8878. <![CDATA[Add a servlet in the server.
  8879. @param name The name of the servlet (can be passed as null)
  8880. @param pathSpec The path spec for the servlet
  8881. @param clazz The servlet class]]>
  8882. </doc>
  8883. </method>
  8884. <method name="addInternalServlet"
  8885. abstract="false" native="false" synchronized="false"
  8886. static="false" final="false" visibility="public"
  8887. deprecated="this is a temporary method">
  8888. <param name="name" type="java.lang.String"/>
  8889. <param name="pathSpec" type="java.lang.String"/>
  8890. <param name="clazz" type="java.lang.Class"/>
  8891. <doc>
  8892. <![CDATA[Add an internal servlet in the server.
  8893. @param name The name of the servlet (can be passed as null)
  8894. @param pathSpec The path spec for the servlet
  8895. @param clazz The servlet class
  8896. @deprecated this is a temporary method]]>
  8897. </doc>
  8898. </method>
  8899. <method name="addInternalServlet"
  8900. abstract="false" native="false" synchronized="false"
  8901. static="false" final="false" visibility="public"
  8902. deprecated="not deprecated">
  8903. <param name="name" type="java.lang.String"/>
  8904. <param name="pathSpec" type="java.lang.String"/>
  8905. <param name="clazz" type="java.lang.Class"/>
  8906. <param name="requireAuth" type="boolean"/>
  8907. <doc>
  8908. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  8909. protect with Kerberos authentication.
  8910. Note: This method is to be used for adding servlets that facilitate
  8911. internal communication and not for user facing functionality. For
  8912. servlets added using this method, filters (except internal Kerberized
  8913. filters) are not enabled.
  8914. @param name The name of the servlet (can be passed as null)
  8915. @param pathSpec The path spec for the servlet
  8916. @param clazz The servlet class]]>
  8917. </doc>
  8918. </method>
  8919. <method name="addFilter"
  8920. abstract="false" native="false" synchronized="false"
  8921. static="false" final="false" visibility="public"
  8922. deprecated="not deprecated">
  8923. <param name="name" type="java.lang.String"/>
  8924. <param name="classname" type="java.lang.String"/>
  8925. <param name="parameters" type="java.util.Map"/>
  8926. <doc>
  8927. <![CDATA[{@inheritDoc}]]>
  8928. </doc>
  8929. </method>
  8930. <method name="addGlobalFilter"
  8931. abstract="false" native="false" synchronized="false"
  8932. static="false" final="false" visibility="public"
  8933. deprecated="not deprecated">
  8934. <param name="name" type="java.lang.String"/>
  8935. <param name="classname" type="java.lang.String"/>
  8936. <param name="parameters" type="java.util.Map"/>
  8937. <doc>
  8938. <![CDATA[{@inheritDoc}]]>
  8939. </doc>
  8940. </method>
  8941. <method name="defineFilter"
  8942. abstract="false" native="false" synchronized="false"
  8943. static="false" final="false" visibility="protected"
  8944. deprecated="not deprecated">
  8945. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  8946. <param name="name" type="java.lang.String"/>
  8947. <param name="classname" type="java.lang.String"/>
  8948. <param name="parameters" type="java.util.Map"/>
  8949. <param name="urls" type="java.lang.String[]"/>
  8950. <doc>
  8951. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  8952. </doc>
  8953. </method>
  8954. <method name="addFilterPathMapping"
  8955. abstract="false" native="false" synchronized="false"
  8956. static="false" final="false" visibility="protected"
  8957. deprecated="not deprecated">
  8958. <param name="pathSpec" type="java.lang.String"/>
  8959. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  8960. <doc>
  8961. <![CDATA[Add the path spec to the filter path mapping.
  8962. @param pathSpec The path spec
  8963. @param webAppCtx The WebApplicationContext to add to]]>
  8964. </doc>
  8965. </method>
  8966. <method name="getAttribute" return="java.lang.Object"
  8967. abstract="false" native="false" synchronized="false"
  8968. static="false" final="false" visibility="public"
  8969. deprecated="not deprecated">
  8970. <param name="name" type="java.lang.String"/>
  8971. <doc>
  8972. <![CDATA[Get the value in the webapp context.
  8973. @param name The name of the attribute
  8974. @return The value of the attribute]]>
  8975. </doc>
  8976. </method>
  8977. <method name="getWebAppsPath" return="java.lang.String"
  8978. abstract="false" native="false" synchronized="false"
  8979. static="false" final="false" visibility="protected"
  8980. deprecated="not deprecated">
  8981. <exception name="IOException" type="java.io.IOException"/>
  8982. <doc>
  8983. <![CDATA[Get the pathname to the webapps files.
  8984. @return the pathname as a URL
  8985. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  8986. </doc>
  8987. </method>
  8988. <method name="getPort" return="int"
  8989. abstract="false" native="false" synchronized="false"
  8990. static="false" final="false" visibility="public"
  8991. deprecated="not deprecated">
  8992. <doc>
  8993. <![CDATA[Get the port that the server is on
  8994. @return the port]]>
  8995. </doc>
  8996. </method>
  8997. <method name="setThreads"
  8998. abstract="false" native="false" synchronized="false"
  8999. static="false" final="false" visibility="public"
  9000. deprecated="not deprecated">
  9001. <param name="min" type="int"/>
  9002. <param name="max" type="int"/>
  9003. <doc>
  9004. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  9005. </doc>
  9006. </method>
  9007. <method name="addSslListener"
  9008. abstract="false" native="false" synchronized="false"
  9009. static="false" final="false" visibility="public"
  9010. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  9011. <param name="addr" type="java.net.InetSocketAddress"/>
  9012. <param name="keystore" type="java.lang.String"/>
  9013. <param name="storPass" type="java.lang.String"/>
  9014. <param name="keyPass" type="java.lang.String"/>
  9015. <exception name="IOException" type="java.io.IOException"/>
  9016. <doc>
  9017. <![CDATA[Configure an ssl listener on the server.
  9018. @param addr address to listen on
  9019. @param keystore location of the keystore
  9020. @param storPass password for the keystore
  9021. @param keyPass password for the key
  9022. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  9023. </doc>
  9024. </method>
  9025. <method name="addSslListener"
  9026. abstract="false" native="false" synchronized="false"
  9027. static="false" final="false" visibility="public"
  9028. deprecated="not deprecated">
  9029. <param name="addr" type="java.net.InetSocketAddress"/>
  9030. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9031. <param name="needClientAuth" type="boolean"/>
  9032. <exception name="IOException" type="java.io.IOException"/>
  9033. <doc>
  9034. <![CDATA[Configure an ssl listener on the server.
  9035. @param addr address to listen on
  9036. @param sslConf conf to retrieve ssl options
  9037. @param needClientAuth whether client authentication is required]]>
  9038. </doc>
  9039. </method>
  9040. <method name="addSslListener"
  9041. abstract="false" native="false" synchronized="false"
  9042. static="false" final="false" visibility="public"
  9043. deprecated="not deprecated">
  9044. <param name="addr" type="java.net.InetSocketAddress"/>
  9045. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9046. <param name="needCertsAuth" type="boolean"/>
  9047. <param name="needKrbAuth" type="boolean"/>
  9048. <exception name="IOException" type="java.io.IOException"/>
  9049. <doc>
  9050. <![CDATA[Configure an ssl listener on the server.
  9051. @param addr address to listen on
  9052. @param sslConf conf to retrieve ssl options
  9053. @param needCertsAuth whether x509 certificate authentication is required
  9054. @param needKrbAuth whether to allow kerberos auth]]>
  9055. </doc>
  9056. </method>
  9057. <method name="start"
  9058. abstract="false" native="false" synchronized="false"
  9059. static="false" final="false" visibility="public"
  9060. deprecated="not deprecated">
  9061. <exception name="IOException" type="java.io.IOException"/>
  9062. <doc>
  9063. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9064. </doc>
  9065. </method>
  9066. <method name="stop"
  9067. abstract="false" native="false" synchronized="false"
  9068. static="false" final="false" visibility="public"
  9069. deprecated="not deprecated">
  9070. <exception name="Exception" type="java.lang.Exception"/>
  9071. <doc>
  9072. <![CDATA[stop the server]]>
  9073. </doc>
  9074. </method>
  9075. <method name="join"
  9076. abstract="false" native="false" synchronized="false"
  9077. static="false" final="false" visibility="public"
  9078. deprecated="not deprecated">
  9079. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9080. </method>
  9081. <method name="hasAdministratorAccess" return="boolean"
  9082. abstract="false" native="false" synchronized="false"
  9083. static="true" final="false" visibility="public"
  9084. deprecated="not deprecated">
  9085. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9086. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9087. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9088. <exception name="IOException" type="java.io.IOException"/>
  9089. <doc>
  9090. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9091. it isn't the case, response will be modified to send an error to the user.
  9092. @param servletContext
  9093. @param request
  9094. @param response
  9095. @return true if admin-authorized, false otherwise
  9096. @throws IOException]]>
  9097. </doc>
  9098. </method>
  9099. <field name="LOG" type="org.apache.commons.logging.Log"
  9100. transient="false" volatile="false"
  9101. static="true" final="true" visibility="public"
  9102. deprecated="not deprecated">
  9103. </field>
  9104. <field name="webServer" type="org.mortbay.jetty.Server"
  9105. transient="false" volatile="false"
  9106. static="false" final="true" visibility="protected"
  9107. deprecated="not deprecated">
  9108. </field>
  9109. <field name="listener" type="org.mortbay.jetty.Connector"
  9110. transient="false" volatile="false"
  9111. static="false" final="true" visibility="protected"
  9112. deprecated="not deprecated">
  9113. </field>
  9114. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9115. transient="false" volatile="false"
  9116. static="false" final="true" visibility="protected"
  9117. deprecated="not deprecated">
  9118. </field>
  9119. <field name="findPort" type="boolean"
  9120. transient="false" volatile="false"
  9121. static="false" final="true" visibility="protected"
  9122. deprecated="not deprecated">
  9123. </field>
  9124. <field name="defaultContexts" type="java.util.Map"
  9125. transient="false" volatile="false"
  9126. static="false" final="true" visibility="protected"
  9127. deprecated="not deprecated">
  9128. </field>
  9129. <field name="filterNames" type="java.util.List"
  9130. transient="false" volatile="false"
  9131. static="false" final="true" visibility="protected"
  9132. deprecated="not deprecated">
  9133. </field>
  9134. <doc>
  9135. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9136. is to serve up status information for the server.
  9137. There are three contexts:
  9138. "/logs/" -> points to the log directory
  9139. "/static/" -> points to common static files (src/webapps/static)
  9140. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9141. </doc>
  9142. </class>
  9143. <!-- end class org.apache.hadoop.http.HttpServer -->
  9144. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9145. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9146. abstract="false"
  9147. static="true" final="false" visibility="public"
  9148. deprecated="not deprecated">
  9149. <implements name="javax.servlet.Filter"/>
  9150. <constructor name="HttpServer.QuotingInputFilter"
  9151. static="false" final="false" visibility="public"
  9152. deprecated="not deprecated">
  9153. </constructor>
  9154. <method name="init"
  9155. abstract="false" native="false" synchronized="false"
  9156. static="false" final="false" visibility="public"
  9157. deprecated="not deprecated">
  9158. <param name="config" type="javax.servlet.FilterConfig"/>
  9159. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9160. </method>
  9161. <method name="destroy"
  9162. abstract="false" native="false" synchronized="false"
  9163. static="false" final="false" visibility="public"
  9164. deprecated="not deprecated">
  9165. </method>
  9166. <method name="doFilter"
  9167. abstract="false" native="false" synchronized="false"
  9168. static="false" final="false" visibility="public"
  9169. deprecated="not deprecated">
  9170. <param name="request" type="javax.servlet.ServletRequest"/>
  9171. <param name="response" type="javax.servlet.ServletResponse"/>
  9172. <param name="chain" type="javax.servlet.FilterChain"/>
  9173. <exception name="IOException" type="java.io.IOException"/>
  9174. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9175. </method>
  9176. <doc>
  9177. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9178. parameter names and values. The goal is to quote the characters to make
  9179. all of the servlets resistant to cross-site scripting attacks.]]>
  9180. </doc>
  9181. </class>
  9182. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9183. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9184. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9185. abstract="false"
  9186. static="true" final="false" visibility="public"
  9187. deprecated="not deprecated">
  9188. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9189. static="false" final="false" visibility="public"
  9190. deprecated="not deprecated">
  9191. </constructor>
  9192. <method name="getParameterNames" return="java.util.Enumeration"
  9193. abstract="false" native="false" synchronized="false"
  9194. static="false" final="false" visibility="public"
  9195. deprecated="not deprecated">
  9196. <doc>
  9197. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9198. </doc>
  9199. </method>
  9200. <method name="getParameter" return="java.lang.String"
  9201. abstract="false" native="false" synchronized="false"
  9202. static="false" final="false" visibility="public"
  9203. deprecated="not deprecated">
  9204. <param name="name" type="java.lang.String"/>
  9205. <doc>
  9206. <![CDATA[Unquote the name and quote the value.]]>
  9207. </doc>
  9208. </method>
  9209. <method name="getParameterValues" return="java.lang.String[]"
  9210. abstract="false" native="false" synchronized="false"
  9211. static="false" final="false" visibility="public"
  9212. deprecated="not deprecated">
  9213. <param name="name" type="java.lang.String"/>
  9214. </method>
  9215. <method name="getParameterMap" return="java.util.Map"
  9216. abstract="false" native="false" synchronized="false"
  9217. static="false" final="false" visibility="public"
  9218. deprecated="not deprecated">
  9219. </method>
  9220. <method name="getRequestURL" return="java.lang.StringBuffer"
  9221. abstract="false" native="false" synchronized="false"
  9222. static="false" final="false" visibility="public"
  9223. deprecated="not deprecated">
  9224. <doc>
  9225. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9226. can't inject attacks.]]>
  9227. </doc>
  9228. </method>
  9229. <method name="getServerName" return="java.lang.String"
  9230. abstract="false" native="false" synchronized="false"
  9231. static="false" final="false" visibility="public"
  9232. deprecated="not deprecated">
  9233. <doc>
  9234. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9235. can't inject attacks.]]>
  9236. </doc>
  9237. </method>
  9238. </class>
  9239. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9240. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9241. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9242. abstract="false"
  9243. static="true" final="false" visibility="public"
  9244. deprecated="not deprecated">
  9245. <constructor name="HttpServer.StackServlet"
  9246. static="false" final="false" visibility="public"
  9247. deprecated="not deprecated">
  9248. </constructor>
  9249. <method name="doGet"
  9250. abstract="false" native="false" synchronized="false"
  9251. static="false" final="false" visibility="public"
  9252. deprecated="not deprecated">
  9253. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9254. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9255. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9256. <exception name="IOException" type="java.io.IOException"/>
  9257. </method>
  9258. <doc>
  9259. <![CDATA[A very simple servlet to serve up a text representation of the current
  9260. stack traces. It both returns the stacks to the caller and logs them.
  9261. Currently the stack traces are done sequentially rather than exactly the
  9262. same data.]]>
  9263. </doc>
  9264. </class>
  9265. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9266. </package>
  9267. <package name="org.apache.hadoop.http.lib">
  9268. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9269. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9270. abstract="false"
  9271. static="false" final="false" visibility="public"
  9272. deprecated="not deprecated">
  9273. <constructor name="StaticUserWebFilter"
  9274. static="false" final="false" visibility="public"
  9275. deprecated="not deprecated">
  9276. </constructor>
  9277. <method name="initFilter"
  9278. abstract="false" native="false" synchronized="false"
  9279. static="false" final="false" visibility="public"
  9280. deprecated="not deprecated">
  9281. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9282. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9283. </method>
  9284. <doc>
  9285. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9286. so that the web UI is usable for a secure cluster without authentication.]]>
  9287. </doc>
  9288. </class>
  9289. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9290. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9291. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9292. abstract="false"
  9293. static="true" final="false" visibility="public"
  9294. deprecated="not deprecated">
  9295. <implements name="javax.servlet.Filter"/>
  9296. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9297. static="false" final="false" visibility="public"
  9298. deprecated="not deprecated">
  9299. </constructor>
  9300. <method name="destroy"
  9301. abstract="false" native="false" synchronized="false"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. </method>
  9305. <method name="doFilter"
  9306. abstract="false" native="false" synchronized="false"
  9307. static="false" final="false" visibility="public"
  9308. deprecated="not deprecated">
  9309. <param name="request" type="javax.servlet.ServletRequest"/>
  9310. <param name="response" type="javax.servlet.ServletResponse"/>
  9311. <param name="chain" type="javax.servlet.FilterChain"/>
  9312. <exception name="IOException" type="java.io.IOException"/>
  9313. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9314. </method>
  9315. <method name="init"
  9316. abstract="false" native="false" synchronized="false"
  9317. static="false" final="false" visibility="public"
  9318. deprecated="not deprecated">
  9319. <param name="conf" type="javax.servlet.FilterConfig"/>
  9320. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9321. </method>
  9322. </class>
  9323. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9324. </package>
  9325. <package name="org.apache.hadoop.io">
  9326. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9327. <class name="AbstractMapWritable" extends="java.lang.Object"
  9328. abstract="true"
  9329. static="false" final="false" visibility="public"
  9330. deprecated="not deprecated">
  9331. <implements name="org.apache.hadoop.io.Writable"/>
  9332. <implements name="org.apache.hadoop.conf.Configurable"/>
  9333. <constructor name="AbstractMapWritable"
  9334. static="false" final="false" visibility="protected"
  9335. deprecated="not deprecated">
  9336. <doc>
  9337. <![CDATA[constructor.]]>
  9338. </doc>
  9339. </constructor>
  9340. <method name="addToMap"
  9341. abstract="false" native="false" synchronized="true"
  9342. static="false" final="false" visibility="protected"
  9343. deprecated="not deprecated">
  9344. <param name="clazz" type="java.lang.Class"/>
  9345. <doc>
  9346. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9347. </doc>
  9348. </method>
  9349. <method name="getClass" return="java.lang.Class"
  9350. abstract="false" native="false" synchronized="false"
  9351. static="false" final="false" visibility="protected"
  9352. deprecated="not deprecated">
  9353. <param name="id" type="byte"/>
  9354. <doc>
  9355. <![CDATA[@return the Class class for the specified id]]>
  9356. </doc>
  9357. </method>
  9358. <method name="getId" return="byte"
  9359. abstract="false" native="false" synchronized="false"
  9360. static="false" final="false" visibility="protected"
  9361. deprecated="not deprecated">
  9362. <param name="clazz" type="java.lang.Class"/>
  9363. <doc>
  9364. <![CDATA[@return the id for the specified Class]]>
  9365. </doc>
  9366. </method>
  9367. <method name="copy"
  9368. abstract="false" native="false" synchronized="true"
  9369. static="false" final="false" visibility="protected"
  9370. deprecated="not deprecated">
  9371. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9372. <doc>
  9373. <![CDATA[Used by child copy constructors.]]>
  9374. </doc>
  9375. </method>
  9376. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9377. abstract="false" native="false" synchronized="false"
  9378. static="false" final="false" visibility="public"
  9379. deprecated="not deprecated">
  9380. <doc>
  9381. <![CDATA[@return the conf]]>
  9382. </doc>
  9383. </method>
  9384. <method name="setConf"
  9385. abstract="false" native="false" synchronized="false"
  9386. static="false" final="false" visibility="public"
  9387. deprecated="not deprecated">
  9388. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9389. <doc>
  9390. <![CDATA[@param conf the conf to set]]>
  9391. </doc>
  9392. </method>
  9393. <method name="write"
  9394. abstract="false" native="false" synchronized="false"
  9395. static="false" final="false" visibility="public"
  9396. deprecated="not deprecated">
  9397. <param name="out" type="java.io.DataOutput"/>
  9398. <exception name="IOException" type="java.io.IOException"/>
  9399. <doc>
  9400. <![CDATA[{@inheritDoc}]]>
  9401. </doc>
  9402. </method>
  9403. <method name="readFields"
  9404. abstract="false" native="false" synchronized="false"
  9405. static="false" final="false" visibility="public"
  9406. deprecated="not deprecated">
  9407. <param name="in" type="java.io.DataInput"/>
  9408. <exception name="IOException" type="java.io.IOException"/>
  9409. <doc>
  9410. <![CDATA[{@inheritDoc}]]>
  9411. </doc>
  9412. </method>
  9413. <doc>
  9414. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9415. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9416. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9417. maps travel with the class instead of being static.
  9418. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9419. in any specific map instance.]]>
  9420. </doc>
  9421. </class>
  9422. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9423. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9424. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9425. abstract="false"
  9426. static="false" final="false" visibility="public"
  9427. deprecated="not deprecated">
  9428. <constructor name="ArrayFile"
  9429. static="false" final="false" visibility="protected"
  9430. deprecated="not deprecated">
  9431. </constructor>
  9432. <doc>
  9433. <![CDATA[A dense file-based mapping from integers to values.]]>
  9434. </doc>
  9435. </class>
  9436. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9437. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9438. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9439. abstract="false"
  9440. static="true" final="false" visibility="public"
  9441. deprecated="not deprecated">
  9442. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9443. static="false" final="false" visibility="public"
  9444. deprecated="not deprecated">
  9445. <exception name="IOException" type="java.io.IOException"/>
  9446. <doc>
  9447. <![CDATA[Construct an array reader for the named file.]]>
  9448. </doc>
  9449. </constructor>
  9450. <method name="seek"
  9451. abstract="false" native="false" synchronized="true"
  9452. static="false" final="false" visibility="public"
  9453. deprecated="not deprecated">
  9454. <param name="n" type="long"/>
  9455. <exception name="IOException" type="java.io.IOException"/>
  9456. <doc>
  9457. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9458. </doc>
  9459. </method>
  9460. <method name="next" return="org.apache.hadoop.io.Writable"
  9461. abstract="false" native="false" synchronized="true"
  9462. static="false" final="false" visibility="public"
  9463. deprecated="not deprecated">
  9464. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9465. <exception name="IOException" type="java.io.IOException"/>
  9466. <doc>
  9467. <![CDATA[Read and return the next value in the file.]]>
  9468. </doc>
  9469. </method>
  9470. <method name="key" return="long"
  9471. abstract="false" native="false" synchronized="true"
  9472. static="false" final="false" visibility="public"
  9473. deprecated="not deprecated">
  9474. <exception name="IOException" type="java.io.IOException"/>
  9475. <doc>
  9476. <![CDATA[Returns the key associated with the most recent call to {@link
  9477. #seek(long)}, {@link #next(Writable)}, or {@link
  9478. #get(long,Writable)}.]]>
  9479. </doc>
  9480. </method>
  9481. <method name="get" return="org.apache.hadoop.io.Writable"
  9482. abstract="false" native="false" synchronized="true"
  9483. static="false" final="false" visibility="public"
  9484. deprecated="not deprecated">
  9485. <param name="n" type="long"/>
  9486. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9487. <exception name="IOException" type="java.io.IOException"/>
  9488. <doc>
  9489. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9490. </doc>
  9491. </method>
  9492. <doc>
  9493. <![CDATA[Provide access to an existing array file.]]>
  9494. </doc>
  9495. </class>
  9496. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9497. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9498. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9499. abstract="false"
  9500. static="true" final="false" visibility="public"
  9501. deprecated="not deprecated">
  9502. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9503. static="false" final="false" visibility="public"
  9504. deprecated="not deprecated">
  9505. <exception name="IOException" type="java.io.IOException"/>
  9506. <doc>
  9507. <![CDATA[Create the named file for values of the named class.]]>
  9508. </doc>
  9509. </constructor>
  9510. <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"
  9511. static="false" final="false" visibility="public"
  9512. deprecated="not deprecated">
  9513. <exception name="IOException" type="java.io.IOException"/>
  9514. <doc>
  9515. <![CDATA[Create the named file for values of the named class.]]>
  9516. </doc>
  9517. </constructor>
  9518. <method name="append"
  9519. abstract="false" native="false" synchronized="true"
  9520. static="false" final="false" visibility="public"
  9521. deprecated="not deprecated">
  9522. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9523. <exception name="IOException" type="java.io.IOException"/>
  9524. <doc>
  9525. <![CDATA[Append a value to the file.]]>
  9526. </doc>
  9527. </method>
  9528. <doc>
  9529. <![CDATA[Write a new array file.]]>
  9530. </doc>
  9531. </class>
  9532. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9533. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9534. <class name="ArrayWritable" extends="java.lang.Object"
  9535. abstract="false"
  9536. static="false" final="false" visibility="public"
  9537. deprecated="not deprecated">
  9538. <implements name="org.apache.hadoop.io.Writable"/>
  9539. <constructor name="ArrayWritable" type="java.lang.Class"
  9540. static="false" final="false" visibility="public"
  9541. deprecated="not deprecated">
  9542. </constructor>
  9543. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9544. static="false" final="false" visibility="public"
  9545. deprecated="not deprecated">
  9546. </constructor>
  9547. <constructor name="ArrayWritable" type="java.lang.String[]"
  9548. static="false" final="false" visibility="public"
  9549. deprecated="not deprecated">
  9550. </constructor>
  9551. <method name="getValueClass" return="java.lang.Class"
  9552. abstract="false" native="false" synchronized="false"
  9553. static="false" final="false" visibility="public"
  9554. deprecated="not deprecated">
  9555. </method>
  9556. <method name="toStrings" return="java.lang.String[]"
  9557. abstract="false" native="false" synchronized="false"
  9558. static="false" final="false" visibility="public"
  9559. deprecated="not deprecated">
  9560. </method>
  9561. <method name="toArray" return="java.lang.Object"
  9562. abstract="false" native="false" synchronized="false"
  9563. static="false" final="false" visibility="public"
  9564. deprecated="not deprecated">
  9565. </method>
  9566. <method name="set"
  9567. abstract="false" native="false" synchronized="false"
  9568. static="false" final="false" visibility="public"
  9569. deprecated="not deprecated">
  9570. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9571. </method>
  9572. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9573. abstract="false" native="false" synchronized="false"
  9574. static="false" final="false" visibility="public"
  9575. deprecated="not deprecated">
  9576. </method>
  9577. <method name="readFields"
  9578. abstract="false" native="false" synchronized="false"
  9579. static="false" final="false" visibility="public"
  9580. deprecated="not deprecated">
  9581. <param name="in" type="java.io.DataInput"/>
  9582. <exception name="IOException" type="java.io.IOException"/>
  9583. </method>
  9584. <method name="write"
  9585. abstract="false" native="false" synchronized="false"
  9586. static="false" final="false" visibility="public"
  9587. deprecated="not deprecated">
  9588. <param name="out" type="java.io.DataOutput"/>
  9589. <exception name="IOException" type="java.io.IOException"/>
  9590. </method>
  9591. <doc>
  9592. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9593. writable must all be instances of the same class. If this writable will be
  9594. the input for a Reducer, you will need to create a subclass that sets the
  9595. value to be of the proper type.
  9596. For example:
  9597. <code>
  9598. public class IntArrayWritable extends ArrayWritable {
  9599. public IntArrayWritable() {
  9600. super(IntWritable.class);
  9601. }
  9602. }
  9603. </code>]]>
  9604. </doc>
  9605. </class>
  9606. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9607. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9608. <class name="BinaryComparable" extends="java.lang.Object"
  9609. abstract="true"
  9610. static="false" final="false" visibility="public"
  9611. deprecated="not deprecated">
  9612. <implements name="java.lang.Comparable"/>
  9613. <constructor name="BinaryComparable"
  9614. static="false" final="false" visibility="public"
  9615. deprecated="not deprecated">
  9616. </constructor>
  9617. <method name="getLength" return="int"
  9618. abstract="true" native="false" synchronized="false"
  9619. static="false" final="false" visibility="public"
  9620. deprecated="not deprecated">
  9621. <doc>
  9622. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9623. </doc>
  9624. </method>
  9625. <method name="getBytes" return="byte[]"
  9626. abstract="true" native="false" synchronized="false"
  9627. static="false" final="false" visibility="public"
  9628. deprecated="not deprecated">
  9629. <doc>
  9630. <![CDATA[Return representative byte array for this instance.]]>
  9631. </doc>
  9632. </method>
  9633. <method name="compareTo" return="int"
  9634. abstract="false" native="false" synchronized="false"
  9635. static="false" final="false" visibility="public"
  9636. deprecated="not deprecated">
  9637. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9638. <doc>
  9639. <![CDATA[Compare bytes from {#getBytes()}.
  9640. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9641. </doc>
  9642. </method>
  9643. <method name="compareTo" return="int"
  9644. abstract="false" native="false" synchronized="false"
  9645. static="false" final="false" visibility="public"
  9646. deprecated="not deprecated">
  9647. <param name="other" type="byte[]"/>
  9648. <param name="off" type="int"/>
  9649. <param name="len" type="int"/>
  9650. <doc>
  9651. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9652. </doc>
  9653. </method>
  9654. <method name="equals" return="boolean"
  9655. abstract="false" native="false" synchronized="false"
  9656. static="false" final="false" visibility="public"
  9657. deprecated="not deprecated">
  9658. <param name="other" type="java.lang.Object"/>
  9659. <doc>
  9660. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9661. </doc>
  9662. </method>
  9663. <method name="hashCode" return="int"
  9664. abstract="false" native="false" synchronized="false"
  9665. static="false" final="false" visibility="public"
  9666. deprecated="not deprecated">
  9667. <doc>
  9668. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9669. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9670. </doc>
  9671. </method>
  9672. <doc>
  9673. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9674. types supporting ordering/permutation by a representative set of bytes.]]>
  9675. </doc>
  9676. </class>
  9677. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9678. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9679. <class name="BloomMapFile" extends="java.lang.Object"
  9680. abstract="false"
  9681. static="false" final="false" visibility="public"
  9682. deprecated="not deprecated">
  9683. <constructor name="BloomMapFile"
  9684. static="false" final="false" visibility="public"
  9685. deprecated="not deprecated">
  9686. </constructor>
  9687. <method name="delete"
  9688. abstract="false" native="false" synchronized="false"
  9689. static="true" final="false" visibility="public"
  9690. deprecated="not deprecated">
  9691. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9692. <param name="name" type="java.lang.String"/>
  9693. <exception name="IOException" type="java.io.IOException"/>
  9694. </method>
  9695. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9696. transient="false" volatile="false"
  9697. static="true" final="true" visibility="public"
  9698. deprecated="not deprecated">
  9699. </field>
  9700. <field name="HASH_COUNT" type="int"
  9701. transient="false" volatile="false"
  9702. static="true" final="true" visibility="public"
  9703. deprecated="not deprecated">
  9704. </field>
  9705. <doc>
  9706. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9707. functionality. However, it uses dynamic Bloom filters to provide
  9708. quick membership test for keys, and it offers a fast version of
  9709. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9710. case of sparsely populated MapFile-s.]]>
  9711. </doc>
  9712. </class>
  9713. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9714. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9715. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9716. abstract="false"
  9717. static="true" final="false" visibility="public"
  9718. deprecated="not deprecated">
  9719. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9720. static="false" final="false" visibility="public"
  9721. deprecated="not deprecated">
  9722. <exception name="IOException" type="java.io.IOException"/>
  9723. </constructor>
  9724. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9725. static="false" final="false" visibility="public"
  9726. deprecated="not deprecated">
  9727. <exception name="IOException" type="java.io.IOException"/>
  9728. </constructor>
  9729. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9730. static="false" final="false" visibility="public"
  9731. deprecated="not deprecated">
  9732. <exception name="IOException" type="java.io.IOException"/>
  9733. </constructor>
  9734. <method name="probablyHasKey" return="boolean"
  9735. abstract="false" native="false" synchronized="false"
  9736. static="false" final="false" visibility="public"
  9737. deprecated="not deprecated">
  9738. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9739. <exception name="IOException" type="java.io.IOException"/>
  9740. <doc>
  9741. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9742. performed using a Bloom filter, so the result has always non-zero
  9743. probability of false positives.
  9744. @param key key to check
  9745. @return false iff key doesn't exist, true if key probably exists.
  9746. @throws IOException]]>
  9747. </doc>
  9748. </method>
  9749. <method name="get" return="org.apache.hadoop.io.Writable"
  9750. abstract="false" native="false" synchronized="true"
  9751. static="false" final="false" visibility="public"
  9752. deprecated="not deprecated">
  9753. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9754. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9755. <exception name="IOException" type="java.io.IOException"/>
  9756. <doc>
  9757. <![CDATA[Fast version of the
  9758. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9759. it checks the Bloom filter for the existence of the key, and only if
  9760. present it performs the real get operation. This yields significant
  9761. performance improvements for get operations on sparsely populated files.]]>
  9762. </doc>
  9763. </method>
  9764. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9765. abstract="false" native="false" synchronized="false"
  9766. static="false" final="false" visibility="public"
  9767. deprecated="not deprecated">
  9768. <doc>
  9769. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9770. @return a Bloom filter (see {@link Filter})]]>
  9771. </doc>
  9772. </method>
  9773. </class>
  9774. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9775. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9776. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9777. abstract="false"
  9778. static="true" final="false" visibility="public"
  9779. deprecated="not deprecated">
  9780. <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"
  9781. static="false" final="false" visibility="public"
  9782. deprecated="not deprecated">
  9783. <exception name="IOException" type="java.io.IOException"/>
  9784. </constructor>
  9785. <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"
  9786. static="false" final="false" visibility="public"
  9787. deprecated="not deprecated">
  9788. <exception name="IOException" type="java.io.IOException"/>
  9789. </constructor>
  9790. <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"
  9791. static="false" final="false" visibility="public"
  9792. deprecated="not deprecated">
  9793. <exception name="IOException" type="java.io.IOException"/>
  9794. </constructor>
  9795. <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"
  9796. static="false" final="false" visibility="public"
  9797. deprecated="not deprecated">
  9798. <exception name="IOException" type="java.io.IOException"/>
  9799. </constructor>
  9800. <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"
  9801. static="false" final="false" visibility="public"
  9802. deprecated="not deprecated">
  9803. <exception name="IOException" type="java.io.IOException"/>
  9804. </constructor>
  9805. <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"
  9806. static="false" final="false" visibility="public"
  9807. deprecated="not deprecated">
  9808. <exception name="IOException" type="java.io.IOException"/>
  9809. </constructor>
  9810. <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"
  9811. static="false" final="false" visibility="public"
  9812. deprecated="not deprecated">
  9813. <exception name="IOException" type="java.io.IOException"/>
  9814. </constructor>
  9815. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9816. static="false" final="false" visibility="public"
  9817. deprecated="not deprecated">
  9818. <exception name="IOException" type="java.io.IOException"/>
  9819. </constructor>
  9820. <method name="append"
  9821. abstract="false" native="false" synchronized="true"
  9822. static="false" final="false" visibility="public"
  9823. deprecated="not deprecated">
  9824. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9825. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9826. <exception name="IOException" type="java.io.IOException"/>
  9827. </method>
  9828. <method name="close"
  9829. abstract="false" native="false" synchronized="true"
  9830. static="false" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. <exception name="IOException" type="java.io.IOException"/>
  9833. </method>
  9834. </class>
  9835. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9836. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9837. <class name="BooleanWritable" extends="java.lang.Object"
  9838. abstract="false"
  9839. static="false" final="false" visibility="public"
  9840. deprecated="not deprecated">
  9841. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9842. <constructor name="BooleanWritable"
  9843. static="false" final="false" visibility="public"
  9844. deprecated="not deprecated">
  9845. </constructor>
  9846. <constructor name="BooleanWritable" type="boolean"
  9847. static="false" final="false" visibility="public"
  9848. deprecated="not deprecated">
  9849. </constructor>
  9850. <method name="set"
  9851. abstract="false" native="false" synchronized="false"
  9852. static="false" final="false" visibility="public"
  9853. deprecated="not deprecated">
  9854. <param name="value" type="boolean"/>
  9855. <doc>
  9856. <![CDATA[Set the value of the BooleanWritable]]>
  9857. </doc>
  9858. </method>
  9859. <method name="get" return="boolean"
  9860. abstract="false" native="false" synchronized="false"
  9861. static="false" final="false" visibility="public"
  9862. deprecated="not deprecated">
  9863. <doc>
  9864. <![CDATA[Returns the value of the BooleanWritable]]>
  9865. </doc>
  9866. </method>
  9867. <method name="readFields"
  9868. abstract="false" native="false" synchronized="false"
  9869. static="false" final="false" visibility="public"
  9870. deprecated="not deprecated">
  9871. <param name="in" type="java.io.DataInput"/>
  9872. <exception name="IOException" type="java.io.IOException"/>
  9873. </method>
  9874. <method name="write"
  9875. abstract="false" native="false" synchronized="false"
  9876. static="false" final="false" visibility="public"
  9877. deprecated="not deprecated">
  9878. <param name="out" type="java.io.DataOutput"/>
  9879. <exception name="IOException" type="java.io.IOException"/>
  9880. </method>
  9881. <method name="equals" return="boolean"
  9882. abstract="false" native="false" synchronized="false"
  9883. static="false" final="false" visibility="public"
  9884. deprecated="not deprecated">
  9885. <param name="o" type="java.lang.Object"/>
  9886. </method>
  9887. <method name="hashCode" return="int"
  9888. abstract="false" native="false" synchronized="false"
  9889. static="false" final="false" visibility="public"
  9890. deprecated="not deprecated">
  9891. </method>
  9892. <method name="compareTo" return="int"
  9893. abstract="false" native="false" synchronized="false"
  9894. static="false" final="false" visibility="public"
  9895. deprecated="not deprecated">
  9896. <param name="o" type="java.lang.Object"/>
  9897. </method>
  9898. <method name="toString" return="java.lang.String"
  9899. abstract="false" native="false" synchronized="false"
  9900. static="false" final="false" visibility="public"
  9901. deprecated="not deprecated">
  9902. </method>
  9903. <doc>
  9904. <![CDATA[A WritableComparable for booleans.]]>
  9905. </doc>
  9906. </class>
  9907. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  9908. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9909. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9910. abstract="false"
  9911. static="true" final="false" visibility="public"
  9912. deprecated="not deprecated">
  9913. <constructor name="BooleanWritable.Comparator"
  9914. static="false" final="false" visibility="public"
  9915. deprecated="not deprecated">
  9916. </constructor>
  9917. <method name="compare" return="int"
  9918. abstract="false" native="false" synchronized="false"
  9919. static="false" final="false" visibility="public"
  9920. deprecated="not deprecated">
  9921. <param name="b1" type="byte[]"/>
  9922. <param name="s1" type="int"/>
  9923. <param name="l1" type="int"/>
  9924. <param name="b2" type="byte[]"/>
  9925. <param name="s2" type="int"/>
  9926. <param name="l2" type="int"/>
  9927. </method>
  9928. <doc>
  9929. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  9930. </doc>
  9931. </class>
  9932. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9933. <!-- start class org.apache.hadoop.io.BytesWritable -->
  9934. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  9935. abstract="false"
  9936. static="false" final="false" visibility="public"
  9937. deprecated="not deprecated">
  9938. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9939. <constructor name="BytesWritable"
  9940. static="false" final="false" visibility="public"
  9941. deprecated="not deprecated">
  9942. <doc>
  9943. <![CDATA[Create a zero-size sequence.]]>
  9944. </doc>
  9945. </constructor>
  9946. <constructor name="BytesWritable" type="byte[]"
  9947. static="false" final="false" visibility="public"
  9948. deprecated="not deprecated">
  9949. <doc>
  9950. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  9951. @param bytes This array becomes the backing storage for the object.]]>
  9952. </doc>
  9953. </constructor>
  9954. <method name="getBytes" return="byte[]"
  9955. abstract="false" native="false" synchronized="false"
  9956. static="false" final="false" visibility="public"
  9957. deprecated="not deprecated">
  9958. <doc>
  9959. <![CDATA[Get the data from the BytesWritable.
  9960. @return The data is only valid between 0 and getLength() - 1.]]>
  9961. </doc>
  9962. </method>
  9963. <method name="get" return="byte[]"
  9964. abstract="false" native="false" synchronized="false"
  9965. static="false" final="false" visibility="public"
  9966. deprecated="Use {@link #getBytes()} instead.">
  9967. <doc>
  9968. <![CDATA[Get the data from the BytesWritable.
  9969. @deprecated Use {@link #getBytes()} instead.]]>
  9970. </doc>
  9971. </method>
  9972. <method name="getLength" return="int"
  9973. abstract="false" native="false" synchronized="false"
  9974. static="false" final="false" visibility="public"
  9975. deprecated="not deprecated">
  9976. <doc>
  9977. <![CDATA[Get the current size of the buffer.]]>
  9978. </doc>
  9979. </method>
  9980. <method name="getSize" return="int"
  9981. abstract="false" native="false" synchronized="false"
  9982. static="false" final="false" visibility="public"
  9983. deprecated="Use {@link #getLength()} instead.">
  9984. <doc>
  9985. <![CDATA[Get the current size of the buffer.
  9986. @deprecated Use {@link #getLength()} instead.]]>
  9987. </doc>
  9988. </method>
  9989. <method name="setSize"
  9990. abstract="false" native="false" synchronized="false"
  9991. static="false" final="false" visibility="public"
  9992. deprecated="not deprecated">
  9993. <param name="size" type="int"/>
  9994. <doc>
  9995. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  9996. and any new values are undefined. The capacity is changed if it is
  9997. necessary.
  9998. @param size The new number of bytes]]>
  9999. </doc>
  10000. </method>
  10001. <method name="getCapacity" return="int"
  10002. abstract="false" native="false" synchronized="false"
  10003. static="false" final="false" visibility="public"
  10004. deprecated="not deprecated">
  10005. <doc>
  10006. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10007. resizing the backing storage.
  10008. @return The number of bytes]]>
  10009. </doc>
  10010. </method>
  10011. <method name="setCapacity"
  10012. abstract="false" native="false" synchronized="false"
  10013. static="false" final="false" visibility="public"
  10014. deprecated="not deprecated">
  10015. <param name="new_cap" type="int"/>
  10016. <doc>
  10017. <![CDATA[Change the capacity of the backing storage.
  10018. The data is preserved.
  10019. @param new_cap The new capacity in bytes.]]>
  10020. </doc>
  10021. </method>
  10022. <method name="set"
  10023. abstract="false" native="false" synchronized="false"
  10024. static="false" final="false" visibility="public"
  10025. deprecated="not deprecated">
  10026. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10027. <doc>
  10028. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10029. @param newData the value to set this BytesWritable to.]]>
  10030. </doc>
  10031. </method>
  10032. <method name="set"
  10033. abstract="false" native="false" synchronized="false"
  10034. static="false" final="false" visibility="public"
  10035. deprecated="not deprecated">
  10036. <param name="newData" type="byte[]"/>
  10037. <param name="offset" type="int"/>
  10038. <param name="length" type="int"/>
  10039. <doc>
  10040. <![CDATA[Set the value to a copy of the given byte range
  10041. @param newData the new values to copy in
  10042. @param offset the offset in newData to start at
  10043. @param length the number of bytes to copy]]>
  10044. </doc>
  10045. </method>
  10046. <method name="readFields"
  10047. abstract="false" native="false" synchronized="false"
  10048. static="false" final="false" visibility="public"
  10049. deprecated="not deprecated">
  10050. <param name="in" type="java.io.DataInput"/>
  10051. <exception name="IOException" type="java.io.IOException"/>
  10052. </method>
  10053. <method name="write"
  10054. abstract="false" native="false" synchronized="false"
  10055. static="false" final="false" visibility="public"
  10056. deprecated="not deprecated">
  10057. <param name="out" type="java.io.DataOutput"/>
  10058. <exception name="IOException" type="java.io.IOException"/>
  10059. </method>
  10060. <method name="hashCode" return="int"
  10061. abstract="false" native="false" synchronized="false"
  10062. static="false" final="false" visibility="public"
  10063. deprecated="not deprecated">
  10064. </method>
  10065. <method name="equals" return="boolean"
  10066. abstract="false" native="false" synchronized="false"
  10067. static="false" final="false" visibility="public"
  10068. deprecated="not deprecated">
  10069. <param name="right_obj" type="java.lang.Object"/>
  10070. <doc>
  10071. <![CDATA[Are the two byte sequences equal?]]>
  10072. </doc>
  10073. </method>
  10074. <method name="toString" return="java.lang.String"
  10075. abstract="false" native="false" synchronized="false"
  10076. static="false" final="false" visibility="public"
  10077. deprecated="not deprecated">
  10078. <doc>
  10079. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10080. </doc>
  10081. </method>
  10082. <doc>
  10083. <![CDATA[A byte sequence that is usable as a key or value.
  10084. It is resizable and distinguishes between the size of the seqeunce and
  10085. the current capacity. The hash function is the front of the md5 of the
  10086. buffer. The sort order is the same as memcmp.]]>
  10087. </doc>
  10088. </class>
  10089. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10090. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10091. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10092. abstract="false"
  10093. static="true" final="false" visibility="public"
  10094. deprecated="not deprecated">
  10095. <constructor name="BytesWritable.Comparator"
  10096. static="false" final="false" visibility="public"
  10097. deprecated="not deprecated">
  10098. </constructor>
  10099. <method name="compare" return="int"
  10100. abstract="false" native="false" synchronized="false"
  10101. static="false" final="false" visibility="public"
  10102. deprecated="not deprecated">
  10103. <param name="b1" type="byte[]"/>
  10104. <param name="s1" type="int"/>
  10105. <param name="l1" type="int"/>
  10106. <param name="b2" type="byte[]"/>
  10107. <param name="s2" type="int"/>
  10108. <param name="l2" type="int"/>
  10109. <doc>
  10110. <![CDATA[Compare the buffers in serialized form.]]>
  10111. </doc>
  10112. </method>
  10113. <doc>
  10114. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10115. </doc>
  10116. </class>
  10117. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10118. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10119. <class name="ByteWritable" extends="java.lang.Object"
  10120. abstract="false"
  10121. static="false" final="false" visibility="public"
  10122. deprecated="not deprecated">
  10123. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10124. <constructor name="ByteWritable"
  10125. static="false" final="false" visibility="public"
  10126. deprecated="not deprecated">
  10127. </constructor>
  10128. <constructor name="ByteWritable" type="byte"
  10129. static="false" final="false" visibility="public"
  10130. deprecated="not deprecated">
  10131. </constructor>
  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="value" type="byte"/>
  10137. <doc>
  10138. <![CDATA[Set the value of this ByteWritable.]]>
  10139. </doc>
  10140. </method>
  10141. <method name="get" return="byte"
  10142. abstract="false" native="false" synchronized="false"
  10143. static="false" final="false" visibility="public"
  10144. deprecated="not deprecated">
  10145. <doc>
  10146. <![CDATA[Return the value of this ByteWritable.]]>
  10147. </doc>
  10148. </method>
  10149. <method name="readFields"
  10150. abstract="false" native="false" synchronized="false"
  10151. static="false" final="false" visibility="public"
  10152. deprecated="not deprecated">
  10153. <param name="in" type="java.io.DataInput"/>
  10154. <exception name="IOException" type="java.io.IOException"/>
  10155. </method>
  10156. <method name="write"
  10157. abstract="false" native="false" synchronized="false"
  10158. static="false" final="false" visibility="public"
  10159. deprecated="not deprecated">
  10160. <param name="out" type="java.io.DataOutput"/>
  10161. <exception name="IOException" type="java.io.IOException"/>
  10162. </method>
  10163. <method name="equals" return="boolean"
  10164. abstract="false" native="false" synchronized="false"
  10165. static="false" final="false" visibility="public"
  10166. deprecated="not deprecated">
  10167. <param name="o" type="java.lang.Object"/>
  10168. <doc>
  10169. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10170. </doc>
  10171. </method>
  10172. <method name="hashCode" return="int"
  10173. abstract="false" native="false" synchronized="false"
  10174. static="false" final="false" visibility="public"
  10175. deprecated="not deprecated">
  10176. </method>
  10177. <method name="compareTo" return="int"
  10178. abstract="false" native="false" synchronized="false"
  10179. static="false" final="false" visibility="public"
  10180. deprecated="not deprecated">
  10181. <param name="o" type="java.lang.Object"/>
  10182. <doc>
  10183. <![CDATA[Compares two ByteWritables.]]>
  10184. </doc>
  10185. </method>
  10186. <method name="toString" return="java.lang.String"
  10187. abstract="false" native="false" synchronized="false"
  10188. static="false" final="false" visibility="public"
  10189. deprecated="not deprecated">
  10190. </method>
  10191. <doc>
  10192. <![CDATA[A WritableComparable for a single byte.]]>
  10193. </doc>
  10194. </class>
  10195. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10196. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10197. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10198. abstract="false"
  10199. static="true" final="false" visibility="public"
  10200. deprecated="not deprecated">
  10201. <constructor name="ByteWritable.Comparator"
  10202. static="false" final="false" visibility="public"
  10203. deprecated="not deprecated">
  10204. </constructor>
  10205. <method name="compare" return="int"
  10206. abstract="false" native="false" synchronized="false"
  10207. static="false" final="false" visibility="public"
  10208. deprecated="not deprecated">
  10209. <param name="b1" type="byte[]"/>
  10210. <param name="s1" type="int"/>
  10211. <param name="l1" type="int"/>
  10212. <param name="b2" type="byte[]"/>
  10213. <param name="s2" type="int"/>
  10214. <param name="l2" type="int"/>
  10215. </method>
  10216. <doc>
  10217. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10218. </doc>
  10219. </class>
  10220. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10221. <!-- start interface org.apache.hadoop.io.Closeable -->
  10222. <interface name="Closeable" abstract="true"
  10223. static="false" final="false" visibility="public"
  10224. deprecated="use java.io.Closeable">
  10225. <implements name="java.io.Closeable"/>
  10226. <doc>
  10227. <![CDATA[@deprecated use java.io.Closeable]]>
  10228. </doc>
  10229. </interface>
  10230. <!-- end interface org.apache.hadoop.io.Closeable -->
  10231. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10232. <class name="CompressedWritable" extends="java.lang.Object"
  10233. abstract="true"
  10234. static="false" final="false" visibility="public"
  10235. deprecated="not deprecated">
  10236. <implements name="org.apache.hadoop.io.Writable"/>
  10237. <constructor name="CompressedWritable"
  10238. static="false" final="false" visibility="public"
  10239. deprecated="not deprecated">
  10240. </constructor>
  10241. <method name="readFields"
  10242. abstract="false" native="false" synchronized="false"
  10243. static="false" final="true" visibility="public"
  10244. deprecated="not deprecated">
  10245. <param name="in" type="java.io.DataInput"/>
  10246. <exception name="IOException" type="java.io.IOException"/>
  10247. </method>
  10248. <method name="ensureInflated"
  10249. abstract="false" native="false" synchronized="false"
  10250. static="false" final="false" visibility="protected"
  10251. deprecated="not deprecated">
  10252. <doc>
  10253. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10254. has been uncompressed.]]>
  10255. </doc>
  10256. </method>
  10257. <method name="readFieldsCompressed"
  10258. abstract="true" native="false" synchronized="false"
  10259. static="false" final="false" visibility="protected"
  10260. deprecated="not deprecated">
  10261. <param name="in" type="java.io.DataInput"/>
  10262. <exception name="IOException" type="java.io.IOException"/>
  10263. <doc>
  10264. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10265. </doc>
  10266. </method>
  10267. <method name="write"
  10268. abstract="false" native="false" synchronized="false"
  10269. static="false" final="true" visibility="public"
  10270. deprecated="not deprecated">
  10271. <param name="out" type="java.io.DataOutput"/>
  10272. <exception name="IOException" type="java.io.IOException"/>
  10273. </method>
  10274. <method name="writeCompressed"
  10275. abstract="true" native="false" synchronized="false"
  10276. static="false" final="false" visibility="protected"
  10277. deprecated="not deprecated">
  10278. <param name="out" type="java.io.DataOutput"/>
  10279. <exception name="IOException" type="java.io.IOException"/>
  10280. <doc>
  10281. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10282. </doc>
  10283. </method>
  10284. <doc>
  10285. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10286. inflate on field access. This is useful for large objects whose fields are
  10287. not be altered during a map or reduce operation: leaving the field data
  10288. compressed makes copying the instance from one file to another much
  10289. faster.]]>
  10290. </doc>
  10291. </class>
  10292. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10293. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10294. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10295. abstract="false"
  10296. static="false" final="false" visibility="public"
  10297. deprecated="not deprecated">
  10298. <constructor name="DataInputBuffer"
  10299. static="false" final="false" visibility="public"
  10300. deprecated="not deprecated">
  10301. <doc>
  10302. <![CDATA[Constructs a new empty buffer.]]>
  10303. </doc>
  10304. </constructor>
  10305. <method name="reset"
  10306. abstract="false" native="false" synchronized="false"
  10307. static="false" final="false" visibility="public"
  10308. deprecated="not deprecated">
  10309. <param name="input" type="byte[]"/>
  10310. <param name="length" type="int"/>
  10311. <doc>
  10312. <![CDATA[Resets the data that the buffer reads.]]>
  10313. </doc>
  10314. </method>
  10315. <method name="reset"
  10316. abstract="false" native="false" synchronized="false"
  10317. static="false" final="false" visibility="public"
  10318. deprecated="not deprecated">
  10319. <param name="input" type="byte[]"/>
  10320. <param name="start" type="int"/>
  10321. <param name="length" type="int"/>
  10322. <doc>
  10323. <![CDATA[Resets the data that the buffer reads.]]>
  10324. </doc>
  10325. </method>
  10326. <method name="getData" return="byte[]"
  10327. abstract="false" native="false" synchronized="false"
  10328. static="false" final="false" visibility="public"
  10329. deprecated="not deprecated">
  10330. </method>
  10331. <method name="getPosition" return="int"
  10332. abstract="false" native="false" synchronized="false"
  10333. static="false" final="false" visibility="public"
  10334. deprecated="not deprecated">
  10335. <doc>
  10336. <![CDATA[Returns the current position in the input.]]>
  10337. </doc>
  10338. </method>
  10339. <method name="getLength" return="int"
  10340. abstract="false" native="false" synchronized="false"
  10341. static="false" final="false" visibility="public"
  10342. deprecated="not deprecated">
  10343. <doc>
  10344. <![CDATA[Returns the length of the input.]]>
  10345. </doc>
  10346. </method>
  10347. <doc>
  10348. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10349. buffer.
  10350. <p>This saves memory over creating a new DataInputStream and
  10351. ByteArrayInputStream each time data is read.
  10352. <p>Typical usage is something like the following:<pre>
  10353. DataInputBuffer buffer = new DataInputBuffer();
  10354. while (... loop condition ...) {
  10355. byte[] data = ... get data ...;
  10356. int dataLength = ... get data length ...;
  10357. buffer.reset(data, dataLength);
  10358. ... read buffer using DataInput methods ...
  10359. }
  10360. </pre>]]>
  10361. </doc>
  10362. </class>
  10363. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10364. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10365. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10366. abstract="false"
  10367. static="false" final="false" visibility="public"
  10368. deprecated="not deprecated">
  10369. <constructor name="DataOutputBuffer"
  10370. static="false" final="false" visibility="public"
  10371. deprecated="not deprecated">
  10372. <doc>
  10373. <![CDATA[Constructs a new empty buffer.]]>
  10374. </doc>
  10375. </constructor>
  10376. <constructor name="DataOutputBuffer" type="int"
  10377. static="false" final="false" visibility="public"
  10378. deprecated="not deprecated">
  10379. </constructor>
  10380. <method name="getData" return="byte[]"
  10381. abstract="false" native="false" synchronized="false"
  10382. static="false" final="false" visibility="public"
  10383. deprecated="not deprecated">
  10384. <doc>
  10385. <![CDATA[Returns the current contents of the buffer.
  10386. Data is only valid to {@link #getLength()}.]]>
  10387. </doc>
  10388. </method>
  10389. <method name="getLength" return="int"
  10390. abstract="false" native="false" synchronized="false"
  10391. static="false" final="false" visibility="public"
  10392. deprecated="not deprecated">
  10393. <doc>
  10394. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10395. </doc>
  10396. </method>
  10397. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10398. abstract="false" native="false" synchronized="false"
  10399. static="false" final="false" visibility="public"
  10400. deprecated="not deprecated">
  10401. <doc>
  10402. <![CDATA[Resets the buffer to empty.]]>
  10403. </doc>
  10404. </method>
  10405. <method name="write"
  10406. abstract="false" native="false" synchronized="false"
  10407. static="false" final="false" visibility="public"
  10408. deprecated="not deprecated">
  10409. <param name="in" type="java.io.DataInput"/>
  10410. <param name="length" type="int"/>
  10411. <exception name="IOException" type="java.io.IOException"/>
  10412. <doc>
  10413. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10414. </doc>
  10415. </method>
  10416. <method name="writeTo"
  10417. abstract="false" native="false" synchronized="false"
  10418. static="false" final="false" visibility="public"
  10419. deprecated="not deprecated">
  10420. <param name="out" type="java.io.OutputStream"/>
  10421. <exception name="IOException" type="java.io.IOException"/>
  10422. <doc>
  10423. <![CDATA[Write to a file stream]]>
  10424. </doc>
  10425. </method>
  10426. <doc>
  10427. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10428. buffer.
  10429. <p>This saves memory over creating a new DataOutputStream and
  10430. ByteArrayOutputStream each time data is written.
  10431. <p>Typical usage is something like the following:<pre>
  10432. DataOutputBuffer buffer = new DataOutputBuffer();
  10433. while (... loop condition ...) {
  10434. buffer.reset();
  10435. ... write buffer using DataOutput methods ...
  10436. byte[] data = buffer.getData();
  10437. int dataLength = buffer.getLength();
  10438. ... write data to its ultimate destination ...
  10439. }
  10440. </pre>]]>
  10441. </doc>
  10442. </class>
  10443. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10444. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10445. <class name="DefaultStringifier" extends="java.lang.Object"
  10446. abstract="false"
  10447. static="false" final="false" visibility="public"
  10448. deprecated="not deprecated">
  10449. <implements name="org.apache.hadoop.io.Stringifier"/>
  10450. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10451. static="false" final="false" visibility="public"
  10452. deprecated="not deprecated">
  10453. </constructor>
  10454. <method name="fromString" return="java.lang.Object"
  10455. abstract="false" native="false" synchronized="false"
  10456. static="false" final="false" visibility="public"
  10457. deprecated="not deprecated">
  10458. <param name="str" type="java.lang.String"/>
  10459. <exception name="IOException" type="java.io.IOException"/>
  10460. </method>
  10461. <method name="toString" return="java.lang.String"
  10462. abstract="false" native="false" synchronized="false"
  10463. static="false" final="false" visibility="public"
  10464. deprecated="not deprecated">
  10465. <param name="obj" type="java.lang.Object"/>
  10466. <exception name="IOException" type="java.io.IOException"/>
  10467. </method>
  10468. <method name="close"
  10469. abstract="false" native="false" synchronized="false"
  10470. static="false" final="false" visibility="public"
  10471. deprecated="not deprecated">
  10472. <exception name="IOException" type="java.io.IOException"/>
  10473. </method>
  10474. <method name="store"
  10475. abstract="false" native="false" synchronized="false"
  10476. static="true" final="false" visibility="public"
  10477. deprecated="not deprecated">
  10478. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10479. <param name="item" type="java.lang.Object"/>
  10480. <param name="keyName" type="java.lang.String"/>
  10481. <exception name="IOException" type="java.io.IOException"/>
  10482. <doc>
  10483. <![CDATA[Stores the item in the configuration with the given keyName.
  10484. @param <K> the class of the item
  10485. @param conf the configuration to store
  10486. @param item the object to be stored
  10487. @param keyName the name of the key to use
  10488. @throws IOException : forwards Exceptions from the underlying
  10489. {@link Serialization} classes.]]>
  10490. </doc>
  10491. </method>
  10492. <method name="load" return="java.lang.Object"
  10493. abstract="false" native="false" synchronized="false"
  10494. static="true" final="false" visibility="public"
  10495. deprecated="not deprecated">
  10496. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10497. <param name="keyName" type="java.lang.String"/>
  10498. <param name="itemClass" type="java.lang.Class"/>
  10499. <exception name="IOException" type="java.io.IOException"/>
  10500. <doc>
  10501. <![CDATA[Restores the object from the configuration.
  10502. @param <K> the class of the item
  10503. @param conf the configuration to use
  10504. @param keyName the name of the key to use
  10505. @param itemClass the class of the item
  10506. @return restored object
  10507. @throws IOException : forwards Exceptions from the underlying
  10508. {@link Serialization} classes.]]>
  10509. </doc>
  10510. </method>
  10511. <method name="storeArray"
  10512. abstract="false" native="false" synchronized="false"
  10513. static="true" final="false" visibility="public"
  10514. deprecated="not deprecated">
  10515. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10516. <param name="items" type="java.lang.Object[]"/>
  10517. <param name="keyName" type="java.lang.String"/>
  10518. <exception name="IOException" type="java.io.IOException"/>
  10519. <doc>
  10520. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10521. @param <K> the class of the item
  10522. @param conf the configuration to use
  10523. @param items the objects to be stored
  10524. @param keyName the name of the key to use
  10525. @throws IndexOutOfBoundsException if the items array is empty
  10526. @throws IOException : forwards Exceptions from the underlying
  10527. {@link Serialization} classes.]]>
  10528. </doc>
  10529. </method>
  10530. <method name="loadArray" return="java.lang.Object[]"
  10531. abstract="false" native="false" synchronized="false"
  10532. static="true" final="false" visibility="public"
  10533. deprecated="not deprecated">
  10534. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10535. <param name="keyName" type="java.lang.String"/>
  10536. <param name="itemClass" type="java.lang.Class"/>
  10537. <exception name="IOException" type="java.io.IOException"/>
  10538. <doc>
  10539. <![CDATA[Restores the array of objects from the configuration.
  10540. @param <K> the class of the item
  10541. @param conf the configuration to use
  10542. @param keyName the name of the key to use
  10543. @param itemClass the class of the item
  10544. @return restored object
  10545. @throws IOException : forwards Exceptions from the underlying
  10546. {@link Serialization} classes.]]>
  10547. </doc>
  10548. </method>
  10549. <doc>
  10550. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10551. interface which stringifies the objects using base64 encoding of the
  10552. serialized version of the objects. The {@link Serializer} and
  10553. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10554. <br>
  10555. DefaultStringifier offers convenience methods to store/load objects to/from
  10556. the configuration.
  10557. @param <T> the class of the objects to stringify]]>
  10558. </doc>
  10559. </class>
  10560. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10561. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10562. <class name="DoubleWritable" extends="java.lang.Object"
  10563. abstract="false"
  10564. static="false" final="false" visibility="public"
  10565. deprecated="not deprecated">
  10566. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10567. <constructor name="DoubleWritable"
  10568. static="false" final="false" visibility="public"
  10569. deprecated="not deprecated">
  10570. </constructor>
  10571. <constructor name="DoubleWritable" type="double"
  10572. static="false" final="false" visibility="public"
  10573. deprecated="not deprecated">
  10574. </constructor>
  10575. <method name="readFields"
  10576. abstract="false" native="false" synchronized="false"
  10577. static="false" final="false" visibility="public"
  10578. deprecated="not deprecated">
  10579. <param name="in" type="java.io.DataInput"/>
  10580. <exception name="IOException" type="java.io.IOException"/>
  10581. </method>
  10582. <method name="write"
  10583. abstract="false" native="false" synchronized="false"
  10584. static="false" final="false" visibility="public"
  10585. deprecated="not deprecated">
  10586. <param name="out" type="java.io.DataOutput"/>
  10587. <exception name="IOException" type="java.io.IOException"/>
  10588. </method>
  10589. <method name="set"
  10590. abstract="false" native="false" synchronized="false"
  10591. static="false" final="false" visibility="public"
  10592. deprecated="not deprecated">
  10593. <param name="value" type="double"/>
  10594. </method>
  10595. <method name="get" return="double"
  10596. abstract="false" native="false" synchronized="false"
  10597. static="false" final="false" visibility="public"
  10598. deprecated="not deprecated">
  10599. </method>
  10600. <method name="equals" return="boolean"
  10601. abstract="false" native="false" synchronized="false"
  10602. static="false" final="false" visibility="public"
  10603. deprecated="not deprecated">
  10604. <param name="o" type="java.lang.Object"/>
  10605. <doc>
  10606. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10607. </doc>
  10608. </method>
  10609. <method name="hashCode" return="int"
  10610. abstract="false" native="false" synchronized="false"
  10611. static="false" final="false" visibility="public"
  10612. deprecated="not deprecated">
  10613. </method>
  10614. <method name="compareTo" return="int"
  10615. abstract="false" native="false" synchronized="false"
  10616. static="false" final="false" visibility="public"
  10617. deprecated="not deprecated">
  10618. <param name="o" type="java.lang.Object"/>
  10619. </method>
  10620. <method name="toString" return="java.lang.String"
  10621. abstract="false" native="false" synchronized="false"
  10622. static="false" final="false" visibility="public"
  10623. deprecated="not deprecated">
  10624. </method>
  10625. <doc>
  10626. <![CDATA[Writable for Double values.]]>
  10627. </doc>
  10628. </class>
  10629. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10630. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10631. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10632. abstract="false"
  10633. static="true" final="false" visibility="public"
  10634. deprecated="not deprecated">
  10635. <constructor name="DoubleWritable.Comparator"
  10636. static="false" final="false" visibility="public"
  10637. deprecated="not deprecated">
  10638. </constructor>
  10639. <method name="compare" return="int"
  10640. abstract="false" native="false" synchronized="false"
  10641. static="false" final="false" visibility="public"
  10642. deprecated="not deprecated">
  10643. <param name="b1" type="byte[]"/>
  10644. <param name="s1" type="int"/>
  10645. <param name="l1" type="int"/>
  10646. <param name="b2" type="byte[]"/>
  10647. <param name="s2" type="int"/>
  10648. <param name="l2" type="int"/>
  10649. </method>
  10650. <doc>
  10651. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10652. </doc>
  10653. </class>
  10654. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10655. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10656. <class name="FloatWritable" extends="java.lang.Object"
  10657. abstract="false"
  10658. static="false" final="false" visibility="public"
  10659. deprecated="not deprecated">
  10660. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10661. <constructor name="FloatWritable"
  10662. static="false" final="false" visibility="public"
  10663. deprecated="not deprecated">
  10664. </constructor>
  10665. <constructor name="FloatWritable" type="float"
  10666. static="false" final="false" visibility="public"
  10667. deprecated="not deprecated">
  10668. </constructor>
  10669. <method name="set"
  10670. abstract="false" native="false" synchronized="false"
  10671. static="false" final="false" visibility="public"
  10672. deprecated="not deprecated">
  10673. <param name="value" type="float"/>
  10674. <doc>
  10675. <![CDATA[Set the value of this FloatWritable.]]>
  10676. </doc>
  10677. </method>
  10678. <method name="get" return="float"
  10679. abstract="false" native="false" synchronized="false"
  10680. static="false" final="false" visibility="public"
  10681. deprecated="not deprecated">
  10682. <doc>
  10683. <![CDATA[Return the value of this FloatWritable.]]>
  10684. </doc>
  10685. </method>
  10686. <method name="readFields"
  10687. abstract="false" native="false" synchronized="false"
  10688. static="false" final="false" visibility="public"
  10689. deprecated="not deprecated">
  10690. <param name="in" type="java.io.DataInput"/>
  10691. <exception name="IOException" type="java.io.IOException"/>
  10692. </method>
  10693. <method name="write"
  10694. abstract="false" native="false" synchronized="false"
  10695. static="false" final="false" visibility="public"
  10696. deprecated="not deprecated">
  10697. <param name="out" type="java.io.DataOutput"/>
  10698. <exception name="IOException" type="java.io.IOException"/>
  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 FloatWritable 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. <doc>
  10720. <![CDATA[Compares two FloatWritables.]]>
  10721. </doc>
  10722. </method>
  10723. <method name="toString" return="java.lang.String"
  10724. abstract="false" native="false" synchronized="false"
  10725. static="false" final="false" visibility="public"
  10726. deprecated="not deprecated">
  10727. </method>
  10728. <doc>
  10729. <![CDATA[A WritableComparable for floats.]]>
  10730. </doc>
  10731. </class>
  10732. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10733. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10734. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10735. abstract="false"
  10736. static="true" final="false" visibility="public"
  10737. deprecated="not deprecated">
  10738. <constructor name="FloatWritable.Comparator"
  10739. static="false" final="false" visibility="public"
  10740. deprecated="not deprecated">
  10741. </constructor>
  10742. <method name="compare" return="int"
  10743. abstract="false" native="false" synchronized="false"
  10744. static="false" final="false" visibility="public"
  10745. deprecated="not deprecated">
  10746. <param name="b1" type="byte[]"/>
  10747. <param name="s1" type="int"/>
  10748. <param name="l1" type="int"/>
  10749. <param name="b2" type="byte[]"/>
  10750. <param name="s2" type="int"/>
  10751. <param name="l2" type="int"/>
  10752. </method>
  10753. <doc>
  10754. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10755. </doc>
  10756. </class>
  10757. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10758. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10759. <class name="GenericWritable" extends="java.lang.Object"
  10760. abstract="true"
  10761. static="false" final="false" visibility="public"
  10762. deprecated="not deprecated">
  10763. <implements name="org.apache.hadoop.io.Writable"/>
  10764. <implements name="org.apache.hadoop.conf.Configurable"/>
  10765. <constructor name="GenericWritable"
  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="obj" type="org.apache.hadoop.io.Writable"/>
  10774. <doc>
  10775. <![CDATA[Set the instance that is wrapped.
  10776. @param obj]]>
  10777. </doc>
  10778. </method>
  10779. <method name="get" return="org.apache.hadoop.io.Writable"
  10780. abstract="false" native="false" synchronized="false"
  10781. static="false" final="false" visibility="public"
  10782. deprecated="not deprecated">
  10783. <doc>
  10784. <![CDATA[Return the wrapped instance.]]>
  10785. </doc>
  10786. </method>
  10787. <method name="toString" return="java.lang.String"
  10788. abstract="false" native="false" synchronized="false"
  10789. static="false" final="false" visibility="public"
  10790. deprecated="not deprecated">
  10791. </method>
  10792. <method name="readFields"
  10793. abstract="false" native="false" synchronized="false"
  10794. static="false" final="false" visibility="public"
  10795. deprecated="not deprecated">
  10796. <param name="in" type="java.io.DataInput"/>
  10797. <exception name="IOException" type="java.io.IOException"/>
  10798. </method>
  10799. <method name="write"
  10800. abstract="false" native="false" synchronized="false"
  10801. static="false" final="false" visibility="public"
  10802. deprecated="not deprecated">
  10803. <param name="out" type="java.io.DataOutput"/>
  10804. <exception name="IOException" type="java.io.IOException"/>
  10805. </method>
  10806. <method name="getTypes" return="java.lang.Class[]"
  10807. abstract="true" native="false" synchronized="false"
  10808. static="false" final="false" visibility="protected"
  10809. deprecated="not deprecated">
  10810. <doc>
  10811. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10812. to return a constant array of classes.]]>
  10813. </doc>
  10814. </method>
  10815. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10816. abstract="false" native="false" synchronized="false"
  10817. static="false" final="false" visibility="public"
  10818. deprecated="not deprecated">
  10819. </method>
  10820. <method name="setConf"
  10821. abstract="false" native="false" synchronized="false"
  10822. static="false" final="false" visibility="public"
  10823. deprecated="not deprecated">
  10824. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10825. </method>
  10826. <doc>
  10827. <![CDATA[A wrapper for Writable instances.
  10828. <p>
  10829. When two sequence files, which have same Key type but different Value
  10830. types, are mapped out to reduce, multiple Value types is not allowed.
  10831. In this case, this class can help you wrap instances with different types.
  10832. </p>
  10833. <p>
  10834. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10835. because <code>ObjectWritable</code> will append the class declaration as a String
  10836. into the output file in every Key-Value pair.
  10837. </p>
  10838. <p>
  10839. Generic Writable implements {@link Configurable} interface, so that it will be
  10840. configured by the framework. The configuration is passed to the wrapped objects
  10841. implementing {@link Configurable} interface <i>before deserialization</i>.
  10842. </p>
  10843. how to use it: <br>
  10844. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10845. 2. Implements the abstract method <code>getTypes()</code>, defines
  10846. the classes which will be wrapped in GenericObject in application.
  10847. Attention: this classes defined in <code>getTypes()</code> method, must
  10848. implement <code>Writable</code> interface.
  10849. <br><br>
  10850. The code looks like this:
  10851. <blockquote><pre>
  10852. public class GenericObject extends GenericWritable {
  10853. private static Class[] CLASSES = {
  10854. ClassType1.class,
  10855. ClassType2.class,
  10856. ClassType3.class,
  10857. };
  10858. protected Class[] getTypes() {
  10859. return CLASSES;
  10860. }
  10861. }
  10862. </pre></blockquote>
  10863. @since Nov 8, 2006]]>
  10864. </doc>
  10865. </class>
  10866. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10867. <!-- start class org.apache.hadoop.io.InputBuffer -->
  10868. <class name="InputBuffer" extends="java.io.FilterInputStream"
  10869. abstract="false"
  10870. static="false" final="false" visibility="public"
  10871. deprecated="not deprecated">
  10872. <constructor name="InputBuffer"
  10873. static="false" final="false" visibility="public"
  10874. deprecated="not deprecated">
  10875. <doc>
  10876. <![CDATA[Constructs a new empty buffer.]]>
  10877. </doc>
  10878. </constructor>
  10879. <method name="reset"
  10880. abstract="false" native="false" synchronized="false"
  10881. static="false" final="false" visibility="public"
  10882. deprecated="not deprecated">
  10883. <param name="input" type="byte[]"/>
  10884. <param name="length" type="int"/>
  10885. <doc>
  10886. <![CDATA[Resets the data that the buffer reads.]]>
  10887. </doc>
  10888. </method>
  10889. <method name="reset"
  10890. abstract="false" native="false" synchronized="false"
  10891. static="false" final="false" visibility="public"
  10892. deprecated="not deprecated">
  10893. <param name="input" type="byte[]"/>
  10894. <param name="start" type="int"/>
  10895. <param name="length" type="int"/>
  10896. <doc>
  10897. <![CDATA[Resets the data that the buffer reads.]]>
  10898. </doc>
  10899. </method>
  10900. <method name="getPosition" return="int"
  10901. abstract="false" native="false" synchronized="false"
  10902. static="false" final="false" visibility="public"
  10903. deprecated="not deprecated">
  10904. <doc>
  10905. <![CDATA[Returns the current position in the input.]]>
  10906. </doc>
  10907. </method>
  10908. <method name="getLength" return="int"
  10909. abstract="false" native="false" synchronized="false"
  10910. static="false" final="false" visibility="public"
  10911. deprecated="not deprecated">
  10912. <doc>
  10913. <![CDATA[Returns the length of the input.]]>
  10914. </doc>
  10915. </method>
  10916. <doc>
  10917. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  10918. buffer.
  10919. <p>This saves memory over creating a new InputStream and
  10920. ByteArrayInputStream each time data is read.
  10921. <p>Typical usage is something like the following:<pre>
  10922. InputBuffer buffer = new InputBuffer();
  10923. while (... loop condition ...) {
  10924. byte[] data = ... get data ...;
  10925. int dataLength = ... get data length ...;
  10926. buffer.reset(data, dataLength);
  10927. ... read buffer using InputStream methods ...
  10928. }
  10929. </pre>
  10930. @see DataInputBuffer
  10931. @see DataOutput]]>
  10932. </doc>
  10933. </class>
  10934. <!-- end class org.apache.hadoop.io.InputBuffer -->
  10935. <!-- start class org.apache.hadoop.io.IntWritable -->
  10936. <class name="IntWritable" extends="java.lang.Object"
  10937. abstract="false"
  10938. static="false" final="false" visibility="public"
  10939. deprecated="not deprecated">
  10940. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10941. <constructor name="IntWritable"
  10942. static="false" final="false" visibility="public"
  10943. deprecated="not deprecated">
  10944. </constructor>
  10945. <constructor name="IntWritable" type="int"
  10946. static="false" final="false" visibility="public"
  10947. deprecated="not deprecated">
  10948. </constructor>
  10949. <method name="set"
  10950. abstract="false" native="false" synchronized="false"
  10951. static="false" final="false" visibility="public"
  10952. deprecated="not deprecated">
  10953. <param name="value" type="int"/>
  10954. <doc>
  10955. <![CDATA[Set the value of this IntWritable.]]>
  10956. </doc>
  10957. </method>
  10958. <method name="get" return="int"
  10959. abstract="false" native="false" synchronized="false"
  10960. static="false" final="false" visibility="public"
  10961. deprecated="not deprecated">
  10962. <doc>
  10963. <![CDATA[Return the value of this IntWritable.]]>
  10964. </doc>
  10965. </method>
  10966. <method name="readFields"
  10967. abstract="false" native="false" synchronized="false"
  10968. static="false" final="false" visibility="public"
  10969. deprecated="not deprecated">
  10970. <param name="in" type="java.io.DataInput"/>
  10971. <exception name="IOException" type="java.io.IOException"/>
  10972. </method>
  10973. <method name="write"
  10974. abstract="false" native="false" synchronized="false"
  10975. static="false" final="false" visibility="public"
  10976. deprecated="not deprecated">
  10977. <param name="out" type="java.io.DataOutput"/>
  10978. <exception name="IOException" type="java.io.IOException"/>
  10979. </method>
  10980. <method name="equals" return="boolean"
  10981. abstract="false" native="false" synchronized="false"
  10982. static="false" final="false" visibility="public"
  10983. deprecated="not deprecated">
  10984. <param name="o" type="java.lang.Object"/>
  10985. <doc>
  10986. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  10987. </doc>
  10988. </method>
  10989. <method name="hashCode" return="int"
  10990. abstract="false" native="false" synchronized="false"
  10991. static="false" final="false" visibility="public"
  10992. deprecated="not deprecated">
  10993. </method>
  10994. <method name="compareTo" return="int"
  10995. abstract="false" native="false" synchronized="false"
  10996. static="false" final="false" visibility="public"
  10997. deprecated="not deprecated">
  10998. <param name="o" type="java.lang.Object"/>
  10999. <doc>
  11000. <![CDATA[Compares two IntWritables.]]>
  11001. </doc>
  11002. </method>
  11003. <method name="toString" return="java.lang.String"
  11004. abstract="false" native="false" synchronized="false"
  11005. static="false" final="false" visibility="public"
  11006. deprecated="not deprecated">
  11007. </method>
  11008. <doc>
  11009. <![CDATA[A WritableComparable for ints.]]>
  11010. </doc>
  11011. </class>
  11012. <!-- end class org.apache.hadoop.io.IntWritable -->
  11013. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11014. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11015. abstract="false"
  11016. static="true" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <constructor name="IntWritable.Comparator"
  11019. static="false" final="false" visibility="public"
  11020. deprecated="not deprecated">
  11021. </constructor>
  11022. <method name="compare" return="int"
  11023. abstract="false" native="false" synchronized="false"
  11024. static="false" final="false" visibility="public"
  11025. deprecated="not deprecated">
  11026. <param name="b1" type="byte[]"/>
  11027. <param name="s1" type="int"/>
  11028. <param name="l1" type="int"/>
  11029. <param name="b2" type="byte[]"/>
  11030. <param name="s2" type="int"/>
  11031. <param name="l2" type="int"/>
  11032. </method>
  11033. <doc>
  11034. <![CDATA[A Comparator optimized for IntWritable.]]>
  11035. </doc>
  11036. </class>
  11037. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11038. <!-- start class org.apache.hadoop.io.IOUtils -->
  11039. <class name="IOUtils" extends="java.lang.Object"
  11040. abstract="false"
  11041. static="false" final="false" visibility="public"
  11042. deprecated="not deprecated">
  11043. <constructor name="IOUtils"
  11044. static="false" final="false" visibility="public"
  11045. deprecated="not deprecated">
  11046. </constructor>
  11047. <method name="copyBytes"
  11048. abstract="false" native="false" synchronized="false"
  11049. static="true" final="false" visibility="public"
  11050. deprecated="not deprecated">
  11051. <param name="in" type="java.io.InputStream"/>
  11052. <param name="out" type="java.io.OutputStream"/>
  11053. <param name="buffSize" type="int"/>
  11054. <param name="close" type="boolean"/>
  11055. <exception name="IOException" type="java.io.IOException"/>
  11056. <doc>
  11057. <![CDATA[Copies from one stream to another.
  11058. @param in InputStrem to read from
  11059. @param out OutputStream to write to
  11060. @param buffSize the size of the buffer
  11061. @param close whether or not close the InputStream and
  11062. OutputStream at the end. The streams are closed in the finally clause.]]>
  11063. </doc>
  11064. </method>
  11065. <method name="copyBytes"
  11066. abstract="false" native="false" synchronized="false"
  11067. static="true" final="false" visibility="public"
  11068. deprecated="not deprecated">
  11069. <param name="in" type="java.io.InputStream"/>
  11070. <param name="out" type="java.io.OutputStream"/>
  11071. <param name="buffSize" type="int"/>
  11072. <exception name="IOException" type="java.io.IOException"/>
  11073. <doc>
  11074. <![CDATA[Copies from one stream to another.
  11075. @param in InputStrem to read from
  11076. @param out OutputStream to write to
  11077. @param buffSize the size of the buffer]]>
  11078. </doc>
  11079. </method>
  11080. <method name="copyBytes"
  11081. abstract="false" native="false" synchronized="false"
  11082. static="true" final="false" visibility="public"
  11083. deprecated="not deprecated">
  11084. <param name="in" type="java.io.InputStream"/>
  11085. <param name="out" type="java.io.OutputStream"/>
  11086. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11087. <exception name="IOException" type="java.io.IOException"/>
  11088. <doc>
  11089. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11090. at the end</strong>.
  11091. @param in InputStrem to read from
  11092. @param out OutputStream to write to
  11093. @param conf the Configuration object]]>
  11094. </doc>
  11095. </method>
  11096. <method name="copyBytes"
  11097. abstract="false" native="false" synchronized="false"
  11098. static="true" final="false" visibility="public"
  11099. deprecated="not deprecated">
  11100. <param name="in" type="java.io.InputStream"/>
  11101. <param name="out" type="java.io.OutputStream"/>
  11102. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11103. <param name="close" type="boolean"/>
  11104. <exception name="IOException" type="java.io.IOException"/>
  11105. <doc>
  11106. <![CDATA[Copies from one stream to another.
  11107. @param in InputStrem to read from
  11108. @param out OutputStream to write to
  11109. @param conf the Configuration object
  11110. @param close whether or not close the InputStream and
  11111. OutputStream at the end. The streams are closed in the finally clause.]]>
  11112. </doc>
  11113. </method>
  11114. <method name="copyBytes"
  11115. abstract="false" native="false" synchronized="false"
  11116. static="true" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <param name="in" type="java.io.InputStream"/>
  11119. <param name="out" type="java.io.OutputStream"/>
  11120. <param name="length" type="long"/>
  11121. <param name="bufferSize" type="int"/>
  11122. <param name="close" type="boolean"/>
  11123. <exception name="IOException" type="java.io.IOException"/>
  11124. <doc>
  11125. <![CDATA[Copies the specified length of bytes from in to out.
  11126. @param in InputStream to read from
  11127. @param out OutputStream to write to
  11128. @param length number of bytes to copy
  11129. @param bufferSize the size of the buffer
  11130. @param close whether to close the streams
  11131. @throws IOException if bytes can not be read or written]]>
  11132. </doc>
  11133. </method>
  11134. <method name="readFully"
  11135. abstract="false" native="false" synchronized="false"
  11136. static="true" final="false" visibility="public"
  11137. deprecated="not deprecated">
  11138. <param name="in" type="java.io.InputStream"/>
  11139. <param name="buf" type="byte[]"/>
  11140. <param name="off" type="int"/>
  11141. <param name="len" type="int"/>
  11142. <exception name="IOException" type="java.io.IOException"/>
  11143. <doc>
  11144. <![CDATA[Reads len bytes in a loop.
  11145. @param in The InputStream to read from
  11146. @param buf The buffer to fill
  11147. @param off offset from the buffer
  11148. @param len the length of bytes to read
  11149. @throws IOException if it could not read requested number of bytes
  11150. for any reason (including EOF)]]>
  11151. </doc>
  11152. </method>
  11153. <method name="readFileChannelFully"
  11154. abstract="false" native="false" synchronized="false"
  11155. static="true" final="false" visibility="public"
  11156. deprecated="not deprecated">
  11157. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11158. <param name="buf" type="byte[]"/>
  11159. <param name="off" type="int"/>
  11160. <param name="len" type="int"/>
  11161. <exception name="IOException" type="java.io.IOException"/>
  11162. <doc>
  11163. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11164. @param fileChannel a FileChannel to read len bytes into buf
  11165. @param buf The buffer to fill
  11166. @param off offset from the buffer
  11167. @param len the length of bytes to read
  11168. @throws IOException if it could not read requested number of bytes
  11169. for any reason (including EOF)]]>
  11170. </doc>
  11171. </method>
  11172. <method name="skipFully"
  11173. abstract="false" native="false" synchronized="false"
  11174. static="true" final="false" visibility="public"
  11175. deprecated="not deprecated">
  11176. <param name="in" type="java.io.InputStream"/>
  11177. <param name="len" type="long"/>
  11178. <exception name="IOException" type="java.io.IOException"/>
  11179. <doc>
  11180. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11181. @param in The InputStream to skip bytes from
  11182. @param len number of bytes to skip.
  11183. @throws IOException if it could not skip requested number of bytes
  11184. for any reason (including EOF)]]>
  11185. </doc>
  11186. </method>
  11187. <method name="cleanup"
  11188. abstract="false" native="false" synchronized="false"
  11189. static="true" final="false" visibility="public"
  11190. deprecated="not deprecated">
  11191. <param name="log" type="org.apache.commons.logging.Log"/>
  11192. <param name="closeables" type="java.io.Closeable[]"/>
  11193. <doc>
  11194. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11195. null pointers. Must only be used for cleanup in exception handlers.
  11196. @param log the log to record problems to at debug level. Can be null.
  11197. @param closeables the objects to close]]>
  11198. </doc>
  11199. </method>
  11200. <method name="closeStream"
  11201. abstract="false" native="false" synchronized="false"
  11202. static="true" final="false" visibility="public"
  11203. deprecated="not deprecated">
  11204. <param name="stream" type="java.io.Closeable"/>
  11205. <doc>
  11206. <![CDATA[Closes the stream ignoring {@link IOException}.
  11207. Must only be called in cleaning up from exception handlers.
  11208. @param stream the Stream to close]]>
  11209. </doc>
  11210. </method>
  11211. <method name="closeSocket"
  11212. abstract="false" native="false" synchronized="false"
  11213. static="true" final="false" visibility="public"
  11214. deprecated="not deprecated">
  11215. <param name="sock" type="java.net.Socket"/>
  11216. <doc>
  11217. <![CDATA[Closes the socket ignoring {@link IOException}
  11218. @param sock the Socket to close]]>
  11219. </doc>
  11220. </method>
  11221. <doc>
  11222. <![CDATA[An utility class for I/O related functionality.]]>
  11223. </doc>
  11224. </class>
  11225. <!-- end class org.apache.hadoop.io.IOUtils -->
  11226. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11227. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11228. abstract="false"
  11229. static="true" final="false" visibility="public"
  11230. deprecated="not deprecated">
  11231. <constructor name="IOUtils.NullOutputStream"
  11232. static="false" final="false" visibility="public"
  11233. deprecated="not deprecated">
  11234. </constructor>
  11235. <method name="write"
  11236. abstract="false" native="false" synchronized="false"
  11237. static="false" final="false" visibility="public"
  11238. deprecated="not deprecated">
  11239. <param name="b" type="byte[]"/>
  11240. <param name="off" type="int"/>
  11241. <param name="len" type="int"/>
  11242. <exception name="IOException" type="java.io.IOException"/>
  11243. </method>
  11244. <method name="write"
  11245. abstract="false" native="false" synchronized="false"
  11246. static="false" final="false" visibility="public"
  11247. deprecated="not deprecated">
  11248. <param name="b" type="int"/>
  11249. <exception name="IOException" type="java.io.IOException"/>
  11250. </method>
  11251. <doc>
  11252. <![CDATA[/dev/null of OutputStreams.]]>
  11253. </doc>
  11254. </class>
  11255. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11256. <!-- start class org.apache.hadoop.io.LongWritable -->
  11257. <class name="LongWritable" extends="java.lang.Object"
  11258. abstract="false"
  11259. static="false" final="false" visibility="public"
  11260. deprecated="not deprecated">
  11261. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11262. <constructor name="LongWritable"
  11263. static="false" final="false" visibility="public"
  11264. deprecated="not deprecated">
  11265. </constructor>
  11266. <constructor name="LongWritable" type="long"
  11267. static="false" final="false" visibility="public"
  11268. deprecated="not deprecated">
  11269. </constructor>
  11270. <method name="set"
  11271. abstract="false" native="false" synchronized="false"
  11272. static="false" final="false" visibility="public"
  11273. deprecated="not deprecated">
  11274. <param name="value" type="long"/>
  11275. <doc>
  11276. <![CDATA[Set the value of this LongWritable.]]>
  11277. </doc>
  11278. </method>
  11279. <method name="get" return="long"
  11280. abstract="false" native="false" synchronized="false"
  11281. static="false" final="false" visibility="public"
  11282. deprecated="not deprecated">
  11283. <doc>
  11284. <![CDATA[Return the value of this LongWritable.]]>
  11285. </doc>
  11286. </method>
  11287. <method name="readFields"
  11288. abstract="false" native="false" synchronized="false"
  11289. static="false" final="false" visibility="public"
  11290. deprecated="not deprecated">
  11291. <param name="in" type="java.io.DataInput"/>
  11292. <exception name="IOException" type="java.io.IOException"/>
  11293. </method>
  11294. <method name="write"
  11295. abstract="false" native="false" synchronized="false"
  11296. static="false" final="false" visibility="public"
  11297. deprecated="not deprecated">
  11298. <param name="out" type="java.io.DataOutput"/>
  11299. <exception name="IOException" type="java.io.IOException"/>
  11300. </method>
  11301. <method name="equals" return="boolean"
  11302. abstract="false" native="false" synchronized="false"
  11303. static="false" final="false" visibility="public"
  11304. deprecated="not deprecated">
  11305. <param name="o" type="java.lang.Object"/>
  11306. <doc>
  11307. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11308. </doc>
  11309. </method>
  11310. <method name="hashCode" return="int"
  11311. abstract="false" native="false" synchronized="false"
  11312. static="false" final="false" visibility="public"
  11313. deprecated="not deprecated">
  11314. </method>
  11315. <method name="compareTo" return="int"
  11316. abstract="false" native="false" synchronized="false"
  11317. static="false" final="false" visibility="public"
  11318. deprecated="not deprecated">
  11319. <param name="o" type="java.lang.Object"/>
  11320. <doc>
  11321. <![CDATA[Compares two LongWritables.]]>
  11322. </doc>
  11323. </method>
  11324. <method name="toString" return="java.lang.String"
  11325. abstract="false" native="false" synchronized="false"
  11326. static="false" final="false" visibility="public"
  11327. deprecated="not deprecated">
  11328. </method>
  11329. <doc>
  11330. <![CDATA[A WritableComparable for longs.]]>
  11331. </doc>
  11332. </class>
  11333. <!-- end class org.apache.hadoop.io.LongWritable -->
  11334. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11335. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11336. abstract="false"
  11337. static="true" final="false" visibility="public"
  11338. deprecated="not deprecated">
  11339. <constructor name="LongWritable.Comparator"
  11340. static="false" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. </constructor>
  11343. <method name="compare" return="int"
  11344. abstract="false" native="false" synchronized="false"
  11345. static="false" final="false" visibility="public"
  11346. deprecated="not deprecated">
  11347. <param name="b1" type="byte[]"/>
  11348. <param name="s1" type="int"/>
  11349. <param name="l1" type="int"/>
  11350. <param name="b2" type="byte[]"/>
  11351. <param name="s2" type="int"/>
  11352. <param name="l2" type="int"/>
  11353. </method>
  11354. <doc>
  11355. <![CDATA[A Comparator optimized for LongWritable.]]>
  11356. </doc>
  11357. </class>
  11358. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11359. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11360. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11361. abstract="false"
  11362. static="true" final="false" visibility="public"
  11363. deprecated="not deprecated">
  11364. <constructor name="LongWritable.DecreasingComparator"
  11365. static="false" final="false" visibility="public"
  11366. deprecated="not deprecated">
  11367. </constructor>
  11368. <method name="compare" return="int"
  11369. abstract="false" native="false" synchronized="false"
  11370. static="false" final="false" visibility="public"
  11371. deprecated="not deprecated">
  11372. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11373. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11374. </method>
  11375. <method name="compare" return="int"
  11376. abstract="false" native="false" synchronized="false"
  11377. static="false" final="false" visibility="public"
  11378. deprecated="not deprecated">
  11379. <param name="b1" type="byte[]"/>
  11380. <param name="s1" type="int"/>
  11381. <param name="l1" type="int"/>
  11382. <param name="b2" type="byte[]"/>
  11383. <param name="s2" type="int"/>
  11384. <param name="l2" type="int"/>
  11385. </method>
  11386. <doc>
  11387. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11388. </doc>
  11389. </class>
  11390. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11391. <!-- start class org.apache.hadoop.io.MapFile -->
  11392. <class name="MapFile" extends="java.lang.Object"
  11393. abstract="false"
  11394. static="false" final="false" visibility="public"
  11395. deprecated="not deprecated">
  11396. <constructor name="MapFile"
  11397. static="false" final="false" visibility="protected"
  11398. deprecated="not deprecated">
  11399. </constructor>
  11400. <method name="rename"
  11401. abstract="false" native="false" synchronized="false"
  11402. static="true" final="false" visibility="public"
  11403. deprecated="not deprecated">
  11404. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11405. <param name="oldName" type="java.lang.String"/>
  11406. <param name="newName" type="java.lang.String"/>
  11407. <exception name="IOException" type="java.io.IOException"/>
  11408. <doc>
  11409. <![CDATA[Renames an existing map directory.]]>
  11410. </doc>
  11411. </method>
  11412. <method name="delete"
  11413. abstract="false" native="false" synchronized="false"
  11414. static="true" final="false" visibility="public"
  11415. deprecated="not deprecated">
  11416. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11417. <param name="name" type="java.lang.String"/>
  11418. <exception name="IOException" type="java.io.IOException"/>
  11419. <doc>
  11420. <![CDATA[Deletes the named map file.]]>
  11421. </doc>
  11422. </method>
  11423. <method name="fix" return="long"
  11424. abstract="false" native="false" synchronized="false"
  11425. static="true" final="false" visibility="public"
  11426. deprecated="not deprecated">
  11427. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11428. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11429. <param name="keyClass" type="java.lang.Class"/>
  11430. <param name="valueClass" type="java.lang.Class"/>
  11431. <param name="dryrun" type="boolean"/>
  11432. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11433. <exception name="Exception" type="java.lang.Exception"/>
  11434. <doc>
  11435. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11436. @param fs filesystem
  11437. @param dir directory containing the MapFile data and index
  11438. @param keyClass key class (has to be a subclass of Writable)
  11439. @param valueClass value class (has to be a subclass of Writable)
  11440. @param dryrun do not perform any changes, just report what needs to be done
  11441. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11442. @throws Exception]]>
  11443. </doc>
  11444. </method>
  11445. <method name="main"
  11446. abstract="false" native="false" synchronized="false"
  11447. static="true" final="false" visibility="public"
  11448. deprecated="not deprecated">
  11449. <param name="args" type="java.lang.String[]"/>
  11450. <exception name="Exception" type="java.lang.Exception"/>
  11451. </method>
  11452. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11453. transient="false" volatile="false"
  11454. static="true" final="true" visibility="public"
  11455. deprecated="not deprecated">
  11456. <doc>
  11457. <![CDATA[The name of the index file.]]>
  11458. </doc>
  11459. </field>
  11460. <field name="DATA_FILE_NAME" type="java.lang.String"
  11461. transient="false" volatile="false"
  11462. static="true" final="true" visibility="public"
  11463. deprecated="not deprecated">
  11464. <doc>
  11465. <![CDATA[The name of the data file.]]>
  11466. </doc>
  11467. </field>
  11468. <doc>
  11469. <![CDATA[A file-based map from keys to values.
  11470. <p>A map is a directory containing two files, the <code>data</code> file,
  11471. containing all keys and values in the map, and a smaller <code>index</code>
  11472. file, containing a fraction of the keys. The fraction is determined by
  11473. {@link Writer#getIndexInterval()}.
  11474. <p>The index file is read entirely into memory. Thus key implementations
  11475. should try to keep themselves small.
  11476. <p>Map files are created by adding entries in-order. To maintain a large
  11477. database, perform updates by copying the previous version of a database and
  11478. merging in a sorted change list, to create a new version of the database in
  11479. a new file. Sorting large change lists can be done with {@link
  11480. SequenceFile.Sorter}.]]>
  11481. </doc>
  11482. </class>
  11483. <!-- end class org.apache.hadoop.io.MapFile -->
  11484. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11485. <class name="MapFile.Reader" extends="java.lang.Object"
  11486. abstract="false"
  11487. static="true" final="false" visibility="public"
  11488. deprecated="not deprecated">
  11489. <implements name="java.io.Closeable"/>
  11490. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11491. static="false" final="false" visibility="public"
  11492. deprecated="not deprecated">
  11493. <exception name="IOException" type="java.io.IOException"/>
  11494. <doc>
  11495. <![CDATA[Construct a map reader for the named map.]]>
  11496. </doc>
  11497. </constructor>
  11498. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11499. static="false" final="false" visibility="public"
  11500. deprecated="not deprecated">
  11501. <exception name="IOException" type="java.io.IOException"/>
  11502. <doc>
  11503. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11504. </doc>
  11505. </constructor>
  11506. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11507. static="false" final="false" visibility="protected"
  11508. deprecated="not deprecated">
  11509. <exception name="IOException" type="java.io.IOException"/>
  11510. <doc>
  11511. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11512. initialization is complete.
  11513. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11514. </doc>
  11515. </constructor>
  11516. <method name="getKeyClass" return="java.lang.Class"
  11517. abstract="false" native="false" synchronized="false"
  11518. static="false" final="false" visibility="public"
  11519. deprecated="not deprecated">
  11520. <doc>
  11521. <![CDATA[Returns the class of keys in this file.]]>
  11522. </doc>
  11523. </method>
  11524. <method name="getValueClass" return="java.lang.Class"
  11525. abstract="false" native="false" synchronized="false"
  11526. static="false" final="false" visibility="public"
  11527. deprecated="not deprecated">
  11528. <doc>
  11529. <![CDATA[Returns the class of values in this file.]]>
  11530. </doc>
  11531. </method>
  11532. <method name="open"
  11533. abstract="false" native="false" synchronized="true"
  11534. static="false" final="false" visibility="protected"
  11535. deprecated="not deprecated">
  11536. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11537. <param name="dirName" type="java.lang.String"/>
  11538. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11539. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11540. <exception name="IOException" type="java.io.IOException"/>
  11541. </method>
  11542. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11543. abstract="false" native="false" synchronized="false"
  11544. static="false" final="false" visibility="protected"
  11545. deprecated="not deprecated">
  11546. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11547. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11549. <exception name="IOException" type="java.io.IOException"/>
  11550. <doc>
  11551. <![CDATA[Override this method to specialize the type of
  11552. {@link SequenceFile.Reader} returned.]]>
  11553. </doc>
  11554. </method>
  11555. <method name="reset"
  11556. abstract="false" native="false" synchronized="true"
  11557. static="false" final="false" visibility="public"
  11558. deprecated="not deprecated">
  11559. <exception name="IOException" type="java.io.IOException"/>
  11560. <doc>
  11561. <![CDATA[Re-positions the reader before its first key.]]>
  11562. </doc>
  11563. </method>
  11564. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11565. abstract="false" native="false" synchronized="true"
  11566. static="false" final="false" visibility="public"
  11567. deprecated="not deprecated">
  11568. <exception name="IOException" type="java.io.IOException"/>
  11569. <doc>
  11570. <![CDATA[Get the key at approximately the middle of the file.
  11571. @throws IOException]]>
  11572. </doc>
  11573. </method>
  11574. <method name="finalKey"
  11575. abstract="false" native="false" synchronized="true"
  11576. static="false" final="false" visibility="public"
  11577. deprecated="not deprecated">
  11578. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11579. <exception name="IOException" type="java.io.IOException"/>
  11580. <doc>
  11581. <![CDATA[Reads the final key from the file.
  11582. @param key key to read into]]>
  11583. </doc>
  11584. </method>
  11585. <method name="seek" return="boolean"
  11586. abstract="false" native="false" synchronized="true"
  11587. static="false" final="false" visibility="public"
  11588. deprecated="not deprecated">
  11589. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11590. <exception name="IOException" type="java.io.IOException"/>
  11591. <doc>
  11592. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11593. first entry after the named key. Returns true iff the named key exists
  11594. in this map.]]>
  11595. </doc>
  11596. </method>
  11597. <method name="next" return="boolean"
  11598. abstract="false" native="false" synchronized="true"
  11599. static="false" final="false" visibility="public"
  11600. deprecated="not deprecated">
  11601. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11602. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11603. <exception name="IOException" type="java.io.IOException"/>
  11604. <doc>
  11605. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11606. <code>val</code>. Returns true if such a pair exists and false when at
  11607. the end of the map]]>
  11608. </doc>
  11609. </method>
  11610. <method name="get" return="org.apache.hadoop.io.Writable"
  11611. abstract="false" native="false" synchronized="true"
  11612. static="false" final="false" visibility="public"
  11613. deprecated="not deprecated">
  11614. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11615. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11616. <exception name="IOException" type="java.io.IOException"/>
  11617. <doc>
  11618. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11619. </doc>
  11620. </method>
  11621. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11622. abstract="false" native="false" synchronized="true"
  11623. static="false" final="false" visibility="public"
  11624. deprecated="not deprecated">
  11625. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11626. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11627. <exception name="IOException" type="java.io.IOException"/>
  11628. <doc>
  11629. <![CDATA[Finds the record that is the closest match to the specified key.
  11630. Returns <code>key</code> or if it does not exist, at the first entry
  11631. after the named key.
  11632. - * @param key - key that we're trying to find
  11633. - * @param val - data value if key is found
  11634. - * @return - the key that was the closest match or null if eof.]]>
  11635. </doc>
  11636. </method>
  11637. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11638. abstract="false" native="false" synchronized="true"
  11639. static="false" final="false" visibility="public"
  11640. deprecated="not deprecated">
  11641. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11642. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11643. <param name="before" type="boolean"/>
  11644. <exception name="IOException" type="java.io.IOException"/>
  11645. <doc>
  11646. <![CDATA[Finds the record that is the closest match to the specified key.
  11647. @param key - key that we're trying to find
  11648. @param val - data value if key is found
  11649. @param before - IF true, and <code>key</code> does not exist, return
  11650. the first entry that falls just before the <code>key</code>. Otherwise,
  11651. return the record that sorts just after.
  11652. @return - the key that was the closest match or null if eof.]]>
  11653. </doc>
  11654. </method>
  11655. <method name="close"
  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[Close the map.]]>
  11662. </doc>
  11663. </method>
  11664. <doc>
  11665. <![CDATA[Provide access to an existing map.]]>
  11666. </doc>
  11667. </class>
  11668. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11669. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11670. <class name="MapFile.Writer" extends="java.lang.Object"
  11671. abstract="false"
  11672. static="true" final="false" visibility="public"
  11673. deprecated="not deprecated">
  11674. <implements name="java.io.Closeable"/>
  11675. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11676. static="false" final="false" visibility="public"
  11677. deprecated="not deprecated">
  11678. <exception name="IOException" type="java.io.IOException"/>
  11679. <doc>
  11680. <![CDATA[Create the named map for keys of the named class.]]>
  11681. </doc>
  11682. </constructor>
  11683. <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"
  11684. static="false" final="false" visibility="public"
  11685. deprecated="not deprecated">
  11686. <exception name="IOException" type="java.io.IOException"/>
  11687. <doc>
  11688. <![CDATA[Create the named map for keys of the named class.]]>
  11689. </doc>
  11690. </constructor>
  11691. <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"
  11692. static="false" final="false" visibility="public"
  11693. deprecated="not deprecated">
  11694. <exception name="IOException" type="java.io.IOException"/>
  11695. <doc>
  11696. <![CDATA[Create the named map for keys of the named class.]]>
  11697. </doc>
  11698. </constructor>
  11699. <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"
  11700. static="false" final="false" visibility="public"
  11701. deprecated="not deprecated">
  11702. <exception name="IOException" type="java.io.IOException"/>
  11703. <doc>
  11704. <![CDATA[Create the named map for keys of the named class.]]>
  11705. </doc>
  11706. </constructor>
  11707. <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"
  11708. static="false" final="false" visibility="public"
  11709. deprecated="not deprecated">
  11710. <exception name="IOException" type="java.io.IOException"/>
  11711. <doc>
  11712. <![CDATA[Create the named map using the named key comparator.]]>
  11713. </doc>
  11714. </constructor>
  11715. <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"
  11716. static="false" final="false" visibility="public"
  11717. deprecated="not deprecated">
  11718. <exception name="IOException" type="java.io.IOException"/>
  11719. <doc>
  11720. <![CDATA[Create the named map using the named key comparator.]]>
  11721. </doc>
  11722. </constructor>
  11723. <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"
  11724. static="false" final="false" visibility="public"
  11725. deprecated="not deprecated">
  11726. <exception name="IOException" type="java.io.IOException"/>
  11727. <doc>
  11728. <![CDATA[Create the named map using the named key comparator.]]>
  11729. </doc>
  11730. </constructor>
  11731. <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"
  11732. static="false" final="false" visibility="public"
  11733. deprecated="not deprecated">
  11734. <exception name="IOException" type="java.io.IOException"/>
  11735. <doc>
  11736. <![CDATA[Create the named map using the named key comparator.]]>
  11737. </doc>
  11738. </constructor>
  11739. <method name="getIndexInterval" return="int"
  11740. abstract="false" native="false" synchronized="false"
  11741. static="false" final="false" visibility="public"
  11742. deprecated="not deprecated">
  11743. <doc>
  11744. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11745. </doc>
  11746. </method>
  11747. <method name="setIndexInterval"
  11748. abstract="false" native="false" synchronized="false"
  11749. static="false" final="false" visibility="public"
  11750. deprecated="not deprecated">
  11751. <param name="interval" type="int"/>
  11752. <doc>
  11753. <![CDATA[Sets the index interval.
  11754. @see #getIndexInterval()]]>
  11755. </doc>
  11756. </method>
  11757. <method name="setIndexInterval"
  11758. abstract="false" native="false" synchronized="false"
  11759. static="true" final="false" visibility="public"
  11760. deprecated="not deprecated">
  11761. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11762. <param name="interval" type="int"/>
  11763. <doc>
  11764. <![CDATA[Sets the index interval and stores it in conf
  11765. @see #getIndexInterval()]]>
  11766. </doc>
  11767. </method>
  11768. <method name="close"
  11769. abstract="false" native="false" synchronized="true"
  11770. static="false" final="false" visibility="public"
  11771. deprecated="not deprecated">
  11772. <exception name="IOException" type="java.io.IOException"/>
  11773. <doc>
  11774. <![CDATA[Close the map.]]>
  11775. </doc>
  11776. </method>
  11777. <method name="append"
  11778. abstract="false" native="false" synchronized="true"
  11779. static="false" final="false" visibility="public"
  11780. deprecated="not deprecated">
  11781. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11782. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11783. <exception name="IOException" type="java.io.IOException"/>
  11784. <doc>
  11785. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11786. to the previous key added to the map.]]>
  11787. </doc>
  11788. </method>
  11789. <doc>
  11790. <![CDATA[Writes a new map.]]>
  11791. </doc>
  11792. </class>
  11793. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11794. <!-- start class org.apache.hadoop.io.MapWritable -->
  11795. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11796. abstract="false"
  11797. static="false" final="false" visibility="public"
  11798. deprecated="not deprecated">
  11799. <implements name="java.util.Map"/>
  11800. <constructor name="MapWritable"
  11801. static="false" final="false" visibility="public"
  11802. deprecated="not deprecated">
  11803. <doc>
  11804. <![CDATA[Default constructor.]]>
  11805. </doc>
  11806. </constructor>
  11807. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <doc>
  11811. <![CDATA[Copy constructor.
  11812. @param other the map to copy from]]>
  11813. </doc>
  11814. </constructor>
  11815. <method name="clear"
  11816. abstract="false" native="false" synchronized="false"
  11817. static="false" final="false" visibility="public"
  11818. deprecated="not deprecated">
  11819. <doc>
  11820. <![CDATA[{@inheritDoc}]]>
  11821. </doc>
  11822. </method>
  11823. <method name="containsKey" return="boolean"
  11824. abstract="false" native="false" synchronized="false"
  11825. static="false" final="false" visibility="public"
  11826. deprecated="not deprecated">
  11827. <param name="key" type="java.lang.Object"/>
  11828. <doc>
  11829. <![CDATA[{@inheritDoc}]]>
  11830. </doc>
  11831. </method>
  11832. <method name="containsValue" return="boolean"
  11833. abstract="false" native="false" synchronized="false"
  11834. static="false" final="false" visibility="public"
  11835. deprecated="not deprecated">
  11836. <param name="value" type="java.lang.Object"/>
  11837. <doc>
  11838. <![CDATA[{@inheritDoc}]]>
  11839. </doc>
  11840. </method>
  11841. <method name="entrySet" return="java.util.Set"
  11842. abstract="false" native="false" synchronized="false"
  11843. static="false" final="false" visibility="public"
  11844. deprecated="not deprecated">
  11845. <doc>
  11846. <![CDATA[{@inheritDoc}]]>
  11847. </doc>
  11848. </method>
  11849. <method name="get" return="org.apache.hadoop.io.Writable"
  11850. abstract="false" native="false" synchronized="false"
  11851. static="false" final="false" visibility="public"
  11852. deprecated="not deprecated">
  11853. <param name="key" type="java.lang.Object"/>
  11854. <doc>
  11855. <![CDATA[{@inheritDoc}]]>
  11856. </doc>
  11857. </method>
  11858. <method name="isEmpty" return="boolean"
  11859. abstract="false" native="false" synchronized="false"
  11860. static="false" final="false" visibility="public"
  11861. deprecated="not deprecated">
  11862. <doc>
  11863. <![CDATA[{@inheritDoc}]]>
  11864. </doc>
  11865. </method>
  11866. <method name="keySet" return="java.util.Set"
  11867. abstract="false" native="false" synchronized="false"
  11868. static="false" final="false" visibility="public"
  11869. deprecated="not deprecated">
  11870. <doc>
  11871. <![CDATA[{@inheritDoc}]]>
  11872. </doc>
  11873. </method>
  11874. <method name="put" return="org.apache.hadoop.io.Writable"
  11875. abstract="false" native="false" synchronized="false"
  11876. static="false" final="false" visibility="public"
  11877. deprecated="not deprecated">
  11878. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11879. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11880. <doc>
  11881. <![CDATA[{@inheritDoc}]]>
  11882. </doc>
  11883. </method>
  11884. <method name="putAll"
  11885. abstract="false" native="false" synchronized="false"
  11886. static="false" final="false" visibility="public"
  11887. deprecated="not deprecated">
  11888. <param name="t" type="java.util.Map"/>
  11889. <doc>
  11890. <![CDATA[{@inheritDoc}]]>
  11891. </doc>
  11892. </method>
  11893. <method name="remove" return="org.apache.hadoop.io.Writable"
  11894. abstract="false" native="false" synchronized="false"
  11895. static="false" final="false" visibility="public"
  11896. deprecated="not deprecated">
  11897. <param name="key" type="java.lang.Object"/>
  11898. <doc>
  11899. <![CDATA[{@inheritDoc}]]>
  11900. </doc>
  11901. </method>
  11902. <method name="size" return="int"
  11903. abstract="false" native="false" synchronized="false"
  11904. static="false" final="false" visibility="public"
  11905. deprecated="not deprecated">
  11906. <doc>
  11907. <![CDATA[{@inheritDoc}]]>
  11908. </doc>
  11909. </method>
  11910. <method name="values" return="java.util.Collection"
  11911. abstract="false" native="false" synchronized="false"
  11912. static="false" final="false" visibility="public"
  11913. deprecated="not deprecated">
  11914. <doc>
  11915. <![CDATA[{@inheritDoc}]]>
  11916. </doc>
  11917. </method>
  11918. <method name="write"
  11919. abstract="false" native="false" synchronized="false"
  11920. static="false" final="false" visibility="public"
  11921. deprecated="not deprecated">
  11922. <param name="out" type="java.io.DataOutput"/>
  11923. <exception name="IOException" type="java.io.IOException"/>
  11924. <doc>
  11925. <![CDATA[{@inheritDoc}]]>
  11926. </doc>
  11927. </method>
  11928. <method name="readFields"
  11929. abstract="false" native="false" synchronized="false"
  11930. static="false" final="false" visibility="public"
  11931. deprecated="not deprecated">
  11932. <param name="in" type="java.io.DataInput"/>
  11933. <exception name="IOException" type="java.io.IOException"/>
  11934. <doc>
  11935. <![CDATA[{@inheritDoc}]]>
  11936. </doc>
  11937. </method>
  11938. <doc>
  11939. <![CDATA[A Writable Map.]]>
  11940. </doc>
  11941. </class>
  11942. <!-- end class org.apache.hadoop.io.MapWritable -->
  11943. <!-- start class org.apache.hadoop.io.MD5Hash -->
  11944. <class name="MD5Hash" extends="java.lang.Object"
  11945. abstract="false"
  11946. static="false" final="false" visibility="public"
  11947. deprecated="not deprecated">
  11948. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11949. <constructor name="MD5Hash"
  11950. static="false" final="false" visibility="public"
  11951. deprecated="not deprecated">
  11952. <doc>
  11953. <![CDATA[Constructs an MD5Hash.]]>
  11954. </doc>
  11955. </constructor>
  11956. <constructor name="MD5Hash" type="java.lang.String"
  11957. static="false" final="false" visibility="public"
  11958. deprecated="not deprecated">
  11959. <doc>
  11960. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  11961. </doc>
  11962. </constructor>
  11963. <constructor name="MD5Hash" type="byte[]"
  11964. static="false" final="false" visibility="public"
  11965. deprecated="not deprecated">
  11966. <doc>
  11967. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  11968. </doc>
  11969. </constructor>
  11970. <method name="readFields"
  11971. abstract="false" native="false" synchronized="false"
  11972. static="false" final="false" visibility="public"
  11973. deprecated="not deprecated">
  11974. <param name="in" type="java.io.DataInput"/>
  11975. <exception name="IOException" type="java.io.IOException"/>
  11976. </method>
  11977. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  11978. abstract="false" native="false" synchronized="false"
  11979. static="true" final="false" visibility="public"
  11980. deprecated="not deprecated">
  11981. <param name="in" type="java.io.DataInput"/>
  11982. <exception name="IOException" type="java.io.IOException"/>
  11983. <doc>
  11984. <![CDATA[Constructs, reads and returns an instance.]]>
  11985. </doc>
  11986. </method>
  11987. <method name="write"
  11988. abstract="false" native="false" synchronized="false"
  11989. static="false" final="false" visibility="public"
  11990. deprecated="not deprecated">
  11991. <param name="out" type="java.io.DataOutput"/>
  11992. <exception name="IOException" type="java.io.IOException"/>
  11993. </method>
  11994. <method name="set"
  11995. abstract="false" native="false" synchronized="false"
  11996. static="false" final="false" visibility="public"
  11997. deprecated="not deprecated">
  11998. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11999. <doc>
  12000. <![CDATA[Copy the contents of another instance into this instance.]]>
  12001. </doc>
  12002. </method>
  12003. <method name="getDigest" return="byte[]"
  12004. abstract="false" native="false" synchronized="false"
  12005. static="false" final="false" visibility="public"
  12006. deprecated="not deprecated">
  12007. <doc>
  12008. <![CDATA[Returns the digest bytes.]]>
  12009. </doc>
  12010. </method>
  12011. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12012. abstract="false" native="false" synchronized="false"
  12013. static="true" final="false" visibility="public"
  12014. deprecated="not deprecated">
  12015. <param name="data" type="byte[]"/>
  12016. <doc>
  12017. <![CDATA[Construct a hash value for a byte array.]]>
  12018. </doc>
  12019. </method>
  12020. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12021. abstract="false" native="false" synchronized="false"
  12022. static="true" final="false" visibility="public"
  12023. deprecated="not deprecated">
  12024. <param name="in" type="java.io.InputStream"/>
  12025. <exception name="IOException" type="java.io.IOException"/>
  12026. <doc>
  12027. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12028. </doc>
  12029. </method>
  12030. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12031. abstract="false" native="false" synchronized="false"
  12032. static="true" final="false" visibility="public"
  12033. deprecated="not deprecated">
  12034. <param name="data" type="byte[]"/>
  12035. <param name="start" type="int"/>
  12036. <param name="len" type="int"/>
  12037. <doc>
  12038. <![CDATA[Construct a hash value for a byte array.]]>
  12039. </doc>
  12040. </method>
  12041. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12042. abstract="false" native="false" synchronized="false"
  12043. static="true" final="false" visibility="public"
  12044. deprecated="not deprecated">
  12045. <param name="string" type="java.lang.String"/>
  12046. <doc>
  12047. <![CDATA[Construct a hash value for a String.]]>
  12048. </doc>
  12049. </method>
  12050. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12051. abstract="false" native="false" synchronized="false"
  12052. static="true" final="false" visibility="public"
  12053. deprecated="not deprecated">
  12054. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12055. <doc>
  12056. <![CDATA[Construct a hash value for a String.]]>
  12057. </doc>
  12058. </method>
  12059. <method name="halfDigest" return="long"
  12060. abstract="false" native="false" synchronized="false"
  12061. static="false" final="false" visibility="public"
  12062. deprecated="not deprecated">
  12063. <doc>
  12064. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12065. </doc>
  12066. </method>
  12067. <method name="quarterDigest" return="int"
  12068. abstract="false" native="false" synchronized="false"
  12069. static="false" final="false" visibility="public"
  12070. deprecated="not deprecated">
  12071. <doc>
  12072. <![CDATA[Return a 32-bit digest of the MD5.
  12073. @return the first 4 bytes of the md5]]>
  12074. </doc>
  12075. </method>
  12076. <method name="equals" return="boolean"
  12077. abstract="false" native="false" synchronized="false"
  12078. static="false" final="false" visibility="public"
  12079. deprecated="not deprecated">
  12080. <param name="o" type="java.lang.Object"/>
  12081. <doc>
  12082. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12083. same values.]]>
  12084. </doc>
  12085. </method>
  12086. <method name="hashCode" return="int"
  12087. abstract="false" native="false" synchronized="false"
  12088. static="false" final="false" visibility="public"
  12089. deprecated="not deprecated">
  12090. <doc>
  12091. <![CDATA[Returns a hash code value for this object.
  12092. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12093. </doc>
  12094. </method>
  12095. <method name="compareTo" return="int"
  12096. abstract="false" native="false" synchronized="false"
  12097. static="false" final="false" visibility="public"
  12098. deprecated="not deprecated">
  12099. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12100. <doc>
  12101. <![CDATA[Compares this object with the specified object for order.]]>
  12102. </doc>
  12103. </method>
  12104. <method name="toString" return="java.lang.String"
  12105. abstract="false" native="false" synchronized="false"
  12106. static="false" final="false" visibility="public"
  12107. deprecated="not deprecated">
  12108. <doc>
  12109. <![CDATA[Returns a string representation of this object.]]>
  12110. </doc>
  12111. </method>
  12112. <method name="setDigest"
  12113. abstract="false" native="false" synchronized="false"
  12114. static="false" final="false" visibility="public"
  12115. deprecated="not deprecated">
  12116. <param name="hex" type="java.lang.String"/>
  12117. <doc>
  12118. <![CDATA[Sets the digest value from a hex string.]]>
  12119. </doc>
  12120. </method>
  12121. <field name="MD5_LEN" type="int"
  12122. transient="false" volatile="false"
  12123. static="true" final="true" visibility="public"
  12124. deprecated="not deprecated">
  12125. </field>
  12126. <doc>
  12127. <![CDATA[A Writable for MD5 hash values.]]>
  12128. </doc>
  12129. </class>
  12130. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12131. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12132. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12133. abstract="false"
  12134. static="true" final="false" visibility="public"
  12135. deprecated="not deprecated">
  12136. <constructor name="MD5Hash.Comparator"
  12137. static="false" final="false" visibility="public"
  12138. deprecated="not deprecated">
  12139. </constructor>
  12140. <method name="compare" return="int"
  12141. abstract="false" native="false" synchronized="false"
  12142. static="false" final="false" visibility="public"
  12143. deprecated="not deprecated">
  12144. <param name="b1" type="byte[]"/>
  12145. <param name="s1" type="int"/>
  12146. <param name="l1" type="int"/>
  12147. <param name="b2" type="byte[]"/>
  12148. <param name="s2" type="int"/>
  12149. <param name="l2" type="int"/>
  12150. </method>
  12151. <doc>
  12152. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12153. </doc>
  12154. </class>
  12155. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12156. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12157. <class name="MultipleIOException" extends="java.io.IOException"
  12158. abstract="false"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <method name="getExceptions" return="java.util.List"
  12162. abstract="false" native="false" synchronized="false"
  12163. static="false" final="false" visibility="public"
  12164. deprecated="not deprecated">
  12165. <doc>
  12166. <![CDATA[@return the underlying exceptions]]>
  12167. </doc>
  12168. </method>
  12169. <method name="createIOException" return="java.io.IOException"
  12170. abstract="false" native="false" synchronized="false"
  12171. static="true" final="false" visibility="public"
  12172. deprecated="not deprecated">
  12173. <param name="exceptions" type="java.util.List"/>
  12174. <doc>
  12175. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12176. </doc>
  12177. </method>
  12178. <doc>
  12179. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12180. </doc>
  12181. </class>
  12182. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12183. <!-- start class org.apache.hadoop.io.NullWritable -->
  12184. <class name="NullWritable" extends="java.lang.Object"
  12185. abstract="false"
  12186. static="false" final="false" visibility="public"
  12187. deprecated="not deprecated">
  12188. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12189. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12190. abstract="false" native="false" synchronized="false"
  12191. static="true" final="false" visibility="public"
  12192. deprecated="not deprecated">
  12193. <doc>
  12194. <![CDATA[Returns the single instance of this class.]]>
  12195. </doc>
  12196. </method>
  12197. <method name="toString" return="java.lang.String"
  12198. abstract="false" native="false" synchronized="false"
  12199. static="false" final="false" visibility="public"
  12200. deprecated="not deprecated">
  12201. </method>
  12202. <method name="hashCode" return="int"
  12203. abstract="false" native="false" synchronized="false"
  12204. static="false" final="false" visibility="public"
  12205. deprecated="not deprecated">
  12206. </method>
  12207. <method name="compareTo" return="int"
  12208. abstract="false" native="false" synchronized="false"
  12209. static="false" final="false" visibility="public"
  12210. deprecated="not deprecated">
  12211. <param name="other" type="java.lang.Object"/>
  12212. </method>
  12213. <method name="equals" return="boolean"
  12214. abstract="false" native="false" synchronized="false"
  12215. static="false" final="false" visibility="public"
  12216. deprecated="not deprecated">
  12217. <param name="other" type="java.lang.Object"/>
  12218. </method>
  12219. <method name="readFields"
  12220. abstract="false" native="false" synchronized="false"
  12221. static="false" final="false" visibility="public"
  12222. deprecated="not deprecated">
  12223. <param name="in" type="java.io.DataInput"/>
  12224. <exception name="IOException" type="java.io.IOException"/>
  12225. </method>
  12226. <method name="write"
  12227. abstract="false" native="false" synchronized="false"
  12228. static="false" final="false" visibility="public"
  12229. deprecated="not deprecated">
  12230. <param name="out" type="java.io.DataOutput"/>
  12231. <exception name="IOException" type="java.io.IOException"/>
  12232. </method>
  12233. <doc>
  12234. <![CDATA[Singleton Writable with no data.]]>
  12235. </doc>
  12236. </class>
  12237. <!-- end class org.apache.hadoop.io.NullWritable -->
  12238. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12239. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12240. abstract="false"
  12241. static="true" final="false" visibility="public"
  12242. deprecated="not deprecated">
  12243. <constructor name="NullWritable.Comparator"
  12244. static="false" final="false" visibility="public"
  12245. deprecated="not deprecated">
  12246. </constructor>
  12247. <method name="compare" return="int"
  12248. abstract="false" native="false" synchronized="false"
  12249. static="false" final="false" visibility="public"
  12250. deprecated="not deprecated">
  12251. <param name="b1" type="byte[]"/>
  12252. <param name="s1" type="int"/>
  12253. <param name="l1" type="int"/>
  12254. <param name="b2" type="byte[]"/>
  12255. <param name="s2" type="int"/>
  12256. <param name="l2" type="int"/>
  12257. <doc>
  12258. <![CDATA[Compare the buffers in serialized form.]]>
  12259. </doc>
  12260. </method>
  12261. <doc>
  12262. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12263. </doc>
  12264. </class>
  12265. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12266. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12267. <class name="ObjectWritable" extends="java.lang.Object"
  12268. abstract="false"
  12269. static="false" final="false" visibility="public"
  12270. deprecated="not deprecated">
  12271. <implements name="org.apache.hadoop.io.Writable"/>
  12272. <implements name="org.apache.hadoop.conf.Configurable"/>
  12273. <constructor name="ObjectWritable"
  12274. static="false" final="false" visibility="public"
  12275. deprecated="not deprecated">
  12276. </constructor>
  12277. <constructor name="ObjectWritable" type="java.lang.Object"
  12278. static="false" final="false" visibility="public"
  12279. deprecated="not deprecated">
  12280. </constructor>
  12281. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12282. static="false" final="false" visibility="public"
  12283. deprecated="not deprecated">
  12284. </constructor>
  12285. <method name="get" return="java.lang.Object"
  12286. abstract="false" native="false" synchronized="false"
  12287. static="false" final="false" visibility="public"
  12288. deprecated="not deprecated">
  12289. <doc>
  12290. <![CDATA[Return the instance, or null if none.]]>
  12291. </doc>
  12292. </method>
  12293. <method name="getDeclaredClass" return="java.lang.Class"
  12294. abstract="false" native="false" synchronized="false"
  12295. static="false" final="false" visibility="public"
  12296. deprecated="not deprecated">
  12297. <doc>
  12298. <![CDATA[Return the class this is meant to be.]]>
  12299. </doc>
  12300. </method>
  12301. <method name="set"
  12302. abstract="false" native="false" synchronized="false"
  12303. static="false" final="false" visibility="public"
  12304. deprecated="not deprecated">
  12305. <param name="instance" type="java.lang.Object"/>
  12306. <doc>
  12307. <![CDATA[Reset the instance.]]>
  12308. </doc>
  12309. </method>
  12310. <method name="toString" return="java.lang.String"
  12311. abstract="false" native="false" synchronized="false"
  12312. static="false" final="false" visibility="public"
  12313. deprecated="not deprecated">
  12314. </method>
  12315. <method name="readFields"
  12316. abstract="false" native="false" synchronized="false"
  12317. static="false" final="false" visibility="public"
  12318. deprecated="not deprecated">
  12319. <param name="in" type="java.io.DataInput"/>
  12320. <exception name="IOException" type="java.io.IOException"/>
  12321. </method>
  12322. <method name="write"
  12323. abstract="false" native="false" synchronized="false"
  12324. static="false" final="false" visibility="public"
  12325. deprecated="not deprecated">
  12326. <param name="out" type="java.io.DataOutput"/>
  12327. <exception name="IOException" type="java.io.IOException"/>
  12328. </method>
  12329. <method name="writeObject"
  12330. abstract="false" native="false" synchronized="false"
  12331. static="true" final="false" visibility="public"
  12332. deprecated="not deprecated">
  12333. <param name="out" type="java.io.DataOutput"/>
  12334. <param name="instance" type="java.lang.Object"/>
  12335. <param name="declaredClass" type="java.lang.Class"/>
  12336. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12337. <exception name="IOException" type="java.io.IOException"/>
  12338. <doc>
  12339. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12340. the preceding.]]>
  12341. </doc>
  12342. </method>
  12343. <method name="readObject" return="java.lang.Object"
  12344. abstract="false" native="false" synchronized="false"
  12345. static="true" final="false" visibility="public"
  12346. deprecated="not deprecated">
  12347. <param name="in" type="java.io.DataInput"/>
  12348. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12349. <exception name="IOException" type="java.io.IOException"/>
  12350. <doc>
  12351. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12352. the preceding.]]>
  12353. </doc>
  12354. </method>
  12355. <method name="readObject" return="java.lang.Object"
  12356. abstract="false" native="false" synchronized="false"
  12357. static="true" final="false" visibility="public"
  12358. deprecated="not deprecated">
  12359. <param name="in" type="java.io.DataInput"/>
  12360. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12361. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12362. <exception name="IOException" type="java.io.IOException"/>
  12363. <doc>
  12364. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12365. the preceding.]]>
  12366. </doc>
  12367. </method>
  12368. <method name="setConf"
  12369. abstract="false" native="false" synchronized="false"
  12370. static="false" final="false" visibility="public"
  12371. deprecated="not deprecated">
  12372. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12373. </method>
  12374. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12375. abstract="false" native="false" synchronized="false"
  12376. static="false" final="false" visibility="public"
  12377. deprecated="not deprecated">
  12378. </method>
  12379. <doc>
  12380. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12381. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12382. </doc>
  12383. </class>
  12384. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12385. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12386. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12387. abstract="false"
  12388. static="false" final="false" visibility="public"
  12389. deprecated="not deprecated">
  12390. <constructor name="OutputBuffer"
  12391. static="false" final="false" visibility="public"
  12392. deprecated="not deprecated">
  12393. <doc>
  12394. <![CDATA[Constructs a new empty buffer.]]>
  12395. </doc>
  12396. </constructor>
  12397. <method name="getData" return="byte[]"
  12398. abstract="false" native="false" synchronized="false"
  12399. static="false" final="false" visibility="public"
  12400. deprecated="not deprecated">
  12401. <doc>
  12402. <![CDATA[Returns the current contents of the buffer.
  12403. Data is only valid to {@link #getLength()}.]]>
  12404. </doc>
  12405. </method>
  12406. <method name="getLength" return="int"
  12407. abstract="false" native="false" synchronized="false"
  12408. static="false" final="false" visibility="public"
  12409. deprecated="not deprecated">
  12410. <doc>
  12411. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12412. </doc>
  12413. </method>
  12414. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12415. abstract="false" native="false" synchronized="false"
  12416. static="false" final="false" visibility="public"
  12417. deprecated="not deprecated">
  12418. <doc>
  12419. <![CDATA[Resets the buffer to empty.]]>
  12420. </doc>
  12421. </method>
  12422. <method name="write"
  12423. abstract="false" native="false" synchronized="false"
  12424. static="false" final="false" visibility="public"
  12425. deprecated="not deprecated">
  12426. <param name="in" type="java.io.InputStream"/>
  12427. <param name="length" type="int"/>
  12428. <exception name="IOException" type="java.io.IOException"/>
  12429. <doc>
  12430. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12431. </doc>
  12432. </method>
  12433. <doc>
  12434. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12435. buffer.
  12436. <p>This saves memory over creating a new OutputStream and
  12437. ByteArrayOutputStream each time data is written.
  12438. <p>Typical usage is something like the following:<pre>
  12439. OutputBuffer buffer = new OutputBuffer();
  12440. while (... loop condition ...) {
  12441. buffer.reset();
  12442. ... write buffer using OutputStream methods ...
  12443. byte[] data = buffer.getData();
  12444. int dataLength = buffer.getLength();
  12445. ... write data to its ultimate destination ...
  12446. }
  12447. </pre>
  12448. @see DataOutputBuffer
  12449. @see InputBuffer]]>
  12450. </doc>
  12451. </class>
  12452. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12453. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12454. <interface name="RawComparator" abstract="true"
  12455. static="false" final="false" visibility="public"
  12456. deprecated="not deprecated">
  12457. <implements name="java.util.Comparator"/>
  12458. <method name="compare" return="int"
  12459. abstract="false" native="false" synchronized="false"
  12460. static="false" final="false" visibility="public"
  12461. deprecated="not deprecated">
  12462. <param name="b1" type="byte[]"/>
  12463. <param name="s1" type="int"/>
  12464. <param name="l1" type="int"/>
  12465. <param name="b2" type="byte[]"/>
  12466. <param name="s2" type="int"/>
  12467. <param name="l2" type="int"/>
  12468. </method>
  12469. <doc>
  12470. <![CDATA[<p>
  12471. A {@link Comparator} that operates directly on byte representations of
  12472. objects.
  12473. </p>
  12474. @param <T>
  12475. @see DeserializerComparator]]>
  12476. </doc>
  12477. </interface>
  12478. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12479. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12480. <class name="SecureIOUtils" extends="java.lang.Object"
  12481. abstract="false"
  12482. static="false" final="false" visibility="public"
  12483. deprecated="not deprecated">
  12484. <constructor name="SecureIOUtils"
  12485. static="false" final="false" visibility="public"
  12486. deprecated="not deprecated">
  12487. </constructor>
  12488. <method name="openForRead" return="java.io.FileInputStream"
  12489. abstract="false" native="false" synchronized="false"
  12490. static="true" final="false" visibility="public"
  12491. deprecated="not deprecated">
  12492. <param name="f" type="java.io.File"/>
  12493. <param name="expectedOwner" type="java.lang.String"/>
  12494. <exception name="IOException" type="java.io.IOException"/>
  12495. <doc>
  12496. <![CDATA[Open the given File for read access, verifying the expected user
  12497. constraints.
  12498. @param f the file that we are trying to open
  12499. @param expectedOwner the expected user owner for the file
  12500. @throws IOException if an IO Error occurred, or the user does not
  12501. match]]>
  12502. </doc>
  12503. </method>
  12504. <method name="createForWrite" return="java.io.FileOutputStream"
  12505. abstract="false" native="false" synchronized="false"
  12506. static="true" final="false" visibility="public"
  12507. deprecated="not deprecated">
  12508. <param name="f" type="java.io.File"/>
  12509. <param name="permissions" type="int"/>
  12510. <exception name="IOException" type="java.io.IOException"/>
  12511. <doc>
  12512. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12513. @param f the file that we want to create
  12514. @param permissions we want to have on the file (if security is enabled)
  12515. @throws AlreadyExistsException if the file already exists
  12516. @throws IOException if any other error occurred]]>
  12517. </doc>
  12518. </method>
  12519. <doc>
  12520. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12521. disk. The main issue this class tries to handle is that of symlink traversal.
  12522. <br/>
  12523. An example of such an attack is:
  12524. <ol>
  12525. <li> Malicious user removes his task's syslog file, and puts a link to the
  12526. jobToken file of a target user.</li>
  12527. <li> Malicious user tries to open the syslog file via the servlet on the
  12528. tasktracker.</li>
  12529. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12530. of the jobToken file. The malicious user can now access potentially sensitive
  12531. map outputs, etc. of the target user's job.</li>
  12532. </ol>
  12533. A similar attack is possible involving the
  12534. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12535. with unsecure write to a file.
  12536. <br/>]]>
  12537. </doc>
  12538. </class>
  12539. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12540. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12541. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12542. abstract="false"
  12543. static="true" final="false" visibility="public"
  12544. deprecated="not deprecated">
  12545. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12546. static="false" final="false" visibility="public"
  12547. deprecated="not deprecated">
  12548. </constructor>
  12549. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12550. static="false" final="false" visibility="public"
  12551. deprecated="not deprecated">
  12552. </constructor>
  12553. <doc>
  12554. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12555. because another file already existed at that path.]]>
  12556. </doc>
  12557. </class>
  12558. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12559. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12560. <class name="SequenceFile" extends="java.lang.Object"
  12561. abstract="false"
  12562. static="false" final="false" visibility="public"
  12563. deprecated="not deprecated">
  12564. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12565. abstract="false" native="false" synchronized="false"
  12566. static="true" final="false" visibility="public"
  12567. deprecated="Use
  12568. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12569. to get {@link CompressionType} for job-outputs.">
  12570. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12571. <doc>
  12572. <![CDATA[Get the compression type for the reduce outputs
  12573. @param job the job config to look in
  12574. @return the kind of compression to use
  12575. @deprecated Use
  12576. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12577. to get {@link CompressionType} for job-outputs.]]>
  12578. </doc>
  12579. </method>
  12580. <method name="setCompressionType"
  12581. abstract="false" native="false" synchronized="false"
  12582. static="true" final="false" visibility="public"
  12583. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12584. the {@link CompressionType} while creating the {@link SequenceFile} or
  12585. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12586. to specify the {@link CompressionType} for job-outputs.
  12587. or">
  12588. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12589. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12590. <doc>
  12591. <![CDATA[Set the compression type for sequence files.
  12592. @param job the configuration to modify
  12593. @param val the new compression type (none, block, record)
  12594. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  12595. the {@link CompressionType} while creating the {@link SequenceFile} or
  12596. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12597. to specify the {@link CompressionType} for job-outputs.
  12598. or]]>
  12599. </doc>
  12600. </method>
  12601. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12602. abstract="false" native="false" synchronized="false"
  12603. static="true" final="false" visibility="public"
  12604. deprecated="not deprecated">
  12605. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12606. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12607. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12608. <param name="keyClass" type="java.lang.Class"/>
  12609. <param name="valClass" type="java.lang.Class"/>
  12610. <exception name="IOException" type="java.io.IOException"/>
  12611. <doc>
  12612. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12613. @param fs The configured filesystem.
  12614. @param conf The configuration.
  12615. @param name The name of the file.
  12616. @param keyClass The 'key' type.
  12617. @param valClass The 'value' type.
  12618. @return Returns the handle to the constructed SequenceFile Writer.
  12619. @throws IOException]]>
  12620. </doc>
  12621. </method>
  12622. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12623. abstract="false" native="false" synchronized="false"
  12624. static="true" final="false" visibility="public"
  12625. deprecated="not deprecated">
  12626. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12627. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12628. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12629. <param name="keyClass" type="java.lang.Class"/>
  12630. <param name="valClass" type="java.lang.Class"/>
  12631. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12632. <exception name="IOException" type="java.io.IOException"/>
  12633. <doc>
  12634. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12635. @param fs The configured filesystem.
  12636. @param conf The configuration.
  12637. @param name The name of the file.
  12638. @param keyClass The 'key' type.
  12639. @param valClass The 'value' type.
  12640. @param compressionType The compression type.
  12641. @return Returns the handle to the constructed SequenceFile Writer.
  12642. @throws IOException]]>
  12643. </doc>
  12644. </method>
  12645. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12646. abstract="false" native="false" synchronized="false"
  12647. static="true" final="false" visibility="public"
  12648. deprecated="not deprecated">
  12649. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12651. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12652. <param name="keyClass" type="java.lang.Class"/>
  12653. <param name="valClass" type="java.lang.Class"/>
  12654. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12655. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12656. <exception name="IOException" type="java.io.IOException"/>
  12657. <doc>
  12658. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12659. @param fs The configured filesystem.
  12660. @param conf The configuration.
  12661. @param name The name of the file.
  12662. @param keyClass The 'key' type.
  12663. @param valClass The 'value' type.
  12664. @param compressionType The compression type.
  12665. @param progress The Progressable object to track progress.
  12666. @return Returns the handle to the constructed SequenceFile Writer.
  12667. @throws IOException]]>
  12668. </doc>
  12669. </method>
  12670. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12671. abstract="false" native="false" synchronized="false"
  12672. static="true" final="false" visibility="public"
  12673. deprecated="not deprecated">
  12674. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12675. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12676. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12677. <param name="keyClass" type="java.lang.Class"/>
  12678. <param name="valClass" type="java.lang.Class"/>
  12679. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12680. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12681. <exception name="IOException" type="java.io.IOException"/>
  12682. <doc>
  12683. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12684. @param fs The configured filesystem.
  12685. @param conf The configuration.
  12686. @param name The name of the file.
  12687. @param keyClass The 'key' type.
  12688. @param valClass The 'value' type.
  12689. @param compressionType The compression type.
  12690. @param codec The compression codec.
  12691. @return Returns the handle to the constructed SequenceFile Writer.
  12692. @throws IOException]]>
  12693. </doc>
  12694. </method>
  12695. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12696. abstract="false" native="false" synchronized="false"
  12697. static="true" final="false" visibility="public"
  12698. deprecated="not deprecated">
  12699. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12700. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12701. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12702. <param name="keyClass" type="java.lang.Class"/>
  12703. <param name="valClass" type="java.lang.Class"/>
  12704. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12705. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12706. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12707. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12708. <exception name="IOException" type="java.io.IOException"/>
  12709. <doc>
  12710. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12711. @param fs The configured filesystem.
  12712. @param conf The configuration.
  12713. @param name The name of the file.
  12714. @param keyClass The 'key' type.
  12715. @param valClass The 'value' type.
  12716. @param compressionType The compression type.
  12717. @param codec The compression codec.
  12718. @param progress The Progressable object to track progress.
  12719. @param metadata The metadata of the file.
  12720. @return Returns the handle to the constructed SequenceFile Writer.
  12721. @throws IOException]]>
  12722. </doc>
  12723. </method>
  12724. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12725. abstract="false" native="false" synchronized="false"
  12726. static="true" final="false" visibility="public"
  12727. deprecated="not deprecated">
  12728. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12729. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12730. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12731. <param name="keyClass" type="java.lang.Class"/>
  12732. <param name="valClass" type="java.lang.Class"/>
  12733. <param name="bufferSize" type="int"/>
  12734. <param name="replication" type="short"/>
  12735. <param name="blockSize" type="long"/>
  12736. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12737. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12738. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12739. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12740. <exception name="IOException" type="java.io.IOException"/>
  12741. <doc>
  12742. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12743. @param fs The configured filesystem.
  12744. @param conf The configuration.
  12745. @param name The name of the file.
  12746. @param keyClass The 'key' type.
  12747. @param valClass The 'value' type.
  12748. @param bufferSize buffer size for the underlaying outputstream.
  12749. @param replication replication factor for the file.
  12750. @param blockSize block size for the file.
  12751. @param compressionType The compression type.
  12752. @param codec The compression codec.
  12753. @param progress The Progressable object to track progress.
  12754. @param metadata The metadata of the file.
  12755. @return Returns the handle to the constructed SequenceFile Writer.
  12756. @throws IOException]]>
  12757. </doc>
  12758. </method>
  12759. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12760. abstract="false" native="false" synchronized="false"
  12761. static="true" final="false" visibility="public"
  12762. deprecated="not deprecated">
  12763. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12764. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12765. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12766. <param name="keyClass" type="java.lang.Class"/>
  12767. <param name="valClass" type="java.lang.Class"/>
  12768. <param name="bufferSize" type="int"/>
  12769. <param name="replication" type="short"/>
  12770. <param name="blockSize" type="long"/>
  12771. <param name="createParent" type="boolean"/>
  12772. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12773. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12774. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12775. <exception name="IOException" type="java.io.IOException"/>
  12776. <doc>
  12777. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12778. @param fs The configured filesystem.
  12779. @param conf The configuration.
  12780. @param name The name of the file.
  12781. @param keyClass The 'key' type.
  12782. @param valClass The 'value' type.
  12783. @param bufferSize buffer size for the underlaying outputstream.
  12784. @param replication replication factor for the file.
  12785. @param blockSize block size for the file.
  12786. @param createParent create parent directory if non-existent
  12787. @param compressionType The compression type.
  12788. @param codec The compression codec.
  12789. @param progress The Progressable object to track progress.
  12790. @param metadata The metadata of the file.
  12791. @return Returns the handle to the constructed SequenceFile Writer.
  12792. @throws IOException]]>
  12793. </doc>
  12794. </method>
  12795. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12796. abstract="false" native="false" synchronized="false"
  12797. static="true" final="false" visibility="public"
  12798. deprecated="not deprecated">
  12799. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12800. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12801. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12802. <param name="keyClass" type="java.lang.Class"/>
  12803. <param name="valClass" type="java.lang.Class"/>
  12804. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12805. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12806. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12807. <exception name="IOException" type="java.io.IOException"/>
  12808. <doc>
  12809. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12810. @param fs The configured filesystem.
  12811. @param conf The configuration.
  12812. @param name The name of the file.
  12813. @param keyClass The 'key' type.
  12814. @param valClass The 'value' type.
  12815. @param compressionType The compression type.
  12816. @param codec The compression codec.
  12817. @param progress The Progressable object to track progress.
  12818. @return Returns the handle to the constructed SequenceFile Writer.
  12819. @throws IOException]]>
  12820. </doc>
  12821. </method>
  12822. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12823. abstract="false" native="false" synchronized="false"
  12824. static="true" final="false" visibility="public"
  12825. deprecated="not deprecated">
  12826. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12827. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12828. <param name="keyClass" type="java.lang.Class"/>
  12829. <param name="valClass" type="java.lang.Class"/>
  12830. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12831. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12832. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12833. <exception name="IOException" type="java.io.IOException"/>
  12834. <doc>
  12835. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12836. @param conf The configuration.
  12837. @param out The stream on top which the writer is to be constructed.
  12838. @param keyClass The 'key' type.
  12839. @param valClass The 'value' type.
  12840. @param compressionType The compression type.
  12841. @param codec The compression codec.
  12842. @param metadata The metadata of the file.
  12843. @return Returns the handle to the constructed SequenceFile Writer.
  12844. @throws IOException]]>
  12845. </doc>
  12846. </method>
  12847. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12848. abstract="false" native="false" synchronized="false"
  12849. static="true" final="false" visibility="public"
  12850. deprecated="not deprecated">
  12851. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12852. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12853. <param name="keyClass" type="java.lang.Class"/>
  12854. <param name="valClass" type="java.lang.Class"/>
  12855. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12856. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12857. <exception name="IOException" type="java.io.IOException"/>
  12858. <doc>
  12859. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12860. @param conf The configuration.
  12861. @param out The stream on top which the writer is to be constructed.
  12862. @param keyClass The 'key' type.
  12863. @param valClass The 'value' type.
  12864. @param compressionType The compression type.
  12865. @param codec The compression codec.
  12866. @return Returns the handle to the constructed SequenceFile Writer.
  12867. @throws IOException]]>
  12868. </doc>
  12869. </method>
  12870. <field name="SYNC_INTERVAL" type="int"
  12871. transient="false" volatile="false"
  12872. static="true" final="true" visibility="public"
  12873. deprecated="not deprecated">
  12874. <doc>
  12875. <![CDATA[The number of bytes between sync points.]]>
  12876. </doc>
  12877. </field>
  12878. <doc>
  12879. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  12880. pairs.
  12881. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  12882. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  12883. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  12884. {@link CompressionType} used to compress key/value pairs:
  12885. <ol>
  12886. <li>
  12887. <code>Writer</code> : Uncompressed records.
  12888. </li>
  12889. <li>
  12890. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  12891. values.
  12892. </li>
  12893. <li>
  12894. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  12895. values are collected in 'blocks'
  12896. separately and compressed. The size of
  12897. the 'block' is configurable.
  12898. </ol>
  12899. <p>The actual compression algorithm used to compress key and/or values can be
  12900. specified by using the appropriate {@link CompressionCodec}.</p>
  12901. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  12902. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  12903. <p>The {@link Reader} acts as the bridge and can read any of the above
  12904. <code>SequenceFile</code> formats.</p>
  12905. <h4 id="Formats">SequenceFile Formats</h4>
  12906. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  12907. depending on the <code>CompressionType</code> specified. All of them share a
  12908. <a href="#Header">common header</a> described below.
  12909. <h5 id="Header">SequenceFile Header</h5>
  12910. <ul>
  12911. <li>
  12912. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  12913. version number (e.g. SEQ4 or SEQ6)
  12914. </li>
  12915. <li>
  12916. keyClassName -key class
  12917. </li>
  12918. <li>
  12919. valueClassName - value class
  12920. </li>
  12921. <li>
  12922. compression - A boolean which specifies if compression is turned on for
  12923. keys/values in this file.
  12924. </li>
  12925. <li>
  12926. blockCompression - A boolean which specifies if block-compression is
  12927. turned on for keys/values in this file.
  12928. </li>
  12929. <li>
  12930. compression codec - <code>CompressionCodec</code> class which is used for
  12931. compression of keys and/or values (if compression is
  12932. enabled).
  12933. </li>
  12934. <li>
  12935. metadata - {@link Metadata} for this file.
  12936. </li>
  12937. <li>
  12938. sync - A sync marker to denote end of the header.
  12939. </li>
  12940. </ul>
  12941. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  12942. <ul>
  12943. <li>
  12944. <a href="#Header">Header</a>
  12945. </li>
  12946. <li>
  12947. Record
  12948. <ul>
  12949. <li>Record length</li>
  12950. <li>Key length</li>
  12951. <li>Key</li>
  12952. <li>Value</li>
  12953. </ul>
  12954. </li>
  12955. <li>
  12956. A sync-marker every few <code>100</code> bytes or so.
  12957. </li>
  12958. </ul>
  12959. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  12960. <ul>
  12961. <li>
  12962. <a href="#Header">Header</a>
  12963. </li>
  12964. <li>
  12965. Record
  12966. <ul>
  12967. <li>Record length</li>
  12968. <li>Key length</li>
  12969. <li>Key</li>
  12970. <li><i>Compressed</i> Value</li>
  12971. </ul>
  12972. </li>
  12973. <li>
  12974. A sync-marker every few <code>100</code> bytes or so.
  12975. </li>
  12976. </ul>
  12977. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  12978. <ul>
  12979. <li>
  12980. <a href="#Header">Header</a>
  12981. </li>
  12982. <li>
  12983. Record <i>Block</i>
  12984. <ul>
  12985. <li>Compressed key-lengths block-size</li>
  12986. <li>Compressed key-lengths block</li>
  12987. <li>Compressed keys block-size</li>
  12988. <li>Compressed keys block</li>
  12989. <li>Compressed value-lengths block-size</li>
  12990. <li>Compressed value-lengths block</li>
  12991. <li>Compressed values block-size</li>
  12992. <li>Compressed values block</li>
  12993. </ul>
  12994. </li>
  12995. <li>
  12996. A sync-marker every few <code>100</code> bytes or so.
  12997. </li>
  12998. </ul>
  12999. <p>The compressed blocks of key lengths and value lengths consist of the
  13000. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13001. format.</p>
  13002. @see CompressionCodec]]>
  13003. </doc>
  13004. </class>
  13005. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13006. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13007. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13008. abstract="false"
  13009. static="true" final="true" visibility="public"
  13010. deprecated="not deprecated">
  13011. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13012. abstract="false" native="false" synchronized="false"
  13013. static="true" final="false" visibility="public"
  13014. deprecated="not deprecated">
  13015. </method>
  13016. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13017. abstract="false" native="false" synchronized="false"
  13018. static="true" final="false" visibility="public"
  13019. deprecated="not deprecated">
  13020. <param name="name" type="java.lang.String"/>
  13021. </method>
  13022. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13023. transient="false" volatile="false"
  13024. static="true" final="true" visibility="public"
  13025. deprecated="not deprecated">
  13026. <doc>
  13027. <![CDATA[Do not compress records.]]>
  13028. </doc>
  13029. </field>
  13030. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13031. transient="false" volatile="false"
  13032. static="true" final="true" visibility="public"
  13033. deprecated="not deprecated">
  13034. <doc>
  13035. <![CDATA[Compress values only, each separately.]]>
  13036. </doc>
  13037. </field>
  13038. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13039. transient="false" volatile="false"
  13040. static="true" final="true" visibility="public"
  13041. deprecated="not deprecated">
  13042. <doc>
  13043. <![CDATA[Compress sequences of records together in blocks.]]>
  13044. </doc>
  13045. </field>
  13046. <doc>
  13047. <![CDATA[The compression type used to compress key/value pairs in the
  13048. {@link SequenceFile}.
  13049. @see SequenceFile.Writer]]>
  13050. </doc>
  13051. </class>
  13052. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13053. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13054. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13055. abstract="false"
  13056. static="true" final="false" visibility="public"
  13057. deprecated="not deprecated">
  13058. <implements name="org.apache.hadoop.io.Writable"/>
  13059. <constructor name="SequenceFile.Metadata"
  13060. static="false" final="false" visibility="public"
  13061. deprecated="not deprecated">
  13062. </constructor>
  13063. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13064. static="false" final="false" visibility="public"
  13065. deprecated="not deprecated">
  13066. </constructor>
  13067. <method name="get" return="org.apache.hadoop.io.Text"
  13068. abstract="false" native="false" synchronized="false"
  13069. static="false" final="false" visibility="public"
  13070. deprecated="not deprecated">
  13071. <param name="name" type="org.apache.hadoop.io.Text"/>
  13072. </method>
  13073. <method name="set"
  13074. abstract="false" native="false" synchronized="false"
  13075. static="false" final="false" visibility="public"
  13076. deprecated="not deprecated">
  13077. <param name="name" type="org.apache.hadoop.io.Text"/>
  13078. <param name="value" type="org.apache.hadoop.io.Text"/>
  13079. </method>
  13080. <method name="getMetadata" return="java.util.TreeMap"
  13081. abstract="false" native="false" synchronized="false"
  13082. static="false" final="false" visibility="public"
  13083. deprecated="not deprecated">
  13084. </method>
  13085. <method name="write"
  13086. abstract="false" native="false" synchronized="false"
  13087. static="false" final="false" visibility="public"
  13088. deprecated="not deprecated">
  13089. <param name="out" type="java.io.DataOutput"/>
  13090. <exception name="IOException" type="java.io.IOException"/>
  13091. </method>
  13092. <method name="readFields"
  13093. abstract="false" native="false" synchronized="false"
  13094. static="false" final="false" visibility="public"
  13095. deprecated="not deprecated">
  13096. <param name="in" type="java.io.DataInput"/>
  13097. <exception name="IOException" type="java.io.IOException"/>
  13098. </method>
  13099. <method name="equals" return="boolean"
  13100. abstract="false" native="false" synchronized="false"
  13101. static="false" final="false" visibility="public"
  13102. deprecated="not deprecated">
  13103. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13104. </method>
  13105. <method name="hashCode" return="int"
  13106. abstract="false" native="false" synchronized="false"
  13107. static="false" final="false" visibility="public"
  13108. deprecated="not deprecated">
  13109. </method>
  13110. <method name="toString" return="java.lang.String"
  13111. abstract="false" native="false" synchronized="false"
  13112. static="false" final="false" visibility="public"
  13113. deprecated="not deprecated">
  13114. </method>
  13115. <doc>
  13116. <![CDATA[The class encapsulating with the metadata of a file.
  13117. The metadata of a file is a list of attribute name/value
  13118. pairs of Text type.]]>
  13119. </doc>
  13120. </class>
  13121. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13122. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13123. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13124. abstract="false"
  13125. static="true" final="false" visibility="public"
  13126. deprecated="not deprecated">
  13127. <implements name="java.io.Closeable"/>
  13128. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13129. static="false" final="false" visibility="public"
  13130. deprecated="not deprecated">
  13131. <exception name="IOException" type="java.io.IOException"/>
  13132. <doc>
  13133. <![CDATA[Open the named file.]]>
  13134. </doc>
  13135. </constructor>
  13136. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13137. abstract="false" native="false" synchronized="false"
  13138. static="false" final="false" visibility="protected"
  13139. deprecated="not deprecated">
  13140. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13141. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13142. <param name="bufferSize" type="int"/>
  13143. <param name="length" type="long"/>
  13144. <exception name="IOException" type="java.io.IOException"/>
  13145. <doc>
  13146. <![CDATA[Override this method to specialize the type of
  13147. {@link FSDataInputStream} returned.]]>
  13148. </doc>
  13149. </method>
  13150. <method name="close"
  13151. abstract="false" native="false" synchronized="true"
  13152. static="false" final="false" visibility="public"
  13153. deprecated="not deprecated">
  13154. <exception name="IOException" type="java.io.IOException"/>
  13155. <doc>
  13156. <![CDATA[Close the file.]]>
  13157. </doc>
  13158. </method>
  13159. <method name="getKeyClassName" return="java.lang.String"
  13160. abstract="false" native="false" synchronized="false"
  13161. static="false" final="false" visibility="public"
  13162. deprecated="not deprecated">
  13163. <doc>
  13164. <![CDATA[Returns the name of the key class.]]>
  13165. </doc>
  13166. </method>
  13167. <method name="getKeyClass" return="java.lang.Class"
  13168. abstract="false" native="false" synchronized="true"
  13169. static="false" final="false" visibility="public"
  13170. deprecated="not deprecated">
  13171. <doc>
  13172. <![CDATA[Returns the class of keys in this file.]]>
  13173. </doc>
  13174. </method>
  13175. <method name="getValueClassName" return="java.lang.String"
  13176. abstract="false" native="false" synchronized="false"
  13177. static="false" final="false" visibility="public"
  13178. deprecated="not deprecated">
  13179. <doc>
  13180. <![CDATA[Returns the name of the value class.]]>
  13181. </doc>
  13182. </method>
  13183. <method name="getValueClass" return="java.lang.Class"
  13184. abstract="false" native="false" synchronized="true"
  13185. static="false" final="false" visibility="public"
  13186. deprecated="not deprecated">
  13187. <doc>
  13188. <![CDATA[Returns the class of values in this file.]]>
  13189. </doc>
  13190. </method>
  13191. <method name="isCompressed" return="boolean"
  13192. abstract="false" native="false" synchronized="false"
  13193. static="false" final="false" visibility="public"
  13194. deprecated="not deprecated">
  13195. <doc>
  13196. <![CDATA[Returns true if values are compressed.]]>
  13197. </doc>
  13198. </method>
  13199. <method name="isBlockCompressed" return="boolean"
  13200. abstract="false" native="false" synchronized="false"
  13201. static="false" final="false" visibility="public"
  13202. deprecated="not deprecated">
  13203. <doc>
  13204. <![CDATA[Returns true if records are block-compressed.]]>
  13205. </doc>
  13206. </method>
  13207. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13208. abstract="false" native="false" synchronized="false"
  13209. static="false" final="false" visibility="public"
  13210. deprecated="not deprecated">
  13211. <doc>
  13212. <![CDATA[Returns the compression codec of data in this file.]]>
  13213. </doc>
  13214. </method>
  13215. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13216. abstract="false" native="false" synchronized="false"
  13217. static="false" final="false" visibility="public"
  13218. deprecated="not deprecated">
  13219. <doc>
  13220. <![CDATA[Returns the metadata object of the file]]>
  13221. </doc>
  13222. </method>
  13223. <method name="getCurrentValue"
  13224. abstract="false" native="false" synchronized="true"
  13225. static="false" final="false" visibility="public"
  13226. deprecated="not deprecated">
  13227. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13228. <exception name="IOException" type="java.io.IOException"/>
  13229. <doc>
  13230. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13231. @param val : The 'value' to be read.
  13232. @throws IOException]]>
  13233. </doc>
  13234. </method>
  13235. <method name="getCurrentValue" return="java.lang.Object"
  13236. abstract="false" native="false" synchronized="true"
  13237. static="false" final="false" visibility="public"
  13238. deprecated="not deprecated">
  13239. <param name="val" type="java.lang.Object"/>
  13240. <exception name="IOException" type="java.io.IOException"/>
  13241. <doc>
  13242. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13243. @param val : The 'value' to be read.
  13244. @throws IOException]]>
  13245. </doc>
  13246. </method>
  13247. <method name="next" return="boolean"
  13248. abstract="false" native="false" synchronized="true"
  13249. static="false" final="false" visibility="public"
  13250. deprecated="not deprecated">
  13251. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13252. <exception name="IOException" type="java.io.IOException"/>
  13253. <doc>
  13254. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13255. value. True if another entry exists, and false at end of file.]]>
  13256. </doc>
  13257. </method>
  13258. <method name="next" return="boolean"
  13259. abstract="false" native="false" synchronized="true"
  13260. static="false" final="false" visibility="public"
  13261. deprecated="not deprecated">
  13262. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13263. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13264. <exception name="IOException" type="java.io.IOException"/>
  13265. <doc>
  13266. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13267. <code>val</code>. Returns true if such a pair exists and false when at
  13268. end of file]]>
  13269. </doc>
  13270. </method>
  13271. <method name="next" return="int"
  13272. abstract="false" native="false" synchronized="true"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13275. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13276. <exception name="IOException" type="java.io.IOException"/>
  13277. <doc>
  13278. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13279. </doc>
  13280. </method>
  13281. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13282. abstract="false" native="false" synchronized="false"
  13283. static="false" final="false" visibility="public"
  13284. deprecated="not deprecated">
  13285. </method>
  13286. <method name="nextRaw" return="int"
  13287. abstract="false" native="false" synchronized="true"
  13288. static="false" final="false" visibility="public"
  13289. deprecated="not deprecated">
  13290. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13291. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13292. <exception name="IOException" type="java.io.IOException"/>
  13293. <doc>
  13294. <![CDATA[Read 'raw' records.
  13295. @param key - The buffer into which the key is read
  13296. @param val - The 'raw' value
  13297. @return Returns the total record length or -1 for end of file
  13298. @throws IOException]]>
  13299. </doc>
  13300. </method>
  13301. <method name="nextRawKey" return="int"
  13302. abstract="false" native="false" synchronized="false"
  13303. static="false" final="false" visibility="public"
  13304. deprecated="not deprecated">
  13305. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13306. <exception name="IOException" type="java.io.IOException"/>
  13307. <doc>
  13308. <![CDATA[Read 'raw' keys.
  13309. @param key - The buffer into which the key is read
  13310. @return Returns the key length or -1 for end of file
  13311. @throws IOException]]>
  13312. </doc>
  13313. </method>
  13314. <method name="next" return="java.lang.Object"
  13315. abstract="false" native="false" synchronized="true"
  13316. static="false" final="false" visibility="public"
  13317. deprecated="not deprecated">
  13318. <param name="key" type="java.lang.Object"/>
  13319. <exception name="IOException" type="java.io.IOException"/>
  13320. <doc>
  13321. <![CDATA[Read the next key in the file, skipping its
  13322. value. Return null at end of file.]]>
  13323. </doc>
  13324. </method>
  13325. <method name="nextRawValue" return="int"
  13326. abstract="false" native="false" synchronized="true"
  13327. static="false" final="false" visibility="public"
  13328. deprecated="not deprecated">
  13329. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13330. <exception name="IOException" type="java.io.IOException"/>
  13331. <doc>
  13332. <![CDATA[Read 'raw' values.
  13333. @param val - The 'raw' value
  13334. @return Returns the value length
  13335. @throws IOException]]>
  13336. </doc>
  13337. </method>
  13338. <method name="seek"
  13339. abstract="false" native="false" synchronized="true"
  13340. static="false" final="false" visibility="public"
  13341. deprecated="not deprecated">
  13342. <param name="position" type="long"/>
  13343. <exception name="IOException" type="java.io.IOException"/>
  13344. <doc>
  13345. <![CDATA[Set the current byte position in the input file.
  13346. <p>The position passed must be a position returned by {@link
  13347. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13348. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13349. </doc>
  13350. </method>
  13351. <method name="sync"
  13352. abstract="false" native="false" synchronized="true"
  13353. static="false" final="false" visibility="public"
  13354. deprecated="not deprecated">
  13355. <param name="position" type="long"/>
  13356. <exception name="IOException" type="java.io.IOException"/>
  13357. <doc>
  13358. <![CDATA[Seek to the next sync mark past a given position.]]>
  13359. </doc>
  13360. </method>
  13361. <method name="syncSeen" return="boolean"
  13362. abstract="false" native="false" synchronized="false"
  13363. static="false" final="false" visibility="public"
  13364. deprecated="not deprecated">
  13365. <doc>
  13366. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13367. </doc>
  13368. </method>
  13369. <method name="getPosition" return="long"
  13370. abstract="false" native="false" synchronized="true"
  13371. static="false" final="false" visibility="public"
  13372. deprecated="not deprecated">
  13373. <exception name="IOException" type="java.io.IOException"/>
  13374. <doc>
  13375. <![CDATA[Return the current byte position in the input file.]]>
  13376. </doc>
  13377. </method>
  13378. <method name="toString" return="java.lang.String"
  13379. abstract="false" native="false" synchronized="false"
  13380. static="false" final="false" visibility="public"
  13381. deprecated="not deprecated">
  13382. <doc>
  13383. <![CDATA[Returns the name of the file.]]>
  13384. </doc>
  13385. </method>
  13386. <doc>
  13387. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13388. </doc>
  13389. </class>
  13390. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13391. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13392. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13393. abstract="false"
  13394. static="true" final="false" visibility="public"
  13395. deprecated="not deprecated">
  13396. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13397. static="false" final="false" visibility="public"
  13398. deprecated="not deprecated">
  13399. <doc>
  13400. <![CDATA[Sort and merge files containing the named classes.]]>
  13401. </doc>
  13402. </constructor>
  13403. <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"
  13404. static="false" final="false" visibility="public"
  13405. deprecated="not deprecated">
  13406. <doc>
  13407. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13408. </doc>
  13409. </constructor>
  13410. <method name="setFactor"
  13411. abstract="false" native="false" synchronized="false"
  13412. static="false" final="false" visibility="public"
  13413. deprecated="not deprecated">
  13414. <param name="factor" type="int"/>
  13415. <doc>
  13416. <![CDATA[Set the number of streams to merge at once.]]>
  13417. </doc>
  13418. </method>
  13419. <method name="getFactor" return="int"
  13420. abstract="false" native="false" synchronized="false"
  13421. static="false" final="false" visibility="public"
  13422. deprecated="not deprecated">
  13423. <doc>
  13424. <![CDATA[Get the number of streams to merge at once.]]>
  13425. </doc>
  13426. </method>
  13427. <method name="setMemory"
  13428. abstract="false" native="false" synchronized="false"
  13429. static="false" final="false" visibility="public"
  13430. deprecated="not deprecated">
  13431. <param name="memory" type="int"/>
  13432. <doc>
  13433. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13434. </doc>
  13435. </method>
  13436. <method name="getMemory" return="int"
  13437. abstract="false" native="false" synchronized="false"
  13438. static="false" final="false" visibility="public"
  13439. deprecated="not deprecated">
  13440. <doc>
  13441. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13442. </doc>
  13443. </method>
  13444. <method name="setProgressable"
  13445. abstract="false" native="false" synchronized="false"
  13446. static="false" final="false" visibility="public"
  13447. deprecated="not deprecated">
  13448. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13449. <doc>
  13450. <![CDATA[Set the progressable object in order to report progress.]]>
  13451. </doc>
  13452. </method>
  13453. <method name="sort"
  13454. abstract="false" native="false" synchronized="false"
  13455. static="false" final="false" visibility="public"
  13456. deprecated="not deprecated">
  13457. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13458. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13459. <param name="deleteInput" type="boolean"/>
  13460. <exception name="IOException" type="java.io.IOException"/>
  13461. <doc>
  13462. <![CDATA[Perform a file sort from a set of input files into an output file.
  13463. @param inFiles the files to be sorted
  13464. @param outFile the sorted output file
  13465. @param deleteInput should the input files be deleted as they are read?]]>
  13466. </doc>
  13467. </method>
  13468. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13469. abstract="false" native="false" synchronized="false"
  13470. static="false" final="false" visibility="public"
  13471. deprecated="not deprecated">
  13472. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13473. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13474. <param name="deleteInput" type="boolean"/>
  13475. <exception name="IOException" type="java.io.IOException"/>
  13476. <doc>
  13477. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13478. @param inFiles the files to be sorted
  13479. @param tempDir the directory where temp files are created during sort
  13480. @param deleteInput should the input files be deleted as they are read?
  13481. @return iterator the RawKeyValueIterator]]>
  13482. </doc>
  13483. </method>
  13484. <method name="sort"
  13485. abstract="false" native="false" synchronized="false"
  13486. static="false" final="false" visibility="public"
  13487. deprecated="not deprecated">
  13488. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13489. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13490. <exception name="IOException" type="java.io.IOException"/>
  13491. <doc>
  13492. <![CDATA[The backwards compatible interface to sort.
  13493. @param inFile the input file to sort
  13494. @param outFile the sorted output file]]>
  13495. </doc>
  13496. </method>
  13497. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13498. abstract="false" native="false" synchronized="false"
  13499. static="false" final="false" visibility="public"
  13500. deprecated="not deprecated">
  13501. <param name="segments" type="java.util.List"/>
  13502. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13503. <exception name="IOException" type="java.io.IOException"/>
  13504. <doc>
  13505. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13506. @param segments the list of SegmentDescriptors
  13507. @param tmpDir the directory to write temporary files into
  13508. @return RawKeyValueIterator
  13509. @throws IOException]]>
  13510. </doc>
  13511. </method>
  13512. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13513. abstract="false" native="false" synchronized="false"
  13514. static="false" final="false" visibility="public"
  13515. deprecated="not deprecated">
  13516. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13517. <param name="deleteInputs" type="boolean"/>
  13518. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13519. <exception name="IOException" type="java.io.IOException"/>
  13520. <doc>
  13521. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13522. that is already set
  13523. @param inNames the array of path names
  13524. @param deleteInputs true if the input files should be deleted when
  13525. unnecessary
  13526. @param tmpDir the directory to write temporary files into
  13527. @return RawKeyValueIteratorMergeQueue
  13528. @throws IOException]]>
  13529. </doc>
  13530. </method>
  13531. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13532. abstract="false" native="false" synchronized="false"
  13533. static="false" final="false" visibility="public"
  13534. deprecated="not deprecated">
  13535. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13536. <param name="deleteInputs" type="boolean"/>
  13537. <param name="factor" type="int"/>
  13538. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13539. <exception name="IOException" type="java.io.IOException"/>
  13540. <doc>
  13541. <![CDATA[Merges the contents of files passed in Path[]
  13542. @param inNames the array of path names
  13543. @param deleteInputs true if the input files should be deleted when
  13544. unnecessary
  13545. @param factor the factor that will be used as the maximum merge fan-in
  13546. @param tmpDir the directory to write temporary files into
  13547. @return RawKeyValueIteratorMergeQueue
  13548. @throws IOException]]>
  13549. </doc>
  13550. </method>
  13551. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13552. abstract="false" native="false" synchronized="false"
  13553. static="false" final="false" visibility="public"
  13554. deprecated="not deprecated">
  13555. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13556. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13557. <param name="deleteInputs" type="boolean"/>
  13558. <exception name="IOException" type="java.io.IOException"/>
  13559. <doc>
  13560. <![CDATA[Merges the contents of files passed in Path[]
  13561. @param inNames the array of path names
  13562. @param tempDir the directory for creating temp files during merge
  13563. @param deleteInputs true if the input files should be deleted when
  13564. unnecessary
  13565. @return RawKeyValueIteratorMergeQueue
  13566. @throws IOException]]>
  13567. </doc>
  13568. </method>
  13569. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13570. abstract="false" native="false" synchronized="false"
  13571. static="false" final="false" visibility="public"
  13572. deprecated="not deprecated">
  13573. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13574. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13575. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13576. <exception name="IOException" type="java.io.IOException"/>
  13577. <doc>
  13578. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13579. corresponding Writer
  13580. @param inputFile the path of the input file whose attributes should be
  13581. cloned
  13582. @param outputFile the path of the output file
  13583. @param prog the Progressable to report status during the file write
  13584. @return Writer
  13585. @throws IOException]]>
  13586. </doc>
  13587. </method>
  13588. <method name="writeFile"
  13589. abstract="false" native="false" synchronized="false"
  13590. static="false" final="false" visibility="public"
  13591. deprecated="not deprecated">
  13592. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13593. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  13594. <exception name="IOException" type="java.io.IOException"/>
  13595. <doc>
  13596. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  13597. passed writer
  13598. @param records the RawKeyValueIterator
  13599. @param writer the Writer created earlier
  13600. @throws IOException]]>
  13601. </doc>
  13602. </method>
  13603. <method name="merge"
  13604. abstract="false" native="false" synchronized="false"
  13605. static="false" final="false" visibility="public"
  13606. deprecated="not deprecated">
  13607. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13608. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13609. <exception name="IOException" type="java.io.IOException"/>
  13610. <doc>
  13611. <![CDATA[Merge the provided files.
  13612. @param inFiles the array of input path names
  13613. @param outFile the final output file
  13614. @throws IOException]]>
  13615. </doc>
  13616. </method>
  13617. <doc>
  13618. <![CDATA[Sorts key/value pairs in a sequence-format file.
  13619. <p>For best performance, applications should make sure that the {@link
  13620. Writable#readFields(DataInput)} implementation of their keys is
  13621. very efficient. In particular, it should avoid allocating memory.]]>
  13622. </doc>
  13623. </class>
  13624. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  13625. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13626. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  13627. static="true" final="false" visibility="public"
  13628. deprecated="not deprecated">
  13629. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13630. abstract="false" native="false" synchronized="false"
  13631. static="false" final="false" visibility="public"
  13632. deprecated="not deprecated">
  13633. <exception name="IOException" type="java.io.IOException"/>
  13634. <doc>
  13635. <![CDATA[Gets the current raw key
  13636. @return DataOutputBuffer
  13637. @throws IOException]]>
  13638. </doc>
  13639. </method>
  13640. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13641. abstract="false" native="false" synchronized="false"
  13642. static="false" final="false" visibility="public"
  13643. deprecated="not deprecated">
  13644. <exception name="IOException" type="java.io.IOException"/>
  13645. <doc>
  13646. <![CDATA[Gets the current raw value
  13647. @return ValueBytes
  13648. @throws IOException]]>
  13649. </doc>
  13650. </method>
  13651. <method name="next" return="boolean"
  13652. abstract="false" native="false" synchronized="false"
  13653. static="false" final="false" visibility="public"
  13654. deprecated="not deprecated">
  13655. <exception name="IOException" type="java.io.IOException"/>
  13656. <doc>
  13657. <![CDATA[Sets up the current key and value (for getKey and getValue)
  13658. @return true if there exists a key/value, false otherwise
  13659. @throws IOException]]>
  13660. </doc>
  13661. </method>
  13662. <method name="close"
  13663. abstract="false" native="false" synchronized="false"
  13664. static="false" final="false" visibility="public"
  13665. deprecated="not deprecated">
  13666. <exception name="IOException" type="java.io.IOException"/>
  13667. <doc>
  13668. <![CDATA[closes the iterator so that the underlying streams can be closed
  13669. @throws IOException]]>
  13670. </doc>
  13671. </method>
  13672. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  13673. abstract="false" native="false" synchronized="false"
  13674. static="false" final="false" visibility="public"
  13675. deprecated="not deprecated">
  13676. <doc>
  13677. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  13678. indicating the bytes processed by the iterator so far]]>
  13679. </doc>
  13680. </method>
  13681. <doc>
  13682. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  13683. </doc>
  13684. </interface>
  13685. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13686. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13687. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  13688. abstract="false"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. <implements name="java.lang.Comparable"/>
  13692. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  13693. static="false" final="false" visibility="public"
  13694. deprecated="not deprecated">
  13695. <doc>
  13696. <![CDATA[Constructs a segment
  13697. @param segmentOffset the offset of the segment in the file
  13698. @param segmentLength the length of the segment
  13699. @param segmentPathName the path name of the file containing the segment]]>
  13700. </doc>
  13701. </constructor>
  13702. <method name="doSync"
  13703. abstract="false" native="false" synchronized="false"
  13704. static="false" final="false" visibility="public"
  13705. deprecated="not deprecated">
  13706. <doc>
  13707. <![CDATA[Do the sync checks]]>
  13708. </doc>
  13709. </method>
  13710. <method name="preserveInput"
  13711. abstract="false" native="false" synchronized="false"
  13712. static="false" final="false" visibility="public"
  13713. deprecated="not deprecated">
  13714. <param name="preserve" type="boolean"/>
  13715. <doc>
  13716. <![CDATA[Whether to delete the files when no longer needed]]>
  13717. </doc>
  13718. </method>
  13719. <method name="shouldPreserveInput" return="boolean"
  13720. abstract="false" native="false" synchronized="false"
  13721. static="false" final="false" visibility="public"
  13722. deprecated="not deprecated">
  13723. </method>
  13724. <method name="compareTo" return="int"
  13725. abstract="false" native="false" synchronized="false"
  13726. static="false" final="false" visibility="public"
  13727. deprecated="not deprecated">
  13728. <param name="o" type="java.lang.Object"/>
  13729. </method>
  13730. <method name="equals" return="boolean"
  13731. abstract="false" native="false" synchronized="false"
  13732. static="false" final="false" visibility="public"
  13733. deprecated="not deprecated">
  13734. <param name="o" type="java.lang.Object"/>
  13735. </method>
  13736. <method name="hashCode" return="int"
  13737. abstract="false" native="false" synchronized="false"
  13738. static="false" final="false" visibility="public"
  13739. deprecated="not deprecated">
  13740. </method>
  13741. <method name="nextRawKey" return="boolean"
  13742. abstract="false" native="false" synchronized="false"
  13743. static="false" final="false" visibility="public"
  13744. deprecated="not deprecated">
  13745. <exception name="IOException" type="java.io.IOException"/>
  13746. <doc>
  13747. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  13748. @return true if there is a key returned; false, otherwise
  13749. @throws IOException]]>
  13750. </doc>
  13751. </method>
  13752. <method name="nextRawValue" return="int"
  13753. abstract="false" native="false" synchronized="false"
  13754. static="false" final="false" visibility="public"
  13755. deprecated="not deprecated">
  13756. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13757. <exception name="IOException" type="java.io.IOException"/>
  13758. <doc>
  13759. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  13760. read earlier
  13761. @param rawValue
  13762. @return the length of the value
  13763. @throws IOException]]>
  13764. </doc>
  13765. </method>
  13766. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13767. abstract="false" native="false" synchronized="false"
  13768. static="false" final="false" visibility="public"
  13769. deprecated="not deprecated">
  13770. <doc>
  13771. <![CDATA[Returns the stored rawKey]]>
  13772. </doc>
  13773. </method>
  13774. <method name="cleanup"
  13775. abstract="false" native="false" synchronized="false"
  13776. static="false" final="false" visibility="public"
  13777. deprecated="not deprecated">
  13778. <exception name="IOException" type="java.io.IOException"/>
  13779. <doc>
  13780. <![CDATA[The default cleanup. Subclasses can override this with a custom
  13781. cleanup]]>
  13782. </doc>
  13783. </method>
  13784. <doc>
  13785. <![CDATA[This class defines a merge segment. This class can be subclassed to
  13786. provide a customized cleanup method implementation. In this
  13787. implementation, cleanup closes the file handle and deletes the file]]>
  13788. </doc>
  13789. </class>
  13790. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13791. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13792. <interface name="SequenceFile.ValueBytes" abstract="true"
  13793. static="true" final="false" visibility="public"
  13794. deprecated="not deprecated">
  13795. <method name="writeUncompressedBytes"
  13796. abstract="false" native="false" synchronized="false"
  13797. static="false" final="false" visibility="public"
  13798. deprecated="not deprecated">
  13799. <param name="outStream" type="java.io.DataOutputStream"/>
  13800. <exception name="IOException" type="java.io.IOException"/>
  13801. <doc>
  13802. <![CDATA[Writes the uncompressed bytes to the outStream.
  13803. @param outStream : Stream to write uncompressed bytes into.
  13804. @throws IOException]]>
  13805. </doc>
  13806. </method>
  13807. <method name="writeCompressedBytes"
  13808. abstract="false" native="false" synchronized="false"
  13809. static="false" final="false" visibility="public"
  13810. deprecated="not deprecated">
  13811. <param name="outStream" type="java.io.DataOutputStream"/>
  13812. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13813. <exception name="IOException" type="java.io.IOException"/>
  13814. <doc>
  13815. <![CDATA[Write compressed bytes to outStream.
  13816. Note: that it will NOT compress the bytes if they are not compressed.
  13817. @param outStream : Stream to write compressed bytes into.]]>
  13818. </doc>
  13819. </method>
  13820. <method name="getSize" return="int"
  13821. abstract="false" native="false" synchronized="false"
  13822. static="false" final="false" visibility="public"
  13823. deprecated="not deprecated">
  13824. <doc>
  13825. <![CDATA[Size of stored data.]]>
  13826. </doc>
  13827. </method>
  13828. <doc>
  13829. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  13830. </doc>
  13831. </interface>
  13832. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13833. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  13834. <class name="SequenceFile.Writer" extends="java.lang.Object"
  13835. abstract="false"
  13836. static="true" final="false" visibility="public"
  13837. deprecated="not deprecated">
  13838. <implements name="java.io.Closeable"/>
  13839. <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"
  13840. static="false" final="false" visibility="public"
  13841. deprecated="not deprecated">
  13842. <exception name="IOException" type="java.io.IOException"/>
  13843. <doc>
  13844. <![CDATA[Create the named file.]]>
  13845. </doc>
  13846. </constructor>
  13847. <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"
  13848. static="false" final="false" visibility="public"
  13849. deprecated="not deprecated">
  13850. <exception name="IOException" type="java.io.IOException"/>
  13851. <doc>
  13852. <![CDATA[Create the named file with write-progress reporter.]]>
  13853. </doc>
  13854. </constructor>
  13855. <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"
  13856. static="false" final="false" visibility="public"
  13857. deprecated="not deprecated">
  13858. <exception name="IOException" type="java.io.IOException"/>
  13859. <doc>
  13860. <![CDATA[Create the named file with write-progress reporter.]]>
  13861. </doc>
  13862. </constructor>
  13863. <method name="getKeyClass" return="java.lang.Class"
  13864. abstract="false" native="false" synchronized="false"
  13865. static="false" final="false" visibility="public"
  13866. deprecated="not deprecated">
  13867. <doc>
  13868. <![CDATA[Returns the class of keys in this file.]]>
  13869. </doc>
  13870. </method>
  13871. <method name="getValueClass" return="java.lang.Class"
  13872. abstract="false" native="false" synchronized="false"
  13873. static="false" final="false" visibility="public"
  13874. deprecated="not deprecated">
  13875. <doc>
  13876. <![CDATA[Returns the class of values in this file.]]>
  13877. </doc>
  13878. </method>
  13879. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13880. abstract="false" native="false" synchronized="false"
  13881. static="false" final="false" visibility="public"
  13882. deprecated="not deprecated">
  13883. <doc>
  13884. <![CDATA[Returns the compression codec of data in this file.]]>
  13885. </doc>
  13886. </method>
  13887. <method name="sync"
  13888. abstract="false" native="false" synchronized="false"
  13889. static="false" final="false" visibility="public"
  13890. deprecated="not deprecated">
  13891. <exception name="IOException" type="java.io.IOException"/>
  13892. <doc>
  13893. <![CDATA[create a sync point]]>
  13894. </doc>
  13895. </method>
  13896. <method name="syncFs"
  13897. abstract="false" native="false" synchronized="false"
  13898. static="false" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. <exception name="IOException" type="java.io.IOException"/>
  13901. <doc>
  13902. <![CDATA[flush all currently written data to the file system]]>
  13903. </doc>
  13904. </method>
  13905. <method name="close"
  13906. abstract="false" native="false" synchronized="true"
  13907. static="false" final="false" visibility="public"
  13908. deprecated="not deprecated">
  13909. <exception name="IOException" type="java.io.IOException"/>
  13910. <doc>
  13911. <![CDATA[Close the file.]]>
  13912. </doc>
  13913. </method>
  13914. <method name="append"
  13915. abstract="false" native="false" synchronized="true"
  13916. static="false" final="false" visibility="public"
  13917. deprecated="not deprecated">
  13918. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13919. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13920. <exception name="IOException" type="java.io.IOException"/>
  13921. <doc>
  13922. <![CDATA[Append a key/value pair.]]>
  13923. </doc>
  13924. </method>
  13925. <method name="append"
  13926. abstract="false" native="false" synchronized="true"
  13927. static="false" final="false" visibility="public"
  13928. deprecated="not deprecated">
  13929. <param name="key" type="java.lang.Object"/>
  13930. <param name="val" type="java.lang.Object"/>
  13931. <exception name="IOException" type="java.io.IOException"/>
  13932. <doc>
  13933. <![CDATA[Append a key/value pair.]]>
  13934. </doc>
  13935. </method>
  13936. <method name="appendRaw"
  13937. abstract="false" native="false" synchronized="true"
  13938. static="false" final="false" visibility="public"
  13939. deprecated="not deprecated">
  13940. <param name="keyData" type="byte[]"/>
  13941. <param name="keyOffset" type="int"/>
  13942. <param name="keyLength" type="int"/>
  13943. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13944. <exception name="IOException" type="java.io.IOException"/>
  13945. </method>
  13946. <method name="getLength" return="long"
  13947. abstract="false" native="false" synchronized="true"
  13948. static="false" final="false" visibility="public"
  13949. deprecated="not deprecated">
  13950. <exception name="IOException" type="java.io.IOException"/>
  13951. <doc>
  13952. <![CDATA[Returns the current length of the output file.
  13953. <p>This always returns a synchronized position. In other words,
  13954. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  13955. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  13956. the key may be earlier in the file than key last written when this
  13957. method was called (e.g., with block-compression, it may be the first key
  13958. in the block that was being written when this method was called).]]>
  13959. </doc>
  13960. </method>
  13961. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13962. transient="false" volatile="false"
  13963. static="false" final="false" visibility="protected"
  13964. deprecated="not deprecated">
  13965. </field>
  13966. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13967. transient="false" volatile="false"
  13968. static="false" final="false" visibility="protected"
  13969. deprecated="not deprecated">
  13970. </field>
  13971. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13972. transient="false" volatile="false"
  13973. static="false" final="false" visibility="protected"
  13974. deprecated="not deprecated">
  13975. </field>
  13976. <doc>
  13977. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  13978. </doc>
  13979. </class>
  13980. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  13981. <!-- start class org.apache.hadoop.io.SetFile -->
  13982. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  13983. abstract="false"
  13984. static="false" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. <constructor name="SetFile"
  13987. static="false" final="false" visibility="protected"
  13988. deprecated="not deprecated">
  13989. </constructor>
  13990. <doc>
  13991. <![CDATA[A file-based set of keys.]]>
  13992. </doc>
  13993. </class>
  13994. <!-- end class org.apache.hadoop.io.SetFile -->
  13995. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  13996. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  13997. abstract="false"
  13998. static="true" final="false" visibility="public"
  13999. deprecated="not deprecated">
  14000. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14001. static="false" final="false" visibility="public"
  14002. deprecated="not deprecated">
  14003. <exception name="IOException" type="java.io.IOException"/>
  14004. <doc>
  14005. <![CDATA[Construct a set reader for the named set.]]>
  14006. </doc>
  14007. </constructor>
  14008. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14009. static="false" final="false" visibility="public"
  14010. deprecated="not deprecated">
  14011. <exception name="IOException" type="java.io.IOException"/>
  14012. <doc>
  14013. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14014. </doc>
  14015. </constructor>
  14016. <method name="seek" return="boolean"
  14017. abstract="false" native="false" synchronized="false"
  14018. static="false" final="false" visibility="public"
  14019. deprecated="not deprecated">
  14020. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14021. <exception name="IOException" type="java.io.IOException"/>
  14022. </method>
  14023. <method name="next" return="boolean"
  14024. abstract="false" native="false" synchronized="false"
  14025. static="false" final="false" visibility="public"
  14026. deprecated="not deprecated">
  14027. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14028. <exception name="IOException" type="java.io.IOException"/>
  14029. <doc>
  14030. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14031. true if such a key exists and false when at the end of the set.]]>
  14032. </doc>
  14033. </method>
  14034. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14035. abstract="false" native="false" synchronized="false"
  14036. static="false" final="false" visibility="public"
  14037. deprecated="not deprecated">
  14038. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14039. <exception name="IOException" type="java.io.IOException"/>
  14040. <doc>
  14041. <![CDATA[Read the matching key from a set into <code>key</code>.
  14042. Returns <code>key</code>, or null if no match exists.]]>
  14043. </doc>
  14044. </method>
  14045. <doc>
  14046. <![CDATA[Provide access to an existing set file.]]>
  14047. </doc>
  14048. </class>
  14049. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14050. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14051. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14052. abstract="false"
  14053. static="true" final="false" visibility="public"
  14054. deprecated="not deprecated">
  14055. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14056. static="false" final="false" visibility="public"
  14057. deprecated="pass a Configuration too">
  14058. <exception name="IOException" type="java.io.IOException"/>
  14059. <doc>
  14060. <![CDATA[Create the named set for keys of the named class.
  14061. @deprecated pass a Configuration too]]>
  14062. </doc>
  14063. </constructor>
  14064. <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"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. <exception name="IOException" type="java.io.IOException"/>
  14068. <doc>
  14069. <![CDATA[Create a set naming the element class and compression type.]]>
  14070. </doc>
  14071. </constructor>
  14072. <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"
  14073. static="false" final="false" visibility="public"
  14074. deprecated="not deprecated">
  14075. <exception name="IOException" type="java.io.IOException"/>
  14076. <doc>
  14077. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14078. </doc>
  14079. </constructor>
  14080. <method name="append"
  14081. abstract="false" native="false" synchronized="false"
  14082. static="false" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14085. <exception name="IOException" type="java.io.IOException"/>
  14086. <doc>
  14087. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14088. previous key added to the set.]]>
  14089. </doc>
  14090. </method>
  14091. <doc>
  14092. <![CDATA[Write a new set file.]]>
  14093. </doc>
  14094. </class>
  14095. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14096. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14097. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14098. abstract="false"
  14099. static="false" final="false" visibility="public"
  14100. deprecated="not deprecated">
  14101. <implements name="java.util.SortedMap"/>
  14102. <constructor name="SortedMapWritable"
  14103. static="false" final="false" visibility="public"
  14104. deprecated="not deprecated">
  14105. <doc>
  14106. <![CDATA[default constructor.]]>
  14107. </doc>
  14108. </constructor>
  14109. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14110. static="false" final="false" visibility="public"
  14111. deprecated="not deprecated">
  14112. <doc>
  14113. <![CDATA[Copy constructor.
  14114. @param other the map to copy from]]>
  14115. </doc>
  14116. </constructor>
  14117. <method name="comparator" return="java.util.Comparator"
  14118. abstract="false" native="false" synchronized="false"
  14119. static="false" final="false" visibility="public"
  14120. deprecated="not deprecated">
  14121. <doc>
  14122. <![CDATA[{@inheritDoc}]]>
  14123. </doc>
  14124. </method>
  14125. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14126. abstract="false" native="false" synchronized="false"
  14127. static="false" final="false" visibility="public"
  14128. deprecated="not deprecated">
  14129. <doc>
  14130. <![CDATA[{@inheritDoc}]]>
  14131. </doc>
  14132. </method>
  14133. <method name="headMap" return="java.util.SortedMap"
  14134. abstract="false" native="false" synchronized="false"
  14135. static="false" final="false" visibility="public"
  14136. deprecated="not deprecated">
  14137. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14138. <doc>
  14139. <![CDATA[{@inheritDoc}]]>
  14140. </doc>
  14141. </method>
  14142. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14143. abstract="false" native="false" synchronized="false"
  14144. static="false" final="false" visibility="public"
  14145. deprecated="not deprecated">
  14146. <doc>
  14147. <![CDATA[{@inheritDoc}]]>
  14148. </doc>
  14149. </method>
  14150. <method name="subMap" return="java.util.SortedMap"
  14151. abstract="false" native="false" synchronized="false"
  14152. static="false" final="false" visibility="public"
  14153. deprecated="not deprecated">
  14154. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14155. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14156. <doc>
  14157. <![CDATA[{@inheritDoc}]]>
  14158. </doc>
  14159. </method>
  14160. <method name="tailMap" return="java.util.SortedMap"
  14161. abstract="false" native="false" synchronized="false"
  14162. static="false" final="false" visibility="public"
  14163. deprecated="not deprecated">
  14164. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14165. <doc>
  14166. <![CDATA[{@inheritDoc}]]>
  14167. </doc>
  14168. </method>
  14169. <method name="clear"
  14170. abstract="false" native="false" synchronized="false"
  14171. static="false" final="false" visibility="public"
  14172. deprecated="not deprecated">
  14173. <doc>
  14174. <![CDATA[{@inheritDoc}]]>
  14175. </doc>
  14176. </method>
  14177. <method name="containsKey" return="boolean"
  14178. abstract="false" native="false" synchronized="false"
  14179. static="false" final="false" visibility="public"
  14180. deprecated="not deprecated">
  14181. <param name="key" type="java.lang.Object"/>
  14182. <doc>
  14183. <![CDATA[{@inheritDoc}]]>
  14184. </doc>
  14185. </method>
  14186. <method name="containsValue" return="boolean"
  14187. abstract="false" native="false" synchronized="false"
  14188. static="false" final="false" visibility="public"
  14189. deprecated="not deprecated">
  14190. <param name="value" type="java.lang.Object"/>
  14191. <doc>
  14192. <![CDATA[{@inheritDoc}]]>
  14193. </doc>
  14194. </method>
  14195. <method name="entrySet" return="java.util.Set"
  14196. abstract="false" native="false" synchronized="false"
  14197. static="false" final="false" visibility="public"
  14198. deprecated="not deprecated">
  14199. <doc>
  14200. <![CDATA[{@inheritDoc}]]>
  14201. </doc>
  14202. </method>
  14203. <method name="get" return="org.apache.hadoop.io.Writable"
  14204. abstract="false" native="false" synchronized="false"
  14205. static="false" final="false" visibility="public"
  14206. deprecated="not deprecated">
  14207. <param name="key" type="java.lang.Object"/>
  14208. <doc>
  14209. <![CDATA[{@inheritDoc}]]>
  14210. </doc>
  14211. </method>
  14212. <method name="isEmpty" return="boolean"
  14213. abstract="false" native="false" synchronized="false"
  14214. static="false" final="false" visibility="public"
  14215. deprecated="not deprecated">
  14216. <doc>
  14217. <![CDATA[{@inheritDoc}]]>
  14218. </doc>
  14219. </method>
  14220. <method name="keySet" return="java.util.Set"
  14221. abstract="false" native="false" synchronized="false"
  14222. static="false" final="false" visibility="public"
  14223. deprecated="not deprecated">
  14224. <doc>
  14225. <![CDATA[{@inheritDoc}]]>
  14226. </doc>
  14227. </method>
  14228. <method name="put" return="org.apache.hadoop.io.Writable"
  14229. abstract="false" native="false" synchronized="false"
  14230. static="false" final="false" visibility="public"
  14231. deprecated="not deprecated">
  14232. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14233. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14234. <doc>
  14235. <![CDATA[{@inheritDoc}]]>
  14236. </doc>
  14237. </method>
  14238. <method name="putAll"
  14239. abstract="false" native="false" synchronized="false"
  14240. static="false" final="false" visibility="public"
  14241. deprecated="not deprecated">
  14242. <param name="t" type="java.util.Map"/>
  14243. <doc>
  14244. <![CDATA[{@inheritDoc}]]>
  14245. </doc>
  14246. </method>
  14247. <method name="remove" return="org.apache.hadoop.io.Writable"
  14248. abstract="false" native="false" synchronized="false"
  14249. static="false" final="false" visibility="public"
  14250. deprecated="not deprecated">
  14251. <param name="key" type="java.lang.Object"/>
  14252. <doc>
  14253. <![CDATA[{@inheritDoc}]]>
  14254. </doc>
  14255. </method>
  14256. <method name="size" return="int"
  14257. abstract="false" native="false" synchronized="false"
  14258. static="false" final="false" visibility="public"
  14259. deprecated="not deprecated">
  14260. <doc>
  14261. <![CDATA[{@inheritDoc}]]>
  14262. </doc>
  14263. </method>
  14264. <method name="values" return="java.util.Collection"
  14265. abstract="false" native="false" synchronized="false"
  14266. static="false" final="false" visibility="public"
  14267. deprecated="not deprecated">
  14268. <doc>
  14269. <![CDATA[{@inheritDoc}]]>
  14270. </doc>
  14271. </method>
  14272. <method name="readFields"
  14273. abstract="false" native="false" synchronized="false"
  14274. static="false" final="false" visibility="public"
  14275. deprecated="not deprecated">
  14276. <param name="in" type="java.io.DataInput"/>
  14277. <exception name="IOException" type="java.io.IOException"/>
  14278. <doc>
  14279. <![CDATA[{@inheritDoc}]]>
  14280. </doc>
  14281. </method>
  14282. <method name="write"
  14283. abstract="false" native="false" synchronized="false"
  14284. static="false" final="false" visibility="public"
  14285. deprecated="not deprecated">
  14286. <param name="out" type="java.io.DataOutput"/>
  14287. <exception name="IOException" type="java.io.IOException"/>
  14288. <doc>
  14289. <![CDATA[{@inheritDoc}]]>
  14290. </doc>
  14291. </method>
  14292. <doc>
  14293. <![CDATA[A Writable SortedMap.]]>
  14294. </doc>
  14295. </class>
  14296. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14297. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14298. <interface name="Stringifier" abstract="true"
  14299. static="false" final="false" visibility="public"
  14300. deprecated="not deprecated">
  14301. <implements name="java.io.Closeable"/>
  14302. <method name="toString" return="java.lang.String"
  14303. abstract="false" native="false" synchronized="false"
  14304. static="false" final="false" visibility="public"
  14305. deprecated="not deprecated">
  14306. <param name="obj" type="java.lang.Object"/>
  14307. <exception name="IOException" type="java.io.IOException"/>
  14308. <doc>
  14309. <![CDATA[Converts the object to a string representation
  14310. @param obj the object to convert
  14311. @return the string representation of the object
  14312. @throws IOException if the object cannot be converted]]>
  14313. </doc>
  14314. </method>
  14315. <method name="fromString" return="java.lang.Object"
  14316. abstract="false" native="false" synchronized="false"
  14317. static="false" final="false" visibility="public"
  14318. deprecated="not deprecated">
  14319. <param name="str" type="java.lang.String"/>
  14320. <exception name="IOException" type="java.io.IOException"/>
  14321. <doc>
  14322. <![CDATA[Restores the object from its string representation.
  14323. @param str the string representation of the object
  14324. @return restored object
  14325. @throws IOException if the object cannot be restored]]>
  14326. </doc>
  14327. </method>
  14328. <method name="close"
  14329. abstract="false" native="false" synchronized="false"
  14330. static="false" final="false" visibility="public"
  14331. deprecated="not deprecated">
  14332. <exception name="IOException" type="java.io.IOException"/>
  14333. <doc>
  14334. <![CDATA[Closes this object.
  14335. @throws IOException if an I/O error occurs]]>
  14336. </doc>
  14337. </method>
  14338. <doc>
  14339. <![CDATA[Stringifier interface offers two methods to convert an object
  14340. to a string representation and restore the object given its
  14341. string representation.
  14342. @param <T> the class of the objects to stringify]]>
  14343. </doc>
  14344. </interface>
  14345. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14346. <!-- start class org.apache.hadoop.io.Text -->
  14347. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14348. abstract="false"
  14349. static="false" final="false" visibility="public"
  14350. deprecated="not deprecated">
  14351. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14352. <constructor name="Text"
  14353. static="false" final="false" visibility="public"
  14354. deprecated="not deprecated">
  14355. </constructor>
  14356. <constructor name="Text" type="java.lang.String"
  14357. static="false" final="false" visibility="public"
  14358. deprecated="not deprecated">
  14359. <doc>
  14360. <![CDATA[Construct from a string.]]>
  14361. </doc>
  14362. </constructor>
  14363. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14364. static="false" final="false" visibility="public"
  14365. deprecated="not deprecated">
  14366. <doc>
  14367. <![CDATA[Construct from another text.]]>
  14368. </doc>
  14369. </constructor>
  14370. <constructor name="Text" type="byte[]"
  14371. static="false" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. <doc>
  14374. <![CDATA[Construct from a byte array.]]>
  14375. </doc>
  14376. </constructor>
  14377. <method name="getBytes" return="byte[]"
  14378. abstract="false" native="false" synchronized="false"
  14379. static="false" final="false" visibility="public"
  14380. deprecated="not deprecated">
  14381. <doc>
  14382. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14383. valid.]]>
  14384. </doc>
  14385. </method>
  14386. <method name="getLength" return="int"
  14387. abstract="false" native="false" synchronized="false"
  14388. static="false" final="false" visibility="public"
  14389. deprecated="not deprecated">
  14390. <doc>
  14391. <![CDATA[Returns the number of bytes in the byte array]]>
  14392. </doc>
  14393. </method>
  14394. <method name="charAt" return="int"
  14395. abstract="false" native="false" synchronized="false"
  14396. static="false" final="false" visibility="public"
  14397. deprecated="not deprecated">
  14398. <param name="position" type="int"/>
  14399. <doc>
  14400. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14401. for the character at <code>position</code>. Note that this
  14402. method avoids using the converter or doing String instatiation
  14403. @return the Unicode scalar value at position or -1
  14404. if the position is invalid or points to a
  14405. trailing byte]]>
  14406. </doc>
  14407. </method>
  14408. <method name="find" return="int"
  14409. abstract="false" native="false" synchronized="false"
  14410. static="false" final="false" visibility="public"
  14411. deprecated="not deprecated">
  14412. <param name="what" type="java.lang.String"/>
  14413. </method>
  14414. <method name="find" return="int"
  14415. abstract="false" native="false" synchronized="false"
  14416. static="false" final="false" visibility="public"
  14417. deprecated="not deprecated">
  14418. <param name="what" type="java.lang.String"/>
  14419. <param name="start" type="int"/>
  14420. <doc>
  14421. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14422. buffer, starting as position <code>start</code>. The starting
  14423. position is measured in bytes and the return value is in
  14424. terms of byte position in the buffer. The backing buffer is
  14425. not converted to a string for this operation.
  14426. @return byte position of the first occurence of the search
  14427. string in the UTF-8 buffer or -1 if not found]]>
  14428. </doc>
  14429. </method>
  14430. <method name="set"
  14431. abstract="false" native="false" synchronized="false"
  14432. static="false" final="false" visibility="public"
  14433. deprecated="not deprecated">
  14434. <param name="string" type="java.lang.String"/>
  14435. <doc>
  14436. <![CDATA[Set to contain the contents of a string.]]>
  14437. </doc>
  14438. </method>
  14439. <method name="set"
  14440. abstract="false" native="false" synchronized="false"
  14441. static="false" final="false" visibility="public"
  14442. deprecated="not deprecated">
  14443. <param name="utf8" type="byte[]"/>
  14444. <doc>
  14445. <![CDATA[Set to a utf8 byte array]]>
  14446. </doc>
  14447. </method>
  14448. <method name="set"
  14449. abstract="false" native="false" synchronized="false"
  14450. static="false" final="false" visibility="public"
  14451. deprecated="not deprecated">
  14452. <param name="other" type="org.apache.hadoop.io.Text"/>
  14453. <doc>
  14454. <![CDATA[copy a text.]]>
  14455. </doc>
  14456. </method>
  14457. <method name="set"
  14458. abstract="false" native="false" synchronized="false"
  14459. static="false" final="false" visibility="public"
  14460. deprecated="not deprecated">
  14461. <param name="utf8" type="byte[]"/>
  14462. <param name="start" type="int"/>
  14463. <param name="len" type="int"/>
  14464. <doc>
  14465. <![CDATA[Set the Text to range of bytes
  14466. @param utf8 the data to copy from
  14467. @param start the first position of the new string
  14468. @param len the number of bytes of the new string]]>
  14469. </doc>
  14470. </method>
  14471. <method name="append"
  14472. abstract="false" native="false" synchronized="false"
  14473. static="false" final="false" visibility="public"
  14474. deprecated="not deprecated">
  14475. <param name="utf8" type="byte[]"/>
  14476. <param name="start" type="int"/>
  14477. <param name="len" type="int"/>
  14478. <doc>
  14479. <![CDATA[Append a range of bytes to the end of the given text
  14480. @param utf8 the data to copy from
  14481. @param start the first position to append from utf8
  14482. @param len the number of bytes to append]]>
  14483. </doc>
  14484. </method>
  14485. <method name="clear"
  14486. abstract="false" native="false" synchronized="false"
  14487. static="false" final="false" visibility="public"
  14488. deprecated="not deprecated">
  14489. <doc>
  14490. <![CDATA[Clear the string to empty.]]>
  14491. </doc>
  14492. </method>
  14493. <method name="toString" return="java.lang.String"
  14494. abstract="false" native="false" synchronized="false"
  14495. static="false" final="false" visibility="public"
  14496. deprecated="not deprecated">
  14497. <doc>
  14498. <![CDATA[Convert text back to string
  14499. @see java.lang.Object#toString()]]>
  14500. </doc>
  14501. </method>
  14502. <method name="readFields"
  14503. abstract="false" native="false" synchronized="false"
  14504. static="false" final="false" visibility="public"
  14505. deprecated="not deprecated">
  14506. <param name="in" type="java.io.DataInput"/>
  14507. <exception name="IOException" type="java.io.IOException"/>
  14508. <doc>
  14509. <![CDATA[deserialize]]>
  14510. </doc>
  14511. </method>
  14512. <method name="skip"
  14513. abstract="false" native="false" synchronized="false"
  14514. static="true" final="false" visibility="public"
  14515. deprecated="not deprecated">
  14516. <param name="in" type="java.io.DataInput"/>
  14517. <exception name="IOException" type="java.io.IOException"/>
  14518. <doc>
  14519. <![CDATA[Skips over one Text in the input.]]>
  14520. </doc>
  14521. </method>
  14522. <method name="write"
  14523. abstract="false" native="false" synchronized="false"
  14524. static="false" final="false" visibility="public"
  14525. deprecated="not deprecated">
  14526. <param name="out" type="java.io.DataOutput"/>
  14527. <exception name="IOException" type="java.io.IOException"/>
  14528. <doc>
  14529. <![CDATA[serialize
  14530. write this object to out
  14531. length uses zero-compressed encoding
  14532. @see Writable#write(DataOutput)]]>
  14533. </doc>
  14534. </method>
  14535. <method name="equals" return="boolean"
  14536. abstract="false" native="false" synchronized="false"
  14537. static="false" final="false" visibility="public"
  14538. deprecated="not deprecated">
  14539. <param name="o" type="java.lang.Object"/>
  14540. <doc>
  14541. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14542. </doc>
  14543. </method>
  14544. <method name="hashCode" return="int"
  14545. abstract="false" native="false" synchronized="false"
  14546. static="false" final="false" visibility="public"
  14547. deprecated="not deprecated">
  14548. </method>
  14549. <method name="decode" return="java.lang.String"
  14550. abstract="false" native="false" synchronized="false"
  14551. static="true" final="false" visibility="public"
  14552. deprecated="not deprecated">
  14553. <param name="utf8" type="byte[]"/>
  14554. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14555. <doc>
  14556. <![CDATA[Converts the provided byte array to a String using the
  14557. UTF-8 encoding. If the input is malformed,
  14558. replace by a default value.]]>
  14559. </doc>
  14560. </method>
  14561. <method name="decode" return="java.lang.String"
  14562. abstract="false" native="false" synchronized="false"
  14563. static="true" final="false" visibility="public"
  14564. deprecated="not deprecated">
  14565. <param name="utf8" type="byte[]"/>
  14566. <param name="start" type="int"/>
  14567. <param name="length" type="int"/>
  14568. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14569. </method>
  14570. <method name="decode" return="java.lang.String"
  14571. abstract="false" native="false" synchronized="false"
  14572. static="true" final="false" visibility="public"
  14573. deprecated="not deprecated">
  14574. <param name="utf8" type="byte[]"/>
  14575. <param name="start" type="int"/>
  14576. <param name="length" type="int"/>
  14577. <param name="replace" type="boolean"/>
  14578. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14579. <doc>
  14580. <![CDATA[Converts the provided byte array to a String using the
  14581. UTF-8 encoding. If <code>replace</code> is true, then
  14582. malformed input is replaced with the
  14583. substitution character, which is U+FFFD. Otherwise the
  14584. method throws a MalformedInputException.]]>
  14585. </doc>
  14586. </method>
  14587. <method name="encode" return="java.nio.ByteBuffer"
  14588. abstract="false" native="false" synchronized="false"
  14589. static="true" final="false" visibility="public"
  14590. deprecated="not deprecated">
  14591. <param name="string" type="java.lang.String"/>
  14592. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14593. <doc>
  14594. <![CDATA[Converts the provided String to bytes using the
  14595. UTF-8 encoding. If the input is malformed,
  14596. invalid chars are replaced by a default value.
  14597. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14598. and length is ByteBuffer.limit()]]>
  14599. </doc>
  14600. </method>
  14601. <method name="encode" return="java.nio.ByteBuffer"
  14602. abstract="false" native="false" synchronized="false"
  14603. static="true" final="false" visibility="public"
  14604. deprecated="not deprecated">
  14605. <param name="string" type="java.lang.String"/>
  14606. <param name="replace" type="boolean"/>
  14607. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14608. <doc>
  14609. <![CDATA[Converts the provided String to bytes using the
  14610. UTF-8 encoding. If <code>replace</code> is true, then
  14611. malformed input is replaced with the
  14612. substitution character, which is U+FFFD. Otherwise the
  14613. method throws a MalformedInputException.
  14614. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14615. and length is ByteBuffer.limit()]]>
  14616. </doc>
  14617. </method>
  14618. <method name="readString" return="java.lang.String"
  14619. abstract="false" native="false" synchronized="false"
  14620. static="true" final="false" visibility="public"
  14621. deprecated="not deprecated">
  14622. <param name="in" type="java.io.DataInput"/>
  14623. <exception name="IOException" type="java.io.IOException"/>
  14624. <doc>
  14625. <![CDATA[Read a UTF8 encoded string from in]]>
  14626. </doc>
  14627. </method>
  14628. <method name="writeString" return="int"
  14629. abstract="false" native="false" synchronized="false"
  14630. static="true" final="false" visibility="public"
  14631. deprecated="not deprecated">
  14632. <param name="out" type="java.io.DataOutput"/>
  14633. <param name="s" type="java.lang.String"/>
  14634. <exception name="IOException" type="java.io.IOException"/>
  14635. <doc>
  14636. <![CDATA[Write a UTF8 encoded string to out]]>
  14637. </doc>
  14638. </method>
  14639. <method name="validateUTF8"
  14640. abstract="false" native="false" synchronized="false"
  14641. static="true" final="false" visibility="public"
  14642. deprecated="not deprecated">
  14643. <param name="utf8" type="byte[]"/>
  14644. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14645. <doc>
  14646. <![CDATA[Check if a byte array contains valid utf-8
  14647. @param utf8 byte array
  14648. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  14649. </doc>
  14650. </method>
  14651. <method name="validateUTF8"
  14652. abstract="false" native="false" synchronized="false"
  14653. static="true" final="false" visibility="public"
  14654. deprecated="not deprecated">
  14655. <param name="utf8" type="byte[]"/>
  14656. <param name="start" type="int"/>
  14657. <param name="len" type="int"/>
  14658. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14659. <doc>
  14660. <![CDATA[Check to see if a byte array is valid utf-8
  14661. @param utf8 the array of bytes
  14662. @param start the offset of the first byte in the array
  14663. @param len the length of the byte sequence
  14664. @throws MalformedInputException if the byte array contains invalid bytes]]>
  14665. </doc>
  14666. </method>
  14667. <method name="bytesToCodePoint" return="int"
  14668. abstract="false" native="false" synchronized="false"
  14669. static="true" final="false" visibility="public"
  14670. deprecated="not deprecated">
  14671. <param name="bytes" type="java.nio.ByteBuffer"/>
  14672. <doc>
  14673. <![CDATA[Returns the next code point at the current position in
  14674. the buffer. The buffer's position will be incremented.
  14675. Any mark set on this buffer will be changed by this method!]]>
  14676. </doc>
  14677. </method>
  14678. <method name="utf8Length" return="int"
  14679. abstract="false" native="false" synchronized="false"
  14680. static="true" final="false" visibility="public"
  14681. deprecated="not deprecated">
  14682. <param name="string" type="java.lang.String"/>
  14683. <doc>
  14684. <![CDATA[For the given string, returns the number of UTF-8 bytes
  14685. required to encode the string.
  14686. @param string text to encode
  14687. @return number of UTF-8 bytes required to encode]]>
  14688. </doc>
  14689. </method>
  14690. <doc>
  14691. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  14692. to serialize, deserialize, and compare texts at byte level. The type of
  14693. length is integer and is serialized using zero-compressed format. <p>In
  14694. addition, it provides methods for string traversal without converting the
  14695. byte array to a string. <p>Also includes utilities for
  14696. serializing/deserialing a string, coding/decoding a string, checking if a
  14697. byte array contains valid UTF8 code, calculating the length of an encoded
  14698. string.]]>
  14699. </doc>
  14700. </class>
  14701. <!-- end class org.apache.hadoop.io.Text -->
  14702. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  14703. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14704. abstract="false"
  14705. static="true" final="false" visibility="public"
  14706. deprecated="not deprecated">
  14707. <constructor name="Text.Comparator"
  14708. static="false" final="false" visibility="public"
  14709. deprecated="not deprecated">
  14710. </constructor>
  14711. <method name="compare" return="int"
  14712. abstract="false" native="false" synchronized="false"
  14713. static="false" final="false" visibility="public"
  14714. deprecated="not deprecated">
  14715. <param name="b1" type="byte[]"/>
  14716. <param name="s1" type="int"/>
  14717. <param name="l1" type="int"/>
  14718. <param name="b2" type="byte[]"/>
  14719. <param name="s2" type="int"/>
  14720. <param name="l2" type="int"/>
  14721. </method>
  14722. <doc>
  14723. <![CDATA[A WritableComparator optimized for Text keys.]]>
  14724. </doc>
  14725. </class>
  14726. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  14727. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  14728. <class name="TwoDArrayWritable" extends="java.lang.Object"
  14729. abstract="false"
  14730. static="false" final="false" visibility="public"
  14731. deprecated="not deprecated">
  14732. <implements name="org.apache.hadoop.io.Writable"/>
  14733. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  14734. static="false" final="false" visibility="public"
  14735. deprecated="not deprecated">
  14736. </constructor>
  14737. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  14738. static="false" final="false" visibility="public"
  14739. deprecated="not deprecated">
  14740. </constructor>
  14741. <method name="toArray" return="java.lang.Object"
  14742. abstract="false" native="false" synchronized="false"
  14743. static="false" final="false" visibility="public"
  14744. deprecated="not deprecated">
  14745. </method>
  14746. <method name="set"
  14747. abstract="false" native="false" synchronized="false"
  14748. static="false" final="false" visibility="public"
  14749. deprecated="not deprecated">
  14750. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  14751. </method>
  14752. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  14753. abstract="false" native="false" synchronized="false"
  14754. static="false" final="false" visibility="public"
  14755. deprecated="not deprecated">
  14756. </method>
  14757. <method name="readFields"
  14758. abstract="false" native="false" synchronized="false"
  14759. static="false" final="false" visibility="public"
  14760. deprecated="not deprecated">
  14761. <param name="in" type="java.io.DataInput"/>
  14762. <exception name="IOException" type="java.io.IOException"/>
  14763. </method>
  14764. <method name="write"
  14765. abstract="false" native="false" synchronized="false"
  14766. static="false" final="false" visibility="public"
  14767. deprecated="not deprecated">
  14768. <param name="out" type="java.io.DataOutput"/>
  14769. <exception name="IOException" type="java.io.IOException"/>
  14770. </method>
  14771. <doc>
  14772. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  14773. </doc>
  14774. </class>
  14775. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  14776. <!-- start class org.apache.hadoop.io.UTF8 -->
  14777. <class name="UTF8" extends="java.lang.Object"
  14778. abstract="false"
  14779. static="false" final="false" visibility="public"
  14780. deprecated="replaced by Text">
  14781. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14782. <constructor name="UTF8"
  14783. static="false" final="false" visibility="public"
  14784. deprecated="not deprecated">
  14785. </constructor>
  14786. <constructor name="UTF8" type="java.lang.String"
  14787. static="false" final="false" visibility="public"
  14788. deprecated="not deprecated">
  14789. <doc>
  14790. <![CDATA[Construct from a given string.]]>
  14791. </doc>
  14792. </constructor>
  14793. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  14794. static="false" final="false" visibility="public"
  14795. deprecated="not deprecated">
  14796. <doc>
  14797. <![CDATA[Construct from a given string.]]>
  14798. </doc>
  14799. </constructor>
  14800. <method name="getBytes" return="byte[]"
  14801. abstract="false" native="false" synchronized="false"
  14802. static="false" final="false" visibility="public"
  14803. deprecated="not deprecated">
  14804. <doc>
  14805. <![CDATA[The raw bytes.]]>
  14806. </doc>
  14807. </method>
  14808. <method name="getLength" return="int"
  14809. abstract="false" native="false" synchronized="false"
  14810. static="false" final="false" visibility="public"
  14811. deprecated="not deprecated">
  14812. <doc>
  14813. <![CDATA[The number of bytes in the encoded string.]]>
  14814. </doc>
  14815. </method>
  14816. <method name="set"
  14817. abstract="false" native="false" synchronized="false"
  14818. static="false" final="false" visibility="public"
  14819. deprecated="not deprecated">
  14820. <param name="string" type="java.lang.String"/>
  14821. <doc>
  14822. <![CDATA[Set to contain the contents of a string.]]>
  14823. </doc>
  14824. </method>
  14825. <method name="set"
  14826. abstract="false" native="false" synchronized="false"
  14827. static="false" final="false" visibility="public"
  14828. deprecated="not deprecated">
  14829. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  14830. <doc>
  14831. <![CDATA[Set to contain the contents of a string.]]>
  14832. </doc>
  14833. </method>
  14834. <method name="readFields"
  14835. abstract="false" native="false" synchronized="false"
  14836. static="false" final="false" visibility="public"
  14837. deprecated="not deprecated">
  14838. <param name="in" type="java.io.DataInput"/>
  14839. <exception name="IOException" type="java.io.IOException"/>
  14840. </method>
  14841. <method name="skip"
  14842. abstract="false" native="false" synchronized="false"
  14843. static="true" final="false" visibility="public"
  14844. deprecated="not deprecated">
  14845. <param name="in" type="java.io.DataInput"/>
  14846. <exception name="IOException" type="java.io.IOException"/>
  14847. <doc>
  14848. <![CDATA[Skips over one UTF8 in the input.]]>
  14849. </doc>
  14850. </method>
  14851. <method name="write"
  14852. abstract="false" native="false" synchronized="false"
  14853. static="false" final="false" visibility="public"
  14854. deprecated="not deprecated">
  14855. <param name="out" type="java.io.DataOutput"/>
  14856. <exception name="IOException" type="java.io.IOException"/>
  14857. </method>
  14858. <method name="compareTo" return="int"
  14859. abstract="false" native="false" synchronized="false"
  14860. static="false" final="false" visibility="public"
  14861. deprecated="not deprecated">
  14862. <param name="o" type="java.lang.Object"/>
  14863. <doc>
  14864. <![CDATA[Compare two UTF8s.]]>
  14865. </doc>
  14866. </method>
  14867. <method name="toString" return="java.lang.String"
  14868. abstract="false" native="false" synchronized="false"
  14869. static="false" final="false" visibility="public"
  14870. deprecated="not deprecated">
  14871. <doc>
  14872. <![CDATA[Convert to a String.]]>
  14873. </doc>
  14874. </method>
  14875. <method name="equals" return="boolean"
  14876. abstract="false" native="false" synchronized="false"
  14877. static="false" final="false" visibility="public"
  14878. deprecated="not deprecated">
  14879. <param name="o" type="java.lang.Object"/>
  14880. <doc>
  14881. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  14882. </doc>
  14883. </method>
  14884. <method name="hashCode" return="int"
  14885. abstract="false" native="false" synchronized="false"
  14886. static="false" final="false" visibility="public"
  14887. deprecated="not deprecated">
  14888. </method>
  14889. <method name="getBytes" return="byte[]"
  14890. abstract="false" native="false" synchronized="false"
  14891. static="true" final="false" visibility="public"
  14892. deprecated="not deprecated">
  14893. <param name="string" type="java.lang.String"/>
  14894. <doc>
  14895. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  14896. @see String#getBytes(String)]]>
  14897. </doc>
  14898. </method>
  14899. <method name="readString" return="java.lang.String"
  14900. abstract="false" native="false" synchronized="false"
  14901. static="true" final="false" visibility="public"
  14902. deprecated="not deprecated">
  14903. <param name="in" type="java.io.DataInput"/>
  14904. <exception name="IOException" type="java.io.IOException"/>
  14905. <doc>
  14906. <![CDATA[Read a UTF-8 encoded string.
  14907. @see DataInput#readUTF()]]>
  14908. </doc>
  14909. </method>
  14910. <method name="writeString" return="int"
  14911. abstract="false" native="false" synchronized="false"
  14912. static="true" final="false" visibility="public"
  14913. deprecated="not deprecated">
  14914. <param name="out" type="java.io.DataOutput"/>
  14915. <param name="s" type="java.lang.String"/>
  14916. <exception name="IOException" type="java.io.IOException"/>
  14917. <doc>
  14918. <![CDATA[Write a UTF-8 encoded string.
  14919. @see DataOutput#writeUTF(String)]]>
  14920. </doc>
  14921. </method>
  14922. <doc>
  14923. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  14924. <p>Also includes utilities for efficiently reading and writing UTF-8.
  14925. @deprecated replaced by Text]]>
  14926. </doc>
  14927. </class>
  14928. <!-- end class org.apache.hadoop.io.UTF8 -->
  14929. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  14930. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14931. abstract="false"
  14932. static="true" final="false" visibility="public"
  14933. deprecated="not deprecated">
  14934. <constructor name="UTF8.Comparator"
  14935. static="false" final="false" visibility="public"
  14936. deprecated="not deprecated">
  14937. </constructor>
  14938. <method name="compare" return="int"
  14939. abstract="false" native="false" synchronized="false"
  14940. static="false" final="false" visibility="public"
  14941. deprecated="not deprecated">
  14942. <param name="b1" type="byte[]"/>
  14943. <param name="s1" type="int"/>
  14944. <param name="l1" type="int"/>
  14945. <param name="b2" type="byte[]"/>
  14946. <param name="s2" type="int"/>
  14947. <param name="l2" type="int"/>
  14948. </method>
  14949. <doc>
  14950. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  14951. </doc>
  14952. </class>
  14953. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  14954. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  14955. <class name="VersionedWritable" extends="java.lang.Object"
  14956. abstract="true"
  14957. static="false" final="false" visibility="public"
  14958. deprecated="not deprecated">
  14959. <implements name="org.apache.hadoop.io.Writable"/>
  14960. <constructor name="VersionedWritable"
  14961. static="false" final="false" visibility="public"
  14962. deprecated="not deprecated">
  14963. </constructor>
  14964. <method name="getVersion" return="byte"
  14965. abstract="true" native="false" synchronized="false"
  14966. static="false" final="false" visibility="public"
  14967. deprecated="not deprecated">
  14968. <doc>
  14969. <![CDATA[Return the version number of the current implementation.]]>
  14970. </doc>
  14971. </method>
  14972. <method name="write"
  14973. abstract="false" native="false" synchronized="false"
  14974. static="false" final="false" visibility="public"
  14975. deprecated="not deprecated">
  14976. <param name="out" type="java.io.DataOutput"/>
  14977. <exception name="IOException" type="java.io.IOException"/>
  14978. </method>
  14979. <method name="readFields"
  14980. abstract="false" native="false" synchronized="false"
  14981. static="false" final="false" visibility="public"
  14982. deprecated="not deprecated">
  14983. <param name="in" type="java.io.DataInput"/>
  14984. <exception name="IOException" type="java.io.IOException"/>
  14985. </method>
  14986. <doc>
  14987. <![CDATA[A base class for Writables that provides version checking.
  14988. <p>This is useful when a class may evolve, so that instances written by the
  14989. old version of the class may still be processed by the new version. To
  14990. handle this situation, {@link #readFields(DataInput)}
  14991. implementations should catch {@link VersionMismatchException}.]]>
  14992. </doc>
  14993. </class>
  14994. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  14995. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  14996. <class name="VersionMismatchException" extends="java.io.IOException"
  14997. abstract="false"
  14998. static="false" final="false" visibility="public"
  14999. deprecated="not deprecated">
  15000. <constructor name="VersionMismatchException" type="byte, byte"
  15001. static="false" final="false" visibility="public"
  15002. deprecated="not deprecated">
  15003. </constructor>
  15004. <method name="toString" return="java.lang.String"
  15005. abstract="false" native="false" synchronized="false"
  15006. static="false" final="false" visibility="public"
  15007. deprecated="not deprecated">
  15008. <doc>
  15009. <![CDATA[Returns a string representation of this object.]]>
  15010. </doc>
  15011. </method>
  15012. <doc>
  15013. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15014. version of an object being read does not match the current implementation
  15015. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15016. </doc>
  15017. </class>
  15018. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15019. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15020. <class name="VIntWritable" extends="java.lang.Object"
  15021. abstract="false"
  15022. static="false" final="false" visibility="public"
  15023. deprecated="not deprecated">
  15024. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15025. <constructor name="VIntWritable"
  15026. static="false" final="false" visibility="public"
  15027. deprecated="not deprecated">
  15028. </constructor>
  15029. <constructor name="VIntWritable" type="int"
  15030. static="false" final="false" visibility="public"
  15031. deprecated="not deprecated">
  15032. </constructor>
  15033. <method name="set"
  15034. abstract="false" native="false" synchronized="false"
  15035. static="false" final="false" visibility="public"
  15036. deprecated="not deprecated">
  15037. <param name="value" type="int"/>
  15038. <doc>
  15039. <![CDATA[Set the value of this VIntWritable.]]>
  15040. </doc>
  15041. </method>
  15042. <method name="get" return="int"
  15043. abstract="false" native="false" synchronized="false"
  15044. static="false" final="false" visibility="public"
  15045. deprecated="not deprecated">
  15046. <doc>
  15047. <![CDATA[Return the value of this VIntWritable.]]>
  15048. </doc>
  15049. </method>
  15050. <method name="readFields"
  15051. abstract="false" native="false" synchronized="false"
  15052. static="false" 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. </method>
  15057. <method name="write"
  15058. abstract="false" native="false" synchronized="false"
  15059. static="false" final="false" visibility="public"
  15060. deprecated="not deprecated">
  15061. <param name="out" type="java.io.DataOutput"/>
  15062. <exception name="IOException" type="java.io.IOException"/>
  15063. </method>
  15064. <method name="equals" return="boolean"
  15065. abstract="false" native="false" synchronized="false"
  15066. static="false" final="false" visibility="public"
  15067. deprecated="not deprecated">
  15068. <param name="o" type="java.lang.Object"/>
  15069. <doc>
  15070. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15071. </doc>
  15072. </method>
  15073. <method name="hashCode" return="int"
  15074. abstract="false" native="false" synchronized="false"
  15075. static="false" final="false" visibility="public"
  15076. deprecated="not deprecated">
  15077. </method>
  15078. <method name="compareTo" return="int"
  15079. abstract="false" native="false" synchronized="false"
  15080. static="false" final="false" visibility="public"
  15081. deprecated="not deprecated">
  15082. <param name="o" type="java.lang.Object"/>
  15083. <doc>
  15084. <![CDATA[Compares two VIntWritables.]]>
  15085. </doc>
  15086. </method>
  15087. <method name="toString" return="java.lang.String"
  15088. abstract="false" native="false" synchronized="false"
  15089. static="false" final="false" visibility="public"
  15090. deprecated="not deprecated">
  15091. </method>
  15092. <doc>
  15093. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15094. Such values take between one and five bytes. Smaller values take fewer bytes.
  15095. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15096. </doc>
  15097. </class>
  15098. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15099. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15100. <class name="VLongWritable" extends="java.lang.Object"
  15101. abstract="false"
  15102. static="false" final="false" visibility="public"
  15103. deprecated="not deprecated">
  15104. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15105. <constructor name="VLongWritable"
  15106. static="false" final="false" visibility="public"
  15107. deprecated="not deprecated">
  15108. </constructor>
  15109. <constructor name="VLongWritable" type="long"
  15110. static="false" final="false" visibility="public"
  15111. deprecated="not deprecated">
  15112. </constructor>
  15113. <method name="set"
  15114. abstract="false" native="false" synchronized="false"
  15115. static="false" final="false" visibility="public"
  15116. deprecated="not deprecated">
  15117. <param name="value" type="long"/>
  15118. <doc>
  15119. <![CDATA[Set the value of this LongWritable.]]>
  15120. </doc>
  15121. </method>
  15122. <method name="get" return="long"
  15123. abstract="false" native="false" synchronized="false"
  15124. static="false" final="false" visibility="public"
  15125. deprecated="not deprecated">
  15126. <doc>
  15127. <![CDATA[Return the value of this LongWritable.]]>
  15128. </doc>
  15129. </method>
  15130. <method name="readFields"
  15131. abstract="false" native="false" synchronized="false"
  15132. static="false" final="false" visibility="public"
  15133. deprecated="not deprecated">
  15134. <param name="in" type="java.io.DataInput"/>
  15135. <exception name="IOException" type="java.io.IOException"/>
  15136. </method>
  15137. <method name="write"
  15138. abstract="false" native="false" synchronized="false"
  15139. static="false" final="false" visibility="public"
  15140. deprecated="not deprecated">
  15141. <param name="out" type="java.io.DataOutput"/>
  15142. <exception name="IOException" type="java.io.IOException"/>
  15143. </method>
  15144. <method name="equals" return="boolean"
  15145. abstract="false" native="false" synchronized="false"
  15146. static="false" final="false" visibility="public"
  15147. deprecated="not deprecated">
  15148. <param name="o" type="java.lang.Object"/>
  15149. <doc>
  15150. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15151. </doc>
  15152. </method>
  15153. <method name="hashCode" return="int"
  15154. abstract="false" native="false" synchronized="false"
  15155. static="false" final="false" visibility="public"
  15156. deprecated="not deprecated">
  15157. </method>
  15158. <method name="compareTo" return="int"
  15159. abstract="false" native="false" synchronized="false"
  15160. static="false" final="false" visibility="public"
  15161. deprecated="not deprecated">
  15162. <param name="o" type="java.lang.Object"/>
  15163. <doc>
  15164. <![CDATA[Compares two VLongWritables.]]>
  15165. </doc>
  15166. </method>
  15167. <method name="toString" return="java.lang.String"
  15168. abstract="false" native="false" synchronized="false"
  15169. static="false" final="false" visibility="public"
  15170. deprecated="not deprecated">
  15171. </method>
  15172. <doc>
  15173. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15174. between one and five bytes. Smaller values take fewer bytes.
  15175. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15176. </doc>
  15177. </class>
  15178. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15179. <!-- start interface org.apache.hadoop.io.Writable -->
  15180. <interface name="Writable" abstract="true"
  15181. static="false" final="false" visibility="public"
  15182. deprecated="not deprecated">
  15183. <method name="write"
  15184. abstract="false" native="false" synchronized="false"
  15185. static="false" final="false" visibility="public"
  15186. deprecated="not deprecated">
  15187. <param name="out" type="java.io.DataOutput"/>
  15188. <exception name="IOException" type="java.io.IOException"/>
  15189. <doc>
  15190. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15191. @param out <code>DataOuput</code> to serialize this object into.
  15192. @throws IOException]]>
  15193. </doc>
  15194. </method>
  15195. <method name="readFields"
  15196. abstract="false" native="false" synchronized="false"
  15197. static="false" final="false" visibility="public"
  15198. deprecated="not deprecated">
  15199. <param name="in" type="java.io.DataInput"/>
  15200. <exception name="IOException" type="java.io.IOException"/>
  15201. <doc>
  15202. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15203. <p>For efficiency, implementations should attempt to re-use storage in the
  15204. existing object where possible.</p>
  15205. @param in <code>DataInput</code> to deseriablize this object from.
  15206. @throws IOException]]>
  15207. </doc>
  15208. </method>
  15209. <doc>
  15210. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15211. protocol, based on {@link DataInput} and {@link DataOutput}.
  15212. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15213. framework implements this interface.</p>
  15214. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15215. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15216. and returns the instance.</p>
  15217. <p>Example:</p>
  15218. <p><blockquote><pre>
  15219. public class MyWritable implements Writable {
  15220. // Some data
  15221. private int counter;
  15222. private long timestamp;
  15223. public void write(DataOutput out) throws IOException {
  15224. out.writeInt(counter);
  15225. out.writeLong(timestamp);
  15226. }
  15227. public void readFields(DataInput in) throws IOException {
  15228. counter = in.readInt();
  15229. timestamp = in.readLong();
  15230. }
  15231. public static MyWritable read(DataInput in) throws IOException {
  15232. MyWritable w = new MyWritable();
  15233. w.readFields(in);
  15234. return w;
  15235. }
  15236. }
  15237. </pre></blockquote></p>]]>
  15238. </doc>
  15239. </interface>
  15240. <!-- end interface org.apache.hadoop.io.Writable -->
  15241. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15242. <interface name="WritableComparable" abstract="true"
  15243. static="false" final="false" visibility="public"
  15244. deprecated="not deprecated">
  15245. <implements name="org.apache.hadoop.io.Writable"/>
  15246. <implements name="java.lang.Comparable"/>
  15247. <doc>
  15248. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15249. <p><code>WritableComparable</code>s can be compared to each other, typically
  15250. via <code>Comparator</code>s. Any type which is to be used as a
  15251. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15252. interface.</p>
  15253. <p>Example:</p>
  15254. <p><blockquote><pre>
  15255. public class MyWritableComparable implements WritableComparable {
  15256. // Some data
  15257. private int counter;
  15258. private long timestamp;
  15259. public void write(DataOutput out) throws IOException {
  15260. out.writeInt(counter);
  15261. out.writeLong(timestamp);
  15262. }
  15263. public void readFields(DataInput in) throws IOException {
  15264. counter = in.readInt();
  15265. timestamp = in.readLong();
  15266. }
  15267. public int compareTo(MyWritableComparable w) {
  15268. int thisValue = this.value;
  15269. int thatValue = ((IntWritable)o).value;
  15270. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15271. }
  15272. }
  15273. </pre></blockquote></p>]]>
  15274. </doc>
  15275. </interface>
  15276. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15277. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15278. <class name="WritableComparator" extends="java.lang.Object"
  15279. abstract="false"
  15280. static="false" final="false" visibility="public"
  15281. deprecated="not deprecated">
  15282. <implements name="org.apache.hadoop.io.RawComparator"/>
  15283. <constructor name="WritableComparator" type="java.lang.Class"
  15284. static="false" final="false" visibility="protected"
  15285. deprecated="not deprecated">
  15286. <doc>
  15287. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15288. </doc>
  15289. </constructor>
  15290. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15291. static="false" final="false" visibility="protected"
  15292. deprecated="not deprecated">
  15293. </constructor>
  15294. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15295. abstract="false" native="false" synchronized="true"
  15296. static="true" final="false" visibility="public"
  15297. deprecated="not deprecated">
  15298. <param name="c" type="java.lang.Class"/>
  15299. <doc>
  15300. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15301. </doc>
  15302. </method>
  15303. <method name="define"
  15304. abstract="false" native="false" synchronized="true"
  15305. static="true" final="false" visibility="public"
  15306. deprecated="not deprecated">
  15307. <param name="c" type="java.lang.Class"/>
  15308. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15309. <doc>
  15310. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15311. implementation.]]>
  15312. </doc>
  15313. </method>
  15314. <method name="getKeyClass" return="java.lang.Class"
  15315. abstract="false" native="false" synchronized="false"
  15316. static="false" final="false" visibility="public"
  15317. deprecated="not deprecated">
  15318. <doc>
  15319. <![CDATA[Returns the WritableComparable implementation class.]]>
  15320. </doc>
  15321. </method>
  15322. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15323. abstract="false" native="false" synchronized="false"
  15324. static="false" final="false" visibility="public"
  15325. deprecated="not deprecated">
  15326. <doc>
  15327. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15328. </doc>
  15329. </method>
  15330. <method name="compare" return="int"
  15331. abstract="false" native="false" synchronized="false"
  15332. static="false" final="false" visibility="public"
  15333. deprecated="not deprecated">
  15334. <param name="b1" type="byte[]"/>
  15335. <param name="s1" type="int"/>
  15336. <param name="l1" type="int"/>
  15337. <param name="b2" type="byte[]"/>
  15338. <param name="s2" type="int"/>
  15339. <param name="l2" type="int"/>
  15340. <doc>
  15341. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15342. <p>The default implementation reads the data into two {@link
  15343. WritableComparable}s (using {@link
  15344. Writable#readFields(DataInput)}, then calls {@link
  15345. #compare(WritableComparable,WritableComparable)}.]]>
  15346. </doc>
  15347. </method>
  15348. <method name="compare" return="int"
  15349. abstract="false" native="false" synchronized="false"
  15350. static="false" final="false" visibility="public"
  15351. deprecated="not deprecated">
  15352. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15353. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15354. <doc>
  15355. <![CDATA[Compare two WritableComparables.
  15356. <p> The default implementation uses the natural ordering, calling {@link
  15357. Comparable#compareTo(Object)}.]]>
  15358. </doc>
  15359. </method>
  15360. <method name="compare" return="int"
  15361. abstract="false" native="false" synchronized="false"
  15362. static="false" final="false" visibility="public"
  15363. deprecated="not deprecated">
  15364. <param name="a" type="java.lang.Object"/>
  15365. <param name="b" type="java.lang.Object"/>
  15366. </method>
  15367. <method name="compareBytes" return="int"
  15368. abstract="false" native="false" synchronized="false"
  15369. static="true" final="false" visibility="public"
  15370. deprecated="not deprecated">
  15371. <param name="b1" type="byte[]"/>
  15372. <param name="s1" type="int"/>
  15373. <param name="l1" type="int"/>
  15374. <param name="b2" type="byte[]"/>
  15375. <param name="s2" type="int"/>
  15376. <param name="l2" type="int"/>
  15377. <doc>
  15378. <![CDATA[Lexicographic order of binary data.]]>
  15379. </doc>
  15380. </method>
  15381. <method name="hashBytes" return="int"
  15382. abstract="false" native="false" synchronized="false"
  15383. static="true" final="false" visibility="public"
  15384. deprecated="not deprecated">
  15385. <param name="bytes" type="byte[]"/>
  15386. <param name="offset" type="int"/>
  15387. <param name="length" type="int"/>
  15388. <doc>
  15389. <![CDATA[Compute hash for binary data.]]>
  15390. </doc>
  15391. </method>
  15392. <method name="hashBytes" return="int"
  15393. abstract="false" native="false" synchronized="false"
  15394. static="true" final="false" visibility="public"
  15395. deprecated="not deprecated">
  15396. <param name="bytes" type="byte[]"/>
  15397. <param name="length" type="int"/>
  15398. <doc>
  15399. <![CDATA[Compute hash for binary data.]]>
  15400. </doc>
  15401. </method>
  15402. <method name="readUnsignedShort" return="int"
  15403. abstract="false" native="false" synchronized="false"
  15404. static="true" final="false" visibility="public"
  15405. deprecated="not deprecated">
  15406. <param name="bytes" type="byte[]"/>
  15407. <param name="start" type="int"/>
  15408. <doc>
  15409. <![CDATA[Parse an unsigned short from a byte array.]]>
  15410. </doc>
  15411. </method>
  15412. <method name="readInt" return="int"
  15413. abstract="false" native="false" synchronized="false"
  15414. static="true" final="false" visibility="public"
  15415. deprecated="not deprecated">
  15416. <param name="bytes" type="byte[]"/>
  15417. <param name="start" type="int"/>
  15418. <doc>
  15419. <![CDATA[Parse an integer from a byte array.]]>
  15420. </doc>
  15421. </method>
  15422. <method name="readFloat" return="float"
  15423. abstract="false" native="false" synchronized="false"
  15424. static="true" final="false" visibility="public"
  15425. deprecated="not deprecated">
  15426. <param name="bytes" type="byte[]"/>
  15427. <param name="start" type="int"/>
  15428. <doc>
  15429. <![CDATA[Parse a float from a byte array.]]>
  15430. </doc>
  15431. </method>
  15432. <method name="readLong" return="long"
  15433. abstract="false" native="false" synchronized="false"
  15434. static="true" final="false" visibility="public"
  15435. deprecated="not deprecated">
  15436. <param name="bytes" type="byte[]"/>
  15437. <param name="start" type="int"/>
  15438. <doc>
  15439. <![CDATA[Parse a long from a byte array.]]>
  15440. </doc>
  15441. </method>
  15442. <method name="readDouble" return="double"
  15443. abstract="false" native="false" synchronized="false"
  15444. static="true" final="false" visibility="public"
  15445. deprecated="not deprecated">
  15446. <param name="bytes" type="byte[]"/>
  15447. <param name="start" type="int"/>
  15448. <doc>
  15449. <![CDATA[Parse a double from a byte array.]]>
  15450. </doc>
  15451. </method>
  15452. <method name="readVLong" return="long"
  15453. abstract="false" native="false" synchronized="false"
  15454. static="true" final="false" visibility="public"
  15455. deprecated="not deprecated">
  15456. <param name="bytes" type="byte[]"/>
  15457. <param name="start" type="int"/>
  15458. <exception name="IOException" type="java.io.IOException"/>
  15459. <doc>
  15460. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15461. @param bytes byte array with decode long
  15462. @param start starting index
  15463. @throws java.io.IOException
  15464. @return deserialized long]]>
  15465. </doc>
  15466. </method>
  15467. <method name="readVInt" return="int"
  15468. abstract="false" native="false" synchronized="false"
  15469. static="true" final="false" visibility="public"
  15470. deprecated="not deprecated">
  15471. <param name="bytes" type="byte[]"/>
  15472. <param name="start" type="int"/>
  15473. <exception name="IOException" type="java.io.IOException"/>
  15474. <doc>
  15475. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15476. @param bytes byte array with the encoded integer
  15477. @param start start index
  15478. @throws java.io.IOException
  15479. @return deserialized integer]]>
  15480. </doc>
  15481. </method>
  15482. <doc>
  15483. <![CDATA[A Comparator for {@link WritableComparable}s.
  15484. <p>This base implemenation uses the natural ordering. To define alternate
  15485. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15486. <p>One may optimize compare-intensive operations by overriding
  15487. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15488. provided to assist in optimized implementations of this method.]]>
  15489. </doc>
  15490. </class>
  15491. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15492. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15493. <class name="WritableFactories" extends="java.lang.Object"
  15494. abstract="false"
  15495. static="false" final="false" visibility="public"
  15496. deprecated="not deprecated">
  15497. <method name="setFactory"
  15498. abstract="false" native="false" synchronized="true"
  15499. static="true" final="false" visibility="public"
  15500. deprecated="not deprecated">
  15501. <param name="c" type="java.lang.Class"/>
  15502. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15503. <doc>
  15504. <![CDATA[Define a factory for a class.]]>
  15505. </doc>
  15506. </method>
  15507. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15508. abstract="false" native="false" synchronized="true"
  15509. static="true" final="false" visibility="public"
  15510. deprecated="not deprecated">
  15511. <param name="c" type="java.lang.Class"/>
  15512. <doc>
  15513. <![CDATA[Define a factory for a class.]]>
  15514. </doc>
  15515. </method>
  15516. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15517. abstract="false" native="false" synchronized="false"
  15518. static="true" final="false" visibility="public"
  15519. deprecated="not deprecated">
  15520. <param name="c" type="java.lang.Class"/>
  15521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15522. <doc>
  15523. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15524. </doc>
  15525. </method>
  15526. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15527. abstract="false" native="false" synchronized="false"
  15528. static="true" final="false" visibility="public"
  15529. deprecated="not deprecated">
  15530. <param name="c" type="java.lang.Class"/>
  15531. <doc>
  15532. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15533. </doc>
  15534. </method>
  15535. <doc>
  15536. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15537. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15538. </doc>
  15539. </class>
  15540. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15541. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15542. <interface name="WritableFactory" abstract="true"
  15543. static="false" final="false" visibility="public"
  15544. deprecated="not deprecated">
  15545. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15546. abstract="false" native="false" synchronized="false"
  15547. static="false" final="false" visibility="public"
  15548. deprecated="not deprecated">
  15549. <doc>
  15550. <![CDATA[Return a new instance.]]>
  15551. </doc>
  15552. </method>
  15553. <doc>
  15554. <![CDATA[A factory for a class of Writable.
  15555. @see WritableFactories]]>
  15556. </doc>
  15557. </interface>
  15558. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  15559. <!-- start class org.apache.hadoop.io.WritableName -->
  15560. <class name="WritableName" extends="java.lang.Object"
  15561. abstract="false"
  15562. static="false" final="false" visibility="public"
  15563. deprecated="not deprecated">
  15564. <method name="setName"
  15565. abstract="false" native="false" synchronized="true"
  15566. static="true" final="false" visibility="public"
  15567. deprecated="not deprecated">
  15568. <param name="writableClass" type="java.lang.Class"/>
  15569. <param name="name" type="java.lang.String"/>
  15570. <doc>
  15571. <![CDATA[Set the name that a class should be known as to something other than the
  15572. class name.]]>
  15573. </doc>
  15574. </method>
  15575. <method name="addName"
  15576. abstract="false" native="false" synchronized="true"
  15577. static="true" final="false" visibility="public"
  15578. deprecated="not deprecated">
  15579. <param name="writableClass" type="java.lang.Class"/>
  15580. <param name="name" type="java.lang.String"/>
  15581. <doc>
  15582. <![CDATA[Add an alternate name for a class.]]>
  15583. </doc>
  15584. </method>
  15585. <method name="getName" return="java.lang.String"
  15586. abstract="false" native="false" synchronized="true"
  15587. static="true" final="false" visibility="public"
  15588. deprecated="not deprecated">
  15589. <param name="writableClass" type="java.lang.Class"/>
  15590. <doc>
  15591. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  15592. </doc>
  15593. </method>
  15594. <method name="getClass" return="java.lang.Class"
  15595. abstract="false" native="false" synchronized="true"
  15596. static="true" final="false" visibility="public"
  15597. deprecated="not deprecated">
  15598. <param name="name" type="java.lang.String"/>
  15599. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15600. <exception name="IOException" type="java.io.IOException"/>
  15601. <doc>
  15602. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  15603. </doc>
  15604. </method>
  15605. <doc>
  15606. <![CDATA[Utility to permit renaming of Writable implementation classes without
  15607. invalidiating files that contain their class name.]]>
  15608. </doc>
  15609. </class>
  15610. <!-- end class org.apache.hadoop.io.WritableName -->
  15611. <!-- start class org.apache.hadoop.io.WritableUtils -->
  15612. <class name="WritableUtils" extends="java.lang.Object"
  15613. abstract="false"
  15614. static="false" final="true" visibility="public"
  15615. deprecated="not deprecated">
  15616. <constructor name="WritableUtils"
  15617. static="false" final="false" visibility="public"
  15618. deprecated="not deprecated">
  15619. </constructor>
  15620. <method name="readCompressedByteArray" return="byte[]"
  15621. abstract="false" native="false" synchronized="false"
  15622. static="true" final="false" visibility="public"
  15623. deprecated="not deprecated">
  15624. <param name="in" type="java.io.DataInput"/>
  15625. <exception name="IOException" type="java.io.IOException"/>
  15626. </method>
  15627. <method name="skipCompressedByteArray"
  15628. abstract="false" native="false" synchronized="false"
  15629. static="true" final="false" visibility="public"
  15630. deprecated="not deprecated">
  15631. <param name="in" type="java.io.DataInput"/>
  15632. <exception name="IOException" type="java.io.IOException"/>
  15633. </method>
  15634. <method name="writeCompressedByteArray" return="int"
  15635. abstract="false" native="false" synchronized="false"
  15636. static="true" final="false" visibility="public"
  15637. deprecated="not deprecated">
  15638. <param name="out" type="java.io.DataOutput"/>
  15639. <param name="bytes" type="byte[]"/>
  15640. <exception name="IOException" type="java.io.IOException"/>
  15641. </method>
  15642. <method name="readCompressedString" return="java.lang.String"
  15643. abstract="false" native="false" synchronized="false"
  15644. static="true" final="false" visibility="public"
  15645. deprecated="not deprecated">
  15646. <param name="in" type="java.io.DataInput"/>
  15647. <exception name="IOException" type="java.io.IOException"/>
  15648. </method>
  15649. <method name="writeCompressedString" return="int"
  15650. abstract="false" native="false" synchronized="false"
  15651. static="true" final="false" visibility="public"
  15652. deprecated="not deprecated">
  15653. <param name="out" type="java.io.DataOutput"/>
  15654. <param name="s" type="java.lang.String"/>
  15655. <exception name="IOException" type="java.io.IOException"/>
  15656. </method>
  15657. <method name="writeString"
  15658. abstract="false" native="false" synchronized="false"
  15659. static="true" final="false" visibility="public"
  15660. deprecated="not deprecated">
  15661. <param name="out" type="java.io.DataOutput"/>
  15662. <param name="s" type="java.lang.String"/>
  15663. <exception name="IOException" type="java.io.IOException"/>
  15664. </method>
  15665. <method name="readString" return="java.lang.String"
  15666. abstract="false" native="false" synchronized="false"
  15667. static="true" final="false" visibility="public"
  15668. deprecated="not deprecated">
  15669. <param name="in" type="java.io.DataInput"/>
  15670. <exception name="IOException" type="java.io.IOException"/>
  15671. </method>
  15672. <method name="writeStringArray"
  15673. abstract="false" native="false" synchronized="false"
  15674. static="true" final="false" visibility="public"
  15675. deprecated="not deprecated">
  15676. <param name="out" type="java.io.DataOutput"/>
  15677. <param name="s" type="java.lang.String[]"/>
  15678. <exception name="IOException" type="java.io.IOException"/>
  15679. </method>
  15680. <method name="writeCompressedStringArray"
  15681. abstract="false" native="false" synchronized="false"
  15682. static="true" final="false" visibility="public"
  15683. deprecated="not deprecated">
  15684. <param name="out" type="java.io.DataOutput"/>
  15685. <param name="s" type="java.lang.String[]"/>
  15686. <exception name="IOException" type="java.io.IOException"/>
  15687. </method>
  15688. <method name="readStringArray" return="java.lang.String[]"
  15689. abstract="false" native="false" synchronized="false"
  15690. static="true" final="false" visibility="public"
  15691. deprecated="not deprecated">
  15692. <param name="in" type="java.io.DataInput"/>
  15693. <exception name="IOException" type="java.io.IOException"/>
  15694. </method>
  15695. <method name="readCompressedStringArray" return="java.lang.String[]"
  15696. abstract="false" native="false" synchronized="false"
  15697. static="true" final="false" visibility="public"
  15698. deprecated="not deprecated">
  15699. <param name="in" type="java.io.DataInput"/>
  15700. <exception name="IOException" type="java.io.IOException"/>
  15701. </method>
  15702. <method name="displayByteArray"
  15703. abstract="false" native="false" synchronized="false"
  15704. static="true" final="false" visibility="public"
  15705. deprecated="not deprecated">
  15706. <param name="record" type="byte[]"/>
  15707. </method>
  15708. <method name="clone" return="org.apache.hadoop.io.Writable"
  15709. abstract="false" native="false" synchronized="false"
  15710. static="true" final="false" visibility="public"
  15711. deprecated="not deprecated">
  15712. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  15713. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15714. <doc>
  15715. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  15716. @param orig The object to copy
  15717. @return The copied object]]>
  15718. </doc>
  15719. </method>
  15720. <method name="cloneInto"
  15721. abstract="false" native="false" synchronized="false"
  15722. static="true" final="false" visibility="public"
  15723. deprecated="use ReflectionUtils.cloneInto instead.">
  15724. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  15725. <param name="src" type="org.apache.hadoop.io.Writable"/>
  15726. <exception name="IOException" type="java.io.IOException"/>
  15727. <doc>
  15728. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  15729. @param dst the object to copy from
  15730. @param src the object to copy into, which is destroyed
  15731. @throws IOException
  15732. @deprecated use ReflectionUtils.cloneInto instead.]]>
  15733. </doc>
  15734. </method>
  15735. <method name="writeVInt"
  15736. abstract="false" native="false" synchronized="false"
  15737. static="true" final="false" visibility="public"
  15738. deprecated="not deprecated">
  15739. <param name="stream" type="java.io.DataOutput"/>
  15740. <param name="i" type="int"/>
  15741. <exception name="IOException" type="java.io.IOException"/>
  15742. <doc>
  15743. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  15744. For -120 <= i <= 127, only one byte is used with the actual value.
  15745. For other values of i, the first byte value indicates whether the
  15746. integer is positive or negative, and the number of bytes that follow.
  15747. If the first byte value v is between -121 and -124, the following integer
  15748. is positive, with number of bytes that follow are -(v+120).
  15749. If the first byte value v is between -125 and -128, the following integer
  15750. is negative, with number of bytes that follow are -(v+124). Bytes are
  15751. stored in the high-non-zero-byte-first order.
  15752. @param stream Binary output stream
  15753. @param i Integer to be serialized
  15754. @throws java.io.IOException]]>
  15755. </doc>
  15756. </method>
  15757. <method name="writeVLong"
  15758. abstract="false" native="false" synchronized="false"
  15759. static="true" final="false" visibility="public"
  15760. deprecated="not deprecated">
  15761. <param name="stream" type="java.io.DataOutput"/>
  15762. <param name="i" type="long"/>
  15763. <exception name="IOException" type="java.io.IOException"/>
  15764. <doc>
  15765. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  15766. For -112 <= i <= 127, only one byte is used with the actual value.
  15767. For other values of i, the first byte value indicates whether the
  15768. long is positive or negative, and the number of bytes that follow.
  15769. If the first byte value v is between -113 and -120, the following long
  15770. is positive, with number of bytes that follow are -(v+112).
  15771. If the first byte value v is between -121 and -128, the following long
  15772. is negative, with number of bytes that follow are -(v+120). Bytes are
  15773. stored in the high-non-zero-byte-first order.
  15774. @param stream Binary output stream
  15775. @param i Long to be serialized
  15776. @throws java.io.IOException]]>
  15777. </doc>
  15778. </method>
  15779. <method name="readVLong" return="long"
  15780. abstract="false" native="false" synchronized="false"
  15781. static="true" final="false" visibility="public"
  15782. deprecated="not deprecated">
  15783. <param name="stream" type="java.io.DataInput"/>
  15784. <exception name="IOException" type="java.io.IOException"/>
  15785. <doc>
  15786. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  15787. @param stream Binary input stream
  15788. @throws java.io.IOException
  15789. @return deserialized long from stream.]]>
  15790. </doc>
  15791. </method>
  15792. <method name="readVInt" return="int"
  15793. abstract="false" native="false" synchronized="false"
  15794. static="true" final="false" visibility="public"
  15795. deprecated="not deprecated">
  15796. <param name="stream" type="java.io.DataInput"/>
  15797. <exception name="IOException" type="java.io.IOException"/>
  15798. <doc>
  15799. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  15800. @param stream Binary input stream
  15801. @throws java.io.IOException
  15802. @return deserialized integer from stream.]]>
  15803. </doc>
  15804. </method>
  15805. <method name="isNegativeVInt" return="boolean"
  15806. abstract="false" native="false" synchronized="false"
  15807. static="true" final="false" visibility="public"
  15808. deprecated="not deprecated">
  15809. <param name="value" type="byte"/>
  15810. <doc>
  15811. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  15812. @param value the first byte
  15813. @return is the value negative]]>
  15814. </doc>
  15815. </method>
  15816. <method name="decodeVIntSize" return="int"
  15817. abstract="false" native="false" synchronized="false"
  15818. static="true" final="false" visibility="public"
  15819. deprecated="not deprecated">
  15820. <param name="value" type="byte"/>
  15821. <doc>
  15822. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  15823. @param value the first byte of the vint/vlong
  15824. @return the total number of bytes (1 to 9)]]>
  15825. </doc>
  15826. </method>
  15827. <method name="getVIntSize" return="int"
  15828. abstract="false" native="false" synchronized="false"
  15829. static="true" final="false" visibility="public"
  15830. deprecated="not deprecated">
  15831. <param name="i" type="long"/>
  15832. <doc>
  15833. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  15834. @return the encoded length]]>
  15835. </doc>
  15836. </method>
  15837. <method name="readEnum" return="java.lang.Enum"
  15838. abstract="false" native="false" synchronized="false"
  15839. static="true" final="false" visibility="public"
  15840. deprecated="not deprecated">
  15841. <param name="in" type="java.io.DataInput"/>
  15842. <param name="enumType" type="java.lang.Class"/>
  15843. <exception name="IOException" type="java.io.IOException"/>
  15844. <doc>
  15845. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  15846. using String values.
  15847. @param <T> Enum type
  15848. @param in DataInput to read from
  15849. @param enumType Class type of Enum
  15850. @return Enum represented by String read from DataInput
  15851. @throws IOException]]>
  15852. </doc>
  15853. </method>
  15854. <method name="writeEnum"
  15855. abstract="false" native="false" synchronized="false"
  15856. static="true" final="false" visibility="public"
  15857. deprecated="not deprecated">
  15858. <param name="out" type="java.io.DataOutput"/>
  15859. <param name="enumVal" type="java.lang.Enum"/>
  15860. <exception name="IOException" type="java.io.IOException"/>
  15861. <doc>
  15862. <![CDATA[writes String value of enum to DataOutput.
  15863. @param out Dataoutput stream
  15864. @param enumVal enum value
  15865. @throws IOException]]>
  15866. </doc>
  15867. </method>
  15868. <method name="skipFully"
  15869. abstract="false" native="false" synchronized="false"
  15870. static="true" final="false" visibility="public"
  15871. deprecated="not deprecated">
  15872. <param name="in" type="java.io.DataInput"/>
  15873. <param name="len" type="int"/>
  15874. <exception name="IOException" type="java.io.IOException"/>
  15875. <doc>
  15876. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  15877. @param in input stream
  15878. @param len number of bytes to skip
  15879. @throws IOException when skipped less number of bytes]]>
  15880. </doc>
  15881. </method>
  15882. <method name="toByteArray" return="byte[]"
  15883. abstract="false" native="false" synchronized="false"
  15884. static="true" final="false" visibility="public"
  15885. deprecated="not deprecated">
  15886. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  15887. <doc>
  15888. <![CDATA[Convert writables to a byte array]]>
  15889. </doc>
  15890. </method>
  15891. </class>
  15892. <!-- end class org.apache.hadoop.io.WritableUtils -->
  15893. </package>
  15894. <package name="org.apache.hadoop.io.compress">
  15895. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15896. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  15897. abstract="false"
  15898. static="false" final="false" visibility="public"
  15899. deprecated="not deprecated">
  15900. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  15901. static="false" final="false" visibility="public"
  15902. deprecated="not deprecated">
  15903. <doc>
  15904. <![CDATA[Create a {@link BlockCompressorStream}.
  15905. @param out stream
  15906. @param compressor compressor to be used
  15907. @param bufferSize size of buffer
  15908. @param compressionOverhead maximum 'overhead' of the compression
  15909. algorithm with given bufferSize]]>
  15910. </doc>
  15911. </constructor>
  15912. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  15913. static="false" final="false" visibility="public"
  15914. deprecated="not deprecated">
  15915. <doc>
  15916. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  15917. compressor.
  15918. Use default of 512 as bufferSize and compressionOverhead of
  15919. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  15920. @param out stream
  15921. @param compressor compressor to be used]]>
  15922. </doc>
  15923. </constructor>
  15924. <method name="write"
  15925. abstract="false" native="false" synchronized="false"
  15926. static="false" final="false" visibility="public"
  15927. deprecated="not deprecated">
  15928. <param name="b" type="byte[]"/>
  15929. <param name="off" type="int"/>
  15930. <param name="len" type="int"/>
  15931. <exception name="IOException" type="java.io.IOException"/>
  15932. <doc>
  15933. <![CDATA[Write the data provided to the compression codec, compressing no more
  15934. than the buffer size less the compression overhead as specified during
  15935. construction for each block.
  15936. Each block contains the uncompressed length for the block, followed by
  15937. one or more length-prefixed blocks of compressed data.]]>
  15938. </doc>
  15939. </method>
  15940. <method name="finish"
  15941. abstract="false" native="false" synchronized="false"
  15942. static="false" final="false" visibility="public"
  15943. deprecated="not deprecated">
  15944. <exception name="IOException" type="java.io.IOException"/>
  15945. </method>
  15946. <method name="compress"
  15947. abstract="false" native="false" synchronized="false"
  15948. static="false" final="false" visibility="protected"
  15949. deprecated="not deprecated">
  15950. <exception name="IOException" type="java.io.IOException"/>
  15951. </method>
  15952. <doc>
  15953. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  15954. with 'block-based' based compression algorithms, as opposed to
  15955. 'stream-based' compression algorithms.
  15956. It should be noted that this wrapper does not guarantee that blocks will
  15957. be sized for the compressor. If the
  15958. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  15959. effect meaningful compression, it is responsible for it.]]>
  15960. </doc>
  15961. </class>
  15962. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15963. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15964. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  15965. abstract="false"
  15966. static="false" final="false" visibility="public"
  15967. deprecated="not deprecated">
  15968. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15969. static="false" final="false" visibility="public"
  15970. deprecated="not deprecated">
  15971. <doc>
  15972. <![CDATA[Create a {@link BlockDecompressorStream}.
  15973. @param in input stream
  15974. @param decompressor decompressor to use
  15975. @param bufferSize size of buffer]]>
  15976. </doc>
  15977. </constructor>
  15978. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  15979. static="false" final="false" visibility="public"
  15980. deprecated="not deprecated">
  15981. <doc>
  15982. <![CDATA[Create a {@link BlockDecompressorStream}.
  15983. @param in input stream
  15984. @param decompressor decompressor to use]]>
  15985. </doc>
  15986. </constructor>
  15987. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  15988. static="false" final="false" visibility="protected"
  15989. deprecated="not deprecated">
  15990. </constructor>
  15991. <method name="decompress" return="int"
  15992. abstract="false" native="false" synchronized="false"
  15993. static="false" final="false" visibility="protected"
  15994. deprecated="not deprecated">
  15995. <param name="b" type="byte[]"/>
  15996. <param name="off" type="int"/>
  15997. <param name="len" type="int"/>
  15998. <exception name="IOException" type="java.io.IOException"/>
  15999. </method>
  16000. <method name="getCompressedData" return="int"
  16001. abstract="false" native="false" synchronized="false"
  16002. static="false" final="false" visibility="protected"
  16003. deprecated="not deprecated">
  16004. <exception name="IOException" type="java.io.IOException"/>
  16005. </method>
  16006. <method name="resetState"
  16007. abstract="false" native="false" synchronized="false"
  16008. static="false" final="false" visibility="public"
  16009. deprecated="not deprecated">
  16010. <exception name="IOException" type="java.io.IOException"/>
  16011. </method>
  16012. <doc>
  16013. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16014. with 'block-based' based compression algorithms, as opposed to
  16015. 'stream-based' compression algorithms.]]>
  16016. </doc>
  16017. </class>
  16018. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16019. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16020. <class name="BZip2Codec" extends="java.lang.Object"
  16021. abstract="false"
  16022. static="false" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  16025. <constructor name="BZip2Codec"
  16026. static="false" final="false" visibility="public"
  16027. deprecated="not deprecated">
  16028. <doc>
  16029. <![CDATA[Creates a new instance of BZip2Codec]]>
  16030. </doc>
  16031. </constructor>
  16032. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16033. abstract="false" native="false" synchronized="false"
  16034. static="false" final="false" visibility="public"
  16035. deprecated="not deprecated">
  16036. <param name="out" type="java.io.OutputStream"/>
  16037. <exception name="IOException" type="java.io.IOException"/>
  16038. <doc>
  16039. <![CDATA[Creates CompressionOutputStream for BZip2
  16040. @param out
  16041. The output Stream
  16042. @return The BZip2 CompressionOutputStream
  16043. @throws java.io.IOException
  16044. Throws IO exception]]>
  16045. </doc>
  16046. </method>
  16047. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16048. abstract="false" native="false" synchronized="false"
  16049. static="false" final="false" visibility="public"
  16050. deprecated="not deprecated">
  16051. <param name="out" type="java.io.OutputStream"/>
  16052. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16053. <exception name="IOException" type="java.io.IOException"/>
  16054. <doc>
  16055. <![CDATA[This functionality is currently not supported.
  16056. @throws java.lang.UnsupportedOperationException
  16057. Throws UnsupportedOperationException]]>
  16058. </doc>
  16059. </method>
  16060. <method name="getCompressorType" return="java.lang.Class"
  16061. abstract="false" native="false" synchronized="false"
  16062. static="false" final="false" visibility="public"
  16063. deprecated="not deprecated">
  16064. <doc>
  16065. <![CDATA[This functionality is currently not supported.
  16066. @throws java.lang.UnsupportedOperationException
  16067. Throws UnsupportedOperationException]]>
  16068. </doc>
  16069. </method>
  16070. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16071. abstract="false" native="false" synchronized="false"
  16072. static="false" final="false" visibility="public"
  16073. deprecated="not deprecated">
  16074. <doc>
  16075. <![CDATA[This functionality is currently not supported.
  16076. @throws java.lang.UnsupportedOperationException
  16077. Throws UnsupportedOperationException]]>
  16078. </doc>
  16079. </method>
  16080. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16081. abstract="false" native="false" synchronized="false"
  16082. static="false" final="false" visibility="public"
  16083. deprecated="not deprecated">
  16084. <param name="in" type="java.io.InputStream"/>
  16085. <exception name="IOException" type="java.io.IOException"/>
  16086. <doc>
  16087. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16088. @param in
  16089. The InputStream
  16090. @return Returns CompressionInputStream for BZip2
  16091. @throws java.io.IOException
  16092. Throws IOException]]>
  16093. </doc>
  16094. </method>
  16095. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16096. abstract="false" native="false" synchronized="false"
  16097. static="false" final="false" visibility="public"
  16098. deprecated="not deprecated">
  16099. <param name="in" type="java.io.InputStream"/>
  16100. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16101. <exception name="IOException" type="java.io.IOException"/>
  16102. <doc>
  16103. <![CDATA[This functionality is currently not supported.
  16104. @throws java.lang.UnsupportedOperationException
  16105. Throws UnsupportedOperationException]]>
  16106. </doc>
  16107. </method>
  16108. <method name="getDecompressorType" return="java.lang.Class"
  16109. abstract="false" native="false" synchronized="false"
  16110. static="false" final="false" visibility="public"
  16111. deprecated="not deprecated">
  16112. <doc>
  16113. <![CDATA[This functionality is currently not supported.
  16114. @throws java.lang.UnsupportedOperationException
  16115. Throws UnsupportedOperationException]]>
  16116. </doc>
  16117. </method>
  16118. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16119. abstract="false" native="false" synchronized="false"
  16120. static="false" final="false" visibility="public"
  16121. deprecated="not deprecated">
  16122. <doc>
  16123. <![CDATA[This functionality is currently not supported.
  16124. @throws java.lang.UnsupportedOperationException
  16125. Throws UnsupportedOperationException]]>
  16126. </doc>
  16127. </method>
  16128. <method name="getDefaultExtension" return="java.lang.String"
  16129. abstract="false" native="false" synchronized="false"
  16130. static="false" final="false" visibility="public"
  16131. deprecated="not deprecated">
  16132. <doc>
  16133. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16134. @return A String telling the default bzip2 file extension]]>
  16135. </doc>
  16136. </method>
  16137. <doc>
  16138. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16139. compression and decompression. Currently we dont have an implementation of
  16140. the Compressor and Decompressor interfaces, so those methods of
  16141. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16142. UnsupportedOperationException.]]>
  16143. </doc>
  16144. </class>
  16145. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16146. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16147. <class name="CodecPool" extends="java.lang.Object"
  16148. abstract="false"
  16149. static="false" final="false" visibility="public"
  16150. deprecated="not deprecated">
  16151. <constructor name="CodecPool"
  16152. static="false" final="false" visibility="public"
  16153. deprecated="not deprecated">
  16154. </constructor>
  16155. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16156. abstract="false" native="false" synchronized="false"
  16157. static="true" final="false" visibility="public"
  16158. deprecated="not deprecated">
  16159. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16160. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16161. <doc>
  16162. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16163. pool or a new one.
  16164. @param codec the <code>CompressionCodec</code> for which to get the
  16165. <code>Compressor</code>
  16166. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16167. @return <code>Compressor</code> for the given
  16168. <code>CompressionCodec</code> from the pool or a new one]]>
  16169. </doc>
  16170. </method>
  16171. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16172. abstract="false" native="false" synchronized="false"
  16173. static="true" final="false" visibility="public"
  16174. deprecated="not deprecated">
  16175. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16176. </method>
  16177. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16178. abstract="false" native="false" synchronized="false"
  16179. static="true" final="false" visibility="public"
  16180. deprecated="not deprecated">
  16181. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16182. <doc>
  16183. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16184. pool or a new one.
  16185. @param codec the <code>CompressionCodec</code> for which to get the
  16186. <code>Decompressor</code>
  16187. @return <code>Decompressor</code> for the given
  16188. <code>CompressionCodec</code> the pool or a new one]]>
  16189. </doc>
  16190. </method>
  16191. <method name="returnCompressor"
  16192. abstract="false" native="false" synchronized="false"
  16193. static="true" final="false" visibility="public"
  16194. deprecated="not deprecated">
  16195. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16196. <doc>
  16197. <![CDATA[Return the {@link Compressor} to the pool.
  16198. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16199. </doc>
  16200. </method>
  16201. <method name="returnDecompressor"
  16202. abstract="false" native="false" synchronized="false"
  16203. static="true" final="false" visibility="public"
  16204. deprecated="not deprecated">
  16205. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16206. <doc>
  16207. <![CDATA[Return the {@link Decompressor} to the pool.
  16208. @param decompressor the <code>Decompressor</code> to be returned to the
  16209. pool]]>
  16210. </doc>
  16211. </method>
  16212. <doc>
  16213. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16214. (possibly native) compression/decompression codecs.]]>
  16215. </doc>
  16216. </class>
  16217. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16218. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16219. <interface name="CompressionCodec" abstract="true"
  16220. static="false" final="false" visibility="public"
  16221. deprecated="not deprecated">
  16222. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16223. abstract="false" native="false" synchronized="false"
  16224. static="false" final="false" visibility="public"
  16225. deprecated="not deprecated">
  16226. <param name="out" type="java.io.OutputStream"/>
  16227. <exception name="IOException" type="java.io.IOException"/>
  16228. <doc>
  16229. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16230. {@link OutputStream}.
  16231. @param out the location for the final output stream
  16232. @return a stream the user can write uncompressed data to have it compressed
  16233. @throws IOException]]>
  16234. </doc>
  16235. </method>
  16236. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16237. abstract="false" native="false" synchronized="false"
  16238. static="false" final="false" visibility="public"
  16239. deprecated="not deprecated">
  16240. <param name="out" type="java.io.OutputStream"/>
  16241. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16242. <exception name="IOException" type="java.io.IOException"/>
  16243. <doc>
  16244. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16245. {@link OutputStream} with the given {@link Compressor}.
  16246. @param out the location for the final output stream
  16247. @param compressor compressor to use
  16248. @return a stream the user can write uncompressed data to have it compressed
  16249. @throws IOException]]>
  16250. </doc>
  16251. </method>
  16252. <method name="getCompressorType" return="java.lang.Class"
  16253. abstract="false" native="false" synchronized="false"
  16254. static="false" final="false" visibility="public"
  16255. deprecated="not deprecated">
  16256. <doc>
  16257. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16258. @return the type of compressor needed by this codec.]]>
  16259. </doc>
  16260. </method>
  16261. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16262. abstract="false" native="false" synchronized="false"
  16263. static="false" final="false" visibility="public"
  16264. deprecated="not deprecated">
  16265. <doc>
  16266. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16267. @return a new compressor for use by this codec]]>
  16268. </doc>
  16269. </method>
  16270. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16271. abstract="false" native="false" synchronized="false"
  16272. static="false" final="false" visibility="public"
  16273. deprecated="not deprecated">
  16274. <param name="in" type="java.io.InputStream"/>
  16275. <exception name="IOException" type="java.io.IOException"/>
  16276. <doc>
  16277. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16278. @param in the stream to read compressed bytes from
  16279. @return a stream to read uncompressed bytes from
  16280. @throws IOException]]>
  16281. </doc>
  16282. </method>
  16283. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16284. abstract="false" native="false" synchronized="false"
  16285. static="false" final="false" visibility="public"
  16286. deprecated="not deprecated">
  16287. <param name="in" type="java.io.InputStream"/>
  16288. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16289. <exception name="IOException" type="java.io.IOException"/>
  16290. <doc>
  16291. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16292. {@link InputStream} with the given {@link Decompressor}.
  16293. @param in the stream to read compressed bytes from
  16294. @param decompressor decompressor to use
  16295. @return a stream to read uncompressed bytes from
  16296. @throws IOException]]>
  16297. </doc>
  16298. </method>
  16299. <method name="getDecompressorType" return="java.lang.Class"
  16300. abstract="false" native="false" synchronized="false"
  16301. static="false" final="false" visibility="public"
  16302. deprecated="not deprecated">
  16303. <doc>
  16304. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16305. @return the type of decompressor needed by this codec.]]>
  16306. </doc>
  16307. </method>
  16308. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16309. abstract="false" native="false" synchronized="false"
  16310. static="false" final="false" visibility="public"
  16311. deprecated="not deprecated">
  16312. <doc>
  16313. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16314. @return a new decompressor for use by this codec]]>
  16315. </doc>
  16316. </method>
  16317. <method name="getDefaultExtension" return="java.lang.String"
  16318. abstract="false" native="false" synchronized="false"
  16319. static="false" final="false" visibility="public"
  16320. deprecated="not deprecated">
  16321. <doc>
  16322. <![CDATA[Get the default filename extension for this kind of compression.
  16323. @return the extension including the '.']]>
  16324. </doc>
  16325. </method>
  16326. <doc>
  16327. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16328. </doc>
  16329. </interface>
  16330. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16331. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16332. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16333. abstract="false"
  16334. static="false" final="false" visibility="public"
  16335. deprecated="not deprecated">
  16336. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16337. static="false" final="false" visibility="public"
  16338. deprecated="not deprecated">
  16339. <doc>
  16340. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16341. and register them. Defaults to gzip and zip.]]>
  16342. </doc>
  16343. </constructor>
  16344. <method name="toString" return="java.lang.String"
  16345. abstract="false" native="false" synchronized="false"
  16346. static="false" final="false" visibility="public"
  16347. deprecated="not deprecated">
  16348. <doc>
  16349. <![CDATA[Print the extension map out as a string.]]>
  16350. </doc>
  16351. </method>
  16352. <method name="getCodecClasses" return="java.util.List"
  16353. abstract="false" native="false" synchronized="false"
  16354. static="true" final="false" visibility="public"
  16355. deprecated="not deprecated">
  16356. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16357. <doc>
  16358. <![CDATA[Get the list of codecs listed in the configuration
  16359. @param conf the configuration to look in
  16360. @return a list of the Configuration classes or null if the attribute
  16361. was not set]]>
  16362. </doc>
  16363. </method>
  16364. <method name="setCodecClasses"
  16365. abstract="false" native="false" synchronized="false"
  16366. static="true" final="false" visibility="public"
  16367. deprecated="not deprecated">
  16368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16369. <param name="classes" type="java.util.List"/>
  16370. <doc>
  16371. <![CDATA[Sets a list of codec classes in the configuration.
  16372. @param conf the configuration to modify
  16373. @param classes the list of classes to set]]>
  16374. </doc>
  16375. </method>
  16376. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16377. abstract="false" native="false" synchronized="false"
  16378. static="false" final="false" visibility="public"
  16379. deprecated="not deprecated">
  16380. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16381. <doc>
  16382. <![CDATA[Find the relevant compression codec for the given file based on its
  16383. filename suffix.
  16384. @param file the filename to check
  16385. @return the codec object]]>
  16386. </doc>
  16387. </method>
  16388. <method name="removeSuffix" return="java.lang.String"
  16389. abstract="false" native="false" synchronized="false"
  16390. static="true" final="false" visibility="public"
  16391. deprecated="not deprecated">
  16392. <param name="filename" type="java.lang.String"/>
  16393. <param name="suffix" type="java.lang.String"/>
  16394. <doc>
  16395. <![CDATA[Removes a suffix from a filename, if it has it.
  16396. @param filename the filename to strip
  16397. @param suffix the suffix to remove
  16398. @return the shortened filename]]>
  16399. </doc>
  16400. </method>
  16401. <method name="main"
  16402. abstract="false" native="false" synchronized="false"
  16403. static="true" final="false" visibility="public"
  16404. deprecated="not deprecated">
  16405. <param name="args" type="java.lang.String[]"/>
  16406. <exception name="Exception" type="java.lang.Exception"/>
  16407. <doc>
  16408. <![CDATA[A little test program.
  16409. @param args]]>
  16410. </doc>
  16411. </method>
  16412. <field name="LOG" type="org.apache.commons.logging.Log"
  16413. transient="false" volatile="false"
  16414. static="true" final="true" visibility="public"
  16415. deprecated="not deprecated">
  16416. </field>
  16417. <doc>
  16418. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16419. </doc>
  16420. </class>
  16421. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16422. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16423. <class name="CompressionInputStream" extends="java.io.InputStream"
  16424. abstract="true"
  16425. static="false" final="false" visibility="public"
  16426. deprecated="not deprecated">
  16427. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16428. static="false" final="false" visibility="protected"
  16429. deprecated="not deprecated">
  16430. <doc>
  16431. <![CDATA[Create a compression input stream that reads
  16432. the decompressed bytes from the given stream.
  16433. @param in The input stream to be compressed.]]>
  16434. </doc>
  16435. </constructor>
  16436. <method name="close"
  16437. abstract="false" native="false" synchronized="false"
  16438. static="false" final="false" visibility="public"
  16439. deprecated="not deprecated">
  16440. <exception name="IOException" type="java.io.IOException"/>
  16441. </method>
  16442. <method name="read" return="int"
  16443. abstract="true" native="false" synchronized="false"
  16444. static="false" final="false" visibility="public"
  16445. deprecated="not deprecated">
  16446. <param name="b" type="byte[]"/>
  16447. <param name="off" type="int"/>
  16448. <param name="len" type="int"/>
  16449. <exception name="IOException" type="java.io.IOException"/>
  16450. <doc>
  16451. <![CDATA[Read bytes from the stream.
  16452. Made abstract to prevent leakage to underlying stream.]]>
  16453. </doc>
  16454. </method>
  16455. <method name="resetState"
  16456. abstract="true" native="false" synchronized="false"
  16457. static="false" final="false" visibility="public"
  16458. deprecated="not deprecated">
  16459. <exception name="IOException" type="java.io.IOException"/>
  16460. <doc>
  16461. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16462. as the underlying stream may have been repositioned.]]>
  16463. </doc>
  16464. </method>
  16465. <field name="in" type="java.io.InputStream"
  16466. transient="false" volatile="false"
  16467. static="false" final="true" visibility="protected"
  16468. deprecated="not deprecated">
  16469. <doc>
  16470. <![CDATA[The input stream to be compressed.]]>
  16471. </doc>
  16472. </field>
  16473. <doc>
  16474. <![CDATA[A compression input stream.
  16475. <p>Implementations are assumed to be buffered. This permits clients to
  16476. reposition the underlying input stream then call {@link #resetState()},
  16477. without having to also synchronize client buffers.]]>
  16478. </doc>
  16479. </class>
  16480. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  16481. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16482. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  16483. abstract="true"
  16484. static="false" final="false" visibility="public"
  16485. deprecated="not deprecated">
  16486. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  16487. static="false" final="false" visibility="protected"
  16488. deprecated="not deprecated">
  16489. <doc>
  16490. <![CDATA[Create a compression output stream that writes
  16491. the compressed bytes to the given stream.
  16492. @param out]]>
  16493. </doc>
  16494. </constructor>
  16495. <method name="close"
  16496. abstract="false" native="false" synchronized="false"
  16497. static="false" final="false" visibility="public"
  16498. deprecated="not deprecated">
  16499. <exception name="IOException" type="java.io.IOException"/>
  16500. </method>
  16501. <method name="flush"
  16502. abstract="false" native="false" synchronized="false"
  16503. static="false" final="false" visibility="public"
  16504. deprecated="not deprecated">
  16505. <exception name="IOException" type="java.io.IOException"/>
  16506. </method>
  16507. <method name="write"
  16508. abstract="true" native="false" synchronized="false"
  16509. static="false" final="false" visibility="public"
  16510. deprecated="not deprecated">
  16511. <param name="b" type="byte[]"/>
  16512. <param name="off" type="int"/>
  16513. <param name="len" type="int"/>
  16514. <exception name="IOException" type="java.io.IOException"/>
  16515. <doc>
  16516. <![CDATA[Write compressed bytes to the stream.
  16517. Made abstract to prevent leakage to underlying stream.]]>
  16518. </doc>
  16519. </method>
  16520. <method name="finish"
  16521. abstract="true" native="false" synchronized="false"
  16522. static="false" final="false" visibility="public"
  16523. deprecated="not deprecated">
  16524. <exception name="IOException" type="java.io.IOException"/>
  16525. <doc>
  16526. <![CDATA[Finishes writing compressed data to the output stream
  16527. without closing the underlying stream.]]>
  16528. </doc>
  16529. </method>
  16530. <method name="resetState"
  16531. abstract="true" native="false" synchronized="false"
  16532. static="false" final="false" visibility="public"
  16533. deprecated="not deprecated">
  16534. <exception name="IOException" type="java.io.IOException"/>
  16535. <doc>
  16536. <![CDATA[Reset the compression to the initial state.
  16537. Does not reset the underlying stream.]]>
  16538. </doc>
  16539. </method>
  16540. <field name="out" type="java.io.OutputStream"
  16541. transient="false" volatile="false"
  16542. static="false" final="true" visibility="protected"
  16543. deprecated="not deprecated">
  16544. <doc>
  16545. <![CDATA[The output stream to be compressed.]]>
  16546. </doc>
  16547. </field>
  16548. <doc>
  16549. <![CDATA[A compression output stream.]]>
  16550. </doc>
  16551. </class>
  16552. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16553. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  16554. <interface name="Compressor" abstract="true"
  16555. static="false" final="false" visibility="public"
  16556. deprecated="not deprecated">
  16557. <method name="setInput"
  16558. abstract="false" native="false" synchronized="false"
  16559. static="false" final="false" visibility="public"
  16560. deprecated="not deprecated">
  16561. <param name="b" type="byte[]"/>
  16562. <param name="off" type="int"/>
  16563. <param name="len" type="int"/>
  16564. <doc>
  16565. <![CDATA[Sets input data for compression.
  16566. This should be called whenever #needsInput() returns
  16567. <code>true</code> indicating that more input data is required.
  16568. @param b Input data
  16569. @param off Start offset
  16570. @param len Length]]>
  16571. </doc>
  16572. </method>
  16573. <method name="needsInput" return="boolean"
  16574. abstract="false" native="false" synchronized="false"
  16575. static="false" final="false" visibility="public"
  16576. deprecated="not deprecated">
  16577. <doc>
  16578. <![CDATA[Returns true if the input data buffer is empty and
  16579. #setInput() should be called to provide more input.
  16580. @return <code>true</code> if the input data buffer is empty and
  16581. #setInput() should be called in order to provide more input.]]>
  16582. </doc>
  16583. </method>
  16584. <method name="setDictionary"
  16585. abstract="false" native="false" synchronized="false"
  16586. static="false" final="false" visibility="public"
  16587. deprecated="not deprecated">
  16588. <param name="b" type="byte[]"/>
  16589. <param name="off" type="int"/>
  16590. <param name="len" type="int"/>
  16591. <doc>
  16592. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16593. is used when the history buffer can be predetermined.
  16594. @param b Dictionary data bytes
  16595. @param off Start offset
  16596. @param len Length]]>
  16597. </doc>
  16598. </method>
  16599. <method name="getBytesRead" return="long"
  16600. abstract="false" native="false" synchronized="false"
  16601. static="false" final="false" visibility="public"
  16602. deprecated="not deprecated">
  16603. <doc>
  16604. <![CDATA[Return number of uncompressed bytes input so far.]]>
  16605. </doc>
  16606. </method>
  16607. <method name="getBytesWritten" return="long"
  16608. abstract="false" native="false" synchronized="false"
  16609. static="false" final="false" visibility="public"
  16610. deprecated="not deprecated">
  16611. <doc>
  16612. <![CDATA[Return number of compressed bytes output so far.]]>
  16613. </doc>
  16614. </method>
  16615. <method name="finish"
  16616. abstract="false" native="false" synchronized="false"
  16617. static="false" final="false" visibility="public"
  16618. deprecated="not deprecated">
  16619. <doc>
  16620. <![CDATA[When called, indicates that compression should end
  16621. with the current contents of the input buffer.]]>
  16622. </doc>
  16623. </method>
  16624. <method name="finished" return="boolean"
  16625. abstract="false" native="false" synchronized="false"
  16626. static="false" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <doc>
  16629. <![CDATA[Returns true if the end of the compressed
  16630. data output stream has been reached.
  16631. @return <code>true</code> if the end of the compressed
  16632. data output stream has been reached.]]>
  16633. </doc>
  16634. </method>
  16635. <method name="compress" return="int"
  16636. abstract="false" native="false" synchronized="false"
  16637. static="false" final="false" visibility="public"
  16638. deprecated="not deprecated">
  16639. <param name="b" type="byte[]"/>
  16640. <param name="off" type="int"/>
  16641. <param name="len" type="int"/>
  16642. <exception name="IOException" type="java.io.IOException"/>
  16643. <doc>
  16644. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  16645. of bytes of compressed data. A return value of 0 indicates that
  16646. needsInput() should be called in order to determine if more input
  16647. data is required.
  16648. @param b Buffer for the compressed data
  16649. @param off Start offset of the data
  16650. @param len Size of the buffer
  16651. @return The actual number of bytes of compressed data.]]>
  16652. </doc>
  16653. </method>
  16654. <method name="reset"
  16655. abstract="false" native="false" synchronized="false"
  16656. static="false" final="false" visibility="public"
  16657. deprecated="not deprecated">
  16658. <doc>
  16659. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  16660. </doc>
  16661. </method>
  16662. <method name="end"
  16663. abstract="false" native="false" synchronized="false"
  16664. static="false" final="false" visibility="public"
  16665. deprecated="not deprecated">
  16666. <doc>
  16667. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  16668. </doc>
  16669. </method>
  16670. <method name="reinit"
  16671. abstract="false" native="false" synchronized="false"
  16672. static="false" final="false" visibility="public"
  16673. deprecated="not deprecated">
  16674. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16675. <doc>
  16676. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  16677. the given Configuration
  16678. @param conf Configuration from which new setting are fetched]]>
  16679. </doc>
  16680. </method>
  16681. <doc>
  16682. <![CDATA[Specification of a stream-based 'compressor' which can be
  16683. plugged into a {@link CompressionOutputStream} to compress data.
  16684. This is modelled after {@link java.util.zip.Deflater}]]>
  16685. </doc>
  16686. </interface>
  16687. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  16688. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  16689. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  16690. abstract="false"
  16691. static="false" final="false" visibility="public"
  16692. deprecated="not deprecated">
  16693. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  16694. static="false" final="false" visibility="public"
  16695. deprecated="not deprecated">
  16696. </constructor>
  16697. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16698. static="false" final="false" visibility="public"
  16699. deprecated="not deprecated">
  16700. </constructor>
  16701. <constructor name="CompressorStream" type="java.io.OutputStream"
  16702. static="false" final="false" visibility="protected"
  16703. deprecated="not deprecated">
  16704. <doc>
  16705. <![CDATA[Allow derived classes to directly set the underlying stream.
  16706. @param out Underlying output stream.]]>
  16707. </doc>
  16708. </constructor>
  16709. <method name="write"
  16710. abstract="false" native="false" synchronized="false"
  16711. static="false" final="false" visibility="public"
  16712. deprecated="not deprecated">
  16713. <param name="b" type="byte[]"/>
  16714. <param name="off" type="int"/>
  16715. <param name="len" type="int"/>
  16716. <exception name="IOException" type="java.io.IOException"/>
  16717. </method>
  16718. <method name="compress"
  16719. abstract="false" native="false" synchronized="false"
  16720. static="false" final="false" visibility="protected"
  16721. deprecated="not deprecated">
  16722. <exception name="IOException" type="java.io.IOException"/>
  16723. </method>
  16724. <method name="finish"
  16725. abstract="false" native="false" synchronized="false"
  16726. static="false" final="false" visibility="public"
  16727. deprecated="not deprecated">
  16728. <exception name="IOException" type="java.io.IOException"/>
  16729. </method>
  16730. <method name="resetState"
  16731. abstract="false" native="false" synchronized="false"
  16732. static="false" final="false" visibility="public"
  16733. deprecated="not deprecated">
  16734. <exception name="IOException" type="java.io.IOException"/>
  16735. </method>
  16736. <method name="close"
  16737. abstract="false" native="false" synchronized="false"
  16738. static="false" final="false" visibility="public"
  16739. deprecated="not deprecated">
  16740. <exception name="IOException" type="java.io.IOException"/>
  16741. </method>
  16742. <method name="write"
  16743. abstract="false" native="false" synchronized="false"
  16744. static="false" final="false" visibility="public"
  16745. deprecated="not deprecated">
  16746. <param name="b" type="int"/>
  16747. <exception name="IOException" type="java.io.IOException"/>
  16748. </method>
  16749. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  16750. transient="false" volatile="false"
  16751. static="false" final="false" visibility="protected"
  16752. deprecated="not deprecated">
  16753. </field>
  16754. <field name="buffer" type="byte[]"
  16755. transient="false" volatile="false"
  16756. static="false" final="false" visibility="protected"
  16757. deprecated="not deprecated">
  16758. </field>
  16759. <field name="closed" type="boolean"
  16760. transient="false" volatile="false"
  16761. static="false" final="false" visibility="protected"
  16762. deprecated="not deprecated">
  16763. </field>
  16764. </class>
  16765. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  16766. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  16767. <interface name="Decompressor" abstract="true"
  16768. static="false" final="false" visibility="public"
  16769. deprecated="not deprecated">
  16770. <method name="setInput"
  16771. abstract="false" native="false" synchronized="false"
  16772. static="false" final="false" visibility="public"
  16773. deprecated="not deprecated">
  16774. <param name="b" type="byte[]"/>
  16775. <param name="off" type="int"/>
  16776. <param name="len" type="int"/>
  16777. <doc>
  16778. <![CDATA[Sets input data for decompression.
  16779. This should be called if and only if {@link #needsInput()} returns
  16780. <code>true</code> indicating that more input data is required.
  16781. (Both native and non-native versions of various Decompressors require
  16782. that the data passed in via <code>b[]</code> remain unmodified until
  16783. the caller is explicitly notified--via {@link #needsInput()}--that the
  16784. buffer may be safely modified. With this requirement, an extra
  16785. buffer-copy can be avoided.)
  16786. @param b Input data
  16787. @param off Start offset
  16788. @param len Length]]>
  16789. </doc>
  16790. </method>
  16791. <method name="needsInput" return="boolean"
  16792. abstract="false" native="false" synchronized="false"
  16793. static="false" final="false" visibility="public"
  16794. deprecated="not deprecated">
  16795. <doc>
  16796. <![CDATA[Returns true if the input data buffer is empty and
  16797. {@link #setInput(byte[], int, int)} should be called to
  16798. provide more input.
  16799. @return <code>true</code> if the input data buffer is empty and
  16800. {@link #setInput(byte[], int, int)} should be called in
  16801. order to provide more input.]]>
  16802. </doc>
  16803. </method>
  16804. <method name="setDictionary"
  16805. abstract="false" native="false" synchronized="false"
  16806. static="false" final="false" visibility="public"
  16807. deprecated="not deprecated">
  16808. <param name="b" type="byte[]"/>
  16809. <param name="off" type="int"/>
  16810. <param name="len" type="int"/>
  16811. <doc>
  16812. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16813. is used when the history buffer can be predetermined.
  16814. @param b Dictionary data bytes
  16815. @param off Start offset
  16816. @param len Length]]>
  16817. </doc>
  16818. </method>
  16819. <method name="needsDictionary" return="boolean"
  16820. abstract="false" native="false" synchronized="false"
  16821. static="false" final="false" visibility="public"
  16822. deprecated="not deprecated">
  16823. <doc>
  16824. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  16825. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  16826. </doc>
  16827. </method>
  16828. <method name="finished" return="boolean"
  16829. abstract="false" native="false" synchronized="false"
  16830. static="false" final="false" visibility="public"
  16831. deprecated="not deprecated">
  16832. <doc>
  16833. <![CDATA[Returns true if the end of the decompressed
  16834. data output stream has been reached.
  16835. @return <code>true</code> if the end of the decompressed
  16836. data output stream has been reached.]]>
  16837. </doc>
  16838. </method>
  16839. <method name="decompress" return="int"
  16840. abstract="false" native="false" synchronized="false"
  16841. static="false" final="false" visibility="public"
  16842. deprecated="not deprecated">
  16843. <param name="b" type="byte[]"/>
  16844. <param name="off" type="int"/>
  16845. <param name="len" type="int"/>
  16846. <exception name="IOException" type="java.io.IOException"/>
  16847. <doc>
  16848. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  16849. of bytes of uncompressed data. A return value of 0 indicates that
  16850. {@link #needsInput()} should be called in order to determine if more
  16851. input data is required.
  16852. @param b Buffer for the compressed data
  16853. @param off Start offset of the data
  16854. @param len Size of the buffer
  16855. @return The actual number of bytes of compressed data.
  16856. @throws IOException]]>
  16857. </doc>
  16858. </method>
  16859. <method name="getRemaining" return="int"
  16860. abstract="false" native="false" synchronized="false"
  16861. static="false" final="false" visibility="public"
  16862. deprecated="not deprecated">
  16863. <doc>
  16864. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  16865. typically called after the decompressor has finished decompressing
  16866. the current gzip stream (a.k.a. "member").]]>
  16867. </doc>
  16868. </method>
  16869. <method name="reset"
  16870. abstract="false" native="false" synchronized="false"
  16871. static="false" final="false" visibility="public"
  16872. deprecated="not deprecated">
  16873. <doc>
  16874. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  16875. input data can be processed.]]>
  16876. </doc>
  16877. </method>
  16878. <method name="end"
  16879. abstract="false" native="false" synchronized="false"
  16880. static="false" final="false" visibility="public"
  16881. deprecated="not deprecated">
  16882. <doc>
  16883. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  16884. </doc>
  16885. </method>
  16886. <doc>
  16887. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  16888. plugged into a {@link CompressionInputStream} to compress data.
  16889. This is modelled after {@link java.util.zip.Inflater}]]>
  16890. </doc>
  16891. </interface>
  16892. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  16893. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  16894. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  16895. abstract="false"
  16896. static="false" final="false" visibility="public"
  16897. deprecated="not deprecated">
  16898. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16899. static="false" final="false" visibility="public"
  16900. deprecated="not deprecated">
  16901. </constructor>
  16902. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16903. static="false" final="false" visibility="public"
  16904. deprecated="not deprecated">
  16905. </constructor>
  16906. <constructor name="DecompressorStream" type="java.io.InputStream"
  16907. static="false" final="false" visibility="protected"
  16908. deprecated="not deprecated">
  16909. <doc>
  16910. <![CDATA[Allow derived classes to directly set the underlying stream.
  16911. @param in Underlying input stream.]]>
  16912. </doc>
  16913. </constructor>
  16914. <method name="read" return="int"
  16915. abstract="false" native="false" synchronized="false"
  16916. static="false" final="false" visibility="public"
  16917. deprecated="not deprecated">
  16918. <exception name="IOException" type="java.io.IOException"/>
  16919. </method>
  16920. <method name="read" return="int"
  16921. abstract="false" native="false" synchronized="false"
  16922. static="false" final="false" visibility="public"
  16923. deprecated="not deprecated">
  16924. <param name="b" type="byte[]"/>
  16925. <param name="off" type="int"/>
  16926. <param name="len" type="int"/>
  16927. <exception name="IOException" type="java.io.IOException"/>
  16928. </method>
  16929. <method name="decompress" return="int"
  16930. abstract="false" native="false" synchronized="false"
  16931. static="false" final="false" visibility="protected"
  16932. deprecated="not deprecated">
  16933. <param name="b" type="byte[]"/>
  16934. <param name="off" type="int"/>
  16935. <param name="len" type="int"/>
  16936. <exception name="IOException" type="java.io.IOException"/>
  16937. </method>
  16938. <method name="getCompressedData" return="int"
  16939. abstract="false" native="false" synchronized="false"
  16940. static="false" final="false" visibility="protected"
  16941. deprecated="not deprecated">
  16942. <exception name="IOException" type="java.io.IOException"/>
  16943. </method>
  16944. <method name="checkStream"
  16945. abstract="false" native="false" synchronized="false"
  16946. static="false" final="false" visibility="protected"
  16947. deprecated="not deprecated">
  16948. <exception name="IOException" type="java.io.IOException"/>
  16949. </method>
  16950. <method name="resetState"
  16951. abstract="false" native="false" synchronized="false"
  16952. static="false" final="false" visibility="public"
  16953. deprecated="not deprecated">
  16954. <exception name="IOException" type="java.io.IOException"/>
  16955. </method>
  16956. <method name="skip" return="long"
  16957. abstract="false" native="false" synchronized="false"
  16958. static="false" final="false" visibility="public"
  16959. deprecated="not deprecated">
  16960. <param name="n" type="long"/>
  16961. <exception name="IOException" type="java.io.IOException"/>
  16962. </method>
  16963. <method name="available" return="int"
  16964. abstract="false" native="false" synchronized="false"
  16965. static="false" final="false" visibility="public"
  16966. deprecated="not deprecated">
  16967. <exception name="IOException" type="java.io.IOException"/>
  16968. </method>
  16969. <method name="close"
  16970. abstract="false" native="false" synchronized="false"
  16971. static="false" final="false" visibility="public"
  16972. deprecated="not deprecated">
  16973. <exception name="IOException" type="java.io.IOException"/>
  16974. </method>
  16975. <method name="markSupported" return="boolean"
  16976. abstract="false" native="false" synchronized="false"
  16977. static="false" final="false" visibility="public"
  16978. deprecated="not deprecated">
  16979. </method>
  16980. <method name="mark"
  16981. abstract="false" native="false" synchronized="true"
  16982. static="false" final="false" visibility="public"
  16983. deprecated="not deprecated">
  16984. <param name="readlimit" type="int"/>
  16985. </method>
  16986. <method name="reset"
  16987. abstract="false" native="false" synchronized="true"
  16988. static="false" final="false" visibility="public"
  16989. deprecated="not deprecated">
  16990. <exception name="IOException" type="java.io.IOException"/>
  16991. </method>
  16992. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  16993. transient="false" volatile="false"
  16994. static="false" final="false" visibility="protected"
  16995. deprecated="not deprecated">
  16996. </field>
  16997. <field name="buffer" type="byte[]"
  16998. transient="false" volatile="false"
  16999. static="false" final="false" visibility="protected"
  17000. deprecated="not deprecated">
  17001. </field>
  17002. <field name="eof" type="boolean"
  17003. transient="false" volatile="false"
  17004. static="false" final="false" visibility="protected"
  17005. deprecated="not deprecated">
  17006. </field>
  17007. <field name="closed" type="boolean"
  17008. transient="false" volatile="false"
  17009. static="false" final="false" visibility="protected"
  17010. deprecated="not deprecated">
  17011. </field>
  17012. </class>
  17013. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17014. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17015. <class name="DefaultCodec" extends="java.lang.Object"
  17016. abstract="false"
  17017. static="false" final="false" visibility="public"
  17018. deprecated="not deprecated">
  17019. <implements name="org.apache.hadoop.conf.Configurable"/>
  17020. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17021. <constructor name="DefaultCodec"
  17022. static="false" final="false" visibility="public"
  17023. deprecated="not deprecated">
  17024. </constructor>
  17025. <method name="setConf"
  17026. abstract="false" native="false" synchronized="false"
  17027. static="false" final="false" visibility="public"
  17028. deprecated="not deprecated">
  17029. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17030. </method>
  17031. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17032. abstract="false" native="false" synchronized="false"
  17033. static="false" final="false" visibility="public"
  17034. deprecated="not deprecated">
  17035. </method>
  17036. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17037. abstract="false" native="false" synchronized="false"
  17038. static="false" final="false" visibility="public"
  17039. deprecated="not deprecated">
  17040. <param name="out" type="java.io.OutputStream"/>
  17041. <exception name="IOException" type="java.io.IOException"/>
  17042. </method>
  17043. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17044. abstract="false" native="false" synchronized="false"
  17045. static="false" final="false" visibility="public"
  17046. deprecated="not deprecated">
  17047. <param name="out" type="java.io.OutputStream"/>
  17048. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17049. <exception name="IOException" type="java.io.IOException"/>
  17050. </method>
  17051. <method name="getCompressorType" return="java.lang.Class"
  17052. abstract="false" native="false" synchronized="false"
  17053. static="false" final="false" visibility="public"
  17054. deprecated="not deprecated">
  17055. </method>
  17056. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17057. abstract="false" native="false" synchronized="false"
  17058. static="false" final="false" visibility="public"
  17059. deprecated="not deprecated">
  17060. </method>
  17061. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17062. abstract="false" native="false" synchronized="false"
  17063. static="false" final="false" visibility="public"
  17064. deprecated="not deprecated">
  17065. <param name="in" type="java.io.InputStream"/>
  17066. <exception name="IOException" type="java.io.IOException"/>
  17067. </method>
  17068. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17069. abstract="false" native="false" synchronized="false"
  17070. static="false" final="false" visibility="public"
  17071. deprecated="not deprecated">
  17072. <param name="in" type="java.io.InputStream"/>
  17073. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17074. <exception name="IOException" type="java.io.IOException"/>
  17075. </method>
  17076. <method name="getDecompressorType" return="java.lang.Class"
  17077. abstract="false" native="false" synchronized="false"
  17078. static="false" final="false" visibility="public"
  17079. deprecated="not deprecated">
  17080. </method>
  17081. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17082. abstract="false" native="false" synchronized="false"
  17083. static="false" final="false" visibility="public"
  17084. deprecated="not deprecated">
  17085. </method>
  17086. <method name="getDefaultExtension" return="java.lang.String"
  17087. abstract="false" native="false" synchronized="false"
  17088. static="false" final="false" visibility="public"
  17089. deprecated="not deprecated">
  17090. </method>
  17091. </class>
  17092. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17093. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17094. <interface name="DoNotPool" abstract="true"
  17095. static="false" final="false" visibility="public"
  17096. deprecated="not deprecated">
  17097. <implements name="java.lang.annotation.Annotation"/>
  17098. <doc>
  17099. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17100. type as not to be pooled.]]>
  17101. </doc>
  17102. </interface>
  17103. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17104. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17105. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17106. abstract="false"
  17107. static="false" final="false" visibility="public"
  17108. deprecated="not deprecated">
  17109. <constructor name="GzipCodec"
  17110. static="false" final="false" visibility="public"
  17111. deprecated="not deprecated">
  17112. </constructor>
  17113. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17114. abstract="false" native="false" synchronized="false"
  17115. static="false" final="false" visibility="public"
  17116. deprecated="not deprecated">
  17117. <param name="out" type="java.io.OutputStream"/>
  17118. <exception name="IOException" type="java.io.IOException"/>
  17119. </method>
  17120. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17121. abstract="false" native="false" synchronized="false"
  17122. static="false" final="false" visibility="public"
  17123. deprecated="not deprecated">
  17124. <param name="out" type="java.io.OutputStream"/>
  17125. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17126. <exception name="IOException" type="java.io.IOException"/>
  17127. </method>
  17128. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17129. abstract="false" native="false" synchronized="false"
  17130. static="false" final="false" visibility="public"
  17131. deprecated="not deprecated">
  17132. </method>
  17133. <method name="getCompressorType" return="java.lang.Class"
  17134. abstract="false" native="false" synchronized="false"
  17135. static="false" final="false" visibility="public"
  17136. deprecated="not deprecated">
  17137. </method>
  17138. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17139. abstract="false" native="false" synchronized="false"
  17140. static="false" final="false" visibility="public"
  17141. deprecated="not deprecated">
  17142. <param name="in" type="java.io.InputStream"/>
  17143. <exception name="IOException" type="java.io.IOException"/>
  17144. </method>
  17145. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17146. abstract="false" native="false" synchronized="false"
  17147. static="false" final="false" visibility="public"
  17148. deprecated="not deprecated">
  17149. <param name="in" type="java.io.InputStream"/>
  17150. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17151. <exception name="IOException" type="java.io.IOException"/>
  17152. </method>
  17153. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17154. abstract="false" native="false" synchronized="false"
  17155. static="false" final="false" visibility="public"
  17156. deprecated="not deprecated">
  17157. </method>
  17158. <method name="getDecompressorType" return="java.lang.Class"
  17159. abstract="false" native="false" synchronized="false"
  17160. static="false" final="false" visibility="public"
  17161. deprecated="not deprecated">
  17162. </method>
  17163. <method name="getDefaultExtension" return="java.lang.String"
  17164. abstract="false" native="false" synchronized="false"
  17165. static="false" final="false" visibility="public"
  17166. deprecated="not deprecated">
  17167. </method>
  17168. <doc>
  17169. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17170. </doc>
  17171. </class>
  17172. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17173. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17174. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17175. abstract="false"
  17176. static="true" final="false" visibility="protected"
  17177. deprecated="not deprecated">
  17178. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17179. static="false" final="false" visibility="public"
  17180. deprecated="not deprecated">
  17181. <exception name="IOException" type="java.io.IOException"/>
  17182. </constructor>
  17183. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17184. static="false" final="false" visibility="protected"
  17185. deprecated="not deprecated">
  17186. <doc>
  17187. <![CDATA[Allow children types to put a different type in here.
  17188. @param out the Deflater stream to use]]>
  17189. </doc>
  17190. </constructor>
  17191. <method name="close"
  17192. abstract="false" native="false" synchronized="false"
  17193. static="false" final="false" visibility="public"
  17194. deprecated="not deprecated">
  17195. <exception name="IOException" type="java.io.IOException"/>
  17196. </method>
  17197. <method name="flush"
  17198. abstract="false" native="false" synchronized="false"
  17199. static="false" final="false" visibility="public"
  17200. deprecated="not deprecated">
  17201. <exception name="IOException" type="java.io.IOException"/>
  17202. </method>
  17203. <method name="write"
  17204. abstract="false" native="false" synchronized="false"
  17205. static="false" final="false" visibility="public"
  17206. deprecated="not deprecated">
  17207. <param name="b" type="int"/>
  17208. <exception name="IOException" type="java.io.IOException"/>
  17209. </method>
  17210. <method name="write"
  17211. abstract="false" native="false" synchronized="false"
  17212. static="false" final="false" visibility="public"
  17213. deprecated="not deprecated">
  17214. <param name="data" type="byte[]"/>
  17215. <param name="offset" type="int"/>
  17216. <param name="length" type="int"/>
  17217. <exception name="IOException" type="java.io.IOException"/>
  17218. </method>
  17219. <method name="finish"
  17220. abstract="false" native="false" synchronized="false"
  17221. static="false" final="false" visibility="public"
  17222. deprecated="not deprecated">
  17223. <exception name="IOException" type="java.io.IOException"/>
  17224. </method>
  17225. <method name="resetState"
  17226. abstract="false" native="false" synchronized="false"
  17227. static="false" final="false" visibility="public"
  17228. deprecated="not deprecated">
  17229. <exception name="IOException" type="java.io.IOException"/>
  17230. </method>
  17231. <doc>
  17232. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17233. a CompressionOutputStream.]]>
  17234. </doc>
  17235. </class>
  17236. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17237. </package>
  17238. <package name="org.apache.hadoop.io.compress.bzip2">
  17239. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17240. <interface name="BZip2Constants" abstract="true"
  17241. static="false" final="false" visibility="public"
  17242. deprecated="not deprecated">
  17243. <field name="baseBlockSize" type="int"
  17244. transient="false" volatile="false"
  17245. static="true" final="true" visibility="public"
  17246. deprecated="not deprecated">
  17247. </field>
  17248. <field name="MAX_ALPHA_SIZE" type="int"
  17249. transient="false" volatile="false"
  17250. static="true" final="true" visibility="public"
  17251. deprecated="not deprecated">
  17252. </field>
  17253. <field name="MAX_CODE_LEN" type="int"
  17254. transient="false" volatile="false"
  17255. static="true" final="true" visibility="public"
  17256. deprecated="not deprecated">
  17257. </field>
  17258. <field name="RUNA" type="int"
  17259. transient="false" volatile="false"
  17260. static="true" final="true" visibility="public"
  17261. deprecated="not deprecated">
  17262. </field>
  17263. <field name="RUNB" type="int"
  17264. transient="false" volatile="false"
  17265. static="true" final="true" visibility="public"
  17266. deprecated="not deprecated">
  17267. </field>
  17268. <field name="N_GROUPS" type="int"
  17269. transient="false" volatile="false"
  17270. static="true" final="true" visibility="public"
  17271. deprecated="not deprecated">
  17272. </field>
  17273. <field name="G_SIZE" type="int"
  17274. transient="false" volatile="false"
  17275. static="true" final="true" visibility="public"
  17276. deprecated="not deprecated">
  17277. </field>
  17278. <field name="N_ITERS" type="int"
  17279. transient="false" volatile="false"
  17280. static="true" final="true" visibility="public"
  17281. deprecated="not deprecated">
  17282. </field>
  17283. <field name="MAX_SELECTORS" type="int"
  17284. transient="false" volatile="false"
  17285. static="true" final="true" visibility="public"
  17286. deprecated="not deprecated">
  17287. </field>
  17288. <field name="NUM_OVERSHOOT_BYTES" type="int"
  17289. transient="false" volatile="false"
  17290. static="true" final="true" visibility="public"
  17291. deprecated="not deprecated">
  17292. </field>
  17293. <field name="rNums" type="int[]"
  17294. transient="false" volatile="false"
  17295. static="true" final="true" visibility="public"
  17296. deprecated="not deprecated">
  17297. <doc>
  17298. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  17299. is.
  17300. <p>
  17301. FIXME: This array should be in a private or package private location,
  17302. since it could be modified by malicious code.
  17303. </p>]]>
  17304. </doc>
  17305. </field>
  17306. <doc>
  17307. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  17308. and static data.
  17309. <p>
  17310. This interface is public for historical purposes. You should have no need to
  17311. use it.
  17312. </p>]]>
  17313. </doc>
  17314. </interface>
  17315. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17316. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17317. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  17318. abstract="false"
  17319. static="false" final="false" visibility="public"
  17320. deprecated="not deprecated">
  17321. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17322. <constructor name="BZip2DummyCompressor"
  17323. static="false" final="false" visibility="public"
  17324. deprecated="not deprecated">
  17325. </constructor>
  17326. <method name="compress" return="int"
  17327. abstract="false" native="false" synchronized="false"
  17328. static="false" final="false" visibility="public"
  17329. deprecated="not deprecated">
  17330. <param name="b" type="byte[]"/>
  17331. <param name="off" type="int"/>
  17332. <param name="len" type="int"/>
  17333. <exception name="IOException" type="java.io.IOException"/>
  17334. </method>
  17335. <method name="end"
  17336. abstract="false" native="false" synchronized="false"
  17337. static="false" final="false" visibility="public"
  17338. deprecated="not deprecated">
  17339. </method>
  17340. <method name="finish"
  17341. abstract="false" native="false" synchronized="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. </method>
  17345. <method name="finished" return="boolean"
  17346. abstract="false" native="false" synchronized="false"
  17347. static="false" final="false" visibility="public"
  17348. deprecated="not deprecated">
  17349. </method>
  17350. <method name="getBytesRead" return="long"
  17351. abstract="false" native="false" synchronized="false"
  17352. static="false" final="false" visibility="public"
  17353. deprecated="not deprecated">
  17354. </method>
  17355. <method name="getBytesWritten" return="long"
  17356. abstract="false" native="false" synchronized="false"
  17357. static="false" final="false" visibility="public"
  17358. deprecated="not deprecated">
  17359. </method>
  17360. <method name="needsInput" return="boolean"
  17361. abstract="false" native="false" synchronized="false"
  17362. static="false" final="false" visibility="public"
  17363. deprecated="not deprecated">
  17364. </method>
  17365. <method name="reset"
  17366. abstract="false" native="false" synchronized="false"
  17367. static="false" final="false" visibility="public"
  17368. deprecated="not deprecated">
  17369. </method>
  17370. <method name="setDictionary"
  17371. abstract="false" native="false" synchronized="false"
  17372. static="false" final="false" visibility="public"
  17373. deprecated="not deprecated">
  17374. <param name="b" type="byte[]"/>
  17375. <param name="off" type="int"/>
  17376. <param name="len" type="int"/>
  17377. </method>
  17378. <method name="setInput"
  17379. abstract="false" native="false" synchronized="false"
  17380. static="false" final="false" visibility="public"
  17381. deprecated="not deprecated">
  17382. <param name="b" type="byte[]"/>
  17383. <param name="off" type="int"/>
  17384. <param name="len" type="int"/>
  17385. </method>
  17386. <method name="reinit"
  17387. abstract="false" native="false" synchronized="false"
  17388. static="false" final="false" visibility="public"
  17389. deprecated="not deprecated">
  17390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17391. </method>
  17392. <doc>
  17393. <![CDATA[This is a dummy compressor for BZip2.]]>
  17394. </doc>
  17395. </class>
  17396. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17397. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17398. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  17399. abstract="false"
  17400. static="false" final="false" visibility="public"
  17401. deprecated="not deprecated">
  17402. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17403. <constructor name="BZip2DummyDecompressor"
  17404. static="false" final="false" visibility="public"
  17405. deprecated="not deprecated">
  17406. </constructor>
  17407. <method name="decompress" return="int"
  17408. abstract="false" native="false" synchronized="false"
  17409. static="false" final="false" visibility="public"
  17410. deprecated="not deprecated">
  17411. <param name="b" type="byte[]"/>
  17412. <param name="off" type="int"/>
  17413. <param name="len" type="int"/>
  17414. <exception name="IOException" type="java.io.IOException"/>
  17415. </method>
  17416. <method name="end"
  17417. abstract="false" native="false" synchronized="false"
  17418. static="false" final="false" visibility="public"
  17419. deprecated="not deprecated">
  17420. </method>
  17421. <method name="finished" return="boolean"
  17422. abstract="false" native="false" synchronized="false"
  17423. static="false" final="false" visibility="public"
  17424. deprecated="not deprecated">
  17425. </method>
  17426. <method name="needsDictionary" return="boolean"
  17427. abstract="false" native="false" synchronized="false"
  17428. static="false" final="false" visibility="public"
  17429. deprecated="not deprecated">
  17430. </method>
  17431. <method name="needsInput" return="boolean"
  17432. abstract="false" native="false" synchronized="false"
  17433. static="false" final="false" visibility="public"
  17434. deprecated="not deprecated">
  17435. </method>
  17436. <method name="getRemaining" return="int"
  17437. abstract="false" native="false" synchronized="false"
  17438. static="false" final="false" visibility="public"
  17439. deprecated="not deprecated">
  17440. </method>
  17441. <method name="reset"
  17442. abstract="false" native="false" synchronized="false"
  17443. static="false" final="false" visibility="public"
  17444. deprecated="not deprecated">
  17445. </method>
  17446. <method name="setDictionary"
  17447. abstract="false" native="false" synchronized="false"
  17448. static="false" final="false" visibility="public"
  17449. deprecated="not deprecated">
  17450. <param name="b" type="byte[]"/>
  17451. <param name="off" type="int"/>
  17452. <param name="len" type="int"/>
  17453. </method>
  17454. <method name="setInput"
  17455. abstract="false" native="false" synchronized="false"
  17456. static="false" final="false" visibility="public"
  17457. deprecated="not deprecated">
  17458. <param name="b" type="byte[]"/>
  17459. <param name="off" type="int"/>
  17460. <param name="len" type="int"/>
  17461. </method>
  17462. <doc>
  17463. <![CDATA[This is a dummy decompressor for BZip2.]]>
  17464. </doc>
  17465. </class>
  17466. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17467. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17468. <class name="CBZip2InputStream" extends="java.io.InputStream"
  17469. abstract="false"
  17470. static="false" final="false" visibility="public"
  17471. deprecated="not deprecated">
  17472. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17473. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  17474. static="false" final="false" visibility="public"
  17475. deprecated="not deprecated">
  17476. <exception name="IOException" type="java.io.IOException"/>
  17477. <doc>
  17478. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  17479. specified stream.
  17480. <p>
  17481. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  17482. constructor expects the next byte in the stream to be the first one after
  17483. the magic. Thus callers have to skip the first two bytes. Otherwise this
  17484. constructor will throw an exception.
  17485. </p>
  17486. @throws IOException
  17487. if the stream content is malformed or an I/O error occurs.
  17488. @throws NullPointerException
  17489. if <tt>in == null</tt>]]>
  17490. </doc>
  17491. </constructor>
  17492. <method name="read" return="int"
  17493. abstract="false" native="false" synchronized="false"
  17494. static="false" final="false" visibility="public"
  17495. deprecated="not deprecated">
  17496. <exception name="IOException" type="java.io.IOException"/>
  17497. </method>
  17498. <method name="read" return="int"
  17499. abstract="false" native="false" synchronized="false"
  17500. static="false" final="false" visibility="public"
  17501. deprecated="not deprecated">
  17502. <param name="dest" type="byte[]"/>
  17503. <param name="offs" type="int"/>
  17504. <param name="len" type="int"/>
  17505. <exception name="IOException" type="java.io.IOException"/>
  17506. </method>
  17507. <method name="close"
  17508. abstract="false" native="false" synchronized="false"
  17509. static="false" final="false" visibility="public"
  17510. deprecated="not deprecated">
  17511. <exception name="IOException" type="java.io.IOException"/>
  17512. </method>
  17513. <doc>
  17514. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  17515. header chars) to be read as any other stream.
  17516. <p>
  17517. The decompression requires large amounts of memory. Thus you should call the
  17518. {@link #close() close()} method as soon as possible, to force
  17519. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  17520. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  17521. usage.
  17522. </p>
  17523. <p>
  17524. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  17525. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  17526. Thus you should consider to use a buffered source stream.
  17527. </p>
  17528. <p>
  17529. Instances of this class are not threadsafe.
  17530. </p>]]>
  17531. </doc>
  17532. </class>
  17533. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17534. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  17535. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  17536. abstract="false"
  17537. static="false" final="false" visibility="public"
  17538. deprecated="not deprecated">
  17539. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17540. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  17541. static="false" final="false" visibility="public"
  17542. deprecated="not deprecated">
  17543. <exception name="IOException" type="java.io.IOException"/>
  17544. <doc>
  17545. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  17546. <p>
  17547. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17548. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17549. constructor.
  17550. </p>
  17551. @param out *
  17552. the destination stream.
  17553. @throws IOException
  17554. if an I/O error occurs in the specified stream.
  17555. @throws NullPointerException
  17556. if <code>out == null</code>.]]>
  17557. </doc>
  17558. </constructor>
  17559. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  17560. static="false" final="false" visibility="public"
  17561. deprecated="not deprecated">
  17562. <exception name="IOException" type="java.io.IOException"/>
  17563. <doc>
  17564. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  17565. <p>
  17566. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17567. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17568. constructor.
  17569. </p>
  17570. @param out
  17571. the destination stream.
  17572. @param blockSize
  17573. the blockSize as 100k units.
  17574. @throws IOException
  17575. if an I/O error occurs in the specified stream.
  17576. @throws IllegalArgumentException
  17577. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  17578. @throws NullPointerException
  17579. if <code>out == null</code>.
  17580. @see #MIN_BLOCKSIZE
  17581. @see #MAX_BLOCKSIZE]]>
  17582. </doc>
  17583. </constructor>
  17584. <method name="hbMakeCodeLengths"
  17585. abstract="false" native="false" synchronized="false"
  17586. static="true" final="false" visibility="protected"
  17587. deprecated="not deprecated">
  17588. <param name="len" type="char[]"/>
  17589. <param name="freq" type="int[]"/>
  17590. <param name="alphaSize" type="int"/>
  17591. <param name="maxLen" type="int"/>
  17592. <doc>
  17593. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  17594. don't know what it does then you don't need it.]]>
  17595. </doc>
  17596. </method>
  17597. <method name="chooseBlockSize" return="int"
  17598. abstract="false" native="false" synchronized="false"
  17599. static="true" final="false" visibility="public"
  17600. deprecated="not deprecated">
  17601. <param name="inputLength" type="long"/>
  17602. <doc>
  17603. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  17604. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  17605. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  17606. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  17607. always.
  17608. @param inputLength
  17609. The length of the data which will be compressed by
  17610. <tt>CBZip2OutputStream</tt>.]]>
  17611. </doc>
  17612. </method>
  17613. <method name="write"
  17614. abstract="false" native="false" synchronized="false"
  17615. static="false" final="false" visibility="public"
  17616. deprecated="not deprecated">
  17617. <param name="b" type="int"/>
  17618. <exception name="IOException" type="java.io.IOException"/>
  17619. </method>
  17620. <method name="finalize"
  17621. abstract="false" native="false" synchronized="false"
  17622. static="false" final="false" visibility="protected"
  17623. deprecated="not deprecated">
  17624. <exception name="Throwable" type="java.lang.Throwable"/>
  17625. <doc>
  17626. <![CDATA[Overriden to close the stream.]]>
  17627. </doc>
  17628. </method>
  17629. <method name="finish"
  17630. abstract="false" native="false" synchronized="false"
  17631. static="false" final="false" visibility="public"
  17632. deprecated="not deprecated">
  17633. <exception name="IOException" type="java.io.IOException"/>
  17634. </method>
  17635. <method name="close"
  17636. abstract="false" native="false" synchronized="false"
  17637. static="false" final="false" visibility="public"
  17638. deprecated="not deprecated">
  17639. <exception name="IOException" type="java.io.IOException"/>
  17640. </method>
  17641. <method name="flush"
  17642. abstract="false" native="false" synchronized="false"
  17643. static="false" final="false" visibility="public"
  17644. deprecated="not deprecated">
  17645. <exception name="IOException" type="java.io.IOException"/>
  17646. </method>
  17647. <method name="getBlockSize" return="int"
  17648. abstract="false" native="false" synchronized="false"
  17649. static="false" final="true" visibility="public"
  17650. deprecated="not deprecated">
  17651. <doc>
  17652. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  17653. </doc>
  17654. </method>
  17655. <method name="write"
  17656. abstract="false" native="false" synchronized="false"
  17657. static="false" final="false" visibility="public"
  17658. deprecated="not deprecated">
  17659. <param name="buf" type="byte[]"/>
  17660. <param name="offs" type="int"/>
  17661. <param name="len" type="int"/>
  17662. <exception name="IOException" type="java.io.IOException"/>
  17663. </method>
  17664. <field name="MIN_BLOCKSIZE" type="int"
  17665. transient="false" volatile="false"
  17666. static="true" final="true" visibility="public"
  17667. deprecated="not deprecated">
  17668. <doc>
  17669. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  17670. </doc>
  17671. </field>
  17672. <field name="MAX_BLOCKSIZE" type="int"
  17673. transient="false" volatile="false"
  17674. static="true" final="true" visibility="public"
  17675. deprecated="not deprecated">
  17676. <doc>
  17677. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  17678. </doc>
  17679. </field>
  17680. <field name="SETMASK" type="int"
  17681. transient="false" volatile="false"
  17682. static="true" final="true" visibility="protected"
  17683. deprecated="not deprecated">
  17684. <doc>
  17685. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17686. don't know what it means then you don't need it.]]>
  17687. </doc>
  17688. </field>
  17689. <field name="CLEARMASK" type="int"
  17690. transient="false" volatile="false"
  17691. static="true" final="true" visibility="protected"
  17692. deprecated="not deprecated">
  17693. <doc>
  17694. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17695. don't know what it means then you don't need it.]]>
  17696. </doc>
  17697. </field>
  17698. <field name="GREATER_ICOST" type="int"
  17699. transient="false" volatile="false"
  17700. static="true" final="true" visibility="protected"
  17701. deprecated="not deprecated">
  17702. <doc>
  17703. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17704. don't know what it means then you don't need it.]]>
  17705. </doc>
  17706. </field>
  17707. <field name="LESSER_ICOST" type="int"
  17708. transient="false" volatile="false"
  17709. static="true" final="true" visibility="protected"
  17710. deprecated="not deprecated">
  17711. <doc>
  17712. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17713. don't know what it means then you don't need it.]]>
  17714. </doc>
  17715. </field>
  17716. <field name="SMALL_THRESH" type="int"
  17717. transient="false" volatile="false"
  17718. static="true" final="true" visibility="protected"
  17719. deprecated="not deprecated">
  17720. <doc>
  17721. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17722. don't know what it means then you don't need it.]]>
  17723. </doc>
  17724. </field>
  17725. <field name="DEPTH_THRESH" type="int"
  17726. transient="false" volatile="false"
  17727. static="true" final="true" visibility="protected"
  17728. deprecated="not deprecated">
  17729. <doc>
  17730. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17731. don't know what it means then you don't need it.]]>
  17732. </doc>
  17733. </field>
  17734. <field name="WORK_FACTOR" type="int"
  17735. transient="false" volatile="false"
  17736. static="true" final="true" visibility="protected"
  17737. deprecated="not deprecated">
  17738. <doc>
  17739. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17740. don't know what it means then you don't need it.]]>
  17741. </doc>
  17742. </field>
  17743. <field name="QSORT_STACK_SIZE" type="int"
  17744. transient="false" volatile="false"
  17745. static="true" final="true" visibility="protected"
  17746. deprecated="not deprecated">
  17747. <doc>
  17748. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17749. don't know what it means then you don't need it.
  17750. <p>
  17751. If you are ever unlucky/improbable enough to get a stack overflow whilst
  17752. sorting, increase the following constant and try again. In practice I
  17753. have never seen the stack go above 27 elems, so the following limit seems
  17754. very generous.
  17755. </p>]]>
  17756. </doc>
  17757. </field>
  17758. <doc>
  17759. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  17760. header chars) into another stream.
  17761. <p>
  17762. The compression requires large amounts of memory. Thus you should call the
  17763. {@link #close() close()} method as soon as possible, to force
  17764. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  17765. </p>
  17766. <p>
  17767. You can shrink the amount of allocated memory and maybe raise the compression
  17768. speed by choosing a lower blocksize, which in turn may cause a lower
  17769. compression ratio. You can avoid unnecessary memory allocation by avoiding
  17770. using a blocksize which is bigger than the size of the input.
  17771. </p>
  17772. <p>
  17773. You can compute the memory usage for compressing by the following formula:
  17774. </p>
  17775. <pre>
  17776. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  17777. </pre>
  17778. <p>
  17779. To get the memory required for decompression by {@link CBZip2InputStream
  17780. CBZip2InputStream} use
  17781. </p>
  17782. <pre>
  17783. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  17784. </pre>
  17785. <table width="100%" border="1">
  17786. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  17787. </colgroup>
  17788. <tr>
  17789. <th colspan="3">Memory usage by blocksize</th>
  17790. </tr>
  17791. <tr>
  17792. <th align="right">Blocksize</th> <th align="right">Compression<br>
  17793. memory usage</th> <th align="right">Decompression<br>
  17794. memory usage</th>
  17795. </tr>
  17796. <tr>
  17797. <td align="right">100k</td>
  17798. <td align="right">1300k</td>
  17799. <td align="right">565k</td>
  17800. </tr>
  17801. <tr>
  17802. <td align="right">200k</td>
  17803. <td align="right">2200k</td>
  17804. <td align="right">1065k</td>
  17805. </tr>
  17806. <tr>
  17807. <td align="right">300k</td>
  17808. <td align="right">3100k</td>
  17809. <td align="right">1565k</td>
  17810. </tr>
  17811. <tr>
  17812. <td align="right">400k</td>
  17813. <td align="right">4000k</td>
  17814. <td align="right">2065k</td>
  17815. </tr>
  17816. <tr>
  17817. <td align="right">500k</td>
  17818. <td align="right">4900k</td>
  17819. <td align="right">2565k</td>
  17820. </tr>
  17821. <tr>
  17822. <td align="right">600k</td>
  17823. <td align="right">5800k</td>
  17824. <td align="right">3065k</td>
  17825. </tr>
  17826. <tr>
  17827. <td align="right">700k</td>
  17828. <td align="right">6700k</td>
  17829. <td align="right">3565k</td>
  17830. </tr>
  17831. <tr>
  17832. <td align="right">800k</td>
  17833. <td align="right">7600k</td>
  17834. <td align="right">4065k</td>
  17835. </tr>
  17836. <tr>
  17837. <td align="right">900k</td>
  17838. <td align="right">8500k</td>
  17839. <td align="right">4565k</td>
  17840. </tr>
  17841. </table>
  17842. <p>
  17843. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  17844. bzipped input is smaller than one block.
  17845. </p>
  17846. <p>
  17847. Instances of this class are not threadsafe.
  17848. </p>
  17849. <p>
  17850. TODO: Update to BZip2 1.0.1
  17851. </p>]]>
  17852. </doc>
  17853. </class>
  17854. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  17855. </package>
  17856. <package name="org.apache.hadoop.io.compress.zlib">
  17857. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  17858. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  17859. abstract="false"
  17860. static="false" final="false" visibility="public"
  17861. deprecated="not deprecated">
  17862. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17863. <constructor name="BuiltInGzipDecompressor"
  17864. static="false" final="false" visibility="public"
  17865. deprecated="not deprecated">
  17866. <doc>
  17867. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  17868. </doc>
  17869. </constructor>
  17870. <method name="needsInput" return="boolean"
  17871. abstract="false" native="false" synchronized="true"
  17872. static="false" final="false" visibility="public"
  17873. deprecated="not deprecated">
  17874. <doc>
  17875. <![CDATA[{@inheritDoc}]]>
  17876. </doc>
  17877. </method>
  17878. <method name="setInput"
  17879. abstract="false" native="false" synchronized="true"
  17880. static="false" final="false" visibility="public"
  17881. deprecated="not deprecated">
  17882. <param name="b" type="byte[]"/>
  17883. <param name="off" type="int"/>
  17884. <param name="len" type="int"/>
  17885. <doc>
  17886. <![CDATA[{@inheritDoc}]]>
  17887. </doc>
  17888. </method>
  17889. <method name="decompress" return="int"
  17890. abstract="false" native="false" synchronized="true"
  17891. static="false" final="false" visibility="public"
  17892. deprecated="not deprecated">
  17893. <param name="b" type="byte[]"/>
  17894. <param name="off" type="int"/>
  17895. <param name="len" type="int"/>
  17896. <exception name="IOException" type="java.io.IOException"/>
  17897. <doc>
  17898. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  17899. provided buffer.
  17900. @return the number of decompressed bytes placed into b]]>
  17901. </doc>
  17902. </method>
  17903. <method name="getBytesRead" return="long"
  17904. abstract="false" native="false" synchronized="true"
  17905. static="false" final="false" visibility="public"
  17906. deprecated="not deprecated">
  17907. <doc>
  17908. <![CDATA[Returns the total number of compressed bytes input so far, including
  17909. gzip header/trailer bytes.</p>
  17910. @return the total (non-negative) number of compressed bytes read so far]]>
  17911. </doc>
  17912. </method>
  17913. <method name="getRemaining" return="int"
  17914. abstract="false" native="false" synchronized="true"
  17915. static="false" final="false" visibility="public"
  17916. deprecated="not deprecated">
  17917. <doc>
  17918. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  17919. called when finished() is true to determine amount of post-gzip-stream
  17920. data. Note that, other than the finished state with concatenated data
  17921. after the end of the current gzip stream, this will never return a
  17922. non-zero value unless called after {@link #setInput(byte[] b, int off,
  17923. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  17924. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  17925. always returns zero, except in finished state with concatenated data.)</p>
  17926. @return the total (non-negative) number of unprocessed bytes in input]]>
  17927. </doc>
  17928. </method>
  17929. <method name="needsDictionary" return="boolean"
  17930. abstract="false" native="false" synchronized="true"
  17931. static="false" final="false" visibility="public"
  17932. deprecated="not deprecated">
  17933. <doc>
  17934. <![CDATA[{@inheritDoc}]]>
  17935. </doc>
  17936. </method>
  17937. <method name="setDictionary"
  17938. abstract="false" native="false" synchronized="true"
  17939. static="false" final="false" visibility="public"
  17940. deprecated="not deprecated">
  17941. <param name="b" type="byte[]"/>
  17942. <param name="off" type="int"/>
  17943. <param name="len" type="int"/>
  17944. <doc>
  17945. <![CDATA[{@inheritDoc}]]>
  17946. </doc>
  17947. </method>
  17948. <method name="finished" return="boolean"
  17949. abstract="false" native="false" synchronized="true"
  17950. static="false" final="false" visibility="public"
  17951. deprecated="not deprecated">
  17952. <doc>
  17953. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  17954. reached.</p>]]>
  17955. </doc>
  17956. </method>
  17957. <method name="reset"
  17958. abstract="false" native="false" synchronized="true"
  17959. static="false" final="false" visibility="public"
  17960. deprecated="not deprecated">
  17961. <doc>
  17962. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  17963. current gzip substream is finished.</p>]]>
  17964. </doc>
  17965. </method>
  17966. <method name="end"
  17967. abstract="false" native="false" synchronized="true"
  17968. static="false" final="false" visibility="public"
  17969. deprecated="not deprecated">
  17970. <doc>
  17971. <![CDATA[{@inheritDoc}]]>
  17972. </doc>
  17973. </method>
  17974. <doc>
  17975. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  17976. http://www.gzip.org/]]>
  17977. </doc>
  17978. </class>
  17979. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  17980. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  17981. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  17982. abstract="false"
  17983. static="false" final="false" visibility="public"
  17984. deprecated="not deprecated">
  17985. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17986. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  17987. static="false" final="false" visibility="public"
  17988. deprecated="not deprecated">
  17989. </constructor>
  17990. <constructor name="BuiltInZlibDeflater" type="int"
  17991. static="false" final="false" visibility="public"
  17992. deprecated="not deprecated">
  17993. </constructor>
  17994. <constructor name="BuiltInZlibDeflater"
  17995. static="false" final="false" visibility="public"
  17996. deprecated="not deprecated">
  17997. </constructor>
  17998. <method name="compress" return="int"
  17999. abstract="false" native="false" synchronized="true"
  18000. static="false" final="false" visibility="public"
  18001. deprecated="not deprecated">
  18002. <param name="b" type="byte[]"/>
  18003. <param name="off" type="int"/>
  18004. <param name="len" type="int"/>
  18005. <exception name="IOException" type="java.io.IOException"/>
  18006. </method>
  18007. <method name="reinit"
  18008. abstract="false" native="false" synchronized="false"
  18009. static="false" final="false" visibility="public"
  18010. deprecated="not deprecated">
  18011. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18012. <doc>
  18013. <![CDATA[reinit the compressor with the given configuration. It will reset the
  18014. compressor's compression level and compression strategy. Different from
  18015. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  18016. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  18017. It will use DEFAULT_STRATEGY as default if the configured compression
  18018. strategy is not supported.]]>
  18019. </doc>
  18020. </method>
  18021. <doc>
  18022. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  18023. to org.apache.hadoop.io.compress.Compressor interface.]]>
  18024. </doc>
  18025. </class>
  18026. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  18027. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  18028. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  18029. abstract="false"
  18030. static="false" final="false" visibility="public"
  18031. deprecated="not deprecated">
  18032. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18033. <constructor name="BuiltInZlibInflater" type="boolean"
  18034. static="false" final="false" visibility="public"
  18035. deprecated="not deprecated">
  18036. </constructor>
  18037. <constructor name="BuiltInZlibInflater"
  18038. static="false" final="false" visibility="public"
  18039. deprecated="not deprecated">
  18040. </constructor>
  18041. <method name="decompress" return="int"
  18042. abstract="false" native="false" synchronized="true"
  18043. static="false" final="false" visibility="public"
  18044. deprecated="not deprecated">
  18045. <param name="b" type="byte[]"/>
  18046. <param name="off" type="int"/>
  18047. <param name="len" type="int"/>
  18048. <exception name="IOException" type="java.io.IOException"/>
  18049. </method>
  18050. <doc>
  18051. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  18052. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  18053. </doc>
  18054. </class>
  18055. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  18056. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  18057. <class name="ZlibCompressor" extends="java.lang.Object"
  18058. abstract="false"
  18059. static="false" final="false" visibility="public"
  18060. deprecated="not deprecated">
  18061. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18062. <constructor name="ZlibCompressor"
  18063. static="false" final="false" visibility="public"
  18064. deprecated="not deprecated">
  18065. <doc>
  18066. <![CDATA[Creates a new compressor with the default compression level.
  18067. Compressed data will be generated in ZLIB format.]]>
  18068. </doc>
  18069. </constructor>
  18070. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  18071. static="false" final="false" visibility="public"
  18072. deprecated="not deprecated">
  18073. <doc>
  18074. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  18075. </doc>
  18076. </constructor>
  18077. <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"
  18078. static="false" final="false" visibility="public"
  18079. deprecated="not deprecated">
  18080. <doc>
  18081. <![CDATA[Creates a new compressor using the specified compression level.
  18082. Compressed data will be generated in ZLIB format.
  18083. @param level Compression level #CompressionLevel
  18084. @param strategy Compression strategy #CompressionStrategy
  18085. @param header Compression header #CompressionHeader
  18086. @param directBufferSize Size of the direct buffer to be used.]]>
  18087. </doc>
  18088. </constructor>
  18089. <method name="construct"
  18090. abstract="false" native="false" synchronized="false"
  18091. static="false" final="true" visibility="protected"
  18092. deprecated="not deprecated">
  18093. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  18094. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  18095. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  18096. <param name="directBufferSize" type="int"/>
  18097. </method>
  18098. <method name="reinit"
  18099. abstract="false" native="false" synchronized="true"
  18100. static="false" final="false" visibility="public"
  18101. deprecated="not deprecated">
  18102. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18103. <doc>
  18104. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  18105. the given Configuration. It will reset the compressor's compression level
  18106. and compression strategy.
  18107. @param conf Configuration storing new settings]]>
  18108. </doc>
  18109. </method>
  18110. <method name="setInput"
  18111. abstract="false" native="false" synchronized="true"
  18112. static="false" final="false" visibility="public"
  18113. deprecated="not deprecated">
  18114. <param name="b" type="byte[]"/>
  18115. <param name="off" type="int"/>
  18116. <param name="len" type="int"/>
  18117. </method>
  18118. <method name="setDictionary"
  18119. abstract="false" native="false" synchronized="true"
  18120. static="false" final="false" visibility="public"
  18121. deprecated="not deprecated">
  18122. <param name="b" type="byte[]"/>
  18123. <param name="off" type="int"/>
  18124. <param name="len" type="int"/>
  18125. </method>
  18126. <method name="needsInput" return="boolean"
  18127. abstract="false" native="false" synchronized="false"
  18128. static="false" final="false" visibility="public"
  18129. deprecated="not deprecated">
  18130. </method>
  18131. <method name="finish"
  18132. abstract="false" native="false" synchronized="true"
  18133. static="false" final="false" visibility="public"
  18134. deprecated="not deprecated">
  18135. </method>
  18136. <method name="finished" return="boolean"
  18137. abstract="false" native="false" synchronized="true"
  18138. static="false" final="false" visibility="public"
  18139. deprecated="not deprecated">
  18140. </method>
  18141. <method name="compress" return="int"
  18142. abstract="false" native="false" synchronized="true"
  18143. static="false" final="false" visibility="public"
  18144. deprecated="not deprecated">
  18145. <param name="b" type="byte[]"/>
  18146. <param name="off" type="int"/>
  18147. <param name="len" type="int"/>
  18148. <exception name="IOException" type="java.io.IOException"/>
  18149. </method>
  18150. <method name="getBytesWritten" return="long"
  18151. abstract="false" native="false" synchronized="true"
  18152. static="false" final="false" visibility="public"
  18153. deprecated="not deprecated">
  18154. <doc>
  18155. <![CDATA[Returns the total number of compressed bytes output so far.
  18156. @return the total (non-negative) number of compressed bytes output so far]]>
  18157. </doc>
  18158. </method>
  18159. <method name="getBytesRead" return="long"
  18160. abstract="false" native="false" synchronized="true"
  18161. static="false" final="false" visibility="public"
  18162. deprecated="not deprecated">
  18163. <doc>
  18164. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  18165. @return the total (non-negative) number of uncompressed bytes input so far]]>
  18166. </doc>
  18167. </method>
  18168. <method name="reset"
  18169. abstract="false" native="false" synchronized="true"
  18170. static="false" final="false" visibility="public"
  18171. deprecated="not deprecated">
  18172. </method>
  18173. <method name="end"
  18174. abstract="false" native="false" synchronized="true"
  18175. static="false" final="false" visibility="public"
  18176. deprecated="not deprecated">
  18177. </method>
  18178. <doc>
  18179. <![CDATA[A {@link Compressor} based on the popular
  18180. zlib compression algorithm.
  18181. http://www.zlib.net/]]>
  18182. </doc>
  18183. </class>
  18184. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  18185. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  18186. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  18187. abstract="false"
  18188. static="true" final="true" visibility="public"
  18189. deprecated="not deprecated">
  18190. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  18191. abstract="false" native="false" synchronized="false"
  18192. static="true" final="false" visibility="public"
  18193. deprecated="not deprecated">
  18194. </method>
  18195. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18196. abstract="false" native="false" synchronized="false"
  18197. static="true" final="false" visibility="public"
  18198. deprecated="not deprecated">
  18199. <param name="name" type="java.lang.String"/>
  18200. </method>
  18201. <method name="windowBits" return="int"
  18202. abstract="false" native="false" synchronized="false"
  18203. static="false" final="false" visibility="public"
  18204. deprecated="not deprecated">
  18205. </method>
  18206. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18207. transient="false" volatile="false"
  18208. static="true" final="true" visibility="public"
  18209. deprecated="not deprecated">
  18210. <doc>
  18211. <![CDATA[No headers/trailers/checksums.]]>
  18212. </doc>
  18213. </field>
  18214. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18215. transient="false" volatile="false"
  18216. static="true" final="true" visibility="public"
  18217. deprecated="not deprecated">
  18218. <doc>
  18219. <![CDATA[Default headers/trailers/checksums.]]>
  18220. </doc>
  18221. </field>
  18222. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18223. transient="false" volatile="false"
  18224. static="true" final="true" visibility="public"
  18225. deprecated="not deprecated">
  18226. <doc>
  18227. <![CDATA[Simple gzip headers/trailers.]]>
  18228. </doc>
  18229. </field>
  18230. <doc>
  18231. <![CDATA[The type of header for compressed data.]]>
  18232. </doc>
  18233. </class>
  18234. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  18235. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18236. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  18237. abstract="false"
  18238. static="true" final="true" visibility="public"
  18239. deprecated="not deprecated">
  18240. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  18241. abstract="false" native="false" synchronized="false"
  18242. static="true" final="false" visibility="public"
  18243. deprecated="not deprecated">
  18244. </method>
  18245. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18246. abstract="false" native="false" synchronized="false"
  18247. static="true" final="false" visibility="public"
  18248. deprecated="not deprecated">
  18249. <param name="name" type="java.lang.String"/>
  18250. </method>
  18251. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18252. transient="false" volatile="false"
  18253. static="true" final="true" visibility="public"
  18254. deprecated="not deprecated">
  18255. <doc>
  18256. <![CDATA[Compression level for no compression.]]>
  18257. </doc>
  18258. </field>
  18259. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18260. transient="false" volatile="false"
  18261. static="true" final="true" visibility="public"
  18262. deprecated="not deprecated">
  18263. <doc>
  18264. <![CDATA[Compression level for fastest compression.]]>
  18265. </doc>
  18266. </field>
  18267. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18268. transient="false" volatile="false"
  18269. static="true" final="true" visibility="public"
  18270. deprecated="not deprecated">
  18271. <doc>
  18272. <![CDATA[Compression level for best compression.]]>
  18273. </doc>
  18274. </field>
  18275. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18276. transient="false" volatile="false"
  18277. static="true" final="true" visibility="public"
  18278. deprecated="not deprecated">
  18279. <doc>
  18280. <![CDATA[Default compression level.]]>
  18281. </doc>
  18282. </field>
  18283. <doc>
  18284. <![CDATA[The compression level for zlib library.]]>
  18285. </doc>
  18286. </class>
  18287. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18288. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18289. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  18290. abstract="false"
  18291. static="true" final="true" visibility="public"
  18292. deprecated="not deprecated">
  18293. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  18294. abstract="false" native="false" synchronized="false"
  18295. static="true" final="false" visibility="public"
  18296. deprecated="not deprecated">
  18297. </method>
  18298. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18299. abstract="false" native="false" synchronized="false"
  18300. static="true" final="false" visibility="public"
  18301. deprecated="not deprecated">
  18302. <param name="name" type="java.lang.String"/>
  18303. </method>
  18304. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18305. transient="false" volatile="false"
  18306. static="true" final="true" visibility="public"
  18307. deprecated="not deprecated">
  18308. <doc>
  18309. <![CDATA[Compression strategy best used for data consisting mostly of small
  18310. values with a somewhat random distribution. Forces more Huffman coding
  18311. and less string matching.]]>
  18312. </doc>
  18313. </field>
  18314. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18315. transient="false" volatile="false"
  18316. static="true" final="true" visibility="public"
  18317. deprecated="not deprecated">
  18318. <doc>
  18319. <![CDATA[Compression strategy for Huffman coding only.]]>
  18320. </doc>
  18321. </field>
  18322. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18323. transient="false" volatile="false"
  18324. static="true" final="true" visibility="public"
  18325. deprecated="not deprecated">
  18326. <doc>
  18327. <![CDATA[Compression strategy to limit match distances to one
  18328. (run-length encoding).]]>
  18329. </doc>
  18330. </field>
  18331. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18332. transient="false" volatile="false"
  18333. static="true" final="true" visibility="public"
  18334. deprecated="not deprecated">
  18335. <doc>
  18336. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  18337. allowing for a simpler decoder for special applications.]]>
  18338. </doc>
  18339. </field>
  18340. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18341. transient="false" volatile="false"
  18342. static="true" final="true" visibility="public"
  18343. deprecated="not deprecated">
  18344. <doc>
  18345. <![CDATA[Default compression strategy.]]>
  18346. </doc>
  18347. </field>
  18348. <doc>
  18349. <![CDATA[The compression level for zlib library.]]>
  18350. </doc>
  18351. </class>
  18352. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18353. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18354. <class name="ZlibDecompressor" extends="java.lang.Object"
  18355. abstract="false"
  18356. static="false" final="false" visibility="public"
  18357. deprecated="not deprecated">
  18358. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18359. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  18360. static="false" final="false" visibility="public"
  18361. deprecated="not deprecated">
  18362. <doc>
  18363. <![CDATA[Creates a new decompressor.]]>
  18364. </doc>
  18365. </constructor>
  18366. <constructor name="ZlibDecompressor"
  18367. static="false" final="false" visibility="public"
  18368. deprecated="not deprecated">
  18369. </constructor>
  18370. <method name="setInput"
  18371. abstract="false" native="false" synchronized="true"
  18372. static="false" final="false" visibility="public"
  18373. deprecated="not deprecated">
  18374. <param name="b" type="byte[]"/>
  18375. <param name="off" type="int"/>
  18376. <param name="len" type="int"/>
  18377. </method>
  18378. <method name="setDictionary"
  18379. abstract="false" native="false" synchronized="true"
  18380. static="false" final="false" visibility="public"
  18381. deprecated="not deprecated">
  18382. <param name="b" type="byte[]"/>
  18383. <param name="off" type="int"/>
  18384. <param name="len" type="int"/>
  18385. </method>
  18386. <method name="needsInput" return="boolean"
  18387. abstract="false" native="false" synchronized="true"
  18388. static="false" final="false" visibility="public"
  18389. deprecated="not deprecated">
  18390. </method>
  18391. <method name="needsDictionary" return="boolean"
  18392. abstract="false" native="false" synchronized="true"
  18393. static="false" final="false" visibility="public"
  18394. deprecated="not deprecated">
  18395. </method>
  18396. <method name="finished" return="boolean"
  18397. abstract="false" native="false" synchronized="true"
  18398. static="false" final="false" visibility="public"
  18399. deprecated="not deprecated">
  18400. </method>
  18401. <method name="decompress" return="int"
  18402. abstract="false" native="false" synchronized="true"
  18403. static="false" final="false" visibility="public"
  18404. deprecated="not deprecated">
  18405. <param name="b" type="byte[]"/>
  18406. <param name="off" type="int"/>
  18407. <param name="len" type="int"/>
  18408. <exception name="IOException" type="java.io.IOException"/>
  18409. </method>
  18410. <method name="getBytesWritten" return="long"
  18411. abstract="false" native="false" synchronized="true"
  18412. static="false" final="false" visibility="public"
  18413. deprecated="not deprecated">
  18414. <doc>
  18415. <![CDATA[Returns the total number of uncompressed bytes output so far.
  18416. @return the total (non-negative) number of uncompressed bytes output so far]]>
  18417. </doc>
  18418. </method>
  18419. <method name="getBytesRead" return="long"
  18420. abstract="false" native="false" synchronized="true"
  18421. static="false" final="false" visibility="public"
  18422. deprecated="not deprecated">
  18423. <doc>
  18424. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  18425. @return the total (non-negative) number of compressed bytes input so far]]>
  18426. </doc>
  18427. </method>
  18428. <method name="getRemaining" return="int"
  18429. abstract="false" native="false" synchronized="true"
  18430. static="false" final="false" visibility="public"
  18431. deprecated="not deprecated">
  18432. <doc>
  18433. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  18434. called when finished() is true to determine amount of post-gzip-stream
  18435. data.</p>
  18436. @return the total (non-negative) number of unprocessed bytes in input]]>
  18437. </doc>
  18438. </method>
  18439. <method name="reset"
  18440. abstract="false" native="false" synchronized="true"
  18441. static="false" final="false" visibility="public"
  18442. deprecated="not deprecated">
  18443. <doc>
  18444. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  18445. </doc>
  18446. </method>
  18447. <method name="end"
  18448. abstract="false" native="false" synchronized="true"
  18449. static="false" final="false" visibility="public"
  18450. deprecated="not deprecated">
  18451. </method>
  18452. <method name="finalize"
  18453. abstract="false" native="false" synchronized="false"
  18454. static="false" final="false" visibility="protected"
  18455. deprecated="not deprecated">
  18456. </method>
  18457. <doc>
  18458. <![CDATA[A {@link Decompressor} based on the popular
  18459. zlib compression algorithm.
  18460. http://www.zlib.net/]]>
  18461. </doc>
  18462. </class>
  18463. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18464. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  18465. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  18466. abstract="false"
  18467. static="true" final="true" visibility="public"
  18468. deprecated="not deprecated">
  18469. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  18470. abstract="false" native="false" synchronized="false"
  18471. static="true" final="false" visibility="public"
  18472. deprecated="not deprecated">
  18473. </method>
  18474. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18475. abstract="false" native="false" synchronized="false"
  18476. static="true" final="false" visibility="public"
  18477. deprecated="not deprecated">
  18478. <param name="name" type="java.lang.String"/>
  18479. </method>
  18480. <method name="windowBits" return="int"
  18481. abstract="false" native="false" synchronized="false"
  18482. static="false" final="false" visibility="public"
  18483. deprecated="not deprecated">
  18484. </method>
  18485. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18486. transient="false" volatile="false"
  18487. static="true" final="true" visibility="public"
  18488. deprecated="not deprecated">
  18489. <doc>
  18490. <![CDATA[No headers/trailers/checksums.]]>
  18491. </doc>
  18492. </field>
  18493. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18494. transient="false" volatile="false"
  18495. static="true" final="true" visibility="public"
  18496. deprecated="not deprecated">
  18497. <doc>
  18498. <![CDATA[Default headers/trailers/checksums.]]>
  18499. </doc>
  18500. </field>
  18501. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18502. transient="false" volatile="false"
  18503. static="true" final="true" visibility="public"
  18504. deprecated="not deprecated">
  18505. <doc>
  18506. <![CDATA[Simple gzip headers/trailers.]]>
  18507. </doc>
  18508. </field>
  18509. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18510. transient="false" volatile="false"
  18511. static="true" final="true" visibility="public"
  18512. deprecated="not deprecated">
  18513. <doc>
  18514. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  18515. </doc>
  18516. </field>
  18517. <doc>
  18518. <![CDATA[The headers to detect from compressed data.]]>
  18519. </doc>
  18520. </class>
  18521. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  18522. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  18523. <class name="ZlibFactory" extends="java.lang.Object"
  18524. abstract="false"
  18525. static="false" final="false" visibility="public"
  18526. deprecated="not deprecated">
  18527. <constructor name="ZlibFactory"
  18528. static="false" final="false" visibility="public"
  18529. deprecated="not deprecated">
  18530. </constructor>
  18531. <method name="isNativeZlibLoaded" return="boolean"
  18532. abstract="false" native="false" synchronized="false"
  18533. static="true" final="false" visibility="public"
  18534. deprecated="not deprecated">
  18535. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18536. <doc>
  18537. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  18538. can be loaded for this job.
  18539. @param conf configuration
  18540. @return <code>true</code> if native-zlib is loaded & initialized
  18541. and can be loaded for this job, else <code>false</code>]]>
  18542. </doc>
  18543. </method>
  18544. <method name="getZlibCompressorType" return="java.lang.Class"
  18545. abstract="false" native="false" synchronized="false"
  18546. static="true" final="false" visibility="public"
  18547. deprecated="not deprecated">
  18548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18549. <doc>
  18550. <![CDATA[Return the appropriate type of the zlib compressor.
  18551. @param conf configuration
  18552. @return the appropriate type of the zlib compressor.]]>
  18553. </doc>
  18554. </method>
  18555. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  18556. abstract="false" native="false" synchronized="false"
  18557. static="true" final="false" visibility="public"
  18558. deprecated="not deprecated">
  18559. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18560. <doc>
  18561. <![CDATA[Return the appropriate implementation of the zlib compressor.
  18562. @param conf configuration
  18563. @return the appropriate implementation of the zlib compressor.]]>
  18564. </doc>
  18565. </method>
  18566. <method name="getZlibDecompressorType" return="java.lang.Class"
  18567. abstract="false" native="false" synchronized="false"
  18568. static="true" final="false" visibility="public"
  18569. deprecated="not deprecated">
  18570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18571. <doc>
  18572. <![CDATA[Return the appropriate type of the zlib decompressor.
  18573. @param conf configuration
  18574. @return the appropriate type of the zlib decompressor.]]>
  18575. </doc>
  18576. </method>
  18577. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  18578. abstract="false" native="false" synchronized="false"
  18579. static="true" final="false" visibility="public"
  18580. deprecated="not deprecated">
  18581. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18582. <doc>
  18583. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  18584. @param conf configuration
  18585. @return the appropriate implementation of the zlib decompressor.]]>
  18586. </doc>
  18587. </method>
  18588. <method name="setCompressionStrategy"
  18589. abstract="false" native="false" synchronized="false"
  18590. static="true" final="false" visibility="public"
  18591. deprecated="not deprecated">
  18592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18593. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  18594. </method>
  18595. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18596. abstract="false" native="false" synchronized="false"
  18597. static="true" final="false" visibility="public"
  18598. deprecated="not deprecated">
  18599. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18600. </method>
  18601. <method name="setCompressionLevel"
  18602. abstract="false" native="false" synchronized="false"
  18603. static="true" final="false" visibility="public"
  18604. deprecated="not deprecated">
  18605. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18606. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  18607. </method>
  18608. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18609. abstract="false" native="false" synchronized="false"
  18610. static="true" final="false" visibility="public"
  18611. deprecated="not deprecated">
  18612. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18613. </method>
  18614. <doc>
  18615. <![CDATA[A collection of factories to create the right
  18616. zlib/gzip compressor/decompressor instances.]]>
  18617. </doc>
  18618. </class>
  18619. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  18620. </package>
  18621. <package name="org.apache.hadoop.io.file.tfile">
  18622. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  18623. <class name="ByteArray" extends="java.lang.Object"
  18624. abstract="false"
  18625. static="false" final="true" visibility="public"
  18626. deprecated="not deprecated">
  18627. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18628. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  18629. static="false" final="false" visibility="public"
  18630. deprecated="not deprecated">
  18631. <doc>
  18632. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  18633. @param other]]>
  18634. </doc>
  18635. </constructor>
  18636. <constructor name="ByteArray" type="byte[]"
  18637. static="false" final="false" visibility="public"
  18638. deprecated="not deprecated">
  18639. <doc>
  18640. <![CDATA[Wrap a whole byte array as a RawComparable.
  18641. @param buffer
  18642. the byte array buffer.]]>
  18643. </doc>
  18644. </constructor>
  18645. <constructor name="ByteArray" type="byte[], int, int"
  18646. static="false" final="false" visibility="public"
  18647. deprecated="not deprecated">
  18648. <doc>
  18649. <![CDATA[Wrap a partial byte array as a RawComparable.
  18650. @param buffer
  18651. the byte array buffer.
  18652. @param offset
  18653. the starting offset
  18654. @param len
  18655. the length of the consecutive bytes to be wrapped.]]>
  18656. </doc>
  18657. </constructor>
  18658. <method name="buffer" return="byte[]"
  18659. abstract="false" native="false" synchronized="false"
  18660. static="false" final="false" visibility="public"
  18661. deprecated="not deprecated">
  18662. <doc>
  18663. <![CDATA[@return the underlying buffer.]]>
  18664. </doc>
  18665. </method>
  18666. <method name="offset" return="int"
  18667. abstract="false" native="false" synchronized="false"
  18668. static="false" final="false" visibility="public"
  18669. deprecated="not deprecated">
  18670. <doc>
  18671. <![CDATA[@return the offset in the buffer.]]>
  18672. </doc>
  18673. </method>
  18674. <method name="size" return="int"
  18675. abstract="false" native="false" synchronized="false"
  18676. static="false" final="false" visibility="public"
  18677. deprecated="not deprecated">
  18678. <doc>
  18679. <![CDATA[@return the size of the byte array.]]>
  18680. </doc>
  18681. </method>
  18682. <doc>
  18683. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  18684. as RawComparable objects.]]>
  18685. </doc>
  18686. </class>
  18687. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  18688. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  18689. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  18690. abstract="false"
  18691. static="false" final="false" visibility="public"
  18692. deprecated="not deprecated">
  18693. <doc>
  18694. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  18695. </doc>
  18696. </class>
  18697. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  18698. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  18699. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  18700. abstract="false"
  18701. static="false" final="false" visibility="public"
  18702. deprecated="not deprecated">
  18703. <doc>
  18704. <![CDATA[Exception - No such Meta Block with the given name.]]>
  18705. </doc>
  18706. </class>
  18707. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  18708. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18709. <interface name="RawComparable" abstract="true"
  18710. static="false" final="false" visibility="public"
  18711. deprecated="not deprecated">
  18712. <method name="buffer" return="byte[]"
  18713. abstract="false" native="false" synchronized="false"
  18714. static="false" final="false" visibility="public"
  18715. deprecated="not deprecated">
  18716. <doc>
  18717. <![CDATA[Get the underlying byte array.
  18718. @return The underlying byte array.]]>
  18719. </doc>
  18720. </method>
  18721. <method name="offset" return="int"
  18722. abstract="false" native="false" synchronized="false"
  18723. static="false" final="false" visibility="public"
  18724. deprecated="not deprecated">
  18725. <doc>
  18726. <![CDATA[Get the offset of the first byte in the byte array.
  18727. @return The offset of the first byte in the byte array.]]>
  18728. </doc>
  18729. </method>
  18730. <method name="size" return="int"
  18731. abstract="false" native="false" synchronized="false"
  18732. static="false" final="false" visibility="public"
  18733. deprecated="not deprecated">
  18734. <doc>
  18735. <![CDATA[Get the size of the byte range in the byte array.
  18736. @return The size of the byte range in the byte array.]]>
  18737. </doc>
  18738. </method>
  18739. <doc>
  18740. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  18741. This is useful in places where we need a single object reference to specify a
  18742. range of bytes in a byte array, such as {@link Comparable} or
  18743. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  18744. The actual comparison among RawComparable's requires an external
  18745. RawComparator and it is applications' responsibility to ensure two
  18746. RawComparable are supposed to be semantically comparable with the same
  18747. RawComparator.]]>
  18748. </doc>
  18749. </interface>
  18750. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18751. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  18752. <class name="TFile" extends="java.lang.Object"
  18753. abstract="false"
  18754. static="false" final="false" visibility="public"
  18755. deprecated="not deprecated">
  18756. <method name="makeComparator" return="java.util.Comparator"
  18757. abstract="false" native="false" synchronized="false"
  18758. static="true" final="false" visibility="public"
  18759. deprecated="not deprecated">
  18760. <param name="name" type="java.lang.String"/>
  18761. <doc>
  18762. <![CDATA[Make a raw comparator from a string name.
  18763. @param name
  18764. Comparator name
  18765. @return A RawComparable comparator.]]>
  18766. </doc>
  18767. </method>
  18768. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  18769. abstract="false" native="false" synchronized="false"
  18770. static="true" final="false" visibility="public"
  18771. deprecated="not deprecated">
  18772. <doc>
  18773. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  18774. TFile.Writer.
  18775. @return Array of strings, each represents a supported compression
  18776. algorithm. Currently, the following compression algorithms are
  18777. supported.
  18778. <ul>
  18779. <li>"none" - No compression.
  18780. <li>"lzo" - LZO compression.
  18781. <li>"gz" - GZIP compression.
  18782. </ul>]]>
  18783. </doc>
  18784. </method>
  18785. <method name="main"
  18786. abstract="false" native="false" synchronized="false"
  18787. static="true" final="false" visibility="public"
  18788. deprecated="not deprecated">
  18789. <param name="args" type="java.lang.String[]"/>
  18790. <doc>
  18791. <![CDATA[Dumping the TFile information.
  18792. @param args
  18793. A list of TFile paths.]]>
  18794. </doc>
  18795. </method>
  18796. <field name="COMPRESSION_GZ" type="java.lang.String"
  18797. transient="false" volatile="false"
  18798. static="true" final="true" visibility="public"
  18799. deprecated="not deprecated">
  18800. <doc>
  18801. <![CDATA[compression: gzip]]>
  18802. </doc>
  18803. </field>
  18804. <field name="COMPRESSION_LZO" type="java.lang.String"
  18805. transient="false" volatile="false"
  18806. static="true" final="true" visibility="public"
  18807. deprecated="not deprecated">
  18808. <doc>
  18809. <![CDATA[compression: lzo]]>
  18810. </doc>
  18811. </field>
  18812. <field name="COMPRESSION_NONE" type="java.lang.String"
  18813. transient="false" volatile="false"
  18814. static="true" final="true" visibility="public"
  18815. deprecated="not deprecated">
  18816. <doc>
  18817. <![CDATA[compression: none]]>
  18818. </doc>
  18819. </field>
  18820. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  18821. transient="false" volatile="false"
  18822. static="true" final="true" visibility="public"
  18823. deprecated="not deprecated">
  18824. <doc>
  18825. <![CDATA[comparator: memcmp]]>
  18826. </doc>
  18827. </field>
  18828. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  18829. transient="false" volatile="false"
  18830. static="true" final="true" visibility="public"
  18831. deprecated="not deprecated">
  18832. <doc>
  18833. <![CDATA[comparator prefix: java class]]>
  18834. </doc>
  18835. </field>
  18836. <doc>
  18837. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  18838. bytes. Keys are restricted to 64KB, value length is not restricted
  18839. (practically limited to the available disk storage). TFile further provides
  18840. the following features:
  18841. <ul>
  18842. <li>Block Compression.
  18843. <li>Named meta data blocks.
  18844. <li>Sorted or unsorted keys.
  18845. <li>Seek by key or by file offset.
  18846. </ul>
  18847. The memory footprint of a TFile includes the following:
  18848. <ul>
  18849. <li>Some constant overhead of reading or writing a compressed block.
  18850. <ul>
  18851. <li>Each compressed block requires one compression/decompression codec for
  18852. I/O.
  18853. <li>Temporary space to buffer the key.
  18854. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  18855. chunk encoded, so that we buffer at most one chunk of user data. By default,
  18856. the chunk buffer is 1MB. Reading chunked value does not require additional
  18857. memory.
  18858. </ul>
  18859. <li>TFile index, which is proportional to the total number of Data Blocks.
  18860. The total amount of memory needed to hold the index can be estimated as
  18861. (56+AvgKeySize)*NumBlocks.
  18862. <li>MetaBlock index, which is proportional to the total number of Meta
  18863. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  18864. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  18865. </ul>
  18866. <p>
  18867. The behavior of TFile can be customized by the following variables through
  18868. Configuration:
  18869. <ul>
  18870. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  18871. to 1MB. Values of the length less than the chunk size is guaranteed to have
  18872. known value length in read time (See
  18873. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  18874. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  18875. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  18876. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  18877. FSDataInputStream. Integer (in bytes). Default to 256KB.
  18878. </ul>
  18879. <p>
  18880. Suggestions on performance optimization.
  18881. <ul>
  18882. <li>Minimum block size. We recommend a setting of minimum block size between
  18883. 256KB to 1MB for general usage. Larger block size is preferred if files are
  18884. primarily for sequential access. However, it would lead to inefficient random
  18885. access (because there are more data to decompress). Smaller blocks are good
  18886. for random access, but require more memory to hold the block index, and may
  18887. be slower to create (because we must flush the compressor stream at the
  18888. conclusion of each data block, which leads to an FS I/O flush). Further, due
  18889. to the internal caching in Compression codec, the smallest possible block
  18890. size would be around 20KB-30KB.
  18891. <li>The current implementation does not offer true multi-threading for
  18892. reading. The implementation uses FSDataInputStream seek()+read(), which is
  18893. shown to be much faster than positioned-read call in single thread mode.
  18894. However, it also means that if multiple threads attempt to access the same
  18895. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  18896. sequentially even if they access different DFS blocks.
  18897. <li>Compression codec. Use "none" if the data is not very compressable (by
  18898. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  18899. as the starting point for experimenting. "gz" overs slightly better
  18900. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  18901. decompress, comparing to "lzo".
  18902. <li>File system buffering, if the underlying FSDataInputStream and
  18903. FSDataOutputStream is already adequately buffered; or if applications
  18904. reads/writes keys and values in large buffers, we can reduce the sizes of
  18905. input/output buffering in TFile layer by setting the configuration parameters
  18906. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  18907. </ul>
  18908. Some design rationale behind TFile can be found at <a
  18909. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  18910. </doc>
  18911. </class>
  18912. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  18913. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  18914. <class name="TFile.Reader" extends="java.lang.Object"
  18915. abstract="false"
  18916. static="true" final="false" visibility="public"
  18917. deprecated="not deprecated">
  18918. <implements name="java.io.Closeable"/>
  18919. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  18920. static="false" final="false" visibility="public"
  18921. deprecated="not deprecated">
  18922. <exception name="IOException" type="java.io.IOException"/>
  18923. <doc>
  18924. <![CDATA[Constructor
  18925. @param fsdis
  18926. FS input stream of the TFile.
  18927. @param fileLength
  18928. The length of TFile. This is required because we have no easy
  18929. way of knowing the actual size of the input file through the
  18930. File input stream.
  18931. @param conf
  18932. @throws IOException]]>
  18933. </doc>
  18934. </constructor>
  18935. <method name="close"
  18936. abstract="false" native="false" synchronized="false"
  18937. static="false" final="false" visibility="public"
  18938. deprecated="not deprecated">
  18939. <exception name="IOException" type="java.io.IOException"/>
  18940. <doc>
  18941. <![CDATA[Close the reader. The state of the Reader object is undefined after
  18942. close. Calling close() for multiple times has no effect.]]>
  18943. </doc>
  18944. </method>
  18945. <method name="getComparatorName" return="java.lang.String"
  18946. abstract="false" native="false" synchronized="false"
  18947. static="false" final="false" visibility="public"
  18948. deprecated="not deprecated">
  18949. <doc>
  18950. <![CDATA[Get the string representation of the comparator.
  18951. @return If the TFile is not sorted by keys, an empty string will be
  18952. returned. Otherwise, the actual comparator string that is
  18953. provided during the TFile creation time will be returned.]]>
  18954. </doc>
  18955. </method>
  18956. <method name="isSorted" return="boolean"
  18957. abstract="false" native="false" synchronized="false"
  18958. static="false" final="false" visibility="public"
  18959. deprecated="not deprecated">
  18960. <doc>
  18961. <![CDATA[Is the TFile sorted?
  18962. @return true if TFile is sorted.]]>
  18963. </doc>
  18964. </method>
  18965. <method name="getEntryCount" return="long"
  18966. abstract="false" native="false" synchronized="false"
  18967. static="false" final="false" visibility="public"
  18968. deprecated="not deprecated">
  18969. <doc>
  18970. <![CDATA[Get the number of key-value pair entries in TFile.
  18971. @return the number of key-value pairs in TFile]]>
  18972. </doc>
  18973. </method>
  18974. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18975. abstract="false" native="false" synchronized="false"
  18976. static="false" final="false" visibility="public"
  18977. deprecated="not deprecated">
  18978. <exception name="IOException" type="java.io.IOException"/>
  18979. <doc>
  18980. <![CDATA[Get the first key in the TFile.
  18981. @return The first key in the TFile.
  18982. @throws IOException]]>
  18983. </doc>
  18984. </method>
  18985. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18986. abstract="false" native="false" synchronized="false"
  18987. static="false" final="false" visibility="public"
  18988. deprecated="not deprecated">
  18989. <exception name="IOException" type="java.io.IOException"/>
  18990. <doc>
  18991. <![CDATA[Get the last key in the TFile.
  18992. @return The last key in the TFile.
  18993. @throws IOException]]>
  18994. </doc>
  18995. </method>
  18996. <method name="getEntryComparator" return="java.util.Comparator"
  18997. abstract="false" native="false" synchronized="false"
  18998. static="false" final="false" visibility="public"
  18999. deprecated="not deprecated">
  19000. <doc>
  19001. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  19002. stores the entries in a collection (such as PriorityQueue) and perform
  19003. sorting or comparison among entries based on the keys without copying out
  19004. the key.
  19005. @return An Entry Comparator..]]>
  19006. </doc>
  19007. </method>
  19008. <method name="getComparator" return="java.util.Comparator"
  19009. abstract="false" native="false" synchronized="false"
  19010. static="false" final="false" visibility="public"
  19011. deprecated="not deprecated">
  19012. <doc>
  19013. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  19014. string comparator representation.
  19015. @return a Comparator that can compare RawComparable's.]]>
  19016. </doc>
  19017. </method>
  19018. <method name="getMetaBlock" return="java.io.DataInputStream"
  19019. abstract="false" native="false" synchronized="false"
  19020. static="false" final="false" visibility="public"
  19021. deprecated="not deprecated">
  19022. <param name="name" type="java.lang.String"/>
  19023. <exception name="IOException" type="java.io.IOException"/>
  19024. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  19025. <doc>
  19026. <![CDATA[Stream access to a meta block.``
  19027. @param name
  19028. The name of the meta block.
  19029. @return The input stream.
  19030. @throws IOException
  19031. on I/O error.
  19032. @throws MetaBlockDoesNotExist
  19033. If the meta block with the name does not exist.]]>
  19034. </doc>
  19035. </method>
  19036. <method name="getRecordNumNear" return="long"
  19037. abstract="false" native="false" synchronized="false"
  19038. static="false" final="false" visibility="public"
  19039. deprecated="not deprecated">
  19040. <param name="offset" type="long"/>
  19041. <exception name="IOException" type="java.io.IOException"/>
  19042. <doc>
  19043. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  19044. whose byte offset in the TFile is greater than or equal to the specified
  19045. offset.
  19046. @param offset
  19047. the user supplied offset.
  19048. @return the RecordNum to the corresponding entry. If no such entry
  19049. exists, it returns the total entry count.
  19050. @throws IOException]]>
  19051. </doc>
  19052. </method>
  19053. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  19054. abstract="false" native="false" synchronized="false"
  19055. static="false" final="false" visibility="public"
  19056. deprecated="not deprecated">
  19057. <param name="offset" type="long"/>
  19058. <exception name="IOException" type="java.io.IOException"/>
  19059. <doc>
  19060. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  19061. than or equal to the specified offset.
  19062. @param offset
  19063. The file offset.
  19064. @return the key that fits the requirement; or null if no such key exists
  19065. (which could happen if the offset is close to the end of the
  19066. TFile).
  19067. @throws IOException]]>
  19068. </doc>
  19069. </method>
  19070. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19071. abstract="false" native="false" synchronized="false"
  19072. static="false" final="false" visibility="public"
  19073. deprecated="not deprecated">
  19074. <exception name="IOException" type="java.io.IOException"/>
  19075. <doc>
  19076. <![CDATA[Get a scanner than can scan the whole TFile.
  19077. @return The scanner object. A valid Scanner is always returned even if
  19078. the TFile is empty.
  19079. @throws IOException]]>
  19080. </doc>
  19081. </method>
  19082. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19083. abstract="false" native="false" synchronized="false"
  19084. static="false" final="false" visibility="public"
  19085. deprecated="not deprecated">
  19086. <param name="offset" type="long"/>
  19087. <param name="length" type="long"/>
  19088. <exception name="IOException" type="java.io.IOException"/>
  19089. <doc>
  19090. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  19091. @param offset
  19092. The beginning byte offset in the TFile.
  19093. @param length
  19094. The length of the region.
  19095. @return The actual coverage of the returned scanner tries to match the
  19096. specified byte-region but always round up to the compression
  19097. block boundaries. It is possible that the returned scanner
  19098. contains zero key-value pairs even if length is positive.
  19099. @throws IOException]]>
  19100. </doc>
  19101. </method>
  19102. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19103. abstract="false" native="false" synchronized="false"
  19104. static="false" final="false" visibility="public"
  19105. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  19106. <param name="beginKey" type="byte[]"/>
  19107. <param name="endKey" type="byte[]"/>
  19108. <exception name="IOException" type="java.io.IOException"/>
  19109. <doc>
  19110. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  19111. @param beginKey
  19112. Begin key of the scan (inclusive). If null, scan from the first
  19113. key-value entry of the TFile.
  19114. @param endKey
  19115. End key of the scan (exclusive). If null, scan up to the last
  19116. key-value entry of the TFile.
  19117. @return The actual coverage of the returned scanner will cover all keys
  19118. greater than or equal to the beginKey and less than the endKey.
  19119. @throws IOException
  19120. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  19121. </doc>
  19122. </method>
  19123. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19124. abstract="false" native="false" synchronized="false"
  19125. static="false" final="false" visibility="public"
  19126. deprecated="not deprecated">
  19127. <param name="beginKey" type="byte[]"/>
  19128. <param name="endKey" type="byte[]"/>
  19129. <exception name="IOException" type="java.io.IOException"/>
  19130. <doc>
  19131. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  19132. @param beginKey
  19133. Begin key of the scan (inclusive). If null, scan from the first
  19134. key-value entry of the TFile.
  19135. @param endKey
  19136. End key of the scan (exclusive). If null, scan up to the last
  19137. key-value entry of the TFile.
  19138. @return The actual coverage of the returned scanner will cover all keys
  19139. greater than or equal to the beginKey and less than the endKey.
  19140. @throws IOException]]>
  19141. </doc>
  19142. </method>
  19143. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19144. abstract="false" native="false" synchronized="false"
  19145. static="false" final="false" visibility="public"
  19146. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  19147. instead.">
  19148. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19149. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19150. <exception name="IOException" type="java.io.IOException"/>
  19151. <doc>
  19152. <![CDATA[Get a scanner that covers a specific key range.
  19153. @param beginKey
  19154. Begin key of the scan (inclusive). If null, scan from the first
  19155. key-value entry of the TFile.
  19156. @param endKey
  19157. End key of the scan (exclusive). If null, scan up to the last
  19158. key-value entry of the TFile.
  19159. @return The actual coverage of the returned scanner will cover all keys
  19160. greater than or equal to the beginKey and less than the endKey.
  19161. @throws IOException
  19162. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  19163. instead.]]>
  19164. </doc>
  19165. </method>
  19166. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19167. abstract="false" native="false" synchronized="false"
  19168. static="false" final="false" visibility="public"
  19169. deprecated="not deprecated">
  19170. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19171. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19172. <exception name="IOException" type="java.io.IOException"/>
  19173. <doc>
  19174. <![CDATA[Get a scanner that covers a specific key range.
  19175. @param beginKey
  19176. Begin key of the scan (inclusive). If null, scan from the first
  19177. key-value entry of the TFile.
  19178. @param endKey
  19179. End key of the scan (exclusive). If null, scan up to the last
  19180. key-value entry of the TFile.
  19181. @return The actual coverage of the returned scanner will cover all keys
  19182. greater than or equal to the beginKey and less than the endKey.
  19183. @throws IOException]]>
  19184. </doc>
  19185. </method>
  19186. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19187. abstract="false" native="false" synchronized="false"
  19188. static="false" final="false" visibility="public"
  19189. deprecated="not deprecated">
  19190. <param name="beginRecNum" type="long"/>
  19191. <param name="endRecNum" type="long"/>
  19192. <exception name="IOException" type="java.io.IOException"/>
  19193. <doc>
  19194. <![CDATA[Create a scanner that covers a range of records.
  19195. @param beginRecNum
  19196. The RecordNum for the first record (inclusive).
  19197. @param endRecNum
  19198. The RecordNum for the last record (exclusive). To scan the whole
  19199. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  19200. @return The TFile scanner that covers the specified range of records.
  19201. @throws IOException]]>
  19202. </doc>
  19203. </method>
  19204. <doc>
  19205. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  19206. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  19207. ) , a portion of TFile based on byte offsets (
  19208. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  19209. fall in a certain key range (for sorted TFile only,
  19210. {@link Reader#createScannerByKey(byte[], byte[])} or
  19211. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  19212. </doc>
  19213. </class>
  19214. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  19215. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19216. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  19217. abstract="false"
  19218. static="true" final="false" visibility="public"
  19219. deprecated="not deprecated">
  19220. <implements name="java.io.Closeable"/>
  19221. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  19222. static="false" final="false" visibility="protected"
  19223. deprecated="not deprecated">
  19224. <exception name="IOException" type="java.io.IOException"/>
  19225. <doc>
  19226. <![CDATA[Constructor
  19227. @param reader
  19228. The TFile reader object.
  19229. @param offBegin
  19230. Begin byte-offset of the scan.
  19231. @param offEnd
  19232. End byte-offset of the scan.
  19233. @throws IOException
  19234. The offsets will be rounded to the beginning of a compressed
  19235. block whose offset is greater than or equal to the specified
  19236. offset.]]>
  19237. </doc>
  19238. </constructor>
  19239. <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"
  19240. static="false" final="false" visibility="protected"
  19241. deprecated="not deprecated">
  19242. <exception name="IOException" type="java.io.IOException"/>
  19243. <doc>
  19244. <![CDATA[Constructor
  19245. @param reader
  19246. The TFile reader object.
  19247. @param beginKey
  19248. Begin key of the scan. If null, scan from the first <K,V>
  19249. entry of the TFile.
  19250. @param endKey
  19251. End key of the scan. If null, scan up to the last <K, V> entry
  19252. of the TFile.
  19253. @throws IOException]]>
  19254. </doc>
  19255. </constructor>
  19256. <method name="seekTo" return="boolean"
  19257. abstract="false" native="false" synchronized="false"
  19258. static="false" final="false" visibility="public"
  19259. deprecated="not deprecated">
  19260. <param name="key" type="byte[]"/>
  19261. <exception name="IOException" type="java.io.IOException"/>
  19262. <doc>
  19263. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19264. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  19265. returned by the previous entry() call will be invalid.
  19266. @param key
  19267. The input key
  19268. @return true if we find an equal key.
  19269. @throws IOException]]>
  19270. </doc>
  19271. </method>
  19272. <method name="seekTo" return="boolean"
  19273. abstract="false" native="false" synchronized="false"
  19274. static="false" final="false" visibility="public"
  19275. deprecated="not deprecated">
  19276. <param name="key" type="byte[]"/>
  19277. <param name="keyOffset" type="int"/>
  19278. <param name="keyLen" type="int"/>
  19279. <exception name="IOException" type="java.io.IOException"/>
  19280. <doc>
  19281. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19282. to the input key. The entry returned by the previous entry() call will
  19283. be invalid.
  19284. @param key
  19285. The input key
  19286. @param keyOffset
  19287. offset in the key buffer.
  19288. @param keyLen
  19289. key buffer length.
  19290. @return true if we find an equal key; false otherwise.
  19291. @throws IOException]]>
  19292. </doc>
  19293. </method>
  19294. <method name="rewind"
  19295. abstract="false" native="false" synchronized="false"
  19296. static="false" final="false" visibility="public"
  19297. deprecated="not deprecated">
  19298. <exception name="IOException" type="java.io.IOException"/>
  19299. <doc>
  19300. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  19301. previous entry() call will be invalid.
  19302. @throws IOException]]>
  19303. </doc>
  19304. </method>
  19305. <method name="seekToEnd"
  19306. abstract="false" native="false" synchronized="false"
  19307. static="false" final="false" visibility="public"
  19308. deprecated="not deprecated">
  19309. <exception name="IOException" type="java.io.IOException"/>
  19310. <doc>
  19311. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  19312. entry() call will be invalid.
  19313. @throws IOException]]>
  19314. </doc>
  19315. </method>
  19316. <method name="lowerBound"
  19317. abstract="false" native="false" synchronized="false"
  19318. static="false" final="false" visibility="public"
  19319. deprecated="not deprecated">
  19320. <param name="key" type="byte[]"/>
  19321. <exception name="IOException" type="java.io.IOException"/>
  19322. <doc>
  19323. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19324. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  19325. entry returned by the previous entry() call will be invalid.
  19326. @param key
  19327. The input key
  19328. @throws IOException]]>
  19329. </doc>
  19330. </method>
  19331. <method name="lowerBound"
  19332. abstract="false" native="false" synchronized="false"
  19333. static="false" final="false" visibility="public"
  19334. deprecated="not deprecated">
  19335. <param name="key" type="byte[]"/>
  19336. <param name="keyOffset" type="int"/>
  19337. <param name="keyLen" type="int"/>
  19338. <exception name="IOException" type="java.io.IOException"/>
  19339. <doc>
  19340. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19341. to the input key. The entry returned by the previous entry() call will
  19342. be invalid.
  19343. @param key
  19344. The input key
  19345. @param keyOffset
  19346. offset in the key buffer.
  19347. @param keyLen
  19348. key buffer length.
  19349. @throws IOException]]>
  19350. </doc>
  19351. </method>
  19352. <method name="upperBound"
  19353. abstract="false" native="false" synchronized="false"
  19354. static="false" final="false" visibility="public"
  19355. deprecated="not deprecated">
  19356. <param name="key" type="byte[]"/>
  19357. <exception name="IOException" type="java.io.IOException"/>
  19358. <doc>
  19359. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19360. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  19361. returned by the previous entry() call will be invalid.
  19362. @param key
  19363. The input key
  19364. @throws IOException]]>
  19365. </doc>
  19366. </method>
  19367. <method name="upperBound"
  19368. abstract="false" native="false" synchronized="false"
  19369. static="false" final="false" visibility="public"
  19370. deprecated="not deprecated">
  19371. <param name="key" type="byte[]"/>
  19372. <param name="keyOffset" type="int"/>
  19373. <param name="keyLen" type="int"/>
  19374. <exception name="IOException" type="java.io.IOException"/>
  19375. <doc>
  19376. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19377. the input key. The entry returned by the previous entry() call will be
  19378. invalid.
  19379. @param key
  19380. The input key
  19381. @param keyOffset
  19382. offset in the key buffer.
  19383. @param keyLen
  19384. key buffer length.
  19385. @throws IOException]]>
  19386. </doc>
  19387. </method>
  19388. <method name="advance" return="boolean"
  19389. abstract="false" native="false" synchronized="false"
  19390. static="false" final="false" visibility="public"
  19391. deprecated="not deprecated">
  19392. <exception name="IOException" type="java.io.IOException"/>
  19393. <doc>
  19394. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  19395. previous entry() call will be invalid.
  19396. @return true if the cursor successfully moves. False when cursor is
  19397. already at the end location and cannot be advanced.
  19398. @throws IOException]]>
  19399. </doc>
  19400. </method>
  19401. <method name="close"
  19402. abstract="false" native="false" synchronized="false"
  19403. static="false" final="false" visibility="public"
  19404. deprecated="not deprecated">
  19405. <exception name="IOException" type="java.io.IOException"/>
  19406. <doc>
  19407. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  19408. scanner after calling close is not defined. The entry returned by the
  19409. previous entry() call will be invalid.]]>
  19410. </doc>
  19411. </method>
  19412. <method name="atEnd" return="boolean"
  19413. abstract="false" native="false" synchronized="false"
  19414. static="false" final="false" visibility="public"
  19415. deprecated="not deprecated">
  19416. <doc>
  19417. <![CDATA[Is cursor at the end location?
  19418. @return true if the cursor is at the end location.]]>
  19419. </doc>
  19420. </method>
  19421. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  19422. abstract="false" native="false" synchronized="false"
  19423. static="false" final="false" visibility="public"
  19424. deprecated="not deprecated">
  19425. <exception name="IOException" type="java.io.IOException"/>
  19426. <doc>
  19427. <![CDATA[Get an entry to access the key and value.
  19428. @return The Entry object to access the key and value.
  19429. @throws IOException]]>
  19430. </doc>
  19431. </method>
  19432. <method name="getRecordNum" return="long"
  19433. abstract="false" native="false" synchronized="false"
  19434. static="false" final="false" visibility="public"
  19435. deprecated="not deprecated">
  19436. <exception name="IOException" type="java.io.IOException"/>
  19437. <doc>
  19438. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  19439. @return The RecordNum corresponding to the entry pointed by the cursor.
  19440. @throws IOException]]>
  19441. </doc>
  19442. </method>
  19443. <doc>
  19444. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  19445. creation, points to the first key-value pair in the scan range. If the
  19446. scan range is empty, the cursor will point to the end of the scan range.
  19447. <p>
  19448. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  19449. location of the scanner.
  19450. <p>
  19451. Use {@link Scanner#advance()} to move the cursor to the next key-value
  19452. pair (or end if none exists). Use seekTo methods (
  19453. {@link Scanner#seekTo(byte[])} or
  19454. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  19455. location in the covered range (including backward seeking). Use
  19456. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  19457. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  19458. <p>
  19459. Actual keys and values may be obtained through {@link Scanner.Entry}
  19460. object, which is obtained through {@link Scanner#entry()}.]]>
  19461. </doc>
  19462. </class>
  19463. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19464. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19465. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  19466. abstract="false"
  19467. static="false" final="false" visibility="public"
  19468. deprecated="not deprecated">
  19469. <implements name="java.lang.Comparable"/>
  19470. <constructor name="TFile.Reader.Scanner.Entry"
  19471. static="false" final="false" visibility="public"
  19472. deprecated="not deprecated">
  19473. </constructor>
  19474. <method name="getKeyLength" return="int"
  19475. abstract="false" native="false" synchronized="false"
  19476. static="false" final="false" visibility="public"
  19477. deprecated="not deprecated">
  19478. <doc>
  19479. <![CDATA[Get the length of the key.
  19480. @return the length of the key.]]>
  19481. </doc>
  19482. </method>
  19483. <method name="get"
  19484. abstract="false" native="false" synchronized="false"
  19485. static="false" final="false" visibility="public"
  19486. deprecated="not deprecated">
  19487. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  19488. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  19489. <exception name="IOException" type="java.io.IOException"/>
  19490. <doc>
  19491. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  19492. equivalent to getKey(key); getValue(value);
  19493. @param key
  19494. BytesWritable to hold key.
  19495. @param value
  19496. BytesWritable to hold value
  19497. @throws IOException]]>
  19498. </doc>
  19499. </method>
  19500. <method name="getKey" return="int"
  19501. abstract="false" native="false" synchronized="false"
  19502. static="false" final="false" visibility="public"
  19503. deprecated="not deprecated">
  19504. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  19505. <exception name="IOException" type="java.io.IOException"/>
  19506. <doc>
  19507. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  19508. automatically resized to the actual key size.
  19509. @param key
  19510. BytesWritable to hold the key.
  19511. @throws IOException]]>
  19512. </doc>
  19513. </method>
  19514. <method name="getValue" return="long"
  19515. abstract="false" native="false" synchronized="false"
  19516. static="false" final="false" visibility="public"
  19517. deprecated="not deprecated">
  19518. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  19519. <exception name="IOException" type="java.io.IOException"/>
  19520. <doc>
  19521. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  19522. automatically resized to the actual value size. The implementation
  19523. directly uses the buffer inside BytesWritable for storing the value.
  19524. The call does not require the value length to be known.
  19525. @param value
  19526. @throws IOException]]>
  19527. </doc>
  19528. </method>
  19529. <method name="writeKey" return="int"
  19530. abstract="false" native="false" synchronized="false"
  19531. static="false" final="false" visibility="public"
  19532. deprecated="not deprecated">
  19533. <param name="out" type="java.io.OutputStream"/>
  19534. <exception name="IOException" type="java.io.IOException"/>
  19535. <doc>
  19536. <![CDATA[Writing the key to the output stream. This method avoids copying key
  19537. buffer from Scanner into user buffer, then writing to the output
  19538. stream.
  19539. @param out
  19540. The output stream
  19541. @return the length of the key.
  19542. @throws IOException]]>
  19543. </doc>
  19544. </method>
  19545. <method name="writeValue" return="long"
  19546. abstract="false" native="false" synchronized="false"
  19547. static="false" final="false" visibility="public"
  19548. deprecated="not deprecated">
  19549. <param name="out" type="java.io.OutputStream"/>
  19550. <exception name="IOException" type="java.io.IOException"/>
  19551. <doc>
  19552. <![CDATA[Writing the value to the output stream. This method avoids copying
  19553. value data from Scanner into user buffer, then writing to the output
  19554. stream. It does not require the value length to be known.
  19555. @param out
  19556. The output stream
  19557. @return the length of the value
  19558. @throws IOException]]>
  19559. </doc>
  19560. </method>
  19561. <method name="getKey" return="int"
  19562. abstract="false" native="false" synchronized="false"
  19563. static="false" final="false" visibility="public"
  19564. deprecated="not deprecated">
  19565. <param name="buf" type="byte[]"/>
  19566. <exception name="IOException" type="java.io.IOException"/>
  19567. <doc>
  19568. <![CDATA[Copy the key into user supplied buffer.
  19569. @param buf
  19570. The buffer supplied by user. The length of the buffer must
  19571. not be shorter than the key length.
  19572. @return The length of the key.
  19573. @throws IOException]]>
  19574. </doc>
  19575. </method>
  19576. <method name="getKey" return="int"
  19577. abstract="false" native="false" synchronized="false"
  19578. static="false" final="false" visibility="public"
  19579. deprecated="not deprecated">
  19580. <param name="buf" type="byte[]"/>
  19581. <param name="offset" type="int"/>
  19582. <exception name="IOException" type="java.io.IOException"/>
  19583. <doc>
  19584. <![CDATA[Copy the key into user supplied buffer.
  19585. @param buf
  19586. The buffer supplied by user.
  19587. @param offset
  19588. The starting offset of the user buffer where we should copy
  19589. the key into. Requiring the key-length + offset no greater
  19590. than the buffer length.
  19591. @return The length of the key.
  19592. @throws IOException]]>
  19593. </doc>
  19594. </method>
  19595. <method name="getKeyStream" return="java.io.DataInputStream"
  19596. abstract="false" native="false" synchronized="false"
  19597. static="false" final="false" visibility="public"
  19598. deprecated="not deprecated">
  19599. <doc>
  19600. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  19601. user objects.
  19602. @return The input stream.]]>
  19603. </doc>
  19604. </method>
  19605. <method name="getValueLength" return="int"
  19606. abstract="false" native="false" synchronized="false"
  19607. static="false" final="false" visibility="public"
  19608. deprecated="not deprecated">
  19609. <doc>
  19610. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  19611. true.
  19612. @return the length of the value.]]>
  19613. </doc>
  19614. </method>
  19615. <method name="getValue" return="int"
  19616. abstract="false" native="false" synchronized="false"
  19617. static="false" final="false" visibility="public"
  19618. deprecated="not deprecated">
  19619. <param name="buf" type="byte[]"/>
  19620. <exception name="IOException" type="java.io.IOException"/>
  19621. <doc>
  19622. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  19623. large enough to hold the whole value. The value part of the key-value
  19624. pair pointed by the current cursor is not cached and can only be
  19625. examined once. Calling any of the following functions more than once
  19626. without moving the cursor will result in exception:
  19627. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  19628. {@link #getValueStream}.
  19629. @return the length of the value. Does not require
  19630. isValueLengthKnown() to be true.
  19631. @throws IOException]]>
  19632. </doc>
  19633. </method>
  19634. <method name="getValue" return="int"
  19635. abstract="false" native="false" synchronized="false"
  19636. static="false" final="false" visibility="public"
  19637. deprecated="not deprecated">
  19638. <param name="buf" type="byte[]"/>
  19639. <param name="offset" type="int"/>
  19640. <exception name="IOException" type="java.io.IOException"/>
  19641. <doc>
  19642. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  19643. large enough to hold the whole value (starting from the offset). The
  19644. value part of the key-value pair pointed by the current cursor is not
  19645. cached and can only be examined once. Calling any of the following
  19646. functions more than once without moving the cursor will result in
  19647. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  19648. {@link #getValueStream}.
  19649. @return the length of the value. Does not require
  19650. isValueLengthKnown() to be true.
  19651. @throws IOException]]>
  19652. </doc>
  19653. </method>
  19654. <method name="getValueStream" return="java.io.DataInputStream"
  19655. abstract="false" native="false" synchronized="false"
  19656. static="false" final="false" visibility="public"
  19657. deprecated="not deprecated">
  19658. <exception name="IOException" type="java.io.IOException"/>
  19659. <doc>
  19660. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  19661. by the current cursor is not cached and can only be examined once.
  19662. Calling any of the following functions more than once without moving
  19663. the cursor will result in exception: {@link #getValue(byte[])},
  19664. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  19665. @return The input stream for reading the value.
  19666. @throws IOException]]>
  19667. </doc>
  19668. </method>
  19669. <method name="isValueLengthKnown" return="boolean"
  19670. abstract="false" native="false" synchronized="false"
  19671. static="false" final="false" visibility="public"
  19672. deprecated="not deprecated">
  19673. <doc>
  19674. <![CDATA[Check whether it is safe to call getValueLength().
  19675. @return true if value length is known before hand. Values less than
  19676. the chunk size will always have their lengths known before
  19677. hand. Values that are written out as a whole (with advertised
  19678. length up-front) will always have their lengths known in
  19679. read.]]>
  19680. </doc>
  19681. </method>
  19682. <method name="compareTo" return="int"
  19683. abstract="false" native="false" synchronized="false"
  19684. static="false" final="false" visibility="public"
  19685. deprecated="not deprecated">
  19686. <param name="buf" type="byte[]"/>
  19687. <doc>
  19688. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  19689. key.length).
  19690. @param buf
  19691. The key buffer.
  19692. @return comparison result between the entry key with the input key.]]>
  19693. </doc>
  19694. </method>
  19695. <method name="compareTo" return="int"
  19696. abstract="false" native="false" synchronized="false"
  19697. static="false" final="false" visibility="public"
  19698. deprecated="not deprecated">
  19699. <param name="buf" type="byte[]"/>
  19700. <param name="offset" type="int"/>
  19701. <param name="length" type="int"/>
  19702. <doc>
  19703. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  19704. ByteArray(buf, offset, length)
  19705. @param buf
  19706. The key buffer
  19707. @param offset
  19708. offset into the key buffer.
  19709. @param length
  19710. the length of the key.
  19711. @return comparison result between the entry key with the input key.]]>
  19712. </doc>
  19713. </method>
  19714. <method name="compareTo" return="int"
  19715. abstract="false" native="false" synchronized="false"
  19716. static="false" final="false" visibility="public"
  19717. deprecated="not deprecated">
  19718. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19719. <doc>
  19720. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  19721. Entries are stored in a collection, and we want to compare a user
  19722. supplied key.]]>
  19723. </doc>
  19724. </method>
  19725. <method name="equals" return="boolean"
  19726. abstract="false" native="false" synchronized="false"
  19727. static="false" final="false" visibility="public"
  19728. deprecated="not deprecated">
  19729. <param name="other" type="java.lang.Object"/>
  19730. <doc>
  19731. <![CDATA[Compare whether this and other points to the same key value.]]>
  19732. </doc>
  19733. </method>
  19734. <method name="hashCode" return="int"
  19735. abstract="false" native="false" synchronized="false"
  19736. static="false" final="false" visibility="public"
  19737. deprecated="not deprecated">
  19738. </method>
  19739. <doc>
  19740. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  19741. </doc>
  19742. </class>
  19743. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19744. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19745. <class name="TFile.Writer" extends="java.lang.Object"
  19746. abstract="false"
  19747. static="true" final="false" visibility="public"
  19748. deprecated="not deprecated">
  19749. <implements name="java.io.Closeable"/>
  19750. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  19751. static="false" final="false" visibility="public"
  19752. deprecated="not deprecated">
  19753. <exception name="IOException" type="java.io.IOException"/>
  19754. <doc>
  19755. <![CDATA[Constructor
  19756. @param fsdos
  19757. output stream for writing. Must be at position 0.
  19758. @param minBlockSize
  19759. Minimum compressed block size in bytes. A compression block will
  19760. not be closed until it reaches this size except for the last
  19761. block.
  19762. @param compressName
  19763. Name of the compression algorithm. Must be one of the strings
  19764. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  19765. @param comparator
  19766. Leave comparator as null or empty string if TFile is not sorted.
  19767. Otherwise, provide the string name for the comparison algorithm
  19768. for keys. Two kinds of comparators are supported.
  19769. <ul>
  19770. <li>Algorithmic comparator: binary comparators that is language
  19771. independent. Currently, only "memcmp" is supported.
  19772. <li>Language-specific comparator: binary comparators that can
  19773. only be constructed in specific language. For Java, the syntax
  19774. is "jclass:", followed by the class name of the RawComparator.
  19775. Currently, we only support RawComparators that can be
  19776. constructed through the default constructor (with no
  19777. parameters). Parameterized RawComparators such as
  19778. {@link WritableComparator} or
  19779. {@link JavaSerializationComparator} may not be directly used.
  19780. One should write a wrapper class that inherits from such classes
  19781. and use its default constructor to perform proper
  19782. initialization.
  19783. </ul>
  19784. @param conf
  19785. The configuration object.
  19786. @throws IOException]]>
  19787. </doc>
  19788. </constructor>
  19789. <method name="close"
  19790. abstract="false" native="false" synchronized="false"
  19791. static="false" final="false" visibility="public"
  19792. deprecated="not deprecated">
  19793. <exception name="IOException" type="java.io.IOException"/>
  19794. <doc>
  19795. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  19796. being thrown. Future close calls will have no effect.
  19797. The underlying FSDataOutputStream is not closed.]]>
  19798. </doc>
  19799. </method>
  19800. <method name="append"
  19801. abstract="false" native="false" synchronized="false"
  19802. static="false" final="false" visibility="public"
  19803. deprecated="not deprecated">
  19804. <param name="key" type="byte[]"/>
  19805. <param name="value" type="byte[]"/>
  19806. <exception name="IOException" type="java.io.IOException"/>
  19807. <doc>
  19808. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  19809. append(key, 0, key.length, value, 0, value.length)
  19810. @param key
  19811. Buffer for key.
  19812. @param value
  19813. Buffer for value.
  19814. @throws IOException]]>
  19815. </doc>
  19816. </method>
  19817. <method name="append"
  19818. abstract="false" native="false" synchronized="false"
  19819. static="false" final="false" visibility="public"
  19820. deprecated="not deprecated">
  19821. <param name="key" type="byte[]"/>
  19822. <param name="koff" type="int"/>
  19823. <param name="klen" type="int"/>
  19824. <param name="value" type="byte[]"/>
  19825. <param name="voff" type="int"/>
  19826. <param name="vlen" type="int"/>
  19827. <exception name="IOException" type="java.io.IOException"/>
  19828. <doc>
  19829. <![CDATA[Adding a new key-value pair to TFile.
  19830. @param key
  19831. buffer for key.
  19832. @param koff
  19833. offset in key buffer.
  19834. @param klen
  19835. length of key.
  19836. @param value
  19837. buffer for value.
  19838. @param voff
  19839. offset in value buffer.
  19840. @param vlen
  19841. length of value.
  19842. @throws IOException
  19843. Upon IO errors.
  19844. <p>
  19845. If an exception is thrown, the TFile will be in an inconsistent
  19846. state. The only legitimate call after that would be close]]>
  19847. </doc>
  19848. </method>
  19849. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  19850. abstract="false" native="false" synchronized="false"
  19851. static="false" final="false" visibility="public"
  19852. deprecated="not deprecated">
  19853. <param name="length" type="int"/>
  19854. <exception name="IOException" type="java.io.IOException"/>
  19855. <doc>
  19856. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  19857. called when there is no active Key appending stream or value appending
  19858. stream.
  19859. @param length
  19860. The expected length of the key. If length of the key is not
  19861. known, set length = -1. Otherwise, the application must write
  19862. exactly as many bytes as specified here before calling close on
  19863. the returned output stream.
  19864. @return The key appending output stream.
  19865. @throws IOException]]>
  19866. </doc>
  19867. </method>
  19868. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  19869. abstract="false" native="false" synchronized="false"
  19870. static="false" final="false" visibility="public"
  19871. deprecated="not deprecated">
  19872. <param name="length" type="int"/>
  19873. <exception name="IOException" type="java.io.IOException"/>
  19874. <doc>
  19875. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  19876. called right after a key appending operation (the key append stream must
  19877. be closed).
  19878. @param length
  19879. The expected length of the value. If length of the value is not
  19880. known, set length = -1. Otherwise, the application must write
  19881. exactly as many bytes as specified here before calling close on
  19882. the returned output stream. Advertising the value size up-front
  19883. guarantees that the value is encoded in one chunk, and avoids
  19884. intermediate chunk buffering.
  19885. @throws IOException]]>
  19886. </doc>
  19887. </method>
  19888. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19889. abstract="false" native="false" synchronized="false"
  19890. static="false" final="false" visibility="public"
  19891. deprecated="not deprecated">
  19892. <param name="name" type="java.lang.String"/>
  19893. <param name="compressName" type="java.lang.String"/>
  19894. <exception name="IOException" type="java.io.IOException"/>
  19895. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19896. <doc>
  19897. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19898. be called when there is a key append stream or value append stream
  19899. active. No more key-value insertion is allowed after a meta data block
  19900. has been added to TFile.
  19901. @param name
  19902. Name of the meta block.
  19903. @param compressName
  19904. Name of the compression algorithm to be used. Must be one of the
  19905. strings returned by
  19906. {@link TFile#getSupportedCompressionAlgorithms()}.
  19907. @return A DataOutputStream that can be used to write Meta Block data.
  19908. Closing the stream would signal the ending of the block.
  19909. @throws IOException
  19910. @throws MetaBlockAlreadyExists
  19911. the Meta Block with the same name already exists.]]>
  19912. </doc>
  19913. </method>
  19914. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19915. abstract="false" native="false" synchronized="false"
  19916. static="false" final="false" visibility="public"
  19917. deprecated="not deprecated">
  19918. <param name="name" type="java.lang.String"/>
  19919. <exception name="IOException" type="java.io.IOException"/>
  19920. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19921. <doc>
  19922. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19923. be called when there is a key append stream or value append stream
  19924. active. No more key-value insertion is allowed after a meta data block
  19925. has been added to TFile. Data will be compressed using the default
  19926. compressor as defined in Writer's constructor.
  19927. @param name
  19928. Name of the meta block.
  19929. @return A DataOutputStream that can be used to write Meta Block data.
  19930. Closing the stream would signal the ending of the block.
  19931. @throws IOException
  19932. @throws MetaBlockAlreadyExists
  19933. the Meta Block with the same name already exists.]]>
  19934. </doc>
  19935. </method>
  19936. <doc>
  19937. <![CDATA[TFile Writer.]]>
  19938. </doc>
  19939. </class>
  19940. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19941. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  19942. <class name="Utils" extends="java.lang.Object"
  19943. abstract="false"
  19944. static="false" final="true" visibility="public"
  19945. deprecated="not deprecated">
  19946. <method name="writeVInt"
  19947. abstract="false" native="false" synchronized="false"
  19948. static="true" final="false" visibility="public"
  19949. deprecated="not deprecated">
  19950. <param name="out" type="java.io.DataOutput"/>
  19951. <param name="n" type="int"/>
  19952. <exception name="IOException" type="java.io.IOException"/>
  19953. <doc>
  19954. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  19955. <code>Utils#writeVLong(out, n)</code>.
  19956. @param out
  19957. output stream
  19958. @param n
  19959. The integer to be encoded
  19960. @throws IOException
  19961. @see Utils#writeVLong(DataOutput, long)]]>
  19962. </doc>
  19963. </method>
  19964. <method name="writeVLong"
  19965. abstract="false" native="false" synchronized="false"
  19966. static="true" final="false" visibility="public"
  19967. deprecated="not deprecated">
  19968. <param name="out" type="java.io.DataOutput"/>
  19969. <param name="n" type="long"/>
  19970. <exception name="IOException" type="java.io.IOException"/>
  19971. <doc>
  19972. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  19973. <ul>
  19974. <li>if n in [-32, 127): encode in one byte with the actual value.
  19975. Otherwise,
  19976. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  19977. byte[1]=n&0xff. Otherwise,
  19978. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  19979. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  19980. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  19981. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  19982. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  19983. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  19984. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  19985. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  19986. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  19987. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  19988. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  19989. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  19990. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  19991. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  19992. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  19993. byte[7]=n&0xff;
  19994. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  19995. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  19996. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  19997. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  19998. </ul>
  19999. @param out
  20000. output stream
  20001. @param n
  20002. the integer number
  20003. @throws IOException]]>
  20004. </doc>
  20005. </method>
  20006. <method name="readVInt" return="int"
  20007. abstract="false" native="false" synchronized="false"
  20008. static="true" final="false" visibility="public"
  20009. deprecated="not deprecated">
  20010. <param name="in" type="java.io.DataInput"/>
  20011. <exception name="IOException" type="java.io.IOException"/>
  20012. <doc>
  20013. <![CDATA[Decoding the variable-length integer. Synonymous to
  20014. <code>(int)Utils#readVLong(in)</code>.
  20015. @param in
  20016. input stream
  20017. @return the decoded integer
  20018. @throws IOException
  20019. @see Utils#readVLong(DataInput)]]>
  20020. </doc>
  20021. </method>
  20022. <method name="readVLong" return="long"
  20023. abstract="false" native="false" synchronized="false"
  20024. static="true" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. <param name="in" type="java.io.DataInput"/>
  20027. <exception name="IOException" type="java.io.IOException"/>
  20028. <doc>
  20029. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  20030. is FB, and the following bytes are NB[*].
  20031. <ul>
  20032. <li>if (FB >= -32), return (long)FB;
  20033. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  20034. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  20035. NB[1]&0xff;
  20036. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  20037. (NB[1]&0xff)<<8 + NB[2]&0xff;
  20038. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  20039. big-endian integer.
  20040. @param in
  20041. input stream
  20042. @return the decoded long integer.
  20043. @throws IOException]]>
  20044. </doc>
  20045. </method>
  20046. <method name="writeString"
  20047. abstract="false" native="false" synchronized="false"
  20048. static="true" final="false" visibility="public"
  20049. deprecated="not deprecated">
  20050. <param name="out" type="java.io.DataOutput"/>
  20051. <param name="s" type="java.lang.String"/>
  20052. <exception name="IOException" type="java.io.IOException"/>
  20053. <doc>
  20054. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  20055. @param out
  20056. @param s
  20057. @throws IOException]]>
  20058. </doc>
  20059. </method>
  20060. <method name="readString" return="java.lang.String"
  20061. abstract="false" native="false" synchronized="false"
  20062. static="true" final="false" visibility="public"
  20063. deprecated="not deprecated">
  20064. <param name="in" type="java.io.DataInput"/>
  20065. <exception name="IOException" type="java.io.IOException"/>
  20066. <doc>
  20067. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  20068. @param in
  20069. The input stream.
  20070. @return The string
  20071. @throws IOException]]>
  20072. </doc>
  20073. </method>
  20074. <method name="lowerBound" return="int"
  20075. abstract="false" native="false" synchronized="false"
  20076. static="true" final="false" visibility="public"
  20077. deprecated="not deprecated">
  20078. <param name="list" type="java.util.List"/>
  20079. <param name="key" type="java.lang.Object"/>
  20080. <param name="cmp" type="java.util.Comparator"/>
  20081. <doc>
  20082. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20083. that compares greater than or equal to key.
  20084. @param <T>
  20085. Type of the input key.
  20086. @param list
  20087. The list
  20088. @param key
  20089. The input key.
  20090. @param cmp
  20091. Comparator for the key.
  20092. @return The index to the desired element if it exists; or list.size()
  20093. otherwise.]]>
  20094. </doc>
  20095. </method>
  20096. <method name="upperBound" return="int"
  20097. abstract="false" native="false" synchronized="false"
  20098. static="true" final="false" visibility="public"
  20099. deprecated="not deprecated">
  20100. <param name="list" type="java.util.List"/>
  20101. <param name="key" type="java.lang.Object"/>
  20102. <param name="cmp" type="java.util.Comparator"/>
  20103. <doc>
  20104. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20105. that compares greater than the input key.
  20106. @param <T>
  20107. Type of the input key.
  20108. @param list
  20109. The list
  20110. @param key
  20111. The input key.
  20112. @param cmp
  20113. Comparator for the key.
  20114. @return The index to the desired element if it exists; or list.size()
  20115. otherwise.]]>
  20116. </doc>
  20117. </method>
  20118. <method name="lowerBound" return="int"
  20119. abstract="false" native="false" synchronized="false"
  20120. static="true" final="false" visibility="public"
  20121. deprecated="not deprecated">
  20122. <param name="list" type="java.util.List"/>
  20123. <param name="key" type="java.lang.Object"/>
  20124. <doc>
  20125. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20126. that compares greater than or equal to key.
  20127. @param <T>
  20128. Type of the input key.
  20129. @param list
  20130. The list
  20131. @param key
  20132. The input key.
  20133. @return The index to the desired element if it exists; or list.size()
  20134. otherwise.]]>
  20135. </doc>
  20136. </method>
  20137. <method name="upperBound" return="int"
  20138. abstract="false" native="false" synchronized="false"
  20139. static="true" final="false" visibility="public"
  20140. deprecated="not deprecated">
  20141. <param name="list" type="java.util.List"/>
  20142. <param name="key" type="java.lang.Object"/>
  20143. <doc>
  20144. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20145. that compares greater than the input key.
  20146. @param <T>
  20147. Type of the input key.
  20148. @param list
  20149. The list
  20150. @param key
  20151. The input key.
  20152. @return The index to the desired element if it exists; or list.size()
  20153. otherwise.]]>
  20154. </doc>
  20155. </method>
  20156. <doc>
  20157. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  20158. </doc>
  20159. </class>
  20160. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  20161. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  20162. <class name="Utils.Version" extends="java.lang.Object"
  20163. abstract="false"
  20164. static="true" final="true" visibility="public"
  20165. deprecated="not deprecated">
  20166. <implements name="java.lang.Comparable"/>
  20167. <constructor name="Utils.Version" type="java.io.DataInput"
  20168. static="false" final="false" visibility="public"
  20169. deprecated="not deprecated">
  20170. <exception name="IOException" type="java.io.IOException"/>
  20171. <doc>
  20172. <![CDATA[Construct the Version object by reading from the input stream.
  20173. @param in
  20174. input stream
  20175. @throws IOException]]>
  20176. </doc>
  20177. </constructor>
  20178. <constructor name="Utils.Version" type="short, short"
  20179. static="false" final="false" visibility="public"
  20180. deprecated="not deprecated">
  20181. <doc>
  20182. <![CDATA[Constructor.
  20183. @param major
  20184. major version.
  20185. @param minor
  20186. minor version.]]>
  20187. </doc>
  20188. </constructor>
  20189. <method name="write"
  20190. abstract="false" native="false" synchronized="false"
  20191. static="false" final="false" visibility="public"
  20192. deprecated="not deprecated">
  20193. <param name="out" type="java.io.DataOutput"/>
  20194. <exception name="IOException" type="java.io.IOException"/>
  20195. <doc>
  20196. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  20197. major version followed by minor version, both as big-endian short
  20198. integers.
  20199. @param out
  20200. The DataOutput object.
  20201. @throws IOException]]>
  20202. </doc>
  20203. </method>
  20204. <method name="getMajor" return="int"
  20205. abstract="false" native="false" synchronized="false"
  20206. static="false" final="false" visibility="public"
  20207. deprecated="not deprecated">
  20208. <doc>
  20209. <![CDATA[Get the major version.
  20210. @return Major version.]]>
  20211. </doc>
  20212. </method>
  20213. <method name="getMinor" return="int"
  20214. abstract="false" native="false" synchronized="false"
  20215. static="false" final="false" visibility="public"
  20216. deprecated="not deprecated">
  20217. <doc>
  20218. <![CDATA[Get the minor version.
  20219. @return The minor version.]]>
  20220. </doc>
  20221. </method>
  20222. <method name="size" return="int"
  20223. abstract="false" native="false" synchronized="false"
  20224. static="true" final="false" visibility="public"
  20225. deprecated="not deprecated">
  20226. <doc>
  20227. <![CDATA[Get the size of the serialized Version object.
  20228. @return serialized size of the version object.]]>
  20229. </doc>
  20230. </method>
  20231. <method name="toString" return="java.lang.String"
  20232. abstract="false" native="false" synchronized="false"
  20233. static="false" final="false" visibility="public"
  20234. deprecated="not deprecated">
  20235. <doc>
  20236. <![CDATA[Return a string representation of the version.]]>
  20237. </doc>
  20238. </method>
  20239. <method name="compatibleWith" return="boolean"
  20240. abstract="false" native="false" synchronized="false"
  20241. static="false" final="false" visibility="public"
  20242. deprecated="not deprecated">
  20243. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20244. <doc>
  20245. <![CDATA[Test compatibility.
  20246. @param other
  20247. The Version object to test compatibility with.
  20248. @return true if both versions have the same major version number; false
  20249. otherwise.]]>
  20250. </doc>
  20251. </method>
  20252. <method name="compareTo" return="int"
  20253. abstract="false" native="false" synchronized="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20257. <doc>
  20258. <![CDATA[Compare this version with another version.]]>
  20259. </doc>
  20260. </method>
  20261. <method name="equals" return="boolean"
  20262. abstract="false" native="false" synchronized="false"
  20263. static="false" final="false" visibility="public"
  20264. deprecated="not deprecated">
  20265. <param name="other" type="java.lang.Object"/>
  20266. </method>
  20267. <method name="hashCode" return="int"
  20268. abstract="false" native="false" synchronized="false"
  20269. static="false" final="false" visibility="public"
  20270. deprecated="not deprecated">
  20271. </method>
  20272. <doc>
  20273. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  20274. this class to maintain version information in their meta blocks.
  20275. A version number consists of a major version and a minor version. The
  20276. suggested usage of major and minor version number is to increment major
  20277. version number when the new storage format is not backward compatible, and
  20278. increment the minor version otherwise.]]>
  20279. </doc>
  20280. </class>
  20281. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  20282. </package>
  20283. <package name="org.apache.hadoop.io.nativeio">
  20284. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  20285. <class name="Errno" extends="java.lang.Enum"
  20286. abstract="false"
  20287. static="false" final="true" visibility="public"
  20288. deprecated="not deprecated">
  20289. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  20290. abstract="false" native="false" synchronized="false"
  20291. static="true" final="false" visibility="public"
  20292. deprecated="not deprecated">
  20293. </method>
  20294. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  20295. abstract="false" native="false" synchronized="false"
  20296. static="true" final="false" visibility="public"
  20297. deprecated="not deprecated">
  20298. <param name="name" type="java.lang.String"/>
  20299. </method>
  20300. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  20301. transient="false" volatile="false"
  20302. static="true" final="true" visibility="public"
  20303. deprecated="not deprecated">
  20304. </field>
  20305. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  20306. transient="false" volatile="false"
  20307. static="true" final="true" visibility="public"
  20308. deprecated="not deprecated">
  20309. </field>
  20310. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  20311. transient="false" volatile="false"
  20312. static="true" final="true" visibility="public"
  20313. deprecated="not deprecated">
  20314. </field>
  20315. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  20316. transient="false" volatile="false"
  20317. static="true" final="true" visibility="public"
  20318. deprecated="not deprecated">
  20319. </field>
  20320. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  20321. transient="false" volatile="false"
  20322. static="true" final="true" visibility="public"
  20323. deprecated="not deprecated">
  20324. </field>
  20325. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  20326. transient="false" volatile="false"
  20327. static="true" final="true" visibility="public"
  20328. deprecated="not deprecated">
  20329. </field>
  20330. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  20331. transient="false" volatile="false"
  20332. static="true" final="true" visibility="public"
  20333. deprecated="not deprecated">
  20334. </field>
  20335. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  20336. transient="false" volatile="false"
  20337. static="true" final="true" visibility="public"
  20338. deprecated="not deprecated">
  20339. </field>
  20340. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  20341. transient="false" volatile="false"
  20342. static="true" final="true" visibility="public"
  20343. deprecated="not deprecated">
  20344. </field>
  20345. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  20346. transient="false" volatile="false"
  20347. static="true" final="true" visibility="public"
  20348. deprecated="not deprecated">
  20349. </field>
  20350. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  20351. transient="false" volatile="false"
  20352. static="true" final="true" visibility="public"
  20353. deprecated="not deprecated">
  20354. </field>
  20355. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  20356. transient="false" volatile="false"
  20357. static="true" final="true" visibility="public"
  20358. deprecated="not deprecated">
  20359. </field>
  20360. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  20361. transient="false" volatile="false"
  20362. static="true" final="true" visibility="public"
  20363. deprecated="not deprecated">
  20364. </field>
  20365. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  20366. transient="false" volatile="false"
  20367. static="true" final="true" visibility="public"
  20368. deprecated="not deprecated">
  20369. </field>
  20370. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  20371. transient="false" volatile="false"
  20372. static="true" final="true" visibility="public"
  20373. deprecated="not deprecated">
  20374. </field>
  20375. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  20376. transient="false" volatile="false"
  20377. static="true" final="true" visibility="public"
  20378. deprecated="not deprecated">
  20379. </field>
  20380. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  20381. transient="false" volatile="false"
  20382. static="true" final="true" visibility="public"
  20383. deprecated="not deprecated">
  20384. </field>
  20385. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  20386. transient="false" volatile="false"
  20387. static="true" final="true" visibility="public"
  20388. deprecated="not deprecated">
  20389. </field>
  20390. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  20391. transient="false" volatile="false"
  20392. static="true" final="true" visibility="public"
  20393. deprecated="not deprecated">
  20394. </field>
  20395. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20396. transient="false" volatile="false"
  20397. static="true" final="true" visibility="public"
  20398. deprecated="not deprecated">
  20399. </field>
  20400. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20401. transient="false" volatile="false"
  20402. static="true" final="true" visibility="public"
  20403. deprecated="not deprecated">
  20404. </field>
  20405. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  20406. transient="false" volatile="false"
  20407. static="true" final="true" visibility="public"
  20408. deprecated="not deprecated">
  20409. </field>
  20410. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20411. transient="false" volatile="false"
  20412. static="true" final="true" visibility="public"
  20413. deprecated="not deprecated">
  20414. </field>
  20415. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20416. transient="false" volatile="false"
  20417. static="true" final="true" visibility="public"
  20418. deprecated="not deprecated">
  20419. </field>
  20420. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  20421. transient="false" volatile="false"
  20422. static="true" final="true" visibility="public"
  20423. deprecated="not deprecated">
  20424. </field>
  20425. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  20426. transient="false" volatile="false"
  20427. static="true" final="true" visibility="public"
  20428. deprecated="not deprecated">
  20429. </field>
  20430. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  20431. transient="false" volatile="false"
  20432. static="true" final="true" visibility="public"
  20433. deprecated="not deprecated">
  20434. </field>
  20435. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  20436. transient="false" volatile="false"
  20437. static="true" final="true" visibility="public"
  20438. deprecated="not deprecated">
  20439. </field>
  20440. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20441. transient="false" volatile="false"
  20442. static="true" final="true" visibility="public"
  20443. deprecated="not deprecated">
  20444. </field>
  20445. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  20446. transient="false" volatile="false"
  20447. static="true" final="true" visibility="public"
  20448. deprecated="not deprecated">
  20449. </field>
  20450. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  20451. transient="false" volatile="false"
  20452. static="true" final="true" visibility="public"
  20453. deprecated="not deprecated">
  20454. </field>
  20455. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20456. transient="false" volatile="false"
  20457. static="true" final="true" visibility="public"
  20458. deprecated="not deprecated">
  20459. </field>
  20460. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  20461. transient="false" volatile="false"
  20462. static="true" final="true" visibility="public"
  20463. deprecated="not deprecated">
  20464. </field>
  20465. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  20466. transient="false" volatile="false"
  20467. static="true" final="true" visibility="public"
  20468. deprecated="not deprecated">
  20469. </field>
  20470. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  20471. transient="false" volatile="false"
  20472. static="true" final="true" visibility="public"
  20473. deprecated="not deprecated">
  20474. </field>
  20475. <doc>
  20476. <![CDATA[Enum representing POSIX errno values.]]>
  20477. </doc>
  20478. </class>
  20479. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  20480. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  20481. <class name="NativeIO" extends="java.lang.Object"
  20482. abstract="false"
  20483. static="false" final="false" visibility="public"
  20484. deprecated="not deprecated">
  20485. <constructor name="NativeIO"
  20486. static="false" final="false" visibility="public"
  20487. deprecated="not deprecated">
  20488. </constructor>
  20489. <method name="isAvailable" return="boolean"
  20490. abstract="false" native="false" synchronized="false"
  20491. static="true" final="false" visibility="public"
  20492. deprecated="not deprecated">
  20493. <doc>
  20494. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  20495. </doc>
  20496. </method>
  20497. <method name="open" return="java.io.FileDescriptor"
  20498. abstract="false" native="true" synchronized="false"
  20499. static="true" final="false" visibility="public"
  20500. deprecated="not deprecated">
  20501. <param name="path" type="java.lang.String"/>
  20502. <param name="flags" type="int"/>
  20503. <param name="mode" type="int"/>
  20504. <exception name="IOException" type="java.io.IOException"/>
  20505. <doc>
  20506. <![CDATA[Wrapper around open(2)]]>
  20507. </doc>
  20508. </method>
  20509. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  20510. abstract="false" native="true" synchronized="false"
  20511. static="true" final="false" visibility="public"
  20512. deprecated="not deprecated">
  20513. <param name="fd" type="java.io.FileDescriptor"/>
  20514. <exception name="IOException" type="java.io.IOException"/>
  20515. <doc>
  20516. <![CDATA[Wrapper around fstat(2)]]>
  20517. </doc>
  20518. </method>
  20519. <method name="chmod"
  20520. abstract="false" native="true" synchronized="false"
  20521. static="true" final="false" visibility="public"
  20522. deprecated="not deprecated">
  20523. <param name="path" type="java.lang.String"/>
  20524. <param name="mode" type="int"/>
  20525. <exception name="IOException" type="java.io.IOException"/>
  20526. <doc>
  20527. <![CDATA[Wrapper around chmod(2)]]>
  20528. </doc>
  20529. </method>
  20530. <method name="getOwner" return="java.lang.String"
  20531. abstract="false" native="false" synchronized="false"
  20532. static="true" final="false" visibility="public"
  20533. deprecated="not deprecated">
  20534. <param name="fd" type="java.io.FileDescriptor"/>
  20535. <exception name="IOException" type="java.io.IOException"/>
  20536. </method>
  20537. <field name="O_RDONLY" type="int"
  20538. transient="false" volatile="false"
  20539. static="true" final="true" visibility="public"
  20540. deprecated="not deprecated">
  20541. </field>
  20542. <field name="O_WRONLY" type="int"
  20543. transient="false" volatile="false"
  20544. static="true" final="true" visibility="public"
  20545. deprecated="not deprecated">
  20546. </field>
  20547. <field name="O_RDWR" type="int"
  20548. transient="false" volatile="false"
  20549. static="true" final="true" visibility="public"
  20550. deprecated="not deprecated">
  20551. </field>
  20552. <field name="O_CREAT" type="int"
  20553. transient="false" volatile="false"
  20554. static="true" final="true" visibility="public"
  20555. deprecated="not deprecated">
  20556. </field>
  20557. <field name="O_EXCL" type="int"
  20558. transient="false" volatile="false"
  20559. static="true" final="true" visibility="public"
  20560. deprecated="not deprecated">
  20561. </field>
  20562. <field name="O_NOCTTY" type="int"
  20563. transient="false" volatile="false"
  20564. static="true" final="true" visibility="public"
  20565. deprecated="not deprecated">
  20566. </field>
  20567. <field name="O_TRUNC" type="int"
  20568. transient="false" volatile="false"
  20569. static="true" final="true" visibility="public"
  20570. deprecated="not deprecated">
  20571. </field>
  20572. <field name="O_APPEND" type="int"
  20573. transient="false" volatile="false"
  20574. static="true" final="true" visibility="public"
  20575. deprecated="not deprecated">
  20576. </field>
  20577. <field name="O_NONBLOCK" type="int"
  20578. transient="false" volatile="false"
  20579. static="true" final="true" visibility="public"
  20580. deprecated="not deprecated">
  20581. </field>
  20582. <field name="O_SYNC" type="int"
  20583. transient="false" volatile="false"
  20584. static="true" final="true" visibility="public"
  20585. deprecated="not deprecated">
  20586. </field>
  20587. <field name="O_ASYNC" type="int"
  20588. transient="false" volatile="false"
  20589. static="true" final="true" visibility="public"
  20590. deprecated="not deprecated">
  20591. </field>
  20592. <field name="O_FSYNC" type="int"
  20593. transient="false" volatile="false"
  20594. static="true" final="true" visibility="public"
  20595. deprecated="not deprecated">
  20596. </field>
  20597. <field name="O_NDELAY" type="int"
  20598. transient="false" volatile="false"
  20599. static="true" final="true" visibility="public"
  20600. deprecated="not deprecated">
  20601. </field>
  20602. <doc>
  20603. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  20604. These functions should generally be used alongside a fallback to another
  20605. more portable mechanism.]]>
  20606. </doc>
  20607. </class>
  20608. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  20609. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  20610. <class name="NativeIO.Stat" extends="java.lang.Object"
  20611. abstract="false"
  20612. static="true" final="false" visibility="public"
  20613. deprecated="not deprecated">
  20614. <method name="toString" return="java.lang.String"
  20615. abstract="false" native="false" synchronized="false"
  20616. static="false" final="false" visibility="public"
  20617. deprecated="not deprecated">
  20618. </method>
  20619. <method name="getOwner" return="java.lang.String"
  20620. abstract="false" native="false" synchronized="false"
  20621. static="false" final="false" visibility="public"
  20622. deprecated="not deprecated">
  20623. </method>
  20624. <method name="getMode" return="int"
  20625. abstract="false" native="false" synchronized="false"
  20626. static="false" final="false" visibility="public"
  20627. deprecated="not deprecated">
  20628. </method>
  20629. <field name="S_IFMT" type="int"
  20630. transient="false" volatile="false"
  20631. static="true" final="true" visibility="public"
  20632. deprecated="not deprecated">
  20633. </field>
  20634. <field name="S_IFIFO" type="int"
  20635. transient="false" volatile="false"
  20636. static="true" final="true" visibility="public"
  20637. deprecated="not deprecated">
  20638. </field>
  20639. <field name="S_IFCHR" type="int"
  20640. transient="false" volatile="false"
  20641. static="true" final="true" visibility="public"
  20642. deprecated="not deprecated">
  20643. </field>
  20644. <field name="S_IFDIR" type="int"
  20645. transient="false" volatile="false"
  20646. static="true" final="true" visibility="public"
  20647. deprecated="not deprecated">
  20648. </field>
  20649. <field name="S_IFBLK" type="int"
  20650. transient="false" volatile="false"
  20651. static="true" final="true" visibility="public"
  20652. deprecated="not deprecated">
  20653. </field>
  20654. <field name="S_IFREG" type="int"
  20655. transient="false" volatile="false"
  20656. static="true" final="true" visibility="public"
  20657. deprecated="not deprecated">
  20658. </field>
  20659. <field name="S_IFLNK" type="int"
  20660. transient="false" volatile="false"
  20661. static="true" final="true" visibility="public"
  20662. deprecated="not deprecated">
  20663. </field>
  20664. <field name="S_IFSOCK" type="int"
  20665. transient="false" volatile="false"
  20666. static="true" final="true" visibility="public"
  20667. deprecated="not deprecated">
  20668. </field>
  20669. <field name="S_IFWHT" type="int"
  20670. transient="false" volatile="false"
  20671. static="true" final="true" visibility="public"
  20672. deprecated="not deprecated">
  20673. </field>
  20674. <field name="S_ISUID" type="int"
  20675. transient="false" volatile="false"
  20676. static="true" final="true" visibility="public"
  20677. deprecated="not deprecated">
  20678. </field>
  20679. <field name="S_ISGID" type="int"
  20680. transient="false" volatile="false"
  20681. static="true" final="true" visibility="public"
  20682. deprecated="not deprecated">
  20683. </field>
  20684. <field name="S_ISVTX" type="int"
  20685. transient="false" volatile="false"
  20686. static="true" final="true" visibility="public"
  20687. deprecated="not deprecated">
  20688. </field>
  20689. <field name="S_IRUSR" type="int"
  20690. transient="false" volatile="false"
  20691. static="true" final="true" visibility="public"
  20692. deprecated="not deprecated">
  20693. </field>
  20694. <field name="S_IWUSR" type="int"
  20695. transient="false" volatile="false"
  20696. static="true" final="true" visibility="public"
  20697. deprecated="not deprecated">
  20698. </field>
  20699. <field name="S_IXUSR" type="int"
  20700. transient="false" volatile="false"
  20701. static="true" final="true" visibility="public"
  20702. deprecated="not deprecated">
  20703. </field>
  20704. <doc>
  20705. <![CDATA[Result type of the fstat call]]>
  20706. </doc>
  20707. </class>
  20708. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  20709. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  20710. <class name="NativeIOException" extends="java.io.IOException"
  20711. abstract="false"
  20712. static="false" final="false" visibility="public"
  20713. deprecated="not deprecated">
  20714. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  20715. static="false" final="false" visibility="public"
  20716. deprecated="not deprecated">
  20717. </constructor>
  20718. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  20719. abstract="false" native="false" synchronized="false"
  20720. static="false" final="false" visibility="public"
  20721. deprecated="not deprecated">
  20722. </method>
  20723. <method name="toString" return="java.lang.String"
  20724. abstract="false" native="false" synchronized="false"
  20725. static="false" final="false" visibility="public"
  20726. deprecated="not deprecated">
  20727. </method>
  20728. <doc>
  20729. <![CDATA[An exception generated by a call to the native IO code.
  20730. These exceptions simply wrap <i>errno</i> result codes.]]>
  20731. </doc>
  20732. </class>
  20733. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  20734. </package>
  20735. <package name="org.apache.hadoop.io.retry">
  20736. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  20737. <class name="RetryPolicies" extends="java.lang.Object"
  20738. abstract="false"
  20739. static="false" final="false" visibility="public"
  20740. deprecated="not deprecated">
  20741. <constructor name="RetryPolicies"
  20742. static="false" final="false" visibility="public"
  20743. deprecated="not deprecated">
  20744. </constructor>
  20745. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20746. abstract="false" native="false" synchronized="false"
  20747. static="true" final="true" visibility="public"
  20748. deprecated="not deprecated">
  20749. <param name="maxRetries" type="int"/>
  20750. <param name="sleepTime" type="long"/>
  20751. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20752. <doc>
  20753. <![CDATA[<p>
  20754. Keep trying a limited number of times, waiting a fixed time between attempts,
  20755. and then fail by re-throwing the exception.
  20756. </p>]]>
  20757. </doc>
  20758. </method>
  20759. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20760. abstract="false" native="false" synchronized="false"
  20761. static="true" final="true" visibility="public"
  20762. deprecated="not deprecated">
  20763. <param name="maxTime" type="long"/>
  20764. <param name="sleepTime" type="long"/>
  20765. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20766. <doc>
  20767. <![CDATA[<p>
  20768. Keep trying for a maximum time, waiting a fixed time between attempts,
  20769. and then fail by re-throwing the exception.
  20770. </p>]]>
  20771. </doc>
  20772. </method>
  20773. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20774. abstract="false" native="false" synchronized="false"
  20775. static="true" final="true" visibility="public"
  20776. deprecated="not deprecated">
  20777. <param name="maxRetries" type="int"/>
  20778. <param name="sleepTime" type="long"/>
  20779. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20780. <doc>
  20781. <![CDATA[<p>
  20782. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  20783. and then fail by re-throwing the exception.
  20784. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  20785. </p>]]>
  20786. </doc>
  20787. </method>
  20788. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  20789. abstract="false" native="false" synchronized="false"
  20790. static="true" final="true" visibility="public"
  20791. deprecated="not deprecated">
  20792. <param name="maxRetries" type="int"/>
  20793. <param name="sleepTime" type="long"/>
  20794. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20795. <doc>
  20796. <![CDATA[<p>
  20797. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  20798. and then fail by re-throwing the exception.
  20799. The time between attempts is <code>sleepTime</code> mutliplied by a random
  20800. number in the range of [0, 2 to the number of retries)
  20801. </p>]]>
  20802. </doc>
  20803. </method>
  20804. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  20805. abstract="false" native="false" synchronized="false"
  20806. static="true" final="true" visibility="public"
  20807. deprecated="not deprecated">
  20808. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20809. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  20810. <doc>
  20811. <![CDATA[<p>
  20812. Set a default policy with some explicit handlers for specific exceptions.
  20813. </p>]]>
  20814. </doc>
  20815. </method>
  20816. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  20817. abstract="false" native="false" synchronized="false"
  20818. static="true" final="true" visibility="public"
  20819. deprecated="not deprecated">
  20820. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20821. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  20822. <doc>
  20823. <![CDATA[<p>
  20824. A retry policy for RemoteException
  20825. Set a default policy with some explicit handlers for specific exceptions.
  20826. </p>]]>
  20827. </doc>
  20828. </method>
  20829. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  20830. transient="false" volatile="false"
  20831. static="true" final="true" visibility="public"
  20832. deprecated="not deprecated">
  20833. <doc>
  20834. <![CDATA[<p>
  20835. Try once, and fail by re-throwing the exception.
  20836. This corresponds to having no retry mechanism in place.
  20837. </p>]]>
  20838. </doc>
  20839. </field>
  20840. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  20841. transient="false" volatile="false"
  20842. static="true" final="true" visibility="public"
  20843. deprecated="not deprecated">
  20844. <doc>
  20845. <![CDATA[<p>
  20846. Try once, and fail silently for <code>void</code> methods, or by
  20847. re-throwing the exception for non-<code>void</code> methods.
  20848. </p>]]>
  20849. </doc>
  20850. </field>
  20851. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  20852. transient="false" volatile="false"
  20853. static="true" final="true" visibility="public"
  20854. deprecated="not deprecated">
  20855. <doc>
  20856. <![CDATA[<p>
  20857. Keep trying forever.
  20858. </p>]]>
  20859. </doc>
  20860. </field>
  20861. <doc>
  20862. <![CDATA[<p>
  20863. A collection of useful implementations of {@link RetryPolicy}.
  20864. </p>]]>
  20865. </doc>
  20866. </class>
  20867. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  20868. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  20869. <interface name="RetryPolicy" abstract="true"
  20870. static="false" final="false" visibility="public"
  20871. deprecated="not deprecated">
  20872. <method name="shouldRetry" return="boolean"
  20873. abstract="false" native="false" synchronized="false"
  20874. static="false" final="false" visibility="public"
  20875. deprecated="not deprecated">
  20876. <param name="e" type="java.lang.Exception"/>
  20877. <param name="retries" type="int"/>
  20878. <exception name="Exception" type="java.lang.Exception"/>
  20879. <doc>
  20880. <![CDATA[<p>
  20881. Determines whether the framework should retry a
  20882. method for the given exception, and the number
  20883. of retries that have been made for that operation
  20884. so far.
  20885. </p>
  20886. @param e The exception that caused the method to fail.
  20887. @param retries The number of times the method has been retried.
  20888. @return <code>true</code> if the method should be retried,
  20889. <code>false</code> if the method should not be retried
  20890. but shouldn't fail with an exception (only for void methods).
  20891. @throws Exception The re-thrown exception <code>e</code> indicating
  20892. that the method failed and should not be retried further.]]>
  20893. </doc>
  20894. </method>
  20895. <doc>
  20896. <![CDATA[<p>
  20897. Specifies a policy for retrying method failures.
  20898. Implementations of this interface should be immutable.
  20899. </p>]]>
  20900. </doc>
  20901. </interface>
  20902. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  20903. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  20904. <class name="RetryProxy" extends="java.lang.Object"
  20905. abstract="false"
  20906. static="false" final="false" visibility="public"
  20907. deprecated="not deprecated">
  20908. <constructor name="RetryProxy"
  20909. static="false" final="false" visibility="public"
  20910. deprecated="not deprecated">
  20911. </constructor>
  20912. <method name="create" return="java.lang.Object"
  20913. abstract="false" native="false" synchronized="false"
  20914. static="true" final="false" visibility="public"
  20915. deprecated="not deprecated">
  20916. <param name="iface" type="java.lang.Class"/>
  20917. <param name="implementation" type="java.lang.Object"/>
  20918. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20919. <doc>
  20920. <![CDATA[<p>
  20921. Create a proxy for an interface of an implementation class
  20922. using the same retry policy for each method in the interface.
  20923. </p>
  20924. @param iface the interface that the retry will implement
  20925. @param implementation the instance whose methods should be retried
  20926. @param retryPolicy the policy for retirying method call failures
  20927. @return the retry proxy]]>
  20928. </doc>
  20929. </method>
  20930. <method name="create" return="java.lang.Object"
  20931. abstract="false" native="false" synchronized="false"
  20932. static="true" final="false" visibility="public"
  20933. deprecated="not deprecated">
  20934. <param name="iface" type="java.lang.Class"/>
  20935. <param name="implementation" type="java.lang.Object"/>
  20936. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  20937. <doc>
  20938. <![CDATA[<p>
  20939. Create a proxy for an interface of an implementation class
  20940. using the a set of retry policies specified by method name.
  20941. If no retry policy is defined for a method then a default of
  20942. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  20943. </p>
  20944. @param iface the interface that the retry will implement
  20945. @param implementation the instance whose methods should be retried
  20946. @param methodNameToPolicyMap a map of method names to retry policies
  20947. @return the retry proxy]]>
  20948. </doc>
  20949. </method>
  20950. <doc>
  20951. <![CDATA[<p>
  20952. A factory for creating retry proxies.
  20953. </p>]]>
  20954. </doc>
  20955. </class>
  20956. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  20957. </package>
  20958. <package name="org.apache.hadoop.io.serializer">
  20959. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  20960. <interface name="Deserializer" abstract="true"
  20961. static="false" final="false" visibility="public"
  20962. deprecated="not deprecated">
  20963. <method name="open"
  20964. abstract="false" native="false" synchronized="false"
  20965. static="false" final="false" visibility="public"
  20966. deprecated="not deprecated">
  20967. <param name="in" type="java.io.InputStream"/>
  20968. <exception name="IOException" type="java.io.IOException"/>
  20969. <doc>
  20970. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  20971. </doc>
  20972. </method>
  20973. <method name="deserialize" return="java.lang.Object"
  20974. abstract="false" native="false" synchronized="false"
  20975. static="false" final="false" visibility="public"
  20976. deprecated="not deprecated">
  20977. <param name="t" type="java.lang.Object"/>
  20978. <exception name="IOException" type="java.io.IOException"/>
  20979. <doc>
  20980. <![CDATA[<p>
  20981. Deserialize the next object from the underlying input stream.
  20982. If the object <code>t</code> is non-null then this deserializer
  20983. <i>may</i> set its internal state to the next object read from the input
  20984. stream. Otherwise, if the object <code>t</code> is null a new
  20985. deserialized object will be created.
  20986. </p>
  20987. @return the deserialized object]]>
  20988. </doc>
  20989. </method>
  20990. <method name="close"
  20991. abstract="false" native="false" synchronized="false"
  20992. static="false" final="false" visibility="public"
  20993. deprecated="not deprecated">
  20994. <exception name="IOException" type="java.io.IOException"/>
  20995. <doc>
  20996. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  20997. </doc>
  20998. </method>
  20999. <doc>
  21000. <![CDATA[<p>
  21001. Provides a facility for deserializing objects of type <T> from an
  21002. {@link InputStream}.
  21003. </p>
  21004. <p>
  21005. Deserializers are stateful, but must not buffer the input since
  21006. other producers may read from the input between calls to
  21007. {@link #deserialize(Object)}.
  21008. </p>
  21009. @param <T>]]>
  21010. </doc>
  21011. </interface>
  21012. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  21013. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  21014. <class name="DeserializerComparator" extends="java.lang.Object"
  21015. abstract="true"
  21016. static="false" final="false" visibility="public"
  21017. deprecated="not deprecated">
  21018. <implements name="org.apache.hadoop.io.RawComparator"/>
  21019. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  21020. static="false" final="false" visibility="protected"
  21021. deprecated="not deprecated">
  21022. <exception name="IOException" type="java.io.IOException"/>
  21023. </constructor>
  21024. <method name="compare" return="int"
  21025. abstract="false" native="false" synchronized="false"
  21026. static="false" final="false" visibility="public"
  21027. deprecated="not deprecated">
  21028. <param name="b1" type="byte[]"/>
  21029. <param name="s1" type="int"/>
  21030. <param name="l1" type="int"/>
  21031. <param name="b2" type="byte[]"/>
  21032. <param name="s2" type="int"/>
  21033. <param name="l2" type="int"/>
  21034. </method>
  21035. <doc>
  21036. <![CDATA[<p>
  21037. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  21038. the objects to be compared so that the standard {@link Comparator} can
  21039. be used to compare them.
  21040. </p>
  21041. <p>
  21042. One may optimize compare-intensive operations by using a custom
  21043. implementation of {@link RawComparator} that operates directly
  21044. on byte representations.
  21045. </p>
  21046. @param <T>]]>
  21047. </doc>
  21048. </class>
  21049. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  21050. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  21051. <class name="JavaSerialization" extends="java.lang.Object"
  21052. abstract="false"
  21053. static="false" final="false" visibility="public"
  21054. deprecated="not deprecated">
  21055. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  21056. <constructor name="JavaSerialization"
  21057. static="false" final="false" visibility="public"
  21058. deprecated="not deprecated">
  21059. </constructor>
  21060. <method name="accept" return="boolean"
  21061. abstract="false" native="false" synchronized="false"
  21062. static="false" final="false" visibility="public"
  21063. deprecated="not deprecated">
  21064. <param name="c" type="java.lang.Class"/>
  21065. </method>
  21066. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21067. abstract="false" native="false" synchronized="false"
  21068. static="false" final="false" visibility="public"
  21069. deprecated="not deprecated">
  21070. <param name="c" type="java.lang.Class"/>
  21071. </method>
  21072. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21073. abstract="false" native="false" synchronized="false"
  21074. static="false" final="false" visibility="public"
  21075. deprecated="not deprecated">
  21076. <param name="c" type="java.lang.Class"/>
  21077. </method>
  21078. <doc>
  21079. <![CDATA[<p>
  21080. An experimental {@link Serialization} for Java {@link Serializable} classes.
  21081. </p>
  21082. @see JavaSerializationComparator]]>
  21083. </doc>
  21084. </class>
  21085. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  21086. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21087. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  21088. abstract="false"
  21089. static="false" final="false" visibility="public"
  21090. deprecated="not deprecated">
  21091. <constructor name="JavaSerializationComparator"
  21092. static="false" final="false" visibility="public"
  21093. deprecated="not deprecated">
  21094. <exception name="IOException" type="java.io.IOException"/>
  21095. </constructor>
  21096. <method name="compare" return="int"
  21097. abstract="false" native="false" synchronized="false"
  21098. static="false" final="false" visibility="public"
  21099. deprecated="not deprecated">
  21100. <param name="o1" type="java.io.Serializable"/>
  21101. <param name="o2" type="java.io.Serializable"/>
  21102. </method>
  21103. <doc>
  21104. <![CDATA[<p>
  21105. A {@link RawComparator} that uses a {@link JavaSerialization}
  21106. {@link Deserializer} to deserialize objects that are then compared via
  21107. their {@link Comparable} interfaces.
  21108. </p>
  21109. @param <T>
  21110. @see JavaSerialization]]>
  21111. </doc>
  21112. </class>
  21113. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21114. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  21115. <interface name="Serialization" abstract="true"
  21116. static="false" final="false" visibility="public"
  21117. deprecated="not deprecated">
  21118. <method name="accept" return="boolean"
  21119. abstract="false" native="false" synchronized="false"
  21120. static="false" final="false" visibility="public"
  21121. deprecated="not deprecated">
  21122. <param name="c" type="java.lang.Class"/>
  21123. <doc>
  21124. <![CDATA[Allows clients to test whether this {@link Serialization}
  21125. supports the given class.]]>
  21126. </doc>
  21127. </method>
  21128. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21129. abstract="false" native="false" synchronized="false"
  21130. static="false" final="false" visibility="public"
  21131. deprecated="not deprecated">
  21132. <param name="c" type="java.lang.Class"/>
  21133. <doc>
  21134. <![CDATA[@return a {@link Serializer} for the given class.]]>
  21135. </doc>
  21136. </method>
  21137. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21138. abstract="false" native="false" synchronized="false"
  21139. static="false" final="false" visibility="public"
  21140. deprecated="not deprecated">
  21141. <param name="c" type="java.lang.Class"/>
  21142. <doc>
  21143. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  21144. </doc>
  21145. </method>
  21146. <doc>
  21147. <![CDATA[<p>
  21148. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  21149. </p>
  21150. @param <T>]]>
  21151. </doc>
  21152. </interface>
  21153. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  21154. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  21155. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  21156. abstract="false"
  21157. static="false" final="false" visibility="public"
  21158. deprecated="not deprecated">
  21159. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  21160. static="false" final="false" visibility="public"
  21161. deprecated="not deprecated">
  21162. <doc>
  21163. <![CDATA[<p>
  21164. Serializations are found by reading the <code>io.serializations</code>
  21165. property from <code>conf</code>, which is a comma-delimited list of
  21166. classnames.
  21167. </p>]]>
  21168. </doc>
  21169. </constructor>
  21170. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21171. abstract="false" native="false" synchronized="false"
  21172. static="false" final="false" visibility="public"
  21173. deprecated="not deprecated">
  21174. <param name="c" type="java.lang.Class"/>
  21175. </method>
  21176. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21177. abstract="false" native="false" synchronized="false"
  21178. static="false" final="false" visibility="public"
  21179. deprecated="not deprecated">
  21180. <param name="c" type="java.lang.Class"/>
  21181. </method>
  21182. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  21183. abstract="false" native="false" synchronized="false"
  21184. static="false" final="false" visibility="public"
  21185. deprecated="not deprecated">
  21186. <param name="c" type="java.lang.Class"/>
  21187. </method>
  21188. <doc>
  21189. <![CDATA[<p>
  21190. A factory for {@link Serialization}s.
  21191. </p>]]>
  21192. </doc>
  21193. </class>
  21194. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  21195. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  21196. <interface name="Serializer" abstract="true"
  21197. static="false" final="false" visibility="public"
  21198. deprecated="not deprecated">
  21199. <method name="open"
  21200. abstract="false" native="false" synchronized="false"
  21201. static="false" final="false" visibility="public"
  21202. deprecated="not deprecated">
  21203. <param name="out" type="java.io.OutputStream"/>
  21204. <exception name="IOException" type="java.io.IOException"/>
  21205. <doc>
  21206. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  21207. </doc>
  21208. </method>
  21209. <method name="serialize"
  21210. abstract="false" native="false" synchronized="false"
  21211. static="false" final="false" visibility="public"
  21212. deprecated="not deprecated">
  21213. <param name="t" type="java.lang.Object"/>
  21214. <exception name="IOException" type="java.io.IOException"/>
  21215. <doc>
  21216. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  21217. </doc>
  21218. </method>
  21219. <method name="close"
  21220. abstract="false" native="false" synchronized="false"
  21221. static="false" final="false" visibility="public"
  21222. deprecated="not deprecated">
  21223. <exception name="IOException" type="java.io.IOException"/>
  21224. <doc>
  21225. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  21226. </doc>
  21227. </method>
  21228. <doc>
  21229. <![CDATA[<p>
  21230. Provides a facility for serializing objects of type <T> to an
  21231. {@link OutputStream}.
  21232. </p>
  21233. <p>
  21234. Serializers are stateful, but must not buffer the output since
  21235. other producers may write to the output between calls to
  21236. {@link #serialize(Object)}.
  21237. </p>
  21238. @param <T>]]>
  21239. </doc>
  21240. </interface>
  21241. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  21242. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  21243. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  21244. abstract="false"
  21245. static="false" final="false" visibility="public"
  21246. deprecated="not deprecated">
  21247. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  21248. <constructor name="WritableSerialization"
  21249. static="false" final="false" visibility="public"
  21250. deprecated="not deprecated">
  21251. </constructor>
  21252. <method name="accept" return="boolean"
  21253. abstract="false" native="false" synchronized="false"
  21254. static="false" final="false" visibility="public"
  21255. deprecated="not deprecated">
  21256. <param name="c" type="java.lang.Class"/>
  21257. </method>
  21258. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21259. abstract="false" native="false" synchronized="false"
  21260. static="false" final="false" visibility="public"
  21261. deprecated="not deprecated">
  21262. <param name="c" type="java.lang.Class"/>
  21263. </method>
  21264. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21265. abstract="false" native="false" synchronized="false"
  21266. static="false" final="false" visibility="public"
  21267. deprecated="not deprecated">
  21268. <param name="c" type="java.lang.Class"/>
  21269. </method>
  21270. <doc>
  21271. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  21272. {@link Writable#write(java.io.DataOutput)} and
  21273. {@link Writable#readFields(java.io.DataInput)}.]]>
  21274. </doc>
  21275. </class>
  21276. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  21277. </package>
  21278. <package name="org.apache.hadoop.ipc">
  21279. <!-- start class org.apache.hadoop.ipc.Client -->
  21280. <class name="Client" extends="java.lang.Object"
  21281. abstract="false"
  21282. static="false" final="false" visibility="public"
  21283. deprecated="not deprecated">
  21284. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  21285. static="false" final="false" visibility="public"
  21286. deprecated="not deprecated">
  21287. <doc>
  21288. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  21289. class.]]>
  21290. </doc>
  21291. </constructor>
  21292. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  21293. static="false" final="false" visibility="public"
  21294. deprecated="not deprecated">
  21295. <doc>
  21296. <![CDATA[Construct an IPC client with the default SocketFactory
  21297. @param valueClass
  21298. @param conf]]>
  21299. </doc>
  21300. </constructor>
  21301. <method name="setPingInterval"
  21302. abstract="false" native="false" synchronized="false"
  21303. static="true" final="true" visibility="public"
  21304. deprecated="not deprecated">
  21305. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21306. <param name="pingInterval" type="int"/>
  21307. <doc>
  21308. <![CDATA[set the ping interval value in configuration
  21309. @param conf Configuration
  21310. @param pingInterval the ping interval]]>
  21311. </doc>
  21312. </method>
  21313. <method name="stop"
  21314. abstract="false" native="false" synchronized="false"
  21315. static="false" final="false" visibility="public"
  21316. deprecated="not deprecated">
  21317. <doc>
  21318. <![CDATA[Stop all threads related to this client. No further calls may be made
  21319. using this client.]]>
  21320. </doc>
  21321. </method>
  21322. <method name="call" return="org.apache.hadoop.io.Writable"
  21323. abstract="false" native="false" synchronized="false"
  21324. static="false" final="false" visibility="public"
  21325. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21326. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21327. <param name="address" type="java.net.InetSocketAddress"/>
  21328. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21329. <exception name="IOException" type="java.io.IOException"/>
  21330. <doc>
  21331. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21332. <code>address</code>, returning the value. Throws exceptions if there are
  21333. network problems or if the remote code threw an exception.
  21334. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21335. </doc>
  21336. </method>
  21337. <method name="call" return="org.apache.hadoop.io.Writable"
  21338. abstract="false" native="false" synchronized="false"
  21339. static="false" final="false" visibility="public"
  21340. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21341. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21342. <param name="addr" type="java.net.InetSocketAddress"/>
  21343. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21344. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21345. <exception name="IOException" type="java.io.IOException"/>
  21346. <doc>
  21347. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21348. <code>address</code> with the <code>ticket</code> credentials, returning
  21349. the value.
  21350. Throws exceptions if there are network problems or if the remote code
  21351. threw an exception.
  21352. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21353. </doc>
  21354. </method>
  21355. <method name="call" return="org.apache.hadoop.io.Writable"
  21356. abstract="false" native="false" synchronized="false"
  21357. static="false" final="false" visibility="public"
  21358. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21359. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21360. <param name="addr" type="java.net.InetSocketAddress"/>
  21361. <param name="protocol" type="java.lang.Class"/>
  21362. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21363. <param name="rpcTimeout" type="int"/>
  21364. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21365. <exception name="IOException" type="java.io.IOException"/>
  21366. <doc>
  21367. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21368. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21369. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  21370. timeout, returning the value.
  21371. Throws exceptions if there are network problems or if the remote code
  21372. threw an exception.
  21373. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21374. </doc>
  21375. </method>
  21376. <method name="call" return="org.apache.hadoop.io.Writable"
  21377. abstract="false" native="false" synchronized="false"
  21378. static="false" final="false" visibility="public"
  21379. deprecated="not deprecated">
  21380. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21381. <param name="addr" type="java.net.InetSocketAddress"/>
  21382. <param name="protocol" type="java.lang.Class"/>
  21383. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21384. <param name="rpcTimeout" type="int"/>
  21385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21386. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21387. <exception name="IOException" type="java.io.IOException"/>
  21388. <doc>
  21389. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21390. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21391. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  21392. and <code>conf</code> as configuration for this connection, returning the
  21393. value. Throws exceptions if there are network problems or if the remote code
  21394. threw an exception.]]>
  21395. </doc>
  21396. </method>
  21397. <method name="call" return="org.apache.hadoop.io.Writable"
  21398. abstract="false" native="false" synchronized="false"
  21399. static="false" final="false" visibility="public"
  21400. deprecated="not deprecated">
  21401. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21402. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  21403. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21404. <exception name="IOException" type="java.io.IOException"/>
  21405. <doc>
  21406. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  21407. <code>remoteId</code>, returning the value.
  21408. Throws exceptions if there are network problems or if the remote code
  21409. threw an exception.]]>
  21410. </doc>
  21411. </method>
  21412. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21413. abstract="false" native="false" synchronized="false"
  21414. static="false" final="false" visibility="public"
  21415. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21416. Class, UserGroupInformation, Configuration)} instead">
  21417. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21418. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21419. <exception name="IOException" type="java.io.IOException"/>
  21420. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21421. <doc>
  21422. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21423. Class, UserGroupInformation, Configuration)} instead]]>
  21424. </doc>
  21425. </method>
  21426. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21427. abstract="false" native="false" synchronized="false"
  21428. static="false" final="false" visibility="public"
  21429. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21430. Class, UserGroupInformation, Configuration)} instead">
  21431. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21432. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21433. <param name="protocol" type="java.lang.Class"/>
  21434. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21435. <exception name="IOException" type="java.io.IOException"/>
  21436. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21437. <doc>
  21438. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21439. Class, UserGroupInformation, Configuration)} instead]]>
  21440. </doc>
  21441. </method>
  21442. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21443. abstract="false" native="false" synchronized="false"
  21444. static="false" final="false" visibility="public"
  21445. deprecated="not deprecated">
  21446. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21447. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21448. <param name="protocol" type="java.lang.Class"/>
  21449. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21450. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21451. <exception name="IOException" type="java.io.IOException"/>
  21452. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21453. <doc>
  21454. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  21455. corresponding address. When all values are available, or have timed out
  21456. or errored, the collected results are returned in an array. The array
  21457. contains nulls for calls that timed out or errored.]]>
  21458. </doc>
  21459. </method>
  21460. <field name="LOG" type="org.apache.commons.logging.Log"
  21461. transient="false" volatile="false"
  21462. static="true" final="true" visibility="public"
  21463. deprecated="not deprecated">
  21464. </field>
  21465. <doc>
  21466. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  21467. parameter, and return a {@link Writable} as their value. A service runs on
  21468. a port and is defined by a parameter class and a value class.
  21469. @see Server]]>
  21470. </doc>
  21471. </class>
  21472. <!-- end class org.apache.hadoop.ipc.Client -->
  21473. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  21474. <class name="RemoteException" extends="java.io.IOException"
  21475. abstract="false"
  21476. static="false" final="false" visibility="public"
  21477. deprecated="not deprecated">
  21478. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  21479. static="false" final="false" visibility="public"
  21480. deprecated="not deprecated">
  21481. </constructor>
  21482. <method name="getClassName" return="java.lang.String"
  21483. abstract="false" native="false" synchronized="false"
  21484. static="false" final="false" visibility="public"
  21485. deprecated="not deprecated">
  21486. </method>
  21487. <method name="unwrapRemoteException" return="java.io.IOException"
  21488. abstract="false" native="false" synchronized="false"
  21489. static="false" final="false" visibility="public"
  21490. deprecated="not deprecated">
  21491. <param name="lookupTypes" type="java.lang.Class[]"/>
  21492. <doc>
  21493. <![CDATA[If this remote exception wraps up one of the lookupTypes
  21494. then return this exception.
  21495. <p>
  21496. Unwraps any IOException.
  21497. @param lookupTypes the desired exception class.
  21498. @return IOException, which is either the lookupClass exception or this.]]>
  21499. </doc>
  21500. </method>
  21501. <method name="unwrapRemoteException" return="java.io.IOException"
  21502. abstract="false" native="false" synchronized="false"
  21503. static="false" final="false" visibility="public"
  21504. deprecated="not deprecated">
  21505. <doc>
  21506. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  21507. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  21508. a <code>String</code> as a parameter.
  21509. Otherwise it returns this.
  21510. @return <code>Throwable]]>
  21511. </doc>
  21512. </method>
  21513. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  21514. abstract="false" native="false" synchronized="false"
  21515. static="true" final="false" visibility="public"
  21516. deprecated="not deprecated">
  21517. <param name="attrs" type="org.xml.sax.Attributes"/>
  21518. <doc>
  21519. <![CDATA[Create RemoteException from attributes]]>
  21520. </doc>
  21521. </method>
  21522. </class>
  21523. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  21524. <!-- start class org.apache.hadoop.ipc.RPC -->
  21525. <class name="RPC" extends="java.lang.Object"
  21526. abstract="false"
  21527. static="false" final="false" visibility="public"
  21528. deprecated="not deprecated">
  21529. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21530. abstract="false" native="false" synchronized="false"
  21531. static="true" final="false" visibility="public"
  21532. deprecated="not deprecated">
  21533. <param name="protocol" type="java.lang.Class"/>
  21534. <param name="clientVersion" type="long"/>
  21535. <param name="addr" type="java.net.InetSocketAddress"/>
  21536. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21537. <exception name="IOException" type="java.io.IOException"/>
  21538. </method>
  21539. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21540. abstract="false" native="false" synchronized="false"
  21541. static="true" final="false" visibility="public"
  21542. deprecated="not deprecated">
  21543. <param name="protocol" type="java.lang.Class"/>
  21544. <param name="clientVersion" type="long"/>
  21545. <param name="addr" type="java.net.InetSocketAddress"/>
  21546. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21547. <param name="factory" type="javax.net.SocketFactory"/>
  21548. <exception name="IOException" type="java.io.IOException"/>
  21549. <doc>
  21550. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21551. talking to a server at the named address.]]>
  21552. </doc>
  21553. </method>
  21554. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21555. abstract="false" native="false" synchronized="false"
  21556. static="true" final="false" visibility="public"
  21557. deprecated="not deprecated">
  21558. <param name="protocol" type="java.lang.Class"/>
  21559. <param name="clientVersion" type="long"/>
  21560. <param name="addr" type="java.net.InetSocketAddress"/>
  21561. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21562. <param name="factory" type="javax.net.SocketFactory"/>
  21563. <param name="rpcTimeout" type="int"/>
  21564. <exception name="IOException" type="java.io.IOException"/>
  21565. <doc>
  21566. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21567. talking to a server at the named address.]]>
  21568. </doc>
  21569. </method>
  21570. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21571. abstract="false" native="false" synchronized="false"
  21572. static="true" final="false" visibility="public"
  21573. deprecated="not deprecated">
  21574. <param name="protocol" type="java.lang.Class"/>
  21575. <param name="clientVersion" type="long"/>
  21576. <param name="addr" type="java.net.InetSocketAddress"/>
  21577. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21578. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21579. <param name="factory" type="javax.net.SocketFactory"/>
  21580. <exception name="IOException" type="java.io.IOException"/>
  21581. <doc>
  21582. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21583. talking to a server at the named address.]]>
  21584. </doc>
  21585. </method>
  21586. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21587. abstract="false" native="false" synchronized="false"
  21588. static="true" final="false" visibility="public"
  21589. deprecated="not deprecated">
  21590. <param name="protocol" type="java.lang.Class"/>
  21591. <param name="clientVersion" type="long"/>
  21592. <param name="addr" type="java.net.InetSocketAddress"/>
  21593. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21594. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21595. <param name="factory" type="javax.net.SocketFactory"/>
  21596. <param name="rpcTimeout" type="int"/>
  21597. <exception name="IOException" type="java.io.IOException"/>
  21598. <doc>
  21599. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21600. talking to a server at the named address.]]>
  21601. </doc>
  21602. </method>
  21603. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21604. abstract="false" native="false" synchronized="false"
  21605. static="true" final="false" visibility="public"
  21606. deprecated="not deprecated">
  21607. <param name="protocol" type="java.lang.Class"/>
  21608. <param name="clientVersion" type="long"/>
  21609. <param name="addr" type="java.net.InetSocketAddress"/>
  21610. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21611. <exception name="IOException" type="java.io.IOException"/>
  21612. <doc>
  21613. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  21614. @param protocol
  21615. @param clientVersion
  21616. @param addr
  21617. @param conf
  21618. @return a proxy instance
  21619. @throws IOException]]>
  21620. </doc>
  21621. </method>
  21622. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21623. abstract="false" native="false" synchronized="false"
  21624. static="true" final="false" visibility="public"
  21625. deprecated="not deprecated">
  21626. <param name="protocol" type="java.lang.Class"/>
  21627. <param name="clientVersion" type="long"/>
  21628. <param name="addr" type="java.net.InetSocketAddress"/>
  21629. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21630. <param name="rpcTimeout" type="int"/>
  21631. <exception name="IOException" type="java.io.IOException"/>
  21632. </method>
  21633. <method name="stopProxy"
  21634. abstract="false" native="false" synchronized="false"
  21635. static="true" final="false" visibility="public"
  21636. deprecated="not deprecated">
  21637. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  21638. <doc>
  21639. <![CDATA[Stop this proxy and release its invoker's resource
  21640. @param proxy the proxy to be stopped]]>
  21641. </doc>
  21642. </method>
  21643. <method name="call" return="java.lang.Object[]"
  21644. abstract="false" native="false" synchronized="false"
  21645. static="true" final="false" visibility="public"
  21646. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  21647. <param name="method" type="java.lang.reflect.Method"/>
  21648. <param name="params" type="java.lang.Object[][]"/>
  21649. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  21650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21651. <exception name="IOException" type="java.io.IOException"/>
  21652. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21653. <doc>
  21654. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  21655. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  21656. </doc>
  21657. </method>
  21658. <method name="call" return="java.lang.Object[]"
  21659. abstract="false" native="false" synchronized="false"
  21660. static="true" final="false" visibility="public"
  21661. deprecated="not deprecated">
  21662. <param name="method" type="java.lang.reflect.Method"/>
  21663. <param name="params" type="java.lang.Object[][]"/>
  21664. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  21665. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21666. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21667. <exception name="IOException" type="java.io.IOException"/>
  21668. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21669. <doc>
  21670. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  21671. </doc>
  21672. </method>
  21673. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21674. abstract="false" native="false" synchronized="false"
  21675. static="true" final="false" visibility="public"
  21676. deprecated="not deprecated">
  21677. <param name="instance" type="java.lang.Object"/>
  21678. <param name="bindAddress" type="java.lang.String"/>
  21679. <param name="port" type="int"/>
  21680. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21681. <exception name="IOException" type="java.io.IOException"/>
  21682. <doc>
  21683. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21684. port and address.]]>
  21685. </doc>
  21686. </method>
  21687. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21688. abstract="false" native="false" synchronized="false"
  21689. static="true" final="false" visibility="public"
  21690. deprecated="not deprecated">
  21691. <param name="instance" type="java.lang.Object"/>
  21692. <param name="bindAddress" type="java.lang.String"/>
  21693. <param name="port" type="int"/>
  21694. <param name="numHandlers" type="int"/>
  21695. <param name="verbose" type="boolean"/>
  21696. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21697. <exception name="IOException" type="java.io.IOException"/>
  21698. <doc>
  21699. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21700. port and address.]]>
  21701. </doc>
  21702. </method>
  21703. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21704. abstract="false" native="false" synchronized="false"
  21705. static="true" final="false" visibility="public"
  21706. deprecated="not deprecated">
  21707. <param name="instance" type="java.lang.Object"/>
  21708. <param name="bindAddress" type="java.lang.String"/>
  21709. <param name="port" type="int"/>
  21710. <param name="numHandlers" type="int"/>
  21711. <param name="verbose" type="boolean"/>
  21712. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21713. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  21714. <exception name="IOException" type="java.io.IOException"/>
  21715. <doc>
  21716. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21717. port and address, with a secret manager.]]>
  21718. </doc>
  21719. </method>
  21720. <doc>
  21721. <![CDATA[A simple RPC mechanism.
  21722. A <i>protocol</i> is a Java interface. All parameters and return types must
  21723. be one of:
  21724. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  21725. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  21726. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  21727. <li>a {@link String}; or</li>
  21728. <li>a {@link Writable}; or</li>
  21729. <li>an array of the above types</li> </ul>
  21730. All methods in the protocol should throw only IOException. No field data of
  21731. the protocol instance is transmitted.]]>
  21732. </doc>
  21733. </class>
  21734. <!-- end class org.apache.hadoop.ipc.RPC -->
  21735. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  21736. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  21737. abstract="false"
  21738. static="true" final="false" visibility="public"
  21739. deprecated="not deprecated">
  21740. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  21741. static="false" final="false" visibility="public"
  21742. deprecated="not deprecated">
  21743. <exception name="IOException" type="java.io.IOException"/>
  21744. <doc>
  21745. <![CDATA[Construct an RPC server.
  21746. @param instance the instance whose methods will be called
  21747. @param conf the configuration to use
  21748. @param bindAddress the address to bind on to listen for connection
  21749. @param port the port to listen for connections on]]>
  21750. </doc>
  21751. </constructor>
  21752. <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"
  21753. static="false" final="false" visibility="public"
  21754. deprecated="not deprecated">
  21755. <exception name="IOException" type="java.io.IOException"/>
  21756. <doc>
  21757. <![CDATA[Construct an RPC server.
  21758. @param instance the instance whose methods will be called
  21759. @param conf the configuration to use
  21760. @param bindAddress the address to bind on to listen for connection
  21761. @param port the port to listen for connections on
  21762. @param numHandlers the number of method handler threads to run
  21763. @param verbose whether each call should be logged]]>
  21764. </doc>
  21765. </constructor>
  21766. <method name="call" return="org.apache.hadoop.io.Writable"
  21767. abstract="false" native="false" synchronized="false"
  21768. static="false" final="false" visibility="public"
  21769. deprecated="not deprecated">
  21770. <param name="protocol" type="java.lang.Class"/>
  21771. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21772. <param name="receivedTime" type="long"/>
  21773. <exception name="IOException" type="java.io.IOException"/>
  21774. </method>
  21775. <doc>
  21776. <![CDATA[An RPC Server.]]>
  21777. </doc>
  21778. </class>
  21779. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  21780. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  21781. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  21782. abstract="false"
  21783. static="true" final="false" visibility="public"
  21784. deprecated="not deprecated">
  21785. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  21786. static="false" final="false" visibility="public"
  21787. deprecated="not deprecated">
  21788. <doc>
  21789. <![CDATA[Create a version mismatch exception
  21790. @param interfaceName the name of the protocol mismatch
  21791. @param clientVersion the client's version of the protocol
  21792. @param serverVersion the server's version of the protocol]]>
  21793. </doc>
  21794. </constructor>
  21795. <method name="getInterfaceName" return="java.lang.String"
  21796. abstract="false" native="false" synchronized="false"
  21797. static="false" final="false" visibility="public"
  21798. deprecated="not deprecated">
  21799. <doc>
  21800. <![CDATA[Get the interface name
  21801. @return the java class name
  21802. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  21803. </doc>
  21804. </method>
  21805. <method name="getClientVersion" return="long"
  21806. abstract="false" native="false" synchronized="false"
  21807. static="false" final="false" visibility="public"
  21808. deprecated="not deprecated">
  21809. <doc>
  21810. <![CDATA[Get the client's preferred version]]>
  21811. </doc>
  21812. </method>
  21813. <method name="getServerVersion" return="long"
  21814. abstract="false" native="false" synchronized="false"
  21815. static="false" final="false" visibility="public"
  21816. deprecated="not deprecated">
  21817. <doc>
  21818. <![CDATA[Get the server's agreed to version.]]>
  21819. </doc>
  21820. </method>
  21821. <doc>
  21822. <![CDATA[A version mismatch for the RPC protocol.]]>
  21823. </doc>
  21824. </class>
  21825. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  21826. <!-- start class org.apache.hadoop.ipc.Server -->
  21827. <class name="Server" extends="java.lang.Object"
  21828. abstract="true"
  21829. static="false" final="false" visibility="public"
  21830. deprecated="not deprecated">
  21831. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  21832. static="false" final="false" visibility="protected"
  21833. deprecated="not deprecated">
  21834. <exception name="IOException" type="java.io.IOException"/>
  21835. </constructor>
  21836. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  21837. static="false" final="false" visibility="protected"
  21838. deprecated="not deprecated">
  21839. <exception name="IOException" type="java.io.IOException"/>
  21840. </constructor>
  21841. <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"
  21842. static="false" final="false" visibility="protected"
  21843. deprecated="not deprecated">
  21844. <exception name="IOException" type="java.io.IOException"/>
  21845. <doc>
  21846. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  21847. be of the named class. The <code>handlerCount</handlerCount> determines
  21848. the number of handler threads that will be used to process calls.]]>
  21849. </doc>
  21850. </constructor>
  21851. <method name="get" return="org.apache.hadoop.ipc.Server"
  21852. abstract="false" native="false" synchronized="false"
  21853. static="true" final="false" visibility="public"
  21854. deprecated="not deprecated">
  21855. <doc>
  21856. <![CDATA[Returns the server instance called under or null. May be called under
  21857. {@link #call(Writable, long)} implementations, and under {@link Writable}
  21858. methods of paramters and return values. Permits applications to access
  21859. the server context.]]>
  21860. </doc>
  21861. </method>
  21862. <method name="getRemoteIp" return="java.net.InetAddress"
  21863. abstract="false" native="false" synchronized="false"
  21864. static="true" final="false" visibility="public"
  21865. deprecated="not deprecated">
  21866. <doc>
  21867. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  21868. Returns null incase of an error.]]>
  21869. </doc>
  21870. </method>
  21871. <method name="getRemoteAddress" return="java.lang.String"
  21872. abstract="false" native="false" synchronized="false"
  21873. static="true" final="false" visibility="public"
  21874. deprecated="not deprecated">
  21875. <doc>
  21876. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  21877. Returns null in case of an error.]]>
  21878. </doc>
  21879. </method>
  21880. <method name="bind"
  21881. abstract="false" native="false" synchronized="false"
  21882. static="true" final="false" visibility="public"
  21883. deprecated="not deprecated">
  21884. <param name="socket" type="java.net.ServerSocket"/>
  21885. <param name="address" type="java.net.InetSocketAddress"/>
  21886. <param name="backlog" type="int"/>
  21887. <exception name="IOException" type="java.io.IOException"/>
  21888. <doc>
  21889. <![CDATA[A convenience method to bind to a given address and report
  21890. better exceptions if the address is not a valid host.
  21891. @param socket the socket to bind
  21892. @param address the address to bind to
  21893. @param backlog the number of connections allowed in the queue
  21894. @throws BindException if the address can't be bound
  21895. @throws UnknownHostException if the address isn't a valid host name
  21896. @throws IOException other random errors from bind]]>
  21897. </doc>
  21898. </method>
  21899. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  21900. abstract="false" native="false" synchronized="false"
  21901. static="false" final="false" visibility="public"
  21902. deprecated="not deprecated">
  21903. <doc>
  21904. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  21905. @return rpc metrics]]>
  21906. </doc>
  21907. </method>
  21908. <method name="setSocketSendBufSize"
  21909. abstract="false" native="false" synchronized="false"
  21910. static="false" final="false" visibility="public"
  21911. deprecated="not deprecated">
  21912. <param name="size" type="int"/>
  21913. <doc>
  21914. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  21915. </doc>
  21916. </method>
  21917. <method name="start"
  21918. abstract="false" native="false" synchronized="true"
  21919. static="false" final="false" visibility="public"
  21920. deprecated="not deprecated">
  21921. <doc>
  21922. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  21923. </doc>
  21924. </method>
  21925. <method name="stop"
  21926. abstract="false" native="false" synchronized="true"
  21927. static="false" final="false" visibility="public"
  21928. deprecated="not deprecated">
  21929. <doc>
  21930. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  21931. </doc>
  21932. </method>
  21933. <method name="join"
  21934. abstract="false" native="false" synchronized="true"
  21935. static="false" final="false" visibility="public"
  21936. deprecated="not deprecated">
  21937. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21938. <doc>
  21939. <![CDATA[Wait for the server to be stopped.
  21940. Does not wait for all subthreads to finish.
  21941. See {@link #stop()}.]]>
  21942. </doc>
  21943. </method>
  21944. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  21945. abstract="false" native="false" synchronized="true"
  21946. static="false" final="false" visibility="public"
  21947. deprecated="not deprecated">
  21948. <doc>
  21949. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  21950. @return the socket (ip+port) on which the RPC server is listening to.]]>
  21951. </doc>
  21952. </method>
  21953. <method name="call" return="org.apache.hadoop.io.Writable"
  21954. abstract="false" native="false" synchronized="false"
  21955. static="false" final="false" visibility="public"
  21956. deprecated="Use {@link #call(Class, Writable, long)} instead">
  21957. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21958. <param name="receiveTime" type="long"/>
  21959. <exception name="IOException" type="java.io.IOException"/>
  21960. <doc>
  21961. <![CDATA[Called for each call.
  21962. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  21963. </doc>
  21964. </method>
  21965. <method name="call" return="org.apache.hadoop.io.Writable"
  21966. abstract="true" native="false" synchronized="false"
  21967. static="false" final="false" visibility="public"
  21968. deprecated="not deprecated">
  21969. <param name="protocol" type="java.lang.Class"/>
  21970. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21971. <param name="receiveTime" type="long"/>
  21972. <exception name="IOException" type="java.io.IOException"/>
  21973. <doc>
  21974. <![CDATA[Called for each call.]]>
  21975. </doc>
  21976. </method>
  21977. <method name="authorize"
  21978. abstract="false" native="false" synchronized="false"
  21979. static="false" final="false" visibility="public"
  21980. deprecated="not deprecated">
  21981. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  21982. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  21983. <param name="addr" type="java.net.InetAddress"/>
  21984. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  21985. <doc>
  21986. <![CDATA[Authorize the incoming client connection.
  21987. @param user client user
  21988. @param connection incoming connection
  21989. @param addr InetAddress of incoming connection
  21990. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  21991. </doc>
  21992. </method>
  21993. <method name="getNumOpenConnections" return="int"
  21994. abstract="false" native="false" synchronized="false"
  21995. static="false" final="false" visibility="public"
  21996. deprecated="not deprecated">
  21997. <doc>
  21998. <![CDATA[The number of open RPC conections
  21999. @return the number of open rpc connections]]>
  22000. </doc>
  22001. </method>
  22002. <method name="getCallQueueLen" return="int"
  22003. abstract="false" native="false" synchronized="false"
  22004. static="false" final="false" visibility="public"
  22005. deprecated="not deprecated">
  22006. <doc>
  22007. <![CDATA[The number of rpc calls in the queue.
  22008. @return The number of rpc calls in the queue.]]>
  22009. </doc>
  22010. </method>
  22011. <field name="HEADER" type="java.nio.ByteBuffer"
  22012. transient="false" volatile="false"
  22013. static="true" final="true" visibility="public"
  22014. deprecated="not deprecated">
  22015. <doc>
  22016. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  22017. </doc>
  22018. </field>
  22019. <field name="CURRENT_VERSION" type="byte"
  22020. transient="false" volatile="false"
  22021. static="true" final="true" visibility="public"
  22022. deprecated="not deprecated">
  22023. </field>
  22024. <field name="LOG" type="org.apache.commons.logging.Log"
  22025. transient="false" volatile="false"
  22026. static="true" final="true" visibility="public"
  22027. deprecated="not deprecated">
  22028. </field>
  22029. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22030. transient="false" volatile="false"
  22031. static="false" final="false" visibility="protected"
  22032. deprecated="not deprecated">
  22033. </field>
  22034. <doc>
  22035. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  22036. parameter, and return a {@link Writable} as their value. A service runs on
  22037. a port and is defined by a parameter class and a value class.
  22038. @see Client]]>
  22039. </doc>
  22040. </class>
  22041. <!-- end class org.apache.hadoop.ipc.Server -->
  22042. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  22043. <class name="Server.Connection" extends="java.lang.Object"
  22044. abstract="false"
  22045. static="false" final="false" visibility="public"
  22046. deprecated="not deprecated">
  22047. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  22048. static="false" final="false" visibility="public"
  22049. deprecated="not deprecated">
  22050. </constructor>
  22051. <method name="toString" return="java.lang.String"
  22052. abstract="false" native="false" synchronized="false"
  22053. static="false" final="false" visibility="public"
  22054. deprecated="not deprecated">
  22055. </method>
  22056. <method name="getHostAddress" return="java.lang.String"
  22057. abstract="false" native="false" synchronized="false"
  22058. static="false" final="false" visibility="public"
  22059. deprecated="not deprecated">
  22060. </method>
  22061. <method name="getHostInetAddress" return="java.net.InetAddress"
  22062. abstract="false" native="false" synchronized="false"
  22063. static="false" final="false" visibility="public"
  22064. deprecated="not deprecated">
  22065. </method>
  22066. <method name="setLastContact"
  22067. abstract="false" native="false" synchronized="false"
  22068. static="false" final="false" visibility="public"
  22069. deprecated="not deprecated">
  22070. <param name="lastContact" type="long"/>
  22071. </method>
  22072. <method name="getLastContact" return="long"
  22073. abstract="false" native="false" synchronized="false"
  22074. static="false" final="false" visibility="public"
  22075. deprecated="not deprecated">
  22076. </method>
  22077. <method name="readAndProcess" return="int"
  22078. abstract="false" native="false" synchronized="false"
  22079. static="false" final="false" visibility="public"
  22080. deprecated="not deprecated">
  22081. <exception name="IOException" type="java.io.IOException"/>
  22082. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22083. </method>
  22084. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  22085. transient="false" volatile="false"
  22086. static="false" final="false" visibility="public"
  22087. deprecated="not deprecated">
  22088. </field>
  22089. <doc>
  22090. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  22091. </doc>
  22092. </class>
  22093. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  22094. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  22095. <interface name="VersionedProtocol" abstract="true"
  22096. static="false" final="false" visibility="public"
  22097. deprecated="not deprecated">
  22098. <method name="getProtocolVersion" return="long"
  22099. abstract="false" native="false" synchronized="false"
  22100. static="false" final="false" visibility="public"
  22101. deprecated="not deprecated">
  22102. <param name="protocol" type="java.lang.String"/>
  22103. <param name="clientVersion" type="long"/>
  22104. <exception name="IOException" type="java.io.IOException"/>
  22105. <doc>
  22106. <![CDATA[Return protocol version corresponding to protocol interface.
  22107. @param protocol The classname of the protocol interface
  22108. @param clientVersion The version of the protocol that the client speaks
  22109. @return the version that the server will speak]]>
  22110. </doc>
  22111. </method>
  22112. <doc>
  22113. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  22114. Subclasses of this interface are also supposed to have
  22115. a static final long versionID field.]]>
  22116. </doc>
  22117. </interface>
  22118. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  22119. </package>
  22120. <package name="org.apache.hadoop.ipc.metrics">
  22121. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  22122. <class name="RpcInstrumentation" extends="java.lang.Object"
  22123. abstract="false"
  22124. static="false" final="false" visibility="public"
  22125. deprecated="not deprecated">
  22126. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  22127. <method name="getMetrics"
  22128. abstract="false" native="false" synchronized="false"
  22129. static="false" final="false" visibility="public"
  22130. deprecated="not deprecated">
  22131. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  22132. <param name="all" type="boolean"/>
  22133. </method>
  22134. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22135. abstract="false" native="false" synchronized="false"
  22136. static="true" final="false" visibility="public"
  22137. deprecated="not deprecated">
  22138. <param name="serverName" type="java.lang.String"/>
  22139. <param name="port" type="int"/>
  22140. <doc>
  22141. <![CDATA[Create an RPC instrumentation object
  22142. @param serverName name of the server
  22143. @param port the RPC port
  22144. @return the instrumentation object]]>
  22145. </doc>
  22146. </method>
  22147. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22148. abstract="false" native="false" synchronized="false"
  22149. static="true" final="false" visibility="public"
  22150. deprecated="not deprecated">
  22151. <param name="serverName" type="java.lang.String"/>
  22152. <param name="port" type="int"/>
  22153. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  22154. <doc>
  22155. <![CDATA[Create an RPC instrumentation object
  22156. Mostly useful for testing.
  22157. @param serverName name of the server
  22158. @param port the RPC port
  22159. @param ms the metrics system object
  22160. @return the instrumentation object]]>
  22161. </doc>
  22162. </method>
  22163. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  22164. abstract="false" native="false" synchronized="false"
  22165. static="false" final="false" visibility="public"
  22166. deprecated="not deprecated">
  22167. <doc>
  22168. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  22169. </doc>
  22170. </method>
  22171. <method name="incrAuthenticationFailures"
  22172. abstract="false" native="false" synchronized="false"
  22173. static="false" final="false" visibility="public"
  22174. deprecated="not deprecated">
  22175. <doc>
  22176. <![CDATA[One authentication failure event]]>
  22177. </doc>
  22178. </method>
  22179. <method name="incrAuthenticationSuccesses"
  22180. abstract="false" native="false" synchronized="false"
  22181. static="false" final="false" visibility="public"
  22182. deprecated="not deprecated">
  22183. <doc>
  22184. <![CDATA[One authentication success event]]>
  22185. </doc>
  22186. </method>
  22187. <method name="incrAuthorizationSuccesses"
  22188. abstract="false" native="false" synchronized="false"
  22189. static="false" final="false" visibility="public"
  22190. deprecated="not deprecated">
  22191. <doc>
  22192. <![CDATA[One authorization success event]]>
  22193. </doc>
  22194. </method>
  22195. <method name="incrAuthorizationFailures"
  22196. abstract="false" native="false" synchronized="false"
  22197. static="false" final="false" visibility="public"
  22198. deprecated="not deprecated">
  22199. <doc>
  22200. <![CDATA[One authorization failure event]]>
  22201. </doc>
  22202. </method>
  22203. <method name="shutdown"
  22204. abstract="false" native="false" synchronized="false"
  22205. static="false" final="false" visibility="public"
  22206. deprecated="not deprecated">
  22207. <doc>
  22208. <![CDATA[Shutdown the instrumentation for the process]]>
  22209. </doc>
  22210. </method>
  22211. <method name="incrSentBytes"
  22212. abstract="false" native="false" synchronized="false"
  22213. static="false" final="false" visibility="public"
  22214. deprecated="not deprecated">
  22215. <param name="count" type="int"/>
  22216. <doc>
  22217. <![CDATA[Increment sent bytes by count
  22218. @param count to increment]]>
  22219. </doc>
  22220. </method>
  22221. <method name="incrReceivedBytes"
  22222. abstract="false" native="false" synchronized="false"
  22223. static="false" final="false" visibility="public"
  22224. deprecated="not deprecated">
  22225. <param name="count" type="int"/>
  22226. <doc>
  22227. <![CDATA[Increment received bytes by count
  22228. @param count to increment]]>
  22229. </doc>
  22230. </method>
  22231. <method name="addRpcQueueTime"
  22232. abstract="false" native="false" synchronized="false"
  22233. static="false" final="false" visibility="public"
  22234. deprecated="not deprecated">
  22235. <param name="qTime" type="int"/>
  22236. <doc>
  22237. <![CDATA[Add an RPC queue time sample
  22238. @param qTime]]>
  22239. </doc>
  22240. </method>
  22241. <method name="addRpcProcessingTime"
  22242. abstract="false" native="false" synchronized="false"
  22243. static="false" final="false" visibility="public"
  22244. deprecated="not deprecated">
  22245. <param name="processingTime" type="int"/>
  22246. <doc>
  22247. <![CDATA[Add an RPC processing time sample
  22248. @param processingTime]]>
  22249. </doc>
  22250. </method>
  22251. <method name="addRpcProcessingTime"
  22252. abstract="false" native="false" synchronized="false"
  22253. static="false" final="false" visibility="public"
  22254. deprecated="not deprecated">
  22255. <param name="methodName" type="java.lang.String"/>
  22256. <param name="processingTime" type="int"/>
  22257. <doc>
  22258. <![CDATA[Add an RPC processing time sample for a particular RPC method
  22259. @param methodName method name of the RPC
  22260. @param processingTime elapsed processing time of the RPC]]>
  22261. </doc>
  22262. </method>
  22263. <doc>
  22264. <![CDATA[The RPC metrics instrumentation]]>
  22265. </doc>
  22266. </class>
  22267. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  22268. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22269. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  22270. abstract="false"
  22271. static="true" final="false" visibility="public"
  22272. deprecated="not deprecated">
  22273. <method name="addRpcProcessingTime"
  22274. abstract="false" native="false" synchronized="true"
  22275. static="false" final="false" visibility="public"
  22276. deprecated="not deprecated">
  22277. <param name="methodName" type="java.lang.String"/>
  22278. <param name="processingTime" type="int"/>
  22279. </method>
  22280. <doc>
  22281. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  22282. easy and efficient filtering]]>
  22283. </doc>
  22284. </class>
  22285. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22286. </package>
  22287. <package name="org.apache.hadoop.jmx">
  22288. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  22289. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  22290. abstract="false"
  22291. static="false" final="false" visibility="public"
  22292. deprecated="not deprecated">
  22293. <constructor name="JMXJsonServlet"
  22294. static="false" final="false" visibility="public"
  22295. deprecated="not deprecated">
  22296. </constructor>
  22297. <method name="init"
  22298. abstract="false" native="false" synchronized="false"
  22299. static="false" final="false" visibility="public"
  22300. deprecated="not deprecated">
  22301. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22302. <doc>
  22303. <![CDATA[Initialize this servlet.]]>
  22304. </doc>
  22305. </method>
  22306. <method name="doGet"
  22307. abstract="false" native="false" synchronized="false"
  22308. static="false" final="false" visibility="public"
  22309. deprecated="not deprecated">
  22310. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22311. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22312. <doc>
  22313. <![CDATA[Process a GET request for the specified resource.
  22314. @param request
  22315. The servlet request we are processing
  22316. @param response
  22317. The servlet response we are creating]]>
  22318. </doc>
  22319. </method>
  22320. <field name="mBeanServer" type="javax.management.MBeanServer"
  22321. transient="true" volatile="false"
  22322. static="false" final="false" visibility="protected"
  22323. deprecated="not deprecated">
  22324. <doc>
  22325. <![CDATA[MBean server.]]>
  22326. </doc>
  22327. </field>
  22328. <doc>
  22329. <![CDATA[Provides Read only web access to JMX.
  22330. <p>
  22331. This servlet generally will be placed under the /jmx URL for each
  22332. HttpServer. It provides read only
  22333. access to JMX metrics. The optional <code>qry</code> parameter
  22334. may be used to query only a subset of the JMX Beans. This query
  22335. functionality is provided through the
  22336. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  22337. method.
  22338. <p>
  22339. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  22340. all hadoop metrics exposed through JMX.
  22341. <p>
  22342. If the <code>qry</code> parameter is not formatted correctly then a
  22343. 400 BAD REQUEST http response code will be returned.
  22344. <p>
  22345. The return format is JSON and in the form
  22346. <p>
  22347. <code><pre>
  22348. {
  22349. "beans" : [
  22350. {
  22351. "name":"bean-name"
  22352. ...
  22353. }
  22354. ]
  22355. }
  22356. </pre></code>
  22357. <p>
  22358. The servlet attempts to convert the the JMXBeans into JSON. Each
  22359. bean's attributes will be converted to a JSON object member.
  22360. If the attribute is a boolean, a number, a string, or an array
  22361. it will be converted to the JSON equivalent.
  22362. If the value is a {@link CompositeData} then it will be converted
  22363. to a JSON object with the keys as the name of the JSON member and
  22364. the value is converted following these same rules.
  22365. If the value is a {@link TabularData} then it will be converted
  22366. to an array of the {@link CompositeData} elements that it contains.
  22367. All other objects will be converted to a string and output as such.
  22368. The bean's name and modelerType will be returned for all beans.]]>
  22369. </doc>
  22370. </class>
  22371. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  22372. </package>
  22373. <package name="org.apache.hadoop.log">
  22374. <!-- start class org.apache.hadoop.log.EventCounter -->
  22375. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  22376. abstract="false"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  22379. <constructor name="EventCounter"
  22380. static="false" final="false" visibility="public"
  22381. deprecated="not deprecated">
  22382. </constructor>
  22383. <doc>
  22384. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22385. fatal, error and warn. The class name is used in log4j.properties
  22386. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  22387. </doc>
  22388. </class>
  22389. <!-- end class org.apache.hadoop.log.EventCounter -->
  22390. <!-- start class org.apache.hadoop.log.LogLevel -->
  22391. <class name="LogLevel" extends="java.lang.Object"
  22392. abstract="false"
  22393. static="false" final="false" visibility="public"
  22394. deprecated="not deprecated">
  22395. <constructor name="LogLevel"
  22396. static="false" final="false" visibility="public"
  22397. deprecated="not deprecated">
  22398. </constructor>
  22399. <method name="main"
  22400. abstract="false" native="false" synchronized="false"
  22401. static="true" final="false" visibility="public"
  22402. deprecated="not deprecated">
  22403. <param name="args" type="java.lang.String[]"/>
  22404. <doc>
  22405. <![CDATA[A command line implementation]]>
  22406. </doc>
  22407. </method>
  22408. <field name="USAGES" type="java.lang.String"
  22409. transient="false" volatile="false"
  22410. static="true" final="true" visibility="public"
  22411. deprecated="not deprecated">
  22412. </field>
  22413. <doc>
  22414. <![CDATA[Change log level in runtime.]]>
  22415. </doc>
  22416. </class>
  22417. <!-- end class org.apache.hadoop.log.LogLevel -->
  22418. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  22419. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  22420. abstract="false"
  22421. static="true" final="false" visibility="public"
  22422. deprecated="not deprecated">
  22423. <constructor name="LogLevel.Servlet"
  22424. static="false" final="false" visibility="public"
  22425. deprecated="not deprecated">
  22426. </constructor>
  22427. <method name="doGet"
  22428. abstract="false" native="false" synchronized="false"
  22429. static="false" final="false" visibility="public"
  22430. deprecated="not deprecated">
  22431. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22432. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22433. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22434. <exception name="IOException" type="java.io.IOException"/>
  22435. </method>
  22436. <doc>
  22437. <![CDATA[A servlet implementation]]>
  22438. </doc>
  22439. </class>
  22440. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  22441. </package>
  22442. <package name="org.apache.hadoop.log.metrics">
  22443. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  22444. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  22445. abstract="false"
  22446. static="false" final="false" visibility="public"
  22447. deprecated="not deprecated">
  22448. <constructor name="EventCounter"
  22449. static="false" final="false" visibility="public"
  22450. deprecated="not deprecated">
  22451. </constructor>
  22452. <method name="getFatal" return="long"
  22453. abstract="false" native="false" synchronized="false"
  22454. static="true" final="false" visibility="public"
  22455. deprecated="not deprecated">
  22456. </method>
  22457. <method name="getError" return="long"
  22458. abstract="false" native="false" synchronized="false"
  22459. static="true" final="false" visibility="public"
  22460. deprecated="not deprecated">
  22461. </method>
  22462. <method name="getWarn" return="long"
  22463. abstract="false" native="false" synchronized="false"
  22464. static="true" final="false" visibility="public"
  22465. deprecated="not deprecated">
  22466. </method>
  22467. <method name="getInfo" return="long"
  22468. abstract="false" native="false" synchronized="false"
  22469. static="true" final="false" visibility="public"
  22470. deprecated="not deprecated">
  22471. </method>
  22472. <method name="append"
  22473. abstract="false" native="false" synchronized="false"
  22474. static="false" final="false" visibility="public"
  22475. deprecated="not deprecated">
  22476. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  22477. </method>
  22478. <method name="close"
  22479. abstract="false" native="false" synchronized="false"
  22480. static="false" final="false" visibility="public"
  22481. deprecated="not deprecated">
  22482. </method>
  22483. <method name="requiresLayout" return="boolean"
  22484. abstract="false" native="false" synchronized="false"
  22485. static="false" final="false" visibility="public"
  22486. deprecated="not deprecated">
  22487. </method>
  22488. <doc>
  22489. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22490. fatal, error and warn. The class name is used in log4j.properties]]>
  22491. </doc>
  22492. </class>
  22493. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  22494. </package>
  22495. <package name="org.apache.hadoop.metrics">
  22496. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  22497. <class name="ContextFactory" extends="java.lang.Object"
  22498. abstract="false"
  22499. static="false" final="false" visibility="public"
  22500. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22501. <constructor name="ContextFactory"
  22502. static="false" final="false" visibility="protected"
  22503. deprecated="not deprecated">
  22504. <doc>
  22505. <![CDATA[Creates a new instance of ContextFactory]]>
  22506. </doc>
  22507. </constructor>
  22508. <method name="getAttribute" return="java.lang.Object"
  22509. abstract="false" native="false" synchronized="false"
  22510. static="false" final="false" visibility="public"
  22511. deprecated="not deprecated">
  22512. <param name="attributeName" type="java.lang.String"/>
  22513. <doc>
  22514. <![CDATA[Returns the value of the named attribute, or null if there is no
  22515. attribute of that name.
  22516. @param attributeName the attribute name
  22517. @return the attribute value]]>
  22518. </doc>
  22519. </method>
  22520. <method name="getAttributeNames" return="java.lang.String[]"
  22521. abstract="false" native="false" synchronized="false"
  22522. static="false" final="false" visibility="public"
  22523. deprecated="not deprecated">
  22524. <doc>
  22525. <![CDATA[Returns the names of all the factory's attributes.
  22526. @return the attribute names]]>
  22527. </doc>
  22528. </method>
  22529. <method name="setAttribute"
  22530. abstract="false" native="false" synchronized="false"
  22531. static="false" final="false" visibility="public"
  22532. deprecated="not deprecated">
  22533. <param name="attributeName" type="java.lang.String"/>
  22534. <param name="value" type="java.lang.Object"/>
  22535. <doc>
  22536. <![CDATA[Sets the named factory attribute to the specified value, creating it
  22537. if it did not already exist. If the value is null, this is the same as
  22538. calling removeAttribute.
  22539. @param attributeName the attribute name
  22540. @param value the new attribute value]]>
  22541. </doc>
  22542. </method>
  22543. <method name="removeAttribute"
  22544. abstract="false" native="false" synchronized="false"
  22545. static="false" final="false" visibility="public"
  22546. deprecated="not deprecated">
  22547. <param name="attributeName" type="java.lang.String"/>
  22548. <doc>
  22549. <![CDATA[Removes the named attribute if it exists.
  22550. @param attributeName the attribute name]]>
  22551. </doc>
  22552. </method>
  22553. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22554. abstract="false" native="false" synchronized="true"
  22555. static="false" final="false" visibility="public"
  22556. deprecated="not deprecated">
  22557. <param name="refName" type="java.lang.String"/>
  22558. <param name="contextName" type="java.lang.String"/>
  22559. <exception name="IOException" type="java.io.IOException"/>
  22560. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  22561. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  22562. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  22563. <doc>
  22564. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  22565. using the factory's current configuration attributes. <p/>
  22566. When constructing the instance, if the factory property
  22567. <i>contextName</i>.class</code> exists,
  22568. its value is taken to be the name of the class to instantiate. Otherwise,
  22569. the default is to create an instance of
  22570. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  22571. dummy "no-op" context which will cause all metric data to be discarded.
  22572. @param contextName the name of the context
  22573. @return the named MetricsContext]]>
  22574. </doc>
  22575. </method>
  22576. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22577. abstract="false" native="false" synchronized="true"
  22578. static="false" final="false" visibility="public"
  22579. deprecated="not deprecated">
  22580. <param name="contextName" type="java.lang.String"/>
  22581. <exception name="IOException" type="java.io.IOException"/>
  22582. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  22583. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  22584. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  22585. </method>
  22586. <method name="getAllContexts" return="java.util.Collection"
  22587. abstract="false" native="false" synchronized="true"
  22588. static="false" final="false" visibility="public"
  22589. deprecated="not deprecated">
  22590. <doc>
  22591. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  22592. </doc>
  22593. </method>
  22594. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  22595. abstract="false" native="false" synchronized="true"
  22596. static="true" final="false" visibility="public"
  22597. deprecated="not deprecated">
  22598. <param name="contextName" type="java.lang.String"/>
  22599. <doc>
  22600. <![CDATA[Returns a "null" context - one which does nothing.]]>
  22601. </doc>
  22602. </method>
  22603. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  22604. abstract="false" native="false" synchronized="true"
  22605. static="true" final="false" visibility="public"
  22606. deprecated="not deprecated">
  22607. <exception name="IOException" type="java.io.IOException"/>
  22608. <doc>
  22609. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  22610. necessary. <p/>
  22611. When the instance is constructed, this method checks if the file
  22612. <code>hadoop-metrics.properties</code> exists on the class path. If it
  22613. exists, it must be in the format defined by java.util.Properties, and all
  22614. the properties in the file are set as attributes on the newly created
  22615. ContextFactory instance.
  22616. @return the singleton ContextFactory instance]]>
  22617. </doc>
  22618. </method>
  22619. <doc>
  22620. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  22621. of this class, use the static <code>getFactory()</code> method.
  22622. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22623. </doc>
  22624. </class>
  22625. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  22626. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  22627. <interface name="MetricsContext" abstract="true"
  22628. static="false" final="false" visibility="public"
  22629. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22630. <method name="init"
  22631. abstract="false" native="false" synchronized="false"
  22632. static="false" final="false" visibility="public"
  22633. deprecated="not deprecated">
  22634. <param name="contextName" type="java.lang.String"/>
  22635. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  22636. <doc>
  22637. <![CDATA[Initialize this context.
  22638. @param contextName The given name for this context
  22639. @param factory The creator of this context]]>
  22640. </doc>
  22641. </method>
  22642. <method name="getContextName" return="java.lang.String"
  22643. abstract="false" native="false" synchronized="false"
  22644. static="false" final="false" visibility="public"
  22645. deprecated="not deprecated">
  22646. <doc>
  22647. <![CDATA[Returns the context name.
  22648. @return the context name]]>
  22649. </doc>
  22650. </method>
  22651. <method name="startMonitoring"
  22652. abstract="false" native="false" synchronized="false"
  22653. static="false" final="false" visibility="public"
  22654. deprecated="not deprecated">
  22655. <exception name="IOException" type="java.io.IOException"/>
  22656. <doc>
  22657. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  22658. updated.]]>
  22659. </doc>
  22660. </method>
  22661. <method name="stopMonitoring"
  22662. abstract="false" native="false" synchronized="false"
  22663. static="false" final="false" visibility="public"
  22664. deprecated="not deprecated">
  22665. <doc>
  22666. <![CDATA[Stops monitoring. This does not free any data that the implementation
  22667. may have buffered for sending at the next timer event. It
  22668. is OK to call <code>startMonitoring()</code> again after calling
  22669. this.
  22670. @see #close()]]>
  22671. </doc>
  22672. </method>
  22673. <method name="isMonitoring" return="boolean"
  22674. abstract="false" native="false" synchronized="false"
  22675. static="false" final="false" visibility="public"
  22676. deprecated="not deprecated">
  22677. <doc>
  22678. <![CDATA[Returns true if monitoring is currently in progress.]]>
  22679. </doc>
  22680. </method>
  22681. <method name="close"
  22682. abstract="false" native="false" synchronized="false"
  22683. static="false" final="false" visibility="public"
  22684. deprecated="not deprecated">
  22685. <doc>
  22686. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  22687. object to its initial state.]]>
  22688. </doc>
  22689. </method>
  22690. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  22691. abstract="false" native="false" synchronized="false"
  22692. static="false" final="false" visibility="public"
  22693. deprecated="not deprecated">
  22694. <param name="recordName" type="java.lang.String"/>
  22695. <doc>
  22696. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  22697. Throws an exception if the metrics implementation is configured with a fixed
  22698. set of record names and <code>recordName</code> is not in that set.
  22699. @param recordName the name of the record
  22700. @throws MetricsException if recordName conflicts with configuration data]]>
  22701. </doc>
  22702. </method>
  22703. <method name="registerUpdater"
  22704. abstract="false" native="false" synchronized="false"
  22705. static="false" final="false" visibility="public"
  22706. deprecated="not deprecated">
  22707. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  22708. <doc>
  22709. <![CDATA[Registers a callback to be called at regular time intervals, as
  22710. determined by the implementation-class specific configuration.
  22711. @param updater object to be run periodically; it should updated
  22712. some metrics records and then return]]>
  22713. </doc>
  22714. </method>
  22715. <method name="unregisterUpdater"
  22716. abstract="false" native="false" synchronized="false"
  22717. static="false" final="false" visibility="public"
  22718. deprecated="not deprecated">
  22719. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  22720. <doc>
  22721. <![CDATA[Removes a callback, if it exists.
  22722. @param updater object to be removed from the callback list]]>
  22723. </doc>
  22724. </method>
  22725. <method name="getPeriod" return="int"
  22726. abstract="false" native="false" synchronized="false"
  22727. static="false" final="false" visibility="public"
  22728. deprecated="not deprecated">
  22729. <doc>
  22730. <![CDATA[Returns the timer period.]]>
  22731. </doc>
  22732. </method>
  22733. <method name="getAllRecords" return="java.util.Map"
  22734. abstract="false" native="false" synchronized="false"
  22735. static="false" final="false" visibility="public"
  22736. deprecated="not deprecated">
  22737. <doc>
  22738. <![CDATA[Retrieves all the records managed by this MetricsContext.
  22739. Useful for monitoring systems that are polling-based.
  22740. @return A non-null map from all record names to the records managed.]]>
  22741. </doc>
  22742. </method>
  22743. <field name="DEFAULT_PERIOD" type="int"
  22744. transient="false" volatile="false"
  22745. static="true" final="true" visibility="public"
  22746. deprecated="not deprecated">
  22747. <doc>
  22748. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  22749. </doc>
  22750. </field>
  22751. <doc>
  22752. <![CDATA[The main interface to the metrics package.
  22753. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22754. </doc>
  22755. </interface>
  22756. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  22757. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  22758. <class name="MetricsException" extends="java.lang.RuntimeException"
  22759. abstract="false"
  22760. static="false" final="false" visibility="public"
  22761. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  22762. <constructor name="MetricsException"
  22763. static="false" final="false" visibility="public"
  22764. deprecated="not deprecated">
  22765. <doc>
  22766. <![CDATA[Creates a new instance of MetricsException]]>
  22767. </doc>
  22768. </constructor>
  22769. <constructor name="MetricsException" type="java.lang.String"
  22770. static="false" final="false" visibility="public"
  22771. deprecated="not deprecated">
  22772. <doc>
  22773. <![CDATA[Creates a new instance of MetricsException
  22774. @param message an error message]]>
  22775. </doc>
  22776. </constructor>
  22777. <doc>
  22778. <![CDATA[General-purpose, unchecked metrics exception.
  22779. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  22780. </doc>
  22781. </class>
  22782. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  22783. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  22784. <interface name="MetricsRecord" abstract="true"
  22785. static="false" final="false" visibility="public"
  22786. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22787. <method name="getRecordName" return="java.lang.String"
  22788. abstract="false" native="false" synchronized="false"
  22789. static="false" final="false" visibility="public"
  22790. deprecated="not deprecated">
  22791. <doc>
  22792. <![CDATA[Returns the record name.
  22793. @return the record name]]>
  22794. </doc>
  22795. </method>
  22796. <method name="setTag"
  22797. abstract="false" native="false" synchronized="false"
  22798. static="false" final="false" visibility="public"
  22799. deprecated="not deprecated">
  22800. <param name="tagName" type="java.lang.String"/>
  22801. <param name="tagValue" type="java.lang.String"/>
  22802. <doc>
  22803. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  22804. which is treated the same as an empty String.
  22805. @param tagName name of the tag
  22806. @param tagValue new value of the tag
  22807. @throws MetricsException if the tagName conflicts with the configuration]]>
  22808. </doc>
  22809. </method>
  22810. <method name="setTag"
  22811. abstract="false" native="false" synchronized="false"
  22812. static="false" final="false" visibility="public"
  22813. deprecated="not deprecated">
  22814. <param name="tagName" type="java.lang.String"/>
  22815. <param name="tagValue" type="int"/>
  22816. <doc>
  22817. <![CDATA[Sets the named tag to the specified value.
  22818. @param tagName name of the tag
  22819. @param tagValue new value of the tag
  22820. @throws MetricsException if the tagName conflicts with the configuration]]>
  22821. </doc>
  22822. </method>
  22823. <method name="setTag"
  22824. abstract="false" native="false" synchronized="false"
  22825. static="false" final="false" visibility="public"
  22826. deprecated="not deprecated">
  22827. <param name="tagName" type="java.lang.String"/>
  22828. <param name="tagValue" type="long"/>
  22829. <doc>
  22830. <![CDATA[Sets the named tag to the specified value.
  22831. @param tagName name of the tag
  22832. @param tagValue new value of the tag
  22833. @throws MetricsException if the tagName conflicts with the configuration]]>
  22834. </doc>
  22835. </method>
  22836. <method name="setTag"
  22837. abstract="false" native="false" synchronized="false"
  22838. static="false" final="false" visibility="public"
  22839. deprecated="not deprecated">
  22840. <param name="tagName" type="java.lang.String"/>
  22841. <param name="tagValue" type="short"/>
  22842. <doc>
  22843. <![CDATA[Sets the named tag to the specified value.
  22844. @param tagName name of the tag
  22845. @param tagValue new value of the tag
  22846. @throws MetricsException if the tagName conflicts with the configuration]]>
  22847. </doc>
  22848. </method>
  22849. <method name="setTag"
  22850. abstract="false" native="false" synchronized="false"
  22851. static="false" final="false" visibility="public"
  22852. deprecated="not deprecated">
  22853. <param name="tagName" type="java.lang.String"/>
  22854. <param name="tagValue" type="byte"/>
  22855. <doc>
  22856. <![CDATA[Sets the named tag to the specified value.
  22857. @param tagName name of the tag
  22858. @param tagValue new value of the tag
  22859. @throws MetricsException if the tagName conflicts with the configuration]]>
  22860. </doc>
  22861. </method>
  22862. <method name="removeTag"
  22863. abstract="false" native="false" synchronized="false"
  22864. static="false" final="false" visibility="public"
  22865. deprecated="not deprecated">
  22866. <param name="tagName" type="java.lang.String"/>
  22867. <doc>
  22868. <![CDATA[Removes any tag of the specified name.
  22869. @param tagName name of a tag]]>
  22870. </doc>
  22871. </method>
  22872. <method name="setMetric"
  22873. abstract="false" native="false" synchronized="false"
  22874. static="false" final="false" visibility="public"
  22875. deprecated="not deprecated">
  22876. <param name="metricName" type="java.lang.String"/>
  22877. <param name="metricValue" type="int"/>
  22878. <doc>
  22879. <![CDATA[Sets the named metric to the specified value.
  22880. @param metricName name of the metric
  22881. @param metricValue new value of the metric
  22882. @throws MetricsException if the metricName or the type of the metricValue
  22883. conflicts with the configuration]]>
  22884. </doc>
  22885. </method>
  22886. <method name="setMetric"
  22887. abstract="false" native="false" synchronized="false"
  22888. static="false" final="false" visibility="public"
  22889. deprecated="not deprecated">
  22890. <param name="metricName" type="java.lang.String"/>
  22891. <param name="metricValue" type="long"/>
  22892. <doc>
  22893. <![CDATA[Sets the named metric to the specified value.
  22894. @param metricName name of the metric
  22895. @param metricValue new value of the metric
  22896. @throws MetricsException if the metricName or the type of the metricValue
  22897. conflicts with the configuration]]>
  22898. </doc>
  22899. </method>
  22900. <method name="setMetric"
  22901. abstract="false" native="false" synchronized="false"
  22902. static="false" final="false" visibility="public"
  22903. deprecated="not deprecated">
  22904. <param name="metricName" type="java.lang.String"/>
  22905. <param name="metricValue" type="short"/>
  22906. <doc>
  22907. <![CDATA[Sets the named metric to the specified value.
  22908. @param metricName name of the metric
  22909. @param metricValue new value of the metric
  22910. @throws MetricsException if the metricName or the type of the metricValue
  22911. conflicts with the configuration]]>
  22912. </doc>
  22913. </method>
  22914. <method name="setMetric"
  22915. abstract="false" native="false" synchronized="false"
  22916. static="false" final="false" visibility="public"
  22917. deprecated="not deprecated">
  22918. <param name="metricName" type="java.lang.String"/>
  22919. <param name="metricValue" type="byte"/>
  22920. <doc>
  22921. <![CDATA[Sets the named metric to the specified value.
  22922. @param metricName name of the metric
  22923. @param metricValue new value of the metric
  22924. @throws MetricsException if the metricName or the type of the metricValue
  22925. conflicts with the configuration]]>
  22926. </doc>
  22927. </method>
  22928. <method name="setMetric"
  22929. abstract="false" native="false" synchronized="false"
  22930. static="false" final="false" visibility="public"
  22931. deprecated="not deprecated">
  22932. <param name="metricName" type="java.lang.String"/>
  22933. <param name="metricValue" type="float"/>
  22934. <doc>
  22935. <![CDATA[Sets the named metric to the specified value.
  22936. @param metricName name of the metric
  22937. @param metricValue new value of the metric
  22938. @throws MetricsException if the metricName or the type of the metricValue
  22939. conflicts with the configuration]]>
  22940. </doc>
  22941. </method>
  22942. <method name="incrMetric"
  22943. abstract="false" native="false" synchronized="false"
  22944. static="false" final="false" visibility="public"
  22945. deprecated="not deprecated">
  22946. <param name="metricName" type="java.lang.String"/>
  22947. <param name="metricValue" type="int"/>
  22948. <doc>
  22949. <![CDATA[Increments the named metric by the specified value.
  22950. @param metricName name of the metric
  22951. @param metricValue incremental value
  22952. @throws MetricsException if the metricName or the type of the metricValue
  22953. conflicts with the configuration]]>
  22954. </doc>
  22955. </method>
  22956. <method name="incrMetric"
  22957. abstract="false" native="false" synchronized="false"
  22958. static="false" final="false" visibility="public"
  22959. deprecated="not deprecated">
  22960. <param name="metricName" type="java.lang.String"/>
  22961. <param name="metricValue" type="long"/>
  22962. <doc>
  22963. <![CDATA[Increments the named metric by the specified value.
  22964. @param metricName name of the metric
  22965. @param metricValue incremental value
  22966. @throws MetricsException if the metricName or the type of the metricValue
  22967. conflicts with the configuration]]>
  22968. </doc>
  22969. </method>
  22970. <method name="incrMetric"
  22971. abstract="false" native="false" synchronized="false"
  22972. static="false" final="false" visibility="public"
  22973. deprecated="not deprecated">
  22974. <param name="metricName" type="java.lang.String"/>
  22975. <param name="metricValue" type="short"/>
  22976. <doc>
  22977. <![CDATA[Increments the named metric by the specified value.
  22978. @param metricName name of the metric
  22979. @param metricValue incremental value
  22980. @throws MetricsException if the metricName or the type of the metricValue
  22981. conflicts with the configuration]]>
  22982. </doc>
  22983. </method>
  22984. <method name="incrMetric"
  22985. abstract="false" native="false" synchronized="false"
  22986. static="false" final="false" visibility="public"
  22987. deprecated="not deprecated">
  22988. <param name="metricName" type="java.lang.String"/>
  22989. <param name="metricValue" type="byte"/>
  22990. <doc>
  22991. <![CDATA[Increments the named metric by the specified value.
  22992. @param metricName name of the metric
  22993. @param metricValue incremental value
  22994. @throws MetricsException if the metricName or the type of the metricValue
  22995. conflicts with the configuration]]>
  22996. </doc>
  22997. </method>
  22998. <method name="incrMetric"
  22999. abstract="false" native="false" synchronized="false"
  23000. static="false" final="false" visibility="public"
  23001. deprecated="not deprecated">
  23002. <param name="metricName" type="java.lang.String"/>
  23003. <param name="metricValue" type="float"/>
  23004. <doc>
  23005. <![CDATA[Increments the named metric by the specified value.
  23006. @param metricName name of the metric
  23007. @param metricValue incremental value
  23008. @throws MetricsException if the metricName or the type of the metricValue
  23009. conflicts with the configuration]]>
  23010. </doc>
  23011. </method>
  23012. <method name="update"
  23013. abstract="false" native="false" synchronized="false"
  23014. static="false" final="false" visibility="public"
  23015. deprecated="not deprecated">
  23016. <doc>
  23017. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  23018. If the tag values match an existing row, that row is updated;
  23019. otherwise, a new row is added.]]>
  23020. </doc>
  23021. </method>
  23022. <method name="remove"
  23023. abstract="false" native="false" synchronized="false"
  23024. static="false" final="false" visibility="public"
  23025. deprecated="not deprecated">
  23026. <doc>
  23027. <![CDATA[Removes, from the buffered data table, all rows having tags
  23028. that equal the tags that have been set on this record. For example,
  23029. if there are no tags on this record, all rows for this record name
  23030. would be removed. Or, if there is a single tag on this record, then
  23031. just rows containing a tag with the same name and value would be removed.]]>
  23032. </doc>
  23033. </method>
  23034. <doc>
  23035. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  23036. system. <p/>
  23037. A record name identifies the kind of data to be reported. For example, a
  23038. program reporting statistics relating to the disks on a computer might use
  23039. a record name "diskStats".<p/>
  23040. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  23041. continue the example, the "diskStats" record might use a tag named
  23042. "diskName" to identify a particular disk. Sometimes it is useful to have
  23043. more than one tag, so there might also be a "diskType" with value "ide" or
  23044. "scsi" or whatever.<p/>
  23045. A record also has zero or more <i>metrics</i>. These are the named
  23046. values that are to be reported to the metrics system. In the "diskStats"
  23047. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  23048. "kbReadPerSecond", etc.<p/>
  23049. The general procedure for using a MetricsRecord is to fill in its tag and
  23050. metric values, and then call <code>update()</code> to pass the record to the
  23051. client library.
  23052. Metric data is not immediately sent to the metrics system
  23053. each time that <code>update()</code> is called.
  23054. An internal table is maintained, identified by the record name. This
  23055. table has columns
  23056. corresponding to the tag and the metric names, and rows
  23057. corresponding to each unique set of tag values. An update
  23058. either modifies an existing row in the table, or adds a new row with a set of
  23059. tag values that are different from all the other rows. Note that if there
  23060. are no tags, then there can be at most one row in the table. <p/>
  23061. Once a row is added to the table, its data will be sent to the metrics system
  23062. on every timer period, whether or not it has been updated since the previous
  23063. timer period. If this is inappropriate, for example if metrics were being
  23064. reported by some transient object in an application, the <code>remove()</code>
  23065. method can be used to remove the row and thus stop the data from being
  23066. sent.<p/>
  23067. Note that the <code>update()</code> method is atomic. This means that it is
  23068. safe for different threads to be updating the same metric. More precisely,
  23069. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  23070. with the same set of tag names and tag values. Different threads should
  23071. <b>not</b> use the same MetricsRecord instance at the same time.
  23072. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23073. </doc>
  23074. </interface>
  23075. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  23076. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  23077. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  23078. abstract="false"
  23079. static="false" final="false" visibility="public"
  23080. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23081. <constructor name="MetricsServlet"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. </constructor>
  23085. <method name="doGet"
  23086. abstract="false" native="false" synchronized="false"
  23087. static="false" final="false" visibility="public"
  23088. deprecated="not deprecated">
  23089. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23090. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23091. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23092. <exception name="IOException" type="java.io.IOException"/>
  23093. </method>
  23094. <doc>
  23095. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  23096. textual representation (no promises are made for parseability), and
  23097. users can use "?format=json" for parseable output.
  23098. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23099. </doc>
  23100. </class>
  23101. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  23102. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  23103. <class name="MetricsUtil" extends="java.lang.Object"
  23104. abstract="false"
  23105. static="false" final="false" visibility="public"
  23106. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23107. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23108. abstract="false" native="false" synchronized="false"
  23109. static="true" final="false" visibility="public"
  23110. deprecated="not deprecated">
  23111. <param name="contextName" type="java.lang.String"/>
  23112. </method>
  23113. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23114. abstract="false" native="false" synchronized="false"
  23115. static="true" final="false" visibility="public"
  23116. deprecated="not deprecated">
  23117. <param name="refName" type="java.lang.String"/>
  23118. <param name="contextName" type="java.lang.String"/>
  23119. <doc>
  23120. <![CDATA[Utility method to return the named context.
  23121. If the desired context cannot be created for any reason, the exception
  23122. is logged, and a null context is returned.]]>
  23123. </doc>
  23124. </method>
  23125. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23126. abstract="false" native="false" synchronized="false"
  23127. static="true" final="false" visibility="public"
  23128. deprecated="not deprecated">
  23129. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23130. <param name="recordName" type="java.lang.String"/>
  23131. <doc>
  23132. <![CDATA[Utility method to create and return new metrics record instance within the
  23133. given context. This record is tagged with the host name.
  23134. @param context the context
  23135. @param recordName name of the record
  23136. @return newly created metrics record]]>
  23137. </doc>
  23138. </method>
  23139. <field name="LOG" type="org.apache.commons.logging.Log"
  23140. transient="false" volatile="false"
  23141. static="true" final="true" visibility="public"
  23142. deprecated="not deprecated">
  23143. </field>
  23144. <doc>
  23145. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  23146. For examples of usage, see NameNodeMetrics.
  23147. @see org.apache.hadoop.metrics.MetricsRecord
  23148. @see org.apache.hadoop.metrics.MetricsContext
  23149. @see org.apache.hadoop.metrics.ContextFactory
  23150. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23151. </doc>
  23152. </class>
  23153. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  23154. <!-- start interface org.apache.hadoop.metrics.Updater -->
  23155. <interface name="Updater" abstract="true"
  23156. static="false" final="false" visibility="public"
  23157. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23158. <method name="doUpdates"
  23159. abstract="false" native="false" synchronized="false"
  23160. static="false" final="false" visibility="public"
  23161. deprecated="not deprecated">
  23162. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23163. <doc>
  23164. <![CDATA[Timer-based call-back from the metric library.]]>
  23165. </doc>
  23166. </method>
  23167. <doc>
  23168. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  23169. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23170. </doc>
  23171. </interface>
  23172. <!-- end interface org.apache.hadoop.metrics.Updater -->
  23173. </package>
  23174. <package name="org.apache.hadoop.metrics.file">
  23175. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  23176. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23177. abstract="false"
  23178. static="false" final="false" visibility="public"
  23179. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  23180. <constructor name="FileContext"
  23181. static="false" final="false" visibility="public"
  23182. deprecated="not deprecated">
  23183. <doc>
  23184. <![CDATA[Creates a new instance of FileContext]]>
  23185. </doc>
  23186. </constructor>
  23187. <method name="init"
  23188. abstract="false" native="false" synchronized="false"
  23189. static="false" final="false" visibility="public"
  23190. deprecated="not deprecated">
  23191. <param name="contextName" type="java.lang.String"/>
  23192. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23193. </method>
  23194. <method name="getFileName" return="java.lang.String"
  23195. abstract="false" native="false" synchronized="false"
  23196. static="false" final="false" visibility="public"
  23197. deprecated="not deprecated">
  23198. <doc>
  23199. <![CDATA[Returns the configured file name, or null.]]>
  23200. </doc>
  23201. </method>
  23202. <method name="startMonitoring"
  23203. abstract="false" native="false" synchronized="false"
  23204. static="false" final="false" visibility="public"
  23205. deprecated="not deprecated">
  23206. <exception name="IOException" type="java.io.IOException"/>
  23207. <doc>
  23208. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  23209. file specified by the <code>fileName</code> attribute,
  23210. if specified. Otherwise the data will be written to standard
  23211. output.]]>
  23212. </doc>
  23213. </method>
  23214. <method name="stopMonitoring"
  23215. abstract="false" native="false" synchronized="false"
  23216. static="false" final="false" visibility="public"
  23217. deprecated="not deprecated">
  23218. <doc>
  23219. <![CDATA[Stops monitoring, closing the file.
  23220. @see #close()]]>
  23221. </doc>
  23222. </method>
  23223. <method name="emitRecord"
  23224. abstract="false" native="false" synchronized="false"
  23225. static="false" final="false" visibility="public"
  23226. deprecated="not deprecated">
  23227. <param name="contextName" type="java.lang.String"/>
  23228. <param name="recordName" type="java.lang.String"/>
  23229. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23230. <doc>
  23231. <![CDATA[Emits a metrics record to a file.]]>
  23232. </doc>
  23233. </method>
  23234. <method name="flush"
  23235. abstract="false" native="false" synchronized="false"
  23236. static="false" final="false" visibility="public"
  23237. deprecated="not deprecated">
  23238. <doc>
  23239. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  23240. </doc>
  23241. </method>
  23242. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  23243. transient="false" volatile="false"
  23244. static="true" final="true" visibility="protected"
  23245. deprecated="not deprecated">
  23246. </field>
  23247. <field name="PERIOD_PROPERTY" type="java.lang.String"
  23248. transient="false" volatile="false"
  23249. static="true" final="true" visibility="protected"
  23250. deprecated="not deprecated">
  23251. </field>
  23252. <doc>
  23253. <![CDATA[Metrics context for writing metrics to a file.<p/>
  23254. This class is configured by setting ContextFactory attributes which in turn
  23255. are usually configured through a properties file. All the attributes are
  23256. prefixed by the contextName. For example, the properties file might contain:
  23257. <pre>
  23258. myContextName.fileName=/tmp/metrics.log
  23259. myContextName.period=5
  23260. </pre>
  23261. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  23262. </doc>
  23263. </class>
  23264. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  23265. </package>
  23266. <package name="org.apache.hadoop.metrics.ganglia">
  23267. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23268. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23269. abstract="false"
  23270. static="false" final="false" visibility="public"
  23271. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23272. <constructor name="GangliaContext"
  23273. static="false" final="false" visibility="public"
  23274. deprecated="not deprecated">
  23275. <doc>
  23276. <![CDATA[Creates a new instance of GangliaContext]]>
  23277. </doc>
  23278. </constructor>
  23279. <method name="init"
  23280. abstract="false" native="false" synchronized="false"
  23281. static="false" final="false" visibility="public"
  23282. deprecated="not deprecated">
  23283. <param name="contextName" type="java.lang.String"/>
  23284. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23285. </method>
  23286. <method name="emitRecord"
  23287. abstract="false" native="false" synchronized="false"
  23288. static="false" final="false" visibility="public"
  23289. deprecated="not deprecated">
  23290. <param name="contextName" type="java.lang.String"/>
  23291. <param name="recordName" type="java.lang.String"/>
  23292. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23293. <exception name="IOException" type="java.io.IOException"/>
  23294. </method>
  23295. <method name="emitMetric"
  23296. abstract="false" native="false" synchronized="false"
  23297. static="false" final="false" visibility="protected"
  23298. deprecated="not deprecated">
  23299. <param name="name" type="java.lang.String"/>
  23300. <param name="type" type="java.lang.String"/>
  23301. <param name="value" type="java.lang.String"/>
  23302. <exception name="IOException" type="java.io.IOException"/>
  23303. </method>
  23304. <method name="getUnits" return="java.lang.String"
  23305. abstract="false" native="false" synchronized="false"
  23306. static="false" final="false" visibility="protected"
  23307. deprecated="not deprecated">
  23308. <param name="metricName" type="java.lang.String"/>
  23309. </method>
  23310. <method name="getSlope" return="int"
  23311. abstract="false" native="false" synchronized="false"
  23312. static="false" final="false" visibility="protected"
  23313. deprecated="not deprecated">
  23314. <param name="metricName" type="java.lang.String"/>
  23315. </method>
  23316. <method name="getTmax" return="int"
  23317. abstract="false" native="false" synchronized="false"
  23318. static="false" final="false" visibility="protected"
  23319. deprecated="not deprecated">
  23320. <param name="metricName" type="java.lang.String"/>
  23321. </method>
  23322. <method name="getDmax" return="int"
  23323. abstract="false" native="false" synchronized="false"
  23324. static="false" final="false" visibility="protected"
  23325. deprecated="not deprecated">
  23326. <param name="metricName" type="java.lang.String"/>
  23327. </method>
  23328. <method name="xdr_string"
  23329. abstract="false" native="false" synchronized="false"
  23330. static="false" final="false" visibility="protected"
  23331. deprecated="not deprecated">
  23332. <param name="s" type="java.lang.String"/>
  23333. <doc>
  23334. <![CDATA[Puts a string into the buffer by first writing the size of the string
  23335. as an int, followed by the bytes of the string, padded if necessary to
  23336. a multiple of 4.]]>
  23337. </doc>
  23338. </method>
  23339. <method name="xdr_int"
  23340. abstract="false" native="false" synchronized="false"
  23341. static="false" final="false" visibility="protected"
  23342. deprecated="not deprecated">
  23343. <param name="i" type="int"/>
  23344. <doc>
  23345. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  23346. </doc>
  23347. </method>
  23348. <field name="buffer" type="byte[]"
  23349. transient="false" volatile="false"
  23350. static="false" final="false" visibility="protected"
  23351. deprecated="not deprecated">
  23352. </field>
  23353. <field name="offset" type="int"
  23354. transient="false" volatile="false"
  23355. static="false" final="false" visibility="protected"
  23356. deprecated="not deprecated">
  23357. </field>
  23358. <field name="metricsServers" type="java.util.List"
  23359. transient="false" volatile="false"
  23360. static="false" final="false" visibility="protected"
  23361. deprecated="not deprecated">
  23362. </field>
  23363. <field name="datagramSocket" type="java.net.DatagramSocket"
  23364. transient="false" volatile="false"
  23365. static="false" final="false" visibility="protected"
  23366. deprecated="not deprecated">
  23367. </field>
  23368. <doc>
  23369. <![CDATA[Context for sending metrics to Ganglia.
  23370. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23371. </doc>
  23372. </class>
  23373. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23374. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23375. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  23376. abstract="false"
  23377. static="false" final="false" visibility="public"
  23378. deprecated="not deprecated">
  23379. <constructor name="GangliaContext31"
  23380. static="false" final="false" visibility="public"
  23381. deprecated="not deprecated">
  23382. </constructor>
  23383. <method name="init"
  23384. abstract="false" native="false" synchronized="false"
  23385. static="false" final="false" visibility="public"
  23386. deprecated="not deprecated">
  23387. <param name="contextName" type="java.lang.String"/>
  23388. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23389. </method>
  23390. <method name="emitMetric"
  23391. abstract="false" native="false" synchronized="false"
  23392. static="false" final="false" visibility="protected"
  23393. deprecated="not deprecated">
  23394. <param name="name" type="java.lang.String"/>
  23395. <param name="type" type="java.lang.String"/>
  23396. <param name="value" type="java.lang.String"/>
  23397. <exception name="IOException" type="java.io.IOException"/>
  23398. </method>
  23399. <doc>
  23400. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  23401. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  23402. </doc>
  23403. </class>
  23404. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23405. </package>
  23406. <package name="org.apache.hadoop.metrics.jvm">
  23407. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  23408. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  23409. abstract="false"
  23410. static="false" final="false" visibility="public"
  23411. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  23412. <constructor name="EventCounter"
  23413. static="false" final="false" visibility="public"
  23414. deprecated="not deprecated">
  23415. </constructor>
  23416. <doc>
  23417. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23418. fatal, error and warn.
  23419. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  23420. </doc>
  23421. </class>
  23422. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  23423. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23424. <class name="JvmMetrics" extends="java.lang.Object"
  23425. abstract="false"
  23426. static="false" final="false" visibility="public"
  23427. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23428. <implements name="org.apache.hadoop.metrics.Updater"/>
  23429. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23430. abstract="false" native="false" synchronized="true"
  23431. static="true" final="false" visibility="public"
  23432. deprecated="not deprecated">
  23433. <param name="processName" type="java.lang.String"/>
  23434. <param name="sessionId" type="java.lang.String"/>
  23435. </method>
  23436. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23437. abstract="false" native="false" synchronized="true"
  23438. static="true" final="false" visibility="public"
  23439. deprecated="not deprecated">
  23440. <param name="processName" type="java.lang.String"/>
  23441. <param name="sessionId" type="java.lang.String"/>
  23442. <param name="recordName" type="java.lang.String"/>
  23443. </method>
  23444. <method name="doUpdates"
  23445. abstract="false" native="false" synchronized="false"
  23446. static="false" final="false" visibility="public"
  23447. deprecated="not deprecated">
  23448. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23449. <doc>
  23450. <![CDATA[This will be called periodically (with the period being configuration
  23451. dependent).]]>
  23452. </doc>
  23453. </method>
  23454. <doc>
  23455. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  23456. Any application can create an instance of this class in order to emit
  23457. Java VM metrics.
  23458. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23459. </doc>
  23460. </class>
  23461. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23462. </package>
  23463. <package name="org.apache.hadoop.metrics.spi">
  23464. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23465. <class name="AbstractMetricsContext" extends="java.lang.Object"
  23466. abstract="true"
  23467. static="false" final="false" visibility="public"
  23468. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23469. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  23470. <constructor name="AbstractMetricsContext"
  23471. static="false" final="false" visibility="protected"
  23472. deprecated="not deprecated">
  23473. <doc>
  23474. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  23475. </doc>
  23476. </constructor>
  23477. <method name="init"
  23478. abstract="false" native="false" synchronized="false"
  23479. static="false" final="false" visibility="public"
  23480. deprecated="not deprecated">
  23481. <param name="contextName" type="java.lang.String"/>
  23482. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23483. <doc>
  23484. <![CDATA[Initializes the context.]]>
  23485. </doc>
  23486. </method>
  23487. <method name="getAttribute" return="java.lang.String"
  23488. abstract="false" native="false" synchronized="false"
  23489. static="false" final="false" visibility="protected"
  23490. deprecated="not deprecated">
  23491. <param name="attributeName" type="java.lang.String"/>
  23492. <doc>
  23493. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  23494. </doc>
  23495. </method>
  23496. <method name="getAttributeTable" return="java.util.Map"
  23497. abstract="false" native="false" synchronized="false"
  23498. static="false" final="false" visibility="protected"
  23499. deprecated="not deprecated">
  23500. <param name="tableName" type="java.lang.String"/>
  23501. <doc>
  23502. <![CDATA[Returns an attribute-value map derived from the factory attributes
  23503. by finding all factory attributes that begin with
  23504. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  23505. those attributes with the contextName and tableName stripped off.]]>
  23506. </doc>
  23507. </method>
  23508. <method name="getContextName" return="java.lang.String"
  23509. abstract="false" native="false" synchronized="false"
  23510. static="false" final="false" visibility="public"
  23511. deprecated="not deprecated">
  23512. <doc>
  23513. <![CDATA[Returns the context name.]]>
  23514. </doc>
  23515. </method>
  23516. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23517. abstract="false" native="false" synchronized="false"
  23518. static="false" final="false" visibility="public"
  23519. deprecated="not deprecated">
  23520. <doc>
  23521. <![CDATA[Returns the factory by which this context was created.]]>
  23522. </doc>
  23523. </method>
  23524. <method name="startMonitoring"
  23525. abstract="false" native="false" synchronized="true"
  23526. static="false" final="false" visibility="public"
  23527. deprecated="not deprecated">
  23528. <exception name="IOException" type="java.io.IOException"/>
  23529. <doc>
  23530. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  23531. </doc>
  23532. </method>
  23533. <method name="stopMonitoring"
  23534. abstract="false" native="false" synchronized="true"
  23535. static="false" final="false" visibility="public"
  23536. deprecated="not deprecated">
  23537. <doc>
  23538. <![CDATA[Stops monitoring. This does not free buffered data.
  23539. @see #close()]]>
  23540. </doc>
  23541. </method>
  23542. <method name="isMonitoring" return="boolean"
  23543. abstract="false" native="false" synchronized="false"
  23544. static="false" final="false" visibility="public"
  23545. deprecated="not deprecated">
  23546. <doc>
  23547. <![CDATA[Returns true if monitoring is currently in progress.]]>
  23548. </doc>
  23549. </method>
  23550. <method name="close"
  23551. abstract="false" native="false" synchronized="true"
  23552. static="false" final="false" visibility="public"
  23553. deprecated="not deprecated">
  23554. <doc>
  23555. <![CDATA[Stops monitoring and frees buffered data, returning this
  23556. object to its initial state.]]>
  23557. </doc>
  23558. </method>
  23559. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23560. abstract="false" native="false" synchronized="true"
  23561. static="false" final="true" visibility="public"
  23562. deprecated="not deprecated">
  23563. <param name="recordName" type="java.lang.String"/>
  23564. <doc>
  23565. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  23566. Throws an exception if the metrics implementation is configured with a fixed
  23567. set of record names and <code>recordName</code> is not in that set.
  23568. @param recordName the name of the record
  23569. @throws MetricsException if recordName conflicts with configuration data]]>
  23570. </doc>
  23571. </method>
  23572. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23573. abstract="false" native="false" synchronized="false"
  23574. static="false" final="false" visibility="protected"
  23575. deprecated="not deprecated">
  23576. <param name="recordName" type="java.lang.String"/>
  23577. <doc>
  23578. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  23579. @param recordName the name of the record
  23580. @return newly created instance of MetricsRecordImpl or subclass]]>
  23581. </doc>
  23582. </method>
  23583. <method name="registerUpdater"
  23584. abstract="false" native="false" synchronized="true"
  23585. static="false" final="false" visibility="public"
  23586. deprecated="not deprecated">
  23587. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23588. <doc>
  23589. <![CDATA[Registers a callback to be called at time intervals determined by
  23590. the configuration.
  23591. @param updater object to be run periodically; it should update
  23592. some metrics records]]>
  23593. </doc>
  23594. </method>
  23595. <method name="unregisterUpdater"
  23596. abstract="false" native="false" synchronized="true"
  23597. static="false" final="false" visibility="public"
  23598. deprecated="not deprecated">
  23599. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23600. <doc>
  23601. <![CDATA[Removes a callback, if it exists.
  23602. @param updater object to be removed from the callback list]]>
  23603. </doc>
  23604. </method>
  23605. <method name="getAllRecords" return="java.util.Map"
  23606. abstract="false" native="false" synchronized="true"
  23607. static="false" final="false" visibility="public"
  23608. deprecated="not deprecated">
  23609. <doc>
  23610. <![CDATA[Retrieves all the records managed by this MetricsContext.
  23611. Useful for monitoring systems that are polling-based.
  23612. @return A non-null collection of all monitoring records.]]>
  23613. </doc>
  23614. </method>
  23615. <method name="emitRecord"
  23616. abstract="true" native="false" synchronized="false"
  23617. static="false" final="false" visibility="protected"
  23618. deprecated="not deprecated">
  23619. <param name="contextName" type="java.lang.String"/>
  23620. <param name="recordName" type="java.lang.String"/>
  23621. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23622. <exception name="IOException" type="java.io.IOException"/>
  23623. <doc>
  23624. <![CDATA[Sends a record to the metrics system.]]>
  23625. </doc>
  23626. </method>
  23627. <method name="flush"
  23628. abstract="false" native="false" synchronized="false"
  23629. static="false" final="false" visibility="protected"
  23630. deprecated="not deprecated">
  23631. <exception name="IOException" type="java.io.IOException"/>
  23632. <doc>
  23633. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  23634. Subclasses may override it in order to perform some kind of flush.]]>
  23635. </doc>
  23636. </method>
  23637. <method name="update"
  23638. abstract="false" native="false" synchronized="false"
  23639. static="false" final="false" visibility="protected"
  23640. deprecated="not deprecated">
  23641. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23642. <doc>
  23643. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  23644. the internal table of metric data.]]>
  23645. </doc>
  23646. </method>
  23647. <method name="remove"
  23648. abstract="false" native="false" synchronized="false"
  23649. static="false" final="false" visibility="protected"
  23650. deprecated="not deprecated">
  23651. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23652. <doc>
  23653. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  23654. the internal table of metric data. A row matches if it has the same
  23655. tag names and values as record, but it may also have additional
  23656. tags.]]>
  23657. </doc>
  23658. </method>
  23659. <method name="getPeriod" return="int"
  23660. abstract="false" native="false" synchronized="false"
  23661. static="false" final="false" visibility="public"
  23662. deprecated="not deprecated">
  23663. <doc>
  23664. <![CDATA[Returns the timer period.]]>
  23665. </doc>
  23666. </method>
  23667. <method name="setPeriod"
  23668. abstract="false" native="false" synchronized="false"
  23669. static="false" final="false" visibility="protected"
  23670. deprecated="not deprecated">
  23671. <param name="period" type="int"/>
  23672. <doc>
  23673. <![CDATA[Sets the timer period]]>
  23674. </doc>
  23675. </method>
  23676. <method name="parseAndSetPeriod"
  23677. abstract="false" native="false" synchronized="false"
  23678. static="false" final="false" visibility="protected"
  23679. deprecated="not deprecated">
  23680. <param name="attributeName" type="java.lang.String"/>
  23681. <doc>
  23682. <![CDATA[If a period is set in the attribute passed in, override
  23683. the default with it.]]>
  23684. </doc>
  23685. </method>
  23686. <doc>
  23687. <![CDATA[The main class of the Service Provider Interface. This class should be
  23688. extended in order to integrate the Metrics API with a specific metrics
  23689. client library. <p/>
  23690. This class implements the internal table of metric data, and the timer
  23691. on which data is to be sent to the metrics system. Subclasses must
  23692. override the abstract <code>emitRecord</code> method in order to transmit
  23693. the data. <p/>
  23694. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23695. </doc>
  23696. </class>
  23697. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23698. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  23699. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  23700. abstract="false"
  23701. static="true" final="false" visibility="public"
  23702. deprecated="not deprecated">
  23703. </class>
  23704. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  23705. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  23706. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  23707. abstract="false"
  23708. static="true" final="false" visibility="public"
  23709. deprecated="not deprecated">
  23710. <method name="containsAll" return="boolean"
  23711. abstract="false" native="false" synchronized="false"
  23712. static="false" final="false" visibility="public"
  23713. deprecated="not deprecated">
  23714. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  23715. <doc>
  23716. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  23717. </doc>
  23718. </method>
  23719. </class>
  23720. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  23721. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  23722. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23723. abstract="false"
  23724. static="false" final="false" visibility="public"
  23725. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23726. <constructor name="CompositeContext"
  23727. static="false" final="false" visibility="public"
  23728. deprecated="not deprecated">
  23729. </constructor>
  23730. <method name="init"
  23731. abstract="false" native="false" synchronized="false"
  23732. static="false" final="false" visibility="public"
  23733. deprecated="not deprecated">
  23734. <param name="contextName" type="java.lang.String"/>
  23735. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23736. </method>
  23737. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23738. abstract="false" native="false" synchronized="false"
  23739. static="false" final="false" visibility="public"
  23740. deprecated="not deprecated">
  23741. <param name="recordName" type="java.lang.String"/>
  23742. </method>
  23743. <method name="emitRecord"
  23744. abstract="false" native="false" synchronized="false"
  23745. static="false" final="false" visibility="protected"
  23746. deprecated="not deprecated">
  23747. <param name="contextName" type="java.lang.String"/>
  23748. <param name="recordName" type="java.lang.String"/>
  23749. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23750. <exception name="IOException" type="java.io.IOException"/>
  23751. </method>
  23752. <method name="flush"
  23753. abstract="false" native="false" synchronized="false"
  23754. static="false" final="false" visibility="protected"
  23755. deprecated="not deprecated">
  23756. <exception name="IOException" type="java.io.IOException"/>
  23757. </method>
  23758. <method name="startMonitoring"
  23759. abstract="false" native="false" synchronized="false"
  23760. static="false" final="false" visibility="public"
  23761. deprecated="not deprecated">
  23762. <exception name="IOException" type="java.io.IOException"/>
  23763. </method>
  23764. <method name="stopMonitoring"
  23765. abstract="false" native="false" synchronized="false"
  23766. static="false" final="false" visibility="public"
  23767. deprecated="not deprecated">
  23768. </method>
  23769. <method name="isMonitoring" return="boolean"
  23770. abstract="false" native="false" synchronized="false"
  23771. static="false" final="false" visibility="public"
  23772. deprecated="not deprecated">
  23773. <doc>
  23774. <![CDATA[Return true if all subcontexts are monitoring.]]>
  23775. </doc>
  23776. </method>
  23777. <method name="close"
  23778. abstract="false" native="false" synchronized="false"
  23779. static="false" final="false" visibility="public"
  23780. deprecated="not deprecated">
  23781. </method>
  23782. <method name="registerUpdater"
  23783. abstract="false" native="false" synchronized="false"
  23784. static="false" final="false" visibility="public"
  23785. deprecated="not deprecated">
  23786. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23787. </method>
  23788. <method name="unregisterUpdater"
  23789. abstract="false" native="false" synchronized="false"
  23790. static="false" final="false" visibility="public"
  23791. deprecated="not deprecated">
  23792. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23793. </method>
  23794. <doc>
  23795. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23796. </doc>
  23797. </class>
  23798. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  23799. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23800. <class name="MetricsRecordImpl" extends="java.lang.Object"
  23801. abstract="false"
  23802. static="false" final="false" visibility="public"
  23803. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23804. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  23805. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23806. static="false" final="false" visibility="protected"
  23807. deprecated="not deprecated">
  23808. <doc>
  23809. <![CDATA[Creates a new instance of FileRecord]]>
  23810. </doc>
  23811. </constructor>
  23812. <method name="getRecordName" return="java.lang.String"
  23813. abstract="false" native="false" synchronized="false"
  23814. static="false" final="false" visibility="public"
  23815. deprecated="not deprecated">
  23816. <doc>
  23817. <![CDATA[Returns the record name.
  23818. @return the record name]]>
  23819. </doc>
  23820. </method>
  23821. <method name="setTag"
  23822. abstract="false" native="false" synchronized="false"
  23823. static="false" final="false" visibility="public"
  23824. deprecated="not deprecated">
  23825. <param name="tagName" type="java.lang.String"/>
  23826. <param name="tagValue" type="java.lang.String"/>
  23827. <doc>
  23828. <![CDATA[Sets the named tag to the specified value.
  23829. @param tagName name of the tag
  23830. @param tagValue new value of the tag
  23831. @throws MetricsException if the tagName conflicts with the configuration]]>
  23832. </doc>
  23833. </method>
  23834. <method name="setTag"
  23835. abstract="false" native="false" synchronized="false"
  23836. static="false" final="false" visibility="public"
  23837. deprecated="not deprecated">
  23838. <param name="tagName" type="java.lang.String"/>
  23839. <param name="tagValue" type="int"/>
  23840. <doc>
  23841. <![CDATA[Sets the named tag to the specified value.
  23842. @param tagName name of the tag
  23843. @param tagValue new value of the tag
  23844. @throws MetricsException if the tagName conflicts with the configuration]]>
  23845. </doc>
  23846. </method>
  23847. <method name="setTag"
  23848. abstract="false" native="false" synchronized="false"
  23849. static="false" final="false" visibility="public"
  23850. deprecated="not deprecated">
  23851. <param name="tagName" type="java.lang.String"/>
  23852. <param name="tagValue" type="long"/>
  23853. <doc>
  23854. <![CDATA[Sets the named tag to the specified value.
  23855. @param tagName name of the tag
  23856. @param tagValue new value of the tag
  23857. @throws MetricsException if the tagName conflicts with the configuration]]>
  23858. </doc>
  23859. </method>
  23860. <method name="setTag"
  23861. abstract="false" native="false" synchronized="false"
  23862. static="false" final="false" visibility="public"
  23863. deprecated="not deprecated">
  23864. <param name="tagName" type="java.lang.String"/>
  23865. <param name="tagValue" type="short"/>
  23866. <doc>
  23867. <![CDATA[Sets the named tag to the specified value.
  23868. @param tagName name of the tag
  23869. @param tagValue new value of the tag
  23870. @throws MetricsException if the tagName conflicts with the configuration]]>
  23871. </doc>
  23872. </method>
  23873. <method name="setTag"
  23874. abstract="false" native="false" synchronized="false"
  23875. static="false" final="false" visibility="public"
  23876. deprecated="not deprecated">
  23877. <param name="tagName" type="java.lang.String"/>
  23878. <param name="tagValue" type="byte"/>
  23879. <doc>
  23880. <![CDATA[Sets the named tag to the specified value.
  23881. @param tagName name of the tag
  23882. @param tagValue new value of the tag
  23883. @throws MetricsException if the tagName conflicts with the configuration]]>
  23884. </doc>
  23885. </method>
  23886. <method name="removeTag"
  23887. abstract="false" native="false" synchronized="false"
  23888. static="false" final="false" visibility="public"
  23889. deprecated="not deprecated">
  23890. <param name="tagName" type="java.lang.String"/>
  23891. <doc>
  23892. <![CDATA[Removes any tag of the specified name.]]>
  23893. </doc>
  23894. </method>
  23895. <method name="setMetric"
  23896. abstract="false" native="false" synchronized="false"
  23897. static="false" final="false" visibility="public"
  23898. deprecated="not deprecated">
  23899. <param name="metricName" type="java.lang.String"/>
  23900. <param name="metricValue" type="int"/>
  23901. <doc>
  23902. <![CDATA[Sets the named metric to the specified value.
  23903. @param metricName name of the metric
  23904. @param metricValue new value of the metric
  23905. @throws MetricsException if the metricName or the type of the metricValue
  23906. conflicts with the configuration]]>
  23907. </doc>
  23908. </method>
  23909. <method name="setMetric"
  23910. abstract="false" native="false" synchronized="false"
  23911. static="false" final="false" visibility="public"
  23912. deprecated="not deprecated">
  23913. <param name="metricName" type="java.lang.String"/>
  23914. <param name="metricValue" type="long"/>
  23915. <doc>
  23916. <![CDATA[Sets the named metric to the specified value.
  23917. @param metricName name of the metric
  23918. @param metricValue new value of the metric
  23919. @throws MetricsException if the metricName or the type of the metricValue
  23920. conflicts with the configuration]]>
  23921. </doc>
  23922. </method>
  23923. <method name="setMetric"
  23924. abstract="false" native="false" synchronized="false"
  23925. static="false" final="false" visibility="public"
  23926. deprecated="not deprecated">
  23927. <param name="metricName" type="java.lang.String"/>
  23928. <param name="metricValue" type="short"/>
  23929. <doc>
  23930. <![CDATA[Sets the named metric to the specified value.
  23931. @param metricName name of the metric
  23932. @param metricValue new value of the metric
  23933. @throws MetricsException if the metricName or the type of the metricValue
  23934. conflicts with the configuration]]>
  23935. </doc>
  23936. </method>
  23937. <method name="setMetric"
  23938. abstract="false" native="false" synchronized="false"
  23939. static="false" final="false" visibility="public"
  23940. deprecated="not deprecated">
  23941. <param name="metricName" type="java.lang.String"/>
  23942. <param name="metricValue" type="byte"/>
  23943. <doc>
  23944. <![CDATA[Sets the named metric to the specified value.
  23945. @param metricName name of the metric
  23946. @param metricValue new value of the metric
  23947. @throws MetricsException if the metricName or the type of the metricValue
  23948. conflicts with the configuration]]>
  23949. </doc>
  23950. </method>
  23951. <method name="setMetric"
  23952. abstract="false" native="false" synchronized="false"
  23953. static="false" final="false" visibility="public"
  23954. deprecated="not deprecated">
  23955. <param name="metricName" type="java.lang.String"/>
  23956. <param name="metricValue" type="float"/>
  23957. <doc>
  23958. <![CDATA[Sets the named metric to the specified value.
  23959. @param metricName name of the metric
  23960. @param metricValue new value of the metric
  23961. @throws MetricsException if the metricName or the type of the metricValue
  23962. conflicts with the configuration]]>
  23963. </doc>
  23964. </method>
  23965. <method name="incrMetric"
  23966. abstract="false" native="false" synchronized="false"
  23967. static="false" final="false" visibility="public"
  23968. deprecated="not deprecated">
  23969. <param name="metricName" type="java.lang.String"/>
  23970. <param name="metricValue" type="int"/>
  23971. <doc>
  23972. <![CDATA[Increments the named metric by the specified value.
  23973. @param metricName name of the metric
  23974. @param metricValue incremental value
  23975. @throws MetricsException if the metricName or the type of the metricValue
  23976. conflicts with the configuration]]>
  23977. </doc>
  23978. </method>
  23979. <method name="incrMetric"
  23980. abstract="false" native="false" synchronized="false"
  23981. static="false" final="false" visibility="public"
  23982. deprecated="not deprecated">
  23983. <param name="metricName" type="java.lang.String"/>
  23984. <param name="metricValue" type="long"/>
  23985. <doc>
  23986. <![CDATA[Increments the named metric by the specified value.
  23987. @param metricName name of the metric
  23988. @param metricValue incremental value
  23989. @throws MetricsException if the metricName or the type of the metricValue
  23990. conflicts with the configuration]]>
  23991. </doc>
  23992. </method>
  23993. <method name="incrMetric"
  23994. abstract="false" native="false" synchronized="false"
  23995. static="false" final="false" visibility="public"
  23996. deprecated="not deprecated">
  23997. <param name="metricName" type="java.lang.String"/>
  23998. <param name="metricValue" type="short"/>
  23999. <doc>
  24000. <![CDATA[Increments the named metric by the specified value.
  24001. @param metricName name of the metric
  24002. @param metricValue incremental value
  24003. @throws MetricsException if the metricName or the type of the metricValue
  24004. conflicts with the configuration]]>
  24005. </doc>
  24006. </method>
  24007. <method name="incrMetric"
  24008. abstract="false" native="false" synchronized="false"
  24009. static="false" final="false" visibility="public"
  24010. deprecated="not deprecated">
  24011. <param name="metricName" type="java.lang.String"/>
  24012. <param name="metricValue" type="byte"/>
  24013. <doc>
  24014. <![CDATA[Increments the named metric by the specified value.
  24015. @param metricName name of the metric
  24016. @param metricValue incremental value
  24017. @throws MetricsException if the metricName or the type of the metricValue
  24018. conflicts with the configuration]]>
  24019. </doc>
  24020. </method>
  24021. <method name="incrMetric"
  24022. abstract="false" native="false" synchronized="false"
  24023. static="false" final="false" visibility="public"
  24024. deprecated="not deprecated">
  24025. <param name="metricName" type="java.lang.String"/>
  24026. <param name="metricValue" type="float"/>
  24027. <doc>
  24028. <![CDATA[Increments the named metric by the specified value.
  24029. @param metricName name of the metric
  24030. @param metricValue incremental value
  24031. @throws MetricsException if the metricName or the type of the metricValue
  24032. conflicts with the configuration]]>
  24033. </doc>
  24034. </method>
  24035. <method name="update"
  24036. abstract="false" native="false" synchronized="false"
  24037. static="false" final="false" visibility="public"
  24038. deprecated="not deprecated">
  24039. <doc>
  24040. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24041. If the tag values match an existing row, that row is updated;
  24042. otherwise, a new row is added.]]>
  24043. </doc>
  24044. </method>
  24045. <method name="remove"
  24046. abstract="false" native="false" synchronized="false"
  24047. static="false" final="false" visibility="public"
  24048. deprecated="not deprecated">
  24049. <doc>
  24050. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  24051. that equal the tags that have been set on this record.]]>
  24052. </doc>
  24053. </method>
  24054. <doc>
  24055. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  24056. from which it was created, and delegates back to it on <code>update</code>
  24057. and <code>remove()</code>.
  24058. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24059. </doc>
  24060. </class>
  24061. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  24062. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  24063. <class name="MetricValue" extends="java.lang.Object"
  24064. abstract="false"
  24065. static="false" final="false" visibility="public"
  24066. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24067. <constructor name="MetricValue" type="java.lang.Number, boolean"
  24068. static="false" final="false" visibility="public"
  24069. deprecated="not deprecated">
  24070. <doc>
  24071. <![CDATA[Creates a new instance of MetricValue]]>
  24072. </doc>
  24073. </constructor>
  24074. <method name="isIncrement" return="boolean"
  24075. abstract="false" native="false" synchronized="false"
  24076. static="false" final="false" visibility="public"
  24077. deprecated="not deprecated">
  24078. </method>
  24079. <method name="isAbsolute" return="boolean"
  24080. abstract="false" native="false" synchronized="false"
  24081. static="false" final="false" visibility="public"
  24082. deprecated="not deprecated">
  24083. </method>
  24084. <method name="getNumber" return="java.lang.Number"
  24085. abstract="false" native="false" synchronized="false"
  24086. static="false" final="false" visibility="public"
  24087. deprecated="not deprecated">
  24088. </method>
  24089. <field name="ABSOLUTE" type="boolean"
  24090. transient="false" volatile="false"
  24091. static="true" final="true" visibility="public"
  24092. deprecated="not deprecated">
  24093. </field>
  24094. <field name="INCREMENT" type="boolean"
  24095. transient="false" volatile="false"
  24096. static="true" final="true" visibility="public"
  24097. deprecated="not deprecated">
  24098. </field>
  24099. <doc>
  24100. <![CDATA[A Number that is either an absolute or an incremental amount.
  24101. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24102. </doc>
  24103. </class>
  24104. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  24105. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  24106. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24107. abstract="false"
  24108. static="false" final="false" visibility="public"
  24109. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24110. <constructor name="NoEmitMetricsContext"
  24111. static="false" final="false" visibility="public"
  24112. deprecated="not deprecated">
  24113. <doc>
  24114. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  24115. </doc>
  24116. </constructor>
  24117. <method name="init"
  24118. abstract="false" native="false" synchronized="false"
  24119. static="false" final="false" visibility="public"
  24120. deprecated="not deprecated">
  24121. <param name="contextName" type="java.lang.String"/>
  24122. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24123. </method>
  24124. <method name="emitRecord"
  24125. abstract="false" native="false" synchronized="false"
  24126. static="false" final="false" visibility="protected"
  24127. deprecated="not deprecated">
  24128. <param name="contextName" type="java.lang.String"/>
  24129. <param name="recordName" type="java.lang.String"/>
  24130. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24131. <doc>
  24132. <![CDATA[Do-nothing version of emitRecord]]>
  24133. </doc>
  24134. </method>
  24135. <doc>
  24136. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  24137. does save it for retrieval with getAllRecords().
  24138. This is useful if you want to support {@link MetricsServlet}, but
  24139. not emit metrics in any other way.
  24140. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24141. </doc>
  24142. </class>
  24143. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  24144. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  24145. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24146. abstract="false"
  24147. static="false" final="false" visibility="public"
  24148. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24149. <constructor name="NullContext"
  24150. static="false" final="false" visibility="public"
  24151. deprecated="not deprecated">
  24152. <doc>
  24153. <![CDATA[Creates a new instance of NullContext]]>
  24154. </doc>
  24155. </constructor>
  24156. <method name="startMonitoring"
  24157. abstract="false" native="false" synchronized="false"
  24158. static="false" final="false" visibility="public"
  24159. deprecated="not deprecated">
  24160. <doc>
  24161. <![CDATA[Do-nothing version of startMonitoring]]>
  24162. </doc>
  24163. </method>
  24164. <method name="emitRecord"
  24165. abstract="false" native="false" synchronized="false"
  24166. static="false" final="false" visibility="protected"
  24167. deprecated="not deprecated">
  24168. <param name="contextName" type="java.lang.String"/>
  24169. <param name="recordName" type="java.lang.String"/>
  24170. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24171. <doc>
  24172. <![CDATA[Do-nothing version of emitRecord]]>
  24173. </doc>
  24174. </method>
  24175. <method name="update"
  24176. abstract="false" native="false" synchronized="false"
  24177. static="false" final="false" visibility="protected"
  24178. deprecated="not deprecated">
  24179. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24180. <doc>
  24181. <![CDATA[Do-nothing version of update]]>
  24182. </doc>
  24183. </method>
  24184. <method name="remove"
  24185. abstract="false" native="false" synchronized="false"
  24186. static="false" final="false" visibility="protected"
  24187. deprecated="not deprecated">
  24188. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24189. <doc>
  24190. <![CDATA[Do-nothing version of remove]]>
  24191. </doc>
  24192. </method>
  24193. <doc>
  24194. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  24195. default context, so that no performance data is emitted if no configuration
  24196. data is found.
  24197. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24198. </doc>
  24199. </class>
  24200. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  24201. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24202. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24203. abstract="false"
  24204. static="false" final="false" visibility="public"
  24205. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24206. <constructor name="NullContextWithUpdateThread"
  24207. static="false" final="false" visibility="public"
  24208. deprecated="not deprecated">
  24209. <doc>
  24210. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  24211. </doc>
  24212. </constructor>
  24213. <method name="init"
  24214. abstract="false" native="false" synchronized="false"
  24215. static="false" final="false" visibility="public"
  24216. deprecated="not deprecated">
  24217. <param name="contextName" type="java.lang.String"/>
  24218. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24219. </method>
  24220. <method name="emitRecord"
  24221. abstract="false" native="false" synchronized="false"
  24222. static="false" final="false" visibility="protected"
  24223. deprecated="not deprecated">
  24224. <param name="contextName" type="java.lang.String"/>
  24225. <param name="recordName" type="java.lang.String"/>
  24226. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24227. <doc>
  24228. <![CDATA[Do-nothing version of emitRecord]]>
  24229. </doc>
  24230. </method>
  24231. <method name="update"
  24232. abstract="false" native="false" synchronized="false"
  24233. static="false" final="false" visibility="protected"
  24234. deprecated="not deprecated">
  24235. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24236. <doc>
  24237. <![CDATA[Do-nothing version of update]]>
  24238. </doc>
  24239. </method>
  24240. <method name="remove"
  24241. abstract="false" native="false" synchronized="false"
  24242. static="false" final="false" visibility="protected"
  24243. deprecated="not deprecated">
  24244. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24245. <doc>
  24246. <![CDATA[Do-nothing version of remove]]>
  24247. </doc>
  24248. </method>
  24249. <doc>
  24250. <![CDATA[A null context which has a thread calling
  24251. periodically when monitoring is started. This keeps the data sampled
  24252. correctly.
  24253. In all other respects, this is like the NULL context: No data is emitted.
  24254. This is suitable for Monitoring systems like JMX which reads the metrics
  24255. when someone reads the data from JMX.
  24256. The default impl of start and stop monitoring:
  24257. is the AbstractMetricsContext is good enough.
  24258. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24259. </doc>
  24260. </class>
  24261. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24262. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  24263. <class name="OutputRecord" extends="java.lang.Object"
  24264. abstract="false"
  24265. static="false" final="false" visibility="public"
  24266. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24267. <method name="getTagNames" return="java.util.Set"
  24268. abstract="false" native="false" synchronized="false"
  24269. static="false" final="false" visibility="public"
  24270. deprecated="not deprecated">
  24271. <doc>
  24272. <![CDATA[Returns the set of tag names]]>
  24273. </doc>
  24274. </method>
  24275. <method name="getTag" return="java.lang.Object"
  24276. abstract="false" native="false" synchronized="false"
  24277. static="false" final="false" visibility="public"
  24278. deprecated="not deprecated">
  24279. <param name="name" type="java.lang.String"/>
  24280. <doc>
  24281. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  24282. @return the tag value, or null if there is no such tag]]>
  24283. </doc>
  24284. </method>
  24285. <method name="getMetricNames" return="java.util.Set"
  24286. abstract="false" native="false" synchronized="false"
  24287. static="false" final="false" visibility="public"
  24288. deprecated="not deprecated">
  24289. <doc>
  24290. <![CDATA[Returns the set of metric names.]]>
  24291. </doc>
  24292. </method>
  24293. <method name="getMetric" return="java.lang.Number"
  24294. abstract="false" native="false" synchronized="false"
  24295. static="false" final="false" visibility="public"
  24296. deprecated="not deprecated">
  24297. <param name="name" type="java.lang.String"/>
  24298. <doc>
  24299. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  24300. </doc>
  24301. </method>
  24302. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  24303. abstract="false" native="false" synchronized="false"
  24304. static="false" final="false" visibility="public"
  24305. deprecated="not deprecated">
  24306. <doc>
  24307. <![CDATA[Returns a copy of this record's tags.]]>
  24308. </doc>
  24309. </method>
  24310. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  24311. abstract="false" native="false" synchronized="false"
  24312. static="false" final="false" visibility="public"
  24313. deprecated="not deprecated">
  24314. <doc>
  24315. <![CDATA[Returns a copy of this record's metrics.]]>
  24316. </doc>
  24317. </method>
  24318. <doc>
  24319. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  24320. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24321. </doc>
  24322. </class>
  24323. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  24324. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  24325. <class name="Util" extends="java.lang.Object"
  24326. abstract="false"
  24327. static="false" final="false" visibility="public"
  24328. deprecated="not deprecated">
  24329. <method name="parse" return="java.util.List"
  24330. abstract="false" native="false" synchronized="false"
  24331. static="true" final="false" visibility="public"
  24332. deprecated="not deprecated">
  24333. <param name="specs" type="java.lang.String"/>
  24334. <param name="defaultPort" type="int"/>
  24335. <doc>
  24336. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  24337. of the form <i>hostname</i> or <i>hostname:port</i>. If
  24338. the specs string is null, defaults to localhost:defaultPort.
  24339. @return a list of InetSocketAddress objects.]]>
  24340. </doc>
  24341. </method>
  24342. <doc>
  24343. <![CDATA[Static utility methods]]>
  24344. </doc>
  24345. </class>
  24346. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  24347. </package>
  24348. <package name="org.apache.hadoop.metrics.util">
  24349. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  24350. <class name="MBeanUtil" extends="java.lang.Object"
  24351. abstract="false"
  24352. static="false" final="false" visibility="public"
  24353. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  24354. <constructor name="MBeanUtil"
  24355. static="false" final="false" visibility="public"
  24356. deprecated="not deprecated">
  24357. </constructor>
  24358. <method name="registerMBean" return="javax.management.ObjectName"
  24359. abstract="false" native="false" synchronized="false"
  24360. static="true" final="false" visibility="public"
  24361. deprecated="not deprecated">
  24362. <param name="serviceName" type="java.lang.String"/>
  24363. <param name="nameName" type="java.lang.String"/>
  24364. <param name="theMbean" type="java.lang.Object"/>
  24365. <doc>
  24366. <![CDATA[Register the MBean using our standard MBeanName format
  24367. "hadoop:service=<serviceName>,name=<nameName>"
  24368. Where the <serviceName> and <nameName> are the supplied parameters
  24369. @param serviceName
  24370. @param nameName
  24371. @param theMbean - the MBean to register
  24372. @return the named used to register the MBean]]>
  24373. </doc>
  24374. </method>
  24375. <method name="unregisterMBean"
  24376. abstract="false" native="false" synchronized="false"
  24377. static="true" final="false" visibility="public"
  24378. deprecated="not deprecated">
  24379. <param name="mbeanName" type="javax.management.ObjectName"/>
  24380. </method>
  24381. <doc>
  24382. <![CDATA[This util class provides a method to register an MBean using
  24383. our standard naming convention as described in the doc
  24384. for {@link #registerMBean(String, String, Object)}
  24385. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  24386. </doc>
  24387. </class>
  24388. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  24389. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  24390. <class name="MetricsBase" extends="java.lang.Object"
  24391. abstract="true"
  24392. static="false" final="false" visibility="public"
  24393. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24394. <constructor name="MetricsBase" type="java.lang.String"
  24395. static="false" final="false" visibility="protected"
  24396. deprecated="not deprecated">
  24397. </constructor>
  24398. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  24399. static="false" final="false" visibility="protected"
  24400. deprecated="not deprecated">
  24401. </constructor>
  24402. <method name="pushMetric"
  24403. abstract="true" native="false" synchronized="false"
  24404. static="false" final="false" visibility="public"
  24405. deprecated="not deprecated">
  24406. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24407. </method>
  24408. <method name="getName" return="java.lang.String"
  24409. abstract="false" native="false" synchronized="false"
  24410. static="false" final="false" visibility="public"
  24411. deprecated="not deprecated">
  24412. </method>
  24413. <method name="getDescription" return="java.lang.String"
  24414. abstract="false" native="false" synchronized="false"
  24415. static="false" final="false" visibility="public"
  24416. deprecated="not deprecated">
  24417. </method>
  24418. <field name="NO_DESCRIPTION" type="java.lang.String"
  24419. transient="false" volatile="false"
  24420. static="true" final="true" visibility="public"
  24421. deprecated="not deprecated">
  24422. </field>
  24423. <doc>
  24424. <![CDATA[This is base class for all metrics
  24425. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24426. </doc>
  24427. </class>
  24428. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  24429. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24430. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  24431. abstract="true"
  24432. static="false" final="false" visibility="public"
  24433. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24434. <implements name="javax.management.DynamicMBean"/>
  24435. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24436. static="false" final="false" visibility="protected"
  24437. deprecated="not deprecated">
  24438. </constructor>
  24439. <method name="getAttribute" return="java.lang.Object"
  24440. abstract="false" native="false" synchronized="false"
  24441. static="false" final="false" visibility="public"
  24442. deprecated="not deprecated">
  24443. <param name="attributeName" type="java.lang.String"/>
  24444. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24445. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24446. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24447. </method>
  24448. <method name="getAttributes" return="javax.management.AttributeList"
  24449. abstract="false" native="false" synchronized="false"
  24450. static="false" final="false" visibility="public"
  24451. deprecated="not deprecated">
  24452. <param name="attributeNames" type="java.lang.String[]"/>
  24453. </method>
  24454. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  24455. abstract="false" native="false" synchronized="false"
  24456. static="false" final="false" visibility="public"
  24457. deprecated="not deprecated">
  24458. </method>
  24459. <method name="invoke" return="java.lang.Object"
  24460. abstract="false" native="false" synchronized="false"
  24461. static="false" final="false" visibility="public"
  24462. deprecated="not deprecated">
  24463. <param name="actionName" type="java.lang.String"/>
  24464. <param name="parms" type="java.lang.Object[]"/>
  24465. <param name="signature" type="java.lang.String[]"/>
  24466. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24467. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24468. </method>
  24469. <method name="setAttribute"
  24470. abstract="false" native="false" synchronized="false"
  24471. static="false" final="false" visibility="public"
  24472. deprecated="not deprecated">
  24473. <param name="attribute" type="javax.management.Attribute"/>
  24474. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24475. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  24476. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24477. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24478. </method>
  24479. <method name="setAttributes" return="javax.management.AttributeList"
  24480. abstract="false" native="false" synchronized="false"
  24481. static="false" final="false" visibility="public"
  24482. deprecated="not deprecated">
  24483. <param name="attributes" type="javax.management.AttributeList"/>
  24484. </method>
  24485. <doc>
  24486. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  24487. metrics.
  24488. The metrics constructors registers metrics in a registry.
  24489. Different categories of metrics should be in differnt classes with their own
  24490. registry (as in NameNodeMetrics and DataNodeMetrics).
  24491. Then the MBean can be created passing the registry to the constructor.
  24492. The MBean should be then registered using a mbean name (example):
  24493. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  24494. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  24495. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  24496. "TestStatistics", theMBean);
  24497. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24498. </doc>
  24499. </class>
  24500. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24501. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  24502. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24503. abstract="false"
  24504. static="false" final="false" visibility="public"
  24505. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  24506. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24507. static="false" final="false" visibility="public"
  24508. deprecated="not deprecated">
  24509. <doc>
  24510. <![CDATA[Constructor - create a new metric
  24511. @param nam the name of the metrics to be used to publish the metric
  24512. @param registry - where the metrics object will be registered]]>
  24513. </doc>
  24514. </constructor>
  24515. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24516. static="false" final="false" visibility="public"
  24517. deprecated="not deprecated">
  24518. <doc>
  24519. <![CDATA[Constructor - create a new metric
  24520. @param nam the name of the metrics to be used to publish the metric
  24521. @param registry - where the metrics object will be registered
  24522. A description of {@link #NO_DESCRIPTION} is used]]>
  24523. </doc>
  24524. </constructor>
  24525. <method name="set"
  24526. abstract="false" native="false" synchronized="true"
  24527. static="false" final="false" visibility="public"
  24528. deprecated="not deprecated">
  24529. <param name="newValue" type="int"/>
  24530. <doc>
  24531. <![CDATA[Set the value
  24532. @param newValue]]>
  24533. </doc>
  24534. </method>
  24535. <method name="get" return="int"
  24536. abstract="false" native="false" synchronized="true"
  24537. static="false" final="false" visibility="public"
  24538. deprecated="not deprecated">
  24539. <doc>
  24540. <![CDATA[Get value
  24541. @return the value last set]]>
  24542. </doc>
  24543. </method>
  24544. <method name="pushMetric"
  24545. abstract="false" native="false" synchronized="true"
  24546. static="false" final="false" visibility="public"
  24547. deprecated="not deprecated">
  24548. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24549. <doc>
  24550. <![CDATA[Push the metric to the mr.
  24551. The metric is pushed only if it was updated since last push
  24552. Note this does NOT push to JMX
  24553. (JMX gets the info via {@link #get()}
  24554. @param mr]]>
  24555. </doc>
  24556. </method>
  24557. <doc>
  24558. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  24559. but changes only when it is set.
  24560. Each time its value is set, it is published only *once* at the next update
  24561. call.
  24562. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  24563. </doc>
  24564. </class>
  24565. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  24566. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  24567. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24568. abstract="false"
  24569. static="false" final="false" visibility="public"
  24570. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24571. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24572. static="false" final="false" visibility="public"
  24573. deprecated="not deprecated">
  24574. <doc>
  24575. <![CDATA[Constructor - create a new metric
  24576. @param nam the name of the metrics to be used to publish the metric
  24577. @param registry - where the metrics object will be registered]]>
  24578. </doc>
  24579. </constructor>
  24580. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24581. static="false" final="false" visibility="public"
  24582. deprecated="not deprecated">
  24583. <doc>
  24584. <![CDATA[Constructor - create a new metric
  24585. @param nam the name of the metrics to be used to publish the metric
  24586. @param registry - where the metrics object will be registered
  24587. A description of {@link #NO_DESCRIPTION} is used]]>
  24588. </doc>
  24589. </constructor>
  24590. <method name="set"
  24591. abstract="false" native="false" synchronized="true"
  24592. static="false" final="false" visibility="public"
  24593. deprecated="not deprecated">
  24594. <param name="newValue" type="long"/>
  24595. <doc>
  24596. <![CDATA[Set the value
  24597. @param newValue]]>
  24598. </doc>
  24599. </method>
  24600. <method name="get" return="long"
  24601. abstract="false" native="false" synchronized="true"
  24602. static="false" final="false" visibility="public"
  24603. deprecated="not deprecated">
  24604. <doc>
  24605. <![CDATA[Get value
  24606. @return the value last set]]>
  24607. </doc>
  24608. </method>
  24609. <method name="pushMetric"
  24610. abstract="false" native="false" synchronized="true"
  24611. static="false" final="false" visibility="public"
  24612. deprecated="not deprecated">
  24613. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24614. <doc>
  24615. <![CDATA[Push the metric to the mr.
  24616. The metric is pushed only if it was updated since last push
  24617. Note this does NOT push to JMX
  24618. (JMX gets the info via {@link #get()}
  24619. @param mr]]>
  24620. </doc>
  24621. </method>
  24622. <doc>
  24623. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  24624. but changes only when it is set.
  24625. Each time its value is set, it is published only *once* at the next update
  24626. call.
  24627. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24628. </doc>
  24629. </class>
  24630. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  24631. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  24632. <class name="MetricsRegistry" extends="java.lang.Object"
  24633. abstract="false"
  24634. static="false" final="false" visibility="public"
  24635. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  24636. <constructor name="MetricsRegistry"
  24637. static="false" final="false" visibility="public"
  24638. deprecated="not deprecated">
  24639. </constructor>
  24640. <method name="size" return="int"
  24641. abstract="false" native="false" synchronized="false"
  24642. static="false" final="false" visibility="public"
  24643. deprecated="not deprecated">
  24644. <doc>
  24645. <![CDATA[@return number of metrics in the registry]]>
  24646. </doc>
  24647. </method>
  24648. <method name="add"
  24649. abstract="false" native="false" synchronized="true"
  24650. static="false" final="false" visibility="public"
  24651. deprecated="not deprecated">
  24652. <param name="metricsName" type="java.lang.String"/>
  24653. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  24654. <doc>
  24655. <![CDATA[Add a new metrics to the registry
  24656. @param metricsName - the name
  24657. @param theMetricsObj - the metrics
  24658. @throws IllegalArgumentException if a name is already registered]]>
  24659. </doc>
  24660. </method>
  24661. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  24662. abstract="false" native="false" synchronized="true"
  24663. static="false" final="false" visibility="public"
  24664. deprecated="not deprecated">
  24665. <param name="metricsName" type="java.lang.String"/>
  24666. <doc>
  24667. <![CDATA[@param metricsName
  24668. @return the metrics if there is one registered by the supplied name.
  24669. Returns null if none is registered]]>
  24670. </doc>
  24671. </method>
  24672. <method name="getKeyList" return="java.util.Collection"
  24673. abstract="false" native="false" synchronized="true"
  24674. static="false" final="false" visibility="public"
  24675. deprecated="not deprecated">
  24676. <doc>
  24677. <![CDATA[@return the list of metrics names]]>
  24678. </doc>
  24679. </method>
  24680. <method name="getMetricsList" return="java.util.Collection"
  24681. abstract="false" native="false" synchronized="true"
  24682. static="false" final="false" visibility="public"
  24683. deprecated="not deprecated">
  24684. <doc>
  24685. <![CDATA[@return the list of metrics]]>
  24686. </doc>
  24687. </method>
  24688. <doc>
  24689. <![CDATA[This is the registry for metrics.
  24690. Related set of metrics should be declared in a holding class and registered
  24691. in a registry for those metrics which is also stored in the the holding class.
  24692. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  24693. </doc>
  24694. </class>
  24695. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  24696. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  24697. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24698. abstract="false"
  24699. static="false" final="false" visibility="public"
  24700. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  24701. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24702. static="false" final="false" visibility="public"
  24703. deprecated="not deprecated">
  24704. <doc>
  24705. <![CDATA[Constructor - create a new metric
  24706. @param nam the name of the metrics to be used to publish the metric
  24707. @param registry - where the metrics object will be registered
  24708. @param description - the description]]>
  24709. </doc>
  24710. </constructor>
  24711. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24712. static="false" final="false" visibility="public"
  24713. deprecated="not deprecated">
  24714. <doc>
  24715. <![CDATA[Constructor - create a new metric
  24716. @param nam the name of the metrics to be used to publish the metric
  24717. @param registry - where the metrics object will be registered
  24718. A description of {@link #NO_DESCRIPTION} is used]]>
  24719. </doc>
  24720. </constructor>
  24721. <method name="inc"
  24722. abstract="false" native="false" synchronized="true"
  24723. static="false" final="false" visibility="public"
  24724. deprecated="not deprecated">
  24725. <param name="incr" type="int"/>
  24726. <doc>
  24727. <![CDATA[Inc metrics for incr vlaue
  24728. @param incr - number of operations]]>
  24729. </doc>
  24730. </method>
  24731. <method name="inc"
  24732. abstract="false" native="false" synchronized="true"
  24733. static="false" final="false" visibility="public"
  24734. deprecated="not deprecated">
  24735. <doc>
  24736. <![CDATA[Inc metrics by one]]>
  24737. </doc>
  24738. </method>
  24739. <method name="pushMetric"
  24740. abstract="false" native="false" synchronized="true"
  24741. static="false" final="false" visibility="public"
  24742. deprecated="not deprecated">
  24743. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24744. <doc>
  24745. <![CDATA[Push the delta metrics to the mr.
  24746. The delta is since the last push/interval.
  24747. Note this does NOT push to JMX
  24748. (JMX gets the info via {@link #previousIntervalValue}
  24749. @param mr]]>
  24750. </doc>
  24751. </method>
  24752. <method name="getPreviousIntervalValue" return="int"
  24753. abstract="false" native="false" synchronized="true"
  24754. static="false" final="false" visibility="public"
  24755. deprecated="not deprecated">
  24756. <doc>
  24757. <![CDATA[The Value at the Previous interval
  24758. @return prev interval value]]>
  24759. </doc>
  24760. </method>
  24761. <method name="getCurrentIntervalValue" return="int"
  24762. abstract="false" native="false" synchronized="true"
  24763. static="false" final="false" visibility="public"
  24764. deprecated="not deprecated">
  24765. <doc>
  24766. <![CDATA[The Value at the current interval
  24767. @return prev interval value]]>
  24768. </doc>
  24769. </method>
  24770. <doc>
  24771. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  24772. varies over time (e.g. number of files created). The metrics is accumulated
  24773. over an interval (set in the metrics config file); the metrics is
  24774. published at the end of each interval and then
  24775. reset to zero. Hence the counter has the value in the current interval.
  24776. Note if one wants a time associated with the metric then use
  24777. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  24778. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  24779. </doc>
  24780. </class>
  24781. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  24782. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  24783. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24784. abstract="false"
  24785. static="false" final="false" visibility="public"
  24786. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  24787. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24788. static="false" final="false" visibility="public"
  24789. deprecated="not deprecated">
  24790. <doc>
  24791. <![CDATA[Constructor - create a new metric
  24792. @param nam the name of the metrics to be used to publish the metric
  24793. @param registry - where the metrics object will be registered]]>
  24794. </doc>
  24795. </constructor>
  24796. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24797. static="false" final="false" visibility="public"
  24798. deprecated="not deprecated">
  24799. <doc>
  24800. <![CDATA[Constructor - create a new metric
  24801. @param nam the name of the metrics to be used to publish the metric
  24802. @param registry - where the metrics object will be registered
  24803. A description of {@link #NO_DESCRIPTION} is used]]>
  24804. </doc>
  24805. </constructor>
  24806. <method name="inc"
  24807. abstract="false" native="false" synchronized="true"
  24808. static="false" final="false" visibility="public"
  24809. deprecated="not deprecated">
  24810. <param name="incr" type="long"/>
  24811. <doc>
  24812. <![CDATA[Inc metrics for incr vlaue
  24813. @param incr - number of operations]]>
  24814. </doc>
  24815. </method>
  24816. <method name="inc"
  24817. abstract="false" native="false" synchronized="true"
  24818. static="false" final="false" visibility="public"
  24819. deprecated="not deprecated">
  24820. <doc>
  24821. <![CDATA[Inc metrics by one]]>
  24822. </doc>
  24823. </method>
  24824. <method name="pushMetric"
  24825. abstract="false" native="false" synchronized="true"
  24826. static="false" final="false" visibility="public"
  24827. deprecated="not deprecated">
  24828. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24829. <doc>
  24830. <![CDATA[Push the delta metrics to the mr.
  24831. The delta is since the last push/interval.
  24832. Note this does NOT push to JMX
  24833. (JMX gets the info via {@link #previousIntervalValue}
  24834. @param mr]]>
  24835. </doc>
  24836. </method>
  24837. <method name="getPreviousIntervalValue" return="long"
  24838. abstract="false" native="false" synchronized="true"
  24839. static="false" final="false" visibility="public"
  24840. deprecated="not deprecated">
  24841. <doc>
  24842. <![CDATA[The Value at the Previous interval
  24843. @return prev interval value]]>
  24844. </doc>
  24845. </method>
  24846. <method name="getCurrentIntervalValue" return="long"
  24847. abstract="false" native="false" synchronized="true"
  24848. static="false" final="false" visibility="public"
  24849. deprecated="not deprecated">
  24850. <doc>
  24851. <![CDATA[The Value at the current interval
  24852. @return prev interval value]]>
  24853. </doc>
  24854. </method>
  24855. <doc>
  24856. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  24857. varies over time (e.g. number of files created). The metrics is accumulated
  24858. over an interval (set in the metrics config file); the metrics is
  24859. published at the end of each interval and then
  24860. reset to zero. Hence the counter has the value in the current interval.
  24861. Note if one wants a time associated with the metric then use
  24862. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  24863. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  24864. </doc>
  24865. </class>
  24866. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  24867. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  24868. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24869. abstract="false"
  24870. static="false" final="false" visibility="public"
  24871. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  24872. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24873. static="false" final="false" visibility="public"
  24874. deprecated="not deprecated">
  24875. <doc>
  24876. <![CDATA[Constructor - create a new metric
  24877. @param nam the name of the metrics to be used to publish the metric
  24878. @param registry - where the metrics object will be registered]]>
  24879. </doc>
  24880. </constructor>
  24881. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24882. static="false" final="false" visibility="public"
  24883. deprecated="not deprecated">
  24884. <doc>
  24885. <![CDATA[Constructor - create a new metric
  24886. @param nam the name of the metrics to be used to publish the metric
  24887. @param registry - where the metrics object will be registered
  24888. A description of {@link #NO_DESCRIPTION} is used]]>
  24889. </doc>
  24890. </constructor>
  24891. <method name="inc"
  24892. abstract="false" native="false" synchronized="true"
  24893. static="false" final="false" visibility="public"
  24894. deprecated="not deprecated">
  24895. <param name="numOps" type="int"/>
  24896. <param name="time" type="long"/>
  24897. <doc>
  24898. <![CDATA[Increment the metrics for numOps operations
  24899. @param numOps - number of operations
  24900. @param time - time for numOps operations]]>
  24901. </doc>
  24902. </method>
  24903. <method name="inc"
  24904. abstract="false" native="false" synchronized="true"
  24905. static="false" final="false" visibility="public"
  24906. deprecated="not deprecated">
  24907. <param name="time" type="long"/>
  24908. <doc>
  24909. <![CDATA[Increment the metrics for one operation
  24910. @param time for one operation]]>
  24911. </doc>
  24912. </method>
  24913. <method name="pushMetric"
  24914. abstract="false" native="false" synchronized="true"
  24915. static="false" final="false" visibility="public"
  24916. deprecated="not deprecated">
  24917. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24918. <doc>
  24919. <![CDATA[Push the delta metrics to the mr.
  24920. The delta is since the last push/interval.
  24921. Note this does NOT push to JMX
  24922. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  24923. {@link #getPreviousIntervalNumOps()}
  24924. @param mr]]>
  24925. </doc>
  24926. </method>
  24927. <method name="getPreviousIntervalNumOps" return="int"
  24928. abstract="false" native="false" synchronized="true"
  24929. static="false" final="false" visibility="public"
  24930. deprecated="not deprecated">
  24931. <doc>
  24932. <![CDATA[The number of operations in the previous interval
  24933. @return - ops in prev interval]]>
  24934. </doc>
  24935. </method>
  24936. <method name="getPreviousIntervalAverageTime" return="long"
  24937. abstract="false" native="false" synchronized="true"
  24938. static="false" final="false" visibility="public"
  24939. deprecated="not deprecated">
  24940. <doc>
  24941. <![CDATA[The average rate of an operation in the previous interval
  24942. @return - the average rate.]]>
  24943. </doc>
  24944. </method>
  24945. <method name="getMinTime" return="long"
  24946. abstract="false" native="false" synchronized="true"
  24947. static="false" final="false" visibility="public"
  24948. deprecated="not deprecated">
  24949. <doc>
  24950. <![CDATA[The min time for a single operation since the last reset
  24951. {@link #resetMinMax()}
  24952. @return min time for an operation]]>
  24953. </doc>
  24954. </method>
  24955. <method name="getMaxTime" return="long"
  24956. abstract="false" native="false" synchronized="true"
  24957. static="false" final="false" visibility="public"
  24958. deprecated="not deprecated">
  24959. <doc>
  24960. <![CDATA[The max time for a single operation since the last reset
  24961. {@link #resetMinMax()}
  24962. @return max time for an operation]]>
  24963. </doc>
  24964. </method>
  24965. <method name="resetMinMax"
  24966. abstract="false" native="false" synchronized="true"
  24967. static="false" final="false" visibility="public"
  24968. deprecated="not deprecated">
  24969. <doc>
  24970. <![CDATA[Reset the min max values]]>
  24971. </doc>
  24972. </method>
  24973. <doc>
  24974. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  24975. naturally varies over time (e.g. time taken to create a file).
  24976. The rate is averaged at each interval heart beat (the interval
  24977. is set in the metrics config file).
  24978. This class also keeps track of the min and max rates along with
  24979. a method to reset the min-max.
  24980. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  24981. </doc>
  24982. </class>
  24983. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  24984. </package>
  24985. <package name="org.apache.hadoop.metrics2">
  24986. <!-- start class org.apache.hadoop.metrics2.Metric -->
  24987. <class name="Metric" extends="java.lang.Object"
  24988. abstract="true"
  24989. static="false" final="false" visibility="public"
  24990. deprecated="not deprecated">
  24991. <constructor name="Metric" type="java.lang.String"
  24992. static="false" final="false" visibility="public"
  24993. deprecated="not deprecated">
  24994. <doc>
  24995. <![CDATA[Construct the metric with name only
  24996. @param name of the metric]]>
  24997. </doc>
  24998. </constructor>
  24999. <constructor name="Metric" type="java.lang.String, java.lang.String"
  25000. static="false" final="false" visibility="public"
  25001. deprecated="not deprecated">
  25002. <doc>
  25003. <![CDATA[Construct the metric with a name and a description
  25004. @param name of the metric
  25005. @param desc description of the metric]]>
  25006. </doc>
  25007. </constructor>
  25008. <method name="name" return="java.lang.String"
  25009. abstract="false" native="false" synchronized="false"
  25010. static="false" final="false" visibility="public"
  25011. deprecated="not deprecated">
  25012. <doc>
  25013. <![CDATA[Get the name of the metric
  25014. @return the name]]>
  25015. </doc>
  25016. </method>
  25017. <method name="description" return="java.lang.String"
  25018. abstract="false" native="false" synchronized="false"
  25019. static="false" final="false" visibility="public"
  25020. deprecated="not deprecated">
  25021. <doc>
  25022. <![CDATA[Get the description of the metric
  25023. @return the description]]>
  25024. </doc>
  25025. </method>
  25026. <method name="value" return="java.lang.Number"
  25027. abstract="true" native="false" synchronized="false"
  25028. static="false" final="false" visibility="public"
  25029. deprecated="not deprecated">
  25030. <doc>
  25031. <![CDATA[Get the value of the metric
  25032. @return the value of the metric]]>
  25033. </doc>
  25034. </method>
  25035. <method name="visit"
  25036. abstract="true" native="false" synchronized="false"
  25037. static="false" final="false" visibility="public"
  25038. deprecated="not deprecated">
  25039. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  25040. <doc>
  25041. <![CDATA[Accept a visitor interface
  25042. @param visitor of the metric]]>
  25043. </doc>
  25044. </method>
  25045. <method name="equals" return="boolean"
  25046. abstract="false" native="false" synchronized="false"
  25047. static="false" final="false" visibility="public"
  25048. deprecated="not deprecated">
  25049. <param name="obj" type="java.lang.Object"/>
  25050. </method>
  25051. <method name="hashCode" return="int"
  25052. abstract="false" native="false" synchronized="false"
  25053. static="false" final="false" visibility="public"
  25054. deprecated="not deprecated">
  25055. </method>
  25056. <method name="toString" return="java.lang.String"
  25057. abstract="false" native="false" synchronized="false"
  25058. static="false" final="false" visibility="public"
  25059. deprecated="not deprecated">
  25060. </method>
  25061. <field name="NO_DESCRIPTION" type="java.lang.String"
  25062. transient="false" volatile="false"
  25063. static="true" final="true" visibility="public"
  25064. deprecated="not deprecated">
  25065. </field>
  25066. <doc>
  25067. <![CDATA[The immutable metric]]>
  25068. </doc>
  25069. </class>
  25070. <!-- end class org.apache.hadoop.metrics2.Metric -->
  25071. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  25072. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  25073. abstract="true"
  25074. static="false" final="false" visibility="public"
  25075. deprecated="not deprecated">
  25076. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  25077. static="false" final="false" visibility="public"
  25078. deprecated="not deprecated">
  25079. <doc>
  25080. <![CDATA[Construct a counter metric
  25081. @param name of the metric
  25082. @param description of the metric]]>
  25083. </doc>
  25084. </constructor>
  25085. <method name="value" return="java.lang.Number"
  25086. abstract="true" native="false" synchronized="false"
  25087. static="false" final="false" visibility="public"
  25088. deprecated="not deprecated">
  25089. </method>
  25090. <doc>
  25091. <![CDATA[A generic immutable counter metric type
  25092. @param <T> value type of the metric]]>
  25093. </doc>
  25094. </class>
  25095. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  25096. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  25097. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  25098. abstract="true"
  25099. static="false" final="false" visibility="public"
  25100. deprecated="not deprecated">
  25101. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  25102. static="false" final="false" visibility="public"
  25103. deprecated="not deprecated">
  25104. <doc>
  25105. <![CDATA[Construct a gauge metric
  25106. @param name of the metric
  25107. @param description of the metric]]>
  25108. </doc>
  25109. </constructor>
  25110. <method name="value" return="java.lang.Number"
  25111. abstract="true" native="false" synchronized="false"
  25112. static="false" final="false" visibility="public"
  25113. deprecated="not deprecated">
  25114. </method>
  25115. <doc>
  25116. <![CDATA[A generic immutable gauge metric
  25117. @param <T> value type of the metric]]>
  25118. </doc>
  25119. </class>
  25120. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  25121. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  25122. <interface name="MetricsBuilder" abstract="true"
  25123. static="false" final="false" visibility="public"
  25124. deprecated="not deprecated">
  25125. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25126. abstract="false" native="false" synchronized="false"
  25127. static="false" final="false" visibility="public"
  25128. deprecated="not deprecated">
  25129. <param name="name" type="java.lang.String"/>
  25130. <doc>
  25131. <![CDATA[Add a metrics record
  25132. @param name of the record
  25133. @return a metrics record builder for the record]]>
  25134. </doc>
  25135. </method>
  25136. <doc>
  25137. <![CDATA[The metrics builder interface]]>
  25138. </doc>
  25139. </interface>
  25140. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  25141. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  25142. <class name="MetricsException" extends="java.lang.RuntimeException"
  25143. abstract="false"
  25144. static="false" final="false" visibility="public"
  25145. deprecated="not deprecated">
  25146. <constructor name="MetricsException" type="java.lang.String"
  25147. static="false" final="false" visibility="public"
  25148. deprecated="not deprecated">
  25149. <doc>
  25150. <![CDATA[Construct the exception with a message
  25151. @param message for the exception]]>
  25152. </doc>
  25153. </constructor>
  25154. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  25155. static="false" final="false" visibility="public"
  25156. deprecated="not deprecated">
  25157. <doc>
  25158. <![CDATA[Construct the exception with a message and a cause
  25159. @param message for the exception
  25160. @param cause of the exception]]>
  25161. </doc>
  25162. </constructor>
  25163. <constructor name="MetricsException" type="java.lang.Throwable"
  25164. static="false" final="false" visibility="public"
  25165. deprecated="not deprecated">
  25166. <doc>
  25167. <![CDATA[Construct the exception with a cause
  25168. @param cause of the exception]]>
  25169. </doc>
  25170. </constructor>
  25171. <doc>
  25172. <![CDATA[A general metrics exception wrapper]]>
  25173. </doc>
  25174. </class>
  25175. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  25176. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  25177. <class name="MetricsFilter" extends="java.lang.Object"
  25178. abstract="true"
  25179. static="false" final="false" visibility="public"
  25180. deprecated="not deprecated">
  25181. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25182. <constructor name="MetricsFilter"
  25183. static="false" final="false" visibility="public"
  25184. deprecated="not deprecated">
  25185. </constructor>
  25186. <method name="init"
  25187. abstract="true" native="false" synchronized="false"
  25188. static="false" final="false" visibility="public"
  25189. deprecated="not deprecated">
  25190. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25191. </method>
  25192. <method name="accepts" return="boolean"
  25193. abstract="true" native="false" synchronized="false"
  25194. static="false" final="false" visibility="public"
  25195. deprecated="not deprecated">
  25196. <param name="name" type="java.lang.String"/>
  25197. <doc>
  25198. <![CDATA[Whether to accept the name
  25199. @param name to filter on
  25200. @return true to accept; false otherwise.]]>
  25201. </doc>
  25202. </method>
  25203. <method name="accepts" return="boolean"
  25204. abstract="true" native="false" synchronized="false"
  25205. static="false" final="false" visibility="public"
  25206. deprecated="not deprecated">
  25207. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25208. <doc>
  25209. <![CDATA[Whether to accept the tag
  25210. @param tag to filter on
  25211. @return true to accept; false otherwise]]>
  25212. </doc>
  25213. </method>
  25214. <method name="accepts" return="boolean"
  25215. abstract="true" native="false" synchronized="false"
  25216. static="false" final="false" visibility="public"
  25217. deprecated="not deprecated">
  25218. <param name="tags" type="java.lang.Iterable"/>
  25219. <doc>
  25220. <![CDATA[Whether to accept the tags
  25221. @param tags to filter on
  25222. @return true to accept; false otherwise]]>
  25223. </doc>
  25224. </method>
  25225. <method name="accepts" return="boolean"
  25226. abstract="false" native="false" synchronized="false"
  25227. static="false" final="false" visibility="public"
  25228. deprecated="not deprecated">
  25229. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25230. <doc>
  25231. <![CDATA[Whether to accept the record
  25232. @param record to filter on
  25233. @return true to accept; false otherwise.]]>
  25234. </doc>
  25235. </method>
  25236. <doc>
  25237. <![CDATA[The metrics filter interface]]>
  25238. </doc>
  25239. </class>
  25240. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  25241. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25242. <interface name="MetricsPlugin" abstract="true"
  25243. static="false" final="false" visibility="public"
  25244. deprecated="not deprecated">
  25245. <method name="init"
  25246. abstract="false" native="false" synchronized="false"
  25247. static="false" final="false" visibility="public"
  25248. deprecated="not deprecated">
  25249. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25250. <doc>
  25251. <![CDATA[Initialize the plugin
  25252. @param conf the configuration object for the plugin]]>
  25253. </doc>
  25254. </method>
  25255. <doc>
  25256. <![CDATA[A fairly generic plugin interface]]>
  25257. </doc>
  25258. </interface>
  25259. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25260. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  25261. <interface name="MetricsRecord" abstract="true"
  25262. static="false" final="false" visibility="public"
  25263. deprecated="not deprecated">
  25264. <method name="timestamp" return="long"
  25265. abstract="false" native="false" synchronized="false"
  25266. static="false" final="false" visibility="public"
  25267. deprecated="not deprecated">
  25268. <doc>
  25269. <![CDATA[Get the timestamp of the metrics
  25270. @return the timestamp]]>
  25271. </doc>
  25272. </method>
  25273. <method name="name" return="java.lang.String"
  25274. abstract="false" native="false" synchronized="false"
  25275. static="false" final="false" visibility="public"
  25276. deprecated="not deprecated">
  25277. <doc>
  25278. <![CDATA[Get the record name of the metrics
  25279. @return the record name]]>
  25280. </doc>
  25281. </method>
  25282. <method name="context" return="java.lang.String"
  25283. abstract="false" native="false" synchronized="false"
  25284. static="false" final="false" visibility="public"
  25285. deprecated="not deprecated">
  25286. <doc>
  25287. <![CDATA[Get the context name of the metrics
  25288. @return the context name]]>
  25289. </doc>
  25290. </method>
  25291. <method name="tags" return="java.lang.Iterable"
  25292. abstract="false" native="false" synchronized="false"
  25293. static="false" final="false" visibility="public"
  25294. deprecated="not deprecated">
  25295. <doc>
  25296. <![CDATA[Get the tags of the record
  25297. @return the tags]]>
  25298. </doc>
  25299. </method>
  25300. <method name="metrics" return="java.lang.Iterable"
  25301. abstract="false" native="false" synchronized="false"
  25302. static="false" final="false" visibility="public"
  25303. deprecated="not deprecated">
  25304. <doc>
  25305. <![CDATA[Get the metrics of the record
  25306. @return the metrics]]>
  25307. </doc>
  25308. </method>
  25309. <doc>
  25310. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  25311. </doc>
  25312. </interface>
  25313. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  25314. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25315. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  25316. abstract="true"
  25317. static="false" final="false" visibility="public"
  25318. deprecated="not deprecated">
  25319. <constructor name="MetricsRecordBuilder"
  25320. static="false" final="false" visibility="public"
  25321. deprecated="not deprecated">
  25322. </constructor>
  25323. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25324. abstract="true" native="false" synchronized="false"
  25325. static="false" final="false" visibility="public"
  25326. deprecated="not deprecated">
  25327. <param name="name" type="java.lang.String"/>
  25328. <param name="description" type="java.lang.String"/>
  25329. <param name="value" type="java.lang.String"/>
  25330. <doc>
  25331. <![CDATA[Add a metrics tag
  25332. @param name of the tag
  25333. @param description of the tag
  25334. @param value of the tag
  25335. @return self]]>
  25336. </doc>
  25337. </method>
  25338. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25339. abstract="true" native="false" synchronized="false"
  25340. static="false" final="false" visibility="public"
  25341. deprecated="not deprecated">
  25342. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25343. <doc>
  25344. <![CDATA[Add an immutable metrics tag object
  25345. @param tag a pre-made tag object (potentially save an object construction)
  25346. @return self]]>
  25347. </doc>
  25348. </method>
  25349. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25350. abstract="true" native="false" synchronized="false"
  25351. static="false" final="false" visibility="public"
  25352. deprecated="not deprecated">
  25353. <param name="value" type="java.lang.String"/>
  25354. <doc>
  25355. <![CDATA[Set the context tag
  25356. @param value of the context
  25357. @return self]]>
  25358. </doc>
  25359. </method>
  25360. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25361. abstract="true" native="false" synchronized="false"
  25362. static="false" final="false" visibility="public"
  25363. deprecated="not deprecated">
  25364. <param name="name" type="java.lang.String"/>
  25365. <param name="description" type="java.lang.String"/>
  25366. <param name="value" type="int"/>
  25367. <doc>
  25368. <![CDATA[Add an int counter metric
  25369. @param name of the metric
  25370. @param description of the metric
  25371. @param value of the metric
  25372. @return self]]>
  25373. </doc>
  25374. </method>
  25375. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25376. abstract="true" native="false" synchronized="false"
  25377. static="false" final="false" visibility="public"
  25378. deprecated="not deprecated">
  25379. <param name="name" type="java.lang.String"/>
  25380. <param name="description" type="java.lang.String"/>
  25381. <param name="value" type="long"/>
  25382. <doc>
  25383. <![CDATA[Add an long counter metric
  25384. @param name of the metric
  25385. @param description of the metric
  25386. @param value of the metric
  25387. @return self]]>
  25388. </doc>
  25389. </method>
  25390. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25391. abstract="true" native="false" synchronized="false"
  25392. static="false" final="false" visibility="public"
  25393. deprecated="not deprecated">
  25394. <param name="name" type="java.lang.String"/>
  25395. <param name="description" type="java.lang.String"/>
  25396. <param name="value" type="int"/>
  25397. <doc>
  25398. <![CDATA[Add a int gauge metric
  25399. @param name of the metric
  25400. @param description of the metric
  25401. @param value of the metric
  25402. @return self]]>
  25403. </doc>
  25404. </method>
  25405. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25406. abstract="true" native="false" synchronized="false"
  25407. static="false" final="false" visibility="public"
  25408. deprecated="not deprecated">
  25409. <param name="name" type="java.lang.String"/>
  25410. <param name="description" type="java.lang.String"/>
  25411. <param name="value" type="long"/>
  25412. <doc>
  25413. <![CDATA[Add a long gauge metric
  25414. @param name of the metric
  25415. @param description of the metric
  25416. @param value of the metric
  25417. @return self]]>
  25418. </doc>
  25419. </method>
  25420. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25421. abstract="true" native="false" synchronized="false"
  25422. static="false" final="false" visibility="public"
  25423. deprecated="not deprecated">
  25424. <param name="name" type="java.lang.String"/>
  25425. <param name="description" type="java.lang.String"/>
  25426. <param name="value" type="float"/>
  25427. <doc>
  25428. <![CDATA[Add a float gauge metric
  25429. @param name of the metric
  25430. @param description of the metric
  25431. @param value of the metric
  25432. @return self]]>
  25433. </doc>
  25434. </method>
  25435. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25436. abstract="true" native="false" synchronized="false"
  25437. static="false" final="false" visibility="public"
  25438. deprecated="not deprecated">
  25439. <param name="name" type="java.lang.String"/>
  25440. <param name="description" type="java.lang.String"/>
  25441. <param name="value" type="double"/>
  25442. <doc>
  25443. <![CDATA[Add a double gauge metric
  25444. @param name of the metric
  25445. @param description of the metric
  25446. @param value of the metric
  25447. @return self]]>
  25448. </doc>
  25449. </method>
  25450. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25451. abstract="true" native="false" synchronized="false"
  25452. static="false" final="false" visibility="public"
  25453. deprecated="not deprecated">
  25454. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  25455. <doc>
  25456. <![CDATA[Add a pre-made immutable metric object
  25457. @param metric the pre-made metric to save an object construction
  25458. @return self]]>
  25459. </doc>
  25460. </method>
  25461. <doc>
  25462. <![CDATA[The metrics record builder interface]]>
  25463. </doc>
  25464. </class>
  25465. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25466. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  25467. <interface name="MetricsSink" abstract="true"
  25468. static="false" final="false" visibility="public"
  25469. deprecated="not deprecated">
  25470. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25471. <method name="putMetrics"
  25472. abstract="false" native="false" synchronized="false"
  25473. static="false" final="false" visibility="public"
  25474. deprecated="not deprecated">
  25475. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25476. <doc>
  25477. <![CDATA[Put a metrics record in the sink
  25478. @param record the record to put]]>
  25479. </doc>
  25480. </method>
  25481. <method name="flush"
  25482. abstract="false" native="false" synchronized="false"
  25483. static="false" final="false" visibility="public"
  25484. deprecated="not deprecated">
  25485. <doc>
  25486. <![CDATA[Flush any buffered metrics]]>
  25487. </doc>
  25488. </method>
  25489. <doc>
  25490. <![CDATA[The metrics sink interface]]>
  25491. </doc>
  25492. </interface>
  25493. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  25494. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  25495. <interface name="MetricsSource" abstract="true"
  25496. static="false" final="false" visibility="public"
  25497. deprecated="not deprecated">
  25498. <method name="getMetrics"
  25499. abstract="false" native="false" synchronized="false"
  25500. static="false" final="false" visibility="public"
  25501. deprecated="not deprecated">
  25502. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  25503. <param name="all" type="boolean"/>
  25504. <doc>
  25505. <![CDATA[Get metrics from the source
  25506. @param builder to contain the resulting metrics snapshot
  25507. @param all if true, return all metrics even if unchanged.]]>
  25508. </doc>
  25509. </method>
  25510. <doc>
  25511. <![CDATA[The metrics source interface]]>
  25512. </doc>
  25513. </interface>
  25514. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  25515. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  25516. <interface name="MetricsSystem" abstract="true"
  25517. static="false" final="false" visibility="public"
  25518. deprecated="not deprecated">
  25519. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  25520. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  25521. abstract="false" native="false" synchronized="false"
  25522. static="false" final="false" visibility="public"
  25523. deprecated="not deprecated">
  25524. <param name="name" type="java.lang.String"/>
  25525. <param name="desc" type="java.lang.String"/>
  25526. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  25527. <doc>
  25528. <![CDATA[Register a metrics source
  25529. @param <T> the type of the source
  25530. @param source to register
  25531. @param name of the source. Must be unique.
  25532. @param desc the description of the source.
  25533. @return the source
  25534. @exception MetricsException]]>
  25535. </doc>
  25536. </method>
  25537. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  25538. abstract="false" native="false" synchronized="false"
  25539. static="false" final="false" visibility="public"
  25540. deprecated="not deprecated">
  25541. <param name="name" type="java.lang.String"/>
  25542. <param name="desc" type="java.lang.String"/>
  25543. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  25544. <doc>
  25545. <![CDATA[Register a metrics sink
  25546. @param <T> the type of the sink
  25547. @param sink to register
  25548. @param name of the sink. Must be unique.
  25549. @param desc the description of the sink
  25550. @return the sink
  25551. @exception MetricsException]]>
  25552. </doc>
  25553. </method>
  25554. <method name="register"
  25555. abstract="false" native="false" synchronized="false"
  25556. static="false" final="false" visibility="public"
  25557. deprecated="not deprecated">
  25558. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25559. <doc>
  25560. <![CDATA[Register a callback interface for JMX events
  25561. @param callback the callback object implementing the MBean interface.]]>
  25562. </doc>
  25563. </method>
  25564. <method name="shutdown"
  25565. abstract="false" native="false" synchronized="false"
  25566. static="false" final="false" visibility="public"
  25567. deprecated="not deprecated">
  25568. <doc>
  25569. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  25570. The MetricsSystemMXBean will be unregistered.]]>
  25571. </doc>
  25572. </method>
  25573. <doc>
  25574. <![CDATA[The metrics system interface]]>
  25575. </doc>
  25576. </interface>
  25577. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  25578. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  25579. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  25580. abstract="true"
  25581. static="true" final="false" visibility="public"
  25582. deprecated="not deprecated">
  25583. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25584. <constructor name="MetricsSystem.AbstractCallback"
  25585. static="false" final="false" visibility="public"
  25586. deprecated="not deprecated">
  25587. </constructor>
  25588. <method name="preStart"
  25589. abstract="false" native="false" synchronized="false"
  25590. static="false" final="false" visibility="public"
  25591. deprecated="not deprecated">
  25592. </method>
  25593. <method name="postStart"
  25594. abstract="false" native="false" synchronized="false"
  25595. static="false" final="false" visibility="public"
  25596. deprecated="not deprecated">
  25597. </method>
  25598. <method name="preStop"
  25599. abstract="false" native="false" synchronized="false"
  25600. static="false" final="false" visibility="public"
  25601. deprecated="not deprecated">
  25602. </method>
  25603. <method name="postStop"
  25604. abstract="false" native="false" synchronized="false"
  25605. static="false" final="false" visibility="public"
  25606. deprecated="not deprecated">
  25607. </method>
  25608. <doc>
  25609. <![CDATA[Convenient abstract class for implementing callback interface]]>
  25610. </doc>
  25611. </class>
  25612. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  25613. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  25614. <interface name="MetricsSystem.Callback" abstract="true"
  25615. static="true" final="false" visibility="public"
  25616. deprecated="not deprecated">
  25617. <method name="preStart"
  25618. abstract="false" native="false" synchronized="false"
  25619. static="false" final="false" visibility="public"
  25620. deprecated="not deprecated">
  25621. <doc>
  25622. <![CDATA[Called before start()]]>
  25623. </doc>
  25624. </method>
  25625. <method name="postStart"
  25626. abstract="false" native="false" synchronized="false"
  25627. static="false" final="false" visibility="public"
  25628. deprecated="not deprecated">
  25629. <doc>
  25630. <![CDATA[Called after start()]]>
  25631. </doc>
  25632. </method>
  25633. <method name="preStop"
  25634. abstract="false" native="false" synchronized="false"
  25635. static="false" final="false" visibility="public"
  25636. deprecated="not deprecated">
  25637. <doc>
  25638. <![CDATA[Called before stop()]]>
  25639. </doc>
  25640. </method>
  25641. <method name="postStop"
  25642. abstract="false" native="false" synchronized="false"
  25643. static="false" final="false" visibility="public"
  25644. deprecated="not deprecated">
  25645. <doc>
  25646. <![CDATA[Called after stop()]]>
  25647. </doc>
  25648. </method>
  25649. <doc>
  25650. <![CDATA[The metrics system callback interface]]>
  25651. </doc>
  25652. </interface>
  25653. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  25654. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25655. <interface name="MetricsSystemMXBean" abstract="true"
  25656. static="false" final="false" visibility="public"
  25657. deprecated="not deprecated">
  25658. <method name="start"
  25659. abstract="false" native="false" synchronized="false"
  25660. static="false" final="false" visibility="public"
  25661. deprecated="not deprecated">
  25662. <doc>
  25663. <![CDATA[Start the metrics system
  25664. @exception MetricsException]]>
  25665. </doc>
  25666. </method>
  25667. <method name="stop"
  25668. abstract="false" native="false" synchronized="false"
  25669. static="false" final="false" visibility="public"
  25670. deprecated="not deprecated">
  25671. <doc>
  25672. <![CDATA[Stop the metrics system
  25673. @exception MetricsException]]>
  25674. </doc>
  25675. </method>
  25676. <method name="refreshMBeans"
  25677. abstract="false" native="false" synchronized="false"
  25678. static="false" final="false" visibility="public"
  25679. deprecated="not deprecated">
  25680. <doc>
  25681. <![CDATA[Force a refresh of MBeans
  25682. @exception MetricsException]]>
  25683. </doc>
  25684. </method>
  25685. <method name="currentConfig" return="java.lang.String"
  25686. abstract="false" native="false" synchronized="false"
  25687. static="false" final="false" visibility="public"
  25688. deprecated="not deprecated">
  25689. <doc>
  25690. <![CDATA[@return the current config
  25691. Note, avoid getConfig, as it'll turn it into an attribute,
  25692. which doesn't support multiple lines in the values.
  25693. @exception MetricsException]]>
  25694. </doc>
  25695. </method>
  25696. <doc>
  25697. <![CDATA[The JMX interface to the metrics system]]>
  25698. </doc>
  25699. </interface>
  25700. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25701. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  25702. <class name="MetricsTag" extends="java.lang.Object"
  25703. abstract="false"
  25704. static="false" final="false" visibility="public"
  25705. deprecated="not deprecated">
  25706. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  25707. static="false" final="false" visibility="public"
  25708. deprecated="not deprecated">
  25709. <doc>
  25710. <![CDATA[Construct the tag with name, description and value
  25711. @param name of the tag
  25712. @param description of the tag
  25713. @param value of the tag]]>
  25714. </doc>
  25715. </constructor>
  25716. <method name="name" return="java.lang.String"
  25717. abstract="false" native="false" synchronized="false"
  25718. static="false" final="false" visibility="public"
  25719. deprecated="not deprecated">
  25720. <doc>
  25721. <![CDATA[Get the name of the tag
  25722. @return the name]]>
  25723. </doc>
  25724. </method>
  25725. <method name="description" return="java.lang.String"
  25726. abstract="false" native="false" synchronized="false"
  25727. static="false" final="false" visibility="public"
  25728. deprecated="not deprecated">
  25729. <doc>
  25730. <![CDATA[Get the description of the tag
  25731. @return the description]]>
  25732. </doc>
  25733. </method>
  25734. <method name="value" return="java.lang.String"
  25735. abstract="false" native="false" synchronized="false"
  25736. static="false" final="false" visibility="public"
  25737. deprecated="not deprecated">
  25738. <doc>
  25739. <![CDATA[Get the value of the tag
  25740. @return the value]]>
  25741. </doc>
  25742. </method>
  25743. <method name="equals" return="boolean"
  25744. abstract="false" native="false" synchronized="false"
  25745. static="false" final="false" visibility="public"
  25746. deprecated="not deprecated">
  25747. <param name="obj" type="java.lang.Object"/>
  25748. </method>
  25749. <method name="hashCode" return="int"
  25750. abstract="false" native="false" synchronized="false"
  25751. static="false" final="false" visibility="public"
  25752. deprecated="not deprecated">
  25753. </method>
  25754. <method name="toString" 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. <doc>
  25760. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  25761. </doc>
  25762. </class>
  25763. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  25764. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25765. <interface name="MetricsVisitor" abstract="true"
  25766. static="false" final="false" visibility="public"
  25767. deprecated="not deprecated">
  25768. <method name="gauge"
  25769. abstract="false" native="false" synchronized="false"
  25770. static="false" final="false" visibility="public"
  25771. deprecated="not deprecated">
  25772. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25773. <param name="value" type="int"/>
  25774. <doc>
  25775. <![CDATA[Callback for int value gauges
  25776. @param metric the metric object
  25777. @param value of the metric]]>
  25778. </doc>
  25779. </method>
  25780. <method name="gauge"
  25781. abstract="false" native="false" synchronized="false"
  25782. static="false" final="false" visibility="public"
  25783. deprecated="not deprecated">
  25784. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25785. <param name="value" type="long"/>
  25786. <doc>
  25787. <![CDATA[Callback for long value gauges
  25788. @param metric the metric object
  25789. @param value of the metric]]>
  25790. </doc>
  25791. </method>
  25792. <method name="gauge"
  25793. abstract="false" native="false" synchronized="false"
  25794. static="false" final="false" visibility="public"
  25795. deprecated="not deprecated">
  25796. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25797. <param name="value" type="float"/>
  25798. <doc>
  25799. <![CDATA[Callback for float value gauges
  25800. @param metric the metric object
  25801. @param value of the metric]]>
  25802. </doc>
  25803. </method>
  25804. <method name="gauge"
  25805. abstract="false" native="false" synchronized="false"
  25806. static="false" final="false" visibility="public"
  25807. deprecated="not deprecated">
  25808. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25809. <param name="value" type="double"/>
  25810. <doc>
  25811. <![CDATA[Callback for double value gauges
  25812. @param metric the metric object
  25813. @param value of the metric]]>
  25814. </doc>
  25815. </method>
  25816. <method name="counter"
  25817. abstract="false" native="false" synchronized="false"
  25818. static="false" final="false" visibility="public"
  25819. deprecated="not deprecated">
  25820. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  25821. <param name="value" type="int"/>
  25822. <doc>
  25823. <![CDATA[Callback for integer value counters
  25824. @param metric the metric object
  25825. @param value of the metric]]>
  25826. </doc>
  25827. </method>
  25828. <method name="counter"
  25829. abstract="false" native="false" synchronized="false"
  25830. static="false" final="false" visibility="public"
  25831. deprecated="not deprecated">
  25832. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  25833. <param name="value" type="long"/>
  25834. <doc>
  25835. <![CDATA[Callback for long value counters
  25836. @param metric the metric object
  25837. @param value of the metric]]>
  25838. </doc>
  25839. </method>
  25840. <doc>
  25841. <![CDATA[A visitor interface for metrics]]>
  25842. </doc>
  25843. </interface>
  25844. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25845. </package>
  25846. <package name="org.apache.hadoop.metrics2.filter">
  25847. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25848. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25849. abstract="false"
  25850. static="false" final="false" visibility="public"
  25851. deprecated="not deprecated">
  25852. <constructor name="GlobFilter"
  25853. static="false" final="false" visibility="public"
  25854. deprecated="not deprecated">
  25855. </constructor>
  25856. <method name="compile" return="java.util.regex.Pattern"
  25857. abstract="false" native="false" synchronized="false"
  25858. static="false" final="false" visibility="protected"
  25859. deprecated="not deprecated">
  25860. <param name="s" type="java.lang.String"/>
  25861. </method>
  25862. <doc>
  25863. <![CDATA[A glob pattern filter for metrics]]>
  25864. </doc>
  25865. </class>
  25866. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25867. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25868. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25869. abstract="false"
  25870. static="false" final="false" visibility="public"
  25871. deprecated="not deprecated">
  25872. <constructor name="RegexFilter"
  25873. static="false" final="false" visibility="public"
  25874. deprecated="not deprecated">
  25875. </constructor>
  25876. <method name="compile" return="java.util.regex.Pattern"
  25877. abstract="false" native="false" synchronized="false"
  25878. static="false" final="false" visibility="protected"
  25879. deprecated="not deprecated">
  25880. <param name="s" type="java.lang.String"/>
  25881. </method>
  25882. <doc>
  25883. <![CDATA[A regex pattern filter for metrics]]>
  25884. </doc>
  25885. </class>
  25886. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25887. </package>
  25888. <package name="org.apache.hadoop.metrics2.impl">
  25889. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  25890. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  25891. abstract="false"
  25892. static="false" final="false" visibility="public"
  25893. deprecated="not deprecated">
  25894. <doc>
  25895. <![CDATA[The metrics configuration runtime exception]]>
  25896. </doc>
  25897. </class>
  25898. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  25899. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  25900. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25901. abstract="false"
  25902. static="false" final="false" visibility="public"
  25903. deprecated="not deprecated">
  25904. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  25905. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  25906. static="false" final="false" visibility="public"
  25907. deprecated="not deprecated">
  25908. <doc>
  25909. <![CDATA[Construct a metrics record
  25910. @param name of the record
  25911. @param timestamp of the record
  25912. @param tags of the record
  25913. @param metrics of the record]]>
  25914. </doc>
  25915. </constructor>
  25916. <method name="timestamp" return="long"
  25917. abstract="false" native="false" synchronized="false"
  25918. static="false" final="false" visibility="public"
  25919. deprecated="not deprecated">
  25920. </method>
  25921. <method name="name" return="java.lang.String"
  25922. abstract="false" native="false" synchronized="false"
  25923. static="false" final="false" visibility="public"
  25924. deprecated="not deprecated">
  25925. </method>
  25926. <method name="context" return="java.lang.String"
  25927. abstract="false" native="false" synchronized="false"
  25928. static="false" final="false" visibility="public"
  25929. deprecated="not deprecated">
  25930. </method>
  25931. <method name="tags" return="java.lang.Iterable"
  25932. abstract="false" native="false" synchronized="false"
  25933. static="false" final="false" visibility="public"
  25934. deprecated="not deprecated">
  25935. </method>
  25936. <method name="metrics" return="java.lang.Iterable"
  25937. abstract="false" native="false" synchronized="false"
  25938. static="false" final="false" visibility="public"
  25939. deprecated="not deprecated">
  25940. </method>
  25941. <method name="equals" return="boolean"
  25942. abstract="false" native="false" synchronized="false"
  25943. static="false" final="false" visibility="public"
  25944. deprecated="not deprecated">
  25945. <param name="obj" type="java.lang.Object"/>
  25946. </method>
  25947. <method name="hashCode" return="int"
  25948. abstract="false" native="false" synchronized="false"
  25949. static="false" final="false" visibility="public"
  25950. deprecated="not deprecated">
  25951. </method>
  25952. <method name="toString" return="java.lang.String"
  25953. abstract="false" native="false" synchronized="false"
  25954. static="false" final="false" visibility="public"
  25955. deprecated="not deprecated">
  25956. </method>
  25957. <field name="CONTEXT_KEY" type="java.lang.String"
  25958. transient="false" volatile="false"
  25959. static="true" final="true" visibility="protected"
  25960. deprecated="not deprecated">
  25961. </field>
  25962. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  25963. transient="false" volatile="false"
  25964. static="true" final="true" visibility="protected"
  25965. deprecated="not deprecated">
  25966. </field>
  25967. </class>
  25968. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  25969. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  25970. <class name="MetricsSystemImpl" extends="java.lang.Object"
  25971. abstract="false"
  25972. static="false" final="false" visibility="public"
  25973. deprecated="not deprecated">
  25974. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  25975. <constructor name="MetricsSystemImpl" type="java.lang.String"
  25976. static="false" final="false" visibility="public"
  25977. deprecated="not deprecated">
  25978. <doc>
  25979. <![CDATA[Construct the metrics system
  25980. @param prefix for the system]]>
  25981. </doc>
  25982. </constructor>
  25983. <constructor name="MetricsSystemImpl"
  25984. static="false" final="false" visibility="public"
  25985. deprecated="not deprecated">
  25986. <doc>
  25987. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  25988. </doc>
  25989. </constructor>
  25990. <method name="init"
  25991. abstract="false" native="false" synchronized="true"
  25992. static="false" final="false" visibility="public"
  25993. deprecated="not deprecated">
  25994. <param name="prefix" type="java.lang.String"/>
  25995. <doc>
  25996. <![CDATA[Initialized the metrics system with a prefix.
  25997. @param prefix the system will look for configs with the prefix]]>
  25998. </doc>
  25999. </method>
  26000. <method name="start"
  26001. abstract="false" native="false" synchronized="true"
  26002. static="false" final="false" visibility="public"
  26003. deprecated="not deprecated">
  26004. </method>
  26005. <method name="stop"
  26006. abstract="false" native="false" synchronized="true"
  26007. static="false" final="false" visibility="public"
  26008. deprecated="not deprecated">
  26009. </method>
  26010. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26011. abstract="false" native="false" synchronized="true"
  26012. static="false" final="false" visibility="public"
  26013. deprecated="not deprecated">
  26014. <param name="name" type="java.lang.String"/>
  26015. <param name="desc" type="java.lang.String"/>
  26016. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26017. </method>
  26018. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26019. abstract="false" native="false" synchronized="true"
  26020. static="false" final="false" visibility="public"
  26021. deprecated="not deprecated">
  26022. <param name="name" type="java.lang.String"/>
  26023. <param name="description" type="java.lang.String"/>
  26024. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26025. </method>
  26026. <method name="register"
  26027. abstract="false" native="false" synchronized="true"
  26028. static="false" final="false" visibility="public"
  26029. deprecated="not deprecated">
  26030. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26031. </method>
  26032. <method name="refreshMBeans"
  26033. abstract="false" native="false" synchronized="true"
  26034. static="false" final="false" visibility="public"
  26035. deprecated="not deprecated">
  26036. </method>
  26037. <method name="currentConfig" return="java.lang.String"
  26038. abstract="false" native="false" synchronized="true"
  26039. static="false" final="false" visibility="public"
  26040. deprecated="not deprecated">
  26041. </method>
  26042. <method name="shutdown"
  26043. abstract="false" native="false" synchronized="true"
  26044. static="false" final="false" visibility="public"
  26045. deprecated="not deprecated">
  26046. </method>
  26047. <doc>
  26048. <![CDATA[A base class for metrics system singletons]]>
  26049. </doc>
  26050. </class>
  26051. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  26052. </package>
  26053. <package name="org.apache.hadoop.metrics2.lib">
  26054. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  26055. <class name="AbstractMetricsSource" extends="java.lang.Object"
  26056. abstract="true"
  26057. static="false" final="false" visibility="public"
  26058. deprecated="not deprecated">
  26059. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  26060. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  26061. static="false" final="false" visibility="public"
  26062. deprecated="not deprecated">
  26063. <doc>
  26064. <![CDATA[Construct the source with name and a mutable metrics factory
  26065. @param name of the default record
  26066. @param mf the factory to create mutable metrics]]>
  26067. </doc>
  26068. </constructor>
  26069. <constructor name="AbstractMetricsSource" type="java.lang.String"
  26070. static="false" final="false" visibility="public"
  26071. deprecated="not deprecated">
  26072. <doc>
  26073. <![CDATA[Construct the source with a name with a default factory
  26074. @param name of the default record]]>
  26075. </doc>
  26076. </constructor>
  26077. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26078. abstract="false" native="false" synchronized="false"
  26079. static="false" final="false" visibility="public"
  26080. deprecated="not deprecated">
  26081. <doc>
  26082. <![CDATA[@return the registry for mutable metrics]]>
  26083. </doc>
  26084. </method>
  26085. <method name="getMetrics"
  26086. abstract="false" native="false" synchronized="false"
  26087. static="false" final="false" visibility="public"
  26088. deprecated="not deprecated">
  26089. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  26090. <param name="all" type="boolean"/>
  26091. </method>
  26092. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26093. transient="false" volatile="false"
  26094. static="false" final="true" visibility="protected"
  26095. deprecated="not deprecated">
  26096. </field>
  26097. <doc>
  26098. <![CDATA[A convenient base class for writing metrics sources]]>
  26099. </doc>
  26100. </class>
  26101. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  26102. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26103. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  26104. abstract="false"
  26105. static="false" final="true" visibility="public"
  26106. deprecated="not deprecated">
  26107. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  26108. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  26109. abstract="false" native="false" synchronized="false"
  26110. static="true" final="false" visibility="public"
  26111. deprecated="not deprecated">
  26112. </method>
  26113. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26114. abstract="false" native="false" synchronized="false"
  26115. static="true" final="false" visibility="public"
  26116. deprecated="not deprecated">
  26117. <param name="name" type="java.lang.String"/>
  26118. </method>
  26119. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  26120. abstract="false" native="false" synchronized="false"
  26121. static="true" final="false" visibility="public"
  26122. deprecated="not deprecated">
  26123. <param name="prefix" type="java.lang.String"/>
  26124. <doc>
  26125. <![CDATA[Common static convenience method to initialize the metrics system
  26126. @param prefix for configuration
  26127. @return the metrics system instance]]>
  26128. </doc>
  26129. </method>
  26130. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26131. abstract="false" native="false" synchronized="false"
  26132. static="false" final="false" visibility="public"
  26133. deprecated="not deprecated">
  26134. <param name="name" type="java.lang.String"/>
  26135. <param name="desc" type="java.lang.String"/>
  26136. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26137. </method>
  26138. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  26139. abstract="false" native="false" synchronized="false"
  26140. static="true" final="false" visibility="public"
  26141. deprecated="not deprecated">
  26142. <param name="name" type="java.lang.String"/>
  26143. <param name="desc" type="java.lang.String"/>
  26144. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26145. <doc>
  26146. <![CDATA[Common static method to register a source
  26147. @param <T> type of the source
  26148. @param name of the source
  26149. @param desc description
  26150. @param source the source object to register
  26151. @return the source object]]>
  26152. </doc>
  26153. </method>
  26154. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26155. abstract="false" native="false" synchronized="false"
  26156. static="false" final="false" visibility="public"
  26157. deprecated="not deprecated">
  26158. <param name="name" type="java.lang.String"/>
  26159. <param name="desc" type="java.lang.String"/>
  26160. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26161. </method>
  26162. <method name="register"
  26163. abstract="false" native="false" synchronized="false"
  26164. static="false" final="false" visibility="public"
  26165. deprecated="not deprecated">
  26166. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26167. </method>
  26168. <method name="start"
  26169. abstract="false" native="false" synchronized="false"
  26170. static="false" final="false" visibility="public"
  26171. deprecated="not deprecated">
  26172. </method>
  26173. <method name="stop"
  26174. abstract="false" native="false" synchronized="false"
  26175. static="false" final="false" visibility="public"
  26176. deprecated="not deprecated">
  26177. </method>
  26178. <method name="refreshMBeans"
  26179. abstract="false" native="false" synchronized="false"
  26180. static="false" final="false" visibility="public"
  26181. deprecated="not deprecated">
  26182. </method>
  26183. <method name="currentConfig" return="java.lang.String"
  26184. abstract="false" native="false" synchronized="false"
  26185. static="false" final="false" visibility="public"
  26186. deprecated="not deprecated">
  26187. </method>
  26188. <method name="shutdown"
  26189. abstract="false" native="false" synchronized="false"
  26190. static="false" final="false" visibility="public"
  26191. deprecated="not deprecated">
  26192. </method>
  26193. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26194. transient="false" volatile="false"
  26195. static="true" final="true" visibility="public"
  26196. deprecated="not deprecated">
  26197. <doc>
  26198. <![CDATA[The singleton instance]]>
  26199. </doc>
  26200. </field>
  26201. <doc>
  26202. <![CDATA[The default metrics system singleton]]>
  26203. </doc>
  26204. </class>
  26205. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26206. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26207. <class name="MetricMutable" extends="java.lang.Object"
  26208. abstract="true"
  26209. static="false" final="false" visibility="public"
  26210. deprecated="not deprecated">
  26211. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  26212. static="false" final="false" visibility="public"
  26213. deprecated="not deprecated">
  26214. <doc>
  26215. <![CDATA[Construct a mutable metric
  26216. @param name of the metric
  26217. @param description of the metric]]>
  26218. </doc>
  26219. </constructor>
  26220. <method name="snapshot"
  26221. abstract="true" native="false" synchronized="false"
  26222. static="false" final="false" visibility="public"
  26223. deprecated="not deprecated">
  26224. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26225. <param name="all" type="boolean"/>
  26226. <doc>
  26227. <![CDATA[Get a snapshot/snapshot of the metric
  26228. @param builder the metrics record builder
  26229. @param all if true, snapshot unchanged metrics as well]]>
  26230. </doc>
  26231. </method>
  26232. <method name="snapshot"
  26233. abstract="false" native="false" synchronized="false"
  26234. static="false" final="false" visibility="public"
  26235. deprecated="not deprecated">
  26236. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26237. <doc>
  26238. <![CDATA[Get a sampe/snapshot of metric if changed
  26239. @param builder the metrics record builder]]>
  26240. </doc>
  26241. </method>
  26242. <method name="setChanged"
  26243. abstract="false" native="false" synchronized="false"
  26244. static="false" final="false" visibility="protected"
  26245. deprecated="not deprecated">
  26246. <doc>
  26247. <![CDATA[Set the changed flag in mutable operations]]>
  26248. </doc>
  26249. </method>
  26250. <method name="clearChanged"
  26251. abstract="false" native="false" synchronized="false"
  26252. static="false" final="false" visibility="protected"
  26253. deprecated="not deprecated">
  26254. <doc>
  26255. <![CDATA[Clear the changed flag in the snapshot operations]]>
  26256. </doc>
  26257. </method>
  26258. <method name="changed" return="boolean"
  26259. abstract="false" native="false" synchronized="false"
  26260. static="false" final="false" visibility="public"
  26261. deprecated="not deprecated">
  26262. <doc>
  26263. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  26264. </doc>
  26265. </method>
  26266. <field name="name" type="java.lang.String"
  26267. transient="false" volatile="false"
  26268. static="false" final="true" visibility="public"
  26269. deprecated="not deprecated">
  26270. <doc>
  26271. <![CDATA[name of the metric]]>
  26272. </doc>
  26273. </field>
  26274. <field name="description" type="java.lang.String"
  26275. transient="false" volatile="false"
  26276. static="false" final="true" visibility="public"
  26277. deprecated="not deprecated">
  26278. <doc>
  26279. <![CDATA[description of the metric]]>
  26280. </doc>
  26281. </field>
  26282. <doc>
  26283. <![CDATA[The mutable metric interface]]>
  26284. </doc>
  26285. </class>
  26286. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26287. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26288. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26289. abstract="true"
  26290. static="false" final="false" visibility="public"
  26291. deprecated="not deprecated">
  26292. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  26293. static="false" final="false" visibility="public"
  26294. deprecated="not deprecated">
  26295. <doc>
  26296. <![CDATA[Construct the metric with name and description
  26297. @param name
  26298. @param description]]>
  26299. </doc>
  26300. </constructor>
  26301. <method name="incr"
  26302. abstract="true" native="false" synchronized="false"
  26303. static="false" final="false" visibility="public"
  26304. deprecated="not deprecated">
  26305. <doc>
  26306. <![CDATA[Increment the metric value by 1.]]>
  26307. </doc>
  26308. </method>
  26309. <doc>
  26310. <![CDATA[The mutable counter (monotonically increasing) metric interface
  26311. @param <T> the type of the metric]]>
  26312. </doc>
  26313. </class>
  26314. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26315. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26316. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26317. abstract="false"
  26318. static="false" final="false" visibility="public"
  26319. deprecated="not deprecated">
  26320. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  26321. static="false" final="false" visibility="public"
  26322. deprecated="not deprecated">
  26323. <doc>
  26324. <![CDATA[Construct a mutable int counter
  26325. @param name of the counter
  26326. @param description of the counter
  26327. @param initValue the initial value of the counter]]>
  26328. </doc>
  26329. </constructor>
  26330. <method name="incr"
  26331. abstract="false" native="false" synchronized="true"
  26332. static="false" final="false" visibility="public"
  26333. deprecated="not deprecated">
  26334. </method>
  26335. <method name="incr"
  26336. abstract="false" native="false" synchronized="true"
  26337. static="false" final="false" visibility="public"
  26338. deprecated="not deprecated">
  26339. <param name="delta" type="int"/>
  26340. <doc>
  26341. <![CDATA[Increment the value by a delta
  26342. @param delta of the increment]]>
  26343. </doc>
  26344. </method>
  26345. <method name="snapshot"
  26346. abstract="false" native="false" synchronized="false"
  26347. static="false" final="false" visibility="public"
  26348. deprecated="not deprecated">
  26349. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26350. <param name="all" type="boolean"/>
  26351. </method>
  26352. <doc>
  26353. <![CDATA[A mutable int counter for implementing metrics sources]]>
  26354. </doc>
  26355. </class>
  26356. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26357. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26358. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26359. abstract="false"
  26360. static="false" final="false" visibility="public"
  26361. deprecated="not deprecated">
  26362. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  26363. static="false" final="false" visibility="public"
  26364. deprecated="not deprecated">
  26365. <doc>
  26366. <![CDATA[Construct a mutable long counter
  26367. @param name of the counter
  26368. @param description of the counter
  26369. @param initValue the initial value of the counter]]>
  26370. </doc>
  26371. </constructor>
  26372. <method name="incr"
  26373. abstract="false" native="false" synchronized="true"
  26374. static="false" final="false" visibility="public"
  26375. deprecated="not deprecated">
  26376. </method>
  26377. <method name="incr"
  26378. abstract="false" native="false" synchronized="true"
  26379. static="false" final="false" visibility="public"
  26380. deprecated="not deprecated">
  26381. <param name="delta" type="long"/>
  26382. <doc>
  26383. <![CDATA[Increment the value by a delta
  26384. @param delta of the increment]]>
  26385. </doc>
  26386. </method>
  26387. <method name="snapshot"
  26388. abstract="false" native="false" synchronized="false"
  26389. static="false" final="false" visibility="public"
  26390. deprecated="not deprecated">
  26391. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26392. <param name="all" type="boolean"/>
  26393. </method>
  26394. <doc>
  26395. <![CDATA[A mutable long counter]]>
  26396. </doc>
  26397. </class>
  26398. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26399. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  26400. <class name="MetricMutableFactory" extends="java.lang.Object"
  26401. abstract="false"
  26402. static="false" final="false" visibility="public"
  26403. deprecated="not deprecated">
  26404. <constructor name="MetricMutableFactory"
  26405. static="false" final="false" visibility="public"
  26406. deprecated="not deprecated">
  26407. </constructor>
  26408. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  26409. abstract="false" native="false" synchronized="false"
  26410. static="false" final="false" visibility="public"
  26411. deprecated="not deprecated">
  26412. <param name="name" type="java.lang.String"/>
  26413. <doc>
  26414. <![CDATA[Create a new mutable metric by name
  26415. Usually overridden by app specific factory
  26416. @param name of the metric
  26417. @return a new metric object]]>
  26418. </doc>
  26419. </method>
  26420. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26421. abstract="false" native="false" synchronized="false"
  26422. static="false" final="false" visibility="public"
  26423. deprecated="not deprecated">
  26424. <param name="name" type="java.lang.String"/>
  26425. <param name="description" type="java.lang.String"/>
  26426. <param name="initValue" type="int"/>
  26427. <doc>
  26428. <![CDATA[Create a mutable integer counter
  26429. @param name of the metric
  26430. @param description of the metric
  26431. @param initValue of the metric
  26432. @return a new metric object]]>
  26433. </doc>
  26434. </method>
  26435. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26436. abstract="false" native="false" synchronized="false"
  26437. static="false" final="false" visibility="public"
  26438. deprecated="not deprecated">
  26439. <param name="name" type="java.lang.String"/>
  26440. <doc>
  26441. <![CDATA[Create a mutable integer counter with name only.
  26442. Usually gets overridden.
  26443. @param name of the metric
  26444. @return a new metric object]]>
  26445. </doc>
  26446. </method>
  26447. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26448. abstract="false" native="false" synchronized="false"
  26449. static="false" final="false" visibility="public"
  26450. deprecated="not deprecated">
  26451. <param name="name" type="java.lang.String"/>
  26452. <param name="description" type="java.lang.String"/>
  26453. <param name="initValue" type="long"/>
  26454. <doc>
  26455. <![CDATA[Create a mutable long integer counter
  26456. @param name of the metric
  26457. @param description of the metric
  26458. @param initValue of the metric
  26459. @return a new metric object]]>
  26460. </doc>
  26461. </method>
  26462. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26463. abstract="false" native="false" synchronized="false"
  26464. static="false" final="false" visibility="public"
  26465. deprecated="not deprecated">
  26466. <param name="name" type="java.lang.String"/>
  26467. <doc>
  26468. <![CDATA[Create a mutable long integer counter with a name
  26469. Usually gets overridden.
  26470. @param name of the metric
  26471. @return a new metric object]]>
  26472. </doc>
  26473. </method>
  26474. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26475. abstract="false" native="false" synchronized="false"
  26476. static="false" final="false" visibility="public"
  26477. deprecated="not deprecated">
  26478. <param name="name" type="java.lang.String"/>
  26479. <param name="description" type="java.lang.String"/>
  26480. <param name="initValue" type="int"/>
  26481. <doc>
  26482. <![CDATA[Create a mutable integer gauge
  26483. @param name of the metric
  26484. @param description of the metric
  26485. @param initValue of the metric
  26486. @return a new metric object]]>
  26487. </doc>
  26488. </method>
  26489. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26490. abstract="false" native="false" synchronized="false"
  26491. static="false" final="false" visibility="public"
  26492. deprecated="not deprecated">
  26493. <param name="name" type="java.lang.String"/>
  26494. <doc>
  26495. <![CDATA[Create a mutable integer gauge with name only.
  26496. Usually gets overridden.
  26497. @param name of the metric
  26498. @return a new metric object]]>
  26499. </doc>
  26500. </method>
  26501. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26502. abstract="false" native="false" synchronized="false"
  26503. static="false" final="false" visibility="public"
  26504. deprecated="not deprecated">
  26505. <param name="name" type="java.lang.String"/>
  26506. <param name="description" type="java.lang.String"/>
  26507. <param name="initValue" type="long"/>
  26508. <doc>
  26509. <![CDATA[Create a mutable long integer gauge
  26510. @param name of the metric
  26511. @param description of the metric
  26512. @param initValue of the metric
  26513. @return a new metric object]]>
  26514. </doc>
  26515. </method>
  26516. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26517. abstract="false" native="false" synchronized="false"
  26518. static="false" final="false" visibility="public"
  26519. deprecated="not deprecated">
  26520. <param name="name" type="java.lang.String"/>
  26521. <doc>
  26522. <![CDATA[Create a mutable long integer gauge with name only.
  26523. Usually gets overridden.
  26524. @param name of the metric
  26525. @return a new metric object]]>
  26526. </doc>
  26527. </method>
  26528. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26529. abstract="false" native="false" synchronized="false"
  26530. static="false" final="false" visibility="public"
  26531. deprecated="not deprecated">
  26532. <param name="name" type="java.lang.String"/>
  26533. <param name="description" type="java.lang.String"/>
  26534. <param name="sampleName" type="java.lang.String"/>
  26535. <param name="valueName" type="java.lang.String"/>
  26536. <param name="extended" type="boolean"/>
  26537. <doc>
  26538. <![CDATA[Create a mutable stat metric
  26539. @param name of the metric
  26540. @param description of the metric
  26541. @param sampleName of the metric (e.g., ops)
  26542. @param valueName of the metric (e.g., time or latency)
  26543. @param extended if true, produces extended stat (stdev, min/max etc.)
  26544. @return a new metric object]]>
  26545. </doc>
  26546. </method>
  26547. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26548. abstract="false" native="false" synchronized="false"
  26549. static="false" final="false" visibility="public"
  26550. deprecated="not deprecated">
  26551. <param name="name" type="java.lang.String"/>
  26552. <doc>
  26553. <![CDATA[Create a mutable stat metric with name only.
  26554. Usually gets overridden.
  26555. @param name of the metric
  26556. @return a new metric object]]>
  26557. </doc>
  26558. </method>
  26559. <doc>
  26560. <![CDATA[Factory class for mutable metrics]]>
  26561. </doc>
  26562. </class>
  26563. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  26564. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  26565. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26566. abstract="true"
  26567. static="false" final="false" visibility="public"
  26568. deprecated="not deprecated">
  26569. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  26570. static="false" final="false" visibility="public"
  26571. deprecated="not deprecated">
  26572. <doc>
  26573. <![CDATA[Construct the metric with name and description
  26574. @param name of the metric
  26575. @param description of the metric]]>
  26576. </doc>
  26577. </constructor>
  26578. <method name="incr"
  26579. abstract="true" native="false" synchronized="false"
  26580. static="false" final="false" visibility="public"
  26581. deprecated="not deprecated">
  26582. <doc>
  26583. <![CDATA[Increment the value of the metric by 1]]>
  26584. </doc>
  26585. </method>
  26586. <method name="decr"
  26587. abstract="true" native="false" synchronized="false"
  26588. static="false" final="false" visibility="public"
  26589. deprecated="not deprecated">
  26590. <doc>
  26591. <![CDATA[Decrement the value of the metric by 1]]>
  26592. </doc>
  26593. </method>
  26594. <doc>
  26595. <![CDATA[The mutable gauge metric interface
  26596. @param <T> the type of the metric]]>
  26597. </doc>
  26598. </class>
  26599. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  26600. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  26601. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  26602. abstract="false"
  26603. static="false" final="false" visibility="public"
  26604. deprecated="not deprecated">
  26605. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  26606. static="false" final="false" visibility="public"
  26607. deprecated="not deprecated">
  26608. <doc>
  26609. <![CDATA[Construct a mutable int gauge metric
  26610. @param name of the gauge
  26611. @param description of the gauge
  26612. @param initValue the initial value of the gauge]]>
  26613. </doc>
  26614. </constructor>
  26615. <method name="incr"
  26616. abstract="false" native="false" synchronized="true"
  26617. static="false" final="false" visibility="public"
  26618. deprecated="not deprecated">
  26619. </method>
  26620. <method name="incr"
  26621. abstract="false" native="false" synchronized="true"
  26622. static="false" final="false" visibility="public"
  26623. deprecated="not deprecated">
  26624. <param name="delta" type="int"/>
  26625. <doc>
  26626. <![CDATA[Increment by delta
  26627. @param delta of the increment]]>
  26628. </doc>
  26629. </method>
  26630. <method name="decr"
  26631. abstract="false" native="false" synchronized="true"
  26632. static="false" final="false" visibility="public"
  26633. deprecated="not deprecated">
  26634. </method>
  26635. <method name="decr"
  26636. abstract="false" native="false" synchronized="true"
  26637. static="false" final="false" visibility="public"
  26638. deprecated="not deprecated">
  26639. <param name="delta" type="int"/>
  26640. <doc>
  26641. <![CDATA[decrement by delta
  26642. @param delta of the decrement]]>
  26643. </doc>
  26644. </method>
  26645. <method name="set"
  26646. abstract="false" native="false" synchronized="false"
  26647. static="false" final="false" visibility="public"
  26648. deprecated="not deprecated">
  26649. <param name="value" type="int"/>
  26650. <doc>
  26651. <![CDATA[Set the value of the metric
  26652. @param value to set]]>
  26653. </doc>
  26654. </method>
  26655. <method name="snapshot"
  26656. abstract="false" native="false" synchronized="false"
  26657. static="false" final="false" visibility="public"
  26658. deprecated="not deprecated">
  26659. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26660. <param name="all" type="boolean"/>
  26661. </method>
  26662. <doc>
  26663. <![CDATA[A mutable int gauge]]>
  26664. </doc>
  26665. </class>
  26666. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  26667. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  26668. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  26669. abstract="false"
  26670. static="false" final="false" visibility="public"
  26671. deprecated="not deprecated">
  26672. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  26673. static="false" final="false" visibility="public"
  26674. deprecated="not deprecated">
  26675. <doc>
  26676. <![CDATA[Construct a mutable long gauge metric
  26677. @param name of the gauge
  26678. @param description of the gauge
  26679. @param initValue the initial value of the gauge]]>
  26680. </doc>
  26681. </constructor>
  26682. <method name="incr"
  26683. abstract="false" native="false" synchronized="true"
  26684. static="false" final="false" visibility="public"
  26685. deprecated="not deprecated">
  26686. </method>
  26687. <method name="incr"
  26688. abstract="false" native="false" synchronized="true"
  26689. static="false" final="false" visibility="public"
  26690. deprecated="not deprecated">
  26691. <param name="delta" type="long"/>
  26692. <doc>
  26693. <![CDATA[Increment by delta
  26694. @param delta of the increment]]>
  26695. </doc>
  26696. </method>
  26697. <method name="decr"
  26698. abstract="false" native="false" synchronized="true"
  26699. static="false" final="false" visibility="public"
  26700. deprecated="not deprecated">
  26701. </method>
  26702. <method name="decr"
  26703. abstract="false" native="false" synchronized="true"
  26704. static="false" final="false" visibility="public"
  26705. deprecated="not deprecated">
  26706. <param name="delta" type="long"/>
  26707. <doc>
  26708. <![CDATA[decrement by delta
  26709. @param delta of the decrement]]>
  26710. </doc>
  26711. </method>
  26712. <method name="set"
  26713. abstract="false" native="false" synchronized="false"
  26714. static="false" final="false" visibility="public"
  26715. deprecated="not deprecated">
  26716. <param name="value" type="long"/>
  26717. <doc>
  26718. <![CDATA[Set the value of the metric
  26719. @param value to set]]>
  26720. </doc>
  26721. </method>
  26722. <method name="snapshot"
  26723. abstract="false" native="false" synchronized="false"
  26724. static="false" final="false" visibility="public"
  26725. deprecated="not deprecated">
  26726. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26727. <param name="all" type="boolean"/>
  26728. </method>
  26729. <doc>
  26730. <![CDATA[A mutable long gauge]]>
  26731. </doc>
  26732. </class>
  26733. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  26734. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  26735. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26736. abstract="false"
  26737. static="false" final="false" visibility="public"
  26738. deprecated="not deprecated">
  26739. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  26740. static="false" final="false" visibility="public"
  26741. deprecated="not deprecated">
  26742. <doc>
  26743. <![CDATA[Construct a sample statistics metric
  26744. @param name of the metric
  26745. @param description of the metric
  26746. @param sampleName of the metric (e.g. "ops")
  26747. @param valueName of the metric (e.g. "time", "latency")
  26748. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  26749. </doc>
  26750. </constructor>
  26751. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  26752. static="false" final="false" visibility="public"
  26753. deprecated="not deprecated">
  26754. <doc>
  26755. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  26756. @param name of the metric
  26757. @param description of the metric
  26758. @param sampleName of the metric (e.g. "ops")
  26759. @param valueName of the metric (e.g. "time", "latency")]]>
  26760. </doc>
  26761. </constructor>
  26762. <method name="add"
  26763. abstract="false" native="false" synchronized="true"
  26764. static="false" final="false" visibility="public"
  26765. deprecated="not deprecated">
  26766. <param name="numSamples" type="long"/>
  26767. <param name="sum" type="long"/>
  26768. <doc>
  26769. <![CDATA[Add a number of samples and their sum to the running stat
  26770. @param numSamples number of samples
  26771. @param sum of the samples]]>
  26772. </doc>
  26773. </method>
  26774. <method name="add"
  26775. abstract="false" native="false" synchronized="true"
  26776. static="false" final="false" visibility="public"
  26777. deprecated="not deprecated">
  26778. <param name="value" type="long"/>
  26779. <doc>
  26780. <![CDATA[Add a snapshot to the metric
  26781. @param value of the metric]]>
  26782. </doc>
  26783. </method>
  26784. <method name="snapshot"
  26785. abstract="false" native="false" synchronized="true"
  26786. static="false" final="false" visibility="public"
  26787. deprecated="not deprecated">
  26788. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26789. <param name="all" type="boolean"/>
  26790. </method>
  26791. <method name="resetMinMax"
  26792. abstract="false" native="false" synchronized="false"
  26793. static="false" final="false" visibility="public"
  26794. deprecated="not deprecated">
  26795. <doc>
  26796. <![CDATA[Reset the all time min max of the metric]]>
  26797. </doc>
  26798. </method>
  26799. <doc>
  26800. <![CDATA[A mutable metric with stats
  26801. Useful for keep throughput/latency stats.
  26802. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  26803. </doc>
  26804. </class>
  26805. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  26806. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26807. <class name="MetricsRegistry" extends="java.lang.Object"
  26808. abstract="false"
  26809. static="false" final="false" visibility="public"
  26810. deprecated="not deprecated">
  26811. <constructor name="MetricsRegistry" type="java.lang.String"
  26812. static="false" final="false" visibility="public"
  26813. deprecated="not deprecated">
  26814. <doc>
  26815. <![CDATA[Construct the registry with a record name
  26816. @param name of the record of the metrics]]>
  26817. </doc>
  26818. </constructor>
  26819. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  26820. static="false" final="false" visibility="public"
  26821. deprecated="not deprecated">
  26822. <doc>
  26823. <![CDATA[Construct the registry with a name and a metric factory
  26824. @param name of the record of the metrics
  26825. @param factory for creating new mutable metrics]]>
  26826. </doc>
  26827. </constructor>
  26828. <method name="name" return="java.lang.String"
  26829. abstract="false" native="false" synchronized="false"
  26830. static="false" final="false" visibility="public"
  26831. deprecated="not deprecated">
  26832. <doc>
  26833. <![CDATA[@return the name of the metrics registry]]>
  26834. </doc>
  26835. </method>
  26836. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  26837. abstract="false" native="false" synchronized="false"
  26838. static="false" final="false" visibility="public"
  26839. deprecated="not deprecated">
  26840. <param name="name" type="java.lang.String"/>
  26841. <doc>
  26842. <![CDATA[Get a metric by name
  26843. @param name of the metric
  26844. @return the metric object]]>
  26845. </doc>
  26846. </method>
  26847. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26848. abstract="false" native="false" synchronized="false"
  26849. static="false" final="false" visibility="public"
  26850. deprecated="not deprecated">
  26851. <param name="name" type="java.lang.String"/>
  26852. <param name="description" type="java.lang.String"/>
  26853. <param name="initValue" type="int"/>
  26854. <doc>
  26855. <![CDATA[Create a mutable integer counter
  26856. @param name of the metric
  26857. @param description of the metric
  26858. @param initValue of the metric
  26859. @return a new counter object]]>
  26860. </doc>
  26861. </method>
  26862. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26863. abstract="false" native="false" synchronized="false"
  26864. static="false" final="false" visibility="public"
  26865. deprecated="not deprecated">
  26866. <param name="name" type="java.lang.String"/>
  26867. <param name="description" type="java.lang.String"/>
  26868. <param name="initValue" type="long"/>
  26869. <doc>
  26870. <![CDATA[Create a mutable long integer counter
  26871. @param name of the metric
  26872. @param description of the metric
  26873. @param initValue of the metric
  26874. @return a new counter object]]>
  26875. </doc>
  26876. </method>
  26877. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26878. abstract="false" native="false" synchronized="false"
  26879. static="false" final="false" visibility="public"
  26880. deprecated="not deprecated">
  26881. <param name="name" type="java.lang.String"/>
  26882. <param name="description" type="java.lang.String"/>
  26883. <param name="initValue" type="int"/>
  26884. <doc>
  26885. <![CDATA[Create a mutable integer gauge
  26886. @param name of the metric
  26887. @param description of the metric
  26888. @param initValue of the metric
  26889. @return a new gauge object]]>
  26890. </doc>
  26891. </method>
  26892. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26893. abstract="false" native="false" synchronized="false"
  26894. static="false" final="false" visibility="public"
  26895. deprecated="not deprecated">
  26896. <param name="name" type="java.lang.String"/>
  26897. <param name="description" type="java.lang.String"/>
  26898. <param name="initValue" type="long"/>
  26899. <doc>
  26900. <![CDATA[Create a mutable long integer gauge
  26901. @param name of the metric
  26902. @param description of the metric
  26903. @param initValue of the metric
  26904. @return a new gauge object]]>
  26905. </doc>
  26906. </method>
  26907. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26908. abstract="false" native="false" synchronized="false"
  26909. static="false" final="false" visibility="public"
  26910. deprecated="not deprecated">
  26911. <param name="name" type="java.lang.String"/>
  26912. <param name="description" type="java.lang.String"/>
  26913. <param name="sampleName" type="java.lang.String"/>
  26914. <param name="valueName" type="java.lang.String"/>
  26915. <param name="extended" type="boolean"/>
  26916. <doc>
  26917. <![CDATA[Create a mutable metric with stats
  26918. @param name of the metric
  26919. @param description of the metric
  26920. @param sampleName of the metric (e.g., "ops")
  26921. @param valueName of the metric (e.g., "time" or "latency")
  26922. @param extended produce extended stat (stdev, min/max etc.) if true.
  26923. @return a new metric object]]>
  26924. </doc>
  26925. </method>
  26926. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26927. abstract="false" native="false" synchronized="false"
  26928. static="false" final="false" visibility="public"
  26929. deprecated="not deprecated">
  26930. <param name="name" type="java.lang.String"/>
  26931. <param name="description" type="java.lang.String"/>
  26932. <param name="sampleName" type="java.lang.String"/>
  26933. <param name="valueName" type="java.lang.String"/>
  26934. <doc>
  26935. <![CDATA[Create a mutable metric with stats
  26936. @param name of the metric
  26937. @param description of the metric
  26938. @param sampleName of the metric (e.g., "ops")
  26939. @param valueName of the metric (e.g., "time" or "latency")
  26940. @return a new metric object]]>
  26941. </doc>
  26942. </method>
  26943. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26944. abstract="false" native="false" synchronized="false"
  26945. static="false" final="false" visibility="public"
  26946. deprecated="not deprecated">
  26947. <param name="name" type="java.lang.String"/>
  26948. <doc>
  26949. <![CDATA[Create a mutable metric with stats using the name only
  26950. @param name of the metric
  26951. @return a new metric object]]>
  26952. </doc>
  26953. </method>
  26954. <method name="incr"
  26955. abstract="false" native="false" synchronized="false"
  26956. static="false" final="false" visibility="public"
  26957. deprecated="not deprecated">
  26958. <param name="name" type="java.lang.String"/>
  26959. <doc>
  26960. <![CDATA[Increment a metric by name.
  26961. @param name of the metric]]>
  26962. </doc>
  26963. </method>
  26964. <method name="incr"
  26965. abstract="false" native="false" synchronized="false"
  26966. static="false" final="false" visibility="public"
  26967. deprecated="not deprecated">
  26968. <param name="name" type="java.lang.String"/>
  26969. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26970. <doc>
  26971. <![CDATA[Increment a metric by name.
  26972. @param name of the metric
  26973. @param factory to lazily create the metric if not null]]>
  26974. </doc>
  26975. </method>
  26976. <method name="decr"
  26977. abstract="false" native="false" synchronized="false"
  26978. static="false" final="false" visibility="public"
  26979. deprecated="not deprecated">
  26980. <param name="name" type="java.lang.String"/>
  26981. <doc>
  26982. <![CDATA[Decrement a metric by name.
  26983. @param name of the metric]]>
  26984. </doc>
  26985. </method>
  26986. <method name="decr"
  26987. abstract="false" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. <param name="name" type="java.lang.String"/>
  26991. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26992. <doc>
  26993. <![CDATA[Decrement a metric by name.
  26994. @param name of the metric
  26995. @param factory to lazily create the metric if not null]]>
  26996. </doc>
  26997. </method>
  26998. <method name="add"
  26999. abstract="false" native="false" synchronized="false"
  27000. static="false" final="false" visibility="public"
  27001. deprecated="not deprecated">
  27002. <param name="name" type="java.lang.String"/>
  27003. <param name="value" type="long"/>
  27004. <doc>
  27005. <![CDATA[Add a value to a metric by name.
  27006. @param name of the metric
  27007. @param value of the snapshot to add]]>
  27008. </doc>
  27009. </method>
  27010. <method name="add"
  27011. abstract="false" native="false" synchronized="false"
  27012. static="false" final="false" visibility="public"
  27013. deprecated="not deprecated">
  27014. <param name="name" type="java.lang.String"/>
  27015. <param name="value" type="long"/>
  27016. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  27017. <doc>
  27018. <![CDATA[Decrement a metric by name.
  27019. @param name of the metric
  27020. @param value of the snapshot to add
  27021. @param factory to lazily create the metric if not null]]>
  27022. </doc>
  27023. </method>
  27024. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27025. abstract="false" native="false" synchronized="false"
  27026. static="false" final="false" visibility="public"
  27027. deprecated="not deprecated">
  27028. <param name="name" type="java.lang.String"/>
  27029. <doc>
  27030. <![CDATA[Set the metrics context tag
  27031. @param name of the context
  27032. @return the registry itself as a convenience]]>
  27033. </doc>
  27034. </method>
  27035. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27036. abstract="false" native="false" synchronized="false"
  27037. static="false" final="false" visibility="public"
  27038. deprecated="not deprecated">
  27039. <param name="name" type="java.lang.String"/>
  27040. <param name="description" type="java.lang.String"/>
  27041. <param name="value" type="java.lang.String"/>
  27042. <doc>
  27043. <![CDATA[Add a tag to the metrics
  27044. @param name of the tag
  27045. @param description of the tag
  27046. @param value of the tag
  27047. @return the registry (for keep adding tags)]]>
  27048. </doc>
  27049. </method>
  27050. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27051. abstract="false" native="false" synchronized="false"
  27052. static="false" final="false" visibility="public"
  27053. deprecated="not deprecated">
  27054. <param name="name" type="java.lang.String"/>
  27055. <param name="description" type="java.lang.String"/>
  27056. <param name="value" type="java.lang.String"/>
  27057. <param name="override" type="boolean"/>
  27058. <doc>
  27059. <![CDATA[Add a tag to the metrics
  27060. @param name of the tag
  27061. @param description of the tag
  27062. @param value of the tag
  27063. @param override existing tag if true
  27064. @return the registry (for keep adding tags)]]>
  27065. </doc>
  27066. </method>
  27067. <method name="tags" return="java.util.Set"
  27068. abstract="false" native="false" synchronized="false"
  27069. static="false" final="false" visibility="public"
  27070. deprecated="not deprecated">
  27071. <doc>
  27072. <![CDATA[Get the tags
  27073. @return the tags set]]>
  27074. </doc>
  27075. </method>
  27076. <method name="metrics" return="java.util.Set"
  27077. abstract="false" native="false" synchronized="false"
  27078. static="false" final="false" visibility="public"
  27079. deprecated="not deprecated">
  27080. <doc>
  27081. <![CDATA[Get the metrics
  27082. @return the metrics set]]>
  27083. </doc>
  27084. </method>
  27085. <method name="snapshot"
  27086. abstract="false" native="false" synchronized="false"
  27087. static="false" final="false" visibility="public"
  27088. deprecated="not deprecated">
  27089. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27090. <param name="all" type="boolean"/>
  27091. <doc>
  27092. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  27093. @param builder to contain the metrics snapshot
  27094. @param all get all the metrics even if the values are not changed.]]>
  27095. </doc>
  27096. </method>
  27097. <field name="CONTEXT_KEY" type="java.lang.String"
  27098. transient="false" volatile="false"
  27099. static="true" final="true" visibility="public"
  27100. deprecated="not deprecated">
  27101. <doc>
  27102. <![CDATA[key for the context tag]]>
  27103. </doc>
  27104. </field>
  27105. <field name="CONTEXT_DESC" type="java.lang.String"
  27106. transient="false" volatile="false"
  27107. static="true" final="true" visibility="public"
  27108. deprecated="not deprecated">
  27109. <doc>
  27110. <![CDATA[description for the context tag]]>
  27111. </doc>
  27112. </field>
  27113. <doc>
  27114. <![CDATA[An optional metrics registry class for creating and maintaining a
  27115. collection of MetricsMutables, making writing metrics source easier.]]>
  27116. </doc>
  27117. </class>
  27118. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  27119. </package>
  27120. <package name="org.apache.hadoop.metrics2.sink">
  27121. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  27122. <class name="FileSink" extends="java.lang.Object"
  27123. abstract="false"
  27124. static="false" final="false" visibility="public"
  27125. deprecated="not deprecated">
  27126. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27127. <constructor name="FileSink"
  27128. static="false" final="false" visibility="public"
  27129. deprecated="not deprecated">
  27130. </constructor>
  27131. <method name="init"
  27132. abstract="false" native="false" synchronized="false"
  27133. static="false" final="false" visibility="public"
  27134. deprecated="not deprecated">
  27135. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27136. </method>
  27137. <method name="putMetrics"
  27138. abstract="false" native="false" synchronized="false"
  27139. static="false" final="false" visibility="public"
  27140. deprecated="not deprecated">
  27141. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27142. </method>
  27143. <method name="flush"
  27144. abstract="false" native="false" synchronized="false"
  27145. static="false" final="false" visibility="public"
  27146. deprecated="not deprecated">
  27147. </method>
  27148. </class>
  27149. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  27150. </package>
  27151. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  27152. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  27153. <class name="AbstractGangliaSink" extends="java.lang.Object"
  27154. abstract="true"
  27155. static="false" final="false" visibility="public"
  27156. deprecated="not deprecated">
  27157. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27158. <constructor name="AbstractGangliaSink"
  27159. static="false" final="false" visibility="public"
  27160. deprecated="not deprecated">
  27161. </constructor>
  27162. <method name="init"
  27163. abstract="false" native="false" synchronized="false"
  27164. static="false" final="false" visibility="public"
  27165. deprecated="not deprecated">
  27166. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27167. </method>
  27168. <method name="flush"
  27169. abstract="false" native="false" synchronized="false"
  27170. static="false" final="false" visibility="public"
  27171. deprecated="not deprecated">
  27172. </method>
  27173. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  27174. abstract="false" native="false" synchronized="false"
  27175. static="false" final="false" visibility="protected"
  27176. deprecated="not deprecated">
  27177. <param name="metricName" type="java.lang.String"/>
  27178. <doc>
  27179. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  27180. @param metricName
  27181. @return looked up GangliaConf]]>
  27182. </doc>
  27183. </method>
  27184. <method name="getHostName" return="java.lang.String"
  27185. abstract="false" native="false" synchronized="false"
  27186. static="false" final="false" visibility="protected"
  27187. deprecated="not deprecated">
  27188. <doc>
  27189. <![CDATA[@return the hostName]]>
  27190. </doc>
  27191. </method>
  27192. <method name="xdr_string"
  27193. abstract="false" native="false" synchronized="false"
  27194. static="false" final="false" visibility="protected"
  27195. deprecated="not deprecated">
  27196. <param name="s" type="java.lang.String"/>
  27197. <doc>
  27198. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  27199. int, followed by the bytes of the string, padded if necessary to a multiple
  27200. of 4.
  27201. @param s the string to be written to buffer at offset location]]>
  27202. </doc>
  27203. </method>
  27204. <method name="xdr_int"
  27205. abstract="false" native="false" synchronized="false"
  27206. static="false" final="false" visibility="protected"
  27207. deprecated="not deprecated">
  27208. <param name="i" type="int"/>
  27209. <doc>
  27210. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  27211. </doc>
  27212. </method>
  27213. <method name="emitToGangliaHosts"
  27214. abstract="false" native="false" synchronized="false"
  27215. static="false" final="false" visibility="protected"
  27216. deprecated="not deprecated">
  27217. <exception name="IOException" type="java.io.IOException"/>
  27218. <doc>
  27219. <![CDATA[Sends Ganglia Metrics to the configured hosts
  27220. @throws IOException]]>
  27221. </doc>
  27222. </method>
  27223. <method name="isSupportSparseMetrics" return="boolean"
  27224. abstract="false" native="false" synchronized="false"
  27225. static="false" final="false" visibility="protected"
  27226. deprecated="not deprecated">
  27227. <doc>
  27228. <![CDATA[@return whether sparse metrics are supported]]>
  27229. </doc>
  27230. </method>
  27231. <field name="LOG" type="org.apache.commons.logging.Log"
  27232. transient="false" volatile="false"
  27233. static="false" final="true" visibility="public"
  27234. deprecated="not deprecated">
  27235. </field>
  27236. <field name="DEFAULT_UNITS" type="java.lang.String"
  27237. transient="false" volatile="false"
  27238. static="true" final="true" visibility="public"
  27239. deprecated="not deprecated">
  27240. </field>
  27241. <field name="DEFAULT_TMAX" type="int"
  27242. transient="false" volatile="false"
  27243. static="true" final="true" visibility="public"
  27244. deprecated="not deprecated">
  27245. </field>
  27246. <field name="DEFAULT_DMAX" type="int"
  27247. transient="false" volatile="false"
  27248. static="true" final="true" visibility="public"
  27249. deprecated="not deprecated">
  27250. </field>
  27251. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27252. transient="false" volatile="false"
  27253. static="true" final="true" visibility="public"
  27254. deprecated="not deprecated">
  27255. </field>
  27256. <field name="DEFAULT_PORT" type="int"
  27257. transient="false" volatile="false"
  27258. static="true" final="true" visibility="public"
  27259. deprecated="not deprecated">
  27260. </field>
  27261. <field name="SERVERS_PROPERTY" type="java.lang.String"
  27262. transient="false" volatile="false"
  27263. static="true" final="true" visibility="public"
  27264. deprecated="not deprecated">
  27265. </field>
  27266. <field name="BUFFER_SIZE" type="int"
  27267. transient="false" volatile="false"
  27268. static="true" final="true" visibility="public"
  27269. deprecated="not deprecated">
  27270. </field>
  27271. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  27272. transient="false" volatile="false"
  27273. static="true" final="true" visibility="public"
  27274. deprecated="not deprecated">
  27275. </field>
  27276. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  27277. transient="false" volatile="false"
  27278. static="true" final="true" visibility="public"
  27279. deprecated="not deprecated">
  27280. </field>
  27281. <field name="EQUAL" type="java.lang.String"
  27282. transient="false" volatile="false"
  27283. static="true" final="true" visibility="public"
  27284. deprecated="not deprecated">
  27285. </field>
  27286. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  27287. transient="false" volatile="false"
  27288. static="false" final="true" visibility="protected"
  27289. deprecated="not deprecated">
  27290. <doc>
  27291. <![CDATA[Used for visiting Metrics]]>
  27292. </doc>
  27293. </field>
  27294. <doc>
  27295. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  27296. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  27297. As per the documentation, sink implementations doesn't have to worry about
  27298. thread safety. Hence the code wasn't written for thread safety and should
  27299. be modified in case the above assumption changes in the future.]]>
  27300. </doc>
  27301. </class>
  27302. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  27303. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27304. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  27305. abstract="false"
  27306. static="true" final="true" visibility="public"
  27307. deprecated="not deprecated">
  27308. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  27309. abstract="false" native="false" synchronized="false"
  27310. static="true" final="false" visibility="public"
  27311. deprecated="not deprecated">
  27312. </method>
  27313. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27314. abstract="false" native="false" synchronized="false"
  27315. static="true" final="false" visibility="public"
  27316. deprecated="not deprecated">
  27317. <param name="name" type="java.lang.String"/>
  27318. </method>
  27319. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27320. transient="false" volatile="false"
  27321. static="true" final="true" visibility="public"
  27322. deprecated="not deprecated">
  27323. </field>
  27324. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27325. transient="false" volatile="false"
  27326. static="true" final="true" visibility="public"
  27327. deprecated="not deprecated">
  27328. </field>
  27329. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27330. transient="false" volatile="false"
  27331. static="true" final="true" visibility="public"
  27332. deprecated="not deprecated">
  27333. </field>
  27334. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27335. transient="false" volatile="false"
  27336. static="true" final="true" visibility="public"
  27337. deprecated="not deprecated">
  27338. </field>
  27339. <doc>
  27340. <![CDATA[define enum for various type of conf]]>
  27341. </doc>
  27342. </class>
  27343. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27344. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27345. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  27346. abstract="false"
  27347. static="true" final="true" visibility="public"
  27348. deprecated="not deprecated">
  27349. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  27350. abstract="false" native="false" synchronized="false"
  27351. static="true" final="false" visibility="public"
  27352. deprecated="not deprecated">
  27353. </method>
  27354. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27355. abstract="false" native="false" synchronized="false"
  27356. static="true" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <param name="name" type="java.lang.String"/>
  27359. </method>
  27360. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27361. transient="false" volatile="false"
  27362. static="true" final="true" visibility="public"
  27363. deprecated="not deprecated">
  27364. </field>
  27365. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27366. transient="false" volatile="false"
  27367. static="true" final="true" visibility="public"
  27368. deprecated="not deprecated">
  27369. </field>
  27370. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27371. transient="false" volatile="false"
  27372. static="true" final="true" visibility="public"
  27373. deprecated="not deprecated">
  27374. </field>
  27375. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27376. transient="false" volatile="false"
  27377. static="true" final="true" visibility="public"
  27378. deprecated="not deprecated">
  27379. </field>
  27380. <doc>
  27381. <![CDATA[ganglia slope values which equal the ordinal]]>
  27382. </doc>
  27383. </class>
  27384. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27385. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27386. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  27387. abstract="false"
  27388. static="false" final="false" visibility="public"
  27389. deprecated="not deprecated">
  27390. <constructor name="GangliaSink30"
  27391. static="false" final="false" visibility="public"
  27392. deprecated="not deprecated">
  27393. </constructor>
  27394. <method name="putMetrics"
  27395. abstract="false" native="false" synchronized="false"
  27396. static="false" final="false" visibility="public"
  27397. deprecated="not deprecated">
  27398. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27399. </method>
  27400. <method name="emitMetric"
  27401. abstract="false" native="false" synchronized="false"
  27402. static="false" final="false" visibility="protected"
  27403. deprecated="not deprecated">
  27404. <param name="groupName" type="java.lang.String"/>
  27405. <param name="name" type="java.lang.String"/>
  27406. <param name="type" type="java.lang.String"/>
  27407. <param name="value" type="java.lang.String"/>
  27408. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27409. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27410. <exception name="IOException" type="java.io.IOException"/>
  27411. <doc>
  27412. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27413. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  27414. order to keep it in sync.
  27415. @param groupName The group name of the metric
  27416. @param name The metric name
  27417. @param type The type of the metric
  27418. @param value The value of the metric
  27419. @param gConf The GangliaConf for this metric
  27420. @param gSlope The slope for this metric
  27421. @throws IOException]]>
  27422. </doc>
  27423. </method>
  27424. <field name="LOG" type="org.apache.commons.logging.Log"
  27425. transient="false" volatile="false"
  27426. static="false" final="true" visibility="public"
  27427. deprecated="not deprecated">
  27428. </field>
  27429. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  27430. transient="false" volatile="false"
  27431. static="false" final="false" visibility="protected"
  27432. deprecated="not deprecated">
  27433. </field>
  27434. <doc>
  27435. <![CDATA[This code supports Ganglia 3.0]]>
  27436. </doc>
  27437. </class>
  27438. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27439. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27440. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  27441. abstract="false"
  27442. static="false" final="false" visibility="public"
  27443. deprecated="not deprecated">
  27444. <constructor name="GangliaSink31"
  27445. static="false" final="false" visibility="public"
  27446. deprecated="not deprecated">
  27447. </constructor>
  27448. <method name="emitMetric"
  27449. abstract="false" native="false" synchronized="false"
  27450. static="false" final="false" visibility="protected"
  27451. deprecated="not deprecated">
  27452. <param name="groupName" type="java.lang.String"/>
  27453. <param name="name" type="java.lang.String"/>
  27454. <param name="type" type="java.lang.String"/>
  27455. <param name="value" type="java.lang.String"/>
  27456. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27457. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27458. <exception name="IOException" type="java.io.IOException"/>
  27459. <doc>
  27460. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27461. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  27462. order to keep it in sync.
  27463. @param groupName The group name of the metric
  27464. @param name The metric name
  27465. @param type The type of the metric
  27466. @param value The value of the metric
  27467. @param gConf The GangliaConf for this metric
  27468. @param gSlope The slope for this metric
  27469. @throws IOException]]>
  27470. </doc>
  27471. </method>
  27472. <field name="LOG" type="org.apache.commons.logging.Log"
  27473. transient="false" volatile="false"
  27474. static="false" final="true" visibility="public"
  27475. deprecated="not deprecated">
  27476. </field>
  27477. <doc>
  27478. <![CDATA[This code supports Ganglia 3.1]]>
  27479. </doc>
  27480. </class>
  27481. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27482. </package>
  27483. <package name="org.apache.hadoop.metrics2.source">
  27484. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  27485. <class name="JvmMetricsSource" extends="java.lang.Object"
  27486. abstract="false"
  27487. static="false" final="false" visibility="public"
  27488. deprecated="not deprecated">
  27489. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27490. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27491. abstract="false" native="false" synchronized="false"
  27492. static="true" final="false" visibility="public"
  27493. deprecated="not deprecated">
  27494. <param name="processName" type="java.lang.String"/>
  27495. <param name="sessionId" type="java.lang.String"/>
  27496. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  27497. </method>
  27498. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27499. abstract="false" native="false" synchronized="false"
  27500. static="true" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <param name="processName" type="java.lang.String"/>
  27503. <param name="sessionId" type="java.lang.String"/>
  27504. </method>
  27505. <method name="getMetrics"
  27506. abstract="false" native="false" synchronized="false"
  27507. static="false" final="false" visibility="public"
  27508. deprecated="not deprecated">
  27509. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27510. <param name="all" type="boolean"/>
  27511. </method>
  27512. </class>
  27513. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  27514. </package>
  27515. <package name="org.apache.hadoop.metrics2.util">
  27516. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  27517. <class name="Contracts" extends="java.lang.Object"
  27518. abstract="false"
  27519. static="false" final="false" visibility="public"
  27520. deprecated="not deprecated">
  27521. <method name="checkNotNull" return="java.lang.Object"
  27522. abstract="false" native="false" synchronized="false"
  27523. static="true" final="false" visibility="public"
  27524. deprecated="not deprecated">
  27525. <param name="ref" type="java.lang.Object"/>
  27526. <param name="msg" type="java.lang.Object"/>
  27527. <doc>
  27528. <![CDATA[Check that a reference is not null.
  27529. @param <T> type of the reference
  27530. @param ref the reference to check
  27531. @param msg the error message
  27532. @throws NullPointerException if {@code ref} is null
  27533. @return the checked reference for convenience]]>
  27534. </doc>
  27535. </method>
  27536. <method name="checkState"
  27537. abstract="false" native="false" synchronized="false"
  27538. static="true" final="false" visibility="public"
  27539. deprecated="not deprecated">
  27540. <param name="expression" type="boolean"/>
  27541. <param name="msg" type="java.lang.Object"/>
  27542. <doc>
  27543. <![CDATA[Check the state expression for false conditions
  27544. @param expression the boolean expression to check
  27545. @param msg the error message if {@code expression} is false
  27546. @throws IllegalStateException if {@code expression} is false]]>
  27547. </doc>
  27548. </method>
  27549. <method name="checkArg" return="java.lang.Object"
  27550. abstract="false" native="false" synchronized="false"
  27551. static="true" final="false" visibility="public"
  27552. deprecated="not deprecated">
  27553. <param name="arg" type="java.lang.Object"/>
  27554. <param name="expression" type="boolean"/>
  27555. <param name="msg" type="java.lang.Object"/>
  27556. <doc>
  27557. <![CDATA[Check an argument for false conditions
  27558. @param <T> type of the argument
  27559. @param arg the argument to check
  27560. @param expression the boolean expression for the condition
  27561. @param msg the error message if {@code expression} is false
  27562. @return the argument for convenience]]>
  27563. </doc>
  27564. </method>
  27565. <method name="checkArg" return="int"
  27566. abstract="false" native="false" synchronized="false"
  27567. static="true" final="false" visibility="public"
  27568. deprecated="not deprecated">
  27569. <param name="arg" type="int"/>
  27570. <param name="expression" type="boolean"/>
  27571. <param name="msg" type="java.lang.Object"/>
  27572. <doc>
  27573. <![CDATA[Check an argument for false conditions
  27574. @param arg the argument to check
  27575. @param expression the boolean expression for the condition
  27576. @param msg the error message if {@code expression} is false
  27577. @return the argument for convenience]]>
  27578. </doc>
  27579. </method>
  27580. <method name="checkArg" return="long"
  27581. abstract="false" native="false" synchronized="false"
  27582. static="true" final="false" visibility="public"
  27583. deprecated="not deprecated">
  27584. <param name="arg" type="long"/>
  27585. <param name="expression" type="boolean"/>
  27586. <param name="msg" type="java.lang.Object"/>
  27587. <doc>
  27588. <![CDATA[Check an argument for false conditions
  27589. @param arg the argument to check
  27590. @param expression the boolean expression for the condition
  27591. @param msg the error message if {@code expression} is false
  27592. @return the argument for convenience]]>
  27593. </doc>
  27594. </method>
  27595. <method name="checkArg" return="float"
  27596. abstract="false" native="false" synchronized="false"
  27597. static="true" final="false" visibility="public"
  27598. deprecated="not deprecated">
  27599. <param name="arg" type="float"/>
  27600. <param name="expression" type="boolean"/>
  27601. <param name="msg" type="java.lang.Object"/>
  27602. <doc>
  27603. <![CDATA[Check an argument for false conditions
  27604. @param arg the argument to check
  27605. @param expression the boolean expression for the condition
  27606. @param msg the error message if {@code expression} is false
  27607. @return the argument for convenience]]>
  27608. </doc>
  27609. </method>
  27610. <method name="checkArg" return="double"
  27611. abstract="false" native="false" synchronized="false"
  27612. static="true" final="false" visibility="public"
  27613. deprecated="not deprecated">
  27614. <param name="arg" type="double"/>
  27615. <param name="expression" type="boolean"/>
  27616. <param name="msg" type="java.lang.Object"/>
  27617. <doc>
  27618. <![CDATA[Check an argument for false conditions
  27619. @param arg the argument to check
  27620. @param expression the boolean expression for the condition
  27621. @param msg the error message if {@code expression} is false
  27622. @return the argument for convenience]]>
  27623. </doc>
  27624. </method>
  27625. <doc>
  27626. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  27627. </doc>
  27628. </class>
  27629. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  27630. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  27631. <class name="MBeans" extends="java.lang.Object"
  27632. abstract="false"
  27633. static="false" final="false" visibility="public"
  27634. deprecated="not deprecated">
  27635. <constructor name="MBeans"
  27636. static="false" final="false" visibility="public"
  27637. deprecated="not deprecated">
  27638. </constructor>
  27639. <method name="register" return="javax.management.ObjectName"
  27640. abstract="false" native="false" synchronized="false"
  27641. static="true" final="false" visibility="public"
  27642. deprecated="not deprecated">
  27643. <param name="serviceName" type="java.lang.String"/>
  27644. <param name="nameName" type="java.lang.String"/>
  27645. <param name="theMbean" type="java.lang.Object"/>
  27646. <doc>
  27647. <![CDATA[Register the MBean using our standard MBeanName format
  27648. "hadoop:service=<serviceName>,name=<nameName>"
  27649. Where the <serviceName> and <nameName> are the supplied parameters
  27650. @param serviceName
  27651. @param nameName
  27652. @param theMbean - the MBean to register
  27653. @return the named used to register the MBean]]>
  27654. </doc>
  27655. </method>
  27656. <method name="unregister"
  27657. abstract="false" native="false" synchronized="false"
  27658. static="true" final="false" visibility="public"
  27659. deprecated="not deprecated">
  27660. <param name="mbeanName" type="javax.management.ObjectName"/>
  27661. </method>
  27662. <doc>
  27663. <![CDATA[This util class provides a method to register an MBean using
  27664. our standard naming convention as described in the doc
  27665. for {link {@link #register(String, String, Object)}]]>
  27666. </doc>
  27667. </class>
  27668. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  27669. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  27670. <class name="MetricsCache" extends="java.lang.Object"
  27671. abstract="false"
  27672. static="false" final="false" visibility="public"
  27673. deprecated="not deprecated">
  27674. <constructor name="MetricsCache"
  27675. static="false" final="false" visibility="public"
  27676. deprecated="not deprecated">
  27677. </constructor>
  27678. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27679. abstract="false" native="false" synchronized="false"
  27680. static="false" final="false" visibility="public"
  27681. deprecated="not deprecated">
  27682. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27683. <param name="includingTags" type="boolean"/>
  27684. <doc>
  27685. <![CDATA[Update the cache and return the cached record
  27686. @param mr the update record
  27687. @param includingTags cache tag values (for later lookup by name) if true
  27688. @return the updated cached record]]>
  27689. </doc>
  27690. </method>
  27691. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27692. abstract="false" native="false" synchronized="false"
  27693. static="false" final="false" visibility="public"
  27694. deprecated="not deprecated">
  27695. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27696. </method>
  27697. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27698. abstract="false" native="false" synchronized="false"
  27699. static="false" final="false" visibility="public"
  27700. deprecated="not deprecated">
  27701. <param name="name" type="java.lang.String"/>
  27702. <param name="tags" type="java.util.Collection"/>
  27703. <doc>
  27704. <![CDATA[Get the cached record
  27705. @param name of the record
  27706. @param tags of the record
  27707. @return the cached record or null]]>
  27708. </doc>
  27709. </method>
  27710. <doc>
  27711. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  27712. </doc>
  27713. </class>
  27714. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  27715. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  27716. <class name="MetricsCache.Record" extends="java.lang.Object"
  27717. abstract="false"
  27718. static="true" final="false" visibility="public"
  27719. deprecated="not deprecated">
  27720. <constructor name="MetricsCache.Record"
  27721. static="false" final="false" visibility="public"
  27722. deprecated="not deprecated">
  27723. </constructor>
  27724. <method name="getTag" return="java.lang.String"
  27725. abstract="false" native="false" synchronized="false"
  27726. static="false" final="false" visibility="public"
  27727. deprecated="not deprecated">
  27728. <param name="key" type="java.lang.String"/>
  27729. <doc>
  27730. <![CDATA[Get the tag value
  27731. @param key name of the tag
  27732. @return the tag value]]>
  27733. </doc>
  27734. </method>
  27735. <method name="getMetric" return="java.lang.Number"
  27736. abstract="false" native="false" synchronized="false"
  27737. static="false" final="false" visibility="public"
  27738. deprecated="not deprecated">
  27739. <param name="key" type="java.lang.String"/>
  27740. <doc>
  27741. <![CDATA[Get the metric value
  27742. @param key name of the metric
  27743. @return the metric value]]>
  27744. </doc>
  27745. </method>
  27746. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  27747. abstract="false" native="false" synchronized="false"
  27748. static="false" final="false" visibility="public"
  27749. deprecated="not deprecated">
  27750. <param name="key" type="java.lang.String"/>
  27751. <doc>
  27752. <![CDATA[Get the metric value
  27753. @param key name of the metric
  27754. @return the metric value]]>
  27755. </doc>
  27756. </method>
  27757. <method name="metrics" return="java.util.Set"
  27758. abstract="false" native="false" synchronized="false"
  27759. static="false" final="false" visibility="public"
  27760. deprecated="not deprecated">
  27761. <doc>
  27762. <![CDATA[@return entry set of metrics]]>
  27763. </doc>
  27764. </method>
  27765. <method name="metricsEntrySet" return="java.util.Set"
  27766. abstract="false" native="false" synchronized="false"
  27767. static="false" final="false" visibility="public"
  27768. deprecated="not deprecated">
  27769. <doc>
  27770. <![CDATA[@return entry set of metrics]]>
  27771. </doc>
  27772. </method>
  27773. <doc>
  27774. <![CDATA[Cached record]]>
  27775. </doc>
  27776. </class>
  27777. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  27778. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  27779. <class name="SampleStat" extends="java.lang.Object"
  27780. abstract="false"
  27781. static="false" final="false" visibility="public"
  27782. deprecated="not deprecated">
  27783. <constructor name="SampleStat"
  27784. static="false" final="false" visibility="public"
  27785. deprecated="not deprecated">
  27786. <doc>
  27787. <![CDATA[Construct a new running sample stat]]>
  27788. </doc>
  27789. </constructor>
  27790. <method name="reset"
  27791. abstract="false" native="false" synchronized="false"
  27792. static="false" final="false" visibility="public"
  27793. deprecated="not deprecated">
  27794. </method>
  27795. <method name="copyTo"
  27796. abstract="false" native="false" synchronized="false"
  27797. static="false" final="false" visibility="public"
  27798. deprecated="not deprecated">
  27799. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  27800. <doc>
  27801. <![CDATA[Copy the values to other (saves object creation and gc.)
  27802. @param other the destination to hold our values]]>
  27803. </doc>
  27804. </method>
  27805. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  27806. abstract="false" native="false" synchronized="false"
  27807. static="false" final="false" visibility="public"
  27808. deprecated="not deprecated">
  27809. <param name="x" type="double"/>
  27810. <doc>
  27811. <![CDATA[Add a sample the running stat.
  27812. @param x the sample number
  27813. @return self]]>
  27814. </doc>
  27815. </method>
  27816. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  27817. abstract="false" native="false" synchronized="false"
  27818. static="false" final="false" visibility="public"
  27819. deprecated="not deprecated">
  27820. <param name="nSamples" type="long"/>
  27821. <param name="x" type="double"/>
  27822. <doc>
  27823. <![CDATA[Add some sample and a partial sum to the running stat.
  27824. Note, min/max is not evaluated using this method.
  27825. @param nSamples number of samples
  27826. @param x the partial sum
  27827. @return self]]>
  27828. </doc>
  27829. </method>
  27830. <method name="numSamples" return="long"
  27831. abstract="false" native="false" synchronized="false"
  27832. static="false" final="false" visibility="public"
  27833. deprecated="not deprecated">
  27834. <doc>
  27835. <![CDATA[@return the total number of samples]]>
  27836. </doc>
  27837. </method>
  27838. <method name="mean" return="double"
  27839. abstract="false" native="false" synchronized="false"
  27840. static="false" final="false" visibility="public"
  27841. deprecated="not deprecated">
  27842. <doc>
  27843. <![CDATA[@return the arithmetic mean of the samples]]>
  27844. </doc>
  27845. </method>
  27846. <method name="variance" return="double"
  27847. abstract="false" native="false" synchronized="false"
  27848. static="false" final="false" visibility="public"
  27849. deprecated="not deprecated">
  27850. <doc>
  27851. <![CDATA[@return the variance of the samples]]>
  27852. </doc>
  27853. </method>
  27854. <method name="stddev" return="double"
  27855. abstract="false" native="false" synchronized="false"
  27856. static="false" final="false" visibility="public"
  27857. deprecated="not deprecated">
  27858. <doc>
  27859. <![CDATA[@return the standard deviation of the samples]]>
  27860. </doc>
  27861. </method>
  27862. <method name="min" return="double"
  27863. abstract="false" native="false" synchronized="false"
  27864. static="false" final="false" visibility="public"
  27865. deprecated="not deprecated">
  27866. <doc>
  27867. <![CDATA[@return the minimum value of the samples]]>
  27868. </doc>
  27869. </method>
  27870. <method name="max" return="double"
  27871. abstract="false" native="false" synchronized="false"
  27872. static="false" final="false" visibility="public"
  27873. deprecated="not deprecated">
  27874. <doc>
  27875. <![CDATA[@return the maximum value of the samples]]>
  27876. </doc>
  27877. </method>
  27878. <doc>
  27879. <![CDATA[Helper to compute running sample stats]]>
  27880. </doc>
  27881. </class>
  27882. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  27883. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  27884. <class name="SampleStat.MinMax" extends="java.lang.Object"
  27885. abstract="false"
  27886. static="true" final="false" visibility="public"
  27887. deprecated="not deprecated">
  27888. <constructor name="SampleStat.MinMax"
  27889. static="false" final="false" visibility="public"
  27890. deprecated="not deprecated">
  27891. </constructor>
  27892. <method name="add"
  27893. abstract="false" native="false" synchronized="false"
  27894. static="false" final="false" visibility="public"
  27895. deprecated="not deprecated">
  27896. <param name="value" type="double"/>
  27897. </method>
  27898. <method name="min" return="double"
  27899. abstract="false" native="false" synchronized="false"
  27900. static="false" final="false" visibility="public"
  27901. deprecated="not deprecated">
  27902. </method>
  27903. <method name="max" return="double"
  27904. abstract="false" native="false" synchronized="false"
  27905. static="false" final="false" visibility="public"
  27906. deprecated="not deprecated">
  27907. </method>
  27908. <method name="reset"
  27909. abstract="false" native="false" synchronized="false"
  27910. static="false" final="false" visibility="public"
  27911. deprecated="not deprecated">
  27912. </method>
  27913. <method name="reset"
  27914. abstract="false" native="false" synchronized="false"
  27915. static="false" final="false" visibility="public"
  27916. deprecated="not deprecated">
  27917. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  27918. </method>
  27919. <doc>
  27920. <![CDATA[Helper to keep running min/max]]>
  27921. </doc>
  27922. </class>
  27923. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  27924. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  27925. <class name="Servers" extends="java.lang.Object"
  27926. abstract="false"
  27927. static="false" final="false" visibility="public"
  27928. deprecated="not deprecated">
  27929. <method name="parse" return="java.util.List"
  27930. abstract="false" native="false" synchronized="false"
  27931. static="true" final="false" visibility="public"
  27932. deprecated="not deprecated">
  27933. <param name="specs" type="java.lang.String"/>
  27934. <param name="defaultPort" type="int"/>
  27935. <doc>
  27936. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  27937. of the form <i>hostname</i> or <i>hostname:port</i>. If
  27938. the specs string is null, defaults to localhost:defaultPort.
  27939. @param specs server specs (see description)
  27940. @param defaultPort the default port if not specified
  27941. @return a list of InetSocketAddress objects.]]>
  27942. </doc>
  27943. </method>
  27944. <doc>
  27945. <![CDATA[Helpers to handle server addresses]]>
  27946. </doc>
  27947. </class>
  27948. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  27949. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  27950. <class name="TryIterator" extends="java.lang.Object"
  27951. abstract="true"
  27952. static="false" final="false" visibility="public"
  27953. deprecated="not deprecated">
  27954. <implements name="java.util.Iterator"/>
  27955. <constructor name="TryIterator"
  27956. static="false" final="false" visibility="public"
  27957. deprecated="not deprecated">
  27958. </constructor>
  27959. <method name="tryNext" return="java.lang.Object"
  27960. abstract="true" native="false" synchronized="false"
  27961. static="false" final="false" visibility="protected"
  27962. deprecated="not deprecated">
  27963. <doc>
  27964. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  27965. infinite loop could occur. If this method throws an exception, any
  27966. further attempts to use the iterator would result in an
  27967. {@link IllegalStateException}.
  27968. @return the next element if there is one or return {@link #done()}]]>
  27969. </doc>
  27970. </method>
  27971. <method name="done" return="java.lang.Object"
  27972. abstract="false" native="false" synchronized="false"
  27973. static="false" final="true" visibility="protected"
  27974. deprecated="not deprecated">
  27975. <doc>
  27976. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  27977. when there are no more elements left in the iteration.
  27978. @return null as a convenience to implement {@link #tryNext()}]]>
  27979. </doc>
  27980. </method>
  27981. <method name="hasNext" return="boolean"
  27982. abstract="false" native="false" synchronized="false"
  27983. static="false" final="true" visibility="public"
  27984. deprecated="not deprecated">
  27985. <doc>
  27986. <![CDATA[@return true if we have a next element or false otherwise.]]>
  27987. </doc>
  27988. </method>
  27989. <method name="next" return="java.lang.Object"
  27990. abstract="false" native="false" synchronized="false"
  27991. static="false" final="true" visibility="public"
  27992. deprecated="not deprecated">
  27993. <doc>
  27994. <![CDATA[@return the next element if we have one.]]>
  27995. </doc>
  27996. </method>
  27997. <method name="current" return="java.lang.Object"
  27998. abstract="false" native="false" synchronized="false"
  27999. static="false" final="true" visibility="public"
  28000. deprecated="not deprecated">
  28001. <doc>
  28002. <![CDATA[@return the current element without advancing the iterator]]>
  28003. </doc>
  28004. </method>
  28005. <method name="remove"
  28006. abstract="false" native="false" synchronized="false"
  28007. static="false" final="true" visibility="public"
  28008. deprecated="not deprecated">
  28009. <doc>
  28010. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  28011. </doc>
  28012. </method>
  28013. <doc>
  28014. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  28015. This class also makes writing filtering iterators easier, where the only
  28016. way to discover the end of data is by trying to read it. The same applies
  28017. to writing iterator wrappers around stream read calls.
  28018. One only needs to implement the tryNext() method and call done() when done.
  28019. @param <T> the type of the iterator]]>
  28020. </doc>
  28021. </class>
  28022. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  28023. </package>
  28024. <package name="org.apache.hadoop.net">
  28025. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28026. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  28027. abstract="false"
  28028. static="false" final="false" visibility="public"
  28029. deprecated="not deprecated">
  28030. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  28031. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28032. static="false" final="false" visibility="public"
  28033. deprecated="not deprecated">
  28034. </constructor>
  28035. <method name="resolve" return="java.util.List"
  28036. abstract="false" native="false" synchronized="false"
  28037. static="false" final="false" visibility="public"
  28038. deprecated="not deprecated">
  28039. <param name="names" type="java.util.List"/>
  28040. </method>
  28041. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28042. transient="false" volatile="false"
  28043. static="false" final="false" visibility="protected"
  28044. deprecated="not deprecated">
  28045. </field>
  28046. <doc>
  28047. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  28048. raw DNSToSwitchMapping and stores the resolved network location in
  28049. a cache. The following calls to a resolved network location
  28050. will get its location from the cache.]]>
  28051. </doc>
  28052. </class>
  28053. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28054. <!-- start class org.apache.hadoop.net.DNS -->
  28055. <class name="DNS" extends="java.lang.Object"
  28056. abstract="false"
  28057. static="false" final="false" visibility="public"
  28058. deprecated="not deprecated">
  28059. <constructor name="DNS"
  28060. static="false" final="false" visibility="public"
  28061. deprecated="not deprecated">
  28062. </constructor>
  28063. <method name="reverseDns" return="java.lang.String"
  28064. abstract="false" native="false" synchronized="false"
  28065. static="true" final="false" visibility="public"
  28066. deprecated="not deprecated">
  28067. <param name="hostIp" type="java.net.InetAddress"/>
  28068. <param name="ns" type="java.lang.String"/>
  28069. <exception name="NamingException" type="javax.naming.NamingException"/>
  28070. <doc>
  28071. <![CDATA[Returns the hostname associated with the specified IP address by the
  28072. provided nameserver.
  28073. @param hostIp
  28074. The address to reverse lookup
  28075. @param ns
  28076. The host name of a reachable DNS server
  28077. @return The host name associated with the provided IP
  28078. @throws NamingException
  28079. If a NamingException is encountered]]>
  28080. </doc>
  28081. </method>
  28082. <method name="getIPs" return="java.lang.String[]"
  28083. abstract="false" native="false" synchronized="false"
  28084. static="true" final="false" visibility="public"
  28085. deprecated="not deprecated">
  28086. <param name="strInterface" type="java.lang.String"/>
  28087. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28088. <doc>
  28089. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  28090. textual form.
  28091. @param strInterface
  28092. The name of the network interface to query (e.g. eth0)
  28093. @return A string vector of all the IPs associated with the provided
  28094. interface
  28095. @throws UnknownHostException
  28096. If an UnknownHostException is encountered in querying the
  28097. default interface]]>
  28098. </doc>
  28099. </method>
  28100. <method name="getDefaultIP" return="java.lang.String"
  28101. abstract="false" native="false" synchronized="false"
  28102. static="true" final="false" visibility="public"
  28103. deprecated="not deprecated">
  28104. <param name="strInterface" type="java.lang.String"/>
  28105. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28106. <doc>
  28107. <![CDATA[Returns the first available IP address associated with the provided
  28108. network interface
  28109. @param strInterface
  28110. The name of the network interface to query (e.g. eth0)
  28111. @return The IP address in text form
  28112. @throws UnknownHostException
  28113. If one is encountered in querying the default interface]]>
  28114. </doc>
  28115. </method>
  28116. <method name="getHosts" return="java.lang.String[]"
  28117. abstract="false" native="false" synchronized="false"
  28118. static="true" final="false" visibility="public"
  28119. deprecated="not deprecated">
  28120. <param name="strInterface" type="java.lang.String"/>
  28121. <param name="nameserver" type="java.lang.String"/>
  28122. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28123. <doc>
  28124. <![CDATA[Returns all the host names associated by the provided nameserver with the
  28125. address bound to the specified network interface
  28126. @param strInterface
  28127. The name of the network interface to query (e.g. eth0)
  28128. @param nameserver
  28129. The DNS host name
  28130. @return A string vector of all host names associated with the IPs tied to
  28131. the specified interface
  28132. @throws UnknownHostException]]>
  28133. </doc>
  28134. </method>
  28135. <method name="getHosts" return="java.lang.String[]"
  28136. abstract="false" native="false" synchronized="false"
  28137. static="true" final="false" visibility="public"
  28138. deprecated="not deprecated">
  28139. <param name="strInterface" type="java.lang.String"/>
  28140. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28141. <doc>
  28142. <![CDATA[Returns all the host names associated by the default nameserver with the
  28143. address bound to the specified network interface
  28144. @param strInterface
  28145. The name of the network interface to query (e.g. eth0)
  28146. @return The list of host names associated with IPs bound to the network
  28147. interface
  28148. @throws UnknownHostException
  28149. If one is encountered while querying the deault interface]]>
  28150. </doc>
  28151. </method>
  28152. <method name="getDefaultHost" return="java.lang.String"
  28153. abstract="false" native="false" synchronized="false"
  28154. static="true" final="false" visibility="public"
  28155. deprecated="not deprecated">
  28156. <param name="strInterface" type="java.lang.String"/>
  28157. <param name="nameserver" type="java.lang.String"/>
  28158. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28159. <doc>
  28160. <![CDATA[Returns the default (first) host name associated by the provided
  28161. nameserver with the address bound to the specified network interface
  28162. @param strInterface
  28163. The name of the network interface to query (e.g. eth0)
  28164. @param nameserver
  28165. The DNS host name
  28166. @return The default host names associated with IPs bound to the network
  28167. interface
  28168. @throws UnknownHostException
  28169. If one is encountered while querying the deault interface]]>
  28170. </doc>
  28171. </method>
  28172. <method name="getDefaultHost" return="java.lang.String"
  28173. abstract="false" native="false" synchronized="false"
  28174. static="true" final="false" visibility="public"
  28175. deprecated="not deprecated">
  28176. <param name="strInterface" type="java.lang.String"/>
  28177. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28178. <doc>
  28179. <![CDATA[Returns the default (first) host name associated by the default
  28180. nameserver with the address bound to the specified network interface
  28181. @param strInterface
  28182. The name of the network interface to query (e.g. eth0)
  28183. @return The default host name associated with IPs bound to the network
  28184. interface
  28185. @throws UnknownHostException
  28186. If one is encountered while querying the deault interface]]>
  28187. </doc>
  28188. </method>
  28189. <doc>
  28190. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  28191. the querying of specific network interfaces or nameservers.]]>
  28192. </doc>
  28193. </class>
  28194. <!-- end class org.apache.hadoop.net.DNS -->
  28195. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28196. <interface name="DNSToSwitchMapping" abstract="true"
  28197. static="false" final="false" visibility="public"
  28198. deprecated="not deprecated">
  28199. <method name="resolve" return="java.util.List"
  28200. abstract="false" native="false" synchronized="false"
  28201. static="false" final="false" visibility="public"
  28202. deprecated="not deprecated">
  28203. <param name="names" type="java.util.List"/>
  28204. <doc>
  28205. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  28206. switch information (network paths). One-to-one correspondence must be
  28207. maintained between the elements in the lists.
  28208. Consider an element in the argument list - x.y.com. The switch information
  28209. that is returned must be a network path of the form /foo/rack,
  28210. where / is the root, and 'foo' is the switch where 'rack' is connected.
  28211. Note the hostname/ip-address is not part of the returned path.
  28212. The network topology of the cluster would determine the number of
  28213. components in the network path.
  28214. @param names
  28215. @return list of resolved network paths]]>
  28216. </doc>
  28217. </method>
  28218. <doc>
  28219. <![CDATA[An interface that should be implemented to allow pluggable
  28220. DNS-name/IP-address to RackID resolvers.]]>
  28221. </doc>
  28222. </interface>
  28223. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28224. <!-- start class org.apache.hadoop.net.NetUtils -->
  28225. <class name="NetUtils" extends="java.lang.Object"
  28226. abstract="false"
  28227. static="false" final="false" visibility="public"
  28228. deprecated="not deprecated">
  28229. <constructor name="NetUtils"
  28230. static="false" final="false" visibility="public"
  28231. deprecated="not deprecated">
  28232. </constructor>
  28233. <method name="getSocketFactory" return="javax.net.SocketFactory"
  28234. abstract="false" native="false" synchronized="false"
  28235. static="true" final="false" visibility="public"
  28236. deprecated="not deprecated">
  28237. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28238. <param name="clazz" type="java.lang.Class"/>
  28239. <doc>
  28240. <![CDATA[Get the socket factory for the given class according to its
  28241. configuration parameter
  28242. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  28243. such parameter exists then fall back on the default socket factory as
  28244. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  28245. this default socket factory is not configured, then fall back on the JVM
  28246. default socket factory.
  28247. @param conf the configuration
  28248. @param clazz the class (usually a {@link VersionedProtocol})
  28249. @return a socket factory]]>
  28250. </doc>
  28251. </method>
  28252. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  28253. abstract="false" native="false" synchronized="false"
  28254. static="true" final="false" visibility="public"
  28255. deprecated="not deprecated">
  28256. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28257. <doc>
  28258. <![CDATA[Get the default socket factory as specified by the configuration
  28259. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  28260. @param conf the configuration
  28261. @return the default socket factory as specified in the configuration or
  28262. the JVM default socket factory if the configuration does not
  28263. contain a default socket factory property.]]>
  28264. </doc>
  28265. </method>
  28266. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  28267. abstract="false" native="false" synchronized="false"
  28268. static="true" final="false" visibility="public"
  28269. deprecated="not deprecated">
  28270. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28271. <param name="propValue" type="java.lang.String"/>
  28272. <doc>
  28273. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  28274. given proxy URI corresponds to an absence of configuration parameter,
  28275. returns null. If the URI is malformed raises an exception.
  28276. @param propValue the property which is the class name of the
  28277. SocketFactory to instantiate; assumed non null and non empty.
  28278. @return a socket factory as defined in the property value.]]>
  28279. </doc>
  28280. </method>
  28281. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28282. abstract="false" native="false" synchronized="false"
  28283. static="true" final="false" visibility="public"
  28284. deprecated="not deprecated">
  28285. <param name="target" type="java.lang.String"/>
  28286. <doc>
  28287. <![CDATA[Util method to build socket addr from either:
  28288. <host>:<post>
  28289. <fs>://<host>:<port>/<path>]]>
  28290. </doc>
  28291. </method>
  28292. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28293. abstract="false" native="false" synchronized="false"
  28294. static="true" final="false" visibility="public"
  28295. deprecated="not deprecated">
  28296. <param name="target" type="java.lang.String"/>
  28297. <param name="defaultPort" type="int"/>
  28298. <doc>
  28299. <![CDATA[Util method to build socket addr from either:
  28300. <host>
  28301. <host>:<post>
  28302. <fs>://<host>:<port>/<path>]]>
  28303. </doc>
  28304. </method>
  28305. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  28306. abstract="false" native="false" synchronized="false"
  28307. static="true" final="false" visibility="public"
  28308. deprecated="not deprecated">
  28309. <param name="host" type="java.lang.String"/>
  28310. <param name="port" type="int"/>
  28311. <doc>
  28312. <![CDATA[Create a socket address with the given host and port. The hostname
  28313. might be replaced with another host that was set via
  28314. {@link #addStaticResolution(String, String)}. The value of
  28315. hadoop.security.token.service.use_ip will determine whether the
  28316. standard java host resolver is used, or if the fully qualified resolver
  28317. is used.
  28318. @param host the hostname or IP use to instantiate the object
  28319. @param port the port number
  28320. @return InetSocketAddress]]>
  28321. </doc>
  28322. </method>
  28323. <method name="getCanonicalUri" return="java.net.URI"
  28324. abstract="false" native="false" synchronized="false"
  28325. static="true" final="false" visibility="public"
  28326. deprecated="not deprecated">
  28327. <param name="uri" type="java.net.URI"/>
  28328. <param name="defaultPort" type="int"/>
  28329. <doc>
  28330. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  28331. @param uri to resolve
  28332. @param defaultPort if none is given
  28333. @return URI
  28334. @throws UnknownHostException]]>
  28335. </doc>
  28336. </method>
  28337. <method name="getServerAddress" return="java.lang.String"
  28338. abstract="false" native="false" synchronized="false"
  28339. static="true" final="false" visibility="public"
  28340. deprecated="not deprecated">
  28341. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28342. <param name="oldBindAddressName" type="java.lang.String"/>
  28343. <param name="oldPortName" type="java.lang.String"/>
  28344. <param name="newBindAddressName" type="java.lang.String"/>
  28345. <doc>
  28346. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  28347. to a single colon separated one.
  28348. @param conf the configuration to check
  28349. @param oldBindAddressName the old address attribute name
  28350. @param oldPortName the old port attribute name
  28351. @param newBindAddressName the new combined name
  28352. @return the complete address from the configuration]]>
  28353. </doc>
  28354. </method>
  28355. <method name="addStaticResolution"
  28356. abstract="false" native="false" synchronized="false"
  28357. static="true" final="false" visibility="public"
  28358. deprecated="not deprecated">
  28359. <param name="host" type="java.lang.String"/>
  28360. <param name="resolvedName" type="java.lang.String"/>
  28361. <doc>
  28362. <![CDATA[Adds a static resolution for host. This can be used for setting up
  28363. hostnames with names that are fake to point to a well known host. For e.g.
  28364. in some testcases we require to have daemons with different hostnames
  28365. running on the same machine. In order to create connections to these
  28366. daemons, one can set up mappings from those hostnames to "localhost".
  28367. {@link NetUtils#getStaticResolution(String)} can be used to query for
  28368. the actual hostname.
  28369. @param host
  28370. @param resolvedName]]>
  28371. </doc>
  28372. </method>
  28373. <method name="getStaticResolution" return="java.lang.String"
  28374. abstract="false" native="false" synchronized="false"
  28375. static="true" final="false" visibility="public"
  28376. deprecated="not deprecated">
  28377. <param name="host" type="java.lang.String"/>
  28378. <doc>
  28379. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  28380. have been set earlier using
  28381. {@link NetUtils#addStaticResolution(String, String)}
  28382. @param host
  28383. @return the resolution]]>
  28384. </doc>
  28385. </method>
  28386. <method name="getAllStaticResolutions" return="java.util.List"
  28387. abstract="false" native="false" synchronized="false"
  28388. static="true" final="false" visibility="public"
  28389. deprecated="not deprecated">
  28390. <doc>
  28391. <![CDATA[This is used to get all the resolutions that were added using
  28392. {@link NetUtils#addStaticResolution(String, String)}. The return
  28393. value is a List each element of which contains an array of String
  28394. of the form String[0]=hostname, String[1]=resolved-hostname
  28395. @return the list of resolutions]]>
  28396. </doc>
  28397. </method>
  28398. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  28399. abstract="false" native="false" synchronized="false"
  28400. static="true" final="false" visibility="public"
  28401. deprecated="not deprecated">
  28402. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  28403. <doc>
  28404. <![CDATA[Returns InetSocketAddress that a client can use to
  28405. connect to the server. Server.getListenerAddress() is not correct when
  28406. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  28407. the getListenerAddress() returns "0.0.0.0:port".
  28408. @param server
  28409. @return socket address that a client can use to connect to the server.]]>
  28410. </doc>
  28411. </method>
  28412. <method name="getInputStream" return="java.io.InputStream"
  28413. abstract="false" native="false" synchronized="false"
  28414. static="true" final="false" visibility="public"
  28415. deprecated="not deprecated">
  28416. <param name="socket" type="java.net.Socket"/>
  28417. <exception name="IOException" type="java.io.IOException"/>
  28418. <doc>
  28419. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  28420. From documentation for {@link #getInputStream(Socket, long)}:<br>
  28421. Returns InputStream for the socket. If the socket has an associated
  28422. SocketChannel then it returns a
  28423. {@link SocketInputStream} with the given timeout. If the socket does not
  28424. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28425. case, the timeout argument is ignored and the timeout set with
  28426. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28427. Any socket created using socket factories returned by {@link NetUtils},
  28428. must use this interface instead of {@link Socket#getInputStream()}.
  28429. @see #getInputStream(Socket, long)
  28430. @param socket
  28431. @return InputStream for reading from the socket.
  28432. @throws IOException]]>
  28433. </doc>
  28434. </method>
  28435. <method name="getInputStream" return="java.io.InputStream"
  28436. abstract="false" native="false" synchronized="false"
  28437. static="true" final="false" visibility="public"
  28438. deprecated="not deprecated">
  28439. <param name="socket" type="java.net.Socket"/>
  28440. <param name="timeout" type="long"/>
  28441. <exception name="IOException" type="java.io.IOException"/>
  28442. <doc>
  28443. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  28444. SocketChannel then it returns a
  28445. {@link SocketInputStream} with the given timeout. If the socket does not
  28446. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28447. case, the timeout argument is ignored and the timeout set with
  28448. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28449. Any socket created using socket factories returned by {@link NetUtils},
  28450. must use this interface instead of {@link Socket#getInputStream()}.
  28451. @see Socket#getChannel()
  28452. @param socket
  28453. @param timeout timeout in milliseconds. This may not always apply. zero
  28454. for waiting as long as necessary.
  28455. @return InputStream for reading from the socket.
  28456. @throws IOException]]>
  28457. </doc>
  28458. </method>
  28459. <method name="getOutputStream" return="java.io.OutputStream"
  28460. abstract="false" native="false" synchronized="false"
  28461. static="true" final="false" visibility="public"
  28462. deprecated="not deprecated">
  28463. <param name="socket" type="java.net.Socket"/>
  28464. <exception name="IOException" type="java.io.IOException"/>
  28465. <doc>
  28466. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  28467. wait until data is available.<br><br>
  28468. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  28469. Returns OutputStream for the socket. If the socket has an associated
  28470. SocketChannel then it returns a
  28471. {@link SocketOutputStream} with the given timeout. If the socket does not
  28472. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28473. case, the timeout argument is ignored and the write will wait until
  28474. data is available.<br><br>
  28475. Any socket created using socket factories returned by {@link NetUtils},
  28476. must use this interface instead of {@link Socket#getOutputStream()}.
  28477. @see #getOutputStream(Socket, long)
  28478. @param socket
  28479. @return OutputStream for writing to the socket.
  28480. @throws IOException]]>
  28481. </doc>
  28482. </method>
  28483. <method name="getOutputStream" return="java.io.OutputStream"
  28484. abstract="false" native="false" synchronized="false"
  28485. static="true" final="false" visibility="public"
  28486. deprecated="not deprecated">
  28487. <param name="socket" type="java.net.Socket"/>
  28488. <param name="timeout" type="long"/>
  28489. <exception name="IOException" type="java.io.IOException"/>
  28490. <doc>
  28491. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  28492. SocketChannel then it returns a
  28493. {@link SocketOutputStream} with the given timeout. If the socket does not
  28494. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28495. case, the timeout argument is ignored and the write will wait until
  28496. data is available.<br><br>
  28497. Any socket created using socket factories returned by {@link NetUtils},
  28498. must use this interface instead of {@link Socket#getOutputStream()}.
  28499. @see Socket#getChannel()
  28500. @param socket
  28501. @param timeout timeout in milliseconds. This may not always apply. zero
  28502. for waiting as long as necessary.
  28503. @return OutputStream for writing to the socket.
  28504. @throws IOException]]>
  28505. </doc>
  28506. </method>
  28507. <method name="connect"
  28508. abstract="false" native="false" synchronized="false"
  28509. static="true" final="false" visibility="public"
  28510. deprecated="not deprecated">
  28511. <param name="socket" type="java.net.Socket"/>
  28512. <param name="endpoint" type="java.net.SocketAddress"/>
  28513. <param name="timeout" type="int"/>
  28514. <exception name="IOException" type="java.io.IOException"/>
  28515. <doc>
  28516. <![CDATA[This is a drop-in replacement for
  28517. {@link Socket#connect(SocketAddress, int)}.
  28518. In the case of normal sockets that don't have associated channels, this
  28519. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  28520. <code>socket.getChannel()</code> returns a non-null channel,
  28521. connect is implemented using Hadoop's selectors. This is done mainly
  28522. to avoid Sun's connect implementation from creating thread-local
  28523. selectors, since Hadoop does not have control on when these are closed
  28524. and could end up taking all the available file descriptors.
  28525. @see java.net.Socket#connect(java.net.SocketAddress, int)
  28526. @param socket
  28527. @param endpoint
  28528. @param timeout - timeout in milliseconds]]>
  28529. </doc>
  28530. </method>
  28531. <method name="normalizeHostName" return="java.lang.String"
  28532. abstract="false" native="false" synchronized="false"
  28533. static="true" final="false" visibility="public"
  28534. deprecated="not deprecated">
  28535. <param name="name" type="java.lang.String"/>
  28536. <doc>
  28537. <![CDATA[Given a string representation of a host, return its ip address
  28538. in textual presentation.
  28539. @param name a string representation of a host:
  28540. either a textual representation its IP address or its host name
  28541. @return its IP address in the string format]]>
  28542. </doc>
  28543. </method>
  28544. <method name="normalizeHostNames" return="java.util.List"
  28545. abstract="false" native="false" synchronized="false"
  28546. static="true" final="false" visibility="public"
  28547. deprecated="not deprecated">
  28548. <param name="names" type="java.util.Collection"/>
  28549. <doc>
  28550. <![CDATA[Given a collection of string representation of hosts, return a list of
  28551. corresponding IP addresses in the textual representation.
  28552. @param names a collection of string representations of hosts
  28553. @return a list of corresponding IP addresses in the string format
  28554. @see #normalizeHostName(String)]]>
  28555. </doc>
  28556. </method>
  28557. <method name="verifyHostnames"
  28558. abstract="false" native="false" synchronized="false"
  28559. static="true" final="false" visibility="public"
  28560. deprecated="not deprecated">
  28561. <param name="names" type="java.lang.String[]"/>
  28562. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28563. <doc>
  28564. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  28565. appear to be valid.
  28566. @param names - List of hostnames/IPs
  28567. @throws UnknownHostException]]>
  28568. </doc>
  28569. </method>
  28570. <method name="getLocalInetAddress" return="java.net.InetAddress"
  28571. abstract="false" native="false" synchronized="false"
  28572. static="true" final="false" visibility="public"
  28573. deprecated="not deprecated">
  28574. <param name="host" type="java.lang.String"/>
  28575. <exception name="SocketException" type="java.net.SocketException"/>
  28576. <doc>
  28577. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  28578. corresponding to that address.
  28579. @param host the specified host
  28580. @return a valid local {@link InetAddress} or null
  28581. @throws SocketException if an I/O error occurs]]>
  28582. </doc>
  28583. </method>
  28584. </class>
  28585. <!-- end class org.apache.hadoop.net.NetUtils -->
  28586. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  28587. <class name="NetworkTopology" extends="java.lang.Object"
  28588. abstract="false"
  28589. static="false" final="false" visibility="public"
  28590. deprecated="not deprecated">
  28591. <constructor name="NetworkTopology"
  28592. static="false" final="false" visibility="public"
  28593. deprecated="not deprecated">
  28594. </constructor>
  28595. <method name="add"
  28596. abstract="false" native="false" synchronized="false"
  28597. static="false" final="false" visibility="public"
  28598. deprecated="not deprecated">
  28599. <param name="node" type="org.apache.hadoop.net.Node"/>
  28600. <doc>
  28601. <![CDATA[Add a leaf node
  28602. Update node counter & rack counter if neccessary
  28603. @param node
  28604. node to be added
  28605. @exception IllegalArgumentException if add a node to a leave
  28606. or node to be added is not a leaf]]>
  28607. </doc>
  28608. </method>
  28609. <method name="remove"
  28610. abstract="false" native="false" synchronized="false"
  28611. static="false" final="false" visibility="public"
  28612. deprecated="not deprecated">
  28613. <param name="node" type="org.apache.hadoop.net.Node"/>
  28614. <doc>
  28615. <![CDATA[Remove a node
  28616. Update node counter & rack counter if neccessary
  28617. @param node
  28618. node to be removed]]>
  28619. </doc>
  28620. </method>
  28621. <method name="contains" return="boolean"
  28622. abstract="false" native="false" synchronized="false"
  28623. static="false" final="false" visibility="public"
  28624. deprecated="not deprecated">
  28625. <param name="node" type="org.apache.hadoop.net.Node"/>
  28626. <doc>
  28627. <![CDATA[Check if the tree contains node <i>node</i>
  28628. @param node
  28629. a node
  28630. @return true if <i>node</i> is already in the tree; false otherwise]]>
  28631. </doc>
  28632. </method>
  28633. <method name="getNode" return="org.apache.hadoop.net.Node"
  28634. abstract="false" native="false" synchronized="false"
  28635. static="false" final="false" visibility="public"
  28636. deprecated="not deprecated">
  28637. <param name="loc" type="java.lang.String"/>
  28638. <doc>
  28639. <![CDATA[Given a string representation of a node, return its reference
  28640. @param loc
  28641. a path-like string representation of a node
  28642. @return a reference to the node; null if the node is not in the tree]]>
  28643. </doc>
  28644. </method>
  28645. <method name="getNumOfRacks" return="int"
  28646. abstract="false" native="false" synchronized="false"
  28647. static="false" final="false" visibility="public"
  28648. deprecated="not deprecated">
  28649. <doc>
  28650. <![CDATA[Return the total number of racks]]>
  28651. </doc>
  28652. </method>
  28653. <method name="getNumOfLeaves" return="int"
  28654. abstract="false" native="false" synchronized="false"
  28655. static="false" final="false" visibility="public"
  28656. deprecated="not deprecated">
  28657. <doc>
  28658. <![CDATA[Return the total number of nodes]]>
  28659. </doc>
  28660. </method>
  28661. <method name="getDistance" return="int"
  28662. abstract="false" native="false" synchronized="false"
  28663. static="false" final="false" visibility="public"
  28664. deprecated="not deprecated">
  28665. <param name="node1" type="org.apache.hadoop.net.Node"/>
  28666. <param name="node2" type="org.apache.hadoop.net.Node"/>
  28667. <doc>
  28668. <![CDATA[Return the distance between two nodes
  28669. It is assumed that the distance from one node to its parent is 1
  28670. The distance between two nodes is calculated by summing up their distances
  28671. to their closest common ancestor.
  28672. @param node1 one node
  28673. @param node2 another node
  28674. @return the distance between node1 and node2
  28675. node1 or node2 do not belong to the cluster]]>
  28676. </doc>
  28677. </method>
  28678. <method name="isOnSameRack" return="boolean"
  28679. abstract="false" native="false" synchronized="false"
  28680. static="false" final="false" visibility="public"
  28681. deprecated="not deprecated">
  28682. <param name="node1" type="org.apache.hadoop.net.Node"/>
  28683. <param name="node2" type="org.apache.hadoop.net.Node"/>
  28684. <doc>
  28685. <![CDATA[Check if two nodes are on the same rack
  28686. @param node1 one node
  28687. @param node2 another node
  28688. @return true if node1 and node2 are pm the same rack; false otherwise
  28689. @exception IllegalArgumentException when either node1 or node2 is null, or
  28690. node1 or node2 do not belong to the cluster]]>
  28691. </doc>
  28692. </method>
  28693. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  28694. abstract="false" native="false" synchronized="false"
  28695. static="false" final="false" visibility="public"
  28696. deprecated="not deprecated">
  28697. <param name="scope" type="java.lang.String"/>
  28698. <doc>
  28699. <![CDATA[randomly choose one node from <i>scope</i>
  28700. if scope starts with ~, choose one from the all nodes except for the
  28701. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  28702. @param scope range of nodes from which a node will be choosen
  28703. @return the choosen node]]>
  28704. </doc>
  28705. </method>
  28706. <method name="countNumOfAvailableNodes" return="int"
  28707. abstract="false" native="false" synchronized="false"
  28708. static="false" final="false" visibility="public"
  28709. deprecated="not deprecated">
  28710. <param name="scope" type="java.lang.String"/>
  28711. <param name="excludedNodes" type="java.util.List"/>
  28712. <doc>
  28713. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  28714. if scope starts with ~, return the number of nodes that are not
  28715. in <i>scope</i> and <i>excludedNodes</i>;
  28716. @param scope a path string that may start with ~
  28717. @param excludedNodes a list of nodes
  28718. @return number of available nodes]]>
  28719. </doc>
  28720. </method>
  28721. <method name="toString" return="java.lang.String"
  28722. abstract="false" native="false" synchronized="false"
  28723. static="false" final="false" visibility="public"
  28724. deprecated="not deprecated">
  28725. <doc>
  28726. <![CDATA[convert a network tree to a string]]>
  28727. </doc>
  28728. </method>
  28729. <method name="pseudoSortByDistance"
  28730. abstract="false" native="false" synchronized="false"
  28731. static="false" final="false" visibility="public"
  28732. deprecated="not deprecated">
  28733. <param name="reader" type="org.apache.hadoop.net.Node"/>
  28734. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  28735. <doc>
  28736. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  28737. It linearly scans the array, if a local node is found, swap it with
  28738. the first element of the array.
  28739. If a local rack node is found, swap it with the first element following
  28740. the local node.
  28741. If neither local node or local rack node is found, put a random replica
  28742. location at postion 0.
  28743. It leaves the rest nodes untouched.]]>
  28744. </doc>
  28745. </method>
  28746. <field name="DEFAULT_RACK" type="java.lang.String"
  28747. transient="false" volatile="false"
  28748. static="true" final="true" visibility="public"
  28749. deprecated="not deprecated">
  28750. </field>
  28751. <field name="DEFAULT_HOST_LEVEL" type="int"
  28752. transient="false" volatile="false"
  28753. static="true" final="true" visibility="public"
  28754. deprecated="not deprecated">
  28755. </field>
  28756. <field name="LOG" type="org.apache.commons.logging.Log"
  28757. transient="false" volatile="false"
  28758. static="true" final="true" visibility="public"
  28759. deprecated="not deprecated">
  28760. </field>
  28761. <doc>
  28762. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  28763. network topology.
  28764. For example, a cluster may be consists of many data centers filled
  28765. with racks of computers.
  28766. In a network topology, leaves represent data nodes (computers) and inner
  28767. nodes represent switches/routers that manage traffic in/out of data centers
  28768. or racks.]]>
  28769. </doc>
  28770. </class>
  28771. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  28772. <!-- start interface org.apache.hadoop.net.Node -->
  28773. <interface name="Node" abstract="true"
  28774. static="false" final="false" visibility="public"
  28775. deprecated="not deprecated">
  28776. <method name="getNetworkLocation" return="java.lang.String"
  28777. abstract="false" native="false" synchronized="false"
  28778. static="false" final="false" visibility="public"
  28779. deprecated="not deprecated">
  28780. <doc>
  28781. <![CDATA[Return the string representation of this node's network location]]>
  28782. </doc>
  28783. </method>
  28784. <method name="setNetworkLocation"
  28785. abstract="false" native="false" synchronized="false"
  28786. static="false" final="false" visibility="public"
  28787. deprecated="not deprecated">
  28788. <param name="location" type="java.lang.String"/>
  28789. <doc>
  28790. <![CDATA[Set the node's network location]]>
  28791. </doc>
  28792. </method>
  28793. <method name="getName" return="java.lang.String"
  28794. abstract="false" native="false" synchronized="false"
  28795. static="false" final="false" visibility="public"
  28796. deprecated="not deprecated">
  28797. <doc>
  28798. <![CDATA[Return this node's name]]>
  28799. </doc>
  28800. </method>
  28801. <method name="getParent" return="org.apache.hadoop.net.Node"
  28802. abstract="false" native="false" synchronized="false"
  28803. static="false" final="false" visibility="public"
  28804. deprecated="not deprecated">
  28805. <doc>
  28806. <![CDATA[Return this node's parent]]>
  28807. </doc>
  28808. </method>
  28809. <method name="setParent"
  28810. abstract="false" native="false" synchronized="false"
  28811. static="false" final="false" visibility="public"
  28812. deprecated="not deprecated">
  28813. <param name="parent" type="org.apache.hadoop.net.Node"/>
  28814. <doc>
  28815. <![CDATA[Set this node's parent]]>
  28816. </doc>
  28817. </method>
  28818. <method name="getLevel" return="int"
  28819. abstract="false" native="false" synchronized="false"
  28820. static="false" final="false" visibility="public"
  28821. deprecated="not deprecated">
  28822. <doc>
  28823. <![CDATA[Return this node's level in the tree.
  28824. E.g. the root of a tree returns 0 and its children return 1]]>
  28825. </doc>
  28826. </method>
  28827. <method name="setLevel"
  28828. abstract="false" native="false" synchronized="false"
  28829. static="false" final="false" visibility="public"
  28830. deprecated="not deprecated">
  28831. <param name="i" type="int"/>
  28832. <doc>
  28833. <![CDATA[Set this node's level in the tree.]]>
  28834. </doc>
  28835. </method>
  28836. <doc>
  28837. <![CDATA[The interface defines a node in a network topology.
  28838. A node may be a leave representing a data node or an inner
  28839. node representing a datacenter or rack.
  28840. Each data has a name and its location in the network is
  28841. decided by a string with syntax similar to a file name.
  28842. For example, a data node's name is hostname:port# and if it's located at
  28843. rack "orange" in datacenter "dog", the string representation of its
  28844. network location is /dog/orange]]>
  28845. </doc>
  28846. </interface>
  28847. <!-- end interface org.apache.hadoop.net.Node -->
  28848. <!-- start class org.apache.hadoop.net.NodeBase -->
  28849. <class name="NodeBase" extends="java.lang.Object"
  28850. abstract="false"
  28851. static="false" final="false" visibility="public"
  28852. deprecated="not deprecated">
  28853. <implements name="org.apache.hadoop.net.Node"/>
  28854. <constructor name="NodeBase"
  28855. static="false" final="false" visibility="public"
  28856. deprecated="not deprecated">
  28857. <doc>
  28858. <![CDATA[Default constructor]]>
  28859. </doc>
  28860. </constructor>
  28861. <constructor name="NodeBase" type="java.lang.String"
  28862. static="false" final="false" visibility="public"
  28863. deprecated="not deprecated">
  28864. <doc>
  28865. <![CDATA[Construct a node from its path
  28866. @param path
  28867. a concatenation of this node's location, the path seperator, and its name]]>
  28868. </doc>
  28869. </constructor>
  28870. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  28871. static="false" final="false" visibility="public"
  28872. deprecated="not deprecated">
  28873. <doc>
  28874. <![CDATA[Construct a node from its name and its location
  28875. @param name this node's name
  28876. @param location this node's location]]>
  28877. </doc>
  28878. </constructor>
  28879. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  28880. static="false" final="false" visibility="public"
  28881. deprecated="not deprecated">
  28882. <doc>
  28883. <![CDATA[Construct a node from its name and its location
  28884. @param name this node's name
  28885. @param location this node's location
  28886. @param parent this node's parent node
  28887. @param level this node's level in the tree]]>
  28888. </doc>
  28889. </constructor>
  28890. <method name="getName" return="java.lang.String"
  28891. abstract="false" native="false" synchronized="false"
  28892. static="false" final="false" visibility="public"
  28893. deprecated="not deprecated">
  28894. <doc>
  28895. <![CDATA[Return this node's name]]>
  28896. </doc>
  28897. </method>
  28898. <method name="getNetworkLocation" return="java.lang.String"
  28899. abstract="false" native="false" synchronized="false"
  28900. static="false" final="false" visibility="public"
  28901. deprecated="not deprecated">
  28902. <doc>
  28903. <![CDATA[Return this node's network location]]>
  28904. </doc>
  28905. </method>
  28906. <method name="setNetworkLocation"
  28907. abstract="false" native="false" synchronized="false"
  28908. static="false" final="false" visibility="public"
  28909. deprecated="not deprecated">
  28910. <param name="location" type="java.lang.String"/>
  28911. <doc>
  28912. <![CDATA[Set this node's network location]]>
  28913. </doc>
  28914. </method>
  28915. <method name="getPath" return="java.lang.String"
  28916. abstract="false" native="false" synchronized="false"
  28917. static="true" final="false" visibility="public"
  28918. deprecated="not deprecated">
  28919. <param name="node" type="org.apache.hadoop.net.Node"/>
  28920. <doc>
  28921. <![CDATA[Return this node's path]]>
  28922. </doc>
  28923. </method>
  28924. <method name="toString" return="java.lang.String"
  28925. abstract="false" native="false" synchronized="false"
  28926. static="false" final="false" visibility="public"
  28927. deprecated="not deprecated">
  28928. <doc>
  28929. <![CDATA[Return this node's string representation]]>
  28930. </doc>
  28931. </method>
  28932. <method name="normalize" return="java.lang.String"
  28933. abstract="false" native="false" synchronized="false"
  28934. static="true" final="false" visibility="public"
  28935. deprecated="not deprecated">
  28936. <param name="path" type="java.lang.String"/>
  28937. <doc>
  28938. <![CDATA[Normalize a path]]>
  28939. </doc>
  28940. </method>
  28941. <method name="getParent" return="org.apache.hadoop.net.Node"
  28942. abstract="false" native="false" synchronized="false"
  28943. static="false" final="false" visibility="public"
  28944. deprecated="not deprecated">
  28945. <doc>
  28946. <![CDATA[Return this node's parent]]>
  28947. </doc>
  28948. </method>
  28949. <method name="setParent"
  28950. abstract="false" native="false" synchronized="false"
  28951. static="false" final="false" visibility="public"
  28952. deprecated="not deprecated">
  28953. <param name="parent" type="org.apache.hadoop.net.Node"/>
  28954. <doc>
  28955. <![CDATA[Set this node's parent]]>
  28956. </doc>
  28957. </method>
  28958. <method name="getLevel" return="int"
  28959. abstract="false" native="false" synchronized="false"
  28960. static="false" final="false" visibility="public"
  28961. deprecated="not deprecated">
  28962. <doc>
  28963. <![CDATA[Return this node's level in the tree.
  28964. E.g. the root of a tree returns 0 and its children return 1]]>
  28965. </doc>
  28966. </method>
  28967. <method name="setLevel"
  28968. abstract="false" native="false" synchronized="false"
  28969. static="false" final="false" visibility="public"
  28970. deprecated="not deprecated">
  28971. <param name="level" type="int"/>
  28972. <doc>
  28973. <![CDATA[Set this node's level in the tree]]>
  28974. </doc>
  28975. </method>
  28976. <field name="PATH_SEPARATOR" type="char"
  28977. transient="false" volatile="false"
  28978. static="true" final="true" visibility="public"
  28979. deprecated="not deprecated">
  28980. </field>
  28981. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  28982. transient="false" volatile="false"
  28983. static="true" final="true" visibility="public"
  28984. deprecated="not deprecated">
  28985. </field>
  28986. <field name="ROOT" type="java.lang.String"
  28987. transient="false" volatile="false"
  28988. static="true" final="true" visibility="public"
  28989. deprecated="not deprecated">
  28990. </field>
  28991. <field name="name" type="java.lang.String"
  28992. transient="false" volatile="false"
  28993. static="false" final="false" visibility="protected"
  28994. deprecated="not deprecated">
  28995. </field>
  28996. <field name="location" type="java.lang.String"
  28997. transient="false" volatile="false"
  28998. static="false" final="false" visibility="protected"
  28999. deprecated="not deprecated">
  29000. </field>
  29001. <field name="level" type="int"
  29002. transient="false" volatile="false"
  29003. static="false" final="false" visibility="protected"
  29004. deprecated="not deprecated">
  29005. </field>
  29006. <field name="parent" type="org.apache.hadoop.net.Node"
  29007. transient="false" volatile="false"
  29008. static="false" final="false" visibility="protected"
  29009. deprecated="not deprecated">
  29010. </field>
  29011. <doc>
  29012. <![CDATA[A base class that implements interface Node]]>
  29013. </doc>
  29014. </class>
  29015. <!-- end class org.apache.hadoop.net.NodeBase -->
  29016. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  29017. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  29018. abstract="false"
  29019. static="false" final="true" visibility="public"
  29020. deprecated="not deprecated">
  29021. <implements name="org.apache.hadoop.conf.Configurable"/>
  29022. <constructor name="ScriptBasedMapping"
  29023. static="false" final="false" visibility="public"
  29024. deprecated="not deprecated">
  29025. </constructor>
  29026. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  29027. static="false" final="false" visibility="public"
  29028. deprecated="not deprecated">
  29029. </constructor>
  29030. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29031. abstract="false" native="false" synchronized="false"
  29032. static="false" final="false" visibility="public"
  29033. deprecated="not deprecated">
  29034. </method>
  29035. <method name="setConf"
  29036. abstract="false" native="false" synchronized="false"
  29037. static="false" final="false" visibility="public"
  29038. deprecated="not deprecated">
  29039. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29040. </method>
  29041. <doc>
  29042. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  29043. script configured via topology.script.file.name .]]>
  29044. </doc>
  29045. </class>
  29046. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  29047. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  29048. <class name="SocketInputStream" extends="java.io.InputStream"
  29049. abstract="false"
  29050. static="false" final="false" visibility="public"
  29051. deprecated="not deprecated">
  29052. <implements name="java.nio.channels.ReadableByteChannel"/>
  29053. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  29054. static="false" final="false" visibility="public"
  29055. deprecated="not deprecated">
  29056. <exception name="IOException" type="java.io.IOException"/>
  29057. <doc>
  29058. <![CDATA[Create a new input stream with the given timeout. If the timeout
  29059. is zero, it will be treated as infinite timeout. The socket's
  29060. channel will be configured to be non-blocking.
  29061. @param channel
  29062. Channel for reading, should also be a {@link SelectableChannel}.
  29063. The channel will be configured to be non-blocking.
  29064. @param timeout timeout in milliseconds. must not be negative.
  29065. @throws IOException]]>
  29066. </doc>
  29067. </constructor>
  29068. <constructor name="SocketInputStream" type="java.net.Socket, long"
  29069. static="false" final="false" visibility="public"
  29070. deprecated="not deprecated">
  29071. <exception name="IOException" type="java.io.IOException"/>
  29072. <doc>
  29073. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  29074. Create a new input stream with the given timeout. If the timeout
  29075. is zero, it will be treated as infinite timeout. The socket's
  29076. channel will be configured to be non-blocking.
  29077. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  29078. @param socket should have a channel associated with it.
  29079. @param timeout timeout timeout in milliseconds. must not be negative.
  29080. @throws IOException]]>
  29081. </doc>
  29082. </constructor>
  29083. <constructor name="SocketInputStream" type="java.net.Socket"
  29084. static="false" final="false" visibility="public"
  29085. deprecated="not deprecated">
  29086. <exception name="IOException" type="java.io.IOException"/>
  29087. <doc>
  29088. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  29089. :<br><br>
  29090. Create a new input stream with the given timeout. If the timeout
  29091. is zero, it will be treated as infinite timeout. The socket's
  29092. channel will be configured to be non-blocking.
  29093. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  29094. @param socket should have a channel associated with it.
  29095. @throws IOException]]>
  29096. </doc>
  29097. </constructor>
  29098. <method name="read" return="int"
  29099. abstract="false" native="false" synchronized="false"
  29100. static="false" final="false" visibility="public"
  29101. deprecated="not deprecated">
  29102. <exception name="IOException" type="java.io.IOException"/>
  29103. </method>
  29104. <method name="read" return="int"
  29105. abstract="false" native="false" synchronized="false"
  29106. static="false" final="false" visibility="public"
  29107. deprecated="not deprecated">
  29108. <param name="b" type="byte[]"/>
  29109. <param name="off" type="int"/>
  29110. <param name="len" type="int"/>
  29111. <exception name="IOException" type="java.io.IOException"/>
  29112. </method>
  29113. <method name="close"
  29114. abstract="false" native="false" synchronized="true"
  29115. static="false" final="false" visibility="public"
  29116. deprecated="not deprecated">
  29117. <exception name="IOException" type="java.io.IOException"/>
  29118. </method>
  29119. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  29120. abstract="false" native="false" synchronized="false"
  29121. static="false" final="false" visibility="public"
  29122. deprecated="not deprecated">
  29123. <doc>
  29124. <![CDATA[Returns underlying channel used by inputstream.
  29125. This is useful in certain cases like channel for
  29126. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  29127. </doc>
  29128. </method>
  29129. <method name="isOpen" return="boolean"
  29130. abstract="false" native="false" synchronized="false"
  29131. static="false" final="false" visibility="public"
  29132. deprecated="not deprecated">
  29133. </method>
  29134. <method name="read" return="int"
  29135. abstract="false" native="false" synchronized="false"
  29136. static="false" final="false" visibility="public"
  29137. deprecated="not deprecated">
  29138. <param name="dst" type="java.nio.ByteBuffer"/>
  29139. <exception name="IOException" type="java.io.IOException"/>
  29140. </method>
  29141. <method name="waitForReadable"
  29142. abstract="false" native="false" synchronized="false"
  29143. static="false" final="false" visibility="public"
  29144. deprecated="not deprecated">
  29145. <exception name="IOException" type="java.io.IOException"/>
  29146. <doc>
  29147. <![CDATA[waits for the underlying channel to be ready for reading.
  29148. The timeout specified for this stream applies to this wait.
  29149. @throws SocketTimeoutException
  29150. if select on the channel times out.
  29151. @throws IOException
  29152. if any other I/O error occurs.]]>
  29153. </doc>
  29154. </method>
  29155. <doc>
  29156. <![CDATA[This implements an input stream that can have a timeout while reading.
  29157. This sets non-blocking flag on the socket channel.
  29158. So after create this object, read() on
  29159. {@link Socket#getInputStream()} and write() on
  29160. {@link Socket#getOutputStream()} for the associated socket will throw
  29161. IllegalBlockingModeException.
  29162. Please use {@link SocketOutputStream} for writing.]]>
  29163. </doc>
  29164. </class>
  29165. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  29166. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  29167. <class name="SocketOutputStream" extends="java.io.OutputStream"
  29168. abstract="false"
  29169. static="false" final="false" visibility="public"
  29170. deprecated="not deprecated">
  29171. <implements name="java.nio.channels.WritableByteChannel"/>
  29172. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  29173. static="false" final="false" visibility="public"
  29174. deprecated="not deprecated">
  29175. <exception name="IOException" type="java.io.IOException"/>
  29176. <doc>
  29177. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  29178. is zero, it will be treated as infinite timeout. The socket's
  29179. channel will be configured to be non-blocking.
  29180. @param channel
  29181. Channel for writing, should also be a {@link SelectableChannel}.
  29182. The channel will be configured to be non-blocking.
  29183. @param timeout timeout in milliseconds. must not be negative.
  29184. @throws IOException]]>
  29185. </doc>
  29186. </constructor>
  29187. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  29188. static="false" final="false" visibility="public"
  29189. deprecated="not deprecated">
  29190. <exception name="IOException" type="java.io.IOException"/>
  29191. <doc>
  29192. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  29193. Create a new ouput stream with the given timeout. If the timeout
  29194. is zero, it will be treated as infinite timeout. The socket's
  29195. channel will be configured to be non-blocking.
  29196. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  29197. @param socket should have a channel associated with it.
  29198. @param timeout timeout timeout in milliseconds. must not be negative.
  29199. @throws IOException]]>
  29200. </doc>
  29201. </constructor>
  29202. <method name="write"
  29203. abstract="false" native="false" synchronized="false"
  29204. static="false" final="false" visibility="public"
  29205. deprecated="not deprecated">
  29206. <param name="b" type="int"/>
  29207. <exception name="IOException" type="java.io.IOException"/>
  29208. </method>
  29209. <method name="write"
  29210. abstract="false" native="false" synchronized="false"
  29211. static="false" final="false" visibility="public"
  29212. deprecated="not deprecated">
  29213. <param name="b" type="byte[]"/>
  29214. <param name="off" type="int"/>
  29215. <param name="len" type="int"/>
  29216. <exception name="IOException" type="java.io.IOException"/>
  29217. </method>
  29218. <method name="close"
  29219. abstract="false" native="false" synchronized="true"
  29220. static="false" final="false" visibility="public"
  29221. deprecated="not deprecated">
  29222. <exception name="IOException" type="java.io.IOException"/>
  29223. </method>
  29224. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  29225. abstract="false" native="false" synchronized="false"
  29226. static="false" final="false" visibility="public"
  29227. deprecated="not deprecated">
  29228. <doc>
  29229. <![CDATA[Returns underlying channel used by this stream.
  29230. This is useful in certain cases like channel for
  29231. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  29232. </doc>
  29233. </method>
  29234. <method name="isOpen" return="boolean"
  29235. abstract="false" native="false" synchronized="false"
  29236. static="false" final="false" visibility="public"
  29237. deprecated="not deprecated">
  29238. </method>
  29239. <method name="write" return="int"
  29240. abstract="false" native="false" synchronized="false"
  29241. static="false" final="false" visibility="public"
  29242. deprecated="not deprecated">
  29243. <param name="src" type="java.nio.ByteBuffer"/>
  29244. <exception name="IOException" type="java.io.IOException"/>
  29245. </method>
  29246. <method name="waitForWritable"
  29247. abstract="false" native="false" synchronized="false"
  29248. static="false" final="false" visibility="public"
  29249. deprecated="not deprecated">
  29250. <exception name="IOException" type="java.io.IOException"/>
  29251. <doc>
  29252. <![CDATA[waits for the underlying channel to be ready for writing.
  29253. The timeout specified for this stream applies to this wait.
  29254. @throws SocketTimeoutException
  29255. if select on the channel times out.
  29256. @throws IOException
  29257. if any other I/O error occurs.]]>
  29258. </doc>
  29259. </method>
  29260. <method name="transferToFully"
  29261. abstract="false" native="false" synchronized="false"
  29262. static="false" final="false" visibility="public"
  29263. deprecated="not deprecated">
  29264. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  29265. <param name="position" type="long"/>
  29266. <param name="count" type="int"/>
  29267. <exception name="IOException" type="java.io.IOException"/>
  29268. <doc>
  29269. <![CDATA[Transfers data from FileChannel using
  29270. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  29271. Similar to readFully(), this waits till requested amount of
  29272. data is transfered.
  29273. @param fileCh FileChannel to transfer data from.
  29274. @param position position within the channel where the transfer begins
  29275. @param count number of bytes to transfer.
  29276. @throws EOFException
  29277. If end of input file is reached before requested number of
  29278. bytes are transfered.
  29279. @throws SocketTimeoutException
  29280. If this channel blocks transfer longer than timeout for
  29281. this stream.
  29282. @throws IOException Includes any exception thrown by
  29283. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  29284. </doc>
  29285. </method>
  29286. <doc>
  29287. <![CDATA[This implements an output stream that can have a timeout while writing.
  29288. This sets non-blocking flag on the socket channel.
  29289. So after creating this object , read() on
  29290. {@link Socket#getInputStream()} and write() on
  29291. {@link Socket#getOutputStream()} on the associated socket will throw
  29292. llegalBlockingModeException.
  29293. Please use {@link SocketInputStream} for reading.]]>
  29294. </doc>
  29295. </class>
  29296. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  29297. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  29298. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  29299. abstract="false"
  29300. static="false" final="false" visibility="public"
  29301. deprecated="not deprecated">
  29302. <implements name="org.apache.hadoop.conf.Configurable"/>
  29303. <constructor name="SocksSocketFactory"
  29304. static="false" final="false" visibility="public"
  29305. deprecated="not deprecated">
  29306. <doc>
  29307. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29308. </doc>
  29309. </constructor>
  29310. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  29311. static="false" final="false" visibility="public"
  29312. deprecated="not deprecated">
  29313. <doc>
  29314. <![CDATA[Constructor with a supplied Proxy
  29315. @param proxy the proxy to use to create sockets]]>
  29316. </doc>
  29317. </constructor>
  29318. <method name="createSocket" return="java.net.Socket"
  29319. abstract="false" native="false" synchronized="false"
  29320. static="false" final="false" visibility="public"
  29321. deprecated="not deprecated">
  29322. <exception name="IOException" type="java.io.IOException"/>
  29323. </method>
  29324. <method name="createSocket" return="java.net.Socket"
  29325. abstract="false" native="false" synchronized="false"
  29326. static="false" final="false" visibility="public"
  29327. deprecated="not deprecated">
  29328. <param name="addr" type="java.net.InetAddress"/>
  29329. <param name="port" type="int"/>
  29330. <exception name="IOException" type="java.io.IOException"/>
  29331. </method>
  29332. <method name="createSocket" return="java.net.Socket"
  29333. abstract="false" native="false" synchronized="false"
  29334. static="false" final="false" visibility="public"
  29335. deprecated="not deprecated">
  29336. <param name="addr" type="java.net.InetAddress"/>
  29337. <param name="port" type="int"/>
  29338. <param name="localHostAddr" type="java.net.InetAddress"/>
  29339. <param name="localPort" type="int"/>
  29340. <exception name="IOException" type="java.io.IOException"/>
  29341. </method>
  29342. <method name="createSocket" return="java.net.Socket"
  29343. abstract="false" native="false" synchronized="false"
  29344. static="false" final="false" visibility="public"
  29345. deprecated="not deprecated">
  29346. <param name="host" type="java.lang.String"/>
  29347. <param name="port" type="int"/>
  29348. <exception name="IOException" type="java.io.IOException"/>
  29349. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29350. </method>
  29351. <method name="createSocket" return="java.net.Socket"
  29352. abstract="false" native="false" synchronized="false"
  29353. static="false" final="false" visibility="public"
  29354. deprecated="not deprecated">
  29355. <param name="host" type="java.lang.String"/>
  29356. <param name="port" type="int"/>
  29357. <param name="localHostAddr" type="java.net.InetAddress"/>
  29358. <param name="localPort" type="int"/>
  29359. <exception name="IOException" type="java.io.IOException"/>
  29360. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29361. </method>
  29362. <method name="hashCode" return="int"
  29363. abstract="false" native="false" synchronized="false"
  29364. static="false" final="false" visibility="public"
  29365. deprecated="not deprecated">
  29366. </method>
  29367. <method name="equals" return="boolean"
  29368. abstract="false" native="false" synchronized="false"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <param name="obj" type="java.lang.Object"/>
  29372. </method>
  29373. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29374. abstract="false" native="false" synchronized="false"
  29375. static="false" final="false" visibility="public"
  29376. deprecated="not deprecated">
  29377. </method>
  29378. <method name="setConf"
  29379. abstract="false" native="false" synchronized="false"
  29380. static="false" final="false" visibility="public"
  29381. deprecated="not deprecated">
  29382. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29383. </method>
  29384. <doc>
  29385. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29386. </doc>
  29387. </class>
  29388. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  29389. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  29390. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  29391. abstract="false"
  29392. static="false" final="false" visibility="public"
  29393. deprecated="not deprecated">
  29394. <constructor name="StandardSocketFactory"
  29395. static="false" final="false" visibility="public"
  29396. deprecated="not deprecated">
  29397. <doc>
  29398. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29399. </doc>
  29400. </constructor>
  29401. <method name="createSocket" return="java.net.Socket"
  29402. abstract="false" native="false" synchronized="false"
  29403. static="false" final="false" visibility="public"
  29404. deprecated="not deprecated">
  29405. <exception name="IOException" type="java.io.IOException"/>
  29406. </method>
  29407. <method name="createSocket" return="java.net.Socket"
  29408. abstract="false" native="false" synchronized="false"
  29409. static="false" final="false" visibility="public"
  29410. deprecated="not deprecated">
  29411. <param name="addr" type="java.net.InetAddress"/>
  29412. <param name="port" type="int"/>
  29413. <exception name="IOException" type="java.io.IOException"/>
  29414. </method>
  29415. <method name="createSocket" return="java.net.Socket"
  29416. abstract="false" native="false" synchronized="false"
  29417. static="false" final="false" visibility="public"
  29418. deprecated="not deprecated">
  29419. <param name="addr" type="java.net.InetAddress"/>
  29420. <param name="port" type="int"/>
  29421. <param name="localHostAddr" type="java.net.InetAddress"/>
  29422. <param name="localPort" type="int"/>
  29423. <exception name="IOException" type="java.io.IOException"/>
  29424. </method>
  29425. <method name="createSocket" return="java.net.Socket"
  29426. abstract="false" native="false" synchronized="false"
  29427. static="false" final="false" visibility="public"
  29428. deprecated="not deprecated">
  29429. <param name="host" type="java.lang.String"/>
  29430. <param name="port" type="int"/>
  29431. <exception name="IOException" type="java.io.IOException"/>
  29432. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29433. </method>
  29434. <method name="createSocket" return="java.net.Socket"
  29435. abstract="false" native="false" synchronized="false"
  29436. static="false" final="false" visibility="public"
  29437. deprecated="not deprecated">
  29438. <param name="host" type="java.lang.String"/>
  29439. <param name="port" type="int"/>
  29440. <param name="localHostAddr" type="java.net.InetAddress"/>
  29441. <param name="localPort" type="int"/>
  29442. <exception name="IOException" type="java.io.IOException"/>
  29443. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29444. </method>
  29445. <method name="equals" return="boolean"
  29446. abstract="false" native="false" synchronized="false"
  29447. static="false" final="false" visibility="public"
  29448. deprecated="not deprecated">
  29449. <param name="obj" type="java.lang.Object"/>
  29450. </method>
  29451. <method name="hashCode" return="int"
  29452. abstract="false" native="false" synchronized="false"
  29453. static="false" final="false" visibility="public"
  29454. deprecated="not deprecated">
  29455. </method>
  29456. <doc>
  29457. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29458. </doc>
  29459. </class>
  29460. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  29461. </package>
  29462. <package name="org.apache.hadoop.record">
  29463. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  29464. <class name="BinaryRecordInput" extends="java.lang.Object"
  29465. abstract="false"
  29466. static="false" final="false" visibility="public"
  29467. deprecated="not deprecated">
  29468. <implements name="org.apache.hadoop.record.RecordInput"/>
  29469. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  29470. static="false" final="false" visibility="public"
  29471. deprecated="not deprecated">
  29472. <doc>
  29473. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29474. </doc>
  29475. </constructor>
  29476. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  29477. static="false" final="false" visibility="public"
  29478. deprecated="not deprecated">
  29479. <doc>
  29480. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29481. </doc>
  29482. </constructor>
  29483. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  29484. abstract="false" native="false" synchronized="false"
  29485. static="true" final="false" visibility="public"
  29486. deprecated="not deprecated">
  29487. <param name="inp" type="java.io.DataInput"/>
  29488. <doc>
  29489. <![CDATA[Get a thread-local record input for the supplied DataInput.
  29490. @param inp data input stream
  29491. @return binary record input corresponding to the supplied DataInput.]]>
  29492. </doc>
  29493. </method>
  29494. <method name="readByte" return="byte"
  29495. abstract="false" native="false" synchronized="false"
  29496. static="false" final="false" visibility="public"
  29497. deprecated="not deprecated">
  29498. <param name="tag" type="java.lang.String"/>
  29499. <exception name="IOException" type="java.io.IOException"/>
  29500. </method>
  29501. <method name="readBool" return="boolean"
  29502. abstract="false" native="false" synchronized="false"
  29503. static="false" final="false" visibility="public"
  29504. deprecated="not deprecated">
  29505. <param name="tag" type="java.lang.String"/>
  29506. <exception name="IOException" type="java.io.IOException"/>
  29507. </method>
  29508. <method name="readInt" return="int"
  29509. abstract="false" native="false" synchronized="false"
  29510. static="false" final="false" visibility="public"
  29511. deprecated="not deprecated">
  29512. <param name="tag" type="java.lang.String"/>
  29513. <exception name="IOException" type="java.io.IOException"/>
  29514. </method>
  29515. <method name="readLong" return="long"
  29516. abstract="false" native="false" synchronized="false"
  29517. static="false" final="false" visibility="public"
  29518. deprecated="not deprecated">
  29519. <param name="tag" type="java.lang.String"/>
  29520. <exception name="IOException" type="java.io.IOException"/>
  29521. </method>
  29522. <method name="readFloat" return="float"
  29523. abstract="false" native="false" synchronized="false"
  29524. static="false" final="false" visibility="public"
  29525. deprecated="not deprecated">
  29526. <param name="tag" type="java.lang.String"/>
  29527. <exception name="IOException" type="java.io.IOException"/>
  29528. </method>
  29529. <method name="readDouble" return="double"
  29530. abstract="false" native="false" synchronized="false"
  29531. static="false" final="false" visibility="public"
  29532. deprecated="not deprecated">
  29533. <param name="tag" type="java.lang.String"/>
  29534. <exception name="IOException" type="java.io.IOException"/>
  29535. </method>
  29536. <method name="readString" return="java.lang.String"
  29537. abstract="false" native="false" synchronized="false"
  29538. static="false" final="false" visibility="public"
  29539. deprecated="not deprecated">
  29540. <param name="tag" type="java.lang.String"/>
  29541. <exception name="IOException" type="java.io.IOException"/>
  29542. </method>
  29543. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29544. abstract="false" native="false" synchronized="false"
  29545. static="false" final="false" visibility="public"
  29546. deprecated="not deprecated">
  29547. <param name="tag" type="java.lang.String"/>
  29548. <exception name="IOException" type="java.io.IOException"/>
  29549. </method>
  29550. <method name="startRecord"
  29551. abstract="false" native="false" synchronized="false"
  29552. static="false" final="false" visibility="public"
  29553. deprecated="not deprecated">
  29554. <param name="tag" type="java.lang.String"/>
  29555. <exception name="IOException" type="java.io.IOException"/>
  29556. </method>
  29557. <method name="endRecord"
  29558. abstract="false" native="false" synchronized="false"
  29559. static="false" final="false" visibility="public"
  29560. deprecated="not deprecated">
  29561. <param name="tag" type="java.lang.String"/>
  29562. <exception name="IOException" type="java.io.IOException"/>
  29563. </method>
  29564. <method name="startVector" return="org.apache.hadoop.record.Index"
  29565. abstract="false" native="false" synchronized="false"
  29566. static="false" final="false" visibility="public"
  29567. deprecated="not deprecated">
  29568. <param name="tag" type="java.lang.String"/>
  29569. <exception name="IOException" type="java.io.IOException"/>
  29570. </method>
  29571. <method name="endVector"
  29572. abstract="false" native="false" synchronized="false"
  29573. static="false" final="false" visibility="public"
  29574. deprecated="not deprecated">
  29575. <param name="tag" type="java.lang.String"/>
  29576. <exception name="IOException" type="java.io.IOException"/>
  29577. </method>
  29578. <method name="startMap" return="org.apache.hadoop.record.Index"
  29579. abstract="false" native="false" synchronized="false"
  29580. static="false" final="false" visibility="public"
  29581. deprecated="not deprecated">
  29582. <param name="tag" type="java.lang.String"/>
  29583. <exception name="IOException" type="java.io.IOException"/>
  29584. </method>
  29585. <method name="endMap"
  29586. abstract="false" native="false" synchronized="false"
  29587. static="false" final="false" visibility="public"
  29588. deprecated="not deprecated">
  29589. <param name="tag" type="java.lang.String"/>
  29590. <exception name="IOException" type="java.io.IOException"/>
  29591. </method>
  29592. </class>
  29593. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  29594. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  29595. <class name="BinaryRecordOutput" extends="java.lang.Object"
  29596. abstract="false"
  29597. static="false" final="false" visibility="public"
  29598. deprecated="not deprecated">
  29599. <implements name="org.apache.hadoop.record.RecordOutput"/>
  29600. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  29601. static="false" final="false" visibility="public"
  29602. deprecated="not deprecated">
  29603. <doc>
  29604. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  29605. </doc>
  29606. </constructor>
  29607. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  29608. static="false" final="false" visibility="public"
  29609. deprecated="not deprecated">
  29610. <doc>
  29611. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  29612. </doc>
  29613. </constructor>
  29614. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  29615. abstract="false" native="false" synchronized="false"
  29616. static="true" final="false" visibility="public"
  29617. deprecated="not deprecated">
  29618. <param name="out" type="java.io.DataOutput"/>
  29619. <doc>
  29620. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  29621. @param out data output stream
  29622. @return binary record output corresponding to the supplied DataOutput.]]>
  29623. </doc>
  29624. </method>
  29625. <method name="writeByte"
  29626. abstract="false" native="false" synchronized="false"
  29627. static="false" final="false" visibility="public"
  29628. deprecated="not deprecated">
  29629. <param name="b" type="byte"/>
  29630. <param name="tag" type="java.lang.String"/>
  29631. <exception name="IOException" type="java.io.IOException"/>
  29632. </method>
  29633. <method name="writeBool"
  29634. abstract="false" native="false" synchronized="false"
  29635. static="false" final="false" visibility="public"
  29636. deprecated="not deprecated">
  29637. <param name="b" type="boolean"/>
  29638. <param name="tag" type="java.lang.String"/>
  29639. <exception name="IOException" type="java.io.IOException"/>
  29640. </method>
  29641. <method name="writeInt"
  29642. abstract="false" native="false" synchronized="false"
  29643. static="false" final="false" visibility="public"
  29644. deprecated="not deprecated">
  29645. <param name="i" type="int"/>
  29646. <param name="tag" type="java.lang.String"/>
  29647. <exception name="IOException" type="java.io.IOException"/>
  29648. </method>
  29649. <method name="writeLong"
  29650. abstract="false" native="false" synchronized="false"
  29651. static="false" final="false" visibility="public"
  29652. deprecated="not deprecated">
  29653. <param name="l" type="long"/>
  29654. <param name="tag" type="java.lang.String"/>
  29655. <exception name="IOException" type="java.io.IOException"/>
  29656. </method>
  29657. <method name="writeFloat"
  29658. abstract="false" native="false" synchronized="false"
  29659. static="false" final="false" visibility="public"
  29660. deprecated="not deprecated">
  29661. <param name="f" type="float"/>
  29662. <param name="tag" type="java.lang.String"/>
  29663. <exception name="IOException" type="java.io.IOException"/>
  29664. </method>
  29665. <method name="writeDouble"
  29666. abstract="false" native="false" synchronized="false"
  29667. static="false" final="false" visibility="public"
  29668. deprecated="not deprecated">
  29669. <param name="d" type="double"/>
  29670. <param name="tag" type="java.lang.String"/>
  29671. <exception name="IOException" type="java.io.IOException"/>
  29672. </method>
  29673. <method name="writeString"
  29674. abstract="false" native="false" synchronized="false"
  29675. static="false" final="false" visibility="public"
  29676. deprecated="not deprecated">
  29677. <param name="s" type="java.lang.String"/>
  29678. <param name="tag" type="java.lang.String"/>
  29679. <exception name="IOException" type="java.io.IOException"/>
  29680. </method>
  29681. <method name="writeBuffer"
  29682. abstract="false" native="false" synchronized="false"
  29683. static="false" final="false" visibility="public"
  29684. deprecated="not deprecated">
  29685. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29686. <param name="tag" type="java.lang.String"/>
  29687. <exception name="IOException" type="java.io.IOException"/>
  29688. </method>
  29689. <method name="startRecord"
  29690. abstract="false" native="false" synchronized="false"
  29691. static="false" final="false" visibility="public"
  29692. deprecated="not deprecated">
  29693. <param name="r" type="org.apache.hadoop.record.Record"/>
  29694. <param name="tag" type="java.lang.String"/>
  29695. <exception name="IOException" type="java.io.IOException"/>
  29696. </method>
  29697. <method name="endRecord"
  29698. abstract="false" native="false" synchronized="false"
  29699. static="false" final="false" visibility="public"
  29700. deprecated="not deprecated">
  29701. <param name="r" type="org.apache.hadoop.record.Record"/>
  29702. <param name="tag" type="java.lang.String"/>
  29703. <exception name="IOException" type="java.io.IOException"/>
  29704. </method>
  29705. <method name="startVector"
  29706. abstract="false" native="false" synchronized="false"
  29707. static="false" final="false" visibility="public"
  29708. deprecated="not deprecated">
  29709. <param name="v" type="java.util.ArrayList"/>
  29710. <param name="tag" type="java.lang.String"/>
  29711. <exception name="IOException" type="java.io.IOException"/>
  29712. </method>
  29713. <method name="endVector"
  29714. abstract="false" native="false" synchronized="false"
  29715. static="false" final="false" visibility="public"
  29716. deprecated="not deprecated">
  29717. <param name="v" type="java.util.ArrayList"/>
  29718. <param name="tag" type="java.lang.String"/>
  29719. <exception name="IOException" type="java.io.IOException"/>
  29720. </method>
  29721. <method name="startMap"
  29722. abstract="false" native="false" synchronized="false"
  29723. static="false" final="false" visibility="public"
  29724. deprecated="not deprecated">
  29725. <param name="v" type="java.util.TreeMap"/>
  29726. <param name="tag" type="java.lang.String"/>
  29727. <exception name="IOException" type="java.io.IOException"/>
  29728. </method>
  29729. <method name="endMap"
  29730. abstract="false" native="false" synchronized="false"
  29731. static="false" final="false" visibility="public"
  29732. deprecated="not deprecated">
  29733. <param name="v" type="java.util.TreeMap"/>
  29734. <param name="tag" type="java.lang.String"/>
  29735. <exception name="IOException" type="java.io.IOException"/>
  29736. </method>
  29737. </class>
  29738. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  29739. <!-- start class org.apache.hadoop.record.Buffer -->
  29740. <class name="Buffer" extends="java.lang.Object"
  29741. abstract="false"
  29742. static="false" final="false" visibility="public"
  29743. deprecated="not deprecated">
  29744. <implements name="java.lang.Comparable"/>
  29745. <implements name="java.lang.Cloneable"/>
  29746. <constructor name="Buffer"
  29747. static="false" final="false" visibility="public"
  29748. deprecated="not deprecated">
  29749. <doc>
  29750. <![CDATA[Create a zero-count sequence.]]>
  29751. </doc>
  29752. </constructor>
  29753. <constructor name="Buffer" type="byte[]"
  29754. static="false" final="false" visibility="public"
  29755. deprecated="not deprecated">
  29756. <doc>
  29757. <![CDATA[Create a Buffer using the byte array as the initial value.
  29758. @param bytes This array becomes the backing storage for the object.]]>
  29759. </doc>
  29760. </constructor>
  29761. <constructor name="Buffer" type="byte[], int, int"
  29762. static="false" final="false" visibility="public"
  29763. deprecated="not deprecated">
  29764. <doc>
  29765. <![CDATA[Create a Buffer using the byte range as the initial value.
  29766. @param bytes Copy of this array becomes the backing storage for the object.
  29767. @param offset offset into byte array
  29768. @param length length of data]]>
  29769. </doc>
  29770. </constructor>
  29771. <method name="set"
  29772. abstract="false" native="false" synchronized="false"
  29773. static="false" final="false" visibility="public"
  29774. deprecated="not deprecated">
  29775. <param name="bytes" type="byte[]"/>
  29776. <doc>
  29777. <![CDATA[Use the specified bytes array as underlying sequence.
  29778. @param bytes byte sequence]]>
  29779. </doc>
  29780. </method>
  29781. <method name="copy"
  29782. abstract="false" native="false" synchronized="false"
  29783. static="false" final="true" visibility="public"
  29784. deprecated="not deprecated">
  29785. <param name="bytes" type="byte[]"/>
  29786. <param name="offset" type="int"/>
  29787. <param name="length" type="int"/>
  29788. <doc>
  29789. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  29790. @param bytes byte array to be assigned
  29791. @param offset offset into byte array
  29792. @param length length of data]]>
  29793. </doc>
  29794. </method>
  29795. <method name="get" return="byte[]"
  29796. abstract="false" native="false" synchronized="false"
  29797. static="false" final="false" visibility="public"
  29798. deprecated="not deprecated">
  29799. <doc>
  29800. <![CDATA[Get the data from the Buffer.
  29801. @return The data is only valid between 0 and getCount() - 1.]]>
  29802. </doc>
  29803. </method>
  29804. <method name="getCount" return="int"
  29805. abstract="false" native="false" synchronized="false"
  29806. static="false" final="false" visibility="public"
  29807. deprecated="not deprecated">
  29808. <doc>
  29809. <![CDATA[Get the current count of the buffer.]]>
  29810. </doc>
  29811. </method>
  29812. <method name="getCapacity" return="int"
  29813. abstract="false" native="false" synchronized="false"
  29814. static="false" final="false" visibility="public"
  29815. deprecated="not deprecated">
  29816. <doc>
  29817. <![CDATA[Get the capacity, which is the maximum count that could handled without
  29818. resizing the backing storage.
  29819. @return The number of bytes]]>
  29820. </doc>
  29821. </method>
  29822. <method name="setCapacity"
  29823. abstract="false" native="false" synchronized="false"
  29824. static="false" final="false" visibility="public"
  29825. deprecated="not deprecated">
  29826. <param name="newCapacity" type="int"/>
  29827. <doc>
  29828. <![CDATA[Change the capacity of the backing storage.
  29829. The data is preserved if newCapacity >= getCount().
  29830. @param newCapacity The new capacity in bytes.]]>
  29831. </doc>
  29832. </method>
  29833. <method name="reset"
  29834. abstract="false" native="false" synchronized="false"
  29835. static="false" final="false" visibility="public"
  29836. deprecated="not deprecated">
  29837. <doc>
  29838. <![CDATA[Reset the buffer to 0 size]]>
  29839. </doc>
  29840. </method>
  29841. <method name="truncate"
  29842. abstract="false" native="false" synchronized="false"
  29843. static="false" final="false" visibility="public"
  29844. deprecated="not deprecated">
  29845. <doc>
  29846. <![CDATA[Change the capacity of the backing store to be the same as the current
  29847. count of buffer.]]>
  29848. </doc>
  29849. </method>
  29850. <method name="append"
  29851. abstract="false" native="false" synchronized="false"
  29852. static="false" final="false" visibility="public"
  29853. deprecated="not deprecated">
  29854. <param name="bytes" type="byte[]"/>
  29855. <param name="offset" type="int"/>
  29856. <param name="length" type="int"/>
  29857. <doc>
  29858. <![CDATA[Append specified bytes to the buffer.
  29859. @param bytes byte array to be appended
  29860. @param offset offset into byte array
  29861. @param length length of data]]>
  29862. </doc>
  29863. </method>
  29864. <method name="append"
  29865. abstract="false" native="false" synchronized="false"
  29866. static="false" final="false" visibility="public"
  29867. deprecated="not deprecated">
  29868. <param name="bytes" type="byte[]"/>
  29869. <doc>
  29870. <![CDATA[Append specified bytes to the buffer
  29871. @param bytes byte array to be appended]]>
  29872. </doc>
  29873. </method>
  29874. <method name="hashCode" return="int"
  29875. abstract="false" native="false" synchronized="false"
  29876. static="false" final="false" visibility="public"
  29877. deprecated="not deprecated">
  29878. </method>
  29879. <method name="compareTo" return="int"
  29880. abstract="false" native="false" synchronized="false"
  29881. static="false" final="false" visibility="public"
  29882. deprecated="not deprecated">
  29883. <param name="other" type="java.lang.Object"/>
  29884. <doc>
  29885. <![CDATA[Define the sort order of the Buffer.
  29886. @param other The other buffer
  29887. @return Positive if this is bigger than other, 0 if they are equal, and
  29888. negative if this is smaller than other.]]>
  29889. </doc>
  29890. </method>
  29891. <method name="equals" return="boolean"
  29892. abstract="false" native="false" synchronized="false"
  29893. static="false" final="false" visibility="public"
  29894. deprecated="not deprecated">
  29895. <param name="other" type="java.lang.Object"/>
  29896. </method>
  29897. <method name="toString" return="java.lang.String"
  29898. abstract="false" native="false" synchronized="false"
  29899. static="false" final="false" visibility="public"
  29900. deprecated="not deprecated">
  29901. </method>
  29902. <method name="toString" return="java.lang.String"
  29903. abstract="false" native="false" synchronized="false"
  29904. static="false" final="false" visibility="public"
  29905. deprecated="not deprecated">
  29906. <param name="charsetName" type="java.lang.String"/>
  29907. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  29908. <doc>
  29909. <![CDATA[Convert the byte buffer to a string an specific character encoding
  29910. @param charsetName Valid Java Character Set Name]]>
  29911. </doc>
  29912. </method>
  29913. <method name="clone" return="java.lang.Object"
  29914. abstract="false" native="false" synchronized="false"
  29915. static="false" final="false" visibility="public"
  29916. deprecated="not deprecated">
  29917. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  29918. </method>
  29919. <doc>
  29920. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  29921. It is resizable and distinguishes between the count of the seqeunce and
  29922. the current capacity.]]>
  29923. </doc>
  29924. </class>
  29925. <!-- end class org.apache.hadoop.record.Buffer -->
  29926. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  29927. <class name="CsvRecordInput" extends="java.lang.Object"
  29928. abstract="false"
  29929. static="false" final="false" visibility="public"
  29930. deprecated="not deprecated">
  29931. <implements name="org.apache.hadoop.record.RecordInput"/>
  29932. <constructor name="CsvRecordInput" type="java.io.InputStream"
  29933. static="false" final="false" visibility="public"
  29934. deprecated="not deprecated">
  29935. <doc>
  29936. <![CDATA[Creates a new instance of CsvRecordInput]]>
  29937. </doc>
  29938. </constructor>
  29939. <method name="readByte" return="byte"
  29940. abstract="false" native="false" synchronized="false"
  29941. static="false" final="false" visibility="public"
  29942. deprecated="not deprecated">
  29943. <param name="tag" type="java.lang.String"/>
  29944. <exception name="IOException" type="java.io.IOException"/>
  29945. </method>
  29946. <method name="readBool" return="boolean"
  29947. abstract="false" native="false" synchronized="false"
  29948. static="false" final="false" visibility="public"
  29949. deprecated="not deprecated">
  29950. <param name="tag" type="java.lang.String"/>
  29951. <exception name="IOException" type="java.io.IOException"/>
  29952. </method>
  29953. <method name="readInt" return="int"
  29954. abstract="false" native="false" synchronized="false"
  29955. static="false" final="false" visibility="public"
  29956. deprecated="not deprecated">
  29957. <param name="tag" type="java.lang.String"/>
  29958. <exception name="IOException" type="java.io.IOException"/>
  29959. </method>
  29960. <method name="readLong" return="long"
  29961. abstract="false" native="false" synchronized="false"
  29962. static="false" final="false" visibility="public"
  29963. deprecated="not deprecated">
  29964. <param name="tag" type="java.lang.String"/>
  29965. <exception name="IOException" type="java.io.IOException"/>
  29966. </method>
  29967. <method name="readFloat" return="float"
  29968. abstract="false" native="false" synchronized="false"
  29969. static="false" final="false" visibility="public"
  29970. deprecated="not deprecated">
  29971. <param name="tag" type="java.lang.String"/>
  29972. <exception name="IOException" type="java.io.IOException"/>
  29973. </method>
  29974. <method name="readDouble" return="double"
  29975. abstract="false" native="false" synchronized="false"
  29976. static="false" final="false" visibility="public"
  29977. deprecated="not deprecated">
  29978. <param name="tag" type="java.lang.String"/>
  29979. <exception name="IOException" type="java.io.IOException"/>
  29980. </method>
  29981. <method name="readString" return="java.lang.String"
  29982. abstract="false" native="false" synchronized="false"
  29983. static="false" final="false" visibility="public"
  29984. deprecated="not deprecated">
  29985. <param name="tag" type="java.lang.String"/>
  29986. <exception name="IOException" type="java.io.IOException"/>
  29987. </method>
  29988. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29989. abstract="false" native="false" synchronized="false"
  29990. static="false" final="false" visibility="public"
  29991. deprecated="not deprecated">
  29992. <param name="tag" type="java.lang.String"/>
  29993. <exception name="IOException" type="java.io.IOException"/>
  29994. </method>
  29995. <method name="startRecord"
  29996. abstract="false" native="false" synchronized="false"
  29997. static="false" final="false" visibility="public"
  29998. deprecated="not deprecated">
  29999. <param name="tag" type="java.lang.String"/>
  30000. <exception name="IOException" type="java.io.IOException"/>
  30001. </method>
  30002. <method name="endRecord"
  30003. abstract="false" native="false" synchronized="false"
  30004. static="false" final="false" visibility="public"
  30005. deprecated="not deprecated">
  30006. <param name="tag" type="java.lang.String"/>
  30007. <exception name="IOException" type="java.io.IOException"/>
  30008. </method>
  30009. <method name="startVector" return="org.apache.hadoop.record.Index"
  30010. abstract="false" native="false" synchronized="false"
  30011. static="false" final="false" visibility="public"
  30012. deprecated="not deprecated">
  30013. <param name="tag" type="java.lang.String"/>
  30014. <exception name="IOException" type="java.io.IOException"/>
  30015. </method>
  30016. <method name="endVector"
  30017. abstract="false" native="false" synchronized="false"
  30018. static="false" final="false" visibility="public"
  30019. deprecated="not deprecated">
  30020. <param name="tag" type="java.lang.String"/>
  30021. <exception name="IOException" type="java.io.IOException"/>
  30022. </method>
  30023. <method name="startMap" return="org.apache.hadoop.record.Index"
  30024. abstract="false" native="false" synchronized="false"
  30025. static="false" final="false" visibility="public"
  30026. deprecated="not deprecated">
  30027. <param name="tag" type="java.lang.String"/>
  30028. <exception name="IOException" type="java.io.IOException"/>
  30029. </method>
  30030. <method name="endMap"
  30031. abstract="false" native="false" synchronized="false"
  30032. static="false" final="false" visibility="public"
  30033. deprecated="not deprecated">
  30034. <param name="tag" type="java.lang.String"/>
  30035. <exception name="IOException" type="java.io.IOException"/>
  30036. </method>
  30037. </class>
  30038. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  30039. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  30040. <class name="CsvRecordOutput" extends="java.lang.Object"
  30041. abstract="false"
  30042. static="false" final="false" visibility="public"
  30043. deprecated="not deprecated">
  30044. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30045. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  30046. static="false" final="false" visibility="public"
  30047. deprecated="not deprecated">
  30048. <doc>
  30049. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  30050. </doc>
  30051. </constructor>
  30052. <method name="writeByte"
  30053. abstract="false" native="false" synchronized="false"
  30054. static="false" final="false" visibility="public"
  30055. deprecated="not deprecated">
  30056. <param name="b" type="byte"/>
  30057. <param name="tag" type="java.lang.String"/>
  30058. <exception name="IOException" type="java.io.IOException"/>
  30059. </method>
  30060. <method name="writeBool"
  30061. abstract="false" native="false" synchronized="false"
  30062. static="false" final="false" visibility="public"
  30063. deprecated="not deprecated">
  30064. <param name="b" type="boolean"/>
  30065. <param name="tag" type="java.lang.String"/>
  30066. <exception name="IOException" type="java.io.IOException"/>
  30067. </method>
  30068. <method name="writeInt"
  30069. abstract="false" native="false" synchronized="false"
  30070. static="false" final="false" visibility="public"
  30071. deprecated="not deprecated">
  30072. <param name="i" type="int"/>
  30073. <param name="tag" type="java.lang.String"/>
  30074. <exception name="IOException" type="java.io.IOException"/>
  30075. </method>
  30076. <method name="writeLong"
  30077. abstract="false" native="false" synchronized="false"
  30078. static="false" final="false" visibility="public"
  30079. deprecated="not deprecated">
  30080. <param name="l" type="long"/>
  30081. <param name="tag" type="java.lang.String"/>
  30082. <exception name="IOException" type="java.io.IOException"/>
  30083. </method>
  30084. <method name="writeFloat"
  30085. abstract="false" native="false" synchronized="false"
  30086. static="false" final="false" visibility="public"
  30087. deprecated="not deprecated">
  30088. <param name="f" type="float"/>
  30089. <param name="tag" type="java.lang.String"/>
  30090. <exception name="IOException" type="java.io.IOException"/>
  30091. </method>
  30092. <method name="writeDouble"
  30093. abstract="false" native="false" synchronized="false"
  30094. static="false" final="false" visibility="public"
  30095. deprecated="not deprecated">
  30096. <param name="d" type="double"/>
  30097. <param name="tag" type="java.lang.String"/>
  30098. <exception name="IOException" type="java.io.IOException"/>
  30099. </method>
  30100. <method name="writeString"
  30101. abstract="false" native="false" synchronized="false"
  30102. static="false" final="false" visibility="public"
  30103. deprecated="not deprecated">
  30104. <param name="s" type="java.lang.String"/>
  30105. <param name="tag" type="java.lang.String"/>
  30106. <exception name="IOException" type="java.io.IOException"/>
  30107. </method>
  30108. <method name="writeBuffer"
  30109. abstract="false" native="false" synchronized="false"
  30110. static="false" final="false" visibility="public"
  30111. deprecated="not deprecated">
  30112. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30113. <param name="tag" type="java.lang.String"/>
  30114. <exception name="IOException" type="java.io.IOException"/>
  30115. </method>
  30116. <method name="startRecord"
  30117. abstract="false" native="false" synchronized="false"
  30118. static="false" final="false" visibility="public"
  30119. deprecated="not deprecated">
  30120. <param name="r" type="org.apache.hadoop.record.Record"/>
  30121. <param name="tag" type="java.lang.String"/>
  30122. <exception name="IOException" type="java.io.IOException"/>
  30123. </method>
  30124. <method name="endRecord"
  30125. abstract="false" native="false" synchronized="false"
  30126. static="false" final="false" visibility="public"
  30127. deprecated="not deprecated">
  30128. <param name="r" type="org.apache.hadoop.record.Record"/>
  30129. <param name="tag" type="java.lang.String"/>
  30130. <exception name="IOException" type="java.io.IOException"/>
  30131. </method>
  30132. <method name="startVector"
  30133. abstract="false" native="false" synchronized="false"
  30134. static="false" final="false" visibility="public"
  30135. deprecated="not deprecated">
  30136. <param name="v" type="java.util.ArrayList"/>
  30137. <param name="tag" type="java.lang.String"/>
  30138. <exception name="IOException" type="java.io.IOException"/>
  30139. </method>
  30140. <method name="endVector"
  30141. abstract="false" native="false" synchronized="false"
  30142. static="false" final="false" visibility="public"
  30143. deprecated="not deprecated">
  30144. <param name="v" type="java.util.ArrayList"/>
  30145. <param name="tag" type="java.lang.String"/>
  30146. <exception name="IOException" type="java.io.IOException"/>
  30147. </method>
  30148. <method name="startMap"
  30149. abstract="false" native="false" synchronized="false"
  30150. static="false" final="false" visibility="public"
  30151. deprecated="not deprecated">
  30152. <param name="v" type="java.util.TreeMap"/>
  30153. <param name="tag" type="java.lang.String"/>
  30154. <exception name="IOException" type="java.io.IOException"/>
  30155. </method>
  30156. <method name="endMap"
  30157. abstract="false" native="false" synchronized="false"
  30158. static="false" final="false" visibility="public"
  30159. deprecated="not deprecated">
  30160. <param name="v" type="java.util.TreeMap"/>
  30161. <param name="tag" type="java.lang.String"/>
  30162. <exception name="IOException" type="java.io.IOException"/>
  30163. </method>
  30164. </class>
  30165. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  30166. <!-- start interface org.apache.hadoop.record.Index -->
  30167. <interface name="Index" abstract="true"
  30168. static="false" final="false" visibility="public"
  30169. deprecated="not deprecated">
  30170. <method name="done" return="boolean"
  30171. abstract="false" native="false" synchronized="false"
  30172. static="false" final="false" visibility="public"
  30173. deprecated="not deprecated">
  30174. </method>
  30175. <method name="incr"
  30176. abstract="false" native="false" synchronized="false"
  30177. static="false" final="false" visibility="public"
  30178. deprecated="not deprecated">
  30179. </method>
  30180. <doc>
  30181. <![CDATA[Interface that acts as an iterator for deserializing maps.
  30182. The deserializer returns an instance that the record uses to
  30183. read vectors and maps. An example of usage is as follows:
  30184. <code>
  30185. Index idx = startVector(...);
  30186. while (!idx.done()) {
  30187. .... // read element of a vector
  30188. idx.incr();
  30189. }
  30190. </code>]]>
  30191. </doc>
  30192. </interface>
  30193. <!-- end interface org.apache.hadoop.record.Index -->
  30194. <!-- start class org.apache.hadoop.record.Record -->
  30195. <class name="Record" extends="java.lang.Object"
  30196. abstract="true"
  30197. static="false" final="false" visibility="public"
  30198. deprecated="not deprecated">
  30199. <implements name="org.apache.hadoop.io.WritableComparable"/>
  30200. <implements name="java.lang.Cloneable"/>
  30201. <constructor name="Record"
  30202. static="false" final="false" visibility="public"
  30203. deprecated="not deprecated">
  30204. </constructor>
  30205. <method name="serialize"
  30206. abstract="true" native="false" synchronized="false"
  30207. static="false" final="false" visibility="public"
  30208. deprecated="not deprecated">
  30209. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30210. <param name="tag" type="java.lang.String"/>
  30211. <exception name="IOException" type="java.io.IOException"/>
  30212. <doc>
  30213. <![CDATA[Serialize a record with tag (ususally field name)
  30214. @param rout Record output destination
  30215. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  30216. </doc>
  30217. </method>
  30218. <method name="deserialize"
  30219. abstract="true" native="false" synchronized="false"
  30220. static="false" final="false" visibility="public"
  30221. deprecated="not deprecated">
  30222. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30223. <param name="tag" type="java.lang.String"/>
  30224. <exception name="IOException" type="java.io.IOException"/>
  30225. <doc>
  30226. <![CDATA[Deserialize a record with a tag (usually field name)
  30227. @param rin Record input source
  30228. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  30229. </doc>
  30230. </method>
  30231. <method name="compareTo" return="int"
  30232. abstract="true" native="false" synchronized="false"
  30233. static="false" final="false" visibility="public"
  30234. deprecated="not deprecated">
  30235. <param name="peer" type="java.lang.Object"/>
  30236. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  30237. </method>
  30238. <method name="serialize"
  30239. abstract="false" native="false" synchronized="false"
  30240. static="false" final="false" visibility="public"
  30241. deprecated="not deprecated">
  30242. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30243. <exception name="IOException" type="java.io.IOException"/>
  30244. <doc>
  30245. <![CDATA[Serialize a record without a tag
  30246. @param rout Record output destination]]>
  30247. </doc>
  30248. </method>
  30249. <method name="deserialize"
  30250. abstract="false" native="false" synchronized="false"
  30251. static="false" final="false" visibility="public"
  30252. deprecated="not deprecated">
  30253. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30254. <exception name="IOException" type="java.io.IOException"/>
  30255. <doc>
  30256. <![CDATA[Deserialize a record without a tag
  30257. @param rin Record input source]]>
  30258. </doc>
  30259. </method>
  30260. <method name="write"
  30261. abstract="false" native="false" synchronized="false"
  30262. static="false" final="false" visibility="public"
  30263. deprecated="not deprecated">
  30264. <param name="out" type="java.io.DataOutput"/>
  30265. <exception name="IOException" type="java.io.IOException"/>
  30266. </method>
  30267. <method name="readFields"
  30268. abstract="false" native="false" synchronized="false"
  30269. static="false" final="false" visibility="public"
  30270. deprecated="not deprecated">
  30271. <param name="din" type="java.io.DataInput"/>
  30272. <exception name="IOException" type="java.io.IOException"/>
  30273. </method>
  30274. <method name="toString" return="java.lang.String"
  30275. abstract="false" native="false" synchronized="false"
  30276. static="false" final="false" visibility="public"
  30277. deprecated="not deprecated">
  30278. </method>
  30279. <doc>
  30280. <![CDATA[Abstract class that is extended by generated classes.]]>
  30281. </doc>
  30282. </class>
  30283. <!-- end class org.apache.hadoop.record.Record -->
  30284. <!-- start class org.apache.hadoop.record.RecordComparator -->
  30285. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  30286. abstract="true"
  30287. static="false" final="false" visibility="public"
  30288. deprecated="not deprecated">
  30289. <constructor name="RecordComparator" type="java.lang.Class"
  30290. static="false" final="false" visibility="protected"
  30291. deprecated="not deprecated">
  30292. <doc>
  30293. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  30294. </doc>
  30295. </constructor>
  30296. <method name="compare" return="int"
  30297. abstract="true" native="false" synchronized="false"
  30298. static="false" final="false" visibility="public"
  30299. deprecated="not deprecated">
  30300. <param name="b1" type="byte[]"/>
  30301. <param name="s1" type="int"/>
  30302. <param name="l1" type="int"/>
  30303. <param name="b2" type="byte[]"/>
  30304. <param name="s2" type="int"/>
  30305. <param name="l2" type="int"/>
  30306. </method>
  30307. <method name="define"
  30308. abstract="false" native="false" synchronized="true"
  30309. static="true" final="false" visibility="public"
  30310. deprecated="not deprecated">
  30311. <param name="c" type="java.lang.Class"/>
  30312. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  30313. <doc>
  30314. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  30315. @param c record classs for which a raw comparator is provided
  30316. @param comparator Raw comparator instance for class c]]>
  30317. </doc>
  30318. </method>
  30319. <doc>
  30320. <![CDATA[A raw record comparator base class]]>
  30321. </doc>
  30322. </class>
  30323. <!-- end class org.apache.hadoop.record.RecordComparator -->
  30324. <!-- start interface org.apache.hadoop.record.RecordInput -->
  30325. <interface name="RecordInput" abstract="true"
  30326. static="false" final="false" visibility="public"
  30327. deprecated="not deprecated">
  30328. <method name="readByte" return="byte"
  30329. abstract="false" native="false" synchronized="false"
  30330. static="false" final="false" visibility="public"
  30331. deprecated="not deprecated">
  30332. <param name="tag" type="java.lang.String"/>
  30333. <exception name="IOException" type="java.io.IOException"/>
  30334. <doc>
  30335. <![CDATA[Read a byte from serialized record.
  30336. @param tag Used by tagged serialization formats (such as XML)
  30337. @return value read from serialized record.]]>
  30338. </doc>
  30339. </method>
  30340. <method name="readBool" return="boolean"
  30341. abstract="false" native="false" synchronized="false"
  30342. static="false" final="false" visibility="public"
  30343. deprecated="not deprecated">
  30344. <param name="tag" type="java.lang.String"/>
  30345. <exception name="IOException" type="java.io.IOException"/>
  30346. <doc>
  30347. <![CDATA[Read a boolean from serialized record.
  30348. @param tag Used by tagged serialization formats (such as XML)
  30349. @return value read from serialized record.]]>
  30350. </doc>
  30351. </method>
  30352. <method name="readInt" return="int"
  30353. abstract="false" native="false" synchronized="false"
  30354. static="false" final="false" visibility="public"
  30355. deprecated="not deprecated">
  30356. <param name="tag" type="java.lang.String"/>
  30357. <exception name="IOException" type="java.io.IOException"/>
  30358. <doc>
  30359. <![CDATA[Read an integer from serialized record.
  30360. @param tag Used by tagged serialization formats (such as XML)
  30361. @return value read from serialized record.]]>
  30362. </doc>
  30363. </method>
  30364. <method name="readLong" return="long"
  30365. abstract="false" native="false" synchronized="false"
  30366. static="false" final="false" visibility="public"
  30367. deprecated="not deprecated">
  30368. <param name="tag" type="java.lang.String"/>
  30369. <exception name="IOException" type="java.io.IOException"/>
  30370. <doc>
  30371. <![CDATA[Read a long integer from serialized record.
  30372. @param tag Used by tagged serialization formats (such as XML)
  30373. @return value read from serialized record.]]>
  30374. </doc>
  30375. </method>
  30376. <method name="readFloat" return="float"
  30377. abstract="false" native="false" synchronized="false"
  30378. static="false" final="false" visibility="public"
  30379. deprecated="not deprecated">
  30380. <param name="tag" type="java.lang.String"/>
  30381. <exception name="IOException" type="java.io.IOException"/>
  30382. <doc>
  30383. <![CDATA[Read a single-precision float from serialized record.
  30384. @param tag Used by tagged serialization formats (such as XML)
  30385. @return value read from serialized record.]]>
  30386. </doc>
  30387. </method>
  30388. <method name="readDouble" return="double"
  30389. abstract="false" native="false" synchronized="false"
  30390. static="false" final="false" visibility="public"
  30391. deprecated="not deprecated">
  30392. <param name="tag" type="java.lang.String"/>
  30393. <exception name="IOException" type="java.io.IOException"/>
  30394. <doc>
  30395. <![CDATA[Read a double-precision number from serialized record.
  30396. @param tag Used by tagged serialization formats (such as XML)
  30397. @return value read from serialized record.]]>
  30398. </doc>
  30399. </method>
  30400. <method name="readString" return="java.lang.String"
  30401. abstract="false" native="false" synchronized="false"
  30402. static="false" final="false" visibility="public"
  30403. deprecated="not deprecated">
  30404. <param name="tag" type="java.lang.String"/>
  30405. <exception name="IOException" type="java.io.IOException"/>
  30406. <doc>
  30407. <![CDATA[Read a UTF-8 encoded string from serialized record.
  30408. @param tag Used by tagged serialization formats (such as XML)
  30409. @return value read from serialized record.]]>
  30410. </doc>
  30411. </method>
  30412. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30413. abstract="false" native="false" synchronized="false"
  30414. static="false" final="false" visibility="public"
  30415. deprecated="not deprecated">
  30416. <param name="tag" type="java.lang.String"/>
  30417. <exception name="IOException" type="java.io.IOException"/>
  30418. <doc>
  30419. <![CDATA[Read byte array from serialized record.
  30420. @param tag Used by tagged serialization formats (such as XML)
  30421. @return value read from serialized record.]]>
  30422. </doc>
  30423. </method>
  30424. <method name="startRecord"
  30425. abstract="false" native="false" synchronized="false"
  30426. static="false" final="false" visibility="public"
  30427. deprecated="not deprecated">
  30428. <param name="tag" type="java.lang.String"/>
  30429. <exception name="IOException" type="java.io.IOException"/>
  30430. <doc>
  30431. <![CDATA[Check the mark for start of the serialized record.
  30432. @param tag Used by tagged serialization formats (such as XML)]]>
  30433. </doc>
  30434. </method>
  30435. <method name="endRecord"
  30436. abstract="false" native="false" synchronized="false"
  30437. static="false" final="false" visibility="public"
  30438. deprecated="not deprecated">
  30439. <param name="tag" type="java.lang.String"/>
  30440. <exception name="IOException" type="java.io.IOException"/>
  30441. <doc>
  30442. <![CDATA[Check the mark for end of the serialized record.
  30443. @param tag Used by tagged serialization formats (such as XML)]]>
  30444. </doc>
  30445. </method>
  30446. <method name="startVector" return="org.apache.hadoop.record.Index"
  30447. abstract="false" native="false" synchronized="false"
  30448. static="false" final="false" visibility="public"
  30449. deprecated="not deprecated">
  30450. <param name="tag" type="java.lang.String"/>
  30451. <exception name="IOException" type="java.io.IOException"/>
  30452. <doc>
  30453. <![CDATA[Check the mark for start of the serialized vector.
  30454. @param tag Used by tagged serialization formats (such as XML)
  30455. @return Index that is used to count the number of elements.]]>
  30456. </doc>
  30457. </method>
  30458. <method name="endVector"
  30459. abstract="false" native="false" synchronized="false"
  30460. static="false" final="false" visibility="public"
  30461. deprecated="not deprecated">
  30462. <param name="tag" type="java.lang.String"/>
  30463. <exception name="IOException" type="java.io.IOException"/>
  30464. <doc>
  30465. <![CDATA[Check the mark for end of the serialized vector.
  30466. @param tag Used by tagged serialization formats (such as XML)]]>
  30467. </doc>
  30468. </method>
  30469. <method name="startMap" return="org.apache.hadoop.record.Index"
  30470. abstract="false" native="false" synchronized="false"
  30471. static="false" final="false" visibility="public"
  30472. deprecated="not deprecated">
  30473. <param name="tag" type="java.lang.String"/>
  30474. <exception name="IOException" type="java.io.IOException"/>
  30475. <doc>
  30476. <![CDATA[Check the mark for start of the serialized map.
  30477. @param tag Used by tagged serialization formats (such as XML)
  30478. @return Index that is used to count the number of map entries.]]>
  30479. </doc>
  30480. </method>
  30481. <method name="endMap"
  30482. abstract="false" native="false" synchronized="false"
  30483. static="false" final="false" visibility="public"
  30484. deprecated="not deprecated">
  30485. <param name="tag" type="java.lang.String"/>
  30486. <exception name="IOException" type="java.io.IOException"/>
  30487. <doc>
  30488. <![CDATA[Check the mark for end of the serialized map.
  30489. @param tag Used by tagged serialization formats (such as XML)]]>
  30490. </doc>
  30491. </method>
  30492. <doc>
  30493. <![CDATA[Interface that all the Deserializers have to implement.]]>
  30494. </doc>
  30495. </interface>
  30496. <!-- end interface org.apache.hadoop.record.RecordInput -->
  30497. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  30498. <interface name="RecordOutput" abstract="true"
  30499. static="false" final="false" visibility="public"
  30500. deprecated="not deprecated">
  30501. <method name="writeByte"
  30502. abstract="false" native="false" synchronized="false"
  30503. static="false" final="false" visibility="public"
  30504. deprecated="not deprecated">
  30505. <param name="b" type="byte"/>
  30506. <param name="tag" type="java.lang.String"/>
  30507. <exception name="IOException" type="java.io.IOException"/>
  30508. <doc>
  30509. <![CDATA[Write a byte to serialized record.
  30510. @param b Byte to be serialized
  30511. @param tag Used by tagged serialization formats (such as XML)
  30512. @throws IOException Indicates error in serialization]]>
  30513. </doc>
  30514. </method>
  30515. <method name="writeBool"
  30516. abstract="false" native="false" synchronized="false"
  30517. static="false" final="false" visibility="public"
  30518. deprecated="not deprecated">
  30519. <param name="b" type="boolean"/>
  30520. <param name="tag" type="java.lang.String"/>
  30521. <exception name="IOException" type="java.io.IOException"/>
  30522. <doc>
  30523. <![CDATA[Write a boolean to serialized record.
  30524. @param b Boolean to be serialized
  30525. @param tag Used by tagged serialization formats (such as XML)
  30526. @throws IOException Indicates error in serialization]]>
  30527. </doc>
  30528. </method>
  30529. <method name="writeInt"
  30530. abstract="false" native="false" synchronized="false"
  30531. static="false" final="false" visibility="public"
  30532. deprecated="not deprecated">
  30533. <param name="i" type="int"/>
  30534. <param name="tag" type="java.lang.String"/>
  30535. <exception name="IOException" type="java.io.IOException"/>
  30536. <doc>
  30537. <![CDATA[Write an integer to serialized record.
  30538. @param i Integer to be serialized
  30539. @param tag Used by tagged serialization formats (such as XML)
  30540. @throws IOException Indicates error in serialization]]>
  30541. </doc>
  30542. </method>
  30543. <method name="writeLong"
  30544. abstract="false" native="false" synchronized="false"
  30545. static="false" final="false" visibility="public"
  30546. deprecated="not deprecated">
  30547. <param name="l" type="long"/>
  30548. <param name="tag" type="java.lang.String"/>
  30549. <exception name="IOException" type="java.io.IOException"/>
  30550. <doc>
  30551. <![CDATA[Write a long integer to serialized record.
  30552. @param l Long to be serialized
  30553. @param tag Used by tagged serialization formats (such as XML)
  30554. @throws IOException Indicates error in serialization]]>
  30555. </doc>
  30556. </method>
  30557. <method name="writeFloat"
  30558. abstract="false" native="false" synchronized="false"
  30559. static="false" final="false" visibility="public"
  30560. deprecated="not deprecated">
  30561. <param name="f" type="float"/>
  30562. <param name="tag" type="java.lang.String"/>
  30563. <exception name="IOException" type="java.io.IOException"/>
  30564. <doc>
  30565. <![CDATA[Write a single-precision float to serialized record.
  30566. @param f Float to be serialized
  30567. @param tag Used by tagged serialization formats (such as XML)
  30568. @throws IOException Indicates error in serialization]]>
  30569. </doc>
  30570. </method>
  30571. <method name="writeDouble"
  30572. abstract="false" native="false" synchronized="false"
  30573. static="false" final="false" visibility="public"
  30574. deprecated="not deprecated">
  30575. <param name="d" type="double"/>
  30576. <param name="tag" type="java.lang.String"/>
  30577. <exception name="IOException" type="java.io.IOException"/>
  30578. <doc>
  30579. <![CDATA[Write a double precision floating point number to serialized record.
  30580. @param d Double to be serialized
  30581. @param tag Used by tagged serialization formats (such as XML)
  30582. @throws IOException Indicates error in serialization]]>
  30583. </doc>
  30584. </method>
  30585. <method name="writeString"
  30586. abstract="false" native="false" synchronized="false"
  30587. static="false" final="false" visibility="public"
  30588. deprecated="not deprecated">
  30589. <param name="s" type="java.lang.String"/>
  30590. <param name="tag" type="java.lang.String"/>
  30591. <exception name="IOException" type="java.io.IOException"/>
  30592. <doc>
  30593. <![CDATA[Write a unicode string to serialized record.
  30594. @param s String to be serialized
  30595. @param tag Used by tagged serialization formats (such as XML)
  30596. @throws IOException Indicates error in serialization]]>
  30597. </doc>
  30598. </method>
  30599. <method name="writeBuffer"
  30600. abstract="false" native="false" synchronized="false"
  30601. static="false" final="false" visibility="public"
  30602. deprecated="not deprecated">
  30603. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30604. <param name="tag" type="java.lang.String"/>
  30605. <exception name="IOException" type="java.io.IOException"/>
  30606. <doc>
  30607. <![CDATA[Write a buffer to serialized record.
  30608. @param buf Buffer to be serialized
  30609. @param tag Used by tagged serialization formats (such as XML)
  30610. @throws IOException Indicates error in serialization]]>
  30611. </doc>
  30612. </method>
  30613. <method name="startRecord"
  30614. abstract="false" native="false" synchronized="false"
  30615. static="false" final="false" visibility="public"
  30616. deprecated="not deprecated">
  30617. <param name="r" type="org.apache.hadoop.record.Record"/>
  30618. <param name="tag" type="java.lang.String"/>
  30619. <exception name="IOException" type="java.io.IOException"/>
  30620. <doc>
  30621. <![CDATA[Mark the start of a record to be serialized.
  30622. @param r Record to be serialized
  30623. @param tag Used by tagged serialization formats (such as XML)
  30624. @throws IOException Indicates error in serialization]]>
  30625. </doc>
  30626. </method>
  30627. <method name="endRecord"
  30628. abstract="false" native="false" synchronized="false"
  30629. static="false" final="false" visibility="public"
  30630. deprecated="not deprecated">
  30631. <param name="r" type="org.apache.hadoop.record.Record"/>
  30632. <param name="tag" type="java.lang.String"/>
  30633. <exception name="IOException" type="java.io.IOException"/>
  30634. <doc>
  30635. <![CDATA[Mark the end of a serialized record.
  30636. @param r Record to be serialized
  30637. @param tag Used by tagged serialization formats (such as XML)
  30638. @throws IOException Indicates error in serialization]]>
  30639. </doc>
  30640. </method>
  30641. <method name="startVector"
  30642. abstract="false" native="false" synchronized="false"
  30643. static="false" final="false" visibility="public"
  30644. deprecated="not deprecated">
  30645. <param name="v" type="java.util.ArrayList"/>
  30646. <param name="tag" type="java.lang.String"/>
  30647. <exception name="IOException" type="java.io.IOException"/>
  30648. <doc>
  30649. <![CDATA[Mark the start of a vector to be serialized.
  30650. @param v Vector to be serialized
  30651. @param tag Used by tagged serialization formats (such as XML)
  30652. @throws IOException Indicates error in serialization]]>
  30653. </doc>
  30654. </method>
  30655. <method name="endVector"
  30656. abstract="false" native="false" synchronized="false"
  30657. static="false" final="false" visibility="public"
  30658. deprecated="not deprecated">
  30659. <param name="v" type="java.util.ArrayList"/>
  30660. <param name="tag" type="java.lang.String"/>
  30661. <exception name="IOException" type="java.io.IOException"/>
  30662. <doc>
  30663. <![CDATA[Mark the end of a serialized vector.
  30664. @param v Vector to be serialized
  30665. @param tag Used by tagged serialization formats (such as XML)
  30666. @throws IOException Indicates error in serialization]]>
  30667. </doc>
  30668. </method>
  30669. <method name="startMap"
  30670. abstract="false" native="false" synchronized="false"
  30671. static="false" final="false" visibility="public"
  30672. deprecated="not deprecated">
  30673. <param name="m" type="java.util.TreeMap"/>
  30674. <param name="tag" type="java.lang.String"/>
  30675. <exception name="IOException" type="java.io.IOException"/>
  30676. <doc>
  30677. <![CDATA[Mark the start of a map to be serialized.
  30678. @param m Map to be serialized
  30679. @param tag Used by tagged serialization formats (such as XML)
  30680. @throws IOException Indicates error in serialization]]>
  30681. </doc>
  30682. </method>
  30683. <method name="endMap"
  30684. abstract="false" native="false" synchronized="false"
  30685. static="false" final="false" visibility="public"
  30686. deprecated="not deprecated">
  30687. <param name="m" type="java.util.TreeMap"/>
  30688. <param name="tag" type="java.lang.String"/>
  30689. <exception name="IOException" type="java.io.IOException"/>
  30690. <doc>
  30691. <![CDATA[Mark the end of a serialized map.
  30692. @param m Map to be serialized
  30693. @param tag Used by tagged serialization formats (such as XML)
  30694. @throws IOException Indicates error in serialization]]>
  30695. </doc>
  30696. </method>
  30697. <doc>
  30698. <![CDATA[Interface that alll the serializers have to implement.]]>
  30699. </doc>
  30700. </interface>
  30701. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  30702. <!-- start class org.apache.hadoop.record.Utils -->
  30703. <class name="Utils" extends="java.lang.Object"
  30704. abstract="false"
  30705. static="false" final="false" visibility="public"
  30706. deprecated="not deprecated">
  30707. <method name="readFloat" return="float"
  30708. abstract="false" native="false" synchronized="false"
  30709. static="true" final="false" visibility="public"
  30710. deprecated="not deprecated">
  30711. <param name="bytes" type="byte[]"/>
  30712. <param name="start" type="int"/>
  30713. <doc>
  30714. <![CDATA[Parse a float from a byte array.]]>
  30715. </doc>
  30716. </method>
  30717. <method name="readDouble" return="double"
  30718. abstract="false" native="false" synchronized="false"
  30719. static="true" final="false" visibility="public"
  30720. deprecated="not deprecated">
  30721. <param name="bytes" type="byte[]"/>
  30722. <param name="start" type="int"/>
  30723. <doc>
  30724. <![CDATA[Parse a double from a byte array.]]>
  30725. </doc>
  30726. </method>
  30727. <method name="readVLong" return="long"
  30728. abstract="false" native="false" synchronized="false"
  30729. static="true" final="false" visibility="public"
  30730. deprecated="not deprecated">
  30731. <param name="bytes" type="byte[]"/>
  30732. <param name="start" type="int"/>
  30733. <exception name="IOException" type="java.io.IOException"/>
  30734. <doc>
  30735. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  30736. @param bytes byte array with decode long
  30737. @param start starting index
  30738. @throws java.io.IOException
  30739. @return deserialized long]]>
  30740. </doc>
  30741. </method>
  30742. <method name="readVInt" return="int"
  30743. abstract="false" native="false" synchronized="false"
  30744. static="true" final="false" visibility="public"
  30745. deprecated="not deprecated">
  30746. <param name="bytes" type="byte[]"/>
  30747. <param name="start" type="int"/>
  30748. <exception name="IOException" type="java.io.IOException"/>
  30749. <doc>
  30750. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  30751. @param bytes byte array with the encoded integer
  30752. @param start start index
  30753. @throws java.io.IOException
  30754. @return deserialized integer]]>
  30755. </doc>
  30756. </method>
  30757. <method name="readVLong" return="long"
  30758. abstract="false" native="false" synchronized="false"
  30759. static="true" final="false" visibility="public"
  30760. deprecated="not deprecated">
  30761. <param name="in" type="java.io.DataInput"/>
  30762. <exception name="IOException" type="java.io.IOException"/>
  30763. <doc>
  30764. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  30765. @param in input stream
  30766. @throws java.io.IOException
  30767. @return deserialized long]]>
  30768. </doc>
  30769. </method>
  30770. <method name="readVInt" return="int"
  30771. abstract="false" native="false" synchronized="false"
  30772. static="true" final="false" visibility="public"
  30773. deprecated="not deprecated">
  30774. <param name="in" type="java.io.DataInput"/>
  30775. <exception name="IOException" type="java.io.IOException"/>
  30776. <doc>
  30777. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  30778. @param in input stream
  30779. @throws java.io.IOException
  30780. @return deserialized integer]]>
  30781. </doc>
  30782. </method>
  30783. <method name="getVIntSize" return="int"
  30784. abstract="false" native="false" synchronized="false"
  30785. static="true" final="false" visibility="public"
  30786. deprecated="not deprecated">
  30787. <param name="i" type="long"/>
  30788. <doc>
  30789. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  30790. @return the encoded length]]>
  30791. </doc>
  30792. </method>
  30793. <method name="writeVLong"
  30794. abstract="false" native="false" synchronized="false"
  30795. static="true" final="false" visibility="public"
  30796. deprecated="not deprecated">
  30797. <param name="stream" type="java.io.DataOutput"/>
  30798. <param name="i" type="long"/>
  30799. <exception name="IOException" type="java.io.IOException"/>
  30800. <doc>
  30801. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  30802. For -112 <= i <= 127, only one byte is used with the actual value.
  30803. For other values of i, the first byte value indicates whether the
  30804. long is positive or negative, and the number of bytes that follow.
  30805. If the first byte value v is between -113 and -120, the following long
  30806. is positive, with number of bytes that follow are -(v+112).
  30807. If the first byte value v is between -121 and -128, the following long
  30808. is negative, with number of bytes that follow are -(v+120). Bytes are
  30809. stored in the high-non-zero-byte-first order.
  30810. @param stream Binary output stream
  30811. @param i Long to be serialized
  30812. @throws java.io.IOException]]>
  30813. </doc>
  30814. </method>
  30815. <method name="writeVInt"
  30816. abstract="false" native="false" synchronized="false"
  30817. static="true" final="false" visibility="public"
  30818. deprecated="not deprecated">
  30819. <param name="stream" type="java.io.DataOutput"/>
  30820. <param name="i" type="int"/>
  30821. <exception name="IOException" type="java.io.IOException"/>
  30822. <doc>
  30823. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  30824. @param stream Binary output stream
  30825. @param i int to be serialized
  30826. @throws java.io.IOException]]>
  30827. </doc>
  30828. </method>
  30829. <method name="compareBytes" return="int"
  30830. abstract="false" native="false" synchronized="false"
  30831. static="true" final="false" visibility="public"
  30832. deprecated="not deprecated">
  30833. <param name="b1" type="byte[]"/>
  30834. <param name="s1" type="int"/>
  30835. <param name="l1" type="int"/>
  30836. <param name="b2" type="byte[]"/>
  30837. <param name="s2" type="int"/>
  30838. <param name="l2" type="int"/>
  30839. <doc>
  30840. <![CDATA[Lexicographic order of binary data.]]>
  30841. </doc>
  30842. </method>
  30843. <field name="hexchars" type="char[]"
  30844. transient="false" volatile="false"
  30845. static="true" final="true" visibility="public"
  30846. deprecated="not deprecated">
  30847. </field>
  30848. <doc>
  30849. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  30850. </doc>
  30851. </class>
  30852. <!-- end class org.apache.hadoop.record.Utils -->
  30853. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  30854. <class name="XmlRecordInput" extends="java.lang.Object"
  30855. abstract="false"
  30856. static="false" final="false" visibility="public"
  30857. deprecated="not deprecated">
  30858. <implements name="org.apache.hadoop.record.RecordInput"/>
  30859. <constructor name="XmlRecordInput" type="java.io.InputStream"
  30860. static="false" final="false" visibility="public"
  30861. deprecated="not deprecated">
  30862. <doc>
  30863. <![CDATA[Creates a new instance of XmlRecordInput]]>
  30864. </doc>
  30865. </constructor>
  30866. <method name="readByte" return="byte"
  30867. abstract="false" native="false" synchronized="false"
  30868. static="false" final="false" visibility="public"
  30869. deprecated="not deprecated">
  30870. <param name="tag" type="java.lang.String"/>
  30871. <exception name="IOException" type="java.io.IOException"/>
  30872. </method>
  30873. <method name="readBool" return="boolean"
  30874. abstract="false" native="false" synchronized="false"
  30875. static="false" final="false" visibility="public"
  30876. deprecated="not deprecated">
  30877. <param name="tag" type="java.lang.String"/>
  30878. <exception name="IOException" type="java.io.IOException"/>
  30879. </method>
  30880. <method name="readInt" return="int"
  30881. abstract="false" native="false" synchronized="false"
  30882. static="false" final="false" visibility="public"
  30883. deprecated="not deprecated">
  30884. <param name="tag" type="java.lang.String"/>
  30885. <exception name="IOException" type="java.io.IOException"/>
  30886. </method>
  30887. <method name="readLong" return="long"
  30888. abstract="false" native="false" synchronized="false"
  30889. static="false" final="false" visibility="public"
  30890. deprecated="not deprecated">
  30891. <param name="tag" type="java.lang.String"/>
  30892. <exception name="IOException" type="java.io.IOException"/>
  30893. </method>
  30894. <method name="readFloat" return="float"
  30895. abstract="false" native="false" synchronized="false"
  30896. static="false" final="false" visibility="public"
  30897. deprecated="not deprecated">
  30898. <param name="tag" type="java.lang.String"/>
  30899. <exception name="IOException" type="java.io.IOException"/>
  30900. </method>
  30901. <method name="readDouble" return="double"
  30902. abstract="false" native="false" synchronized="false"
  30903. static="false" final="false" visibility="public"
  30904. deprecated="not deprecated">
  30905. <param name="tag" type="java.lang.String"/>
  30906. <exception name="IOException" type="java.io.IOException"/>
  30907. </method>
  30908. <method name="readString" return="java.lang.String"
  30909. abstract="false" native="false" synchronized="false"
  30910. static="false" final="false" visibility="public"
  30911. deprecated="not deprecated">
  30912. <param name="tag" type="java.lang.String"/>
  30913. <exception name="IOException" type="java.io.IOException"/>
  30914. </method>
  30915. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30916. abstract="false" native="false" synchronized="false"
  30917. static="false" final="false" visibility="public"
  30918. deprecated="not deprecated">
  30919. <param name="tag" type="java.lang.String"/>
  30920. <exception name="IOException" type="java.io.IOException"/>
  30921. </method>
  30922. <method name="startRecord"
  30923. abstract="false" native="false" synchronized="false"
  30924. static="false" final="false" visibility="public"
  30925. deprecated="not deprecated">
  30926. <param name="tag" type="java.lang.String"/>
  30927. <exception name="IOException" type="java.io.IOException"/>
  30928. </method>
  30929. <method name="endRecord"
  30930. abstract="false" native="false" synchronized="false"
  30931. static="false" final="false" visibility="public"
  30932. deprecated="not deprecated">
  30933. <param name="tag" type="java.lang.String"/>
  30934. <exception name="IOException" type="java.io.IOException"/>
  30935. </method>
  30936. <method name="startVector" return="org.apache.hadoop.record.Index"
  30937. abstract="false" native="false" synchronized="false"
  30938. static="false" final="false" visibility="public"
  30939. deprecated="not deprecated">
  30940. <param name="tag" type="java.lang.String"/>
  30941. <exception name="IOException" type="java.io.IOException"/>
  30942. </method>
  30943. <method name="endVector"
  30944. abstract="false" native="false" synchronized="false"
  30945. static="false" final="false" visibility="public"
  30946. deprecated="not deprecated">
  30947. <param name="tag" type="java.lang.String"/>
  30948. <exception name="IOException" type="java.io.IOException"/>
  30949. </method>
  30950. <method name="startMap" return="org.apache.hadoop.record.Index"
  30951. abstract="false" native="false" synchronized="false"
  30952. static="false" final="false" visibility="public"
  30953. deprecated="not deprecated">
  30954. <param name="tag" type="java.lang.String"/>
  30955. <exception name="IOException" type="java.io.IOException"/>
  30956. </method>
  30957. <method name="endMap"
  30958. abstract="false" native="false" synchronized="false"
  30959. static="false" final="false" visibility="public"
  30960. deprecated="not deprecated">
  30961. <param name="tag" type="java.lang.String"/>
  30962. <exception name="IOException" type="java.io.IOException"/>
  30963. </method>
  30964. <doc>
  30965. <![CDATA[XML Deserializer.]]>
  30966. </doc>
  30967. </class>
  30968. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  30969. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  30970. <class name="XmlRecordOutput" extends="java.lang.Object"
  30971. abstract="false"
  30972. static="false" final="false" visibility="public"
  30973. deprecated="not deprecated">
  30974. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30975. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  30976. static="false" final="false" visibility="public"
  30977. deprecated="not deprecated">
  30978. <doc>
  30979. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  30980. </doc>
  30981. </constructor>
  30982. <method name="writeByte"
  30983. abstract="false" native="false" synchronized="false"
  30984. static="false" final="false" visibility="public"
  30985. deprecated="not deprecated">
  30986. <param name="b" type="byte"/>
  30987. <param name="tag" type="java.lang.String"/>
  30988. <exception name="IOException" type="java.io.IOException"/>
  30989. </method>
  30990. <method name="writeBool"
  30991. abstract="false" native="false" synchronized="false"
  30992. static="false" final="false" visibility="public"
  30993. deprecated="not deprecated">
  30994. <param name="b" type="boolean"/>
  30995. <param name="tag" type="java.lang.String"/>
  30996. <exception name="IOException" type="java.io.IOException"/>
  30997. </method>
  30998. <method name="writeInt"
  30999. abstract="false" native="false" synchronized="false"
  31000. static="false" final="false" visibility="public"
  31001. deprecated="not deprecated">
  31002. <param name="i" type="int"/>
  31003. <param name="tag" type="java.lang.String"/>
  31004. <exception name="IOException" type="java.io.IOException"/>
  31005. </method>
  31006. <method name="writeLong"
  31007. abstract="false" native="false" synchronized="false"
  31008. static="false" final="false" visibility="public"
  31009. deprecated="not deprecated">
  31010. <param name="l" type="long"/>
  31011. <param name="tag" type="java.lang.String"/>
  31012. <exception name="IOException" type="java.io.IOException"/>
  31013. </method>
  31014. <method name="writeFloat"
  31015. abstract="false" native="false" synchronized="false"
  31016. static="false" final="false" visibility="public"
  31017. deprecated="not deprecated">
  31018. <param name="f" type="float"/>
  31019. <param name="tag" type="java.lang.String"/>
  31020. <exception name="IOException" type="java.io.IOException"/>
  31021. </method>
  31022. <method name="writeDouble"
  31023. abstract="false" native="false" synchronized="false"
  31024. static="false" final="false" visibility="public"
  31025. deprecated="not deprecated">
  31026. <param name="d" type="double"/>
  31027. <param name="tag" type="java.lang.String"/>
  31028. <exception name="IOException" type="java.io.IOException"/>
  31029. </method>
  31030. <method name="writeString"
  31031. abstract="false" native="false" synchronized="false"
  31032. static="false" final="false" visibility="public"
  31033. deprecated="not deprecated">
  31034. <param name="s" type="java.lang.String"/>
  31035. <param name="tag" type="java.lang.String"/>
  31036. <exception name="IOException" type="java.io.IOException"/>
  31037. </method>
  31038. <method name="writeBuffer"
  31039. abstract="false" native="false" synchronized="false"
  31040. static="false" final="false" visibility="public"
  31041. deprecated="not deprecated">
  31042. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31043. <param name="tag" type="java.lang.String"/>
  31044. <exception name="IOException" type="java.io.IOException"/>
  31045. </method>
  31046. <method name="startRecord"
  31047. abstract="false" native="false" synchronized="false"
  31048. static="false" final="false" visibility="public"
  31049. deprecated="not deprecated">
  31050. <param name="r" type="org.apache.hadoop.record.Record"/>
  31051. <param name="tag" type="java.lang.String"/>
  31052. <exception name="IOException" type="java.io.IOException"/>
  31053. </method>
  31054. <method name="endRecord"
  31055. abstract="false" native="false" synchronized="false"
  31056. static="false" final="false" visibility="public"
  31057. deprecated="not deprecated">
  31058. <param name="r" type="org.apache.hadoop.record.Record"/>
  31059. <param name="tag" type="java.lang.String"/>
  31060. <exception name="IOException" type="java.io.IOException"/>
  31061. </method>
  31062. <method name="startVector"
  31063. abstract="false" native="false" synchronized="false"
  31064. static="false" final="false" visibility="public"
  31065. deprecated="not deprecated">
  31066. <param name="v" type="java.util.ArrayList"/>
  31067. <param name="tag" type="java.lang.String"/>
  31068. <exception name="IOException" type="java.io.IOException"/>
  31069. </method>
  31070. <method name="endVector"
  31071. abstract="false" native="false" synchronized="false"
  31072. static="false" final="false" visibility="public"
  31073. deprecated="not deprecated">
  31074. <param name="v" type="java.util.ArrayList"/>
  31075. <param name="tag" type="java.lang.String"/>
  31076. <exception name="IOException" type="java.io.IOException"/>
  31077. </method>
  31078. <method name="startMap"
  31079. abstract="false" native="false" synchronized="false"
  31080. static="false" final="false" visibility="public"
  31081. deprecated="not deprecated">
  31082. <param name="v" type="java.util.TreeMap"/>
  31083. <param name="tag" type="java.lang.String"/>
  31084. <exception name="IOException" type="java.io.IOException"/>
  31085. </method>
  31086. <method name="endMap"
  31087. abstract="false" native="false" synchronized="false"
  31088. static="false" final="false" visibility="public"
  31089. deprecated="not deprecated">
  31090. <param name="v" type="java.util.TreeMap"/>
  31091. <param name="tag" type="java.lang.String"/>
  31092. <exception name="IOException" type="java.io.IOException"/>
  31093. </method>
  31094. <doc>
  31095. <![CDATA[XML Serializer.]]>
  31096. </doc>
  31097. </class>
  31098. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  31099. </package>
  31100. <package name="org.apache.hadoop.record.compiler">
  31101. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  31102. <class name="CodeBuffer" extends="java.lang.Object"
  31103. abstract="false"
  31104. static="false" final="false" visibility="public"
  31105. deprecated="not deprecated">
  31106. <method name="toString" return="java.lang.String"
  31107. abstract="false" native="false" synchronized="false"
  31108. static="false" final="false" visibility="public"
  31109. deprecated="not deprecated">
  31110. </method>
  31111. <doc>
  31112. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  31113. </doc>
  31114. </class>
  31115. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  31116. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  31117. <class name="Consts" extends="java.lang.Object"
  31118. abstract="false"
  31119. static="false" final="false" visibility="public"
  31120. deprecated="not deprecated">
  31121. <field name="RIO_PREFIX" type="java.lang.String"
  31122. transient="false" volatile="false"
  31123. static="true" final="true" visibility="public"
  31124. deprecated="not deprecated">
  31125. </field>
  31126. <field name="RTI_VAR" type="java.lang.String"
  31127. transient="false" volatile="false"
  31128. static="true" final="true" visibility="public"
  31129. deprecated="not deprecated">
  31130. </field>
  31131. <field name="RTI_FILTER" type="java.lang.String"
  31132. transient="false" volatile="false"
  31133. static="true" final="true" visibility="public"
  31134. deprecated="not deprecated">
  31135. </field>
  31136. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  31137. transient="false" volatile="false"
  31138. static="true" final="true" visibility="public"
  31139. deprecated="not deprecated">
  31140. </field>
  31141. <field name="RECORD_OUTPUT" type="java.lang.String"
  31142. transient="false" volatile="false"
  31143. static="true" final="true" visibility="public"
  31144. deprecated="not deprecated">
  31145. </field>
  31146. <field name="RECORD_INPUT" type="java.lang.String"
  31147. transient="false" volatile="false"
  31148. static="true" final="true" visibility="public"
  31149. deprecated="not deprecated">
  31150. </field>
  31151. <field name="TAG" type="java.lang.String"
  31152. transient="false" volatile="false"
  31153. static="true" final="true" visibility="public"
  31154. deprecated="not deprecated">
  31155. </field>
  31156. <doc>
  31157. <![CDATA[const definitions for Record I/O compiler]]>
  31158. </doc>
  31159. </class>
  31160. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  31161. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  31162. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  31163. abstract="false"
  31164. static="false" final="false" visibility="public"
  31165. deprecated="not deprecated">
  31166. <constructor name="JBoolean"
  31167. static="false" final="false" visibility="public"
  31168. deprecated="not deprecated">
  31169. <doc>
  31170. <![CDATA[Creates a new instance of JBoolean]]>
  31171. </doc>
  31172. </constructor>
  31173. </class>
  31174. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  31175. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  31176. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  31177. abstract="false"
  31178. static="false" final="false" visibility="public"
  31179. deprecated="not deprecated">
  31180. <constructor name="JBuffer"
  31181. static="false" final="false" visibility="public"
  31182. deprecated="not deprecated">
  31183. <doc>
  31184. <![CDATA[Creates a new instance of JBuffer]]>
  31185. </doc>
  31186. </constructor>
  31187. <doc>
  31188. <![CDATA[Code generator for "buffer" type.]]>
  31189. </doc>
  31190. </class>
  31191. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  31192. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  31193. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  31194. abstract="false"
  31195. static="false" final="false" visibility="public"
  31196. deprecated="not deprecated">
  31197. <constructor name="JByte"
  31198. static="false" final="false" visibility="public"
  31199. deprecated="not deprecated">
  31200. </constructor>
  31201. <doc>
  31202. <![CDATA[Code generator for "byte" type.]]>
  31203. </doc>
  31204. </class>
  31205. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  31206. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  31207. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  31208. abstract="false"
  31209. static="false" final="false" visibility="public"
  31210. deprecated="not deprecated">
  31211. <constructor name="JDouble"
  31212. static="false" final="false" visibility="public"
  31213. deprecated="not deprecated">
  31214. <doc>
  31215. <![CDATA[Creates a new instance of JDouble]]>
  31216. </doc>
  31217. </constructor>
  31218. </class>
  31219. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  31220. <!-- start class org.apache.hadoop.record.compiler.JField -->
  31221. <class name="JField" extends="java.lang.Object"
  31222. abstract="false"
  31223. static="false" final="false" visibility="public"
  31224. deprecated="not deprecated">
  31225. <constructor name="JField" type="java.lang.String, java.lang.Object"
  31226. static="false" final="false" visibility="public"
  31227. deprecated="not deprecated">
  31228. <doc>
  31229. <![CDATA[Creates a new instance of JField]]>
  31230. </doc>
  31231. </constructor>
  31232. <doc>
  31233. <![CDATA[A thin wrappper around record field.]]>
  31234. </doc>
  31235. </class>
  31236. <!-- end class org.apache.hadoop.record.compiler.JField -->
  31237. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  31238. <class name="JFile" extends="java.lang.Object"
  31239. abstract="false"
  31240. static="false" final="false" visibility="public"
  31241. deprecated="not deprecated">
  31242. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  31243. static="false" final="false" visibility="public"
  31244. deprecated="not deprecated">
  31245. <doc>
  31246. <![CDATA[Creates a new instance of JFile
  31247. @param name possibly full pathname to the file
  31248. @param inclFiles included files (as JFile)
  31249. @param recList List of records defined within this file]]>
  31250. </doc>
  31251. </constructor>
  31252. <method name="genCode" return="int"
  31253. abstract="false" native="false" synchronized="false"
  31254. static="false" final="false" visibility="public"
  31255. deprecated="not deprecated">
  31256. <param name="language" type="java.lang.String"/>
  31257. <param name="destDir" type="java.lang.String"/>
  31258. <param name="options" type="java.util.ArrayList"/>
  31259. <exception name="IOException" type="java.io.IOException"/>
  31260. <doc>
  31261. <![CDATA[Generate record code in given language. Language should be all
  31262. lowercase.]]>
  31263. </doc>
  31264. </method>
  31265. <doc>
  31266. <![CDATA[Container for the Hadoop Record DDL.
  31267. The main components of the file are filename, list of included files,
  31268. and records defined in that file.]]>
  31269. </doc>
  31270. </class>
  31271. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  31272. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  31273. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  31274. abstract="false"
  31275. static="false" final="false" visibility="public"
  31276. deprecated="not deprecated">
  31277. <constructor name="JFloat"
  31278. static="false" final="false" visibility="public"
  31279. deprecated="not deprecated">
  31280. <doc>
  31281. <![CDATA[Creates a new instance of JFloat]]>
  31282. </doc>
  31283. </constructor>
  31284. </class>
  31285. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  31286. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  31287. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  31288. abstract="false"
  31289. static="false" final="false" visibility="public"
  31290. deprecated="not deprecated">
  31291. <constructor name="JInt"
  31292. static="false" final="false" visibility="public"
  31293. deprecated="not deprecated">
  31294. <doc>
  31295. <![CDATA[Creates a new instance of JInt]]>
  31296. </doc>
  31297. </constructor>
  31298. <doc>
  31299. <![CDATA[Code generator for "int" type]]>
  31300. </doc>
  31301. </class>
  31302. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  31303. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  31304. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  31305. abstract="false"
  31306. static="false" final="false" visibility="public"
  31307. deprecated="not deprecated">
  31308. <constructor name="JLong"
  31309. static="false" final="false" visibility="public"
  31310. deprecated="not deprecated">
  31311. <doc>
  31312. <![CDATA[Creates a new instance of JLong]]>
  31313. </doc>
  31314. </constructor>
  31315. <doc>
  31316. <![CDATA[Code generator for "long" type]]>
  31317. </doc>
  31318. </class>
  31319. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  31320. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  31321. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  31322. abstract="false"
  31323. static="false" final="false" visibility="public"
  31324. deprecated="not deprecated">
  31325. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  31326. static="false" final="false" visibility="public"
  31327. deprecated="not deprecated">
  31328. <doc>
  31329. <![CDATA[Creates a new instance of JMap]]>
  31330. </doc>
  31331. </constructor>
  31332. </class>
  31333. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  31334. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  31335. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  31336. abstract="false"
  31337. static="false" final="false" visibility="public"
  31338. deprecated="not deprecated">
  31339. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  31340. static="false" final="false" visibility="public"
  31341. deprecated="not deprecated">
  31342. <doc>
  31343. <![CDATA[Creates a new instance of JRecord]]>
  31344. </doc>
  31345. </constructor>
  31346. </class>
  31347. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  31348. <!-- start class org.apache.hadoop.record.compiler.JString -->
  31349. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  31350. abstract="false"
  31351. static="false" final="false" visibility="public"
  31352. deprecated="not deprecated">
  31353. <constructor name="JString"
  31354. static="false" final="false" visibility="public"
  31355. deprecated="not deprecated">
  31356. <doc>
  31357. <![CDATA[Creates a new instance of JString]]>
  31358. </doc>
  31359. </constructor>
  31360. </class>
  31361. <!-- end class org.apache.hadoop.record.compiler.JString -->
  31362. <!-- start class org.apache.hadoop.record.compiler.JType -->
  31363. <class name="JType" extends="java.lang.Object"
  31364. abstract="true"
  31365. static="false" final="false" visibility="public"
  31366. deprecated="not deprecated">
  31367. <constructor name="JType"
  31368. static="false" final="false" visibility="public"
  31369. deprecated="not deprecated">
  31370. </constructor>
  31371. <doc>
  31372. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  31373. </doc>
  31374. </class>
  31375. <!-- end class org.apache.hadoop.record.compiler.JType -->
  31376. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  31377. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  31378. abstract="false"
  31379. static="false" final="false" visibility="public"
  31380. deprecated="not deprecated">
  31381. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  31382. static="false" final="false" visibility="public"
  31383. deprecated="not deprecated">
  31384. <doc>
  31385. <![CDATA[Creates a new instance of JVector]]>
  31386. </doc>
  31387. </constructor>
  31388. </class>
  31389. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  31390. </package>
  31391. <package name="org.apache.hadoop.record.compiler.ant">
  31392. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  31393. <class name="RccTask" extends="org.apache.tools.ant.Task"
  31394. abstract="false"
  31395. static="false" final="false" visibility="public"
  31396. deprecated="not deprecated">
  31397. <constructor name="RccTask"
  31398. static="false" final="false" visibility="public"
  31399. deprecated="not deprecated">
  31400. <doc>
  31401. <![CDATA[Creates a new instance of RccTask]]>
  31402. </doc>
  31403. </constructor>
  31404. <method name="setLanguage"
  31405. abstract="false" native="false" synchronized="false"
  31406. static="false" final="false" visibility="public"
  31407. deprecated="not deprecated">
  31408. <param name="language" type="java.lang.String"/>
  31409. <doc>
  31410. <![CDATA[Sets the output language option
  31411. @param language "java"/"c++"]]>
  31412. </doc>
  31413. </method>
  31414. <method name="setFile"
  31415. abstract="false" native="false" synchronized="false"
  31416. static="false" final="false" visibility="public"
  31417. deprecated="not deprecated">
  31418. <param name="file" type="java.io.File"/>
  31419. <doc>
  31420. <![CDATA[Sets the record definition file attribute
  31421. @param file record definition file]]>
  31422. </doc>
  31423. </method>
  31424. <method name="setFailonerror"
  31425. abstract="false" native="false" synchronized="false"
  31426. static="false" final="false" visibility="public"
  31427. deprecated="not deprecated">
  31428. <param name="flag" type="boolean"/>
  31429. <doc>
  31430. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  31431. @param flag true will throw build exception in case of failure (default)]]>
  31432. </doc>
  31433. </method>
  31434. <method name="setDestdir"
  31435. abstract="false" native="false" synchronized="false"
  31436. static="false" final="false" visibility="public"
  31437. deprecated="not deprecated">
  31438. <param name="dir" type="java.io.File"/>
  31439. <doc>
  31440. <![CDATA[Sets directory where output files will be generated
  31441. @param dir output directory]]>
  31442. </doc>
  31443. </method>
  31444. <method name="addFileset"
  31445. abstract="false" native="false" synchronized="false"
  31446. static="false" final="false" visibility="public"
  31447. deprecated="not deprecated">
  31448. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  31449. <doc>
  31450. <![CDATA[Adds a fileset that can consist of one or more files
  31451. @param set Set of record definition files]]>
  31452. </doc>
  31453. </method>
  31454. <method name="execute"
  31455. abstract="false" native="false" synchronized="false"
  31456. static="false" final="false" visibility="public"
  31457. deprecated="not deprecated">
  31458. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  31459. <doc>
  31460. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  31461. </doc>
  31462. </method>
  31463. <doc>
  31464. <![CDATA[Hadoop record compiler ant Task
  31465. <p> This task takes the given record definition files and compiles them into
  31466. java or c++
  31467. files. It is then up to the user to compile the generated files.
  31468. <p> The task requires the <code>file</code> or the nested fileset element to be
  31469. specified. Optional attributes are <code>language</code> (set the output
  31470. language, default is "java"),
  31471. <code>destdir</code> (name of the destination directory for generated java/c++
  31472. code, default is ".") and <code>failonerror</code> (specifies error handling
  31473. behavior. default is true).
  31474. <p><h4>Usage</h4>
  31475. <pre>
  31476. &lt;recordcc
  31477. destdir="${basedir}/gensrc"
  31478. language="java"&gt;
  31479. &lt;fileset include="**\/*.jr" /&gt;
  31480. &lt;/recordcc&gt;
  31481. </pre>]]>
  31482. </doc>
  31483. </class>
  31484. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  31485. </package>
  31486. <package name="org.apache.hadoop.record.compiler.generated">
  31487. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  31488. <class name="ParseException" extends="java.lang.Exception"
  31489. abstract="false"
  31490. static="false" final="false" visibility="public"
  31491. deprecated="not deprecated">
  31492. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  31493. static="false" final="false" visibility="public"
  31494. deprecated="not deprecated">
  31495. <doc>
  31496. <![CDATA[This constructor is used by the method "generateParseException"
  31497. in the generated parser. Calling this constructor generates
  31498. a new object of this type with the fields "currentToken",
  31499. "expectedTokenSequences", and "tokenImage" set. The boolean
  31500. flag "specialConstructor" is also set to true to indicate that
  31501. this constructor was used to create this object.
  31502. This constructor calls its super class with the empty string
  31503. to force the "toString" method of parent class "Throwable" to
  31504. print the error message in the form:
  31505. ParseException: <result of getMessage>]]>
  31506. </doc>
  31507. </constructor>
  31508. <constructor name="ParseException"
  31509. static="false" final="false" visibility="public"
  31510. deprecated="not deprecated">
  31511. <doc>
  31512. <![CDATA[The following constructors are for use by you for whatever
  31513. purpose you can think of. Constructing the exception in this
  31514. manner makes the exception behave in the normal way - i.e., as
  31515. documented in the class "Throwable". The fields "errorToken",
  31516. "expectedTokenSequences", and "tokenImage" do not contain
  31517. relevant information. The JavaCC generated code does not use
  31518. these constructors.]]>
  31519. </doc>
  31520. </constructor>
  31521. <constructor name="ParseException" type="java.lang.String"
  31522. static="false" final="false" visibility="public"
  31523. deprecated="not deprecated">
  31524. </constructor>
  31525. <method name="getMessage" return="java.lang.String"
  31526. abstract="false" native="false" synchronized="false"
  31527. static="false" final="false" visibility="public"
  31528. deprecated="not deprecated">
  31529. <doc>
  31530. <![CDATA[This method has the standard behavior when this object has been
  31531. created using the standard constructors. Otherwise, it uses
  31532. "currentToken" and "expectedTokenSequences" to generate a parse
  31533. error message and returns it. If this object has been created
  31534. due to a parse error, and you do not catch it (it gets thrown
  31535. from the parser), then this method is called during the printing
  31536. of the final stack trace, and hence the correct error message
  31537. gets displayed.]]>
  31538. </doc>
  31539. </method>
  31540. <method name="add_escapes" return="java.lang.String"
  31541. abstract="false" native="false" synchronized="false"
  31542. static="false" final="false" visibility="protected"
  31543. deprecated="not deprecated">
  31544. <param name="str" type="java.lang.String"/>
  31545. <doc>
  31546. <![CDATA[Used to convert raw characters to their escaped version
  31547. when these raw version cannot be used as part of an ASCII
  31548. string literal.]]>
  31549. </doc>
  31550. </method>
  31551. <field name="specialConstructor" type="boolean"
  31552. transient="false" volatile="false"
  31553. static="false" final="false" visibility="protected"
  31554. deprecated="not deprecated">
  31555. <doc>
  31556. <![CDATA[This variable determines which constructor was used to create
  31557. this object and thereby affects the semantics of the
  31558. "getMessage" method (see below).]]>
  31559. </doc>
  31560. </field>
  31561. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  31562. transient="false" volatile="false"
  31563. static="false" final="false" visibility="public"
  31564. deprecated="not deprecated">
  31565. <doc>
  31566. <![CDATA[This is the last token that has been consumed successfully. If
  31567. this object has been created due to a parse error, the token
  31568. followng this token will (therefore) be the first error token.]]>
  31569. </doc>
  31570. </field>
  31571. <field name="expectedTokenSequences" type="int[][]"
  31572. transient="false" volatile="false"
  31573. static="false" final="false" visibility="public"
  31574. deprecated="not deprecated">
  31575. <doc>
  31576. <![CDATA[Each entry in this array is an array of integers. Each array
  31577. of integers represents a sequence of tokens (by their ordinal
  31578. values) that is expected at this point of the parse.]]>
  31579. </doc>
  31580. </field>
  31581. <field name="tokenImage" type="java.lang.String[]"
  31582. transient="false" volatile="false"
  31583. static="false" final="false" visibility="public"
  31584. deprecated="not deprecated">
  31585. <doc>
  31586. <![CDATA[This is a reference to the "tokenImage" array of the generated
  31587. parser within which the parse error occurred. This array is
  31588. defined in the generated ...Constants interface.]]>
  31589. </doc>
  31590. </field>
  31591. <field name="eol" type="java.lang.String"
  31592. transient="false" volatile="false"
  31593. static="false" final="false" visibility="protected"
  31594. deprecated="not deprecated">
  31595. <doc>
  31596. <![CDATA[The end of line string for this machine.]]>
  31597. </doc>
  31598. </field>
  31599. <doc>
  31600. <![CDATA[This exception is thrown when parse errors are encountered.
  31601. You can explicitly create objects of this exception type by
  31602. calling the method generateParseException in the generated
  31603. parser.
  31604. You can modify this class to customize your error reporting
  31605. mechanisms so long as you retain the public fields.]]>
  31606. </doc>
  31607. </class>
  31608. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  31609. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  31610. <class name="Rcc" extends="java.lang.Object"
  31611. abstract="false"
  31612. static="false" final="false" visibility="public"
  31613. deprecated="not deprecated">
  31614. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31615. <constructor name="Rcc" type="java.io.InputStream"
  31616. static="false" final="false" visibility="public"
  31617. deprecated="not deprecated">
  31618. </constructor>
  31619. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  31620. static="false" final="false" visibility="public"
  31621. deprecated="not deprecated">
  31622. </constructor>
  31623. <constructor name="Rcc" type="java.io.Reader"
  31624. static="false" final="false" visibility="public"
  31625. deprecated="not deprecated">
  31626. </constructor>
  31627. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31628. static="false" final="false" visibility="public"
  31629. deprecated="not deprecated">
  31630. </constructor>
  31631. <method name="main"
  31632. abstract="false" native="false" synchronized="false"
  31633. static="true" final="false" visibility="public"
  31634. deprecated="not deprecated">
  31635. <param name="args" type="java.lang.String[]"/>
  31636. </method>
  31637. <method name="usage"
  31638. abstract="false" native="false" synchronized="false"
  31639. static="true" final="false" visibility="public"
  31640. deprecated="not deprecated">
  31641. </method>
  31642. <method name="driver" return="int"
  31643. abstract="false" native="false" synchronized="false"
  31644. static="true" final="false" visibility="public"
  31645. deprecated="not deprecated">
  31646. <param name="args" type="java.lang.String[]"/>
  31647. </method>
  31648. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  31649. abstract="false" native="false" synchronized="false"
  31650. static="false" final="true" visibility="public"
  31651. deprecated="not deprecated">
  31652. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31653. </method>
  31654. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  31655. abstract="false" native="false" synchronized="false"
  31656. static="false" final="true" visibility="public"
  31657. deprecated="not deprecated">
  31658. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31659. </method>
  31660. <method name="Module" return="java.util.ArrayList"
  31661. abstract="false" native="false" synchronized="false"
  31662. static="false" final="true" visibility="public"
  31663. deprecated="not deprecated">
  31664. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31665. </method>
  31666. <method name="ModuleName" return="java.lang.String"
  31667. abstract="false" native="false" synchronized="false"
  31668. static="false" final="true" visibility="public"
  31669. deprecated="not deprecated">
  31670. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31671. </method>
  31672. <method name="RecordList" return="java.util.ArrayList"
  31673. abstract="false" native="false" synchronized="false"
  31674. static="false" final="true" visibility="public"
  31675. deprecated="not deprecated">
  31676. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31677. </method>
  31678. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  31679. abstract="false" native="false" synchronized="false"
  31680. static="false" final="true" visibility="public"
  31681. deprecated="not deprecated">
  31682. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31683. </method>
  31684. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  31685. abstract="false" native="false" synchronized="false"
  31686. static="false" final="true" visibility="public"
  31687. deprecated="not deprecated">
  31688. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31689. </method>
  31690. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  31691. abstract="false" native="false" synchronized="false"
  31692. static="false" final="true" visibility="public"
  31693. deprecated="not deprecated">
  31694. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31695. </method>
  31696. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  31697. abstract="false" native="false" synchronized="false"
  31698. static="false" final="true" visibility="public"
  31699. deprecated="not deprecated">
  31700. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31701. </method>
  31702. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  31703. abstract="false" native="false" synchronized="false"
  31704. static="false" final="true" visibility="public"
  31705. deprecated="not deprecated">
  31706. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31707. </method>
  31708. <method name="ReInit"
  31709. abstract="false" native="false" synchronized="false"
  31710. static="false" final="false" visibility="public"
  31711. deprecated="not deprecated">
  31712. <param name="stream" type="java.io.InputStream"/>
  31713. </method>
  31714. <method name="ReInit"
  31715. abstract="false" native="false" synchronized="false"
  31716. static="false" final="false" visibility="public"
  31717. deprecated="not deprecated">
  31718. <param name="stream" type="java.io.InputStream"/>
  31719. <param name="encoding" type="java.lang.String"/>
  31720. </method>
  31721. <method name="ReInit"
  31722. abstract="false" native="false" synchronized="false"
  31723. static="false" final="false" visibility="public"
  31724. deprecated="not deprecated">
  31725. <param name="stream" type="java.io.Reader"/>
  31726. </method>
  31727. <method name="ReInit"
  31728. abstract="false" native="false" synchronized="false"
  31729. static="false" final="false" visibility="public"
  31730. deprecated="not deprecated">
  31731. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  31732. </method>
  31733. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31734. abstract="false" native="false" synchronized="false"
  31735. static="false" final="true" visibility="public"
  31736. deprecated="not deprecated">
  31737. </method>
  31738. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31739. abstract="false" native="false" synchronized="false"
  31740. static="false" final="true" visibility="public"
  31741. deprecated="not deprecated">
  31742. <param name="index" type="int"/>
  31743. </method>
  31744. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  31745. abstract="false" native="false" synchronized="false"
  31746. static="false" final="false" visibility="public"
  31747. deprecated="not deprecated">
  31748. </method>
  31749. <method name="enable_tracing"
  31750. abstract="false" native="false" synchronized="false"
  31751. static="false" final="true" visibility="public"
  31752. deprecated="not deprecated">
  31753. </method>
  31754. <method name="disable_tracing"
  31755. abstract="false" native="false" synchronized="false"
  31756. static="false" final="true" visibility="public"
  31757. deprecated="not deprecated">
  31758. </method>
  31759. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31760. transient="false" volatile="false"
  31761. static="false" final="false" visibility="public"
  31762. deprecated="not deprecated">
  31763. </field>
  31764. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  31765. transient="false" volatile="false"
  31766. static="false" final="false" visibility="public"
  31767. deprecated="not deprecated">
  31768. </field>
  31769. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  31770. transient="false" volatile="false"
  31771. static="false" final="false" visibility="public"
  31772. deprecated="not deprecated">
  31773. </field>
  31774. </class>
  31775. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  31776. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31777. <interface name="RccConstants" abstract="true"
  31778. static="false" final="false" visibility="public"
  31779. deprecated="not deprecated">
  31780. <field name="EOF" type="int"
  31781. transient="false" volatile="false"
  31782. static="true" final="true" visibility="public"
  31783. deprecated="not deprecated">
  31784. </field>
  31785. <field name="MODULE_TKN" type="int"
  31786. transient="false" volatile="false"
  31787. static="true" final="true" visibility="public"
  31788. deprecated="not deprecated">
  31789. </field>
  31790. <field name="RECORD_TKN" type="int"
  31791. transient="false" volatile="false"
  31792. static="true" final="true" visibility="public"
  31793. deprecated="not deprecated">
  31794. </field>
  31795. <field name="INCLUDE_TKN" type="int"
  31796. transient="false" volatile="false"
  31797. static="true" final="true" visibility="public"
  31798. deprecated="not deprecated">
  31799. </field>
  31800. <field name="BYTE_TKN" type="int"
  31801. transient="false" volatile="false"
  31802. static="true" final="true" visibility="public"
  31803. deprecated="not deprecated">
  31804. </field>
  31805. <field name="BOOLEAN_TKN" type="int"
  31806. transient="false" volatile="false"
  31807. static="true" final="true" visibility="public"
  31808. deprecated="not deprecated">
  31809. </field>
  31810. <field name="INT_TKN" type="int"
  31811. transient="false" volatile="false"
  31812. static="true" final="true" visibility="public"
  31813. deprecated="not deprecated">
  31814. </field>
  31815. <field name="LONG_TKN" type="int"
  31816. transient="false" volatile="false"
  31817. static="true" final="true" visibility="public"
  31818. deprecated="not deprecated">
  31819. </field>
  31820. <field name="FLOAT_TKN" type="int"
  31821. transient="false" volatile="false"
  31822. static="true" final="true" visibility="public"
  31823. deprecated="not deprecated">
  31824. </field>
  31825. <field name="DOUBLE_TKN" type="int"
  31826. transient="false" volatile="false"
  31827. static="true" final="true" visibility="public"
  31828. deprecated="not deprecated">
  31829. </field>
  31830. <field name="USTRING_TKN" type="int"
  31831. transient="false" volatile="false"
  31832. static="true" final="true" visibility="public"
  31833. deprecated="not deprecated">
  31834. </field>
  31835. <field name="BUFFER_TKN" type="int"
  31836. transient="false" volatile="false"
  31837. static="true" final="true" visibility="public"
  31838. deprecated="not deprecated">
  31839. </field>
  31840. <field name="VECTOR_TKN" type="int"
  31841. transient="false" volatile="false"
  31842. static="true" final="true" visibility="public"
  31843. deprecated="not deprecated">
  31844. </field>
  31845. <field name="MAP_TKN" type="int"
  31846. transient="false" volatile="false"
  31847. static="true" final="true" visibility="public"
  31848. deprecated="not deprecated">
  31849. </field>
  31850. <field name="LBRACE_TKN" type="int"
  31851. transient="false" volatile="false"
  31852. static="true" final="true" visibility="public"
  31853. deprecated="not deprecated">
  31854. </field>
  31855. <field name="RBRACE_TKN" type="int"
  31856. transient="false" volatile="false"
  31857. static="true" final="true" visibility="public"
  31858. deprecated="not deprecated">
  31859. </field>
  31860. <field name="LT_TKN" type="int"
  31861. transient="false" volatile="false"
  31862. static="true" final="true" visibility="public"
  31863. deprecated="not deprecated">
  31864. </field>
  31865. <field name="GT_TKN" type="int"
  31866. transient="false" volatile="false"
  31867. static="true" final="true" visibility="public"
  31868. deprecated="not deprecated">
  31869. </field>
  31870. <field name="SEMICOLON_TKN" type="int"
  31871. transient="false" volatile="false"
  31872. static="true" final="true" visibility="public"
  31873. deprecated="not deprecated">
  31874. </field>
  31875. <field name="COMMA_TKN" type="int"
  31876. transient="false" volatile="false"
  31877. static="true" final="true" visibility="public"
  31878. deprecated="not deprecated">
  31879. </field>
  31880. <field name="DOT_TKN" type="int"
  31881. transient="false" volatile="false"
  31882. static="true" final="true" visibility="public"
  31883. deprecated="not deprecated">
  31884. </field>
  31885. <field name="CSTRING_TKN" type="int"
  31886. transient="false" volatile="false"
  31887. static="true" final="true" visibility="public"
  31888. deprecated="not deprecated">
  31889. </field>
  31890. <field name="IDENT_TKN" type="int"
  31891. transient="false" volatile="false"
  31892. static="true" final="true" visibility="public"
  31893. deprecated="not deprecated">
  31894. </field>
  31895. <field name="DEFAULT" type="int"
  31896. transient="false" volatile="false"
  31897. static="true" final="true" visibility="public"
  31898. deprecated="not deprecated">
  31899. </field>
  31900. <field name="WithinOneLineComment" type="int"
  31901. transient="false" volatile="false"
  31902. static="true" final="true" visibility="public"
  31903. deprecated="not deprecated">
  31904. </field>
  31905. <field name="WithinMultiLineComment" type="int"
  31906. transient="false" volatile="false"
  31907. static="true" final="true" visibility="public"
  31908. deprecated="not deprecated">
  31909. </field>
  31910. <field name="tokenImage" type="java.lang.String[]"
  31911. transient="false" volatile="false"
  31912. static="true" final="true" visibility="public"
  31913. deprecated="not deprecated">
  31914. </field>
  31915. </interface>
  31916. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31917. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31918. <class name="RccTokenManager" extends="java.lang.Object"
  31919. abstract="false"
  31920. static="false" final="false" visibility="public"
  31921. deprecated="not deprecated">
  31922. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31923. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31924. static="false" final="false" visibility="public"
  31925. deprecated="not deprecated">
  31926. </constructor>
  31927. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  31928. static="false" final="false" visibility="public"
  31929. deprecated="not deprecated">
  31930. </constructor>
  31931. <method name="setDebugStream"
  31932. abstract="false" native="false" synchronized="false"
  31933. static="false" final="false" visibility="public"
  31934. deprecated="not deprecated">
  31935. <param name="ds" type="java.io.PrintStream"/>
  31936. </method>
  31937. <method name="ReInit"
  31938. abstract="false" native="false" synchronized="false"
  31939. static="false" final="false" visibility="public"
  31940. deprecated="not deprecated">
  31941. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31942. </method>
  31943. <method name="ReInit"
  31944. abstract="false" native="false" synchronized="false"
  31945. static="false" final="false" visibility="public"
  31946. deprecated="not deprecated">
  31947. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31948. <param name="lexState" type="int"/>
  31949. </method>
  31950. <method name="SwitchTo"
  31951. abstract="false" native="false" synchronized="false"
  31952. static="false" final="false" visibility="public"
  31953. deprecated="not deprecated">
  31954. <param name="lexState" type="int"/>
  31955. </method>
  31956. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31957. abstract="false" native="false" synchronized="false"
  31958. static="false" final="false" visibility="protected"
  31959. deprecated="not deprecated">
  31960. </method>
  31961. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31962. abstract="false" native="false" synchronized="false"
  31963. static="false" final="false" visibility="public"
  31964. deprecated="not deprecated">
  31965. </method>
  31966. <field name="debugStream" type="java.io.PrintStream"
  31967. transient="false" volatile="false"
  31968. static="false" final="false" visibility="public"
  31969. deprecated="not deprecated">
  31970. </field>
  31971. <field name="jjstrLiteralImages" type="java.lang.String[]"
  31972. transient="false" volatile="false"
  31973. static="true" final="true" visibility="public"
  31974. deprecated="not deprecated">
  31975. </field>
  31976. <field name="lexStateNames" type="java.lang.String[]"
  31977. transient="false" volatile="false"
  31978. static="true" final="true" visibility="public"
  31979. deprecated="not deprecated">
  31980. </field>
  31981. <field name="jjnewLexState" type="int[]"
  31982. transient="false" volatile="false"
  31983. static="true" final="true" visibility="public"
  31984. deprecated="not deprecated">
  31985. </field>
  31986. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31987. transient="false" volatile="false"
  31988. static="false" final="false" visibility="protected"
  31989. deprecated="not deprecated">
  31990. </field>
  31991. <field name="curChar" type="char"
  31992. transient="false" volatile="false"
  31993. static="false" final="false" visibility="protected"
  31994. deprecated="not deprecated">
  31995. </field>
  31996. </class>
  31997. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31998. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  31999. <class name="SimpleCharStream" extends="java.lang.Object"
  32000. abstract="false"
  32001. static="false" final="false" visibility="public"
  32002. deprecated="not deprecated">
  32003. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  32004. static="false" final="false" visibility="public"
  32005. deprecated="not deprecated">
  32006. </constructor>
  32007. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  32008. static="false" final="false" visibility="public"
  32009. deprecated="not deprecated">
  32010. </constructor>
  32011. <constructor name="SimpleCharStream" type="java.io.Reader"
  32012. static="false" final="false" visibility="public"
  32013. deprecated="not deprecated">
  32014. </constructor>
  32015. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  32016. static="false" final="false" visibility="public"
  32017. deprecated="not deprecated">
  32018. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32019. </constructor>
  32020. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  32021. static="false" final="false" visibility="public"
  32022. deprecated="not deprecated">
  32023. </constructor>
  32024. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  32025. static="false" final="false" visibility="public"
  32026. deprecated="not deprecated">
  32027. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32028. </constructor>
  32029. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  32030. static="false" final="false" visibility="public"
  32031. deprecated="not deprecated">
  32032. </constructor>
  32033. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  32034. static="false" final="false" visibility="public"
  32035. deprecated="not deprecated">
  32036. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32037. </constructor>
  32038. <constructor name="SimpleCharStream" type="java.io.InputStream"
  32039. static="false" final="false" visibility="public"
  32040. deprecated="not deprecated">
  32041. </constructor>
  32042. <method name="setTabSize"
  32043. abstract="false" native="false" synchronized="false"
  32044. static="false" final="false" visibility="protected"
  32045. deprecated="not deprecated">
  32046. <param name="i" type="int"/>
  32047. </method>
  32048. <method name="getTabSize" return="int"
  32049. abstract="false" native="false" synchronized="false"
  32050. static="false" final="false" visibility="protected"
  32051. deprecated="not deprecated">
  32052. <param name="i" type="int"/>
  32053. </method>
  32054. <method name="ExpandBuff"
  32055. abstract="false" native="false" synchronized="false"
  32056. static="false" final="false" visibility="protected"
  32057. deprecated="not deprecated">
  32058. <param name="wrapAround" type="boolean"/>
  32059. </method>
  32060. <method name="FillBuff"
  32061. abstract="false" native="false" synchronized="false"
  32062. static="false" final="false" visibility="protected"
  32063. deprecated="not deprecated">
  32064. <exception name="IOException" type="java.io.IOException"/>
  32065. </method>
  32066. <method name="BeginToken" return="char"
  32067. abstract="false" native="false" synchronized="false"
  32068. static="false" final="false" visibility="public"
  32069. deprecated="not deprecated">
  32070. <exception name="IOException" type="java.io.IOException"/>
  32071. </method>
  32072. <method name="UpdateLineColumn"
  32073. abstract="false" native="false" synchronized="false"
  32074. static="false" final="false" visibility="protected"
  32075. deprecated="not deprecated">
  32076. <param name="c" type="char"/>
  32077. </method>
  32078. <method name="readChar" return="char"
  32079. abstract="false" native="false" synchronized="false"
  32080. static="false" final="false" visibility="public"
  32081. deprecated="not deprecated">
  32082. <exception name="IOException" type="java.io.IOException"/>
  32083. </method>
  32084. <method name="getEndColumn" return="int"
  32085. abstract="false" native="false" synchronized="false"
  32086. static="false" final="false" visibility="public"
  32087. deprecated="not deprecated">
  32088. </method>
  32089. <method name="getEndLine" return="int"
  32090. abstract="false" native="false" synchronized="false"
  32091. static="false" final="false" visibility="public"
  32092. deprecated="not deprecated">
  32093. </method>
  32094. <method name="getBeginColumn" return="int"
  32095. abstract="false" native="false" synchronized="false"
  32096. static="false" final="false" visibility="public"
  32097. deprecated="not deprecated">
  32098. </method>
  32099. <method name="getBeginLine" return="int"
  32100. abstract="false" native="false" synchronized="false"
  32101. static="false" final="false" visibility="public"
  32102. deprecated="not deprecated">
  32103. </method>
  32104. <method name="backup"
  32105. abstract="false" native="false" synchronized="false"
  32106. static="false" final="false" visibility="public"
  32107. deprecated="not deprecated">
  32108. <param name="amount" type="int"/>
  32109. </method>
  32110. <method name="ReInit"
  32111. abstract="false" native="false" synchronized="false"
  32112. static="false" final="false" visibility="public"
  32113. deprecated="not deprecated">
  32114. <param name="dstream" type="java.io.Reader"/>
  32115. <param name="startline" type="int"/>
  32116. <param name="startcolumn" type="int"/>
  32117. <param name="buffersize" type="int"/>
  32118. </method>
  32119. <method name="ReInit"
  32120. abstract="false" native="false" synchronized="false"
  32121. static="false" final="false" visibility="public"
  32122. deprecated="not deprecated">
  32123. <param name="dstream" type="java.io.Reader"/>
  32124. <param name="startline" type="int"/>
  32125. <param name="startcolumn" type="int"/>
  32126. </method>
  32127. <method name="ReInit"
  32128. abstract="false" native="false" synchronized="false"
  32129. static="false" final="false" visibility="public"
  32130. deprecated="not deprecated">
  32131. <param name="dstream" type="java.io.Reader"/>
  32132. </method>
  32133. <method name="ReInit"
  32134. abstract="false" native="false" synchronized="false"
  32135. static="false" final="false" visibility="public"
  32136. deprecated="not deprecated">
  32137. <param name="dstream" type="java.io.InputStream"/>
  32138. <param name="encoding" type="java.lang.String"/>
  32139. <param name="startline" type="int"/>
  32140. <param name="startcolumn" type="int"/>
  32141. <param name="buffersize" type="int"/>
  32142. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32143. </method>
  32144. <method name="ReInit"
  32145. abstract="false" native="false" synchronized="false"
  32146. static="false" final="false" visibility="public"
  32147. deprecated="not deprecated">
  32148. <param name="dstream" type="java.io.InputStream"/>
  32149. <param name="startline" type="int"/>
  32150. <param name="startcolumn" type="int"/>
  32151. <param name="buffersize" type="int"/>
  32152. </method>
  32153. <method name="ReInit"
  32154. abstract="false" native="false" synchronized="false"
  32155. static="false" final="false" visibility="public"
  32156. deprecated="not deprecated">
  32157. <param name="dstream" type="java.io.InputStream"/>
  32158. <param name="encoding" type="java.lang.String"/>
  32159. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32160. </method>
  32161. <method name="ReInit"
  32162. abstract="false" native="false" synchronized="false"
  32163. static="false" final="false" visibility="public"
  32164. deprecated="not deprecated">
  32165. <param name="dstream" type="java.io.InputStream"/>
  32166. </method>
  32167. <method name="ReInit"
  32168. abstract="false" native="false" synchronized="false"
  32169. static="false" final="false" visibility="public"
  32170. deprecated="not deprecated">
  32171. <param name="dstream" type="java.io.InputStream"/>
  32172. <param name="encoding" type="java.lang.String"/>
  32173. <param name="startline" type="int"/>
  32174. <param name="startcolumn" type="int"/>
  32175. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32176. </method>
  32177. <method name="ReInit"
  32178. abstract="false" native="false" synchronized="false"
  32179. static="false" final="false" visibility="public"
  32180. deprecated="not deprecated">
  32181. <param name="dstream" type="java.io.InputStream"/>
  32182. <param name="startline" type="int"/>
  32183. <param name="startcolumn" type="int"/>
  32184. </method>
  32185. <method name="GetImage" return="java.lang.String"
  32186. abstract="false" native="false" synchronized="false"
  32187. static="false" final="false" visibility="public"
  32188. deprecated="not deprecated">
  32189. </method>
  32190. <method name="GetSuffix" return="char[]"
  32191. abstract="false" native="false" synchronized="false"
  32192. static="false" final="false" visibility="public"
  32193. deprecated="not deprecated">
  32194. <param name="len" type="int"/>
  32195. </method>
  32196. <method name="Done"
  32197. abstract="false" native="false" synchronized="false"
  32198. static="false" final="false" visibility="public"
  32199. deprecated="not deprecated">
  32200. </method>
  32201. <method name="adjustBeginLineColumn"
  32202. abstract="false" native="false" synchronized="false"
  32203. static="false" final="false" visibility="public"
  32204. deprecated="not deprecated">
  32205. <param name="newLine" type="int"/>
  32206. <param name="newCol" type="int"/>
  32207. <doc>
  32208. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  32209. </doc>
  32210. </method>
  32211. <field name="staticFlag" type="boolean"
  32212. transient="false" volatile="false"
  32213. static="true" final="true" visibility="public"
  32214. deprecated="not deprecated">
  32215. </field>
  32216. <field name="bufpos" type="int"
  32217. transient="false" volatile="false"
  32218. static="false" final="false" visibility="public"
  32219. deprecated="not deprecated">
  32220. </field>
  32221. <field name="bufline" type="int[]"
  32222. transient="false" volatile="false"
  32223. static="false" final="false" visibility="protected"
  32224. deprecated="not deprecated">
  32225. </field>
  32226. <field name="bufcolumn" type="int[]"
  32227. transient="false" volatile="false"
  32228. static="false" final="false" visibility="protected"
  32229. deprecated="not deprecated">
  32230. </field>
  32231. <field name="column" type="int"
  32232. transient="false" volatile="false"
  32233. static="false" final="false" visibility="protected"
  32234. deprecated="not deprecated">
  32235. </field>
  32236. <field name="line" type="int"
  32237. transient="false" volatile="false"
  32238. static="false" final="false" visibility="protected"
  32239. deprecated="not deprecated">
  32240. </field>
  32241. <field name="prevCharIsCR" type="boolean"
  32242. transient="false" volatile="false"
  32243. static="false" final="false" visibility="protected"
  32244. deprecated="not deprecated">
  32245. </field>
  32246. <field name="prevCharIsLF" type="boolean"
  32247. transient="false" volatile="false"
  32248. static="false" final="false" visibility="protected"
  32249. deprecated="not deprecated">
  32250. </field>
  32251. <field name="inputStream" type="java.io.Reader"
  32252. transient="false" volatile="false"
  32253. static="false" final="false" visibility="protected"
  32254. deprecated="not deprecated">
  32255. </field>
  32256. <field name="buffer" type="char[]"
  32257. transient="false" volatile="false"
  32258. static="false" final="false" visibility="protected"
  32259. deprecated="not deprecated">
  32260. </field>
  32261. <field name="maxNextCharInd" type="int"
  32262. transient="false" volatile="false"
  32263. static="false" final="false" visibility="protected"
  32264. deprecated="not deprecated">
  32265. </field>
  32266. <field name="inBuf" type="int"
  32267. transient="false" volatile="false"
  32268. static="false" final="false" visibility="protected"
  32269. deprecated="not deprecated">
  32270. </field>
  32271. <field name="tabSize" type="int"
  32272. transient="false" volatile="false"
  32273. static="false" final="false" visibility="protected"
  32274. deprecated="not deprecated">
  32275. </field>
  32276. <doc>
  32277. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  32278. contain only ASCII characters (without unicode processing).]]>
  32279. </doc>
  32280. </class>
  32281. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32282. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  32283. <class name="Token" extends="java.lang.Object"
  32284. abstract="false"
  32285. static="false" final="false" visibility="public"
  32286. deprecated="not deprecated">
  32287. <constructor name="Token"
  32288. static="false" final="false" visibility="public"
  32289. deprecated="not deprecated">
  32290. </constructor>
  32291. <method name="toString" return="java.lang.String"
  32292. abstract="false" native="false" synchronized="false"
  32293. static="false" final="false" visibility="public"
  32294. deprecated="not deprecated">
  32295. <doc>
  32296. <![CDATA[Returns the image.]]>
  32297. </doc>
  32298. </method>
  32299. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32300. abstract="false" native="false" synchronized="false"
  32301. static="true" final="true" visibility="public"
  32302. deprecated="not deprecated">
  32303. <param name="ofKind" type="int"/>
  32304. <doc>
  32305. <![CDATA[Returns a new Token object, by default. However, if you want, you
  32306. can create and return subclass objects based on the value of ofKind.
  32307. Simply add the cases to the switch for all those special cases.
  32308. For example, if you have a subclass of Token called IDToken that
  32309. you want to create if ofKind is ID, simlpy add something like :
  32310. case MyParserConstants.ID : return new IDToken();
  32311. to the following switch statement. Then you can cast matchedToken
  32312. variable to the appropriate type and use it in your lexical actions.]]>
  32313. </doc>
  32314. </method>
  32315. <field name="kind" type="int"
  32316. transient="false" volatile="false"
  32317. static="false" final="false" visibility="public"
  32318. deprecated="not deprecated">
  32319. <doc>
  32320. <![CDATA[An integer that describes the kind of this token. This numbering
  32321. system is determined by JavaCCParser, and a table of these numbers is
  32322. stored in the file ...Constants.java.]]>
  32323. </doc>
  32324. </field>
  32325. <field name="beginLine" type="int"
  32326. transient="false" volatile="false"
  32327. static="false" final="false" visibility="public"
  32328. deprecated="not deprecated">
  32329. <doc>
  32330. <![CDATA[beginLine and beginColumn describe the position of the first character
  32331. of this token; endLine and endColumn describe the position of the
  32332. last character of this token.]]>
  32333. </doc>
  32334. </field>
  32335. <field name="beginColumn" type="int"
  32336. transient="false" volatile="false"
  32337. static="false" final="false" visibility="public"
  32338. deprecated="not deprecated">
  32339. <doc>
  32340. <![CDATA[beginLine and beginColumn describe the position of the first character
  32341. of this token; endLine and endColumn describe the position of the
  32342. last character of this token.]]>
  32343. </doc>
  32344. </field>
  32345. <field name="endLine" type="int"
  32346. transient="false" volatile="false"
  32347. static="false" final="false" visibility="public"
  32348. deprecated="not deprecated">
  32349. <doc>
  32350. <![CDATA[beginLine and beginColumn describe the position of the first character
  32351. of this token; endLine and endColumn describe the position of the
  32352. last character of this token.]]>
  32353. </doc>
  32354. </field>
  32355. <field name="endColumn" type="int"
  32356. transient="false" volatile="false"
  32357. static="false" final="false" visibility="public"
  32358. deprecated="not deprecated">
  32359. <doc>
  32360. <![CDATA[beginLine and beginColumn describe the position of the first character
  32361. of this token; endLine and endColumn describe the position of the
  32362. last character of this token.]]>
  32363. </doc>
  32364. </field>
  32365. <field name="image" type="java.lang.String"
  32366. transient="false" volatile="false"
  32367. static="false" final="false" visibility="public"
  32368. deprecated="not deprecated">
  32369. <doc>
  32370. <![CDATA[The string image of the token.]]>
  32371. </doc>
  32372. </field>
  32373. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  32374. transient="false" volatile="false"
  32375. static="false" final="false" visibility="public"
  32376. deprecated="not deprecated">
  32377. <doc>
  32378. <![CDATA[A reference to the next regular (non-special) token from the input
  32379. stream. If this is the last token from the input stream, or if the
  32380. token manager has not read tokens beyond this one, this field is
  32381. set to null. This is true only if this token is also a regular
  32382. token. Otherwise, see below for a description of the contents of
  32383. this field.]]>
  32384. </doc>
  32385. </field>
  32386. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32387. transient="false" volatile="false"
  32388. static="false" final="false" visibility="public"
  32389. deprecated="not deprecated">
  32390. <doc>
  32391. <![CDATA[This field is used to access special tokens that occur prior to this
  32392. token, but after the immediately preceding regular (non-special) token.
  32393. If there are no such special tokens, this field is set to null.
  32394. When there are more than one such special token, this field refers
  32395. to the last of these special tokens, which in turn refers to the next
  32396. previous special token through its specialToken field, and so on
  32397. until the first special token (whose specialToken field is null).
  32398. The next fields of special tokens refer to other special tokens that
  32399. immediately follow it (without an intervening regular token). If there
  32400. is no such token, this field is null.]]>
  32401. </doc>
  32402. </field>
  32403. <doc>
  32404. <![CDATA[Describes the input token stream.]]>
  32405. </doc>
  32406. </class>
  32407. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  32408. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32409. <class name="TokenMgrError" extends="java.lang.Error"
  32410. abstract="false"
  32411. static="false" final="false" visibility="public"
  32412. deprecated="not deprecated">
  32413. <constructor name="TokenMgrError"
  32414. static="false" final="false" visibility="public"
  32415. deprecated="not deprecated">
  32416. </constructor>
  32417. <constructor name="TokenMgrError" type="java.lang.String, int"
  32418. static="false" final="false" visibility="public"
  32419. deprecated="not deprecated">
  32420. </constructor>
  32421. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  32422. static="false" final="false" visibility="public"
  32423. deprecated="not deprecated">
  32424. </constructor>
  32425. <method name="addEscapes" return="java.lang.String"
  32426. abstract="false" native="false" synchronized="false"
  32427. static="true" final="true" visibility="protected"
  32428. deprecated="not deprecated">
  32429. <param name="str" type="java.lang.String"/>
  32430. <doc>
  32431. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  32432. equivalents in the given string]]>
  32433. </doc>
  32434. </method>
  32435. <method name="LexicalError" return="java.lang.String"
  32436. abstract="false" native="false" synchronized="false"
  32437. static="true" final="false" visibility="protected"
  32438. deprecated="not deprecated">
  32439. <param name="EOFSeen" type="boolean"/>
  32440. <param name="lexState" type="int"/>
  32441. <param name="errorLine" type="int"/>
  32442. <param name="errorColumn" type="int"/>
  32443. <param name="errorAfter" type="java.lang.String"/>
  32444. <param name="curChar" type="char"/>
  32445. <doc>
  32446. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  32447. token manager to indicate a lexical error.
  32448. Parameters :
  32449. EOFSeen : indicates if EOF caused the lexicl error
  32450. curLexState : lexical state in which this error occured
  32451. errorLine : line number when the error occured
  32452. errorColumn : column number when the error occured
  32453. errorAfter : prefix that was seen before this error occured
  32454. curchar : the offending character
  32455. Note: You can customize the lexical error message by modifying this method.]]>
  32456. </doc>
  32457. </method>
  32458. <method name="getMessage" return="java.lang.String"
  32459. abstract="false" native="false" synchronized="false"
  32460. static="false" final="false" visibility="public"
  32461. deprecated="not deprecated">
  32462. <doc>
  32463. <![CDATA[You can also modify the body of this method to customize your error messages.
  32464. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  32465. of end-users concern, so you can return something like :
  32466. "Internal Error : Please file a bug report .... "
  32467. from this method for such cases in the release version of your parser.]]>
  32468. </doc>
  32469. </method>
  32470. </class>
  32471. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32472. </package>
  32473. <package name="org.apache.hadoop.record.meta">
  32474. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32475. <class name="FieldTypeInfo" extends="java.lang.Object"
  32476. abstract="false"
  32477. static="false" final="false" visibility="public"
  32478. deprecated="not deprecated">
  32479. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32480. abstract="false" native="false" synchronized="false"
  32481. static="false" final="false" visibility="public"
  32482. deprecated="not deprecated">
  32483. <doc>
  32484. <![CDATA[get the field's TypeID object]]>
  32485. </doc>
  32486. </method>
  32487. <method name="getFieldID" return="java.lang.String"
  32488. abstract="false" native="false" synchronized="false"
  32489. static="false" final="false" visibility="public"
  32490. deprecated="not deprecated">
  32491. <doc>
  32492. <![CDATA[get the field's id (name)]]>
  32493. </doc>
  32494. </method>
  32495. <method name="equals" return="boolean"
  32496. abstract="false" native="false" synchronized="false"
  32497. static="false" final="false" visibility="public"
  32498. deprecated="not deprecated">
  32499. <param name="o" type="java.lang.Object"/>
  32500. <doc>
  32501. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  32502. </doc>
  32503. </method>
  32504. <method name="hashCode" return="int"
  32505. abstract="false" native="false" synchronized="false"
  32506. static="false" final="false" visibility="public"
  32507. deprecated="not deprecated">
  32508. <doc>
  32509. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32510. be used as a hashmap key]]>
  32511. </doc>
  32512. </method>
  32513. <method name="equals" return="boolean"
  32514. abstract="false" native="false" synchronized="false"
  32515. static="false" final="false" visibility="public"
  32516. deprecated="not deprecated">
  32517. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  32518. </method>
  32519. <doc>
  32520. <![CDATA[Represents a type information for a field, which is made up of its
  32521. ID (name) and its type (a TypeID object).]]>
  32522. </doc>
  32523. </class>
  32524. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32525. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  32526. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32527. abstract="false"
  32528. static="false" final="false" visibility="public"
  32529. deprecated="not deprecated">
  32530. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  32531. static="false" final="false" visibility="public"
  32532. deprecated="not deprecated">
  32533. </constructor>
  32534. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32535. abstract="false" native="false" synchronized="false"
  32536. static="false" final="false" visibility="public"
  32537. deprecated="not deprecated">
  32538. <doc>
  32539. <![CDATA[get the TypeID of the map's key element]]>
  32540. </doc>
  32541. </method>
  32542. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32543. abstract="false" native="false" synchronized="false"
  32544. static="false" final="false" visibility="public"
  32545. deprecated="not deprecated">
  32546. <doc>
  32547. <![CDATA[get the TypeID of the map's value element]]>
  32548. </doc>
  32549. </method>
  32550. <method name="equals" return="boolean"
  32551. abstract="false" native="false" synchronized="false"
  32552. static="false" final="false" visibility="public"
  32553. deprecated="not deprecated">
  32554. <param name="o" type="java.lang.Object"/>
  32555. <doc>
  32556. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  32557. same type]]>
  32558. </doc>
  32559. </method>
  32560. <method name="hashCode" return="int"
  32561. abstract="false" native="false" synchronized="false"
  32562. static="false" final="false" visibility="public"
  32563. deprecated="not deprecated">
  32564. <doc>
  32565. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32566. be used as a hashmap key]]>
  32567. </doc>
  32568. </method>
  32569. <doc>
  32570. <![CDATA[Represents typeID for a Map]]>
  32571. </doc>
  32572. </class>
  32573. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  32574. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32575. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  32576. abstract="false"
  32577. static="false" final="false" visibility="public"
  32578. deprecated="not deprecated">
  32579. <constructor name="RecordTypeInfo"
  32580. static="false" final="false" visibility="public"
  32581. deprecated="not deprecated">
  32582. <doc>
  32583. <![CDATA[Create an empty RecordTypeInfo object.]]>
  32584. </doc>
  32585. </constructor>
  32586. <constructor name="RecordTypeInfo" type="java.lang.String"
  32587. static="false" final="false" visibility="public"
  32588. deprecated="not deprecated">
  32589. <doc>
  32590. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  32591. @param name Name of the record]]>
  32592. </doc>
  32593. </constructor>
  32594. <method name="getName" return="java.lang.String"
  32595. abstract="false" native="false" synchronized="false"
  32596. static="false" final="false" visibility="public"
  32597. deprecated="not deprecated">
  32598. <doc>
  32599. <![CDATA[return the name of the record]]>
  32600. </doc>
  32601. </method>
  32602. <method name="setName"
  32603. abstract="false" native="false" synchronized="false"
  32604. static="false" final="false" visibility="public"
  32605. deprecated="not deprecated">
  32606. <param name="name" type="java.lang.String"/>
  32607. <doc>
  32608. <![CDATA[set the name of the record]]>
  32609. </doc>
  32610. </method>
  32611. <method name="addField"
  32612. abstract="false" native="false" synchronized="false"
  32613. static="false" final="false" visibility="public"
  32614. deprecated="not deprecated">
  32615. <param name="fieldName" type="java.lang.String"/>
  32616. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  32617. <doc>
  32618. <![CDATA[Add a field.
  32619. @param fieldName Name of the field
  32620. @param tid Type ID of the field]]>
  32621. </doc>
  32622. </method>
  32623. <method name="getFieldTypeInfos" return="java.util.Collection"
  32624. abstract="false" native="false" synchronized="false"
  32625. static="false" final="false" visibility="public"
  32626. deprecated="not deprecated">
  32627. <doc>
  32628. <![CDATA[Return a collection of field type infos]]>
  32629. </doc>
  32630. </method>
  32631. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  32632. abstract="false" native="false" synchronized="false"
  32633. static="false" final="false" visibility="public"
  32634. deprecated="not deprecated">
  32635. <param name="name" type="java.lang.String"/>
  32636. <doc>
  32637. <![CDATA[Return the type info of a nested record. We only consider nesting
  32638. to one level.
  32639. @param name Name of the nested record]]>
  32640. </doc>
  32641. </method>
  32642. <method name="serialize"
  32643. abstract="false" native="false" synchronized="false"
  32644. static="false" final="false" visibility="public"
  32645. deprecated="not deprecated">
  32646. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32647. <param name="tag" type="java.lang.String"/>
  32648. <exception name="IOException" type="java.io.IOException"/>
  32649. <doc>
  32650. <![CDATA[Serialize the type information for a record]]>
  32651. </doc>
  32652. </method>
  32653. <method name="deserialize"
  32654. abstract="false" native="false" synchronized="false"
  32655. static="false" final="false" visibility="public"
  32656. deprecated="not deprecated">
  32657. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32658. <param name="tag" type="java.lang.String"/>
  32659. <exception name="IOException" type="java.io.IOException"/>
  32660. <doc>
  32661. <![CDATA[Deserialize the type information for a record]]>
  32662. </doc>
  32663. </method>
  32664. <method name="compareTo" return="int"
  32665. abstract="false" native="false" synchronized="false"
  32666. static="false" final="false" visibility="public"
  32667. deprecated="not deprecated">
  32668. <param name="peer_" type="java.lang.Object"/>
  32669. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32670. <doc>
  32671. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  32672. for anything besides de/serializing.
  32673. So we always throw an exception.
  32674. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  32675. </doc>
  32676. </method>
  32677. <doc>
  32678. <![CDATA[A record's Type Information object which can read/write itself.
  32679. Type information for a record comprises metadata about the record,
  32680. as well as a collection of type information for each field in the record.]]>
  32681. </doc>
  32682. </class>
  32683. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32684. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  32685. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32686. abstract="false"
  32687. static="false" final="false" visibility="public"
  32688. deprecated="not deprecated">
  32689. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  32690. static="false" final="false" visibility="public"
  32691. deprecated="not deprecated">
  32692. <doc>
  32693. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  32694. </doc>
  32695. </constructor>
  32696. <method name="getFieldTypeInfos" return="java.util.Collection"
  32697. abstract="false" native="false" synchronized="false"
  32698. static="false" final="false" visibility="public"
  32699. deprecated="not deprecated">
  32700. </method>
  32701. <doc>
  32702. <![CDATA[Represents typeID for a struct]]>
  32703. </doc>
  32704. </class>
  32705. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  32706. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  32707. <class name="TypeID" extends="java.lang.Object"
  32708. abstract="false"
  32709. static="false" final="false" visibility="public"
  32710. deprecated="not deprecated">
  32711. <method name="getTypeVal" return="byte"
  32712. abstract="false" native="false" synchronized="false"
  32713. static="false" final="false" visibility="public"
  32714. deprecated="not deprecated">
  32715. <doc>
  32716. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  32717. </doc>
  32718. </method>
  32719. <method name="equals" return="boolean"
  32720. abstract="false" native="false" synchronized="false"
  32721. static="false" final="false" visibility="public"
  32722. deprecated="not deprecated">
  32723. <param name="o" type="java.lang.Object"/>
  32724. <doc>
  32725. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  32726. </doc>
  32727. </method>
  32728. <method name="hashCode" return="int"
  32729. abstract="false" native="false" synchronized="false"
  32730. static="false" final="false" visibility="public"
  32731. deprecated="not deprecated">
  32732. <doc>
  32733. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32734. be used as a hashmap key]]>
  32735. </doc>
  32736. </method>
  32737. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32738. transient="false" volatile="false"
  32739. static="true" final="true" visibility="public"
  32740. deprecated="not deprecated">
  32741. <doc>
  32742. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  32743. </doc>
  32744. </field>
  32745. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32746. transient="false" volatile="false"
  32747. static="true" final="true" visibility="public"
  32748. deprecated="not deprecated">
  32749. </field>
  32750. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32751. transient="false" volatile="false"
  32752. static="true" final="true" visibility="public"
  32753. deprecated="not deprecated">
  32754. </field>
  32755. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32756. transient="false" volatile="false"
  32757. static="true" final="true" visibility="public"
  32758. deprecated="not deprecated">
  32759. </field>
  32760. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32761. transient="false" volatile="false"
  32762. static="true" final="true" visibility="public"
  32763. deprecated="not deprecated">
  32764. </field>
  32765. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32766. transient="false" volatile="false"
  32767. static="true" final="true" visibility="public"
  32768. deprecated="not deprecated">
  32769. </field>
  32770. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32771. transient="false" volatile="false"
  32772. static="true" final="true" visibility="public"
  32773. deprecated="not deprecated">
  32774. </field>
  32775. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32776. transient="false" volatile="false"
  32777. static="true" final="true" visibility="public"
  32778. deprecated="not deprecated">
  32779. </field>
  32780. <field name="typeVal" type="byte"
  32781. transient="false" volatile="false"
  32782. static="false" final="false" visibility="protected"
  32783. deprecated="not deprecated">
  32784. </field>
  32785. <doc>
  32786. <![CDATA[Represents typeID for basic types.]]>
  32787. </doc>
  32788. </class>
  32789. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  32790. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  32791. <class name="TypeID.RIOType" extends="java.lang.Object"
  32792. abstract="false"
  32793. static="true" final="true" visibility="public"
  32794. deprecated="not deprecated">
  32795. <constructor name="TypeID.RIOType"
  32796. static="false" final="false" visibility="public"
  32797. deprecated="not deprecated">
  32798. </constructor>
  32799. <field name="BOOL" type="byte"
  32800. transient="false" volatile="false"
  32801. static="true" final="true" visibility="public"
  32802. deprecated="not deprecated">
  32803. </field>
  32804. <field name="BUFFER" type="byte"
  32805. transient="false" volatile="false"
  32806. static="true" final="true" visibility="public"
  32807. deprecated="not deprecated">
  32808. </field>
  32809. <field name="BYTE" type="byte"
  32810. transient="false" volatile="false"
  32811. static="true" final="true" visibility="public"
  32812. deprecated="not deprecated">
  32813. </field>
  32814. <field name="DOUBLE" type="byte"
  32815. transient="false" volatile="false"
  32816. static="true" final="true" visibility="public"
  32817. deprecated="not deprecated">
  32818. </field>
  32819. <field name="FLOAT" type="byte"
  32820. transient="false" volatile="false"
  32821. static="true" final="true" visibility="public"
  32822. deprecated="not deprecated">
  32823. </field>
  32824. <field name="INT" type="byte"
  32825. transient="false" volatile="false"
  32826. static="true" final="true" visibility="public"
  32827. deprecated="not deprecated">
  32828. </field>
  32829. <field name="LONG" type="byte"
  32830. transient="false" volatile="false"
  32831. static="true" final="true" visibility="public"
  32832. deprecated="not deprecated">
  32833. </field>
  32834. <field name="MAP" type="byte"
  32835. transient="false" volatile="false"
  32836. static="true" final="true" visibility="public"
  32837. deprecated="not deprecated">
  32838. </field>
  32839. <field name="STRING" type="byte"
  32840. transient="false" volatile="false"
  32841. static="true" final="true" visibility="public"
  32842. deprecated="not deprecated">
  32843. </field>
  32844. <field name="STRUCT" type="byte"
  32845. transient="false" volatile="false"
  32846. static="true" final="true" visibility="public"
  32847. deprecated="not deprecated">
  32848. </field>
  32849. <field name="VECTOR" type="byte"
  32850. transient="false" volatile="false"
  32851. static="true" final="true" visibility="public"
  32852. deprecated="not deprecated">
  32853. </field>
  32854. <doc>
  32855. <![CDATA[constants representing the IDL types we support]]>
  32856. </doc>
  32857. </class>
  32858. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  32859. <!-- start class org.apache.hadoop.record.meta.Utils -->
  32860. <class name="Utils" extends="java.lang.Object"
  32861. abstract="false"
  32862. static="false" final="false" visibility="public"
  32863. deprecated="not deprecated">
  32864. <method name="skip"
  32865. abstract="false" native="false" synchronized="false"
  32866. static="true" final="false" visibility="public"
  32867. deprecated="not deprecated">
  32868. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32869. <param name="tag" type="java.lang.String"/>
  32870. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  32871. <exception name="IOException" type="java.io.IOException"/>
  32872. <doc>
  32873. <![CDATA[read/skip bytes from stream based on a type]]>
  32874. </doc>
  32875. </method>
  32876. <doc>
  32877. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  32878. </doc>
  32879. </class>
  32880. <!-- end class org.apache.hadoop.record.meta.Utils -->
  32881. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  32882. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32883. abstract="false"
  32884. static="false" final="false" visibility="public"
  32885. deprecated="not deprecated">
  32886. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32887. static="false" final="false" visibility="public"
  32888. deprecated="not deprecated">
  32889. </constructor>
  32890. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32891. abstract="false" native="false" synchronized="false"
  32892. static="false" final="false" visibility="public"
  32893. deprecated="not deprecated">
  32894. </method>
  32895. <method name="equals" return="boolean"
  32896. abstract="false" native="false" synchronized="false"
  32897. static="false" final="false" visibility="public"
  32898. deprecated="not deprecated">
  32899. <param name="o" type="java.lang.Object"/>
  32900. <doc>
  32901. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  32902. same type]]>
  32903. </doc>
  32904. </method>
  32905. <method name="hashCode" return="int"
  32906. abstract="false" native="false" synchronized="false"
  32907. static="false" final="false" visibility="public"
  32908. deprecated="not deprecated">
  32909. <doc>
  32910. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32911. be used as a hashmap key]]>
  32912. </doc>
  32913. </method>
  32914. <doc>
  32915. <![CDATA[Represents typeID for vector.]]>
  32916. </doc>
  32917. </class>
  32918. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  32919. </package>
  32920. <package name="org.apache.hadoop.security">
  32921. <!-- start class org.apache.hadoop.security.AccessControlException -->
  32922. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  32923. abstract="false"
  32924. static="false" final="false" visibility="public"
  32925. deprecated="not deprecated">
  32926. <constructor name="AccessControlException"
  32927. static="false" final="false" visibility="public"
  32928. deprecated="not deprecated">
  32929. <doc>
  32930. <![CDATA[Default constructor is needed for unwrapping from
  32931. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  32932. </doc>
  32933. </constructor>
  32934. <constructor name="AccessControlException" type="java.lang.String"
  32935. static="false" final="false" visibility="public"
  32936. deprecated="not deprecated">
  32937. <doc>
  32938. <![CDATA[Constructs an {@link AccessControlException}
  32939. with the specified detail message.
  32940. @param s the detail message.]]>
  32941. </doc>
  32942. </constructor>
  32943. <constructor name="AccessControlException" type="java.lang.Throwable"
  32944. static="false" final="false" visibility="public"
  32945. deprecated="not deprecated">
  32946. <doc>
  32947. <![CDATA[Constructs a new exception with the specified cause and a detail
  32948. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32949. typically contains the class and detail message of <tt>cause</tt>).
  32950. @param cause the cause (which is saved for later retrieval by the
  32951. {@link #getCause()} method). (A <tt>null</tt> value is
  32952. permitted, and indicates that the cause is nonexistent or
  32953. unknown.)]]>
  32954. </doc>
  32955. </constructor>
  32956. <doc>
  32957. <![CDATA[An exception class for access control related issues.]]>
  32958. </doc>
  32959. </class>
  32960. <!-- end class org.apache.hadoop.security.AccessControlException -->
  32961. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  32962. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  32963. abstract="false"
  32964. static="false" final="false" visibility="public"
  32965. deprecated="not deprecated">
  32966. <constructor name="AuthenticationFilterInitializer"
  32967. static="false" final="false" visibility="public"
  32968. deprecated="not deprecated">
  32969. </constructor>
  32970. <method name="initFilter"
  32971. abstract="false" native="false" synchronized="false"
  32972. static="false" final="false" visibility="public"
  32973. deprecated="not deprecated">
  32974. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  32975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32976. <doc>
  32977. <![CDATA[Initializes Alfredo AuthenticationFilter.
  32978. <p/>
  32979. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  32980. configuration properties prefixed with "hadoop.http.authentication."
  32981. @param container The filter container
  32982. @param conf Configuration for run-time parameters]]>
  32983. </doc>
  32984. </method>
  32985. <doc>
  32986. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  32987. Kerberos HTTP SPENGO authentication.
  32988. <p/>
  32989. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  32990. authentication for Hadoop JobTracker, NameNode, DataNodes and
  32991. TaskTrackers.
  32992. <p/>
  32993. Refer to the <code>core-default.xml</code> file, after the comment
  32994. 'HTTP Authentication' for details on the configuration options.
  32995. All related configuration properties have 'hadoop.http.authentication.'
  32996. as prefix.]]>
  32997. </doc>
  32998. </class>
  32999. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  33000. <!-- start class org.apache.hadoop.security.Credentials -->
  33001. <class name="Credentials" extends="java.lang.Object"
  33002. abstract="false"
  33003. static="false" final="false" visibility="public"
  33004. deprecated="not deprecated">
  33005. <implements name="org.apache.hadoop.io.Writable"/>
  33006. <constructor name="Credentials"
  33007. static="false" final="false" visibility="public"
  33008. deprecated="not deprecated">
  33009. </constructor>
  33010. <method name="getSecretKey" return="byte[]"
  33011. abstract="false" native="false" synchronized="false"
  33012. static="false" final="false" visibility="public"
  33013. deprecated="not deprecated">
  33014. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33015. <doc>
  33016. <![CDATA[Returns the key bytes for the alias
  33017. @param alias the alias for the key
  33018. @return key for this alias]]>
  33019. </doc>
  33020. </method>
  33021. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  33022. abstract="false" native="false" synchronized="false"
  33023. static="false" final="false" visibility="public"
  33024. deprecated="not deprecated">
  33025. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33026. <doc>
  33027. <![CDATA[Returns the Token object for the alias
  33028. @param alias the alias for the Token
  33029. @return token for this alias]]>
  33030. </doc>
  33031. </method>
  33032. <method name="addToken"
  33033. abstract="false" native="false" synchronized="false"
  33034. static="false" final="false" visibility="public"
  33035. deprecated="not deprecated">
  33036. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33037. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  33038. <doc>
  33039. <![CDATA[Add a token in the storage (in memory)
  33040. @param alias the alias for the key
  33041. @param t the token object]]>
  33042. </doc>
  33043. </method>
  33044. <method name="getAllTokens" return="java.util.Collection"
  33045. abstract="false" native="false" synchronized="false"
  33046. static="false" final="false" visibility="public"
  33047. deprecated="not deprecated">
  33048. <doc>
  33049. <![CDATA[Return all the tokens in the in-memory map]]>
  33050. </doc>
  33051. </method>
  33052. <method name="numberOfTokens" return="int"
  33053. abstract="false" native="false" synchronized="false"
  33054. static="false" final="false" visibility="public"
  33055. deprecated="not deprecated">
  33056. <doc>
  33057. <![CDATA[@return number of Tokens in the in-memory map]]>
  33058. </doc>
  33059. </method>
  33060. <method name="numberOfSecretKeys" return="int"
  33061. abstract="false" native="false" synchronized="false"
  33062. static="false" final="false" visibility="public"
  33063. deprecated="not deprecated">
  33064. <doc>
  33065. <![CDATA[@return number of keys in the in-memory map]]>
  33066. </doc>
  33067. </method>
  33068. <method name="addSecretKey"
  33069. abstract="false" native="false" synchronized="false"
  33070. static="false" final="false" visibility="public"
  33071. deprecated="not deprecated">
  33072. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33073. <param name="key" type="byte[]"/>
  33074. <doc>
  33075. <![CDATA[Set the key for an alias
  33076. @param alias the alias for the key
  33077. @param key the key bytes]]>
  33078. </doc>
  33079. </method>
  33080. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  33081. abstract="false" native="false" synchronized="false"
  33082. static="true" final="false" visibility="public"
  33083. deprecated="not deprecated">
  33084. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33085. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33086. <exception name="IOException" type="java.io.IOException"/>
  33087. <doc>
  33088. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  33089. therein in the passed UGI
  33090. @param filename
  33091. @param conf
  33092. @throws IOException]]>
  33093. </doc>
  33094. </method>
  33095. <method name="readTokenStorageStream"
  33096. abstract="false" native="false" synchronized="false"
  33097. static="false" final="false" visibility="public"
  33098. deprecated="not deprecated">
  33099. <param name="in" type="java.io.DataInputStream"/>
  33100. <exception name="IOException" type="java.io.IOException"/>
  33101. <doc>
  33102. <![CDATA[Convenience method for reading a token storage file directly from a
  33103. datainputstream]]>
  33104. </doc>
  33105. </method>
  33106. <method name="writeTokenStorageToStream"
  33107. abstract="false" native="false" synchronized="false"
  33108. static="false" final="false" visibility="public"
  33109. deprecated="not deprecated">
  33110. <param name="os" type="java.io.DataOutputStream"/>
  33111. <exception name="IOException" type="java.io.IOException"/>
  33112. </method>
  33113. <method name="writeTokenStorageFile"
  33114. abstract="false" native="false" synchronized="false"
  33115. static="false" final="false" visibility="public"
  33116. deprecated="not deprecated">
  33117. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33118. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33119. <exception name="IOException" type="java.io.IOException"/>
  33120. </method>
  33121. <method name="write"
  33122. abstract="false" native="false" synchronized="false"
  33123. static="false" final="false" visibility="public"
  33124. deprecated="not deprecated">
  33125. <param name="out" type="java.io.DataOutput"/>
  33126. <exception name="IOException" type="java.io.IOException"/>
  33127. <doc>
  33128. <![CDATA[Stores all the keys to DataOutput
  33129. @param out
  33130. @throws IOException]]>
  33131. </doc>
  33132. </method>
  33133. <method name="readFields"
  33134. abstract="false" native="false" synchronized="false"
  33135. static="false" final="false" visibility="public"
  33136. deprecated="not deprecated">
  33137. <param name="in" type="java.io.DataInput"/>
  33138. <exception name="IOException" type="java.io.IOException"/>
  33139. <doc>
  33140. <![CDATA[Loads all the keys
  33141. @param in
  33142. @throws IOException]]>
  33143. </doc>
  33144. </method>
  33145. <method name="addAll"
  33146. abstract="false" native="false" synchronized="false"
  33147. static="false" final="false" visibility="public"
  33148. deprecated="not deprecated">
  33149. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  33150. <doc>
  33151. <![CDATA[Copy all of the credentials from one credential object into another.
  33152. @param other the credentials to copy]]>
  33153. </doc>
  33154. </method>
  33155. <doc>
  33156. <![CDATA[A class that provides the facilities of reading and writing
  33157. secret keys and Tokens.]]>
  33158. </doc>
  33159. </class>
  33160. <!-- end class org.apache.hadoop.security.Credentials -->
  33161. <!-- start class org.apache.hadoop.security.Groups -->
  33162. <class name="Groups" extends="java.lang.Object"
  33163. abstract="false"
  33164. static="false" final="false" visibility="public"
  33165. deprecated="not deprecated">
  33166. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  33167. static="false" final="false" visibility="public"
  33168. deprecated="not deprecated">
  33169. </constructor>
  33170. <method name="getGroups" return="java.util.List"
  33171. abstract="false" native="false" synchronized="false"
  33172. static="false" final="false" visibility="public"
  33173. deprecated="not deprecated">
  33174. <param name="user" type="java.lang.String"/>
  33175. <exception name="IOException" type="java.io.IOException"/>
  33176. <doc>
  33177. <![CDATA[Get the group memberships of a given user.
  33178. @param user User's name
  33179. @return the group memberships of the user
  33180. @throws IOException]]>
  33181. </doc>
  33182. </method>
  33183. <method name="refresh"
  33184. abstract="false" native="false" synchronized="false"
  33185. static="false" final="false" visibility="public"
  33186. deprecated="not deprecated">
  33187. <doc>
  33188. <![CDATA[Refresh all user-to-groups mappings.]]>
  33189. </doc>
  33190. </method>
  33191. <method name="cacheGroupsAdd"
  33192. abstract="false" native="false" synchronized="false"
  33193. static="false" final="false" visibility="public"
  33194. deprecated="not deprecated">
  33195. <param name="groups" type="java.util.List"/>
  33196. </method>
  33197. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33198. abstract="false" native="false" synchronized="false"
  33199. static="true" final="false" visibility="public"
  33200. deprecated="not deprecated">
  33201. <doc>
  33202. <![CDATA[Get the groups being used to map user-to-groups.
  33203. @return the groups being used to map user-to-groups.]]>
  33204. </doc>
  33205. </method>
  33206. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33207. abstract="false" native="false" synchronized="false"
  33208. static="true" final="false" visibility="public"
  33209. deprecated="not deprecated">
  33210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33211. </method>
  33212. <doc>
  33213. <![CDATA[A user-to-groups mapping service.
  33214. {@link Groups} allows for server to get the various group memberships
  33215. of a given user via the {@link #getGroups(String)} call, thus ensuring
  33216. a consistent user-to-groups mapping and protects against vagaries of
  33217. different mappings on servers and clients in a Hadoop cluster.]]>
  33218. </doc>
  33219. </class>
  33220. <!-- end class org.apache.hadoop.security.Groups -->
  33221. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33222. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  33223. abstract="false"
  33224. static="false" final="false" visibility="public"
  33225. deprecated="not deprecated">
  33226. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  33227. <constructor name="JniBasedUnixGroupsMapping"
  33228. static="false" final="false" visibility="public"
  33229. deprecated="not deprecated">
  33230. </constructor>
  33231. <method name="getGroups" return="java.util.List"
  33232. abstract="false" native="false" synchronized="false"
  33233. static="false" final="false" visibility="public"
  33234. deprecated="not deprecated">
  33235. <param name="user" type="java.lang.String"/>
  33236. <exception name="IOException" type="java.io.IOException"/>
  33237. </method>
  33238. <method name="cacheGroupsRefresh"
  33239. abstract="false" native="false" synchronized="false"
  33240. static="false" final="false" visibility="public"
  33241. deprecated="not deprecated">
  33242. <exception name="IOException" type="java.io.IOException"/>
  33243. </method>
  33244. <method name="cacheGroupsAdd"
  33245. abstract="false" native="false" synchronized="false"
  33246. static="false" final="false" visibility="public"
  33247. deprecated="not deprecated">
  33248. <param name="groups" type="java.util.List"/>
  33249. <exception name="IOException" type="java.io.IOException"/>
  33250. </method>
  33251. <doc>
  33252. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33253. that invokes libC calls to get the group
  33254. memberships of a given user.]]>
  33255. </doc>
  33256. </class>
  33257. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33258. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33259. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  33260. abstract="false"
  33261. static="false" final="false" visibility="public"
  33262. deprecated="not deprecated">
  33263. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  33264. static="false" final="false" visibility="public"
  33265. deprecated="not deprecated">
  33266. </constructor>
  33267. <method name="getGroups" return="java.util.List"
  33268. abstract="false" native="false" synchronized="false"
  33269. static="false" final="false" visibility="public"
  33270. deprecated="not deprecated">
  33271. <param name="user" type="java.lang.String"/>
  33272. <exception name="IOException" type="java.io.IOException"/>
  33273. <doc>
  33274. <![CDATA[Gets unix groups and netgroups for the user.
  33275. It gets all unix groups as returned by id -Gn but it
  33276. only returns netgroups that are used in ACLs (there is
  33277. no way to get all netgroups for a given user, see
  33278. documentation for getent netgroup)]]>
  33279. </doc>
  33280. </method>
  33281. <method name="cacheGroupsRefresh"
  33282. abstract="false" native="false" synchronized="false"
  33283. static="false" final="false" visibility="public"
  33284. deprecated="not deprecated">
  33285. <exception name="IOException" type="java.io.IOException"/>
  33286. </method>
  33287. <method name="cacheGroupsAdd"
  33288. abstract="false" native="false" synchronized="false"
  33289. static="false" final="false" visibility="public"
  33290. deprecated="not deprecated">
  33291. <param name="groups" type="java.util.List"/>
  33292. <exception name="IOException" type="java.io.IOException"/>
  33293. </method>
  33294. <method name="getUsersForNetgroup" return="java.util.List"
  33295. abstract="false" native="false" synchronized="true"
  33296. static="false" final="false" visibility="protected"
  33297. deprecated="not deprecated">
  33298. <param name="netgroup" type="java.lang.String"/>
  33299. <doc>
  33300. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  33301. are not reentrant we need to make this synchronized (see
  33302. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  33303. </doc>
  33304. </method>
  33305. <doc>
  33306. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33307. that invokes libC calls to get the group
  33308. memberships of a given user.]]>
  33309. </doc>
  33310. </class>
  33311. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33312. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  33313. <interface name="KerberosInfo" abstract="true"
  33314. static="false" final="false" visibility="public"
  33315. deprecated="not deprecated">
  33316. <implements name="java.lang.annotation.Annotation"/>
  33317. <method name="serverPrincipal" return="java.lang.String"
  33318. abstract="false" native="false" synchronized="false"
  33319. static="false" final="false" visibility="public"
  33320. deprecated="not deprecated">
  33321. <doc>
  33322. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  33323. </doc>
  33324. </method>
  33325. <method name="clientPrincipal" return="java.lang.String"
  33326. abstract="false" native="false" synchronized="false"
  33327. static="false" final="false" visibility="public"
  33328. deprecated="not deprecated">
  33329. </method>
  33330. <doc>
  33331. <![CDATA[Indicates Kerberos related information to be used]]>
  33332. </doc>
  33333. </interface>
  33334. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  33335. <!-- start class org.apache.hadoop.security.KerberosName -->
  33336. <class name="KerberosName" extends="java.lang.Object"
  33337. abstract="false"
  33338. static="false" final="false" visibility="public"
  33339. deprecated="not deprecated">
  33340. <constructor name="KerberosName" type="java.lang.String"
  33341. static="false" final="false" visibility="public"
  33342. deprecated="not deprecated">
  33343. <doc>
  33344. <![CDATA[Create a name from the full Kerberos principal name.
  33345. @param name]]>
  33346. </doc>
  33347. </constructor>
  33348. <method name="getDefaultRealm" return="java.lang.String"
  33349. abstract="false" native="false" synchronized="false"
  33350. static="false" final="false" visibility="public"
  33351. deprecated="not deprecated">
  33352. <doc>
  33353. <![CDATA[Get the configured default realm.
  33354. @return the default realm from the krb5.conf]]>
  33355. </doc>
  33356. </method>
  33357. <method name="toString" return="java.lang.String"
  33358. abstract="false" native="false" synchronized="false"
  33359. static="false" final="false" visibility="public"
  33360. deprecated="not deprecated">
  33361. <doc>
  33362. <![CDATA[Put the name back together from the parts.]]>
  33363. </doc>
  33364. </method>
  33365. <method name="getServiceName" return="java.lang.String"
  33366. abstract="false" native="false" synchronized="false"
  33367. static="false" final="false" visibility="public"
  33368. deprecated="not deprecated">
  33369. <doc>
  33370. <![CDATA[Get the first component of the name.
  33371. @return the first section of the Kerberos principal name]]>
  33372. </doc>
  33373. </method>
  33374. <method name="getHostName" return="java.lang.String"
  33375. abstract="false" native="false" synchronized="false"
  33376. static="false" final="false" visibility="public"
  33377. deprecated="not deprecated">
  33378. <doc>
  33379. <![CDATA[Get the second component of the name.
  33380. @return the second section of the Kerberos principal name, and may be null]]>
  33381. </doc>
  33382. </method>
  33383. <method name="getRealm" return="java.lang.String"
  33384. abstract="false" native="false" synchronized="false"
  33385. static="false" final="false" visibility="public"
  33386. deprecated="not deprecated">
  33387. <doc>
  33388. <![CDATA[Get the realm of the name.
  33389. @return the realm of the name, may be null]]>
  33390. </doc>
  33391. </method>
  33392. <method name="setConfiguration"
  33393. abstract="false" native="false" synchronized="false"
  33394. static="true" final="false" visibility="public"
  33395. deprecated="not deprecated">
  33396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33397. <exception name="IOException" type="java.io.IOException"/>
  33398. <doc>
  33399. <![CDATA[Set the static configuration to get the rules.
  33400. @param conf the new configuration
  33401. @throws IOException]]>
  33402. </doc>
  33403. </method>
  33404. <method name="setRules"
  33405. abstract="false" native="false" synchronized="false"
  33406. static="true" final="false" visibility="public"
  33407. deprecated="not deprecated">
  33408. <param name="ruleString" type="java.lang.String"/>
  33409. <doc>
  33410. <![CDATA[Set the rules.
  33411. @param ruleString the rules string.]]>
  33412. </doc>
  33413. </method>
  33414. <method name="getShortName" return="java.lang.String"
  33415. abstract="false" native="false" synchronized="false"
  33416. static="false" final="false" visibility="public"
  33417. deprecated="not deprecated">
  33418. <exception name="IOException" type="java.io.IOException"/>
  33419. <doc>
  33420. <![CDATA[Get the translation of the principal name into an operating system
  33421. user name.
  33422. @return the short name
  33423. @throws IOException]]>
  33424. </doc>
  33425. </method>
  33426. <method name="printRules"
  33427. abstract="false" native="false" synchronized="false"
  33428. static="true" final="false" visibility="public"
  33429. deprecated="not deprecated">
  33430. <exception name="IOException" type="java.io.IOException"/>
  33431. </method>
  33432. <method name="main"
  33433. abstract="false" native="false" synchronized="false"
  33434. static="true" final="false" visibility="public"
  33435. deprecated="not deprecated">
  33436. <param name="args" type="java.lang.String[]"/>
  33437. <exception name="Exception" type="java.lang.Exception"/>
  33438. </method>
  33439. <doc>
  33440. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  33441. particular, it splits them apart and translates them down into local
  33442. operating system names.]]>
  33443. </doc>
  33444. </class>
  33445. <!-- end class org.apache.hadoop.security.KerberosName -->
  33446. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33447. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  33448. abstract="false"
  33449. static="true" final="false" visibility="public"
  33450. deprecated="not deprecated">
  33451. </class>
  33452. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33453. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33454. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  33455. abstract="false"
  33456. static="true" final="false" visibility="public"
  33457. deprecated="not deprecated">
  33458. </class>
  33459. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33460. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  33461. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  33462. abstract="false"
  33463. static="false" final="false" visibility="public"
  33464. deprecated="not deprecated">
  33465. <constructor name="Krb5AndCertsSslSocketConnector"
  33466. static="false" final="false" visibility="public"
  33467. deprecated="not deprecated">
  33468. </constructor>
  33469. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33470. static="false" final="false" visibility="public"
  33471. deprecated="not deprecated">
  33472. </constructor>
  33473. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  33474. abstract="false" native="false" synchronized="false"
  33475. static="false" final="false" visibility="protected"
  33476. deprecated="not deprecated">
  33477. <exception name="Exception" type="java.lang.Exception"/>
  33478. </method>
  33479. <method name="newServerSocket" return="java.net.ServerSocket"
  33480. abstract="false" native="false" synchronized="false"
  33481. static="false" final="false" visibility="protected"
  33482. deprecated="not deprecated">
  33483. <param name="host" type="java.lang.String"/>
  33484. <param name="port" type="int"/>
  33485. <param name="backlog" type="int"/>
  33486. <exception name="IOException" type="java.io.IOException"/>
  33487. </method>
  33488. <method name="customize"
  33489. abstract="false" native="false" synchronized="false"
  33490. static="false" final="false" visibility="public"
  33491. deprecated="not deprecated">
  33492. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  33493. <param name="request" type="org.mortbay.jetty.Request"/>
  33494. <exception name="IOException" type="java.io.IOException"/>
  33495. </method>
  33496. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  33497. transient="false" volatile="false"
  33498. static="true" final="true" visibility="public"
  33499. deprecated="not deprecated">
  33500. </field>
  33501. <doc>
  33502. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  33503. Kerberos5ized SSL sockets. The only change in behavior from superclass
  33504. is that we no longer honor requests to turn off NeedAuthentication when
  33505. running with Kerberos support.]]>
  33506. </doc>
  33507. </class>
  33508. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  33509. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  33510. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  33511. abstract="false"
  33512. static="true" final="false" visibility="public"
  33513. deprecated="not deprecated">
  33514. <implements name="javax.servlet.Filter"/>
  33515. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  33516. static="false" final="false" visibility="public"
  33517. deprecated="not deprecated">
  33518. </constructor>
  33519. <method name="doFilter"
  33520. abstract="false" native="false" synchronized="false"
  33521. static="false" final="false" visibility="public"
  33522. deprecated="not deprecated">
  33523. <param name="req" type="javax.servlet.ServletRequest"/>
  33524. <param name="resp" type="javax.servlet.ServletResponse"/>
  33525. <param name="chain" type="javax.servlet.FilterChain"/>
  33526. <exception name="IOException" type="java.io.IOException"/>
  33527. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33528. </method>
  33529. <method name="init"
  33530. abstract="false" native="false" synchronized="false"
  33531. static="false" final="false" visibility="public"
  33532. deprecated="not deprecated">
  33533. <param name="arg0" type="javax.servlet.FilterConfig"/>
  33534. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33535. </method>
  33536. <method name="destroy"
  33537. abstract="false" native="false" synchronized="false"
  33538. static="false" final="false" visibility="public"
  33539. deprecated="not deprecated">
  33540. </method>
  33541. <doc>
  33542. <![CDATA[Filter that takes the Kerberos principal identified in the
  33543. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  33544. at runtime, setting the principal and short name.]]>
  33545. </doc>
  33546. </class>
  33547. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  33548. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  33549. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  33550. abstract="false"
  33551. static="true" final="true" visibility="public"
  33552. deprecated="not deprecated">
  33553. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  33554. abstract="false" native="false" synchronized="false"
  33555. static="true" final="false" visibility="public"
  33556. deprecated="not deprecated">
  33557. </method>
  33558. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33559. abstract="false" native="false" synchronized="false"
  33560. static="true" final="false" visibility="public"
  33561. deprecated="not deprecated">
  33562. <param name="name" type="java.lang.String"/>
  33563. </method>
  33564. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33565. transient="false" volatile="false"
  33566. static="true" final="true" visibility="public"
  33567. deprecated="not deprecated">
  33568. </field>
  33569. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33570. transient="false" volatile="false"
  33571. static="true" final="true" visibility="public"
  33572. deprecated="not deprecated">
  33573. </field>
  33574. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33575. transient="false" volatile="false"
  33576. static="true" final="true" visibility="public"
  33577. deprecated="not deprecated">
  33578. </field>
  33579. </class>
  33580. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  33581. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  33582. <class name="NetgroupCache" extends="java.lang.Object"
  33583. abstract="false"
  33584. static="false" final="false" visibility="public"
  33585. deprecated="not deprecated">
  33586. <constructor name="NetgroupCache"
  33587. static="false" final="false" visibility="public"
  33588. deprecated="not deprecated">
  33589. </constructor>
  33590. <method name="getNetgroups"
  33591. abstract="false" native="false" synchronized="false"
  33592. static="false" final="false" visibility="public"
  33593. deprecated="not deprecated">
  33594. <param name="user" type="java.lang.String"/>
  33595. <param name="groups" type="java.util.List"/>
  33596. </method>
  33597. <method name="getNetgroupNames" return="java.util.List"
  33598. abstract="false" native="false" synchronized="false"
  33599. static="false" final="false" visibility="public"
  33600. deprecated="not deprecated">
  33601. </method>
  33602. <method name="isCached" return="boolean"
  33603. abstract="false" native="false" synchronized="false"
  33604. static="false" final="false" visibility="public"
  33605. deprecated="not deprecated">
  33606. <param name="group" type="java.lang.String"/>
  33607. </method>
  33608. <method name="clear"
  33609. abstract="false" native="false" synchronized="false"
  33610. static="false" final="false" visibility="public"
  33611. deprecated="not deprecated">
  33612. </method>
  33613. <method name="add"
  33614. abstract="false" native="false" synchronized="false"
  33615. static="false" final="false" visibility="public"
  33616. deprecated="not deprecated">
  33617. <param name="group" type="java.lang.String"/>
  33618. <param name="users" type="java.util.List"/>
  33619. </method>
  33620. <doc>
  33621. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  33622. to user-to-group map]]>
  33623. </doc>
  33624. </class>
  33625. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  33626. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  33627. <interface name="RefreshUserMappingsProtocol" abstract="true"
  33628. static="false" final="false" visibility="public"
  33629. deprecated="not deprecated">
  33630. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  33631. <method name="refreshUserToGroupsMappings"
  33632. abstract="false" native="false" synchronized="false"
  33633. static="false" final="false" visibility="public"
  33634. deprecated="not deprecated">
  33635. <exception name="IOException" type="java.io.IOException"/>
  33636. <doc>
  33637. <![CDATA[Refresh user to group mappings.
  33638. @throws IOException]]>
  33639. </doc>
  33640. </method>
  33641. <method name="refreshSuperUserGroupsConfiguration"
  33642. abstract="false" native="false" synchronized="false"
  33643. static="false" final="false" visibility="public"
  33644. deprecated="not deprecated">
  33645. <exception name="IOException" type="java.io.IOException"/>
  33646. <doc>
  33647. <![CDATA[Refresh superuser proxy group list
  33648. @throws IOException]]>
  33649. </doc>
  33650. </method>
  33651. <field name="versionID" type="long"
  33652. transient="false" volatile="false"
  33653. static="true" final="true" visibility="public"
  33654. deprecated="not deprecated">
  33655. <doc>
  33656. <![CDATA[Version 1: Initial version.]]>
  33657. </doc>
  33658. </field>
  33659. <doc>
  33660. <![CDATA[Protocol use]]>
  33661. </doc>
  33662. </interface>
  33663. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  33664. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  33665. <class name="SaslInputStream" extends="java.io.InputStream"
  33666. abstract="false"
  33667. static="false" final="false" visibility="public"
  33668. deprecated="not deprecated">
  33669. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  33670. static="false" final="false" visibility="public"
  33671. deprecated="not deprecated">
  33672. <doc>
  33673. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  33674. Note: if the specified InputStream or SaslServer is null, a
  33675. NullPointerException may be thrown later when they are used.
  33676. @param inStream
  33677. the InputStream to be processed
  33678. @param saslServer
  33679. an initialized SaslServer object]]>
  33680. </doc>
  33681. </constructor>
  33682. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  33683. static="false" final="false" visibility="public"
  33684. deprecated="not deprecated">
  33685. <doc>
  33686. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  33687. Note: if the specified InputStream or SaslClient is null, a
  33688. NullPointerException may be thrown later when they are used.
  33689. @param inStream
  33690. the InputStream to be processed
  33691. @param saslClient
  33692. an initialized SaslClient object]]>
  33693. </doc>
  33694. </constructor>
  33695. <method name="read" return="int"
  33696. abstract="false" native="false" synchronized="false"
  33697. static="false" final="false" visibility="public"
  33698. deprecated="not deprecated">
  33699. <exception name="IOException" type="java.io.IOException"/>
  33700. <doc>
  33701. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  33702. returned as an <code>int</code> in the range <code>0</code> to
  33703. <code>255</code>. If no byte is available because the end of the stream has
  33704. been reached, the value <code>-1</code> is returned. This method blocks
  33705. until input data is available, the end of the stream is detected, or an
  33706. exception is thrown.
  33707. <p>
  33708. @return the next byte of data, or <code>-1</code> if the end of the stream
  33709. is reached.
  33710. @exception IOException
  33711. if an I/O error occurs.]]>
  33712. </doc>
  33713. </method>
  33714. <method name="read" return="int"
  33715. abstract="false" native="false" synchronized="false"
  33716. static="false" final="false" visibility="public"
  33717. deprecated="not deprecated">
  33718. <param name="b" type="byte[]"/>
  33719. <exception name="IOException" type="java.io.IOException"/>
  33720. <doc>
  33721. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  33722. an array of bytes.
  33723. <p>
  33724. The <code>read</code> method of <code>InputStream</code> calls the
  33725. <code>read</code> method of three arguments with the arguments
  33726. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  33727. @param b
  33728. the buffer into which the data is read.
  33729. @return the total number of bytes read into the buffer, or <code>-1</code>
  33730. is there is no more data because the end of the stream has been
  33731. reached.
  33732. @exception IOException
  33733. if an I/O error occurs.]]>
  33734. </doc>
  33735. </method>
  33736. <method name="read" return="int"
  33737. abstract="false" native="false" synchronized="false"
  33738. static="false" final="false" visibility="public"
  33739. deprecated="not deprecated">
  33740. <param name="b" type="byte[]"/>
  33741. <param name="off" type="int"/>
  33742. <param name="len" type="int"/>
  33743. <exception name="IOException" type="java.io.IOException"/>
  33744. <doc>
  33745. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  33746. array of bytes. This method blocks until some input is available. If the
  33747. first argument is <code>null,</code> up to <code>len</code> bytes are read
  33748. and discarded.
  33749. @param b
  33750. the buffer into which the data is read.
  33751. @param off
  33752. the start offset of the data.
  33753. @param len
  33754. the maximum number of bytes read.
  33755. @return the total number of bytes read into the buffer, or <code>-1</code>
  33756. if there is no more data because the end of the stream has been
  33757. reached.
  33758. @exception IOException
  33759. if an I/O error occurs.]]>
  33760. </doc>
  33761. </method>
  33762. <method name="skip" return="long"
  33763. abstract="false" native="false" synchronized="false"
  33764. static="false" final="false" visibility="public"
  33765. deprecated="not deprecated">
  33766. <param name="n" type="long"/>
  33767. <exception name="IOException" type="java.io.IOException"/>
  33768. <doc>
  33769. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  33770. this input stream without blocking.
  33771. <p>
  33772. Fewer bytes than requested might be skipped. The actual number of bytes
  33773. skipped is equal to <code>n</code> or the result of a call to
  33774. {@link #available() <code>available</code>}, whichever is smaller. If
  33775. <code>n</code> is less than zero, no bytes are skipped.
  33776. <p>
  33777. The actual number of bytes skipped is returned.
  33778. @param n
  33779. the number of bytes to be skipped.
  33780. @return the actual number of bytes skipped.
  33781. @exception IOException
  33782. if an I/O error occurs.]]>
  33783. </doc>
  33784. </method>
  33785. <method name="available" return="int"
  33786. abstract="false" native="false" synchronized="false"
  33787. static="false" final="false" visibility="public"
  33788. deprecated="not deprecated">
  33789. <exception name="IOException" type="java.io.IOException"/>
  33790. <doc>
  33791. <![CDATA[Returns the number of bytes that can be read from this input stream without
  33792. blocking. The <code>available</code> method of <code>InputStream</code>
  33793. returns <code>0</code>. This method <B>should</B> be overridden by
  33794. subclasses.
  33795. @return the number of bytes that can be read from this input stream without
  33796. blocking.
  33797. @exception IOException
  33798. if an I/O error occurs.]]>
  33799. </doc>
  33800. </method>
  33801. <method name="close"
  33802. abstract="false" native="false" synchronized="false"
  33803. static="false" final="false" visibility="public"
  33804. deprecated="not deprecated">
  33805. <exception name="IOException" type="java.io.IOException"/>
  33806. <doc>
  33807. <![CDATA[Closes this input stream and releases any system resources associated with
  33808. the stream.
  33809. <p>
  33810. The <code>close</code> method of <code>SASLInputStream</code> calls the
  33811. <code>close</code> method of its underlying input stream.
  33812. @exception IOException
  33813. if an I/O error occurs.]]>
  33814. </doc>
  33815. </method>
  33816. <method name="markSupported" return="boolean"
  33817. abstract="false" native="false" synchronized="false"
  33818. static="false" final="false" visibility="public"
  33819. deprecated="not deprecated">
  33820. <doc>
  33821. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  33822. <code>reset</code> methods, which it does not.
  33823. @return <code>false</code>, since this class does not support the
  33824. <code>mark</code> and <code>reset</code> methods.]]>
  33825. </doc>
  33826. </method>
  33827. <field name="LOG" type="org.apache.commons.logging.Log"
  33828. transient="false" volatile="false"
  33829. static="true" final="true" visibility="public"
  33830. deprecated="not deprecated">
  33831. </field>
  33832. <doc>
  33833. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  33834. SaslClient) so that read() methods return data that are read in from the
  33835. underlying InputStream but have been additionally processed by the SaslServer
  33836. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  33837. initialized before being used by a SaslInputStream.]]>
  33838. </doc>
  33839. </class>
  33840. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  33841. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  33842. <class name="SaslOutputStream" extends="java.io.OutputStream"
  33843. abstract="false"
  33844. static="false" final="false" visibility="public"
  33845. deprecated="not deprecated">
  33846. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  33847. static="false" final="false" visibility="public"
  33848. deprecated="not deprecated">
  33849. <doc>
  33850. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  33851. Note: if the specified OutputStream or SaslServer is null, a
  33852. NullPointerException may be thrown later when they are used.
  33853. @param outStream
  33854. the OutputStream to be processed
  33855. @param saslServer
  33856. an initialized SaslServer object]]>
  33857. </doc>
  33858. </constructor>
  33859. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  33860. static="false" final="false" visibility="public"
  33861. deprecated="not deprecated">
  33862. <doc>
  33863. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  33864. Note: if the specified OutputStream or SaslClient is null, a
  33865. NullPointerException may be thrown later when they are used.
  33866. @param outStream
  33867. the OutputStream to be processed
  33868. @param saslClient
  33869. an initialized SaslClient object]]>
  33870. </doc>
  33871. </constructor>
  33872. <method name="write"
  33873. abstract="false" native="false" synchronized="false"
  33874. static="false" final="false" visibility="public"
  33875. deprecated="not deprecated">
  33876. <param name="b" type="int"/>
  33877. <exception name="IOException" type="java.io.IOException"/>
  33878. <doc>
  33879. <![CDATA[Writes the specified byte to this output stream.
  33880. @param b
  33881. the <code>byte</code>.
  33882. @exception IOException
  33883. if an I/O error occurs.]]>
  33884. </doc>
  33885. </method>
  33886. <method name="write"
  33887. abstract="false" native="false" synchronized="false"
  33888. static="false" final="false" visibility="public"
  33889. deprecated="not deprecated">
  33890. <param name="b" type="byte[]"/>
  33891. <exception name="IOException" type="java.io.IOException"/>
  33892. <doc>
  33893. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  33894. output stream.
  33895. <p>
  33896. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  33897. <code>write</code> method of three arguments with the three arguments
  33898. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  33899. @param b
  33900. the data.
  33901. @exception NullPointerException
  33902. if <code>b</code> is null.
  33903. @exception IOException
  33904. if an I/O error occurs.]]>
  33905. </doc>
  33906. </method>
  33907. <method name="write"
  33908. abstract="false" native="false" synchronized="false"
  33909. static="false" final="false" visibility="public"
  33910. deprecated="not deprecated">
  33911. <param name="inBuf" type="byte[]"/>
  33912. <param name="off" type="int"/>
  33913. <param name="len" type="int"/>
  33914. <exception name="IOException" type="java.io.IOException"/>
  33915. <doc>
  33916. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  33917. offset <code>off</code> to this output stream.
  33918. @param inBuf
  33919. the data.
  33920. @param off
  33921. the start offset in the data.
  33922. @param len
  33923. the number of bytes to write.
  33924. @exception IOException
  33925. if an I/O error occurs.]]>
  33926. </doc>
  33927. </method>
  33928. <method name="flush"
  33929. abstract="false" native="false" synchronized="false"
  33930. static="false" final="false" visibility="public"
  33931. deprecated="not deprecated">
  33932. <exception name="IOException" type="java.io.IOException"/>
  33933. <doc>
  33934. <![CDATA[Flushes this output stream
  33935. @exception IOException
  33936. if an I/O error occurs.]]>
  33937. </doc>
  33938. </method>
  33939. <method name="close"
  33940. abstract="false" native="false" synchronized="false"
  33941. static="false" final="false" visibility="public"
  33942. deprecated="not deprecated">
  33943. <exception name="IOException" type="java.io.IOException"/>
  33944. <doc>
  33945. <![CDATA[Closes this output stream and releases any system resources associated with
  33946. this stream.
  33947. @exception IOException
  33948. if an I/O error occurs.]]>
  33949. </doc>
  33950. </method>
  33951. <doc>
  33952. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  33953. SaslClient) so that write() methods first process the data before writing
  33954. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  33955. object must be fully initialized before being used by a SaslOutputStream.]]>
  33956. </doc>
  33957. </class>
  33958. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  33959. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  33960. <class name="SaslRpcClient" extends="java.lang.Object"
  33961. abstract="false"
  33962. static="false" final="false" visibility="public"
  33963. deprecated="not deprecated">
  33964. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  33965. static="false" final="false" visibility="public"
  33966. deprecated="not deprecated">
  33967. <exception name="IOException" type="java.io.IOException"/>
  33968. <doc>
  33969. <![CDATA[Create a SaslRpcClient for an authentication method
  33970. @param method
  33971. the requested authentication method
  33972. @param token
  33973. token to use if needed by the authentication method]]>
  33974. </doc>
  33975. </constructor>
  33976. <method name="saslConnect" return="boolean"
  33977. abstract="false" native="false" synchronized="false"
  33978. static="false" final="false" visibility="public"
  33979. deprecated="not deprecated">
  33980. <param name="inS" type="java.io.InputStream"/>
  33981. <param name="outS" type="java.io.OutputStream"/>
  33982. <exception name="IOException" type="java.io.IOException"/>
  33983. <doc>
  33984. <![CDATA[Do client side SASL authentication with server via the given InputStream
  33985. and OutputStream
  33986. @param inS
  33987. InputStream to use
  33988. @param outS
  33989. OutputStream to use
  33990. @return true if connection is set up, or false if needs to switch
  33991. to simple Auth.
  33992. @throws IOException]]>
  33993. </doc>
  33994. </method>
  33995. <method name="getInputStream" return="java.io.InputStream"
  33996. abstract="false" native="false" synchronized="false"
  33997. static="false" final="false" visibility="public"
  33998. deprecated="not deprecated">
  33999. <param name="in" type="java.io.InputStream"/>
  34000. <exception name="IOException" type="java.io.IOException"/>
  34001. <doc>
  34002. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  34003. been called.
  34004. @param in
  34005. the InputStream to wrap
  34006. @return a SASL wrapped InputStream
  34007. @throws IOException]]>
  34008. </doc>
  34009. </method>
  34010. <method name="getOutputStream" return="java.io.OutputStream"
  34011. abstract="false" native="false" synchronized="false"
  34012. static="false" final="false" visibility="public"
  34013. deprecated="not deprecated">
  34014. <param name="out" type="java.io.OutputStream"/>
  34015. <exception name="IOException" type="java.io.IOException"/>
  34016. <doc>
  34017. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  34018. been called.
  34019. @param out
  34020. the OutputStream to wrap
  34021. @return a SASL wrapped OutputStream
  34022. @throws IOException]]>
  34023. </doc>
  34024. </method>
  34025. <method name="dispose"
  34026. abstract="false" native="false" synchronized="false"
  34027. static="false" final="false" visibility="public"
  34028. deprecated="not deprecated">
  34029. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  34030. <doc>
  34031. <![CDATA[Release resources used by wrapped saslClient]]>
  34032. </doc>
  34033. </method>
  34034. <field name="LOG" type="org.apache.commons.logging.Log"
  34035. transient="false" volatile="false"
  34036. static="true" final="true" visibility="public"
  34037. deprecated="not deprecated">
  34038. </field>
  34039. <doc>
  34040. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  34041. </doc>
  34042. </class>
  34043. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  34044. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  34045. <class name="SaslRpcServer" extends="java.lang.Object"
  34046. abstract="false"
  34047. static="false" final="false" visibility="public"
  34048. deprecated="not deprecated">
  34049. <constructor name="SaslRpcServer"
  34050. static="false" final="false" visibility="public"
  34051. deprecated="not deprecated">
  34052. </constructor>
  34053. <method name="init"
  34054. abstract="false" native="false" synchronized="false"
  34055. static="true" final="false" visibility="public"
  34056. deprecated="not deprecated">
  34057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34058. </method>
  34059. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  34060. abstract="false" native="false" synchronized="false"
  34061. static="true" final="false" visibility="public"
  34062. deprecated="not deprecated">
  34063. <param name="id" type="java.lang.String"/>
  34064. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  34065. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34066. </method>
  34067. <method name="splitKerberosName" return="java.lang.String[]"
  34068. abstract="false" native="false" synchronized="false"
  34069. static="true" final="false" visibility="public"
  34070. deprecated="not deprecated">
  34071. <param name="fullName" type="java.lang.String"/>
  34072. <doc>
  34073. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  34074. </doc>
  34075. </method>
  34076. <field name="LOG" type="org.apache.commons.logging.Log"
  34077. transient="false" volatile="false"
  34078. static="true" final="true" visibility="public"
  34079. deprecated="not deprecated">
  34080. </field>
  34081. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  34082. transient="false" volatile="false"
  34083. static="true" final="true" visibility="public"
  34084. deprecated="not deprecated">
  34085. </field>
  34086. <field name="SASL_PROPS" type="java.util.Map"
  34087. transient="false" volatile="false"
  34088. static="true" final="true" visibility="public"
  34089. deprecated="not deprecated">
  34090. </field>
  34091. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  34092. transient="false" volatile="false"
  34093. static="true" final="true" visibility="public"
  34094. deprecated="not deprecated">
  34095. </field>
  34096. <doc>
  34097. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  34098. </doc>
  34099. </class>
  34100. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  34101. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  34102. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  34103. abstract="false"
  34104. static="true" final="true" visibility="public"
  34105. deprecated="not deprecated">
  34106. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  34107. abstract="false" native="false" synchronized="false"
  34108. static="true" final="false" visibility="public"
  34109. deprecated="not deprecated">
  34110. </method>
  34111. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34112. abstract="false" native="false" synchronized="false"
  34113. static="true" final="false" visibility="public"
  34114. deprecated="not deprecated">
  34115. <param name="name" type="java.lang.String"/>
  34116. </method>
  34117. <method name="getMechanismName" return="java.lang.String"
  34118. abstract="false" native="false" synchronized="false"
  34119. static="false" final="false" visibility="public"
  34120. deprecated="not deprecated">
  34121. <doc>
  34122. <![CDATA[Return the SASL mechanism name]]>
  34123. </doc>
  34124. </method>
  34125. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34126. abstract="false" native="false" synchronized="false"
  34127. static="true" final="false" visibility="public"
  34128. deprecated="not deprecated">
  34129. <param name="in" type="java.io.DataInput"/>
  34130. <exception name="IOException" type="java.io.IOException"/>
  34131. <doc>
  34132. <![CDATA[Read from in]]>
  34133. </doc>
  34134. </method>
  34135. <method name="write"
  34136. abstract="false" native="false" synchronized="false"
  34137. static="false" final="false" visibility="public"
  34138. deprecated="not deprecated">
  34139. <param name="out" type="java.io.DataOutput"/>
  34140. <exception name="IOException" type="java.io.IOException"/>
  34141. <doc>
  34142. <![CDATA[Write to out]]>
  34143. </doc>
  34144. </method>
  34145. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34146. transient="false" volatile="false"
  34147. static="true" final="true" visibility="public"
  34148. deprecated="not deprecated">
  34149. </field>
  34150. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34151. transient="false" volatile="false"
  34152. static="true" final="true" visibility="public"
  34153. deprecated="not deprecated">
  34154. </field>
  34155. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34156. transient="false" volatile="false"
  34157. static="true" final="true" visibility="public"
  34158. deprecated="not deprecated">
  34159. </field>
  34160. <field name="code" type="byte"
  34161. transient="false" volatile="false"
  34162. static="false" final="true" visibility="public"
  34163. deprecated="not deprecated">
  34164. <doc>
  34165. <![CDATA[The code for this method.]]>
  34166. </doc>
  34167. </field>
  34168. <field name="mechanismName" type="java.lang.String"
  34169. transient="false" volatile="false"
  34170. static="false" final="true" visibility="public"
  34171. deprecated="not deprecated">
  34172. </field>
  34173. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34174. transient="false" volatile="false"
  34175. static="false" final="true" visibility="public"
  34176. deprecated="not deprecated">
  34177. </field>
  34178. <doc>
  34179. <![CDATA[Authentication method]]>
  34180. </doc>
  34181. </class>
  34182. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  34183. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34184. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  34185. abstract="false"
  34186. static="true" final="true" visibility="public"
  34187. deprecated="not deprecated">
  34188. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  34189. abstract="false" native="false" synchronized="false"
  34190. static="true" final="false" visibility="public"
  34191. deprecated="not deprecated">
  34192. </method>
  34193. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34194. abstract="false" native="false" synchronized="false"
  34195. static="true" final="false" visibility="public"
  34196. deprecated="not deprecated">
  34197. <param name="name" type="java.lang.String"/>
  34198. </method>
  34199. <method name="getSaslQop" return="java.lang.String"
  34200. abstract="false" native="false" synchronized="false"
  34201. static="false" final="false" visibility="public"
  34202. deprecated="not deprecated">
  34203. </method>
  34204. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34205. transient="false" volatile="false"
  34206. static="true" final="true" visibility="public"
  34207. deprecated="not deprecated">
  34208. </field>
  34209. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34210. transient="false" volatile="false"
  34211. static="true" final="true" visibility="public"
  34212. deprecated="not deprecated">
  34213. </field>
  34214. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34215. transient="false" volatile="false"
  34216. static="true" final="true" visibility="public"
  34217. deprecated="not deprecated">
  34218. </field>
  34219. <field name="saslQop" type="java.lang.String"
  34220. transient="false" volatile="false"
  34221. static="false" final="true" visibility="public"
  34222. deprecated="not deprecated">
  34223. </field>
  34224. </class>
  34225. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34226. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34227. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  34228. abstract="false"
  34229. static="true" final="false" visibility="public"
  34230. deprecated="not deprecated">
  34231. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34232. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  34233. static="false" final="false" visibility="public"
  34234. deprecated="not deprecated">
  34235. </constructor>
  34236. <method name="handle"
  34237. abstract="false" native="false" synchronized="false"
  34238. static="false" final="false" visibility="public"
  34239. deprecated="not deprecated">
  34240. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34241. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34242. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34243. <doc>
  34244. <![CDATA[{@inheritDoc}]]>
  34245. </doc>
  34246. </method>
  34247. <doc>
  34248. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  34249. </doc>
  34250. </class>
  34251. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34252. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34253. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  34254. abstract="false"
  34255. static="true" final="false" visibility="public"
  34256. deprecated="not deprecated">
  34257. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34258. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  34259. static="false" final="false" visibility="public"
  34260. deprecated="not deprecated">
  34261. </constructor>
  34262. <method name="handle"
  34263. abstract="false" native="false" synchronized="false"
  34264. static="false" final="false" visibility="public"
  34265. deprecated="not deprecated">
  34266. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34267. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34268. <doc>
  34269. <![CDATA[{@inheritDoc}]]>
  34270. </doc>
  34271. </method>
  34272. <doc>
  34273. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  34274. </doc>
  34275. </class>
  34276. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34277. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34278. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  34279. abstract="false"
  34280. static="true" final="true" visibility="public"
  34281. deprecated="not deprecated">
  34282. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  34283. abstract="false" native="false" synchronized="false"
  34284. static="true" final="false" visibility="public"
  34285. deprecated="not deprecated">
  34286. </method>
  34287. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34288. abstract="false" native="false" synchronized="false"
  34289. static="true" final="false" visibility="public"
  34290. deprecated="not deprecated">
  34291. <param name="name" type="java.lang.String"/>
  34292. </method>
  34293. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34294. transient="false" volatile="false"
  34295. static="true" final="true" visibility="public"
  34296. deprecated="not deprecated">
  34297. </field>
  34298. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34299. transient="false" volatile="false"
  34300. static="true" final="true" visibility="public"
  34301. deprecated="not deprecated">
  34302. </field>
  34303. <field name="state" type="int"
  34304. transient="false" volatile="false"
  34305. static="false" final="true" visibility="public"
  34306. deprecated="not deprecated">
  34307. </field>
  34308. </class>
  34309. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34310. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  34311. <class name="SecurityUtil" extends="java.lang.Object"
  34312. abstract="false"
  34313. static="false" final="false" visibility="public"
  34314. deprecated="not deprecated">
  34315. <constructor name="SecurityUtil"
  34316. static="false" final="false" visibility="public"
  34317. deprecated="not deprecated">
  34318. </constructor>
  34319. <method name="isOriginalTGT" return="boolean"
  34320. abstract="false" native="false" synchronized="false"
  34321. static="true" final="false" visibility="protected"
  34322. deprecated="not deprecated">
  34323. <param name="name" type="java.lang.String"/>
  34324. </method>
  34325. <method name="fetchServiceTicket"
  34326. abstract="false" native="false" synchronized="false"
  34327. static="true" final="false" visibility="public"
  34328. deprecated="not deprecated">
  34329. <param name="remoteHost" type="java.net.URL"/>
  34330. <exception name="IOException" type="java.io.IOException"/>
  34331. <doc>
  34332. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  34333. problem with Java's Kerberos SSL problem where the client cannot
  34334. authenticate against a cross-realm service. It is necessary for clients
  34335. making kerberized https requests to call this method on the target URL
  34336. to ensure that in a cross-realm environment the remote host will be
  34337. successfully authenticated.
  34338. This method is internal to Hadoop and should not be used by other
  34339. applications. This method should not be considered stable or open:
  34340. it will be removed when the Java behavior is changed.
  34341. @param remoteHost Target URL the krb-https client will access
  34342. @throws IOException if a service ticket is not available]]>
  34343. </doc>
  34344. </method>
  34345. <method name="getServerPrincipal" return="java.lang.String"
  34346. abstract="false" native="false" synchronized="false"
  34347. static="true" final="false" visibility="public"
  34348. deprecated="not deprecated">
  34349. <param name="principalConfig" type="java.lang.String"/>
  34350. <param name="hostname" type="java.lang.String"/>
  34351. <exception name="IOException" type="java.io.IOException"/>
  34352. <doc>
  34353. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  34354. names. It replaces hostname pattern with hostname, which should be
  34355. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  34356. dynamically looked-up fqdn of the current host instead.
  34357. @param principalConfig
  34358. the Kerberos principal name conf value to convert
  34359. @param hostname
  34360. the fully-qualified domain name used for substitution
  34361. @return converted Kerberos principal name
  34362. @throws IOException if the service ticket cannot be retrieved]]>
  34363. </doc>
  34364. </method>
  34365. <method name="getServerPrincipal" return="java.lang.String"
  34366. abstract="false" native="false" synchronized="false"
  34367. static="true" final="false" visibility="public"
  34368. deprecated="not deprecated">
  34369. <param name="principalConfig" type="java.lang.String"/>
  34370. <param name="addr" type="java.net.InetAddress"/>
  34371. <exception name="IOException" type="java.io.IOException"/>
  34372. <doc>
  34373. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  34374. This method is similar to {@link #getServerPrincipal(String, String)},
  34375. except 1) the reverse DNS lookup from addr to hostname is done only when
  34376. necessary, 2) param addr can't be null (no default behavior of using local
  34377. hostname when addr is null).
  34378. @param principalConfig
  34379. Kerberos principal name pattern to convert
  34380. @param addr
  34381. InetAddress of the host used for substitution
  34382. @return converted Kerberos principal name
  34383. @throws IOException if the client address cannot be determined]]>
  34384. </doc>
  34385. </method>
  34386. <method name="login"
  34387. abstract="false" native="false" synchronized="false"
  34388. static="true" final="false" visibility="public"
  34389. deprecated="not deprecated">
  34390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34391. <param name="keytabFileKey" type="java.lang.String"/>
  34392. <param name="userNameKey" type="java.lang.String"/>
  34393. <exception name="IOException" type="java.io.IOException"/>
  34394. <doc>
  34395. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34396. user's Kerberos principal name with a dynamically looked-up fully-qualified
  34397. domain name of the current host.
  34398. @param conf
  34399. conf to use
  34400. @param keytabFileKey
  34401. the key to look for keytab file in conf
  34402. @param userNameKey
  34403. the key to look for user's Kerberos principal name in conf
  34404. @throws IOException if the client address cannot be determined]]>
  34405. </doc>
  34406. </method>
  34407. <method name="login"
  34408. abstract="false" native="false" synchronized="false"
  34409. static="true" final="false" visibility="public"
  34410. deprecated="not deprecated">
  34411. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34412. <param name="keytabFileKey" type="java.lang.String"/>
  34413. <param name="userNameKey" type="java.lang.String"/>
  34414. <param name="hostname" type="java.lang.String"/>
  34415. <exception name="IOException" type="java.io.IOException"/>
  34416. <doc>
  34417. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34418. user's Kerberos principal name with hostname.
  34419. @param conf
  34420. conf to use
  34421. @param keytabFileKey
  34422. the key to look for keytab file in conf
  34423. @param userNameKey
  34424. the key to look for user's Kerberos principal name in conf
  34425. @param hostname
  34426. hostname to use for substitution
  34427. @throws IOException if login fails]]>
  34428. </doc>
  34429. </method>
  34430. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  34431. abstract="false" native="false" synchronized="false"
  34432. static="true" final="false" visibility="public"
  34433. deprecated="not deprecated">
  34434. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34435. <doc>
  34436. <![CDATA[Decode the given token's service field into an InetAddress
  34437. @param token from which to obtain the service
  34438. @return InetAddress for the service]]>
  34439. </doc>
  34440. </method>
  34441. <method name="setTokenService"
  34442. abstract="false" native="false" synchronized="false"
  34443. static="true" final="false" visibility="public"
  34444. deprecated="not deprecated">
  34445. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34446. <param name="addr" type="java.net.InetSocketAddress"/>
  34447. <doc>
  34448. <![CDATA[Set the given token's service to the format expected by the RPC client
  34449. @param token a delegation token
  34450. @param addr the socket for the rpc connection]]>
  34451. </doc>
  34452. </method>
  34453. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  34454. abstract="false" native="false" synchronized="false"
  34455. static="true" final="false" visibility="public"
  34456. deprecated="not deprecated">
  34457. <param name="addr" type="java.net.InetSocketAddress"/>
  34458. <doc>
  34459. <![CDATA[Construct the service key for a token
  34460. @param addr InetSocketAddress of remote connection with a token
  34461. @return "ip:port" or "host:port" depending on the value of
  34462. hadoop.security.token.service.use_ip]]>
  34463. </doc>
  34464. </method>
  34465. <method name="buildDTServiceName" return="java.lang.String"
  34466. abstract="false" native="false" synchronized="false"
  34467. static="true" final="false" visibility="public"
  34468. deprecated="not deprecated">
  34469. <param name="uri" type="java.net.URI"/>
  34470. <param name="defPort" type="int"/>
  34471. <doc>
  34472. <![CDATA[create the service name for a Delegation token
  34473. @param uri of the service
  34474. @param defPort is used if the uri lacks a port
  34475. @return the token service, or null if no authority
  34476. @see #buildTokenService(InetSocketAddress)]]>
  34477. </doc>
  34478. </method>
  34479. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  34480. abstract="false" native="false" synchronized="false"
  34481. static="true" final="false" visibility="public"
  34482. deprecated="not deprecated">
  34483. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34484. <param name="configKey" type="java.lang.String"/>
  34485. <doc>
  34486. <![CDATA[Get the ACL object representing the cluster administrators
  34487. The user who starts the daemon is automatically added as an admin
  34488. @param conf
  34489. @param configKey the key that holds the ACL string in its value
  34490. @return AccessControlList instance]]>
  34491. </doc>
  34492. </method>
  34493. <method name="getHostFromPrincipal" return="java.lang.String"
  34494. abstract="false" native="false" synchronized="false"
  34495. static="true" final="false" visibility="public"
  34496. deprecated="not deprecated">
  34497. <param name="principalName" type="java.lang.String"/>
  34498. <doc>
  34499. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  34500. @param principalName principal name of format as described above
  34501. @return host name if the the string conforms to the above format, else null]]>
  34502. </doc>
  34503. </method>
  34504. <method name="getByName" return="java.net.InetAddress"
  34505. abstract="false" native="false" synchronized="false"
  34506. static="true" final="false" visibility="public"
  34507. deprecated="not deprecated">
  34508. <param name="hostname" type="java.lang.String"/>
  34509. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34510. <doc>
  34511. <![CDATA[Resolves a host subject to the security requirements determined by
  34512. hadoop.security.token.service.use_ip.
  34513. @param hostname host or ip to resolve
  34514. @return a resolved host
  34515. @throws UnknownHostException if the host doesn't exist]]>
  34516. </doc>
  34517. </method>
  34518. <field name="LOG" type="org.apache.commons.logging.Log"
  34519. transient="false" volatile="false"
  34520. static="true" final="true" visibility="public"
  34521. deprecated="not deprecated">
  34522. </field>
  34523. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  34524. transient="false" volatile="false"
  34525. static="true" final="true" visibility="public"
  34526. deprecated="not deprecated">
  34527. </field>
  34528. </class>
  34529. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  34530. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  34531. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  34532. abstract="false"
  34533. static="true" final="false" visibility="protected"
  34534. deprecated="not deprecated">
  34535. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  34536. <constructor name="SecurityUtil.QualifiedHostResolver"
  34537. static="false" final="false" visibility="protected"
  34538. deprecated="not deprecated">
  34539. </constructor>
  34540. <method name="getByName" return="java.net.InetAddress"
  34541. abstract="false" native="false" synchronized="false"
  34542. static="false" final="false" visibility="public"
  34543. deprecated="not deprecated">
  34544. <param name="host" type="java.lang.String"/>
  34545. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34546. <doc>
  34547. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  34548. hostname. InetAddress does not qualify an incomplete hostname that
  34549. is resolved via the domain search list.
  34550. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  34551. hostname, but it always return the A record whereas the given hostname
  34552. may be a CNAME.
  34553. @param host a hostname or ip address
  34554. @return InetAddress with the fully qualified hostname or ip
  34555. @throws UnknownHostException if host does not exist]]>
  34556. </doc>
  34557. </method>
  34558. <doc>
  34559. <![CDATA[This an alternate resolver with important properties that the standard
  34560. java resolver lacks:
  34561. 1) The hostname is fully qualified. This avoids security issues if not
  34562. all hosts in the cluster do not share the same search domains. It
  34563. also prevents other hosts from performing unnecessary dns searches.
  34564. In contrast, InetAddress simply returns the host as given.
  34565. 2) The InetAddress is instantiated with an exact host and IP to prevent
  34566. further unnecessary lookups. InetAddress may perform an unnecessary
  34567. reverse lookup for an IP.
  34568. 3) A call to getHostName() will always return the qualified hostname, or
  34569. more importantly, the IP if instantiated with an IP. This avoids
  34570. unnecessary dns timeouts if the host is not resolvable.
  34571. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  34572. connection re-attempt, that a reverse lookup to host and forward
  34573. lookup to IP is not performed since the reverse/forward mappings may
  34574. not always return the same IP. If the client initiated a connection
  34575. with an IP, then that IP is all that should ever be contacted.
  34576. NOTE: this resolver is only used if:
  34577. hadoop.security.token.service.use_ip=false]]>
  34578. </doc>
  34579. </class>
  34580. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  34581. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  34582. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  34583. abstract="false"
  34584. static="false" final="false" visibility="public"
  34585. deprecated="not deprecated">
  34586. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  34587. <constructor name="ShellBasedUnixGroupsMapping"
  34588. static="false" final="false" visibility="public"
  34589. deprecated="not deprecated">
  34590. </constructor>
  34591. <method name="getGroups" return="java.util.List"
  34592. abstract="false" native="false" synchronized="false"
  34593. static="false" final="false" visibility="public"
  34594. deprecated="not deprecated">
  34595. <param name="user" type="java.lang.String"/>
  34596. <exception name="IOException" type="java.io.IOException"/>
  34597. </method>
  34598. <method name="cacheGroupsRefresh"
  34599. abstract="false" native="false" synchronized="false"
  34600. static="false" final="false" visibility="public"
  34601. deprecated="not deprecated">
  34602. <exception name="IOException" type="java.io.IOException"/>
  34603. </method>
  34604. <method name="cacheGroupsAdd"
  34605. abstract="false" native="false" synchronized="false"
  34606. static="false" final="false" visibility="public"
  34607. deprecated="not deprecated">
  34608. <param name="groups" type="java.util.List"/>
  34609. <exception name="IOException" type="java.io.IOException"/>
  34610. </method>
  34611. <doc>
  34612. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  34613. that exec's the <code>groups</code> shell command to fetch the group
  34614. memberships of a given user.]]>
  34615. </doc>
  34616. </class>
  34617. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  34618. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  34619. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  34620. abstract="false"
  34621. static="false" final="false" visibility="public"
  34622. deprecated="not deprecated">
  34623. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  34624. static="false" final="false" visibility="public"
  34625. deprecated="not deprecated">
  34626. </constructor>
  34627. <method name="getGroups" return="java.util.List"
  34628. abstract="false" native="false" synchronized="false"
  34629. static="false" final="false" visibility="public"
  34630. deprecated="not deprecated">
  34631. <param name="user" type="java.lang.String"/>
  34632. <exception name="IOException" type="java.io.IOException"/>
  34633. </method>
  34634. <method name="cacheGroupsRefresh"
  34635. abstract="false" native="false" synchronized="false"
  34636. static="false" final="false" visibility="public"
  34637. deprecated="not deprecated">
  34638. <exception name="IOException" type="java.io.IOException"/>
  34639. </method>
  34640. <method name="cacheGroupsAdd"
  34641. abstract="false" native="false" synchronized="false"
  34642. static="false" final="false" visibility="public"
  34643. deprecated="not deprecated">
  34644. <param name="groups" type="java.util.List"/>
  34645. <exception name="IOException" type="java.io.IOException"/>
  34646. </method>
  34647. <method name="cacheNetgroup"
  34648. abstract="false" native="false" synchronized="false"
  34649. static="false" final="false" visibility="protected"
  34650. deprecated="not deprecated">
  34651. <param name="group" type="java.lang.String"/>
  34652. <exception name="IOException" type="java.io.IOException"/>
  34653. </method>
  34654. <method name="getNetgroups"
  34655. abstract="false" native="false" synchronized="false"
  34656. static="false" final="false" visibility="protected"
  34657. deprecated="not deprecated">
  34658. <param name="user" type="java.lang.String"/>
  34659. <param name="groups" type="java.util.List"/>
  34660. <exception name="IOException" type="java.io.IOException"/>
  34661. </method>
  34662. <method name="execShellGetUnixGroups" return="java.lang.String"
  34663. abstract="false" native="false" synchronized="false"
  34664. static="false" final="false" visibility="protected"
  34665. deprecated="not deprecated">
  34666. <param name="user" type="java.lang.String"/>
  34667. <exception name="IOException" type="java.io.IOException"/>
  34668. </method>
  34669. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  34670. abstract="false" native="false" synchronized="false"
  34671. static="false" final="false" visibility="protected"
  34672. deprecated="not deprecated">
  34673. <param name="netgroup" type="java.lang.String"/>
  34674. <exception name="IOException" type="java.io.IOException"/>
  34675. </method>
  34676. <field name="netgroupToUsersMapUpdated" type="boolean"
  34677. transient="false" volatile="false"
  34678. static="true" final="false" visibility="protected"
  34679. deprecated="not deprecated">
  34680. </field>
  34681. <field name="netgroupToUsersMap" type="java.util.Map"
  34682. transient="false" volatile="false"
  34683. static="true" final="false" visibility="protected"
  34684. deprecated="not deprecated">
  34685. </field>
  34686. <field name="userToNetgroupsMap" type="java.util.Map"
  34687. transient="false" volatile="false"
  34688. static="true" final="false" visibility="protected"
  34689. deprecated="not deprecated">
  34690. </field>
  34691. <doc>
  34692. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  34693. that exec's the <code>groups</code> shell command to fetch the group
  34694. memberships of a given user.]]>
  34695. </doc>
  34696. </class>
  34697. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  34698. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  34699. <class name="UserGroupInformation" extends="java.lang.Object"
  34700. abstract="false"
  34701. static="false" final="false" visibility="public"
  34702. deprecated="not deprecated">
  34703. <method name="setConfiguration"
  34704. abstract="false" native="false" synchronized="false"
  34705. static="true" final="false" visibility="public"
  34706. deprecated="not deprecated">
  34707. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34708. <doc>
  34709. <![CDATA[Set the static configuration for UGI.
  34710. In particular, set the security authentication mechanism and the
  34711. group look up service.
  34712. @param conf the configuration to use]]>
  34713. </doc>
  34714. </method>
  34715. <method name="isSecurityEnabled" return="boolean"
  34716. abstract="false" native="false" synchronized="false"
  34717. static="true" final="false" visibility="public"
  34718. deprecated="not deprecated">
  34719. <doc>
  34720. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  34721. user identities or is relying on simple authentication
  34722. @return true if UGI is working in a secure environment]]>
  34723. </doc>
  34724. </method>
  34725. <method name="hasKerberosCredentials" return="boolean"
  34726. abstract="false" native="false" synchronized="false"
  34727. static="false" final="false" visibility="public"
  34728. deprecated="not deprecated">
  34729. <doc>
  34730. <![CDATA[checks if logged in using kerberos
  34731. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  34732. </doc>
  34733. </method>
  34734. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  34735. abstract="false" native="false" synchronized="true"
  34736. static="true" final="false" visibility="public"
  34737. deprecated="not deprecated">
  34738. <exception name="IOException" type="java.io.IOException"/>
  34739. <doc>
  34740. <![CDATA[Return the current user, including any doAs in the current stack.
  34741. @return the current user
  34742. @throws IOException if login fails]]>
  34743. </doc>
  34744. </method>
  34745. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  34746. abstract="false" native="false" synchronized="true"
  34747. static="true" final="false" visibility="public"
  34748. deprecated="not deprecated">
  34749. <exception name="IOException" type="java.io.IOException"/>
  34750. <doc>
  34751. <![CDATA[Get the currently logged in user.
  34752. @return the logged in user
  34753. @throws IOException if login fails]]>
  34754. </doc>
  34755. </method>
  34756. <method name="isFromKeytab" return="boolean"
  34757. abstract="false" native="false" synchronized="false"
  34758. static="false" final="false" visibility="public"
  34759. deprecated="not deprecated">
  34760. <doc>
  34761. <![CDATA[Is this user logged in from a keytab file?
  34762. @return true if the credentials are from a keytab file.]]>
  34763. </doc>
  34764. </method>
  34765. <method name="loginUserFromKeytab"
  34766. abstract="false" native="false" synchronized="true"
  34767. static="true" final="false" visibility="public"
  34768. deprecated="not deprecated">
  34769. <param name="user" type="java.lang.String"/>
  34770. <param name="path" type="java.lang.String"/>
  34771. <exception name="IOException" type="java.io.IOException"/>
  34772. <doc>
  34773. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  34774. file and logs them in. They become the currently logged-in user.
  34775. @param user the principal name to load from the keytab
  34776. @param path the path to the keytab file
  34777. @throws IOException if the keytab file can't be read]]>
  34778. </doc>
  34779. </method>
  34780. <method name="reloginFromTicketCache"
  34781. abstract="false" native="false" synchronized="true"
  34782. static="false" final="false" visibility="public"
  34783. deprecated="not deprecated">
  34784. <exception name="IOException" type="java.io.IOException"/>
  34785. <doc>
  34786. <![CDATA[Re-Login a user in from the ticket cache. This
  34787. method assumes that login had happened already.
  34788. The Subject field of this UserGroupInformation object is updated to have
  34789. the new credentials.
  34790. @throws IOException on a failure]]>
  34791. </doc>
  34792. </method>
  34793. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  34794. abstract="false" native="false" synchronized="true"
  34795. static="true" final="false" visibility="public"
  34796. deprecated="not deprecated">
  34797. <param name="user" type="java.lang.String"/>
  34798. <param name="path" type="java.lang.String"/>
  34799. <exception name="IOException" type="java.io.IOException"/>
  34800. <doc>
  34801. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  34802. file and login them in. This new user does not affect the currently
  34803. logged-in user.
  34804. @param user the principal name to load from the keytab
  34805. @param path the path to the keytab file
  34806. @throws IOException if the keytab file can't be read]]>
  34807. </doc>
  34808. </method>
  34809. <method name="checkTGTAndReloginFromKeytab"
  34810. abstract="false" native="false" synchronized="true"
  34811. static="false" final="false" visibility="public"
  34812. deprecated="not deprecated">
  34813. <exception name="IOException" type="java.io.IOException"/>
  34814. <doc>
  34815. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  34816. @throws IOException]]>
  34817. </doc>
  34818. </method>
  34819. <method name="reloginFromKeytab"
  34820. abstract="false" native="false" synchronized="true"
  34821. static="false" final="false" visibility="public"
  34822. deprecated="not deprecated">
  34823. <exception name="IOException" type="java.io.IOException"/>
  34824. <doc>
  34825. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  34826. file and logs them in. They become the currently logged-in user. This
  34827. method assumes that {@link #loginUserFromKeytab(String, String)} had
  34828. happened already.
  34829. The Subject field of this UserGroupInformation object is updated to have
  34830. the new credentials.
  34831. @throws IOException on a failure]]>
  34832. </doc>
  34833. </method>
  34834. <method name="isLoginKeytabBased" return="boolean"
  34835. abstract="false" native="false" synchronized="true"
  34836. static="true" final="false" visibility="public"
  34837. deprecated="not deprecated">
  34838. <exception name="IOException" type="java.io.IOException"/>
  34839. <doc>
  34840. <![CDATA[Did the login happen via keytab
  34841. @return true or false]]>
  34842. </doc>
  34843. </method>
  34844. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  34845. abstract="false" native="false" synchronized="false"
  34846. static="true" final="false" visibility="public"
  34847. deprecated="not deprecated">
  34848. <param name="user" type="java.lang.String"/>
  34849. <doc>
  34850. <![CDATA[Create a user from a login name. It is intended to be used for remote
  34851. users in RPC, since it won't have any credentials.
  34852. @param user the full user principal name, must not be empty or null
  34853. @return the UserGroupInformation for the remote user.]]>
  34854. </doc>
  34855. </method>
  34856. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  34857. abstract="false" native="false" synchronized="false"
  34858. static="true" final="false" visibility="public"
  34859. deprecated="not deprecated">
  34860. <param name="user" type="java.lang.String"/>
  34861. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  34862. <doc>
  34863. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  34864. real user.
  34865. @param user
  34866. @param realUser
  34867. @return proxyUser ugi]]>
  34868. </doc>
  34869. </method>
  34870. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  34871. abstract="false" native="false" synchronized="false"
  34872. static="false" final="false" visibility="public"
  34873. deprecated="not deprecated">
  34874. <doc>
  34875. <![CDATA[get RealUser (vs. EffectiveUser)
  34876. @return realUser running over proxy user]]>
  34877. </doc>
  34878. </method>
  34879. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  34880. abstract="false" native="false" synchronized="false"
  34881. static="true" final="false" visibility="public"
  34882. deprecated="not deprecated">
  34883. <param name="user" type="java.lang.String"/>
  34884. <param name="userGroups" type="java.lang.String[]"/>
  34885. <doc>
  34886. <![CDATA[Create a UGI for testing HDFS and MapReduce
  34887. @param user the full user principal name
  34888. @param userGroups the names of the groups that the user belongs to
  34889. @return a fake user for running unit tests]]>
  34890. </doc>
  34891. </method>
  34892. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  34893. abstract="false" native="false" synchronized="false"
  34894. static="true" final="false" visibility="public"
  34895. deprecated="not deprecated">
  34896. <param name="user" type="java.lang.String"/>
  34897. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  34898. <param name="userGroups" type="java.lang.String[]"/>
  34899. <doc>
  34900. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  34901. @param user
  34902. the full user principal name for effective user
  34903. @param realUser
  34904. UGI of the real user
  34905. @param userGroups
  34906. the names of the groups that the user belongs to
  34907. @return a fake user for running unit tests]]>
  34908. </doc>
  34909. </method>
  34910. <method name="getShortUserName" return="java.lang.String"
  34911. abstract="false" native="false" synchronized="false"
  34912. static="false" final="false" visibility="public"
  34913. deprecated="not deprecated">
  34914. <doc>
  34915. <![CDATA[Get the user's login name.
  34916. @return the user's name up to the first '/' or '@'.]]>
  34917. </doc>
  34918. </method>
  34919. <method name="getUserName" return="java.lang.String"
  34920. abstract="false" native="false" synchronized="false"
  34921. static="false" final="false" visibility="public"
  34922. deprecated="not deprecated">
  34923. <doc>
  34924. <![CDATA[Get the user's full principal name.
  34925. @return the user's full principal name.]]>
  34926. </doc>
  34927. </method>
  34928. <method name="addTokenIdentifier" return="boolean"
  34929. abstract="false" native="false" synchronized="true"
  34930. static="false" final="false" visibility="public"
  34931. deprecated="not deprecated">
  34932. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  34933. <doc>
  34934. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  34935. authenticated by the RPC layer as belonging to the user represented by this
  34936. UGI.
  34937. @param tokenId
  34938. tokenIdentifier to be added
  34939. @return true on successful add of new tokenIdentifier]]>
  34940. </doc>
  34941. </method>
  34942. <method name="getTokenIdentifiers" return="java.util.Set"
  34943. abstract="false" native="false" synchronized="true"
  34944. static="false" final="false" visibility="public"
  34945. deprecated="not deprecated">
  34946. <doc>
  34947. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  34948. @return the set of TokenIdentifiers belonging to this UGI]]>
  34949. </doc>
  34950. </method>
  34951. <method name="addToken" return="boolean"
  34952. abstract="false" native="false" synchronized="true"
  34953. static="false" final="false" visibility="public"
  34954. deprecated="not deprecated">
  34955. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34956. <doc>
  34957. <![CDATA[Add a token to this UGI
  34958. @param token Token to be added
  34959. @return true on successful add of new token]]>
  34960. </doc>
  34961. </method>
  34962. <method name="getTokens" return="java.util.Collection"
  34963. abstract="false" native="false" synchronized="true"
  34964. static="false" final="false" visibility="public"
  34965. deprecated="not deprecated">
  34966. <doc>
  34967. <![CDATA[Obtain the collection of tokens associated with this user.
  34968. @return an unmodifiable collection of tokens associated with user]]>
  34969. </doc>
  34970. </method>
  34971. <method name="getGroupNames" return="java.lang.String[]"
  34972. abstract="false" native="false" synchronized="true"
  34973. static="false" final="false" visibility="public"
  34974. deprecated="not deprecated">
  34975. <doc>
  34976. <![CDATA[Get the group names for this user.
  34977. @return the list of users with the primary group first. If the command
  34978. fails, it returns an empty list.]]>
  34979. </doc>
  34980. </method>
  34981. <method name="toString" return="java.lang.String"
  34982. abstract="false" native="false" synchronized="false"
  34983. static="false" final="false" visibility="public"
  34984. deprecated="not deprecated">
  34985. <doc>
  34986. <![CDATA[Return the username.]]>
  34987. </doc>
  34988. </method>
  34989. <method name="setAuthenticationMethod"
  34990. abstract="false" native="false" synchronized="true"
  34991. static="false" final="false" visibility="public"
  34992. deprecated="not deprecated">
  34993. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  34994. <doc>
  34995. <![CDATA[Sets the authentication method in the subject
  34996. @param authMethod]]>
  34997. </doc>
  34998. </method>
  34999. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35000. abstract="false" native="false" synchronized="true"
  35001. static="false" final="false" visibility="public"
  35002. deprecated="not deprecated">
  35003. <doc>
  35004. <![CDATA[Get the authentication method from the subject
  35005. @return AuthenticationMethod in the subject, null if not present.]]>
  35006. </doc>
  35007. </method>
  35008. <method name="equals" return="boolean"
  35009. abstract="false" native="false" synchronized="false"
  35010. static="false" final="false" visibility="public"
  35011. deprecated="not deprecated">
  35012. <param name="o" type="java.lang.Object"/>
  35013. <doc>
  35014. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  35015. </doc>
  35016. </method>
  35017. <method name="hashCode" return="int"
  35018. abstract="false" native="false" synchronized="false"
  35019. static="false" final="false" visibility="public"
  35020. deprecated="not deprecated">
  35021. <doc>
  35022. <![CDATA[Return the hash of the subject.]]>
  35023. </doc>
  35024. </method>
  35025. <method name="getSubject" return="javax.security.auth.Subject"
  35026. abstract="false" native="false" synchronized="false"
  35027. static="false" final="false" visibility="protected"
  35028. deprecated="not deprecated">
  35029. <doc>
  35030. <![CDATA[Get the underlying subject from this ugi.
  35031. @return the subject that represents this user.]]>
  35032. </doc>
  35033. </method>
  35034. <method name="doAs" return="java.lang.Object"
  35035. abstract="false" native="false" synchronized="false"
  35036. static="false" final="false" visibility="public"
  35037. deprecated="not deprecated">
  35038. <param name="action" type="java.security.PrivilegedAction"/>
  35039. <doc>
  35040. <![CDATA[Run the given action as the user.
  35041. @param <T> the return type of the run method
  35042. @param action the method to execute
  35043. @return the value from the run method]]>
  35044. </doc>
  35045. </method>
  35046. <method name="doAs" return="java.lang.Object"
  35047. abstract="false" native="false" synchronized="false"
  35048. static="false" final="false" visibility="public"
  35049. deprecated="not deprecated">
  35050. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  35051. <exception name="IOException" type="java.io.IOException"/>
  35052. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35053. <doc>
  35054. <![CDATA[Run the given action as the user, potentially throwing an exception.
  35055. @param <T> the return type of the run method
  35056. @param action the method to execute
  35057. @return the value from the run method
  35058. @throws IOException if the action throws an IOException
  35059. @throws Error if the action throws an Error
  35060. @throws RuntimeException if the action throws a RuntimeException
  35061. @throws InterruptedException if the action throws an InterruptedException
  35062. @throws UndeclaredThrowableException if the action throws something else]]>
  35063. </doc>
  35064. </method>
  35065. <method name="main"
  35066. abstract="false" native="false" synchronized="false"
  35067. static="true" final="false" visibility="public"
  35068. deprecated="not deprecated">
  35069. <param name="args" type="java.lang.String[]"/>
  35070. <exception name="Exception" type="java.lang.Exception"/>
  35071. <doc>
  35072. <![CDATA[A test method to print out the current user's UGI.
  35073. @param args if there are two arguments, read the user from the keytab
  35074. and print it out.
  35075. @throws Exception]]>
  35076. </doc>
  35077. </method>
  35078. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  35079. transient="false" volatile="false"
  35080. static="true" final="true" visibility="public"
  35081. deprecated="not deprecated">
  35082. <doc>
  35083. <![CDATA[Environment variable pointing to the token cache file]]>
  35084. </doc>
  35085. </field>
  35086. <doc>
  35087. <![CDATA[User and group information for Hadoop.
  35088. This class wraps around a JAAS Subject and provides methods to determine the
  35089. user's username and groups. It supports both the Windows, Unix and Kerberos
  35090. login modules.]]>
  35091. </doc>
  35092. </class>
  35093. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  35094. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  35095. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  35096. abstract="false"
  35097. static="true" final="true" visibility="public"
  35098. deprecated="not deprecated">
  35099. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  35100. abstract="false" native="false" synchronized="false"
  35101. static="true" final="false" visibility="public"
  35102. deprecated="not deprecated">
  35103. </method>
  35104. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35105. abstract="false" native="false" synchronized="false"
  35106. static="true" final="false" visibility="public"
  35107. deprecated="not deprecated">
  35108. <param name="name" type="java.lang.String"/>
  35109. </method>
  35110. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35111. transient="false" volatile="false"
  35112. static="true" final="true" visibility="public"
  35113. deprecated="not deprecated">
  35114. </field>
  35115. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35116. transient="false" volatile="false"
  35117. static="true" final="true" visibility="public"
  35118. deprecated="not deprecated">
  35119. </field>
  35120. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35121. transient="false" volatile="false"
  35122. static="true" final="true" visibility="public"
  35123. deprecated="not deprecated">
  35124. </field>
  35125. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35126. transient="false" volatile="false"
  35127. static="true" final="true" visibility="public"
  35128. deprecated="not deprecated">
  35129. </field>
  35130. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35131. transient="false" volatile="false"
  35132. static="true" final="true" visibility="public"
  35133. deprecated="not deprecated">
  35134. </field>
  35135. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35136. transient="false" volatile="false"
  35137. static="true" final="true" visibility="public"
  35138. deprecated="not deprecated">
  35139. </field>
  35140. <doc>
  35141. <![CDATA[existing types of authentications' methods]]>
  35142. </doc>
  35143. </class>
  35144. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  35145. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  35146. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  35147. abstract="false"
  35148. static="true" final="false" visibility="public"
  35149. deprecated="not deprecated">
  35150. <implements name="javax.security.auth.spi.LoginModule"/>
  35151. <constructor name="UserGroupInformation.HadoopLoginModule"
  35152. static="false" final="false" visibility="public"
  35153. deprecated="not deprecated">
  35154. </constructor>
  35155. <method name="abort" return="boolean"
  35156. abstract="false" native="false" synchronized="false"
  35157. static="false" final="false" visibility="public"
  35158. deprecated="not deprecated">
  35159. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35160. </method>
  35161. <method name="commit" return="boolean"
  35162. abstract="false" native="false" synchronized="false"
  35163. static="false" final="false" visibility="public"
  35164. deprecated="not deprecated">
  35165. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35166. </method>
  35167. <method name="initialize"
  35168. abstract="false" native="false" synchronized="false"
  35169. static="false" final="false" visibility="public"
  35170. deprecated="not deprecated">
  35171. <param name="subject" type="javax.security.auth.Subject"/>
  35172. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  35173. <param name="sharedState" type="java.util.Map"/>
  35174. <param name="options" type="java.util.Map"/>
  35175. </method>
  35176. <method name="login" return="boolean"
  35177. abstract="false" native="false" synchronized="false"
  35178. static="false" final="false" visibility="public"
  35179. deprecated="not deprecated">
  35180. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35181. </method>
  35182. <method name="logout" return="boolean"
  35183. abstract="false" native="false" synchronized="false"
  35184. static="false" final="false" visibility="public"
  35185. deprecated="not deprecated">
  35186. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35187. </method>
  35188. <doc>
  35189. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  35190. adds the corresponding UserName.]]>
  35191. </doc>
  35192. </class>
  35193. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  35194. </package>
  35195. <package name="org.apache.hadoop.security.authentication.client">
  35196. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35197. <class name="AuthenticatedURL" extends="java.lang.Object"
  35198. abstract="false"
  35199. static="false" final="false" visibility="public"
  35200. deprecated="not deprecated">
  35201. <constructor name="AuthenticatedURL"
  35202. static="false" final="false" visibility="public"
  35203. deprecated="not deprecated">
  35204. <doc>
  35205. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  35206. </doc>
  35207. </constructor>
  35208. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  35209. static="false" final="false" visibility="public"
  35210. deprecated="not deprecated">
  35211. <doc>
  35212. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  35213. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  35214. KerberosAuthenticator} is used.]]>
  35215. </doc>
  35216. </constructor>
  35217. <method name="setDefaultAuthenticator"
  35218. abstract="false" native="false" synchronized="false"
  35219. static="true" final="false" visibility="public"
  35220. deprecated="not deprecated">
  35221. <param name="authenticator" type="java.lang.Class"/>
  35222. <doc>
  35223. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35224. is created without specifying an authenticator.
  35225. @param authenticator the authenticator class to use as default.]]>
  35226. </doc>
  35227. </method>
  35228. <method name="getDefaultAuthenticator" return="java.lang.Class"
  35229. abstract="false" native="false" synchronized="false"
  35230. static="true" final="false" visibility="public"
  35231. deprecated="not deprecated">
  35232. <doc>
  35233. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35234. is created without specifying an authenticator.
  35235. @return the authenticator class to use as default.]]>
  35236. </doc>
  35237. </method>
  35238. <method name="openConnection" return="java.net.HttpURLConnection"
  35239. abstract="false" native="false" synchronized="false"
  35240. static="false" final="false" visibility="public"
  35241. deprecated="not deprecated">
  35242. <param name="url" type="java.net.URL"/>
  35243. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35244. <exception name="IOException" type="java.io.IOException"/>
  35245. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35246. <doc>
  35247. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  35248. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35249. @param token the authentication token being used for the user.
  35250. @return an authenticated {@link HttpURLConnection}.
  35251. @throws IOException if an IO error occurred.
  35252. @throws AuthenticationException if an authentication exception occurred.]]>
  35253. </doc>
  35254. </method>
  35255. <method name="injectToken"
  35256. abstract="false" native="false" synchronized="false"
  35257. static="true" final="false" visibility="public"
  35258. deprecated="not deprecated">
  35259. <param name="conn" type="java.net.HttpURLConnection"/>
  35260. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35261. <doc>
  35262. <![CDATA[Helper method that injects an authentication token to send with a connection.
  35263. @param conn connection to inject the authentication token into.
  35264. @param token authentication token to inject.]]>
  35265. </doc>
  35266. </method>
  35267. <method name="extractToken"
  35268. abstract="false" native="false" synchronized="false"
  35269. static="true" final="false" visibility="public"
  35270. deprecated="not deprecated">
  35271. <param name="conn" type="java.net.HttpURLConnection"/>
  35272. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35273. <exception name="IOException" type="java.io.IOException"/>
  35274. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35275. <doc>
  35276. <![CDATA[Helper method that extracts an authentication token received from a connection.
  35277. <p/>
  35278. This method is used by {@link Authenticator} implementations.
  35279. @param conn connection to extract the authentication token from.
  35280. @param token the authentication token.
  35281. @throws IOException if an IO error occurred.
  35282. @throws AuthenticationException if an authentication exception occurred.]]>
  35283. </doc>
  35284. </method>
  35285. <field name="AUTH_COOKIE" type="java.lang.String"
  35286. transient="false" volatile="false"
  35287. static="true" final="true" visibility="public"
  35288. deprecated="not deprecated">
  35289. <doc>
  35290. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  35291. </doc>
  35292. </field>
  35293. <doc>
  35294. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  35295. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  35296. <p/>
  35297. The authentication mechanisms supported by default are Hadoop Simple authentication
  35298. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  35299. <p/>
  35300. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  35301. <p/>
  35302. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  35303. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  35304. <p/>
  35305. <code>AuthenticatedURL</code> instances are not thread-safe.
  35306. <p/>
  35307. The usage pattern of the {@link AuthenticatedURL} is:
  35308. <p/>
  35309. <pre>
  35310. // establishing an initial connection
  35311. URL url = new URL("http://foo:8080/bar");
  35312. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  35313. AuthenticatedURL aUrl = new AuthenticatedURL();
  35314. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35315. ....
  35316. // use the 'conn' instance
  35317. ....
  35318. // establishing a follow up connection using a token from the previous connection
  35319. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35320. ....
  35321. // use the 'conn' instance
  35322. ....
  35323. </pre>]]>
  35324. </doc>
  35325. </class>
  35326. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35327. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35328. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  35329. abstract="false"
  35330. static="true" final="false" visibility="public"
  35331. deprecated="not deprecated">
  35332. <constructor name="AuthenticatedURL.Token"
  35333. static="false" final="false" visibility="public"
  35334. deprecated="not deprecated">
  35335. <doc>
  35336. <![CDATA[Creates a token.]]>
  35337. </doc>
  35338. </constructor>
  35339. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  35340. static="false" final="false" visibility="public"
  35341. deprecated="not deprecated">
  35342. <doc>
  35343. <![CDATA[Creates a token using an existing string representation of the token.
  35344. @param tokenStr string representation of the tokenStr.]]>
  35345. </doc>
  35346. </constructor>
  35347. <method name="isSet" return="boolean"
  35348. abstract="false" native="false" synchronized="false"
  35349. static="false" final="false" visibility="public"
  35350. deprecated="not deprecated">
  35351. <doc>
  35352. <![CDATA[Returns if a token from the server has been set.
  35353. @return if a token from the server has been set.]]>
  35354. </doc>
  35355. </method>
  35356. <method name="toString" return="java.lang.String"
  35357. abstract="false" native="false" synchronized="false"
  35358. static="false" final="false" visibility="public"
  35359. deprecated="not deprecated">
  35360. <doc>
  35361. <![CDATA[Returns the string representation of the token.
  35362. @return the string representation of the token.]]>
  35363. </doc>
  35364. </method>
  35365. <method name="hashCode" return="int"
  35366. abstract="false" native="false" synchronized="false"
  35367. static="false" final="false" visibility="public"
  35368. deprecated="not deprecated">
  35369. <doc>
  35370. <![CDATA[Return the hashcode for the token.
  35371. @return the hashcode for the token.]]>
  35372. </doc>
  35373. </method>
  35374. <method name="equals" return="boolean"
  35375. abstract="false" native="false" synchronized="false"
  35376. static="false" final="false" visibility="public"
  35377. deprecated="not deprecated">
  35378. <param name="o" type="java.lang.Object"/>
  35379. <doc>
  35380. <![CDATA[Return if two token instances are equal.
  35381. @param o the other token instance.
  35382. @return if this instance and the other instance are equal.]]>
  35383. </doc>
  35384. </method>
  35385. <doc>
  35386. <![CDATA[Client side authentication token.]]>
  35387. </doc>
  35388. </class>
  35389. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35390. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35391. <class name="AuthenticationException" extends="java.lang.Exception"
  35392. abstract="false"
  35393. static="false" final="false" visibility="public"
  35394. deprecated="not deprecated">
  35395. <constructor name="AuthenticationException" type="java.lang.Throwable"
  35396. static="false" final="false" visibility="public"
  35397. deprecated="not deprecated">
  35398. <doc>
  35399. <![CDATA[Creates an {@link AuthenticationException}.
  35400. @param cause original exception.]]>
  35401. </doc>
  35402. </constructor>
  35403. <constructor name="AuthenticationException" type="java.lang.String"
  35404. static="false" final="false" visibility="public"
  35405. deprecated="not deprecated">
  35406. <doc>
  35407. <![CDATA[Creates an {@link AuthenticationException}.
  35408. @param msg exception message.]]>
  35409. </doc>
  35410. </constructor>
  35411. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  35412. static="false" final="false" visibility="public"
  35413. deprecated="not deprecated">
  35414. <doc>
  35415. <![CDATA[Creates an {@link AuthenticationException}.
  35416. @param msg exception message.
  35417. @param cause original exception.]]>
  35418. </doc>
  35419. </constructor>
  35420. <doc>
  35421. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  35422. </doc>
  35423. </class>
  35424. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35425. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35426. <interface name="Authenticator" abstract="true"
  35427. static="false" final="false" visibility="public"
  35428. deprecated="not deprecated">
  35429. <method name="authenticate"
  35430. abstract="false" native="false" synchronized="false"
  35431. static="false" final="false" visibility="public"
  35432. deprecated="not deprecated">
  35433. <param name="url" type="java.net.URL"/>
  35434. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35435. <exception name="IOException" type="java.io.IOException"/>
  35436. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35437. <doc>
  35438. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  35439. used by subsequent requests.
  35440. @param url the URl to authenticate against.
  35441. @param token the authentication token being used for the user.
  35442. @throws IOException if an IO error occurred.
  35443. @throws AuthenticationException if an authentication error occurred.]]>
  35444. </doc>
  35445. </method>
  35446. <doc>
  35447. <![CDATA[Interface for client authentication mechanisms.
  35448. <p/>
  35449. Implementations are use-once instances, they don't need to be thread safe.]]>
  35450. </doc>
  35451. </interface>
  35452. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35453. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  35454. <class name="KerberosAuthenticator" extends="java.lang.Object"
  35455. abstract="false"
  35456. static="false" final="false" visibility="public"
  35457. deprecated="not deprecated">
  35458. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35459. <constructor name="KerberosAuthenticator"
  35460. static="false" final="false" visibility="public"
  35461. deprecated="not deprecated">
  35462. </constructor>
  35463. <method name="authenticate"
  35464. abstract="false" native="false" synchronized="false"
  35465. static="false" final="false" visibility="public"
  35466. deprecated="not deprecated">
  35467. <param name="url" type="java.net.URL"/>
  35468. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35469. <exception name="IOException" type="java.io.IOException"/>
  35470. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35471. <doc>
  35472. <![CDATA[Performs SPNEGO authentication against the specified URL.
  35473. <p/>
  35474. If a token is given it does a NOP and returns the given token.
  35475. <p/>
  35476. If no token is given, it will perform the SPNEGO authentication sequence using an
  35477. HTTP <code>OPTIONS</code> request.
  35478. @param url the URl to authenticate against.
  35479. @param token the authentication token being used for the user.
  35480. @throws IOException if an IO error occurred.
  35481. @throws AuthenticationException if an authentication error occurred.]]>
  35482. </doc>
  35483. </method>
  35484. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  35485. abstract="false" native="false" synchronized="false"
  35486. static="false" final="false" visibility="protected"
  35487. deprecated="not deprecated">
  35488. <doc>
  35489. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  35490. <p/>
  35491. This implementation returns a {@link PseudoAuthenticator}.
  35492. @return the fallback {@link Authenticator}.]]>
  35493. </doc>
  35494. </method>
  35495. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  35496. transient="false" volatile="false"
  35497. static="true" final="true" visibility="public"
  35498. deprecated="not deprecated">
  35499. <doc>
  35500. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  35501. </doc>
  35502. </field>
  35503. <field name="AUTHORIZATION" type="java.lang.String"
  35504. transient="false" volatile="false"
  35505. static="true" final="true" visibility="public"
  35506. deprecated="not deprecated">
  35507. <doc>
  35508. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  35509. </doc>
  35510. </field>
  35511. <field name="NEGOTIATE" type="java.lang.String"
  35512. transient="false" volatile="false"
  35513. static="true" final="true" visibility="public"
  35514. deprecated="not deprecated">
  35515. <doc>
  35516. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  35517. </doc>
  35518. </field>
  35519. <doc>
  35520. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  35521. <p/>
  35522. It uses the default principal for the Kerberos cache (normally set via kinit).
  35523. <p/>
  35524. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  35525. sequence.]]>
  35526. </doc>
  35527. </class>
  35528. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  35529. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  35530. <class name="PseudoAuthenticator" extends="java.lang.Object"
  35531. abstract="false"
  35532. static="false" final="false" visibility="public"
  35533. deprecated="not deprecated">
  35534. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35535. <constructor name="PseudoAuthenticator"
  35536. static="false" final="false" visibility="public"
  35537. deprecated="not deprecated">
  35538. </constructor>
  35539. <method name="authenticate"
  35540. abstract="false" native="false" synchronized="false"
  35541. static="false" final="false" visibility="public"
  35542. deprecated="not deprecated">
  35543. <param name="url" type="java.net.URL"/>
  35544. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35545. <exception name="IOException" type="java.io.IOException"/>
  35546. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35547. <doc>
  35548. <![CDATA[Performs simple authentication against the specified URL.
  35549. <p/>
  35550. If a token is given it does a NOP and returns the given token.
  35551. <p/>
  35552. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  35553. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  35554. method.
  35555. <p/>
  35556. If the response is successful it will update the authentication token.
  35557. @param url the URl to authenticate against.
  35558. @param token the authencation token being used for the user.
  35559. @throws IOException if an IO error occurred.
  35560. @throws AuthenticationException if an authentication error occurred.]]>
  35561. </doc>
  35562. </method>
  35563. <method name="getUserName" return="java.lang.String"
  35564. abstract="false" native="false" synchronized="false"
  35565. static="false" final="false" visibility="protected"
  35566. deprecated="not deprecated">
  35567. <doc>
  35568. <![CDATA[Returns the current user name.
  35569. <p/>
  35570. This implementation returns the value of the Java system property 'user.name'
  35571. @return the current user name.]]>
  35572. </doc>
  35573. </method>
  35574. <field name="USER_NAME" type="java.lang.String"
  35575. transient="false" volatile="false"
  35576. static="true" final="true" visibility="public"
  35577. deprecated="not deprecated">
  35578. <doc>
  35579. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  35580. </doc>
  35581. </field>
  35582. <doc>
  35583. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  35584. Simple authentication, it trusts the value of the 'user.name' Java System property.
  35585. <p/>
  35586. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  35587. </doc>
  35588. </class>
  35589. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  35590. </package>
  35591. <package name="org.apache.hadoop.security.authentication.server">
  35592. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  35593. <class name="AuthenticationFilter" extends="java.lang.Object"
  35594. abstract="false"
  35595. static="false" final="false" visibility="public"
  35596. deprecated="not deprecated">
  35597. <implements name="javax.servlet.Filter"/>
  35598. <constructor name="AuthenticationFilter"
  35599. static="false" final="false" visibility="public"
  35600. deprecated="not deprecated">
  35601. </constructor>
  35602. <method name="init"
  35603. abstract="false" native="false" synchronized="false"
  35604. static="false" final="false" visibility="public"
  35605. deprecated="not deprecated">
  35606. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  35607. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35608. <doc>
  35609. <![CDATA[Initializes the authentication filter.
  35610. <p/>
  35611. It instantiates and initializes the specified {@link AuthenticationHandler}.
  35612. <p/>
  35613. @param filterConfig filter configuration.
  35614. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  35615. </doc>
  35616. </method>
  35617. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  35618. abstract="false" native="false" synchronized="false"
  35619. static="false" final="false" visibility="protected"
  35620. deprecated="not deprecated">
  35621. <doc>
  35622. <![CDATA[Returns the authentication handler being used.
  35623. @return the authentication handler being used.]]>
  35624. </doc>
  35625. </method>
  35626. <method name="isRandomSecret" return="boolean"
  35627. abstract="false" native="false" synchronized="false"
  35628. static="false" final="false" visibility="protected"
  35629. deprecated="not deprecated">
  35630. <doc>
  35631. <![CDATA[Returns if a random secret is being used.
  35632. @return if a random secret is being used.]]>
  35633. </doc>
  35634. </method>
  35635. <method name="getValidity" return="long"
  35636. abstract="false" native="false" synchronized="false"
  35637. static="false" final="false" visibility="protected"
  35638. deprecated="not deprecated">
  35639. <doc>
  35640. <![CDATA[Returns the validity time of the generated tokens.
  35641. @return the validity time of the generated tokens, in seconds.]]>
  35642. </doc>
  35643. </method>
  35644. <method name="getCookieDomain" return="java.lang.String"
  35645. abstract="false" native="false" synchronized="false"
  35646. static="false" final="false" visibility="protected"
  35647. deprecated="not deprecated">
  35648. <doc>
  35649. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  35650. @return the cookie domain to use for the HTTP cookie.]]>
  35651. </doc>
  35652. </method>
  35653. <method name="getCookiePath" return="java.lang.String"
  35654. abstract="false" native="false" synchronized="false"
  35655. static="false" final="false" visibility="protected"
  35656. deprecated="not deprecated">
  35657. <doc>
  35658. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  35659. @return the cookie path to use for the HTTP cookie.]]>
  35660. </doc>
  35661. </method>
  35662. <method name="destroy"
  35663. abstract="false" native="false" synchronized="false"
  35664. static="false" final="false" visibility="public"
  35665. deprecated="not deprecated">
  35666. <doc>
  35667. <![CDATA[Destroys the filter.
  35668. <p/>
  35669. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  35670. </doc>
  35671. </method>
  35672. <method name="getConfiguration" return="java.util.Properties"
  35673. abstract="false" native="false" synchronized="false"
  35674. static="false" final="false" visibility="protected"
  35675. deprecated="not deprecated">
  35676. <param name="configPrefix" type="java.lang.String"/>
  35677. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  35678. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35679. <doc>
  35680. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  35681. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  35682. {@link AuthenticationHandler}.
  35683. <p/>
  35684. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  35685. the web.xml file.
  35686. @param configPrefix configuration prefix to use for extracting configuration properties.
  35687. @param filterConfig filter configuration object
  35688. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  35689. @throws ServletException thrown if the configuration could not be created.]]>
  35690. </doc>
  35691. </method>
  35692. <method name="getRequestURL" return="java.lang.String"
  35693. abstract="false" native="false" synchronized="false"
  35694. static="false" final="false" visibility="protected"
  35695. deprecated="not deprecated">
  35696. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35697. <doc>
  35698. <![CDATA[Returns the full URL of the request including the query string.
  35699. <p/>
  35700. Used as a convenience method for logging purposes.
  35701. @param request the request object.
  35702. @return the full URL of the request including the query string.]]>
  35703. </doc>
  35704. </method>
  35705. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35706. abstract="false" native="false" synchronized="false"
  35707. static="false" final="false" visibility="protected"
  35708. deprecated="not deprecated">
  35709. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35710. <exception name="IOException" type="java.io.IOException"/>
  35711. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35712. <doc>
  35713. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  35714. <p/>
  35715. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  35716. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  35717. it.
  35718. <p/>
  35719. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  35720. to perform user authentication.
  35721. @param request request object.
  35722. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  35723. @throws IOException thrown if an IO error occurred.
  35724. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  35725. </doc>
  35726. </method>
  35727. <method name="doFilter"
  35728. abstract="false" native="false" synchronized="false"
  35729. static="false" final="false" visibility="public"
  35730. deprecated="not deprecated">
  35731. <param name="request" type="javax.servlet.ServletRequest"/>
  35732. <param name="response" type="javax.servlet.ServletResponse"/>
  35733. <param name="filterChain" type="javax.servlet.FilterChain"/>
  35734. <exception name="IOException" type="java.io.IOException"/>
  35735. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35736. <doc>
  35737. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  35738. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  35739. @param request the request object.
  35740. @param response the response object.
  35741. @param filterChain the filter chain object.
  35742. @throws IOException thrown if an IO error occurred.
  35743. @throws ServletException thrown if a processing error occurred.]]>
  35744. </doc>
  35745. </method>
  35746. <method name="createCookie" return="javax.servlet.http.Cookie"
  35747. abstract="false" native="false" synchronized="false"
  35748. static="false" final="false" visibility="protected"
  35749. deprecated="not deprecated">
  35750. <param name="token" type="java.lang.String"/>
  35751. <doc>
  35752. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  35753. <p/>
  35754. It sets the domain and path specified in the configuration.
  35755. @param token authentication token for the cookie.
  35756. @return the HTTP cookie.]]>
  35757. </doc>
  35758. </method>
  35759. <field name="CONFIG_PREFIX" type="java.lang.String"
  35760. transient="false" volatile="false"
  35761. static="true" final="true" visibility="public"
  35762. deprecated="not deprecated">
  35763. <doc>
  35764. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  35765. </doc>
  35766. </field>
  35767. <field name="AUTH_TYPE" type="java.lang.String"
  35768. transient="false" volatile="false"
  35769. static="true" final="true" visibility="public"
  35770. deprecated="not deprecated">
  35771. <doc>
  35772. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  35773. </doc>
  35774. </field>
  35775. <field name="SIGNATURE_SECRET" type="java.lang.String"
  35776. transient="false" volatile="false"
  35777. static="true" final="true" visibility="public"
  35778. deprecated="not deprecated">
  35779. <doc>
  35780. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  35781. </doc>
  35782. </field>
  35783. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  35784. transient="false" volatile="false"
  35785. static="true" final="true" visibility="public"
  35786. deprecated="not deprecated">
  35787. <doc>
  35788. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  35789. </doc>
  35790. </field>
  35791. <field name="COOKIE_DOMAIN" type="java.lang.String"
  35792. transient="false" volatile="false"
  35793. static="true" final="true" visibility="public"
  35794. deprecated="not deprecated">
  35795. <doc>
  35796. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  35797. </doc>
  35798. </field>
  35799. <field name="COOKIE_PATH" type="java.lang.String"
  35800. transient="false" volatile="false"
  35801. static="true" final="true" visibility="public"
  35802. deprecated="not deprecated">
  35803. <doc>
  35804. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  35805. </doc>
  35806. </field>
  35807. <doc>
  35808. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  35809. authentication mechanisms.
  35810. <p/>
  35811. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  35812. <p/>
  35813. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  35814. <p/>
  35815. This filter delegates to the configured authentication handler for authentication and once it obtains an
  35816. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  35817. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  35818. and lets the request proceed to the target resource.
  35819. <p/>
  35820. The supported configuration properties are:
  35821. <ul>
  35822. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  35823. is no prefix. See below for details on how/why this prefix is used.</li>
  35824. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  35825. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  35826. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  35827. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  35828. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  35829. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  35830. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  35831. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  35832. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  35833. </ul>
  35834. <p/>
  35835. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  35836. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  35837. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  35838. not start with the prefix will not be passed to the authentication handler initialization.]]>
  35839. </doc>
  35840. </class>
  35841. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  35842. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  35843. <interface name="AuthenticationHandler" abstract="true"
  35844. static="false" final="false" visibility="public"
  35845. deprecated="not deprecated">
  35846. <method name="getType" return="java.lang.String"
  35847. abstract="false" native="false" synchronized="false"
  35848. static="false" final="false" visibility="public"
  35849. deprecated="not deprecated">
  35850. <doc>
  35851. <![CDATA[Returns the authentication type of the authentication handler.
  35852. <p/>
  35853. This should be a name that uniquely identifies the authentication type.
  35854. For example 'simple' or 'kerberos'.
  35855. @return the authentication type of the authentication handler.]]>
  35856. </doc>
  35857. </method>
  35858. <method name="init"
  35859. abstract="false" native="false" synchronized="false"
  35860. static="false" final="false" visibility="public"
  35861. deprecated="not deprecated">
  35862. <param name="config" type="java.util.Properties"/>
  35863. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35864. <doc>
  35865. <![CDATA[Initializes the authentication handler instance.
  35866. <p/>
  35867. This method is invoked by the {@link AuthenticationFilter#init} method.
  35868. @param config configuration properties to initialize the handler.
  35869. @throws ServletException thrown if the handler could not be initialized.]]>
  35870. </doc>
  35871. </method>
  35872. <method name="destroy"
  35873. abstract="false" native="false" synchronized="false"
  35874. static="false" final="false" visibility="public"
  35875. deprecated="not deprecated">
  35876. <doc>
  35877. <![CDATA[Destroys the authentication handler instance.
  35878. <p/>
  35879. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  35880. </doc>
  35881. </method>
  35882. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35883. abstract="false" native="false" synchronized="false"
  35884. static="false" final="false" visibility="public"
  35885. deprecated="not deprecated">
  35886. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35887. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  35888. <exception name="IOException" type="java.io.IOException"/>
  35889. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35890. <doc>
  35891. <![CDATA[Performs an authentication step for the given HTTP client request.
  35892. <p/>
  35893. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  35894. not yet authenticated.
  35895. <p/>
  35896. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  35897. end up making a sequence of invocations before authentication is successfully established (this is
  35898. the case of Kerberos SPNEGO).
  35899. <p/>
  35900. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  35901. been successfully and fully authenticated.
  35902. <p/>
  35903. If the HTTP client request has not been completely authenticated, this method must take over
  35904. the corresponding HTTP response and it must return <code>null</code>.
  35905. @param request the HTTP client request.
  35906. @param response the HTTP client response.
  35907. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  35908. <code>null</code> otherwise (in this case it must take care of the response).
  35909. @throws IOException thrown if an IO error occurred.
  35910. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  35911. </doc>
  35912. </method>
  35913. <doc>
  35914. <![CDATA[Interface for server authentication mechanisms.
  35915. <p/>
  35916. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  35917. <p/>
  35918. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  35919. </doc>
  35920. </interface>
  35921. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  35922. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  35923. <class name="AuthenticationToken" extends="java.lang.Object"
  35924. abstract="false"
  35925. static="false" final="false" visibility="public"
  35926. deprecated="not deprecated">
  35927. <implements name="java.security.Principal"/>
  35928. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  35929. static="false" final="false" visibility="public"
  35930. deprecated="not deprecated">
  35931. <doc>
  35932. <![CDATA[Creates an authentication token.
  35933. @param userName user name.
  35934. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  35935. name while the userName is the short name).
  35936. @param type the authentication mechanism name.
  35937. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  35938. </doc>
  35939. </constructor>
  35940. <method name="setExpires"
  35941. abstract="false" native="false" synchronized="false"
  35942. static="false" final="false" visibility="public"
  35943. deprecated="not deprecated">
  35944. <param name="expires" type="long"/>
  35945. <doc>
  35946. <![CDATA[Sets the expiration of the token.
  35947. @param expires expiration time of the token in milliseconds since the epoch.]]>
  35948. </doc>
  35949. </method>
  35950. <method name="getUserName" return="java.lang.String"
  35951. abstract="false" native="false" synchronized="false"
  35952. static="false" final="false" visibility="public"
  35953. deprecated="not deprecated">
  35954. <doc>
  35955. <![CDATA[Returns the user name.
  35956. @return the user name.]]>
  35957. </doc>
  35958. </method>
  35959. <method name="getName" return="java.lang.String"
  35960. abstract="false" native="false" synchronized="false"
  35961. static="false" final="false" visibility="public"
  35962. deprecated="not deprecated">
  35963. <doc>
  35964. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  35965. @return the principal name.]]>
  35966. </doc>
  35967. </method>
  35968. <method name="getType" return="java.lang.String"
  35969. abstract="false" native="false" synchronized="false"
  35970. static="false" final="false" visibility="public"
  35971. deprecated="not deprecated">
  35972. <doc>
  35973. <![CDATA[Returns the authentication mechanism of the token.
  35974. @return the authentication mechanism of the token.]]>
  35975. </doc>
  35976. </method>
  35977. <method name="getExpires" return="long"
  35978. abstract="false" native="false" synchronized="false"
  35979. static="false" final="false" visibility="public"
  35980. deprecated="not deprecated">
  35981. <doc>
  35982. <![CDATA[Returns the expiration time of the token.
  35983. @return the expiration time of the token, in milliseconds since Epoc.]]>
  35984. </doc>
  35985. </method>
  35986. <method name="isExpired" return="boolean"
  35987. abstract="false" native="false" synchronized="false"
  35988. static="false" final="false" visibility="public"
  35989. deprecated="not deprecated">
  35990. <doc>
  35991. <![CDATA[Returns if the token has expired.
  35992. @return if the token has expired.]]>
  35993. </doc>
  35994. </method>
  35995. <method name="toString" return="java.lang.String"
  35996. abstract="false" native="false" synchronized="false"
  35997. static="false" final="false" visibility="public"
  35998. deprecated="not deprecated">
  35999. <doc>
  36000. <![CDATA[Returns the string representation of the token.
  36001. <p/>
  36002. This string representation is parseable by the {@link #parse} method.
  36003. @return the string representation of the token.]]>
  36004. </doc>
  36005. </method>
  36006. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36007. abstract="false" native="false" synchronized="false"
  36008. static="true" final="false" visibility="public"
  36009. deprecated="not deprecated">
  36010. <param name="tokenStr" type="java.lang.String"/>
  36011. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36012. <doc>
  36013. <![CDATA[Parses a string into an authentication token.
  36014. @param tokenStr string representation of a token.
  36015. @return the parsed authentication token.
  36016. @throws AuthenticationException thrown if the string representation could not be parsed into
  36017. an authentication token.]]>
  36018. </doc>
  36019. </method>
  36020. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36021. transient="false" volatile="false"
  36022. static="true" final="true" visibility="public"
  36023. deprecated="not deprecated">
  36024. <doc>
  36025. <![CDATA[Constant that identifies an anonymous request.]]>
  36026. </doc>
  36027. </field>
  36028. <doc>
  36029. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated HTTP client and doubles
  36030. as the {@link Principal} to be returned by authenticated {@link HttpServletRequest}s
  36031. <p/>
  36032. The token can be serialized/deserialized to and from a string as it is sent and received in HTTP client
  36033. responses and requests as a HTTP cookie (this is done by the {@link AuthenticationFilter}).]]>
  36034. </doc>
  36035. </class>
  36036. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  36037. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  36038. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  36039. abstract="false"
  36040. static="false" final="false" visibility="public"
  36041. deprecated="not deprecated">
  36042. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  36043. <constructor name="KerberosAuthenticationHandler"
  36044. static="false" final="false" visibility="public"
  36045. deprecated="not deprecated">
  36046. </constructor>
  36047. <method name="init"
  36048. abstract="false" native="false" synchronized="false"
  36049. static="false" final="false" visibility="public"
  36050. deprecated="not deprecated">
  36051. <param name="config" type="java.util.Properties"/>
  36052. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36053. <doc>
  36054. <![CDATA[Initializes the authentication handler instance.
  36055. <p/>
  36056. It creates a Kerberos context using the principal and keytab specified in the configuration.
  36057. <p/>
  36058. This method is invoked by the {@link AuthenticationFilter#init} method.
  36059. @param config configuration properties to initialize the handler.
  36060. @throws ServletException thrown if the handler could not be initialized.]]>
  36061. </doc>
  36062. </method>
  36063. <method name="destroy"
  36064. abstract="false" native="false" synchronized="false"
  36065. static="false" final="false" visibility="public"
  36066. deprecated="not deprecated">
  36067. <doc>
  36068. <![CDATA[Releases any resources initialized by the authentication handler.
  36069. <p/>
  36070. It destroys the Kerberos context.]]>
  36071. </doc>
  36072. </method>
  36073. <method name="getType" return="java.lang.String"
  36074. abstract="false" native="false" synchronized="false"
  36075. static="false" final="false" visibility="public"
  36076. deprecated="not deprecated">
  36077. <doc>
  36078. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  36079. <p/>
  36080. @return the authentication type of the authentication handler, 'kerberos'.]]>
  36081. </doc>
  36082. </method>
  36083. <method name="getPrincipal" return="java.lang.String"
  36084. abstract="false" native="false" synchronized="false"
  36085. static="false" final="false" visibility="protected"
  36086. deprecated="not deprecated">
  36087. <doc>
  36088. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  36089. @return the Kerberos principal used by the authentication handler.]]>
  36090. </doc>
  36091. </method>
  36092. <method name="getKeytab" return="java.lang.String"
  36093. abstract="false" native="false" synchronized="false"
  36094. static="false" final="false" visibility="protected"
  36095. deprecated="not deprecated">
  36096. <doc>
  36097. <![CDATA[Returns the keytab used by the authentication handler.
  36098. @return the keytab used by the authentication handler.]]>
  36099. </doc>
  36100. </method>
  36101. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36102. abstract="false" native="false" synchronized="false"
  36103. static="false" final="false" visibility="public"
  36104. deprecated="not deprecated">
  36105. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36106. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36107. <exception name="IOException" type="java.io.IOException"/>
  36108. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36109. <doc>
  36110. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  36111. after the Kerberos SPNEGO sequence has completed successfully.
  36112. <p/>
  36113. @param request the HTTP client request.
  36114. @param response the HTTP client response.
  36115. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  36116. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  36117. @throws IOException thrown if an IO error occurred.
  36118. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  36119. </doc>
  36120. </method>
  36121. <field name="TYPE" type="java.lang.String"
  36122. transient="false" volatile="false"
  36123. static="true" final="true" visibility="public"
  36124. deprecated="not deprecated">
  36125. <doc>
  36126. <![CDATA[Constant that identifies the authentication mechanism.]]>
  36127. </doc>
  36128. </field>
  36129. <field name="PRINCIPAL" type="java.lang.String"
  36130. transient="false" volatile="false"
  36131. static="true" final="true" visibility="public"
  36132. deprecated="not deprecated">
  36133. <doc>
  36134. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  36135. </doc>
  36136. </field>
  36137. <field name="KEYTAB" type="java.lang.String"
  36138. transient="false" volatile="false"
  36139. static="true" final="true" visibility="public"
  36140. deprecated="not deprecated">
  36141. <doc>
  36142. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  36143. </doc>
  36144. </field>
  36145. <field name="NAME_RULES" type="java.lang.String"
  36146. transient="false" volatile="false"
  36147. static="true" final="true" visibility="public"
  36148. deprecated="not deprecated">
  36149. <doc>
  36150. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  36151. rules for the Kerberos principals.]]>
  36152. </doc>
  36153. </field>
  36154. <doc>
  36155. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  36156. <p/>
  36157. The supported configuration properties are:
  36158. <ul>
  36159. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  36160. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  36161. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  36162. It does not have a default value.</li>
  36163. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  36164. It does not have a default value.</li>
  36165. </ul>]]>
  36166. </doc>
  36167. </class>
  36168. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  36169. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36170. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  36171. abstract="false"
  36172. static="false" final="false" visibility="public"
  36173. deprecated="not deprecated">
  36174. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  36175. <constructor name="PseudoAuthenticationHandler"
  36176. static="false" final="false" visibility="public"
  36177. deprecated="not deprecated">
  36178. </constructor>
  36179. <method name="init"
  36180. abstract="false" native="false" synchronized="false"
  36181. static="false" final="false" visibility="public"
  36182. deprecated="not deprecated">
  36183. <param name="config" type="java.util.Properties"/>
  36184. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36185. <doc>
  36186. <![CDATA[Initializes the authentication handler instance.
  36187. <p/>
  36188. This method is invoked by the {@link AuthenticationFilter#init} method.
  36189. @param config configuration properties to initialize the handler.
  36190. @throws ServletException thrown if the handler could not be initialized.]]>
  36191. </doc>
  36192. </method>
  36193. <method name="getAcceptAnonymous" return="boolean"
  36194. abstract="false" native="false" synchronized="false"
  36195. static="false" final="false" visibility="protected"
  36196. deprecated="not deprecated">
  36197. <doc>
  36198. <![CDATA[Returns if the handler is configured to support anonymous users.
  36199. @return if the handler is configured to support anonymous users.]]>
  36200. </doc>
  36201. </method>
  36202. <method name="destroy"
  36203. abstract="false" native="false" synchronized="false"
  36204. static="false" final="false" visibility="public"
  36205. deprecated="not deprecated">
  36206. <doc>
  36207. <![CDATA[Releases any resources initialized by the authentication handler.
  36208. <p/>
  36209. This implementation does a NOP.]]>
  36210. </doc>
  36211. </method>
  36212. <method name="getType" return="java.lang.String"
  36213. abstract="false" native="false" synchronized="false"
  36214. static="false" final="false" visibility="public"
  36215. deprecated="not deprecated">
  36216. <doc>
  36217. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  36218. <p/>
  36219. @return the authentication type of the authentication handler, 'simple'.]]>
  36220. </doc>
  36221. </method>
  36222. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36223. abstract="false" native="false" synchronized="false"
  36224. static="false" final="false" visibility="public"
  36225. deprecated="not deprecated">
  36226. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36227. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36228. <exception name="IOException" type="java.io.IOException"/>
  36229. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36230. <doc>
  36231. <![CDATA[Authenticates an HTTP client request.
  36232. <p/>
  36233. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  36234. an {@link AuthenticationToken} with it.
  36235. <p/>
  36236. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36237. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  36238. token.
  36239. <p/>
  36240. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36241. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  36242. @param request the HTTP client request.
  36243. @param response the HTTP client response.
  36244. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  36245. @throws IOException thrown if an IO error occurred.
  36246. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  36247. </doc>
  36248. </method>
  36249. <field name="TYPE" type="java.lang.String"
  36250. transient="false" volatile="false"
  36251. static="true" final="true" visibility="public"
  36252. deprecated="not deprecated">
  36253. <doc>
  36254. <![CDATA[Constant that identifies the authentication mechanism.]]>
  36255. </doc>
  36256. </field>
  36257. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  36258. transient="false" volatile="false"
  36259. static="true" final="true" visibility="public"
  36260. deprecated="not deprecated">
  36261. <doc>
  36262. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  36263. </doc>
  36264. </field>
  36265. <doc>
  36266. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  36267. the user name specified as a query string parameter.
  36268. <p/>
  36269. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  36270. the configuration object.
  36271. <p/>
  36272. This handler can be configured to support anonymous users.
  36273. <p/>
  36274. The only supported configuration property is:
  36275. <ul>
  36276. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  36277. </ul>]]>
  36278. </doc>
  36279. </class>
  36280. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36281. </package>
  36282. <package name="org.apache.hadoop.security.authentication.util">
  36283. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  36284. <class name="Signer" extends="java.lang.Object"
  36285. abstract="false"
  36286. static="false" final="false" visibility="public"
  36287. deprecated="not deprecated">
  36288. <constructor name="Signer" type="byte[]"
  36289. static="false" final="false" visibility="public"
  36290. deprecated="not deprecated">
  36291. <doc>
  36292. <![CDATA[Creates a Signer instance using the specified secret.
  36293. @param secret secret to use for creating the digest.]]>
  36294. </doc>
  36295. </constructor>
  36296. <method name="sign" return="java.lang.String"
  36297. abstract="false" native="false" synchronized="false"
  36298. static="false" final="false" visibility="public"
  36299. deprecated="not deprecated">
  36300. <param name="str" type="java.lang.String"/>
  36301. <doc>
  36302. <![CDATA[Returns a signed string.
  36303. <p/>
  36304. The signature '&s=SIGNATURE' is appended at the end of the string.
  36305. @param str string to sign.
  36306. @return the signed string.]]>
  36307. </doc>
  36308. </method>
  36309. <method name="verifyAndExtract" return="java.lang.String"
  36310. abstract="false" native="false" synchronized="false"
  36311. static="false" final="false" visibility="public"
  36312. deprecated="not deprecated">
  36313. <param name="signedStr" type="java.lang.String"/>
  36314. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  36315. <doc>
  36316. <![CDATA[Verifies a signed string and extracts the original string.
  36317. @param signedStr the signed string to verify and extract.
  36318. @return the extracted original string.
  36319. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  36320. </doc>
  36321. </method>
  36322. <method name="computeSignature" return="java.lang.String"
  36323. abstract="false" native="false" synchronized="false"
  36324. static="false" final="false" visibility="protected"
  36325. deprecated="not deprecated">
  36326. <param name="str" type="java.lang.String"/>
  36327. <doc>
  36328. <![CDATA[Returns then signature of a string.
  36329. @param str string to sign.
  36330. @return the signature for the string.]]>
  36331. </doc>
  36332. </method>
  36333. <doc>
  36334. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  36335. </doc>
  36336. </class>
  36337. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  36338. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  36339. <class name="SignerException" extends="java.lang.Exception"
  36340. abstract="false"
  36341. static="false" final="false" visibility="public"
  36342. deprecated="not deprecated">
  36343. <constructor name="SignerException" type="java.lang.String"
  36344. static="false" final="false" visibility="public"
  36345. deprecated="not deprecated">
  36346. <doc>
  36347. <![CDATA[Creates an exception instance.
  36348. @param msg message for the exception.]]>
  36349. </doc>
  36350. </constructor>
  36351. <doc>
  36352. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  36353. </doc>
  36354. </class>
  36355. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  36356. </package>
  36357. <package name="org.apache.hadoop.security.authorize">
  36358. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  36359. <class name="AccessControlList" extends="java.lang.Object"
  36360. abstract="false"
  36361. static="false" final="false" visibility="public"
  36362. deprecated="not deprecated">
  36363. <implements name="org.apache.hadoop.io.Writable"/>
  36364. <constructor name="AccessControlList"
  36365. static="false" final="false" visibility="public"
  36366. deprecated="not deprecated">
  36367. <doc>
  36368. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  36369. </doc>
  36370. </constructor>
  36371. <constructor name="AccessControlList" type="java.lang.String"
  36372. static="false" final="false" visibility="public"
  36373. deprecated="not deprecated">
  36374. <doc>
  36375. <![CDATA[Construct a new ACL from a String representation of the same.
  36376. The String is a a comma separated list of users and groups.
  36377. The user list comes first and is separated by a space followed
  36378. by the group list. For e.g. "user1,user2 group1,group2"
  36379. @param aclString String representation of the ACL]]>
  36380. </doc>
  36381. </constructor>
  36382. <method name="isAllAllowed" return="boolean"
  36383. abstract="false" native="false" synchronized="false"
  36384. static="false" final="false" visibility="public"
  36385. deprecated="not deprecated">
  36386. </method>
  36387. <method name="addUser"
  36388. abstract="false" native="false" synchronized="false"
  36389. static="false" final="false" visibility="public"
  36390. deprecated="not deprecated">
  36391. <param name="user" type="java.lang.String"/>
  36392. </method>
  36393. <method name="isUserAllowed" return="boolean"
  36394. abstract="false" native="false" synchronized="false"
  36395. static="false" final="false" visibility="public"
  36396. deprecated="not deprecated">
  36397. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  36398. </method>
  36399. <method name="toString" return="java.lang.String"
  36400. abstract="false" native="false" synchronized="false"
  36401. static="false" final="false" visibility="public"
  36402. deprecated="not deprecated">
  36403. </method>
  36404. <method name="write"
  36405. abstract="false" native="false" synchronized="false"
  36406. static="false" final="false" visibility="public"
  36407. deprecated="not deprecated">
  36408. <param name="out" type="java.io.DataOutput"/>
  36409. <exception name="IOException" type="java.io.IOException"/>
  36410. </method>
  36411. <method name="readFields"
  36412. abstract="false" native="false" synchronized="false"
  36413. static="false" final="false" visibility="public"
  36414. deprecated="not deprecated">
  36415. <param name="in" type="java.io.DataInput"/>
  36416. <exception name="IOException" type="java.io.IOException"/>
  36417. </method>
  36418. <method name="getACLString" return="java.lang.String"
  36419. abstract="false" native="false" synchronized="false"
  36420. static="false" final="false" visibility="public"
  36421. deprecated="not deprecated">
  36422. <doc>
  36423. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  36424. return value, this String can be directly given to the constructor of
  36425. AccessControlList to build AccessControlList object.
  36426. This is the method used by the serialization method write().]]>
  36427. </doc>
  36428. </method>
  36429. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  36430. transient="false" volatile="false"
  36431. static="true" final="true" visibility="public"
  36432. deprecated="not deprecated">
  36433. </field>
  36434. <doc>
  36435. <![CDATA[Class representing a configured access control list.]]>
  36436. </doc>
  36437. </class>
  36438. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  36439. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  36440. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  36441. abstract="false"
  36442. static="false" final="false" visibility="public"
  36443. deprecated="not deprecated">
  36444. <constructor name="AuthorizationException"
  36445. static="false" final="false" visibility="public"
  36446. deprecated="not deprecated">
  36447. </constructor>
  36448. <constructor name="AuthorizationException" type="java.lang.String"
  36449. static="false" final="false" visibility="public"
  36450. deprecated="not deprecated">
  36451. </constructor>
  36452. <constructor name="AuthorizationException" type="java.lang.Throwable"
  36453. static="false" final="false" visibility="public"
  36454. deprecated="not deprecated">
  36455. <doc>
  36456. <![CDATA[Constructs a new exception with the specified cause and a detail
  36457. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  36458. typically contains the class and detail message of <tt>cause</tt>).
  36459. @param cause the cause (which is saved for later retrieval by the
  36460. {@link #getCause()} method). (A <tt>null</tt> value is
  36461. permitted, and indicates that the cause is nonexistent or
  36462. unknown.)]]>
  36463. </doc>
  36464. </constructor>
  36465. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  36466. abstract="false" native="false" synchronized="false"
  36467. static="false" final="false" visibility="public"
  36468. deprecated="not deprecated">
  36469. </method>
  36470. <method name="printStackTrace"
  36471. abstract="false" native="false" synchronized="false"
  36472. static="false" final="false" visibility="public"
  36473. deprecated="not deprecated">
  36474. </method>
  36475. <method name="printStackTrace"
  36476. abstract="false" native="false" synchronized="false"
  36477. static="false" final="false" visibility="public"
  36478. deprecated="not deprecated">
  36479. <param name="s" type="java.io.PrintStream"/>
  36480. </method>
  36481. <method name="printStackTrace"
  36482. abstract="false" native="false" synchronized="false"
  36483. static="false" final="false" visibility="public"
  36484. deprecated="not deprecated">
  36485. <param name="s" type="java.io.PrintWriter"/>
  36486. </method>
  36487. <doc>
  36488. <![CDATA[An exception class for authorization-related issues.
  36489. This class <em>does not</em> provide the stack trace for security purposes.]]>
  36490. </doc>
  36491. </class>
  36492. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  36493. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  36494. <class name="PolicyProvider" extends="java.lang.Object"
  36495. abstract="true"
  36496. static="false" final="false" visibility="public"
  36497. deprecated="not deprecated">
  36498. <constructor name="PolicyProvider"
  36499. static="false" final="false" visibility="public"
  36500. deprecated="not deprecated">
  36501. </constructor>
  36502. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  36503. abstract="true" native="false" synchronized="false"
  36504. static="false" final="false" visibility="public"
  36505. deprecated="not deprecated">
  36506. <doc>
  36507. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  36508. @return the {@link Service} definitions]]>
  36509. </doc>
  36510. </method>
  36511. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  36512. transient="false" volatile="false"
  36513. static="true" final="true" visibility="public"
  36514. deprecated="not deprecated">
  36515. <doc>
  36516. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  36517. </doc>
  36518. </field>
  36519. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  36520. transient="false" volatile="false"
  36521. static="true" final="true" visibility="public"
  36522. deprecated="not deprecated">
  36523. <doc>
  36524. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  36525. </doc>
  36526. </field>
  36527. <doc>
  36528. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  36529. security {@link Policy} in effect for Hadoop.]]>
  36530. </doc>
  36531. </class>
  36532. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  36533. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  36534. <class name="ProxyUsers" extends="java.lang.Object"
  36535. abstract="false"
  36536. static="false" final="false" visibility="public"
  36537. deprecated="not deprecated">
  36538. <constructor name="ProxyUsers"
  36539. static="false" final="false" visibility="public"
  36540. deprecated="not deprecated">
  36541. </constructor>
  36542. <method name="refreshSuperUserGroupsConfiguration"
  36543. abstract="false" native="false" synchronized="false"
  36544. static="true" final="false" visibility="public"
  36545. deprecated="not deprecated">
  36546. <doc>
  36547. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  36548. </doc>
  36549. </method>
  36550. <method name="refreshSuperUserGroupsConfiguration"
  36551. abstract="false" native="false" synchronized="true"
  36552. static="true" final="false" visibility="public"
  36553. deprecated="not deprecated">
  36554. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36555. <doc>
  36556. <![CDATA[refresh configuration
  36557. @param conf]]>
  36558. </doc>
  36559. </method>
  36560. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  36561. abstract="false" native="false" synchronized="false"
  36562. static="true" final="false" visibility="public"
  36563. deprecated="not deprecated">
  36564. <param name="userName" type="java.lang.String"/>
  36565. <doc>
  36566. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  36567. @param userName name of the superuser
  36568. @return configuration key for superuser groups]]>
  36569. </doc>
  36570. </method>
  36571. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  36572. abstract="false" native="false" synchronized="false"
  36573. static="true" final="false" visibility="public"
  36574. deprecated="not deprecated">
  36575. <param name="userName" type="java.lang.String"/>
  36576. <doc>
  36577. <![CDATA[Return configuration key for superuser ip addresses
  36578. @param userName name of the superuser
  36579. @return configuration key for superuser ip-addresses]]>
  36580. </doc>
  36581. </method>
  36582. <method name="authorize"
  36583. abstract="false" native="false" synchronized="true"
  36584. static="true" final="false" visibility="public"
  36585. deprecated="not deprecated">
  36586. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  36587. <param name="remoteAddress" type="java.lang.String"/>
  36588. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  36589. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  36590. <doc>
  36591. <![CDATA[Authorize the superuser which is doing doAs
  36592. @param user ugi of the effective or proxy user which contains a real user
  36593. @param remoteAddress the ip address of client
  36594. @param newConf configuration
  36595. @throws AuthorizationException]]>
  36596. </doc>
  36597. </method>
  36598. <field name="CONF_GROUPS" type="java.lang.String"
  36599. transient="false" volatile="false"
  36600. static="true" final="true" visibility="public"
  36601. deprecated="not deprecated">
  36602. </field>
  36603. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  36604. transient="false" volatile="false"
  36605. static="true" final="true" visibility="public"
  36606. deprecated="not deprecated">
  36607. </field>
  36608. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  36609. transient="false" volatile="false"
  36610. static="true" final="true" visibility="public"
  36611. deprecated="not deprecated">
  36612. </field>
  36613. </class>
  36614. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  36615. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  36616. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  36617. static="false" final="false" visibility="public"
  36618. deprecated="not deprecated">
  36619. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  36620. <method name="refreshServiceAcl"
  36621. abstract="false" native="false" synchronized="false"
  36622. static="false" final="false" visibility="public"
  36623. deprecated="not deprecated">
  36624. <exception name="IOException" type="java.io.IOException"/>
  36625. <doc>
  36626. <![CDATA[Refresh the service-level authorization policy in-effect.
  36627. @throws IOException]]>
  36628. </doc>
  36629. </method>
  36630. <field name="versionID" type="long"
  36631. transient="false" volatile="false"
  36632. static="true" final="true" visibility="public"
  36633. deprecated="not deprecated">
  36634. <doc>
  36635. <![CDATA[Version 1: Initial version]]>
  36636. </doc>
  36637. </field>
  36638. <doc>
  36639. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  36640. </doc>
  36641. </interface>
  36642. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  36643. <!-- start class org.apache.hadoop.security.authorize.Service -->
  36644. <class name="Service" extends="java.lang.Object"
  36645. abstract="false"
  36646. static="false" final="false" visibility="public"
  36647. deprecated="not deprecated">
  36648. <constructor name="Service" type="java.lang.String, java.lang.Class"
  36649. static="false" final="false" visibility="public"
  36650. deprecated="not deprecated">
  36651. </constructor>
  36652. <method name="getServiceKey" return="java.lang.String"
  36653. abstract="false" native="false" synchronized="false"
  36654. static="false" final="false" visibility="public"
  36655. deprecated="not deprecated">
  36656. <doc>
  36657. <![CDATA[Get the configuration key for the service.
  36658. @return the configuration key for the service]]>
  36659. </doc>
  36660. </method>
  36661. <method name="getProtocol" return="java.lang.Class"
  36662. abstract="false" native="false" synchronized="false"
  36663. static="false" final="false" visibility="public"
  36664. deprecated="not deprecated">
  36665. <doc>
  36666. <![CDATA[Get the protocol for the service
  36667. @return the {@link Class} for the protocol]]>
  36668. </doc>
  36669. </method>
  36670. <doc>
  36671. <![CDATA[An abstract definition of <em>service</em> as related to
  36672. Service Level Authorization for Hadoop.
  36673. Each service defines it's configuration key and also the necessary
  36674. {@link Permission} required to access the service.]]>
  36675. </doc>
  36676. </class>
  36677. <!-- end class org.apache.hadoop.security.authorize.Service -->
  36678. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  36679. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  36680. abstract="false"
  36681. static="false" final="false" visibility="public"
  36682. deprecated="not deprecated">
  36683. <constructor name="ServiceAuthorizationManager"
  36684. static="false" final="false" visibility="public"
  36685. deprecated="not deprecated">
  36686. </constructor>
  36687. <method name="authorize"
  36688. abstract="false" native="false" synchronized="false"
  36689. static="true" final="false" visibility="public"
  36690. deprecated="not deprecated">
  36691. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  36692. <param name="protocol" type="java.lang.Class"/>
  36693. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36694. <param name="addr" type="java.net.InetAddress"/>
  36695. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  36696. <doc>
  36697. <![CDATA[Authorize the user to access the protocol being used.
  36698. @param user user accessing the service
  36699. @param protocol service being accessed
  36700. @param conf configuration to use
  36701. @param addr InetAddress of the client
  36702. @throws AuthorizationException on authorization failure]]>
  36703. </doc>
  36704. </method>
  36705. <method name="refresh"
  36706. abstract="false" native="false" synchronized="true"
  36707. static="true" final="false" visibility="public"
  36708. deprecated="not deprecated">
  36709. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36710. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  36711. </method>
  36712. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  36713. transient="false" volatile="false"
  36714. static="true" final="true" visibility="public"
  36715. deprecated="Use
  36716. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  36717. instead.">
  36718. <doc>
  36719. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  36720. @deprecated Use
  36721. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  36722. instead.]]>
  36723. </doc>
  36724. </field>
  36725. <doc>
  36726. <![CDATA[An authorization manager which handles service-level authorization
  36727. for incoming service requests.]]>
  36728. </doc>
  36729. </class>
  36730. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  36731. </package>
  36732. <package name="org.apache.hadoop.security.token">
  36733. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  36734. <class name="SecretManager" extends="java.lang.Object"
  36735. abstract="true"
  36736. static="false" final="false" visibility="public"
  36737. deprecated="not deprecated">
  36738. <constructor name="SecretManager"
  36739. static="false" final="false" visibility="public"
  36740. deprecated="not deprecated">
  36741. </constructor>
  36742. <method name="createPassword" return="byte[]"
  36743. abstract="true" native="false" synchronized="false"
  36744. static="false" final="false" visibility="protected"
  36745. deprecated="not deprecated">
  36746. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36747. <doc>
  36748. <![CDATA[Create the password for the given identifier.
  36749. identifier may be modified inside this method.
  36750. @param identifier the identifier to use
  36751. @return the new password]]>
  36752. </doc>
  36753. </method>
  36754. <method name="retrievePassword" return="byte[]"
  36755. abstract="true" native="false" synchronized="false"
  36756. static="false" final="false" visibility="public"
  36757. deprecated="not deprecated">
  36758. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36759. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  36760. <doc>
  36761. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  36762. or registry to make sure the token hasn't expired or been revoked. Returns
  36763. the relevant password.
  36764. @param identifier the identifier to validate
  36765. @return the password to use
  36766. @throws InvalidToken the token was invalid]]>
  36767. </doc>
  36768. </method>
  36769. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  36770. abstract="true" native="false" synchronized="false"
  36771. static="false" final="false" visibility="public"
  36772. deprecated="not deprecated">
  36773. <doc>
  36774. <![CDATA[Create an empty token identifier.
  36775. @return the newly created empty token identifier]]>
  36776. </doc>
  36777. </method>
  36778. <method name="generateSecret" return="javax.crypto.SecretKey"
  36779. abstract="false" native="false" synchronized="false"
  36780. static="false" final="false" visibility="protected"
  36781. deprecated="not deprecated">
  36782. <doc>
  36783. <![CDATA[Generate a new random secret key.
  36784. @return the new key]]>
  36785. </doc>
  36786. </method>
  36787. <method name="createPassword" return="byte[]"
  36788. abstract="false" native="false" synchronized="false"
  36789. static="true" final="false" visibility="protected"
  36790. deprecated="not deprecated">
  36791. <param name="identifier" type="byte[]"/>
  36792. <param name="key" type="javax.crypto.SecretKey"/>
  36793. <doc>
  36794. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  36795. output as password
  36796. @param identifier the bytes of the identifier
  36797. @param key the secret key
  36798. @return the bytes of the generated password]]>
  36799. </doc>
  36800. </method>
  36801. <method name="createSecretKey" return="javax.crypto.SecretKey"
  36802. abstract="false" native="false" synchronized="false"
  36803. static="true" final="false" visibility="protected"
  36804. deprecated="not deprecated">
  36805. <param name="key" type="byte[]"/>
  36806. <doc>
  36807. <![CDATA[Convert the byte[] to a secret key
  36808. @param key the byte[] to create a secret key from
  36809. @return the secret key]]>
  36810. </doc>
  36811. </method>
  36812. <doc>
  36813. <![CDATA[The server-side secret manager for each token type.
  36814. @param <T> The type of the token identifier]]>
  36815. </doc>
  36816. </class>
  36817. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  36818. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  36819. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  36820. abstract="false"
  36821. static="true" final="false" visibility="public"
  36822. deprecated="not deprecated">
  36823. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  36824. static="false" final="false" visibility="public"
  36825. deprecated="not deprecated">
  36826. </constructor>
  36827. <doc>
  36828. <![CDATA[The token was invalid and the message explains why.]]>
  36829. </doc>
  36830. </class>
  36831. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  36832. <!-- start class org.apache.hadoop.security.token.Token -->
  36833. <class name="Token" extends="java.lang.Object"
  36834. abstract="false"
  36835. static="false" final="false" visibility="public"
  36836. deprecated="not deprecated">
  36837. <implements name="org.apache.hadoop.io.Writable"/>
  36838. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  36839. static="false" final="false" visibility="public"
  36840. deprecated="not deprecated">
  36841. <doc>
  36842. <![CDATA[Construct a token given a token identifier and a secret manager for the
  36843. type of the token identifier.
  36844. @param id the token identifier
  36845. @param mgr the secret manager]]>
  36846. </doc>
  36847. </constructor>
  36848. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  36849. static="false" final="false" visibility="public"
  36850. deprecated="not deprecated">
  36851. <doc>
  36852. <![CDATA[Construct a token from the components.
  36853. @param identifier the token identifier
  36854. @param password the token's password
  36855. @param kind the kind of token
  36856. @param service the service for this token]]>
  36857. </doc>
  36858. </constructor>
  36859. <constructor name="Token"
  36860. static="false" final="false" visibility="public"
  36861. deprecated="not deprecated">
  36862. <doc>
  36863. <![CDATA[Default constructor]]>
  36864. </doc>
  36865. </constructor>
  36866. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  36867. static="false" final="false" visibility="public"
  36868. deprecated="not deprecated">
  36869. <doc>
  36870. <![CDATA[Clone a token.
  36871. @param other the token to clone]]>
  36872. </doc>
  36873. </constructor>
  36874. <method name="getIdentifier" return="byte[]"
  36875. abstract="false" native="false" synchronized="false"
  36876. static="false" final="false" visibility="public"
  36877. deprecated="not deprecated">
  36878. <doc>
  36879. <![CDATA[Get the token identifier
  36880. @return the token identifier]]>
  36881. </doc>
  36882. </method>
  36883. <method name="getPassword" return="byte[]"
  36884. abstract="false" native="false" synchronized="false"
  36885. static="false" final="false" visibility="public"
  36886. deprecated="not deprecated">
  36887. <doc>
  36888. <![CDATA[Get the token password/secret
  36889. @return the token password/secret]]>
  36890. </doc>
  36891. </method>
  36892. <method name="getKind" return="org.apache.hadoop.io.Text"
  36893. abstract="false" native="false" synchronized="false"
  36894. static="false" final="false" visibility="public"
  36895. deprecated="not deprecated">
  36896. <doc>
  36897. <![CDATA[Get the token kind
  36898. @return the kind of the token]]>
  36899. </doc>
  36900. </method>
  36901. <method name="setKind"
  36902. abstract="false" native="false" synchronized="true"
  36903. static="false" final="false" visibility="public"
  36904. deprecated="not deprecated">
  36905. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  36906. <doc>
  36907. <![CDATA[Set the token kind. This is only intended to be used by services that
  36908. wrap another service's token, such as HFTP wrapping HDFS.
  36909. @param newKind]]>
  36910. </doc>
  36911. </method>
  36912. <method name="getService" return="org.apache.hadoop.io.Text"
  36913. abstract="false" native="false" synchronized="false"
  36914. static="false" final="false" visibility="public"
  36915. deprecated="not deprecated">
  36916. <doc>
  36917. <![CDATA[Get the service on which the token is supposed to be used
  36918. @return the service name]]>
  36919. </doc>
  36920. </method>
  36921. <method name="setService"
  36922. abstract="false" native="false" synchronized="false"
  36923. static="false" final="false" visibility="public"
  36924. deprecated="not deprecated">
  36925. <param name="newService" type="org.apache.hadoop.io.Text"/>
  36926. <doc>
  36927. <![CDATA[Set the service on which the token is supposed to be used
  36928. @param newService the service name]]>
  36929. </doc>
  36930. </method>
  36931. <method name="readFields"
  36932. abstract="false" native="false" synchronized="false"
  36933. static="false" final="false" visibility="public"
  36934. deprecated="not deprecated">
  36935. <param name="in" type="java.io.DataInput"/>
  36936. <exception name="IOException" type="java.io.IOException"/>
  36937. <doc>
  36938. <![CDATA[{@inheritDoc}]]>
  36939. </doc>
  36940. </method>
  36941. <method name="write"
  36942. abstract="false" native="false" synchronized="false"
  36943. static="false" final="false" visibility="public"
  36944. deprecated="not deprecated">
  36945. <param name="out" type="java.io.DataOutput"/>
  36946. <exception name="IOException" type="java.io.IOException"/>
  36947. <doc>
  36948. <![CDATA[{@inheritDoc}]]>
  36949. </doc>
  36950. </method>
  36951. <method name="encodeToUrlString" return="java.lang.String"
  36952. abstract="false" native="false" synchronized="false"
  36953. static="false" final="false" visibility="public"
  36954. deprecated="not deprecated">
  36955. <exception name="IOException" type="java.io.IOException"/>
  36956. <doc>
  36957. <![CDATA[Encode this token as a url safe string
  36958. @return the encoded string
  36959. @throws IOException]]>
  36960. </doc>
  36961. </method>
  36962. <method name="decodeFromUrlString"
  36963. abstract="false" native="false" synchronized="false"
  36964. static="false" final="false" visibility="public"
  36965. deprecated="not deprecated">
  36966. <param name="newValue" type="java.lang.String"/>
  36967. <exception name="IOException" type="java.io.IOException"/>
  36968. <doc>
  36969. <![CDATA[Decode the given url safe string into this token.
  36970. @param newValue the encoded string
  36971. @throws IOException]]>
  36972. </doc>
  36973. </method>
  36974. <method name="equals" return="boolean"
  36975. abstract="false" native="false" synchronized="false"
  36976. static="false" final="false" visibility="public"
  36977. deprecated="not deprecated">
  36978. <param name="right" type="java.lang.Object"/>
  36979. </method>
  36980. <method name="hashCode" return="int"
  36981. abstract="false" native="false" synchronized="false"
  36982. static="false" final="false" visibility="public"
  36983. deprecated="not deprecated">
  36984. </method>
  36985. <method name="toString" return="java.lang.String"
  36986. abstract="false" native="false" synchronized="false"
  36987. static="false" final="false" visibility="public"
  36988. deprecated="not deprecated">
  36989. </method>
  36990. <method name="isManaged" return="boolean"
  36991. abstract="false" native="false" synchronized="false"
  36992. static="false" final="false" visibility="public"
  36993. deprecated="not deprecated">
  36994. <exception name="IOException" type="java.io.IOException"/>
  36995. <doc>
  36996. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  36997. @return true, if it can be renewed and cancelled.]]>
  36998. </doc>
  36999. </method>
  37000. <method name="renew" return="long"
  37001. abstract="false" native="false" synchronized="false"
  37002. static="false" final="false" visibility="public"
  37003. deprecated="not deprecated">
  37004. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37005. <exception name="IOException" type="java.io.IOException"/>
  37006. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37007. <doc>
  37008. <![CDATA[Renew this delegation token
  37009. @return the new expiration time
  37010. @throws IOException
  37011. @throws InterruptedException]]>
  37012. </doc>
  37013. </method>
  37014. <method name="cancel"
  37015. abstract="false" native="false" synchronized="false"
  37016. static="false" final="false" visibility="public"
  37017. deprecated="not deprecated">
  37018. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37019. <exception name="IOException" type="java.io.IOException"/>
  37020. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37021. <doc>
  37022. <![CDATA[Cancel this delegation token
  37023. @throws IOException
  37024. @throws InterruptedException]]>
  37025. </doc>
  37026. </method>
  37027. <field name="LOG" type="org.apache.commons.logging.Log"
  37028. transient="false" volatile="false"
  37029. static="true" final="true" visibility="public"
  37030. deprecated="not deprecated">
  37031. </field>
  37032. <doc>
  37033. <![CDATA[The client-side form of the token.]]>
  37034. </doc>
  37035. </class>
  37036. <!-- end class org.apache.hadoop.security.token.Token -->
  37037. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  37038. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  37039. abstract="false"
  37040. static="true" final="false" visibility="public"
  37041. deprecated="not deprecated">
  37042. <constructor name="Token.TrivialRenewer"
  37043. static="false" final="false" visibility="public"
  37044. deprecated="not deprecated">
  37045. </constructor>
  37046. <method name="getKind" return="org.apache.hadoop.io.Text"
  37047. abstract="false" native="false" synchronized="false"
  37048. static="false" final="false" visibility="protected"
  37049. deprecated="not deprecated">
  37050. </method>
  37051. <method name="handleKind" return="boolean"
  37052. abstract="false" native="false" synchronized="false"
  37053. static="false" final="false" visibility="public"
  37054. deprecated="not deprecated">
  37055. <param name="kind" type="org.apache.hadoop.io.Text"/>
  37056. </method>
  37057. <method name="isManaged" return="boolean"
  37058. abstract="false" native="false" synchronized="false"
  37059. static="false" final="false" visibility="public"
  37060. deprecated="not deprecated">
  37061. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37062. </method>
  37063. <method name="renew" return="long"
  37064. abstract="false" native="false" synchronized="false"
  37065. static="false" final="false" visibility="public"
  37066. deprecated="not deprecated">
  37067. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37068. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37069. </method>
  37070. <method name="cancel"
  37071. abstract="false" native="false" synchronized="false"
  37072. static="false" final="false" visibility="public"
  37073. deprecated="not deprecated">
  37074. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37075. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37076. <exception name="IOException" type="java.io.IOException"/>
  37077. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37078. </method>
  37079. <doc>
  37080. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  37081. to implement getKind for their token kind.]]>
  37082. </doc>
  37083. </class>
  37084. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  37085. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  37086. <class name="TokenIdentifier" extends="java.lang.Object"
  37087. abstract="true"
  37088. static="false" final="false" visibility="public"
  37089. deprecated="not deprecated">
  37090. <implements name="org.apache.hadoop.io.Writable"/>
  37091. <constructor name="TokenIdentifier"
  37092. static="false" final="false" visibility="public"
  37093. deprecated="not deprecated">
  37094. </constructor>
  37095. <method name="getKind" return="org.apache.hadoop.io.Text"
  37096. abstract="true" native="false" synchronized="false"
  37097. static="false" final="false" visibility="public"
  37098. deprecated="not deprecated">
  37099. <doc>
  37100. <![CDATA[Get the token kind
  37101. @return the kind of the token]]>
  37102. </doc>
  37103. </method>
  37104. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  37105. abstract="true" native="false" synchronized="false"
  37106. static="false" final="false" visibility="public"
  37107. deprecated="not deprecated">
  37108. <doc>
  37109. <![CDATA[Get the Ugi with the username encoded in the token identifier
  37110. @return the username. null is returned if username in the identifier is
  37111. empty or null.]]>
  37112. </doc>
  37113. </method>
  37114. <method name="getBytes" return="byte[]"
  37115. abstract="false" native="false" synchronized="false"
  37116. static="false" final="false" visibility="public"
  37117. deprecated="not deprecated">
  37118. <doc>
  37119. <![CDATA[Get the bytes for the token identifier
  37120. @return the bytes of the identifier]]>
  37121. </doc>
  37122. </method>
  37123. <doc>
  37124. <![CDATA[An identifier that identifies a token, may contain public information
  37125. about a token, including its kind (or type).]]>
  37126. </doc>
  37127. </class>
  37128. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  37129. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  37130. <interface name="TokenInfo" abstract="true"
  37131. static="false" final="false" visibility="public"
  37132. deprecated="not deprecated">
  37133. <implements name="java.lang.annotation.Annotation"/>
  37134. <method name="value" return="java.lang.Class"
  37135. abstract="false" native="false" synchronized="false"
  37136. static="false" final="false" visibility="public"
  37137. deprecated="not deprecated">
  37138. <doc>
  37139. <![CDATA[The type of TokenSelector to be used]]>
  37140. </doc>
  37141. </method>
  37142. <doc>
  37143. <![CDATA[Indicates Token related information to be used]]>
  37144. </doc>
  37145. </interface>
  37146. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  37147. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  37148. <class name="TokenRenewer" extends="java.lang.Object"
  37149. abstract="true"
  37150. static="false" final="false" visibility="public"
  37151. deprecated="not deprecated">
  37152. <constructor name="TokenRenewer"
  37153. static="false" final="false" visibility="public"
  37154. deprecated="not deprecated">
  37155. </constructor>
  37156. <method name="handleKind" return="boolean"
  37157. abstract="true" native="false" synchronized="false"
  37158. static="false" final="false" visibility="public"
  37159. deprecated="not deprecated">
  37160. <param name="kind" type="org.apache.hadoop.io.Text"/>
  37161. <doc>
  37162. <![CDATA[Does this renewer handle this kind of token?
  37163. @param kind the kind of the token
  37164. @return true if this renewer can renew it]]>
  37165. </doc>
  37166. </method>
  37167. <method name="isManaged" return="boolean"
  37168. abstract="true" native="false" synchronized="false"
  37169. static="false" final="false" visibility="public"
  37170. deprecated="not deprecated">
  37171. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37172. <exception name="IOException" type="java.io.IOException"/>
  37173. <doc>
  37174. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  37175. cancelled.
  37176. @param token the token being checked
  37177. @return true if the token may be renewed or cancelled
  37178. @throws IOException]]>
  37179. </doc>
  37180. </method>
  37181. <method name="renew" return="long"
  37182. abstract="true" native="false" synchronized="false"
  37183. static="false" final="false" visibility="public"
  37184. deprecated="not deprecated">
  37185. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37187. <exception name="IOException" type="java.io.IOException"/>
  37188. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37189. <doc>
  37190. <![CDATA[Renew the given token.
  37191. @return the new expiration time
  37192. @throws IOException
  37193. @throws InterruptedException]]>
  37194. </doc>
  37195. </method>
  37196. <method name="cancel"
  37197. abstract="true" native="false" synchronized="false"
  37198. static="false" final="false" visibility="public"
  37199. deprecated="not deprecated">
  37200. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37201. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37202. <exception name="IOException" type="java.io.IOException"/>
  37203. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37204. <doc>
  37205. <![CDATA[Cancel the given token
  37206. @throws IOException
  37207. @throws InterruptedException]]>
  37208. </doc>
  37209. </method>
  37210. <doc>
  37211. <![CDATA[This is the interface for plugins that handle tokens.]]>
  37212. </doc>
  37213. </class>
  37214. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  37215. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  37216. <interface name="TokenSelector" abstract="true"
  37217. static="false" final="false" visibility="public"
  37218. deprecated="not deprecated">
  37219. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  37220. abstract="false" native="false" synchronized="false"
  37221. static="false" final="false" visibility="public"
  37222. deprecated="not deprecated">
  37223. <param name="service" type="org.apache.hadoop.io.Text"/>
  37224. <param name="tokens" type="java.util.Collection"/>
  37225. </method>
  37226. <doc>
  37227. <![CDATA[Select token of type T from tokens for use with named service
  37228. @param <T>
  37229. T extends TokenIdentifier]]>
  37230. </doc>
  37231. </interface>
  37232. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  37233. </package>
  37234. <package name="org.apache.hadoop.security.token.delegation">
  37235. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37236. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  37237. abstract="true"
  37238. static="false" final="false" visibility="public"
  37239. deprecated="not deprecated">
  37240. <constructor name="AbstractDelegationTokenIdentifier"
  37241. static="false" final="false" visibility="public"
  37242. deprecated="not deprecated">
  37243. </constructor>
  37244. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  37245. static="false" final="false" visibility="public"
  37246. deprecated="not deprecated">
  37247. </constructor>
  37248. <method name="getKind" return="org.apache.hadoop.io.Text"
  37249. abstract="true" native="false" synchronized="false"
  37250. static="false" final="false" visibility="public"
  37251. deprecated="not deprecated">
  37252. </method>
  37253. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  37254. abstract="false" native="false" synchronized="false"
  37255. static="false" final="false" visibility="public"
  37256. deprecated="not deprecated">
  37257. <doc>
  37258. <![CDATA[Get the username encoded in the token identifier
  37259. @return the username or owner]]>
  37260. </doc>
  37261. </method>
  37262. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  37263. abstract="false" native="false" synchronized="false"
  37264. static="false" final="false" visibility="public"
  37265. deprecated="not deprecated">
  37266. </method>
  37267. <method name="setIssueDate"
  37268. abstract="false" native="false" synchronized="false"
  37269. static="false" final="false" visibility="public"
  37270. deprecated="not deprecated">
  37271. <param name="issueDate" type="long"/>
  37272. </method>
  37273. <method name="getIssueDate" return="long"
  37274. abstract="false" native="false" synchronized="false"
  37275. static="false" final="false" visibility="public"
  37276. deprecated="not deprecated">
  37277. </method>
  37278. <method name="setMaxDate"
  37279. abstract="false" native="false" synchronized="false"
  37280. static="false" final="false" visibility="public"
  37281. deprecated="not deprecated">
  37282. <param name="maxDate" type="long"/>
  37283. </method>
  37284. <method name="getMaxDate" return="long"
  37285. abstract="false" native="false" synchronized="false"
  37286. static="false" final="false" visibility="public"
  37287. deprecated="not deprecated">
  37288. </method>
  37289. <method name="setSequenceNumber"
  37290. abstract="false" native="false" synchronized="false"
  37291. static="false" final="false" visibility="public"
  37292. deprecated="not deprecated">
  37293. <param name="seqNum" type="int"/>
  37294. </method>
  37295. <method name="getSequenceNumber" return="int"
  37296. abstract="false" native="false" synchronized="false"
  37297. static="false" final="false" visibility="public"
  37298. deprecated="not deprecated">
  37299. </method>
  37300. <method name="setMasterKeyId"
  37301. abstract="false" native="false" synchronized="false"
  37302. static="false" final="false" visibility="public"
  37303. deprecated="not deprecated">
  37304. <param name="newId" type="int"/>
  37305. </method>
  37306. <method name="getMasterKeyId" return="int"
  37307. abstract="false" native="false" synchronized="false"
  37308. static="false" final="false" visibility="public"
  37309. deprecated="not deprecated">
  37310. </method>
  37311. <method name="equals" return="boolean"
  37312. abstract="false" native="false" synchronized="false"
  37313. static="false" final="false" visibility="public"
  37314. deprecated="not deprecated">
  37315. <param name="obj" type="java.lang.Object"/>
  37316. <doc>
  37317. <![CDATA[{@inheritDoc}]]>
  37318. </doc>
  37319. </method>
  37320. <method name="hashCode" return="int"
  37321. abstract="false" native="false" synchronized="false"
  37322. static="false" final="false" visibility="public"
  37323. deprecated="not deprecated">
  37324. <doc>
  37325. <![CDATA[{@inheritDoc}]]>
  37326. </doc>
  37327. </method>
  37328. <method name="readFields"
  37329. abstract="false" native="false" synchronized="false"
  37330. static="false" final="false" visibility="public"
  37331. deprecated="not deprecated">
  37332. <param name="in" type="java.io.DataInput"/>
  37333. <exception name="IOException" type="java.io.IOException"/>
  37334. </method>
  37335. <method name="write"
  37336. abstract="false" native="false" synchronized="false"
  37337. static="false" final="false" visibility="public"
  37338. deprecated="not deprecated">
  37339. <param name="out" type="java.io.DataOutput"/>
  37340. <exception name="IOException" type="java.io.IOException"/>
  37341. </method>
  37342. <method name="toString" return="java.lang.String"
  37343. abstract="false" native="false" synchronized="false"
  37344. static="false" final="false" visibility="public"
  37345. deprecated="not deprecated">
  37346. </method>
  37347. </class>
  37348. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37349. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  37350. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  37351. abstract="true"
  37352. static="false" final="false" visibility="public"
  37353. deprecated="not deprecated">
  37354. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  37355. static="false" final="false" visibility="public"
  37356. deprecated="not deprecated">
  37357. </constructor>
  37358. <method name="startThreads"
  37359. abstract="false" native="false" synchronized="true"
  37360. static="false" final="false" visibility="public"
  37361. deprecated="not deprecated">
  37362. <exception name="IOException" type="java.io.IOException"/>
  37363. <doc>
  37364. <![CDATA[should be called before this object is used]]>
  37365. </doc>
  37366. </method>
  37367. <method name="isRunning" return="boolean"
  37368. abstract="false" native="false" synchronized="true"
  37369. static="false" final="false" visibility="public"
  37370. deprecated="not deprecated">
  37371. <doc>
  37372. <![CDATA[is secretMgr running
  37373. @return true if secret mgr is running]]>
  37374. </doc>
  37375. </method>
  37376. <method name="addKey"
  37377. abstract="false" native="false" synchronized="true"
  37378. static="false" final="false" visibility="public"
  37379. deprecated="not deprecated">
  37380. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37381. <exception name="IOException" type="java.io.IOException"/>
  37382. <doc>
  37383. <![CDATA[Add a previously used master key to cache (when NN restarts),
  37384. should be called before activate().]]>
  37385. </doc>
  37386. </method>
  37387. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  37388. abstract="false" native="false" synchronized="true"
  37389. static="false" final="false" visibility="public"
  37390. deprecated="not deprecated">
  37391. </method>
  37392. <method name="logUpdateMasterKey"
  37393. abstract="false" native="false" synchronized="false"
  37394. static="false" final="false" visibility="protected"
  37395. deprecated="not deprecated">
  37396. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37397. <exception name="IOException" type="java.io.IOException"/>
  37398. </method>
  37399. <method name="createPassword" return="byte[]"
  37400. abstract="false" native="false" synchronized="true"
  37401. static="false" final="false" visibility="protected"
  37402. deprecated="not deprecated">
  37403. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37404. </method>
  37405. <method name="retrievePassword" return="byte[]"
  37406. abstract="false" native="false" synchronized="true"
  37407. static="false" final="false" visibility="public"
  37408. deprecated="not deprecated">
  37409. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37410. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37411. </method>
  37412. <method name="verifyToken"
  37413. abstract="false" native="false" synchronized="true"
  37414. static="false" final="false" visibility="public"
  37415. deprecated="not deprecated">
  37416. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37417. <param name="password" type="byte[]"/>
  37418. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37419. <doc>
  37420. <![CDATA[Verifies that the given identifier and password are valid and match.
  37421. @param identifier Token identifier.
  37422. @param password Password in the token.
  37423. @throws InvalidToken]]>
  37424. </doc>
  37425. </method>
  37426. <method name="renewToken" return="long"
  37427. abstract="false" native="false" synchronized="true"
  37428. static="false" final="false" visibility="public"
  37429. deprecated="not deprecated">
  37430. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37431. <param name="renewer" type="java.lang.String"/>
  37432. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37433. <exception name="IOException" type="java.io.IOException"/>
  37434. <doc>
  37435. <![CDATA[Renew a delegation token.
  37436. @param token the token to renew
  37437. @param renewer the full principal name of the user doing the renewal
  37438. @return the new expiration time
  37439. @throws InvalidToken if the token is invalid
  37440. @throws AccessControlException if the user can't renew token]]>
  37441. </doc>
  37442. </method>
  37443. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  37444. abstract="false" native="false" synchronized="true"
  37445. static="false" final="false" visibility="public"
  37446. deprecated="not deprecated">
  37447. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37448. <param name="canceller" type="java.lang.String"/>
  37449. <exception name="IOException" type="java.io.IOException"/>
  37450. <doc>
  37451. <![CDATA[Cancel a token by removing it from cache.
  37452. @return Identifier of the canceled token
  37453. @throws InvalidToken for invalid token
  37454. @throws AccessControlException if the user isn't allowed to cancel]]>
  37455. </doc>
  37456. </method>
  37457. <method name="createSecretKey" return="javax.crypto.SecretKey"
  37458. abstract="false" native="false" synchronized="false"
  37459. static="true" final="false" visibility="public"
  37460. deprecated="not deprecated">
  37461. <param name="key" type="byte[]"/>
  37462. <doc>
  37463. <![CDATA[Convert the byte[] to a secret key
  37464. @param key the byte[] to create the secret key from
  37465. @return the secret key]]>
  37466. </doc>
  37467. </method>
  37468. <method name="stopThreads"
  37469. abstract="false" native="false" synchronized="true"
  37470. static="false" final="false" visibility="public"
  37471. deprecated="not deprecated">
  37472. </method>
  37473. <field name="currentTokens" type="java.util.Map"
  37474. transient="false" volatile="false"
  37475. static="false" final="true" visibility="protected"
  37476. deprecated="not deprecated">
  37477. <doc>
  37478. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  37479. to DelegationTokenInformation. Protected by this object lock.]]>
  37480. </doc>
  37481. </field>
  37482. <field name="delegationTokenSequenceNumber" type="int"
  37483. transient="false" volatile="false"
  37484. static="false" final="false" visibility="protected"
  37485. deprecated="not deprecated">
  37486. <doc>
  37487. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  37488. Protected by this object lock.]]>
  37489. </doc>
  37490. </field>
  37491. <field name="allKeys" type="java.util.Map"
  37492. transient="false" volatile="false"
  37493. static="false" final="true" visibility="protected"
  37494. deprecated="not deprecated">
  37495. <doc>
  37496. <![CDATA[Access to allKeys is protected by this object lock]]>
  37497. </doc>
  37498. </field>
  37499. <field name="currentId" type="int"
  37500. transient="false" volatile="false"
  37501. static="false" final="false" visibility="protected"
  37502. deprecated="not deprecated">
  37503. <doc>
  37504. <![CDATA[Access to currentId is protected by this object lock.]]>
  37505. </doc>
  37506. </field>
  37507. <field name="running" type="boolean"
  37508. transient="false" volatile="true"
  37509. static="false" final="false" visibility="protected"
  37510. deprecated="not deprecated">
  37511. </field>
  37512. </class>
  37513. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  37514. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  37515. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  37516. abstract="false"
  37517. static="true" final="false" visibility="public"
  37518. deprecated="not deprecated">
  37519. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  37520. static="false" final="false" visibility="public"
  37521. deprecated="not deprecated">
  37522. </constructor>
  37523. <method name="getRenewDate" return="long"
  37524. abstract="false" native="false" synchronized="false"
  37525. static="false" final="false" visibility="public"
  37526. deprecated="not deprecated">
  37527. <doc>
  37528. <![CDATA[returns renew date]]>
  37529. </doc>
  37530. </method>
  37531. <doc>
  37532. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  37533. </doc>
  37534. </class>
  37535. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  37536. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  37537. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  37538. abstract="false"
  37539. static="false" final="false" visibility="public"
  37540. deprecated="not deprecated">
  37541. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  37542. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  37543. static="false" final="false" visibility="protected"
  37544. deprecated="not deprecated">
  37545. </constructor>
  37546. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  37547. abstract="false" native="false" synchronized="false"
  37548. static="false" final="false" visibility="public"
  37549. deprecated="not deprecated">
  37550. <param name="service" type="org.apache.hadoop.io.Text"/>
  37551. <param name="tokens" type="java.util.Collection"/>
  37552. </method>
  37553. <doc>
  37554. <![CDATA[Look through tokens to find the first delegation token that matches the
  37555. service and return it.]]>
  37556. </doc>
  37557. </class>
  37558. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  37559. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  37560. <class name="DelegationKey" extends="java.lang.Object"
  37561. abstract="false"
  37562. static="false" final="false" visibility="public"
  37563. deprecated="not deprecated">
  37564. <implements name="org.apache.hadoop.io.Writable"/>
  37565. <constructor name="DelegationKey"
  37566. static="false" final="false" visibility="public"
  37567. deprecated="not deprecated">
  37568. </constructor>
  37569. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  37570. static="false" final="false" visibility="public"
  37571. deprecated="not deprecated">
  37572. </constructor>
  37573. <method name="getKeyId" return="int"
  37574. abstract="false" native="false" synchronized="false"
  37575. static="false" final="false" visibility="public"
  37576. deprecated="not deprecated">
  37577. </method>
  37578. <method name="getExpiryDate" return="long"
  37579. abstract="false" native="false" synchronized="false"
  37580. static="false" final="false" visibility="public"
  37581. deprecated="not deprecated">
  37582. </method>
  37583. <method name="getKey" return="javax.crypto.SecretKey"
  37584. abstract="false" native="false" synchronized="false"
  37585. static="false" final="false" visibility="public"
  37586. deprecated="not deprecated">
  37587. </method>
  37588. <method name="setExpiryDate"
  37589. abstract="false" native="false" synchronized="false"
  37590. static="false" final="false" visibility="public"
  37591. deprecated="not deprecated">
  37592. <param name="expiryDate" type="long"/>
  37593. </method>
  37594. <method name="write"
  37595. abstract="false" native="false" synchronized="false"
  37596. static="false" final="false" visibility="public"
  37597. deprecated="not deprecated">
  37598. <param name="out" type="java.io.DataOutput"/>
  37599. <exception name="IOException" type="java.io.IOException"/>
  37600. </method>
  37601. <method name="readFields"
  37602. abstract="false" native="false" synchronized="false"
  37603. static="false" final="false" visibility="public"
  37604. deprecated="not deprecated">
  37605. <param name="in" type="java.io.DataInput"/>
  37606. <exception name="IOException" type="java.io.IOException"/>
  37607. </method>
  37608. <doc>
  37609. <![CDATA[Key used for generating and verifying delegation tokens]]>
  37610. </doc>
  37611. </class>
  37612. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  37613. </package>
  37614. <package name="org.apache.hadoop.util">
  37615. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  37616. <class name="ChecksumUtil" extends="java.lang.Object"
  37617. abstract="false"
  37618. static="false" final="false" visibility="public"
  37619. deprecated="not deprecated">
  37620. <constructor name="ChecksumUtil"
  37621. static="false" final="false" visibility="public"
  37622. deprecated="not deprecated">
  37623. </constructor>
  37624. <method name="updateChunkChecksum"
  37625. abstract="false" native="false" synchronized="false"
  37626. static="true" final="false" visibility="public"
  37627. deprecated="not deprecated">
  37628. <param name="buf" type="byte[]"/>
  37629. <param name="checksumOff" type="int"/>
  37630. <param name="dataOff" type="int"/>
  37631. <param name="dataLen" type="int"/>
  37632. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  37633. <exception name="IOException" type="java.io.IOException"/>
  37634. <doc>
  37635. <![CDATA[updates the checksum for a buffer
  37636. @param buf - buffer to update the checksum in
  37637. @param chunkOff - offset in the buffer where the checksum is to update
  37638. @param dataOff - offset in the buffer of the data
  37639. @param dataLen - length of data to compute checksum on]]>
  37640. </doc>
  37641. </method>
  37642. </class>
  37643. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  37644. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  37645. <class name="CyclicIteration" extends="java.lang.Object"
  37646. abstract="false"
  37647. static="false" final="false" visibility="public"
  37648. deprecated="not deprecated">
  37649. <implements name="java.lang.Iterable"/>
  37650. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  37651. static="false" final="false" visibility="public"
  37652. deprecated="not deprecated">
  37653. <doc>
  37654. <![CDATA[Construct an {@link Iterable} object,
  37655. so that an {@link Iterator} can be created
  37656. for iterating the given {@link NavigableMap}.
  37657. The iteration begins from the starting key exclusively.]]>
  37658. </doc>
  37659. </constructor>
  37660. <method name="iterator" return="java.util.Iterator"
  37661. abstract="false" native="false" synchronized="false"
  37662. static="false" final="false" visibility="public"
  37663. deprecated="not deprecated">
  37664. <doc>
  37665. <![CDATA[{@inheritDoc}]]>
  37666. </doc>
  37667. </method>
  37668. <doc>
  37669. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  37670. The {@link Iterator} navigates the entries of the map
  37671. according to the map's ordering.
  37672. If the {@link Iterator} hits the last entry of the map,
  37673. it will then continue from the first entry.]]>
  37674. </doc>
  37675. </class>
  37676. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  37677. <!-- start class org.apache.hadoop.util.Daemon -->
  37678. <class name="Daemon" extends="java.lang.Thread"
  37679. abstract="false"
  37680. static="false" final="false" visibility="public"
  37681. deprecated="not deprecated">
  37682. <constructor name="Daemon"
  37683. static="false" final="false" visibility="public"
  37684. deprecated="not deprecated">
  37685. <doc>
  37686. <![CDATA[Construct a daemon thread.]]>
  37687. </doc>
  37688. </constructor>
  37689. <constructor name="Daemon" type="java.lang.Runnable"
  37690. static="false" final="false" visibility="public"
  37691. deprecated="not deprecated">
  37692. <doc>
  37693. <![CDATA[Construct a daemon thread.]]>
  37694. </doc>
  37695. </constructor>
  37696. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  37697. static="false" final="false" visibility="public"
  37698. deprecated="not deprecated">
  37699. <doc>
  37700. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  37701. </doc>
  37702. </constructor>
  37703. <method name="getRunnable" return="java.lang.Runnable"
  37704. abstract="false" native="false" synchronized="false"
  37705. static="false" final="false" visibility="public"
  37706. deprecated="not deprecated">
  37707. </method>
  37708. <doc>
  37709. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  37710. </doc>
  37711. </class>
  37712. <!-- end class org.apache.hadoop.util.Daemon -->
  37713. <!-- start class org.apache.hadoop.util.DataChecksum -->
  37714. <class name="DataChecksum" extends="java.lang.Object"
  37715. abstract="false"
  37716. static="false" final="false" visibility="public"
  37717. deprecated="not deprecated">
  37718. <implements name="java.util.zip.Checksum"/>
  37719. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37720. abstract="false" native="false" synchronized="false"
  37721. static="true" final="false" visibility="public"
  37722. deprecated="not deprecated">
  37723. <param name="type" type="int"/>
  37724. <param name="bytesPerChecksum" type="int"/>
  37725. </method>
  37726. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37727. abstract="false" native="false" synchronized="false"
  37728. static="true" final="false" visibility="public"
  37729. deprecated="not deprecated">
  37730. <param name="bytes" type="byte[]"/>
  37731. <param name="offset" type="int"/>
  37732. <doc>
  37733. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  37734. @return DataChecksum of the type in the array or null in case of an error.]]>
  37735. </doc>
  37736. </method>
  37737. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37738. abstract="false" native="false" synchronized="false"
  37739. static="true" final="false" visibility="public"
  37740. deprecated="not deprecated">
  37741. <param name="in" type="java.io.DataInputStream"/>
  37742. <exception name="IOException" type="java.io.IOException"/>
  37743. <doc>
  37744. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  37745. input stream <i>in</i>]]>
  37746. </doc>
  37747. </method>
  37748. <method name="writeHeader"
  37749. abstract="false" native="false" synchronized="false"
  37750. static="false" final="false" visibility="public"
  37751. deprecated="not deprecated">
  37752. <param name="out" type="java.io.DataOutputStream"/>
  37753. <exception name="IOException" type="java.io.IOException"/>
  37754. <doc>
  37755. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  37756. </doc>
  37757. </method>
  37758. <method name="getHeader" return="byte[]"
  37759. abstract="false" native="false" synchronized="false"
  37760. static="false" final="false" visibility="public"
  37761. deprecated="not deprecated">
  37762. </method>
  37763. <method name="writeValue" return="int"
  37764. abstract="false" native="false" synchronized="false"
  37765. static="false" final="false" visibility="public"
  37766. deprecated="not deprecated">
  37767. <param name="out" type="java.io.DataOutputStream"/>
  37768. <param name="reset" type="boolean"/>
  37769. <exception name="IOException" type="java.io.IOException"/>
  37770. <doc>
  37771. <![CDATA[Writes the current checksum to the stream.
  37772. If <i>reset</i> is true, then resets the checksum.
  37773. @return number of bytes written. Will be equal to getChecksumSize();]]>
  37774. </doc>
  37775. </method>
  37776. <method name="writeValue" return="int"
  37777. abstract="false" native="false" synchronized="false"
  37778. static="false" final="false" visibility="public"
  37779. deprecated="not deprecated">
  37780. <param name="buf" type="byte[]"/>
  37781. <param name="offset" type="int"/>
  37782. <param name="reset" type="boolean"/>
  37783. <exception name="IOException" type="java.io.IOException"/>
  37784. <doc>
  37785. <![CDATA[Writes the current checksum to a buffer.
  37786. If <i>reset</i> is true, then resets the checksum.
  37787. @return number of bytes written. Will be equal to getChecksumSize();]]>
  37788. </doc>
  37789. </method>
  37790. <method name="compare" return="boolean"
  37791. abstract="false" native="false" synchronized="false"
  37792. static="false" final="false" visibility="public"
  37793. deprecated="not deprecated">
  37794. <param name="buf" type="byte[]"/>
  37795. <param name="offset" type="int"/>
  37796. <doc>
  37797. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  37798. @return true if the checksum matches and false otherwise.]]>
  37799. </doc>
  37800. </method>
  37801. <method name="getChecksumType" return="int"
  37802. abstract="false" native="false" synchronized="false"
  37803. static="false" final="false" visibility="public"
  37804. deprecated="not deprecated">
  37805. </method>
  37806. <method name="getChecksumSize" return="int"
  37807. abstract="false" native="false" synchronized="false"
  37808. static="false" final="false" visibility="public"
  37809. deprecated="not deprecated">
  37810. </method>
  37811. <method name="getBytesPerChecksum" return="int"
  37812. abstract="false" native="false" synchronized="false"
  37813. static="false" final="false" visibility="public"
  37814. deprecated="not deprecated">
  37815. </method>
  37816. <method name="getNumBytesInSum" return="int"
  37817. abstract="false" native="false" synchronized="false"
  37818. static="false" final="false" visibility="public"
  37819. deprecated="not deprecated">
  37820. </method>
  37821. <method name="getChecksumHeaderSize" return="int"
  37822. abstract="false" native="false" synchronized="false"
  37823. static="true" final="false" visibility="public"
  37824. deprecated="not deprecated">
  37825. </method>
  37826. <method name="getValue" return="long"
  37827. abstract="false" native="false" synchronized="false"
  37828. static="false" final="false" visibility="public"
  37829. deprecated="not deprecated">
  37830. </method>
  37831. <method name="reset"
  37832. abstract="false" native="false" synchronized="false"
  37833. static="false" final="false" visibility="public"
  37834. deprecated="not deprecated">
  37835. </method>
  37836. <method name="update"
  37837. abstract="false" native="false" synchronized="false"
  37838. static="false" final="false" visibility="public"
  37839. deprecated="not deprecated">
  37840. <param name="b" type="byte[]"/>
  37841. <param name="off" type="int"/>
  37842. <param name="len" type="int"/>
  37843. </method>
  37844. <method name="update"
  37845. abstract="false" native="false" synchronized="false"
  37846. static="false" final="false" visibility="public"
  37847. deprecated="not deprecated">
  37848. <param name="b" type="int"/>
  37849. </method>
  37850. <field name="HEADER_LEN" type="int"
  37851. transient="false" volatile="false"
  37852. static="true" final="true" visibility="public"
  37853. deprecated="not deprecated">
  37854. </field>
  37855. <field name="CHECKSUM_NULL" type="int"
  37856. transient="false" volatile="false"
  37857. static="true" final="true" visibility="public"
  37858. deprecated="not deprecated">
  37859. </field>
  37860. <field name="CHECKSUM_CRC32" type="int"
  37861. transient="false" volatile="false"
  37862. static="true" final="true" visibility="public"
  37863. deprecated="not deprecated">
  37864. </field>
  37865. <field name="SIZE_OF_INTEGER" type="int"
  37866. transient="false" volatile="false"
  37867. static="true" final="true" visibility="public"
  37868. deprecated="not deprecated">
  37869. </field>
  37870. <doc>
  37871. <![CDATA[This class provides inteface and utilities for processing checksums for
  37872. DFS data transfers.]]>
  37873. </doc>
  37874. </class>
  37875. <!-- end class org.apache.hadoop.util.DataChecksum -->
  37876. <!-- start class org.apache.hadoop.util.DiskChecker -->
  37877. <class name="DiskChecker" extends="java.lang.Object"
  37878. abstract="false"
  37879. static="false" final="false" visibility="public"
  37880. deprecated="not deprecated">
  37881. <constructor name="DiskChecker"
  37882. static="false" final="false" visibility="public"
  37883. deprecated="not deprecated">
  37884. </constructor>
  37885. <method name="mkdirsWithExistsCheck" return="boolean"
  37886. abstract="false" native="false" synchronized="false"
  37887. static="true" final="false" visibility="public"
  37888. deprecated="not deprecated">
  37889. <param name="dir" type="java.io.File"/>
  37890. <doc>
  37891. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  37892. method provided in the Sun's java.io.File class in the following way:
  37893. While creating the non-existent parent directories, this method checks for
  37894. the existence of those directories if the mkdir fails at any point (since
  37895. that directory might have just been created by some other process).
  37896. If both mkdir() and the exists() check fails for any seemingly
  37897. non-existent directory, then we signal an error; Sun's mkdir would signal
  37898. an error (return false) if a directory it is attempting to create already
  37899. exists or the mkdir fails.
  37900. @param dir
  37901. @return true on success, false on failure]]>
  37902. </doc>
  37903. </method>
  37904. <method name="checkDir"
  37905. abstract="false" native="false" synchronized="false"
  37906. static="true" final="false" visibility="public"
  37907. deprecated="not deprecated">
  37908. <param name="dir" type="java.io.File"/>
  37909. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  37910. <doc>
  37911. <![CDATA[Create the directory if it doesn't exist and
  37912. @param dir
  37913. @throws DiskErrorException]]>
  37914. </doc>
  37915. </method>
  37916. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  37917. abstract="false" native="false" synchronized="false"
  37918. static="true" final="false" visibility="public"
  37919. deprecated="not deprecated">
  37920. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  37921. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  37922. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  37923. <exception name="IOException" type="java.io.IOException"/>
  37924. <doc>
  37925. <![CDATA[Create the directory or check permissions if it already exists.
  37926. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  37927. from the mkdirs method provided in the Sun's java.io.File class in the
  37928. following way:
  37929. While creating the non-existent parent directories, this method checks for
  37930. the existence of those directories if the mkdir fails at any point (since
  37931. that directory might have just been created by some other process).
  37932. If both mkdir() and the exists() check fails for any seemingly
  37933. non-existent directory, then we signal an error; Sun's mkdir would signal
  37934. an error (return false) if a directory it is attempting to create already
  37935. exists or the mkdir fails.
  37936. @param localFS local filesystem
  37937. @param dir directory to be created or checked
  37938. @param expected expected permission
  37939. @return true on success, false on failure]]>
  37940. </doc>
  37941. </method>
  37942. <method name="checkDir"
  37943. abstract="false" native="false" synchronized="false"
  37944. static="true" final="false" visibility="public"
  37945. deprecated="not deprecated">
  37946. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  37947. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  37948. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  37949. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  37950. <exception name="IOException" type="java.io.IOException"/>
  37951. <doc>
  37952. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  37953. it can be read from and written into.
  37954. @param localFS local filesystem
  37955. @param dir directory
  37956. @param expected permission
  37957. @throws DiskErrorException
  37958. @throws IOException]]>
  37959. </doc>
  37960. </method>
  37961. <doc>
  37962. <![CDATA[Class that provides utility functions for checking disk problem]]>
  37963. </doc>
  37964. </class>
  37965. <!-- end class org.apache.hadoop.util.DiskChecker -->
  37966. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  37967. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  37968. abstract="false"
  37969. static="true" final="false" visibility="public"
  37970. deprecated="not deprecated">
  37971. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  37972. static="false" final="false" visibility="public"
  37973. deprecated="not deprecated">
  37974. </constructor>
  37975. </class>
  37976. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  37977. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  37978. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  37979. abstract="false"
  37980. static="true" final="false" visibility="public"
  37981. deprecated="not deprecated">
  37982. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  37983. static="false" final="false" visibility="public"
  37984. deprecated="not deprecated">
  37985. </constructor>
  37986. </class>
  37987. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  37988. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  37989. <class name="GenericOptionsParser" extends="java.lang.Object"
  37990. abstract="false"
  37991. static="false" final="false" visibility="public"
  37992. deprecated="not deprecated">
  37993. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  37994. static="false" final="false" visibility="public"
  37995. deprecated="not deprecated">
  37996. <exception name="IOException" type="java.io.IOException"/>
  37997. <doc>
  37998. <![CDATA[Create an options parser with the given options to parse the args.
  37999. @param opts the options
  38000. @param args the command line arguments
  38001. @throws IOException]]>
  38002. </doc>
  38003. </constructor>
  38004. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  38005. static="false" final="false" visibility="public"
  38006. deprecated="not deprecated">
  38007. <exception name="IOException" type="java.io.IOException"/>
  38008. <doc>
  38009. <![CDATA[Create an options parser to parse the args.
  38010. @param args the command line arguments
  38011. @throws IOException]]>
  38012. </doc>
  38013. </constructor>
  38014. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  38015. static="false" final="false" visibility="public"
  38016. deprecated="not deprecated">
  38017. <exception name="IOException" type="java.io.IOException"/>
  38018. <doc>
  38019. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  38020. arguments.
  38021. The array of string arguments other than the generic arguments can be
  38022. obtained by {@link #getRemainingArgs()}.
  38023. @param conf the <code>Configuration</code> to modify.
  38024. @param args command-line arguments.
  38025. @throws IOException]]>
  38026. </doc>
  38027. </constructor>
  38028. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  38029. static="false" final="false" visibility="public"
  38030. deprecated="not deprecated">
  38031. <exception name="IOException" type="java.io.IOException"/>
  38032. <doc>
  38033. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  38034. as generic Hadoop options.
  38035. The resulting <code>CommandLine</code> object can be obtained by
  38036. {@link #getCommandLine()}.
  38037. @param conf the configuration to modify
  38038. @param options options built by the caller
  38039. @param args User-specified arguments
  38040. @throws IOException]]>
  38041. </doc>
  38042. </constructor>
  38043. <method name="getRemainingArgs" return="java.lang.String[]"
  38044. abstract="false" native="false" synchronized="false"
  38045. static="false" final="false" visibility="public"
  38046. deprecated="not deprecated">
  38047. <doc>
  38048. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  38049. @return array of <code>String</code>s containing the un-parsed arguments
  38050. or <strong>empty array</strong> if commandLine was not defined.]]>
  38051. </doc>
  38052. </method>
  38053. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  38054. abstract="false" native="false" synchronized="false"
  38055. static="false" final="false" visibility="public"
  38056. deprecated="not deprecated">
  38057. <doc>
  38058. <![CDATA[Get the modified configuration
  38059. @return the configuration that has the modified parameters.]]>
  38060. </doc>
  38061. </method>
  38062. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  38063. abstract="false" native="false" synchronized="false"
  38064. static="false" final="false" visibility="public"
  38065. deprecated="not deprecated">
  38066. <doc>
  38067. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  38068. to process the parsed arguments.
  38069. Note: If the object is created with
  38070. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  38071. object will only contain parsed generic options.
  38072. @return <code>CommandLine</code> representing list of arguments
  38073. parsed against Options descriptor.]]>
  38074. </doc>
  38075. </method>
  38076. <method name="getLibJars" return="java.net.URL[]"
  38077. abstract="false" native="false" synchronized="false"
  38078. static="true" final="false" visibility="public"
  38079. deprecated="not deprecated">
  38080. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38081. <exception name="IOException" type="java.io.IOException"/>
  38082. <doc>
  38083. <![CDATA[If libjars are set in the conf, parse the libjars.
  38084. @param conf
  38085. @return libjar urls
  38086. @throws IOException]]>
  38087. </doc>
  38088. </method>
  38089. <method name="printGenericCommandUsage"
  38090. abstract="false" native="false" synchronized="false"
  38091. static="true" final="false" visibility="public"
  38092. deprecated="not deprecated">
  38093. <param name="out" type="java.io.PrintStream"/>
  38094. <doc>
  38095. <![CDATA[Print the usage message for generic command-line options supported.
  38096. @param out stream to print the usage message to.]]>
  38097. </doc>
  38098. </method>
  38099. <doc>
  38100. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  38101. arguments generic to the Hadoop framework.
  38102. <code>GenericOptionsParser</code> recognizes several standarad command
  38103. line arguments, enabling applications to easily specify a namenode, a
  38104. jobtracker, additional configuration resources etc.
  38105. <h4 id="GenericOptions">Generic Options</h4>
  38106. <p>The supported generic options are:</p>
  38107. <p><blockquote><pre>
  38108. -conf &lt;configuration file&gt; specify a configuration file
  38109. -D &lt;property=value&gt; use value for given property
  38110. -fs &lt;local|namenode:port&gt; specify a namenode
  38111. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  38112. -files &lt;comma separated list of files&gt; specify comma separated
  38113. files to be copied to the map reduce cluster
  38114. -libjars &lt;comma separated list of jars&gt; specify comma separated
  38115. jar files to include in the classpath.
  38116. -archives &lt;comma separated list of archives&gt; specify comma
  38117. separated archives to be unarchived on the compute machines.
  38118. </pre></blockquote></p>
  38119. <p>The general command line syntax is:</p>
  38120. <p><tt><pre>
  38121. bin/hadoop command [genericOptions] [commandOptions]
  38122. </pre></tt></p>
  38123. <p>Generic command line arguments <strong>might</strong> modify
  38124. <code>Configuration </code> objects, given to constructors.</p>
  38125. <p>The functionality is implemented using Commons CLI.</p>
  38126. <p>Examples:</p>
  38127. <p><blockquote><pre>
  38128. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  38129. list /data directory in dfs with namenode darwin:8020
  38130. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  38131. list /data directory in dfs with namenode darwin:8020
  38132. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  38133. list /data directory in dfs with conf specified in hadoop-site.xml
  38134. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  38135. submit a job to job tracker darwin:50020
  38136. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  38137. submit a job to job tracker darwin:50020
  38138. $ bin/hadoop job -jt local -submit job.xml
  38139. submit a job to local runner
  38140. $ bin/hadoop jar -libjars testlib.jar
  38141. -archives test.tgz -files file.txt inputjar args
  38142. job submission with libjars, files and archives
  38143. </pre></blockquote></p>
  38144. @see Tool
  38145. @see ToolRunner]]>
  38146. </doc>
  38147. </class>
  38148. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  38149. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  38150. <class name="GenericsUtil" extends="java.lang.Object"
  38151. abstract="false"
  38152. static="false" final="false" visibility="public"
  38153. deprecated="not deprecated">
  38154. <constructor name="GenericsUtil"
  38155. static="false" final="false" visibility="public"
  38156. deprecated="not deprecated">
  38157. </constructor>
  38158. <method name="getClass" return="java.lang.Class"
  38159. abstract="false" native="false" synchronized="false"
  38160. static="true" final="false" visibility="public"
  38161. deprecated="not deprecated">
  38162. <param name="t" type="java.lang.Object"/>
  38163. <doc>
  38164. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  38165. argument of type <code>T</code>.
  38166. @param <T> The type of the argument
  38167. @param t the object to get it class
  38168. @return <code>Class&lt;T&gt;</code>]]>
  38169. </doc>
  38170. </method>
  38171. <method name="toArray" return="java.lang.Object[]"
  38172. abstract="false" native="false" synchronized="false"
  38173. static="true" final="false" visibility="public"
  38174. deprecated="not deprecated">
  38175. <param name="c" type="java.lang.Class"/>
  38176. <param name="list" type="java.util.List"/>
  38177. <doc>
  38178. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38179. <code>T[]</code>.
  38180. @param c the Class object of the items in the list
  38181. @param list the list to convert]]>
  38182. </doc>
  38183. </method>
  38184. <method name="toArray" return="java.lang.Object[]"
  38185. abstract="false" native="false" synchronized="false"
  38186. static="true" final="false" visibility="public"
  38187. deprecated="not deprecated">
  38188. <param name="list" type="java.util.List"/>
  38189. <doc>
  38190. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38191. <code>T[]</code>.
  38192. @param list the list to convert
  38193. @throws ArrayIndexOutOfBoundsException if the list is empty.
  38194. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  38195. </doc>
  38196. </method>
  38197. <doc>
  38198. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  38199. </doc>
  38200. </class>
  38201. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  38202. <!-- start class org.apache.hadoop.util.HeapSort -->
  38203. <class name="HeapSort" extends="java.lang.Object"
  38204. abstract="false"
  38205. static="false" final="true" visibility="public"
  38206. deprecated="not deprecated">
  38207. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  38208. <constructor name="HeapSort"
  38209. static="false" final="false" visibility="public"
  38210. deprecated="not deprecated">
  38211. </constructor>
  38212. <method name="sort"
  38213. abstract="false" native="false" synchronized="false"
  38214. static="false" final="false" visibility="public"
  38215. deprecated="not deprecated">
  38216. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38217. <param name="p" type="int"/>
  38218. <param name="r" type="int"/>
  38219. <doc>
  38220. <![CDATA[Sort the given range of items using heap sort.
  38221. {@inheritDoc}]]>
  38222. </doc>
  38223. </method>
  38224. <method name="sort"
  38225. abstract="false" native="false" synchronized="false"
  38226. static="false" final="false" visibility="public"
  38227. deprecated="not deprecated">
  38228. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38229. <param name="p" type="int"/>
  38230. <param name="r" type="int"/>
  38231. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38232. <doc>
  38233. <![CDATA[{@inheritDoc}]]>
  38234. </doc>
  38235. </method>
  38236. <doc>
  38237. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  38238. </doc>
  38239. </class>
  38240. <!-- end class org.apache.hadoop.util.HeapSort -->
  38241. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  38242. <class name="HostsFileReader" extends="java.lang.Object"
  38243. abstract="false"
  38244. static="false" final="false" visibility="public"
  38245. deprecated="not deprecated">
  38246. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  38247. static="false" final="false" visibility="public"
  38248. deprecated="not deprecated">
  38249. <exception name="IOException" type="java.io.IOException"/>
  38250. </constructor>
  38251. <method name="refresh"
  38252. abstract="false" native="false" synchronized="true"
  38253. static="false" final="false" visibility="public"
  38254. deprecated="not deprecated">
  38255. <exception name="IOException" type="java.io.IOException"/>
  38256. </method>
  38257. <method name="getHosts" return="java.util.Set"
  38258. abstract="false" native="false" synchronized="true"
  38259. static="false" final="false" visibility="public"
  38260. deprecated="not deprecated">
  38261. </method>
  38262. <method name="getExcludedHosts" return="java.util.Set"
  38263. abstract="false" native="false" synchronized="true"
  38264. static="false" final="false" visibility="public"
  38265. deprecated="not deprecated">
  38266. </method>
  38267. <method name="setIncludesFile"
  38268. abstract="false" native="false" synchronized="true"
  38269. static="false" final="false" visibility="public"
  38270. deprecated="not deprecated">
  38271. <param name="includesFile" type="java.lang.String"/>
  38272. </method>
  38273. <method name="setExcludesFile"
  38274. abstract="false" native="false" synchronized="true"
  38275. static="false" final="false" visibility="public"
  38276. deprecated="not deprecated">
  38277. <param name="excludesFile" type="java.lang.String"/>
  38278. </method>
  38279. <method name="updateFileNames"
  38280. abstract="false" native="false" synchronized="true"
  38281. static="false" final="false" visibility="public"
  38282. deprecated="not deprecated">
  38283. <param name="includesFile" type="java.lang.String"/>
  38284. <param name="excludesFile" type="java.lang.String"/>
  38285. <exception name="IOException" type="java.io.IOException"/>
  38286. </method>
  38287. </class>
  38288. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  38289. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  38290. <interface name="IndexedSortable" abstract="true"
  38291. static="false" final="false" visibility="public"
  38292. deprecated="not deprecated">
  38293. <method name="compare" return="int"
  38294. abstract="false" native="false" synchronized="false"
  38295. static="false" final="false" visibility="public"
  38296. deprecated="not deprecated">
  38297. <param name="i" type="int"/>
  38298. <param name="j" type="int"/>
  38299. <doc>
  38300. <![CDATA[Compare items at the given addresses consistent with the semantics of
  38301. {@link java.util.Comparator#compare(Object, Object)}.]]>
  38302. </doc>
  38303. </method>
  38304. <method name="swap"
  38305. abstract="false" native="false" synchronized="false"
  38306. static="false" final="false" visibility="public"
  38307. deprecated="not deprecated">
  38308. <param name="i" type="int"/>
  38309. <param name="j" type="int"/>
  38310. <doc>
  38311. <![CDATA[Swap items at the given addresses.]]>
  38312. </doc>
  38313. </method>
  38314. <doc>
  38315. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  38316. algorithms.]]>
  38317. </doc>
  38318. </interface>
  38319. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  38320. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  38321. <interface name="IndexedSorter" abstract="true"
  38322. static="false" final="false" visibility="public"
  38323. deprecated="not deprecated">
  38324. <method name="sort"
  38325. abstract="false" native="false" synchronized="false"
  38326. static="false" final="false" visibility="public"
  38327. deprecated="not deprecated">
  38328. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38329. <param name="l" type="int"/>
  38330. <param name="r" type="int"/>
  38331. <doc>
  38332. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  38333. range of logical indices. From the perspective of the sort algorithm,
  38334. each index between l (inclusive) and r (exclusive) is an addressable
  38335. entry.
  38336. @see IndexedSortable#compare
  38337. @see IndexedSortable#swap]]>
  38338. </doc>
  38339. </method>
  38340. <method name="sort"
  38341. abstract="false" native="false" synchronized="false"
  38342. static="false" final="false" visibility="public"
  38343. deprecated="not deprecated">
  38344. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38345. <param name="l" type="int"/>
  38346. <param name="r" type="int"/>
  38347. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38348. <doc>
  38349. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  38350. periodically.
  38351. @see #sort(IndexedSortable,int,int)]]>
  38352. </doc>
  38353. </method>
  38354. <doc>
  38355. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  38356. A sort algorithm implementing this interface may only
  38357. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  38358. for a range of indices to effect a sort across that range.]]>
  38359. </doc>
  38360. </interface>
  38361. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  38362. <!-- start class org.apache.hadoop.util.LineReader -->
  38363. <class name="LineReader" extends="java.lang.Object"
  38364. abstract="false"
  38365. static="false" final="false" visibility="public"
  38366. deprecated="not deprecated">
  38367. <constructor name="LineReader" type="java.io.InputStream"
  38368. static="false" final="false" visibility="public"
  38369. deprecated="not deprecated">
  38370. <doc>
  38371. <![CDATA[Create a line reader that reads from the given stream using the
  38372. default buffer-size (64k).
  38373. @param in The input stream
  38374. @throws IOException]]>
  38375. </doc>
  38376. </constructor>
  38377. <constructor name="LineReader" type="java.io.InputStream, int"
  38378. static="false" final="false" visibility="public"
  38379. deprecated="not deprecated">
  38380. <doc>
  38381. <![CDATA[Create a line reader that reads from the given stream using the
  38382. given buffer-size.
  38383. @param in The input stream
  38384. @param bufferSize Size of the read buffer
  38385. @throws IOException]]>
  38386. </doc>
  38387. </constructor>
  38388. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  38389. static="false" final="false" visibility="public"
  38390. deprecated="not deprecated">
  38391. <exception name="IOException" type="java.io.IOException"/>
  38392. <doc>
  38393. <![CDATA[Create a line reader that reads from the given stream using the
  38394. <code>io.file.buffer.size</code> specified in the given
  38395. <code>Configuration</code>.
  38396. @param in input stream
  38397. @param conf configuration
  38398. @throws IOException]]>
  38399. </doc>
  38400. </constructor>
  38401. <method name="close"
  38402. abstract="false" native="false" synchronized="false"
  38403. static="false" final="false" visibility="public"
  38404. deprecated="not deprecated">
  38405. <exception name="IOException" type="java.io.IOException"/>
  38406. <doc>
  38407. <![CDATA[Close the underlying stream.
  38408. @throws IOException]]>
  38409. </doc>
  38410. </method>
  38411. <method name="readLine" return="int"
  38412. abstract="false" native="false" synchronized="false"
  38413. static="false" final="false" visibility="public"
  38414. deprecated="not deprecated">
  38415. <param name="str" type="org.apache.hadoop.io.Text"/>
  38416. <param name="maxLineLength" type="int"/>
  38417. <param name="maxBytesToConsume" type="int"/>
  38418. <exception name="IOException" type="java.io.IOException"/>
  38419. <doc>
  38420. <![CDATA[Read one line from the InputStream into the given Text. A line
  38421. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  38422. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  38423. line.
  38424. @param str the object to store the given line (without newline)
  38425. @param maxLineLength the maximum number of bytes to store into str;
  38426. the rest of the line is silently discarded.
  38427. @param maxBytesToConsume the maximum number of bytes to consume
  38428. in this call. This is only a hint, because if the line cross
  38429. this threshold, we allow it to happen. It can overshoot
  38430. potentially by as much as one buffer length.
  38431. @return the number of bytes read including the (longest) newline
  38432. found.
  38433. @throws IOException if the underlying stream throws]]>
  38434. </doc>
  38435. </method>
  38436. <method name="readLine" return="int"
  38437. abstract="false" native="false" synchronized="false"
  38438. static="false" final="false" visibility="public"
  38439. deprecated="not deprecated">
  38440. <param name="str" type="org.apache.hadoop.io.Text"/>
  38441. <param name="maxLineLength" type="int"/>
  38442. <exception name="IOException" type="java.io.IOException"/>
  38443. <doc>
  38444. <![CDATA[Read from the InputStream into the given Text.
  38445. @param str the object to store the given line
  38446. @param maxLineLength the maximum number of bytes to store into str.
  38447. @return the number of bytes read including the newline
  38448. @throws IOException if the underlying stream throws]]>
  38449. </doc>
  38450. </method>
  38451. <method name="readLine" return="int"
  38452. abstract="false" native="false" synchronized="false"
  38453. static="false" final="false" visibility="public"
  38454. deprecated="not deprecated">
  38455. <param name="str" type="org.apache.hadoop.io.Text"/>
  38456. <exception name="IOException" type="java.io.IOException"/>
  38457. <doc>
  38458. <![CDATA[Read from the InputStream into the given Text.
  38459. @param str the object to store the given line
  38460. @return the number of bytes read including the newline
  38461. @throws IOException if the underlying stream throws]]>
  38462. </doc>
  38463. </method>
  38464. <doc>
  38465. <![CDATA[A class that provides a line reader from an input stream.]]>
  38466. </doc>
  38467. </class>
  38468. <!-- end class org.apache.hadoop.util.LineReader -->
  38469. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  38470. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  38471. abstract="false"
  38472. static="false" final="false" visibility="public"
  38473. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  38474. instead">
  38475. <constructor name="LinuxMemoryCalculatorPlugin"
  38476. static="false" final="false" visibility="public"
  38477. deprecated="not deprecated">
  38478. </constructor>
  38479. <method name="getPhysicalMemorySize" return="long"
  38480. abstract="false" native="false" synchronized="false"
  38481. static="false" final="false" visibility="public"
  38482. deprecated="not deprecated">
  38483. <doc>
  38484. <![CDATA[{@inheritDoc}]]>
  38485. </doc>
  38486. </method>
  38487. <method name="getVirtualMemorySize" return="long"
  38488. abstract="false" native="false" synchronized="false"
  38489. static="false" final="false" visibility="public"
  38490. deprecated="not deprecated">
  38491. <doc>
  38492. <![CDATA[{@inheritDoc}]]>
  38493. </doc>
  38494. </method>
  38495. <doc>
  38496. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  38497. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  38498. instead]]>
  38499. </doc>
  38500. </class>
  38501. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  38502. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  38503. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  38504. abstract="false"
  38505. static="false" final="false" visibility="public"
  38506. deprecated="not deprecated">
  38507. <constructor name="LinuxResourceCalculatorPlugin"
  38508. static="false" final="false" visibility="public"
  38509. deprecated="not deprecated">
  38510. </constructor>
  38511. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  38512. static="false" final="false" visibility="public"
  38513. deprecated="not deprecated">
  38514. <doc>
  38515. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  38516. used only in unit tests
  38517. @param procfsMemFile fake file for /proc/meminfo
  38518. @param procfsCpuFile fake file for /proc/cpuinfo
  38519. @param procfsStatFile fake file for /proc/stat
  38520. @param jiffyLengthInMillis fake jiffy length value]]>
  38521. </doc>
  38522. </constructor>
  38523. <method name="getPhysicalMemorySize" return="long"
  38524. abstract="false" native="false" synchronized="false"
  38525. static="false" final="false" visibility="public"
  38526. deprecated="not deprecated">
  38527. <doc>
  38528. <![CDATA[{@inheritDoc}]]>
  38529. </doc>
  38530. </method>
  38531. <method name="getVirtualMemorySize" return="long"
  38532. abstract="false" native="false" synchronized="false"
  38533. static="false" final="false" visibility="public"
  38534. deprecated="not deprecated">
  38535. <doc>
  38536. <![CDATA[{@inheritDoc}]]>
  38537. </doc>
  38538. </method>
  38539. <method name="getAvailablePhysicalMemorySize" return="long"
  38540. abstract="false" native="false" synchronized="false"
  38541. static="false" final="false" visibility="public"
  38542. deprecated="not deprecated">
  38543. <doc>
  38544. <![CDATA[{@inheritDoc}]]>
  38545. </doc>
  38546. </method>
  38547. <method name="getAvailableVirtualMemorySize" return="long"
  38548. abstract="false" native="false" synchronized="false"
  38549. static="false" final="false" visibility="public"
  38550. deprecated="not deprecated">
  38551. <doc>
  38552. <![CDATA[{@inheritDoc}]]>
  38553. </doc>
  38554. </method>
  38555. <method name="getNumProcessors" return="int"
  38556. abstract="false" native="false" synchronized="false"
  38557. static="false" final="false" visibility="public"
  38558. deprecated="not deprecated">
  38559. <doc>
  38560. <![CDATA[{@inheritDoc}]]>
  38561. </doc>
  38562. </method>
  38563. <method name="getCpuFrequency" return="long"
  38564. abstract="false" native="false" synchronized="false"
  38565. static="false" final="false" visibility="public"
  38566. deprecated="not deprecated">
  38567. <doc>
  38568. <![CDATA[{@inheritDoc}]]>
  38569. </doc>
  38570. </method>
  38571. <method name="getCumulativeCpuTime" return="long"
  38572. abstract="false" native="false" synchronized="false"
  38573. static="false" final="false" visibility="public"
  38574. deprecated="not deprecated">
  38575. <doc>
  38576. <![CDATA[{@inheritDoc}]]>
  38577. </doc>
  38578. </method>
  38579. <method name="getCpuUsage" return="float"
  38580. abstract="false" native="false" synchronized="false"
  38581. static="false" final="false" visibility="public"
  38582. deprecated="not deprecated">
  38583. <doc>
  38584. <![CDATA[{@inheritDoc}]]>
  38585. </doc>
  38586. </method>
  38587. <method name="main"
  38588. abstract="false" native="false" synchronized="false"
  38589. static="true" final="false" visibility="public"
  38590. deprecated="not deprecated">
  38591. <param name="args" type="java.lang.String[]"/>
  38592. <doc>
  38593. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  38594. @param args]]>
  38595. </doc>
  38596. </method>
  38597. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  38598. abstract="false" native="false" synchronized="false"
  38599. static="false" final="false" visibility="public"
  38600. deprecated="not deprecated">
  38601. </method>
  38602. <doc>
  38603. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  38604. </doc>
  38605. </class>
  38606. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  38607. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  38608. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  38609. abstract="true"
  38610. static="false" final="false" visibility="public"
  38611. deprecated="Use
  38612. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  38613. instead">
  38614. <constructor name="MemoryCalculatorPlugin"
  38615. static="false" final="false" visibility="public"
  38616. deprecated="not deprecated">
  38617. </constructor>
  38618. <method name="getVirtualMemorySize" return="long"
  38619. abstract="true" native="false" synchronized="false"
  38620. static="false" final="false" visibility="public"
  38621. deprecated="not deprecated">
  38622. <doc>
  38623. <![CDATA[Obtain the total size of the virtual memory present in the system.
  38624. @return virtual memory size in bytes.]]>
  38625. </doc>
  38626. </method>
  38627. <method name="getPhysicalMemorySize" return="long"
  38628. abstract="true" native="false" synchronized="false"
  38629. static="false" final="false" visibility="public"
  38630. deprecated="not deprecated">
  38631. <doc>
  38632. <![CDATA[Obtain the total size of the physical memory present in the system.
  38633. @return physical memory size bytes.]]>
  38634. </doc>
  38635. </method>
  38636. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  38637. abstract="false" native="false" synchronized="false"
  38638. static="true" final="false" visibility="public"
  38639. deprecated="not deprecated">
  38640. <param name="clazz" type="java.lang.Class"/>
  38641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38642. <doc>
  38643. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  38644. class name is null, this method will try and return a memory calculator
  38645. plugin available for this system.
  38646. @param clazz class-name
  38647. @param conf configure the plugin with this.
  38648. @return MemoryCalculatorPlugin]]>
  38649. </doc>
  38650. </method>
  38651. <doc>
  38652. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  38653. @deprecated Use
  38654. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  38655. instead]]>
  38656. </doc>
  38657. </class>
  38658. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  38659. <!-- start class org.apache.hadoop.util.MergeSort -->
  38660. <class name="MergeSort" extends="java.lang.Object"
  38661. abstract="false"
  38662. static="false" final="false" visibility="public"
  38663. deprecated="not deprecated">
  38664. <constructor name="MergeSort" type="java.util.Comparator"
  38665. static="false" final="false" visibility="public"
  38666. deprecated="not deprecated">
  38667. </constructor>
  38668. <method name="mergeSort"
  38669. abstract="false" native="false" synchronized="false"
  38670. static="false" final="false" visibility="public"
  38671. deprecated="not deprecated">
  38672. <param name="src" type="int[]"/>
  38673. <param name="dest" type="int[]"/>
  38674. <param name="low" type="int"/>
  38675. <param name="high" type="int"/>
  38676. </method>
  38677. <doc>
  38678. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  38679. </doc>
  38680. </class>
  38681. <!-- end class org.apache.hadoop.util.MergeSort -->
  38682. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  38683. <class name="NativeCodeLoader" extends="java.lang.Object"
  38684. abstract="false"
  38685. static="false" final="false" visibility="public"
  38686. deprecated="not deprecated">
  38687. <constructor name="NativeCodeLoader"
  38688. static="false" final="false" visibility="public"
  38689. deprecated="not deprecated">
  38690. </constructor>
  38691. <method name="isNativeCodeLoaded" return="boolean"
  38692. abstract="false" native="false" synchronized="false"
  38693. static="true" final="false" visibility="public"
  38694. deprecated="not deprecated">
  38695. <doc>
  38696. <![CDATA[Check if native-hadoop code is loaded for this platform.
  38697. @return <code>true</code> if native-hadoop is loaded,
  38698. else <code>false</code>]]>
  38699. </doc>
  38700. </method>
  38701. <method name="getLoadNativeLibraries" return="boolean"
  38702. abstract="false" native="false" synchronized="false"
  38703. static="false" final="false" visibility="public"
  38704. deprecated="not deprecated">
  38705. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38706. <doc>
  38707. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  38708. @param conf configuration
  38709. @return <code>true</code> if native hadoop libraries, if present, can be
  38710. used for this job; <code>false</code> otherwise.]]>
  38711. </doc>
  38712. </method>
  38713. <method name="setLoadNativeLibraries"
  38714. abstract="false" native="false" synchronized="false"
  38715. static="false" final="false" visibility="public"
  38716. deprecated="not deprecated">
  38717. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38718. <param name="loadNativeLibraries" type="boolean"/>
  38719. <doc>
  38720. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  38721. @param conf configuration
  38722. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  38723. </doc>
  38724. </method>
  38725. <doc>
  38726. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  38727. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  38728. or the default java implementations where appropriate.]]>
  38729. </doc>
  38730. </class>
  38731. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  38732. <!-- start class org.apache.hadoop.util.PlatformName -->
  38733. <class name="PlatformName" extends="java.lang.Object"
  38734. abstract="false"
  38735. static="false" final="false" visibility="public"
  38736. deprecated="not deprecated">
  38737. <constructor name="PlatformName"
  38738. static="false" final="false" visibility="public"
  38739. deprecated="not deprecated">
  38740. </constructor>
  38741. <method name="getPlatformName" return="java.lang.String"
  38742. abstract="false" native="false" synchronized="false"
  38743. static="true" final="false" visibility="public"
  38744. deprecated="not deprecated">
  38745. <doc>
  38746. <![CDATA[Get the complete platform as per the java-vm.
  38747. @return returns the complete platform as per the java-vm.]]>
  38748. </doc>
  38749. </method>
  38750. <method name="main"
  38751. abstract="false" native="false" synchronized="false"
  38752. static="true" final="false" visibility="public"
  38753. deprecated="not deprecated">
  38754. <param name="args" type="java.lang.String[]"/>
  38755. </method>
  38756. <doc>
  38757. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  38758. </doc>
  38759. </class>
  38760. <!-- end class org.apache.hadoop.util.PlatformName -->
  38761. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  38762. <class name="PrintJarMainClass" extends="java.lang.Object"
  38763. abstract="false"
  38764. static="false" final="false" visibility="public"
  38765. deprecated="not deprecated">
  38766. <constructor name="PrintJarMainClass"
  38767. static="false" final="false" visibility="public"
  38768. deprecated="not deprecated">
  38769. </constructor>
  38770. <method name="main"
  38771. abstract="false" native="false" synchronized="false"
  38772. static="true" final="false" visibility="public"
  38773. deprecated="not deprecated">
  38774. <param name="args" type="java.lang.String[]"/>
  38775. <doc>
  38776. <![CDATA[@param args]]>
  38777. </doc>
  38778. </method>
  38779. <doc>
  38780. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  38781. </doc>
  38782. </class>
  38783. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  38784. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  38785. <class name="PriorityQueue" extends="java.lang.Object"
  38786. abstract="true"
  38787. static="false" final="false" visibility="public"
  38788. deprecated="not deprecated">
  38789. <constructor name="PriorityQueue"
  38790. static="false" final="false" visibility="public"
  38791. deprecated="not deprecated">
  38792. </constructor>
  38793. <method name="lessThan" return="boolean"
  38794. abstract="true" native="false" synchronized="false"
  38795. static="false" final="false" visibility="protected"
  38796. deprecated="not deprecated">
  38797. <param name="a" type="java.lang.Object"/>
  38798. <param name="b" type="java.lang.Object"/>
  38799. <doc>
  38800. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  38801. must define this one method.]]>
  38802. </doc>
  38803. </method>
  38804. <method name="initialize"
  38805. abstract="false" native="false" synchronized="false"
  38806. static="false" final="true" visibility="protected"
  38807. deprecated="not deprecated">
  38808. <param name="maxSize" type="int"/>
  38809. <doc>
  38810. <![CDATA[Subclass constructors must call this.]]>
  38811. </doc>
  38812. </method>
  38813. <method name="put"
  38814. abstract="false" native="false" synchronized="false"
  38815. static="false" final="true" visibility="public"
  38816. deprecated="not deprecated">
  38817. <param name="element" type="java.lang.Object"/>
  38818. <doc>
  38819. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  38820. If one tries to add more objects than maxSize from initialize
  38821. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  38822. </doc>
  38823. </method>
  38824. <method name="insert" return="boolean"
  38825. abstract="false" native="false" synchronized="false"
  38826. static="false" final="false" visibility="public"
  38827. deprecated="not deprecated">
  38828. <param name="element" type="java.lang.Object"/>
  38829. <doc>
  38830. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  38831. the PriorityQueue is not full, or not lessThan(element, top()).
  38832. @param element
  38833. @return true if element is added, false otherwise.]]>
  38834. </doc>
  38835. </method>
  38836. <method name="top" return="java.lang.Object"
  38837. abstract="false" native="false" synchronized="false"
  38838. static="false" final="true" visibility="public"
  38839. deprecated="not deprecated">
  38840. <doc>
  38841. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  38842. </doc>
  38843. </method>
  38844. <method name="pop" return="java.lang.Object"
  38845. abstract="false" native="false" synchronized="false"
  38846. static="false" final="true" visibility="public"
  38847. deprecated="not deprecated">
  38848. <doc>
  38849. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  38850. time.]]>
  38851. </doc>
  38852. </method>
  38853. <method name="adjustTop"
  38854. abstract="false" native="false" synchronized="false"
  38855. static="false" final="true" visibility="public"
  38856. deprecated="not deprecated">
  38857. <doc>
  38858. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  38859. worst case, but it's at least twice as fast to <pre>
  38860. { pq.top().change(); pq.adjustTop(); }
  38861. </pre> instead of <pre>
  38862. { o = pq.pop(); o.change(); pq.push(o); }
  38863. </pre>]]>
  38864. </doc>
  38865. </method>
  38866. <method name="size" return="int"
  38867. abstract="false" native="false" synchronized="false"
  38868. static="false" final="true" visibility="public"
  38869. deprecated="not deprecated">
  38870. <doc>
  38871. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  38872. </doc>
  38873. </method>
  38874. <method name="clear"
  38875. abstract="false" native="false" synchronized="false"
  38876. static="false" final="true" visibility="public"
  38877. deprecated="not deprecated">
  38878. <doc>
  38879. <![CDATA[Removes all entries from the PriorityQueue.]]>
  38880. </doc>
  38881. </method>
  38882. <doc>
  38883. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  38884. least element can always be found in constant time. Put()'s and pop()'s
  38885. require log(size) time.]]>
  38886. </doc>
  38887. </class>
  38888. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  38889. <!-- start class org.apache.hadoop.util.ProcessTree -->
  38890. <class name="ProcessTree" extends="java.lang.Object"
  38891. abstract="false"
  38892. static="false" final="false" visibility="public"
  38893. deprecated="not deprecated">
  38894. <constructor name="ProcessTree"
  38895. static="false" final="false" visibility="public"
  38896. deprecated="not deprecated">
  38897. </constructor>
  38898. <method name="killProcess"
  38899. abstract="false" native="false" synchronized="false"
  38900. static="true" final="false" visibility="public"
  38901. deprecated="not deprecated">
  38902. <param name="pid" type="java.lang.String"/>
  38903. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  38904. <doc>
  38905. <![CDATA[Sends signal to process, forcefully terminating the process.
  38906. @param pid process id
  38907. @param signal the signal number to send]]>
  38908. </doc>
  38909. </method>
  38910. <method name="killProcessGroup"
  38911. abstract="false" native="false" synchronized="false"
  38912. static="true" final="false" visibility="public"
  38913. deprecated="not deprecated">
  38914. <param name="pgrpId" type="java.lang.String"/>
  38915. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  38916. <doc>
  38917. <![CDATA[Sends signal to all process belonging to same process group,
  38918. forcefully terminating the process group.
  38919. @param pgrpId process group id
  38920. @param signal the signal number to send]]>
  38921. </doc>
  38922. </method>
  38923. <method name="isAlive" return="boolean"
  38924. abstract="false" native="false" synchronized="false"
  38925. static="true" final="false" visibility="public"
  38926. deprecated="not deprecated">
  38927. <param name="pid" type="java.lang.String"/>
  38928. <doc>
  38929. <![CDATA[Is the process with PID pid still alive?
  38930. This method assumes that isAlive is called on a pid that was alive not
  38931. too long ago, and hence assumes no chance of pid-wrapping-around.
  38932. @param pid pid of the process to check.
  38933. @return true if process is alive.]]>
  38934. </doc>
  38935. </method>
  38936. <method name="isProcessGroupAlive" return="boolean"
  38937. abstract="false" native="false" synchronized="false"
  38938. static="true" final="false" visibility="public"
  38939. deprecated="not deprecated">
  38940. <param name="pgrpId" type="java.lang.String"/>
  38941. <doc>
  38942. <![CDATA[Is the process group with still alive?
  38943. This method assumes that isAlive is called on a pid that was alive not
  38944. too long ago, and hence assumes no chance of pid-wrapping-around.
  38945. @param pgrpId process group id
  38946. @return true if any of process in group is alive.]]>
  38947. </doc>
  38948. </method>
  38949. <field name="isSetsidAvailable" type="boolean"
  38950. transient="false" volatile="false"
  38951. static="true" final="true" visibility="public"
  38952. deprecated="not deprecated">
  38953. </field>
  38954. <doc>
  38955. <![CDATA[Process tree related operations]]>
  38956. </doc>
  38957. </class>
  38958. <!-- end class org.apache.hadoop.util.ProcessTree -->
  38959. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  38960. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  38961. abstract="false"
  38962. static="true" final="true" visibility="public"
  38963. deprecated="not deprecated">
  38964. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  38965. abstract="false" native="false" synchronized="false"
  38966. static="true" final="false" visibility="public"
  38967. deprecated="not deprecated">
  38968. </method>
  38969. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  38970. abstract="false" native="false" synchronized="false"
  38971. static="true" final="false" visibility="public"
  38972. deprecated="not deprecated">
  38973. <param name="name" type="java.lang.String"/>
  38974. </method>
  38975. <method name="getValue" return="int"
  38976. abstract="false" native="false" synchronized="false"
  38977. static="false" final="false" visibility="public"
  38978. deprecated="not deprecated">
  38979. </method>
  38980. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  38981. transient="false" volatile="false"
  38982. static="true" final="true" visibility="public"
  38983. deprecated="not deprecated">
  38984. </field>
  38985. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  38986. transient="false" volatile="false"
  38987. static="true" final="true" visibility="public"
  38988. deprecated="not deprecated">
  38989. </field>
  38990. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  38991. transient="false" volatile="false"
  38992. static="true" final="true" visibility="public"
  38993. deprecated="not deprecated">
  38994. </field>
  38995. <doc>
  38996. <![CDATA[The constants for the signals.]]>
  38997. </doc>
  38998. </class>
  38999. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  39000. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  39001. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  39002. abstract="false"
  39003. static="false" final="false" visibility="public"
  39004. deprecated="not deprecated">
  39005. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  39006. static="false" final="false" visibility="public"
  39007. deprecated="not deprecated">
  39008. </constructor>
  39009. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  39010. static="false" final="false" visibility="public"
  39011. deprecated="not deprecated">
  39012. </constructor>
  39013. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  39014. static="false" final="false" visibility="public"
  39015. deprecated="not deprecated">
  39016. </constructor>
  39017. <method name="isAvailable" return="boolean"
  39018. abstract="false" native="false" synchronized="false"
  39019. static="true" final="false" visibility="public"
  39020. deprecated="not deprecated">
  39021. <doc>
  39022. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  39023. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  39024. </doc>
  39025. </method>
  39026. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  39027. abstract="false" native="false" synchronized="false"
  39028. static="false" final="false" visibility="public"
  39029. deprecated="not deprecated">
  39030. <doc>
  39031. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  39032. an empty tree will be returned.
  39033. @return the process-tree with latest state.]]>
  39034. </doc>
  39035. </method>
  39036. <method name="isAlive" return="boolean"
  39037. abstract="false" native="false" synchronized="false"
  39038. static="false" final="false" visibility="public"
  39039. deprecated="not deprecated">
  39040. <doc>
  39041. <![CDATA[Is the root-process alive?
  39042. @return true if the root-process is alive, false otherwise.]]>
  39043. </doc>
  39044. </method>
  39045. <method name="isAnyProcessInTreeAlive" return="boolean"
  39046. abstract="false" native="false" synchronized="false"
  39047. static="false" final="false" visibility="public"
  39048. deprecated="not deprecated">
  39049. <doc>
  39050. <![CDATA[Is any of the subprocesses in the process-tree alive?
  39051. @return true if any of the processes in the process-tree is
  39052. alive, false otherwise.]]>
  39053. </doc>
  39054. </method>
  39055. <method name="getProcessTreeDump" return="java.lang.String"
  39056. abstract="false" native="false" synchronized="false"
  39057. static="false" final="false" visibility="public"
  39058. deprecated="not deprecated">
  39059. <doc>
  39060. <![CDATA[Get a dump of the process-tree.
  39061. @return a string concatenating the dump of information of all the processes
  39062. in the process-tree]]>
  39063. </doc>
  39064. </method>
  39065. <method name="getCumulativeVmem" return="long"
  39066. abstract="false" native="false" synchronized="false"
  39067. static="false" final="false" visibility="public"
  39068. deprecated="not deprecated">
  39069. <doc>
  39070. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  39071. process-tree.
  39072. @return cumulative virtual memory used by the process-tree in bytes.]]>
  39073. </doc>
  39074. </method>
  39075. <method name="getCumulativeRssmem" return="long"
  39076. abstract="false" native="false" synchronized="false"
  39077. static="false" final="false" visibility="public"
  39078. deprecated="not deprecated">
  39079. <doc>
  39080. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  39081. in the process-tree.
  39082. @return cumulative rss memory used by the process-tree in bytes. return 0
  39083. if it cannot be calculated]]>
  39084. </doc>
  39085. </method>
  39086. <method name="getCumulativeVmem" return="long"
  39087. abstract="false" native="false" synchronized="false"
  39088. static="false" final="false" visibility="public"
  39089. deprecated="not deprecated">
  39090. <param name="olderThanAge" type="int"/>
  39091. <doc>
  39092. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  39093. process-tree that are older than the passed in age.
  39094. @param olderThanAge processes above this age are included in the
  39095. memory addition
  39096. @return cumulative virtual memory used by the process-tree in bytes,
  39097. for processes older than this age.]]>
  39098. </doc>
  39099. </method>
  39100. <method name="getCumulativeRssmem" return="long"
  39101. abstract="false" native="false" synchronized="false"
  39102. static="false" final="false" visibility="public"
  39103. deprecated="not deprecated">
  39104. <param name="olderThanAge" type="int"/>
  39105. <doc>
  39106. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  39107. in the process-tree that are older than the passed in age.
  39108. @param olderThanAge processes above this age are included in the
  39109. memory addition
  39110. @return cumulative rss memory used by the process-tree in bytes,
  39111. for processes older than this age. return 0 if it cannot be
  39112. calculated]]>
  39113. </doc>
  39114. </method>
  39115. <method name="getCumulativeCpuTime" return="long"
  39116. abstract="false" native="false" synchronized="false"
  39117. static="false" final="false" visibility="public"
  39118. deprecated="not deprecated">
  39119. <doc>
  39120. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  39121. process-tree since the process-tree created
  39122. @return cumulative CPU time in millisecond since the process-tree created
  39123. return 0 if it cannot be calculated]]>
  39124. </doc>
  39125. </method>
  39126. <method name="toString" return="java.lang.String"
  39127. abstract="false" native="false" synchronized="false"
  39128. static="false" final="false" visibility="public"
  39129. deprecated="not deprecated">
  39130. <doc>
  39131. <![CDATA[Returns a string printing PIDs of process present in the
  39132. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  39133. </doc>
  39134. </method>
  39135. <field name="PAGE_SIZE" type="long"
  39136. transient="false" volatile="false"
  39137. static="true" final="true" visibility="public"
  39138. deprecated="not deprecated">
  39139. </field>
  39140. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  39141. transient="false" volatile="false"
  39142. static="true" final="true" visibility="public"
  39143. deprecated="not deprecated">
  39144. </field>
  39145. <doc>
  39146. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  39147. </doc>
  39148. </class>
  39149. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  39150. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  39151. <class name="ProgramDriver" extends="java.lang.Object"
  39152. abstract="false"
  39153. static="false" final="false" visibility="public"
  39154. deprecated="not deprecated">
  39155. <constructor name="ProgramDriver"
  39156. static="false" final="false" visibility="public"
  39157. deprecated="not deprecated">
  39158. </constructor>
  39159. <method name="addClass"
  39160. abstract="false" native="false" synchronized="false"
  39161. static="false" final="false" visibility="public"
  39162. deprecated="not deprecated">
  39163. <param name="name" type="java.lang.String"/>
  39164. <param name="mainClass" type="java.lang.Class"/>
  39165. <param name="description" type="java.lang.String"/>
  39166. <exception name="Throwable" type="java.lang.Throwable"/>
  39167. <doc>
  39168. <![CDATA[This is the method that adds the classed to the repository
  39169. @param name The name of the string you want the class instance to be called with
  39170. @param mainClass The class that you want to add to the repository
  39171. @param description The description of the class
  39172. @throws NoSuchMethodException
  39173. @throws SecurityException]]>
  39174. </doc>
  39175. </method>
  39176. <method name="driver"
  39177. abstract="false" native="false" synchronized="false"
  39178. static="false" final="false" visibility="public"
  39179. deprecated="not deprecated">
  39180. <param name="args" type="java.lang.String[]"/>
  39181. <exception name="Throwable" type="java.lang.Throwable"/>
  39182. <doc>
  39183. <![CDATA[This is a driver for the example programs.
  39184. It looks at the first command line argument and tries to find an
  39185. example program with that name.
  39186. If it is found, it calls the main method in that class with the rest
  39187. of the command line arguments.
  39188. @param args The argument from the user. args[0] is the command to run.
  39189. @throws NoSuchMethodException
  39190. @throws SecurityException
  39191. @throws IllegalAccessException
  39192. @throws IllegalArgumentException
  39193. @throws Throwable Anything thrown by the example program's main]]>
  39194. </doc>
  39195. </method>
  39196. <doc>
  39197. <![CDATA[A driver that is used to run programs added to it]]>
  39198. </doc>
  39199. </class>
  39200. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  39201. <!-- start class org.apache.hadoop.util.Progress -->
  39202. <class name="Progress" extends="java.lang.Object"
  39203. abstract="false"
  39204. static="false" final="false" visibility="public"
  39205. deprecated="not deprecated">
  39206. <constructor name="Progress"
  39207. static="false" final="false" visibility="public"
  39208. deprecated="not deprecated">
  39209. <doc>
  39210. <![CDATA[Creates a new root node.]]>
  39211. </doc>
  39212. </constructor>
  39213. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39214. abstract="false" native="false" synchronized="false"
  39215. static="false" final="false" visibility="public"
  39216. deprecated="not deprecated">
  39217. <param name="status" type="java.lang.String"/>
  39218. <doc>
  39219. <![CDATA[Adds a named node to the tree.]]>
  39220. </doc>
  39221. </method>
  39222. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39223. abstract="false" native="false" synchronized="true"
  39224. static="false" final="false" visibility="public"
  39225. deprecated="not deprecated">
  39226. <doc>
  39227. <![CDATA[Adds a node to the tree.]]>
  39228. </doc>
  39229. </method>
  39230. <method name="startNextPhase"
  39231. abstract="false" native="false" synchronized="true"
  39232. static="false" final="false" visibility="public"
  39233. deprecated="not deprecated">
  39234. <doc>
  39235. <![CDATA[Called during execution to move to the next phase at this level in the
  39236. tree.]]>
  39237. </doc>
  39238. </method>
  39239. <method name="phase" return="org.apache.hadoop.util.Progress"
  39240. abstract="false" native="false" synchronized="true"
  39241. static="false" final="false" visibility="public"
  39242. deprecated="not deprecated">
  39243. <doc>
  39244. <![CDATA[Returns the current sub-node executing.]]>
  39245. </doc>
  39246. </method>
  39247. <method name="complete"
  39248. abstract="false" native="false" synchronized="false"
  39249. static="false" final="false" visibility="public"
  39250. deprecated="not deprecated">
  39251. <doc>
  39252. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  39253. </doc>
  39254. </method>
  39255. <method name="set"
  39256. abstract="false" native="false" synchronized="true"
  39257. static="false" final="false" visibility="public"
  39258. deprecated="not deprecated">
  39259. <param name="progress" type="float"/>
  39260. <doc>
  39261. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  39262. </doc>
  39263. </method>
  39264. <method name="get" return="float"
  39265. abstract="false" native="false" synchronized="true"
  39266. static="false" final="false" visibility="public"
  39267. deprecated="not deprecated">
  39268. <doc>
  39269. <![CDATA[Returns the overall progress of the root.]]>
  39270. </doc>
  39271. </method>
  39272. <method name="setStatus"
  39273. abstract="false" native="false" synchronized="true"
  39274. static="false" final="false" visibility="public"
  39275. deprecated="not deprecated">
  39276. <param name="status" type="java.lang.String"/>
  39277. </method>
  39278. <method name="toString" return="java.lang.String"
  39279. abstract="false" native="false" synchronized="false"
  39280. static="false" final="false" visibility="public"
  39281. deprecated="not deprecated">
  39282. </method>
  39283. <doc>
  39284. <![CDATA[Utility to assist with generation of progress reports. Applications build
  39285. a hierarchy of {@link Progress} instances, each modelling a phase of
  39286. execution. The root is constructed with {@link #Progress()}. Nodes for
  39287. sub-phases are created by calling {@link #addPhase()}.]]>
  39288. </doc>
  39289. </class>
  39290. <!-- end class org.apache.hadoop.util.Progress -->
  39291. <!-- start interface org.apache.hadoop.util.Progressable -->
  39292. <interface name="Progressable" abstract="true"
  39293. static="false" final="false" visibility="public"
  39294. deprecated="not deprecated">
  39295. <method name="progress"
  39296. abstract="false" native="false" synchronized="false"
  39297. static="false" final="false" visibility="public"
  39298. deprecated="not deprecated">
  39299. <doc>
  39300. <![CDATA[Report progress to the Hadoop framework.]]>
  39301. </doc>
  39302. </method>
  39303. <doc>
  39304. <![CDATA[A facility for reporting progress.
  39305. <p>Clients and/or applications can use the provided <code>Progressable</code>
  39306. to explicitly report progress to the Hadoop framework. This is especially
  39307. important for operations which take an insignificant amount of time since,
  39308. in-lieu of the reported progress, the framework has to assume that an error
  39309. has occured and time-out the operation.</p>]]>
  39310. </doc>
  39311. </interface>
  39312. <!-- end interface org.apache.hadoop.util.Progressable -->
  39313. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  39314. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  39315. abstract="true"
  39316. static="false" final="false" visibility="public"
  39317. deprecated="not deprecated">
  39318. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  39319. static="false" final="false" visibility="public"
  39320. deprecated="not deprecated">
  39321. <doc>
  39322. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  39323. used as first word in the log messages.
  39324. @param workItemsName - what kind of work items are being managed
  39325. on the queue? A plural word is best here, for logging.
  39326. @param logObject - What log do you want the log messages to be sent to?]]>
  39327. </doc>
  39328. </constructor>
  39329. <method name="startCycle"
  39330. abstract="false" native="false" synchronized="false"
  39331. static="false" final="false" visibility="public"
  39332. deprecated="not deprecated">
  39333. <param name="maxWorkToProcess" type="int"/>
  39334. </method>
  39335. <method name="endCycle"
  39336. abstract="false" native="false" synchronized="false"
  39337. static="false" final="false" visibility="public"
  39338. deprecated="not deprecated">
  39339. <param name="workFound" type="int"/>
  39340. </method>
  39341. <method name="checkRestart"
  39342. abstract="false" native="false" synchronized="false"
  39343. static="false" final="false" visibility="public"
  39344. deprecated="not deprecated">
  39345. </method>
  39346. <method name="preCheckIsLastCycle" return="boolean"
  39347. abstract="true" native="false" synchronized="false"
  39348. static="false" final="false" visibility="public"
  39349. deprecated="not deprecated">
  39350. <param name="maxWorkToProcess" type="int"/>
  39351. <doc>
  39352. <![CDATA[The termination condition is to identify the last cycle that will
  39353. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  39354. is called at the beginning of each cycle, and
  39355. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  39356. At least one of them must correctly provide the termination
  39357. condition. The other may always return 'false'. If either of them
  39358. returns 'true' in a given cycle, then at the end of that cycle the
  39359. stats will be output to log, and stats collection will end.
  39360. @param maxWorkToProcess - if this number is greater than the amount
  39361. of work remaining at the start of a cycle, then it will
  39362. be the last cycle.
  39363. @return - true if last cycle detected, else false]]>
  39364. </doc>
  39365. </method>
  39366. <method name="postCheckIsLastCycle" return="boolean"
  39367. abstract="true" native="false" synchronized="false"
  39368. static="false" final="false" visibility="public"
  39369. deprecated="not deprecated">
  39370. <param name="workFound" type="int"/>
  39371. <doc>
  39372. <![CDATA[See {@link #preCheckIsLastCycle}.
  39373. @param workFound - may not be useful
  39374. @return - true if remaining work is zero at end of cycle,
  39375. else false]]>
  39376. </doc>
  39377. </method>
  39378. <doc>
  39379. <![CDATA[Hadoop has several work queues, such as
  39380. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  39381. With a properly throttled queue, a worker thread cycles repeatedly,
  39382. doing a chunk of work each cycle then resting a bit, until the queue is
  39383. empty. This class is intended to collect statistics about the behavior of
  39384. such queues and consumers. It reports the amount of work done and
  39385. how long it took, for the first cycle after collection starts, and for
  39386. the total number of cycles needed to flush the queue. We use a state
  39387. machine to detect when the queue has been flushed and then we log the
  39388. stats; see {@link State} for enumeration of the states and their meanings.]]>
  39389. </doc>
  39390. </class>
  39391. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  39392. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39393. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  39394. abstract="false"
  39395. static="true" final="true" visibility="public"
  39396. deprecated="not deprecated">
  39397. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  39398. abstract="false" native="false" synchronized="false"
  39399. static="true" final="false" visibility="public"
  39400. deprecated="not deprecated">
  39401. </method>
  39402. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39403. abstract="false" native="false" synchronized="false"
  39404. static="true" final="false" visibility="public"
  39405. deprecated="not deprecated">
  39406. <param name="name" type="java.lang.String"/>
  39407. </method>
  39408. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39409. transient="false" volatile="false"
  39410. static="true" final="true" visibility="public"
  39411. deprecated="not deprecated">
  39412. </field>
  39413. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39414. transient="false" volatile="false"
  39415. static="true" final="true" visibility="public"
  39416. deprecated="not deprecated">
  39417. </field>
  39418. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39419. transient="false" volatile="false"
  39420. static="true" final="true" visibility="public"
  39421. deprecated="not deprecated">
  39422. </field>
  39423. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39424. transient="false" volatile="false"
  39425. static="true" final="true" visibility="public"
  39426. deprecated="not deprecated">
  39427. </field>
  39428. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39429. transient="false" volatile="false"
  39430. static="true" final="true" visibility="public"
  39431. deprecated="not deprecated">
  39432. </field>
  39433. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39434. transient="false" volatile="false"
  39435. static="true" final="true" visibility="public"
  39436. deprecated="not deprecated">
  39437. </field>
  39438. <doc>
  39439. <![CDATA[This enum provides the "states" of a state machine for
  39440. {@link QueueProcessingStatistics}.
  39441. The meanings of the states are: <ul>
  39442. <li> BEGIN_COLLECTING - Ready to begin.
  39443. <li> IN_FIRST_CYCLE - Started the first cycle.
  39444. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  39445. no further cycles because this one will complete all
  39446. needed work. When done, will go straight to
  39447. "DONE_COLLECTING".
  39448. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  39449. <li> IN_LAST_CYCLE - Started the last cycle.
  39450. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  39451. </ul>]]>
  39452. </doc>
  39453. </class>
  39454. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39455. <!-- start class org.apache.hadoop.util.QuickSort -->
  39456. <class name="QuickSort" extends="java.lang.Object"
  39457. abstract="false"
  39458. static="false" final="true" visibility="public"
  39459. deprecated="not deprecated">
  39460. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  39461. <constructor name="QuickSort"
  39462. static="false" final="false" visibility="public"
  39463. deprecated="not deprecated">
  39464. </constructor>
  39465. <method name="getMaxDepth" return="int"
  39466. abstract="false" native="false" synchronized="false"
  39467. static="true" final="false" visibility="protected"
  39468. deprecated="not deprecated">
  39469. <param name="x" type="int"/>
  39470. <doc>
  39471. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  39472. Returns 2 * ceil(log(n)).]]>
  39473. </doc>
  39474. </method>
  39475. <method name="sort"
  39476. abstract="false" native="false" synchronized="false"
  39477. static="false" final="false" visibility="public"
  39478. deprecated="not deprecated">
  39479. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39480. <param name="p" type="int"/>
  39481. <param name="r" type="int"/>
  39482. <doc>
  39483. <![CDATA[Sort the given range of items using quick sort.
  39484. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  39485. then switch to {@link HeapSort}.]]>
  39486. </doc>
  39487. </method>
  39488. <method name="sort"
  39489. abstract="false" native="false" synchronized="false"
  39490. static="false" final="false" visibility="public"
  39491. deprecated="not deprecated">
  39492. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39493. <param name="p" type="int"/>
  39494. <param name="r" type="int"/>
  39495. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39496. <doc>
  39497. <![CDATA[{@inheritDoc}]]>
  39498. </doc>
  39499. </method>
  39500. <doc>
  39501. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  39502. </doc>
  39503. </class>
  39504. <!-- end class org.apache.hadoop.util.QuickSort -->
  39505. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  39506. <class name="ReflectionUtils" extends="java.lang.Object"
  39507. abstract="false"
  39508. static="false" final="false" visibility="public"
  39509. deprecated="not deprecated">
  39510. <constructor name="ReflectionUtils"
  39511. static="false" final="false" visibility="public"
  39512. deprecated="not deprecated">
  39513. </constructor>
  39514. <method name="setConf"
  39515. abstract="false" native="false" synchronized="false"
  39516. static="true" final="false" visibility="public"
  39517. deprecated="not deprecated">
  39518. <param name="theObject" type="java.lang.Object"/>
  39519. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39520. <doc>
  39521. <![CDATA[Check and set 'configuration' if necessary.
  39522. @param theObject object for which to set configuration
  39523. @param conf Configuration]]>
  39524. </doc>
  39525. </method>
  39526. <method name="newInstance" return="java.lang.Object"
  39527. abstract="false" native="false" synchronized="false"
  39528. static="true" final="false" visibility="public"
  39529. deprecated="not deprecated">
  39530. <param name="theClass" type="java.lang.Class"/>
  39531. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39532. <doc>
  39533. <![CDATA[Create an object for the given class and initialize it from conf
  39534. @param theClass class of which an object is created
  39535. @param conf Configuration
  39536. @return a new object]]>
  39537. </doc>
  39538. </method>
  39539. <method name="setContentionTracing"
  39540. abstract="false" native="false" synchronized="false"
  39541. static="true" final="false" visibility="public"
  39542. deprecated="not deprecated">
  39543. <param name="val" type="boolean"/>
  39544. </method>
  39545. <method name="printThreadInfo"
  39546. abstract="false" native="false" synchronized="false"
  39547. static="true" final="false" visibility="public"
  39548. deprecated="not deprecated">
  39549. <param name="stream" type="java.io.PrintWriter"/>
  39550. <param name="title" type="java.lang.String"/>
  39551. <doc>
  39552. <![CDATA[Print all of the thread's information and stack traces.
  39553. @param stream the stream to
  39554. @param title a string title for the stack trace]]>
  39555. </doc>
  39556. </method>
  39557. <method name="logThreadInfo"
  39558. abstract="false" native="false" synchronized="false"
  39559. static="true" final="false" visibility="public"
  39560. deprecated="not deprecated">
  39561. <param name="log" type="org.apache.commons.logging.Log"/>
  39562. <param name="title" type="java.lang.String"/>
  39563. <param name="minInterval" type="long"/>
  39564. <doc>
  39565. <![CDATA[Log the current thread stacks at INFO level.
  39566. @param log the logger that logs the stack trace
  39567. @param title a descriptive title for the call stacks
  39568. @param minInterval the minimum time from the last]]>
  39569. </doc>
  39570. </method>
  39571. <method name="getClass" return="java.lang.Class"
  39572. abstract="false" native="false" synchronized="false"
  39573. static="true" final="false" visibility="public"
  39574. deprecated="not deprecated">
  39575. <param name="o" type="java.lang.Object"/>
  39576. <doc>
  39577. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  39578. @param o object whose correctly-typed <code>Class</code> is to be obtained
  39579. @return the correctly typed <code>Class</code> of the given object.]]>
  39580. </doc>
  39581. </method>
  39582. <method name="copy" return="java.lang.Object"
  39583. abstract="false" native="false" synchronized="false"
  39584. static="true" final="false" visibility="public"
  39585. deprecated="not deprecated">
  39586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39587. <param name="src" type="java.lang.Object"/>
  39588. <param name="dst" type="java.lang.Object"/>
  39589. <exception name="IOException" type="java.io.IOException"/>
  39590. <doc>
  39591. <![CDATA[Make a copy of the writable object using serialization to a buffer
  39592. @param dst the object to copy from
  39593. @param src the object to copy into, which is destroyed
  39594. @throws IOException]]>
  39595. </doc>
  39596. </method>
  39597. <method name="cloneWritableInto"
  39598. abstract="false" native="false" synchronized="false"
  39599. static="true" final="false" visibility="public"
  39600. deprecated="not deprecated">
  39601. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  39602. <param name="src" type="org.apache.hadoop.io.Writable"/>
  39603. <exception name="IOException" type="java.io.IOException"/>
  39604. </method>
  39605. <doc>
  39606. <![CDATA[General reflection utils]]>
  39607. </doc>
  39608. </class>
  39609. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  39610. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  39611. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  39612. abstract="true"
  39613. static="false" final="false" visibility="public"
  39614. deprecated="not deprecated">
  39615. <constructor name="ResourceCalculatorPlugin"
  39616. static="false" final="false" visibility="public"
  39617. deprecated="not deprecated">
  39618. </constructor>
  39619. <method name="getVirtualMemorySize" return="long"
  39620. abstract="true" native="false" synchronized="false"
  39621. static="false" final="false" visibility="public"
  39622. deprecated="not deprecated">
  39623. <doc>
  39624. <![CDATA[Obtain the total size of the virtual memory present in the system.
  39625. @return virtual memory size in bytes.]]>
  39626. </doc>
  39627. </method>
  39628. <method name="getPhysicalMemorySize" return="long"
  39629. abstract="true" native="false" synchronized="false"
  39630. static="false" final="false" visibility="public"
  39631. deprecated="not deprecated">
  39632. <doc>
  39633. <![CDATA[Obtain the total size of the physical memory present in the system.
  39634. @return physical memory size bytes.]]>
  39635. </doc>
  39636. </method>
  39637. <method name="getAvailableVirtualMemorySize" return="long"
  39638. abstract="true" native="false" synchronized="false"
  39639. static="false" final="false" visibility="public"
  39640. deprecated="not deprecated">
  39641. <doc>
  39642. <![CDATA[Obtain the total size of the available virtual memory present
  39643. in the system.
  39644. @return available virtual memory size in bytes.]]>
  39645. </doc>
  39646. </method>
  39647. <method name="getAvailablePhysicalMemorySize" return="long"
  39648. abstract="true" native="false" synchronized="false"
  39649. static="false" final="false" visibility="public"
  39650. deprecated="not deprecated">
  39651. <doc>
  39652. <![CDATA[Obtain the total size of the available physical memory present
  39653. in the system.
  39654. @return available physical memory size bytes.]]>
  39655. </doc>
  39656. </method>
  39657. <method name="getNumProcessors" return="int"
  39658. abstract="true" native="false" synchronized="false"
  39659. static="false" final="false" visibility="public"
  39660. deprecated="not deprecated">
  39661. <doc>
  39662. <![CDATA[Obtain the total number of processors present on the system.
  39663. @return number of processors]]>
  39664. </doc>
  39665. </method>
  39666. <method name="getCpuFrequency" return="long"
  39667. abstract="true" native="false" synchronized="false"
  39668. static="false" final="false" visibility="public"
  39669. deprecated="not deprecated">
  39670. <doc>
  39671. <![CDATA[Obtain the CPU frequency of on the system.
  39672. @return CPU frequency in kHz]]>
  39673. </doc>
  39674. </method>
  39675. <method name="getCumulativeCpuTime" return="long"
  39676. abstract="true" native="false" synchronized="false"
  39677. static="false" final="false" visibility="public"
  39678. deprecated="not deprecated">
  39679. <doc>
  39680. <![CDATA[Obtain the cumulative CPU time since the system is on.
  39681. @return cumulative CPU time in milliseconds]]>
  39682. </doc>
  39683. </method>
  39684. <method name="getCpuUsage" return="float"
  39685. abstract="true" native="false" synchronized="false"
  39686. static="false" final="false" visibility="public"
  39687. deprecated="not deprecated">
  39688. <doc>
  39689. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  39690. @return CPU usage in %]]>
  39691. </doc>
  39692. </method>
  39693. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  39694. abstract="true" native="false" synchronized="false"
  39695. static="false" final="false" visibility="public"
  39696. deprecated="not deprecated">
  39697. <doc>
  39698. <![CDATA[Obtain resource status used by current process tree.]]>
  39699. </doc>
  39700. </method>
  39701. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  39702. abstract="false" native="false" synchronized="false"
  39703. static="true" final="false" visibility="public"
  39704. deprecated="not deprecated">
  39705. <param name="clazz" type="java.lang.Class"/>
  39706. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39707. <doc>
  39708. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  39709. class name is null, this method will try and return a memory calculator
  39710. plugin available for this system.
  39711. @param clazz class-name
  39712. @param conf configure the plugin with this.
  39713. @return ResourceCalculatorPlugin]]>
  39714. </doc>
  39715. </method>
  39716. <doc>
  39717. <![CDATA[Plugin to calculate resource information on the system.]]>
  39718. </doc>
  39719. </class>
  39720. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  39721. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  39722. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  39723. abstract="false"
  39724. static="true" final="false" visibility="public"
  39725. deprecated="not deprecated">
  39726. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  39727. static="false" final="false" visibility="public"
  39728. deprecated="not deprecated">
  39729. </constructor>
  39730. <method name="getPhysicalMemorySize" return="long"
  39731. abstract="false" native="false" synchronized="false"
  39732. static="false" final="false" visibility="public"
  39733. deprecated="not deprecated">
  39734. <doc>
  39735. <![CDATA[Obtain the physical memory size used by current process tree.
  39736. @return physical memory size in bytes.]]>
  39737. </doc>
  39738. </method>
  39739. <method name="getVirtualMemorySize" return="long"
  39740. abstract="false" native="false" synchronized="false"
  39741. static="false" final="false" visibility="public"
  39742. deprecated="not deprecated">
  39743. <doc>
  39744. <![CDATA[Obtain the virtual memory size used by a current process tree.
  39745. @return virtual memory size in bytes.]]>
  39746. </doc>
  39747. </method>
  39748. <method name="getCumulativeCpuTime" return="long"
  39749. abstract="false" native="false" synchronized="false"
  39750. static="false" final="false" visibility="public"
  39751. deprecated="not deprecated">
  39752. <doc>
  39753. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  39754. @return cumulative CPU time in milliseconds]]>
  39755. </doc>
  39756. </method>
  39757. </class>
  39758. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  39759. <!-- start class org.apache.hadoop.util.RunJar -->
  39760. <class name="RunJar" extends="java.lang.Object"
  39761. abstract="false"
  39762. static="false" final="false" visibility="public"
  39763. deprecated="not deprecated">
  39764. <constructor name="RunJar"
  39765. static="false" final="false" visibility="public"
  39766. deprecated="not deprecated">
  39767. </constructor>
  39768. <method name="unJar"
  39769. abstract="false" native="false" synchronized="false"
  39770. static="true" final="false" visibility="public"
  39771. deprecated="not deprecated">
  39772. <param name="jarFile" type="java.io.File"/>
  39773. <param name="toDir" type="java.io.File"/>
  39774. <exception name="IOException" type="java.io.IOException"/>
  39775. <doc>
  39776. <![CDATA[Unpack a jar file into a directory.]]>
  39777. </doc>
  39778. </method>
  39779. <method name="main"
  39780. abstract="false" native="false" synchronized="false"
  39781. static="true" final="false" visibility="public"
  39782. deprecated="not deprecated">
  39783. <param name="args" type="java.lang.String[]"/>
  39784. <exception name="Throwable" type="java.lang.Throwable"/>
  39785. <doc>
  39786. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  39787. then it must be provided on the command line.]]>
  39788. </doc>
  39789. </method>
  39790. <doc>
  39791. <![CDATA[Run a Hadoop job jar.]]>
  39792. </doc>
  39793. </class>
  39794. <!-- end class org.apache.hadoop.util.RunJar -->
  39795. <!-- start class org.apache.hadoop.util.ServletUtil -->
  39796. <class name="ServletUtil" extends="java.lang.Object"
  39797. abstract="false"
  39798. static="false" final="false" visibility="public"
  39799. deprecated="not deprecated">
  39800. <constructor name="ServletUtil"
  39801. static="false" final="false" visibility="public"
  39802. deprecated="not deprecated">
  39803. </constructor>
  39804. <method name="initHTML" return="java.io.PrintWriter"
  39805. abstract="false" native="false" synchronized="false"
  39806. static="true" final="false" visibility="public"
  39807. deprecated="not deprecated">
  39808. <param name="response" type="javax.servlet.ServletResponse"/>
  39809. <param name="title" type="java.lang.String"/>
  39810. <exception name="IOException" type="java.io.IOException"/>
  39811. <doc>
  39812. <![CDATA[Initial HTML header]]>
  39813. </doc>
  39814. </method>
  39815. <method name="getParameter" return="java.lang.String"
  39816. abstract="false" native="false" synchronized="false"
  39817. static="true" final="false" visibility="public"
  39818. deprecated="not deprecated">
  39819. <param name="request" type="javax.servlet.ServletRequest"/>
  39820. <param name="name" type="java.lang.String"/>
  39821. <doc>
  39822. <![CDATA[Get a parameter from a ServletRequest.
  39823. Return null if the parameter contains only white spaces.]]>
  39824. </doc>
  39825. </method>
  39826. <method name="htmlFooter" return="java.lang.String"
  39827. abstract="false" native="false" synchronized="false"
  39828. static="true" final="false" visibility="public"
  39829. deprecated="not deprecated">
  39830. <doc>
  39831. <![CDATA[HTML footer to be added in the jsps.
  39832. @return the HTML footer.]]>
  39833. </doc>
  39834. </method>
  39835. <method name="percentageGraph" return="java.lang.String"
  39836. abstract="false" native="false" synchronized="false"
  39837. static="true" final="false" visibility="public"
  39838. deprecated="not deprecated">
  39839. <param name="perc" type="int"/>
  39840. <param name="width" type="int"/>
  39841. <exception name="IOException" type="java.io.IOException"/>
  39842. <doc>
  39843. <![CDATA[Generate the percentage graph and returns HTML representation string
  39844. of the same.
  39845. @param perc The percentage value for which graph is to be generated
  39846. @param width The width of the display table
  39847. @return HTML String representation of the percentage graph
  39848. @throws IOException]]>
  39849. </doc>
  39850. </method>
  39851. <method name="percentageGraph" return="java.lang.String"
  39852. abstract="false" native="false" synchronized="false"
  39853. static="true" final="false" visibility="public"
  39854. deprecated="not deprecated">
  39855. <param name="perc" type="float"/>
  39856. <param name="width" type="int"/>
  39857. <exception name="IOException" type="java.io.IOException"/>
  39858. <doc>
  39859. <![CDATA[Generate the percentage graph and returns HTML representation string
  39860. of the same.
  39861. @param perc The percentage value for which graph is to be generated
  39862. @param width The width of the display table
  39863. @return HTML String representation of the percentage graph
  39864. @throws IOException]]>
  39865. </doc>
  39866. </method>
  39867. <field name="HTML_TAIL" type="java.lang.String"
  39868. transient="false" volatile="false"
  39869. static="true" final="true" visibility="public"
  39870. deprecated="not deprecated">
  39871. </field>
  39872. </class>
  39873. <!-- end class org.apache.hadoop.util.ServletUtil -->
  39874. <!-- start class org.apache.hadoop.util.Shell -->
  39875. <class name="Shell" extends="java.lang.Object"
  39876. abstract="true"
  39877. static="false" final="false" visibility="public"
  39878. deprecated="not deprecated">
  39879. <constructor name="Shell"
  39880. static="false" final="false" visibility="public"
  39881. deprecated="not deprecated">
  39882. </constructor>
  39883. <constructor name="Shell" type="long"
  39884. static="false" final="false" visibility="public"
  39885. deprecated="not deprecated">
  39886. <doc>
  39887. <![CDATA[@param interval the minimum duration to wait before re-executing the
  39888. command.]]>
  39889. </doc>
  39890. </constructor>
  39891. <method name="getGroupsCommand" return="java.lang.String[]"
  39892. abstract="false" native="false" synchronized="false"
  39893. static="true" final="false" visibility="public"
  39894. deprecated="not deprecated">
  39895. <doc>
  39896. <![CDATA[a Unix command to get the current user's groups list]]>
  39897. </doc>
  39898. </method>
  39899. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  39900. abstract="false" native="false" synchronized="false"
  39901. static="true" final="false" visibility="public"
  39902. deprecated="not deprecated">
  39903. <param name="user" type="java.lang.String"/>
  39904. <doc>
  39905. <![CDATA[a Unix command to get a given user's groups list]]>
  39906. </doc>
  39907. </method>
  39908. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  39909. abstract="false" native="false" synchronized="false"
  39910. static="true" final="false" visibility="public"
  39911. deprecated="not deprecated">
  39912. <param name="netgroup" type="java.lang.String"/>
  39913. <doc>
  39914. <![CDATA[a Unix command to get a given netgroup's user list]]>
  39915. </doc>
  39916. </method>
  39917. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  39918. abstract="false" native="false" synchronized="false"
  39919. static="true" final="false" visibility="public"
  39920. deprecated="not deprecated">
  39921. <doc>
  39922. <![CDATA[Return a Unix command to get permission information.]]>
  39923. </doc>
  39924. </method>
  39925. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  39926. abstract="false" native="false" synchronized="false"
  39927. static="true" final="false" visibility="public"
  39928. deprecated="not deprecated">
  39929. <param name="memoryLimit" type="int"/>
  39930. <doc>
  39931. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  39932. to a given child process. This is only relevant when we are forking a
  39933. process from within the Mapper or the Reducer implementations.
  39934. Also see Hadoop Pipes and Hadoop Streaming.
  39935. It also checks to ensure that we are running on a *nix platform else
  39936. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  39937. @param memoryLimit virtual memory limit
  39938. @return a <code>String[]</code> with the ulimit command arguments or
  39939. <code>null</code> if we are running on a non *nix platform or
  39940. if the limit is unspecified.]]>
  39941. </doc>
  39942. </method>
  39943. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  39944. abstract="false" native="false" synchronized="false"
  39945. static="true" final="false" visibility="public"
  39946. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  39947. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39948. <doc>
  39949. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  39950. to a given child process. This is only relevant when we are forking a
  39951. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  39952. {@link org.apache.hadoop.mapred.Reducer} implementations
  39953. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  39954. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  39955. It also checks to ensure that we are running on a *nix platform else
  39956. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  39957. @param conf configuration
  39958. @return a <code>String[]</code> with the ulimit command arguments or
  39959. <code>null</code> if we are running on a non *nix platform or
  39960. if the limit is unspecified.
  39961. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  39962. </doc>
  39963. </method>
  39964. <method name="setEnvironment"
  39965. abstract="false" native="false" synchronized="false"
  39966. static="false" final="false" visibility="protected"
  39967. deprecated="not deprecated">
  39968. <param name="env" type="java.util.Map"/>
  39969. <doc>
  39970. <![CDATA[set the environment for the command
  39971. @param env Mapping of environment variables]]>
  39972. </doc>
  39973. </method>
  39974. <method name="setWorkingDirectory"
  39975. abstract="false" native="false" synchronized="false"
  39976. static="false" final="false" visibility="protected"
  39977. deprecated="not deprecated">
  39978. <param name="dir" type="java.io.File"/>
  39979. <doc>
  39980. <![CDATA[set the working directory
  39981. @param dir The directory where the command would be executed]]>
  39982. </doc>
  39983. </method>
  39984. <method name="run"
  39985. abstract="false" native="false" synchronized="false"
  39986. static="false" final="false" visibility="protected"
  39987. deprecated="not deprecated">
  39988. <exception name="IOException" type="java.io.IOException"/>
  39989. <doc>
  39990. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  39991. </doc>
  39992. </method>
  39993. <method name="getExecString" return="java.lang.String[]"
  39994. abstract="true" native="false" synchronized="false"
  39995. static="false" final="false" visibility="protected"
  39996. deprecated="not deprecated">
  39997. <doc>
  39998. <![CDATA[return an array containing the command name & its parameters]]>
  39999. </doc>
  40000. </method>
  40001. <method name="parseExecResult"
  40002. abstract="true" native="false" synchronized="false"
  40003. static="false" final="false" visibility="protected"
  40004. deprecated="not deprecated">
  40005. <param name="lines" type="java.io.BufferedReader"/>
  40006. <exception name="IOException" type="java.io.IOException"/>
  40007. <doc>
  40008. <![CDATA[Parse the execution result]]>
  40009. </doc>
  40010. </method>
  40011. <method name="getProcess" return="java.lang.Process"
  40012. abstract="false" native="false" synchronized="false"
  40013. static="false" final="false" visibility="public"
  40014. deprecated="not deprecated">
  40015. <doc>
  40016. <![CDATA[get the current sub-process executing the given command
  40017. @return process executing the command]]>
  40018. </doc>
  40019. </method>
  40020. <method name="getExitCode" return="int"
  40021. abstract="false" native="false" synchronized="false"
  40022. static="false" final="false" visibility="public"
  40023. deprecated="not deprecated">
  40024. <doc>
  40025. <![CDATA[get the exit code
  40026. @return the exit code of the process]]>
  40027. </doc>
  40028. </method>
  40029. <method name="isTimedOut" return="boolean"
  40030. abstract="false" native="false" synchronized="false"
  40031. static="false" final="false" visibility="public"
  40032. deprecated="not deprecated">
  40033. <doc>
  40034. <![CDATA[To check if the passed script to shell command executor timed out or
  40035. not.
  40036. @return if the script timed out.]]>
  40037. </doc>
  40038. </method>
  40039. <method name="execCommand" return="java.lang.String"
  40040. abstract="false" native="false" synchronized="false"
  40041. static="true" final="false" visibility="public"
  40042. deprecated="not deprecated">
  40043. <param name="cmd" type="java.lang.String[]"/>
  40044. <exception name="IOException" type="java.io.IOException"/>
  40045. <doc>
  40046. <![CDATA[Static method to execute a shell command.
  40047. Covers most of the simple cases without requiring the user to implement
  40048. the <code>Shell</code> interface.
  40049. @param cmd shell command to execute.
  40050. @return the output of the executed command.]]>
  40051. </doc>
  40052. </method>
  40053. <method name="execCommand" return="java.lang.String"
  40054. abstract="false" native="false" synchronized="false"
  40055. static="true" final="false" visibility="public"
  40056. deprecated="not deprecated">
  40057. <param name="env" type="java.util.Map"/>
  40058. <param name="cmd" type="java.lang.String[]"/>
  40059. <param name="timeout" type="long"/>
  40060. <exception name="IOException" type="java.io.IOException"/>
  40061. <doc>
  40062. <![CDATA[Static method to execute a shell command.
  40063. Covers most of the simple cases without requiring the user to implement
  40064. the <code>Shell</code> interface.
  40065. @param env the map of environment key=value
  40066. @param cmd shell command to execute.
  40067. @param timeout time in milliseconds after which script should be marked timeout
  40068. @return the output of the executed command.o]]>
  40069. </doc>
  40070. </method>
  40071. <method name="execCommand" return="java.lang.String"
  40072. abstract="false" native="false" synchronized="false"
  40073. static="true" final="false" visibility="public"
  40074. deprecated="not deprecated">
  40075. <param name="env" type="java.util.Map"/>
  40076. <param name="cmd" type="java.lang.String[]"/>
  40077. <exception name="IOException" type="java.io.IOException"/>
  40078. <doc>
  40079. <![CDATA[Static method to execute a shell command.
  40080. Covers most of the simple cases without requiring the user to implement
  40081. the <code>Shell</code> interface.
  40082. @param env the map of environment key=value
  40083. @param cmd shell command to execute.
  40084. @return the output of the executed command.]]>
  40085. </doc>
  40086. </method>
  40087. <field name="LOG" type="org.apache.commons.logging.Log"
  40088. transient="false" volatile="false"
  40089. static="true" final="true" visibility="public"
  40090. deprecated="not deprecated">
  40091. </field>
  40092. <field name="USER_NAME_COMMAND" type="java.lang.String"
  40093. transient="false" volatile="false"
  40094. static="true" final="true" visibility="public"
  40095. deprecated="not deprecated">
  40096. <doc>
  40097. <![CDATA[a Unix command to get the current user's name]]>
  40098. </doc>
  40099. </field>
  40100. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  40101. transient="false" volatile="false"
  40102. static="true" final="true" visibility="public"
  40103. deprecated="not deprecated">
  40104. <doc>
  40105. <![CDATA[a Unix command to set permission]]>
  40106. </doc>
  40107. </field>
  40108. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  40109. transient="false" volatile="false"
  40110. static="true" final="true" visibility="public"
  40111. deprecated="not deprecated">
  40112. <doc>
  40113. <![CDATA[a Unix command to set owner]]>
  40114. </doc>
  40115. </field>
  40116. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  40117. transient="false" volatile="false"
  40118. static="true" final="true" visibility="public"
  40119. deprecated="not deprecated">
  40120. </field>
  40121. <field name="timeOutInterval" type="long"
  40122. transient="false" volatile="false"
  40123. static="false" final="false" visibility="protected"
  40124. deprecated="not deprecated">
  40125. <doc>
  40126. <![CDATA[Time after which the executing script would be timedout]]>
  40127. </doc>
  40128. </field>
  40129. <field name="ULIMIT_COMMAND" type="java.lang.String"
  40130. transient="false" volatile="false"
  40131. static="true" final="true" visibility="public"
  40132. deprecated="not deprecated">
  40133. <doc>
  40134. <![CDATA[a Unix command to get ulimit of a process.]]>
  40135. </doc>
  40136. </field>
  40137. <field name="WINDOWS" type="boolean"
  40138. transient="false" volatile="false"
  40139. static="true" final="true" visibility="public"
  40140. deprecated="not deprecated">
  40141. <doc>
  40142. <![CDATA[Set to true on Windows platforms]]>
  40143. </doc>
  40144. </field>
  40145. <doc>
  40146. <![CDATA[A base class for running a Unix command.
  40147. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  40148. <code>df</code>. It also offers facilities to gate commands by
  40149. time-intervals.]]>
  40150. </doc>
  40151. </class>
  40152. <!-- end class org.apache.hadoop.util.Shell -->
  40153. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  40154. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  40155. abstract="false"
  40156. static="true" final="false" visibility="public"
  40157. deprecated="not deprecated">
  40158. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  40159. static="false" final="false" visibility="public"
  40160. deprecated="not deprecated">
  40161. </constructor>
  40162. <method name="getExitCode" return="int"
  40163. abstract="false" native="false" synchronized="false"
  40164. static="false" final="false" visibility="public"
  40165. deprecated="not deprecated">
  40166. </method>
  40167. <doc>
  40168. <![CDATA[This is an IOException with exit code added.]]>
  40169. </doc>
  40170. </class>
  40171. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  40172. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  40173. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  40174. abstract="false"
  40175. static="true" final="false" visibility="public"
  40176. deprecated="not deprecated">
  40177. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  40178. static="false" final="false" visibility="public"
  40179. deprecated="not deprecated">
  40180. </constructor>
  40181. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  40182. static="false" final="false" visibility="public"
  40183. deprecated="not deprecated">
  40184. </constructor>
  40185. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  40186. static="false" final="false" visibility="public"
  40187. deprecated="not deprecated">
  40188. </constructor>
  40189. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  40190. static="false" final="false" visibility="public"
  40191. deprecated="not deprecated">
  40192. <doc>
  40193. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  40194. @param execString The command to execute with arguments
  40195. @param dir If not-null, specifies the directory which should be set
  40196. as the current working directory for the command.
  40197. If null, the current working directory is not modified.
  40198. @param env If not-null, environment of the command will include the
  40199. key-value pairs specified in the map. If null, the current
  40200. environment is not modified.
  40201. @param timeout Specifies the time in milliseconds, after which the
  40202. command will be killed and the status marked as timedout.
  40203. If 0, the command will not be timed out.]]>
  40204. </doc>
  40205. </constructor>
  40206. <method name="execute"
  40207. abstract="false" native="false" synchronized="false"
  40208. static="false" final="false" visibility="public"
  40209. deprecated="not deprecated">
  40210. <exception name="IOException" type="java.io.IOException"/>
  40211. <doc>
  40212. <![CDATA[Execute the shell command.]]>
  40213. </doc>
  40214. </method>
  40215. <method name="getExecString" return="java.lang.String[]"
  40216. abstract="false" native="false" synchronized="false"
  40217. static="false" final="false" visibility="protected"
  40218. deprecated="not deprecated">
  40219. </method>
  40220. <method name="parseExecResult"
  40221. abstract="false" native="false" synchronized="false"
  40222. static="false" final="false" visibility="protected"
  40223. deprecated="not deprecated">
  40224. <param name="lines" type="java.io.BufferedReader"/>
  40225. <exception name="IOException" type="java.io.IOException"/>
  40226. </method>
  40227. <method name="getOutput" return="java.lang.String"
  40228. abstract="false" native="false" synchronized="false"
  40229. static="false" final="false" visibility="public"
  40230. deprecated="not deprecated">
  40231. <doc>
  40232. <![CDATA[Get the output of the shell command.]]>
  40233. </doc>
  40234. </method>
  40235. <method name="toString" return="java.lang.String"
  40236. abstract="false" native="false" synchronized="false"
  40237. static="false" final="false" visibility="public"
  40238. deprecated="not deprecated">
  40239. <doc>
  40240. <![CDATA[Returns the commands of this instance.
  40241. Arguments with spaces in are presented with quotes round; other
  40242. arguments are presented raw
  40243. @return a string representation of the object.]]>
  40244. </doc>
  40245. </method>
  40246. <doc>
  40247. <![CDATA[A simple shell command executor.
  40248. <code>ShellCommandExecutor</code>should be used in cases where the output
  40249. of the command needs no explicit parsing and where the command, working
  40250. directory and the environment remains unchanged. The output of the command
  40251. is stored as-is and is expected to be small.]]>
  40252. </doc>
  40253. </class>
  40254. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  40255. <!-- start class org.apache.hadoop.util.StringUtils -->
  40256. <class name="StringUtils" extends="java.lang.Object"
  40257. abstract="false"
  40258. static="false" final="false" visibility="public"
  40259. deprecated="not deprecated">
  40260. <constructor name="StringUtils"
  40261. static="false" final="false" visibility="public"
  40262. deprecated="not deprecated">
  40263. </constructor>
  40264. <method name="stringifyException" return="java.lang.String"
  40265. abstract="false" native="false" synchronized="false"
  40266. static="true" final="false" visibility="public"
  40267. deprecated="not deprecated">
  40268. <param name="e" type="java.lang.Throwable"/>
  40269. <doc>
  40270. <![CDATA[Make a string representation of the exception.
  40271. @param e The exception to stringify
  40272. @return A string with exception name and call stack.]]>
  40273. </doc>
  40274. </method>
  40275. <method name="simpleHostname" return="java.lang.String"
  40276. abstract="false" native="false" synchronized="false"
  40277. static="true" final="false" visibility="public"
  40278. deprecated="not deprecated">
  40279. <param name="fullHostname" type="java.lang.String"/>
  40280. <doc>
  40281. <![CDATA[Given a full hostname, return the word upto the first dot.
  40282. @param fullHostname the full hostname
  40283. @return the hostname to the first dot]]>
  40284. </doc>
  40285. </method>
  40286. <method name="humanReadableInt" return="java.lang.String"
  40287. abstract="false" native="false" synchronized="false"
  40288. static="true" final="false" visibility="public"
  40289. deprecated="not deprecated">
  40290. <param name="number" type="long"/>
  40291. <doc>
  40292. <![CDATA[Given an integer, return a string that is in an approximate, but human
  40293. readable format.
  40294. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  40295. @param number the number to format
  40296. @return a human readable form of the integer]]>
  40297. </doc>
  40298. </method>
  40299. <method name="formatPercent" return="java.lang.String"
  40300. abstract="false" native="false" synchronized="false"
  40301. static="true" final="false" visibility="public"
  40302. deprecated="not deprecated">
  40303. <param name="done" type="double"/>
  40304. <param name="digits" type="int"/>
  40305. <doc>
  40306. <![CDATA[Format a percentage for presentation to the user.
  40307. @param done the percentage to format (0.0 to 1.0)
  40308. @param digits the number of digits past the decimal point
  40309. @return a string representation of the percentage]]>
  40310. </doc>
  40311. </method>
  40312. <method name="arrayToString" return="java.lang.String"
  40313. abstract="false" native="false" synchronized="false"
  40314. static="true" final="false" visibility="public"
  40315. deprecated="not deprecated">
  40316. <param name="strs" type="java.lang.String[]"/>
  40317. <doc>
  40318. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  40319. @param strs Array of strings
  40320. @return Empty string if strs.length is 0, comma separated list of strings
  40321. otherwise]]>
  40322. </doc>
  40323. </method>
  40324. <method name="byteToHexString" return="java.lang.String"
  40325. abstract="false" native="false" synchronized="false"
  40326. static="true" final="false" visibility="public"
  40327. deprecated="not deprecated">
  40328. <param name="bytes" type="byte[]"/>
  40329. <param name="start" type="int"/>
  40330. <param name="end" type="int"/>
  40331. <doc>
  40332. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  40333. representation of the bytes
  40334. @param bytes
  40335. @param start start index, inclusively
  40336. @param end end index, exclusively
  40337. @return hex string representation of the byte array]]>
  40338. </doc>
  40339. </method>
  40340. <method name="byteToHexString" return="java.lang.String"
  40341. abstract="false" native="false" synchronized="false"
  40342. static="true" final="false" visibility="public"
  40343. deprecated="not deprecated">
  40344. <param name="bytes" type="byte[]"/>
  40345. <doc>
  40346. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  40347. </doc>
  40348. </method>
  40349. <method name="hexStringToByte" return="byte[]"
  40350. abstract="false" native="false" synchronized="false"
  40351. static="true" final="false" visibility="public"
  40352. deprecated="not deprecated">
  40353. <param name="hex" type="java.lang.String"/>
  40354. <doc>
  40355. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  40356. string
  40357. @param hex the hex String array
  40358. @return a byte array that is a hex string representation of the given
  40359. string. The size of the byte array is therefore hex.length/2]]>
  40360. </doc>
  40361. </method>
  40362. <method name="uriToString" return="java.lang.String"
  40363. abstract="false" native="false" synchronized="false"
  40364. static="true" final="false" visibility="public"
  40365. deprecated="not deprecated">
  40366. <param name="uris" type="java.net.URI[]"/>
  40367. <doc>
  40368. <![CDATA[@param uris]]>
  40369. </doc>
  40370. </method>
  40371. <method name="stringToURI" return="java.net.URI[]"
  40372. abstract="false" native="false" synchronized="false"
  40373. static="true" final="false" visibility="public"
  40374. deprecated="not deprecated">
  40375. <param name="str" type="java.lang.String[]"/>
  40376. <doc>
  40377. <![CDATA[@param str]]>
  40378. </doc>
  40379. </method>
  40380. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  40381. abstract="false" native="false" synchronized="false"
  40382. static="true" final="false" visibility="public"
  40383. deprecated="not deprecated">
  40384. <param name="str" type="java.lang.String[]"/>
  40385. <doc>
  40386. <![CDATA[@param str]]>
  40387. </doc>
  40388. </method>
  40389. <method name="formatTimeDiff" return="java.lang.String"
  40390. abstract="false" native="false" synchronized="false"
  40391. static="true" final="false" visibility="public"
  40392. deprecated="not deprecated">
  40393. <param name="finishTime" type="long"/>
  40394. <param name="startTime" type="long"/>
  40395. <doc>
  40396. <![CDATA[Given a finish and start time in long milliseconds, returns a
  40397. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  40398. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  40399. @param finishTime finish time
  40400. @param startTime start time]]>
  40401. </doc>
  40402. </method>
  40403. <method name="formatTime" return="java.lang.String"
  40404. abstract="false" native="false" synchronized="false"
  40405. static="true" final="false" visibility="public"
  40406. deprecated="not deprecated">
  40407. <param name="timeDiff" type="long"/>
  40408. <doc>
  40409. <![CDATA[Given the time in long milliseconds, returns a
  40410. String in the format Xhrs, Ymins, Z sec.
  40411. @param timeDiff The time difference to format]]>
  40412. </doc>
  40413. </method>
  40414. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  40415. abstract="false" native="false" synchronized="false"
  40416. static="true" final="false" visibility="public"
  40417. deprecated="not deprecated">
  40418. <param name="dateFormat" type="java.text.DateFormat"/>
  40419. <param name="finishTime" type="long"/>
  40420. <param name="startTime" type="long"/>
  40421. <doc>
  40422. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  40423. as returned by formatTimeDiff().
  40424. If finish time is 0, empty string is returned, if start time is 0
  40425. then difference is not appended to return value.
  40426. @param dateFormat date format to use
  40427. @param finishTime fnish time
  40428. @param startTime start time
  40429. @return formatted value.]]>
  40430. </doc>
  40431. </method>
  40432. <method name="getStrings" return="java.lang.String[]"
  40433. abstract="false" native="false" synchronized="false"
  40434. static="true" final="false" visibility="public"
  40435. deprecated="not deprecated">
  40436. <param name="str" type="java.lang.String"/>
  40437. <doc>
  40438. <![CDATA[Returns an arraylist of strings.
  40439. @param str the comma seperated string values
  40440. @return the arraylist of the comma seperated string values]]>
  40441. </doc>
  40442. </method>
  40443. <method name="getStringCollection" return="java.util.Collection"
  40444. abstract="false" native="false" synchronized="false"
  40445. static="true" final="false" visibility="public"
  40446. deprecated="not deprecated">
  40447. <param name="str" type="java.lang.String"/>
  40448. <doc>
  40449. <![CDATA[Returns a collection of strings.
  40450. @param str comma seperated string values
  40451. @return an <code>ArrayList</code> of string values]]>
  40452. </doc>
  40453. </method>
  40454. <method name="split" return="java.lang.String[]"
  40455. abstract="false" native="false" synchronized="false"
  40456. static="true" final="false" visibility="public"
  40457. deprecated="not deprecated">
  40458. <param name="str" type="java.lang.String"/>
  40459. <doc>
  40460. <![CDATA[Split a string using the default separator
  40461. @param str a string that may have escaped separator
  40462. @return an array of strings]]>
  40463. </doc>
  40464. </method>
  40465. <method name="split" return="java.lang.String[]"
  40466. abstract="false" native="false" synchronized="false"
  40467. static="true" final="false" visibility="public"
  40468. deprecated="not deprecated">
  40469. <param name="str" type="java.lang.String"/>
  40470. <param name="escapeChar" type="char"/>
  40471. <param name="separator" type="char"/>
  40472. <doc>
  40473. <![CDATA[Split a string using the given separator
  40474. @param str a string that may have escaped separator
  40475. @param escapeChar a char that be used to escape the separator
  40476. @param separator a separator char
  40477. @return an array of strings]]>
  40478. </doc>
  40479. </method>
  40480. <method name="findNext" return="int"
  40481. abstract="false" native="false" synchronized="false"
  40482. static="true" final="false" visibility="public"
  40483. deprecated="not deprecated">
  40484. <param name="str" type="java.lang.String"/>
  40485. <param name="separator" type="char"/>
  40486. <param name="escapeChar" type="char"/>
  40487. <param name="start" type="int"/>
  40488. <param name="split" type="java.lang.StringBuilder"/>
  40489. <doc>
  40490. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  40491. separators starting from the index. Note the substring between the index
  40492. and the position of the separator is passed.
  40493. @param str the source string
  40494. @param separator the character to find
  40495. @param escapeChar character used to escape
  40496. @param start from where to search
  40497. @param split used to pass back the extracted string]]>
  40498. </doc>
  40499. </method>
  40500. <method name="escapeString" return="java.lang.String"
  40501. abstract="false" native="false" synchronized="false"
  40502. static="true" final="false" visibility="public"
  40503. deprecated="not deprecated">
  40504. <param name="str" type="java.lang.String"/>
  40505. <doc>
  40506. <![CDATA[Escape commas in the string using the default escape char
  40507. @param str a string
  40508. @return an escaped string]]>
  40509. </doc>
  40510. </method>
  40511. <method name="escapeString" return="java.lang.String"
  40512. abstract="false" native="false" synchronized="false"
  40513. static="true" final="false" visibility="public"
  40514. deprecated="not deprecated">
  40515. <param name="str" type="java.lang.String"/>
  40516. <param name="escapeChar" type="char"/>
  40517. <param name="charToEscape" type="char"/>
  40518. <doc>
  40519. <![CDATA[Escape <code>charToEscape</code> in the string
  40520. with the escape char <code>escapeChar</code>
  40521. @param str string
  40522. @param escapeChar escape char
  40523. @param charToEscape the char to be escaped
  40524. @return an escaped string]]>
  40525. </doc>
  40526. </method>
  40527. <method name="escapeString" return="java.lang.String"
  40528. abstract="false" native="false" synchronized="false"
  40529. static="true" final="false" visibility="public"
  40530. deprecated="not deprecated">
  40531. <param name="str" type="java.lang.String"/>
  40532. <param name="escapeChar" type="char"/>
  40533. <param name="charsToEscape" type="char[]"/>
  40534. <doc>
  40535. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  40536. </doc>
  40537. </method>
  40538. <method name="unEscapeString" return="java.lang.String"
  40539. abstract="false" native="false" synchronized="false"
  40540. static="true" final="false" visibility="public"
  40541. deprecated="not deprecated">
  40542. <param name="str" type="java.lang.String"/>
  40543. <doc>
  40544. <![CDATA[Unescape commas in the string using the default escape char
  40545. @param str a string
  40546. @return an unescaped string]]>
  40547. </doc>
  40548. </method>
  40549. <method name="unEscapeString" return="java.lang.String"
  40550. abstract="false" native="false" synchronized="false"
  40551. static="true" final="false" visibility="public"
  40552. deprecated="not deprecated">
  40553. <param name="str" type="java.lang.String"/>
  40554. <param name="escapeChar" type="char"/>
  40555. <param name="charToEscape" type="char"/>
  40556. <doc>
  40557. <![CDATA[Unescape <code>charToEscape</code> in the string
  40558. with the escape char <code>escapeChar</code>
  40559. @param str string
  40560. @param escapeChar escape char
  40561. @param charToEscape the escaped char
  40562. @return an unescaped string]]>
  40563. </doc>
  40564. </method>
  40565. <method name="unEscapeString" return="java.lang.String"
  40566. abstract="false" native="false" synchronized="false"
  40567. static="true" final="false" visibility="public"
  40568. deprecated="not deprecated">
  40569. <param name="str" type="java.lang.String"/>
  40570. <param name="escapeChar" type="char"/>
  40571. <param name="charsToEscape" type="char[]"/>
  40572. <doc>
  40573. <![CDATA[@param charsToEscape array of characters to unescape]]>
  40574. </doc>
  40575. </method>
  40576. <method name="getHostname" return="java.lang.String"
  40577. abstract="false" native="false" synchronized="false"
  40578. static="true" final="false" visibility="public"
  40579. deprecated="not deprecated">
  40580. <doc>
  40581. <![CDATA[Return hostname without throwing exception.
  40582. @return hostname]]>
  40583. </doc>
  40584. </method>
  40585. <method name="startupShutdownMessage"
  40586. abstract="false" native="false" synchronized="false"
  40587. static="true" final="false" visibility="public"
  40588. deprecated="not deprecated">
  40589. <param name="clazz" type="java.lang.Class"/>
  40590. <param name="args" type="java.lang.String[]"/>
  40591. <param name="LOG" type="org.apache.commons.logging.Log"/>
  40592. <doc>
  40593. <![CDATA[Print a log message for starting up and shutting down
  40594. @param clazz the class of the server
  40595. @param args arguments
  40596. @param LOG the target log object]]>
  40597. </doc>
  40598. </method>
  40599. <method name="escapeHTML" return="java.lang.String"
  40600. abstract="false" native="false" synchronized="false"
  40601. static="true" final="false" visibility="public"
  40602. deprecated="not deprecated">
  40603. <param name="string" type="java.lang.String"/>
  40604. <doc>
  40605. <![CDATA[Escapes HTML Special characters present in the string.
  40606. @param string
  40607. @return HTML Escaped String representation]]>
  40608. </doc>
  40609. </method>
  40610. <method name="byteDesc" return="java.lang.String"
  40611. abstract="false" native="false" synchronized="false"
  40612. static="true" final="false" visibility="public"
  40613. deprecated="not deprecated">
  40614. <param name="len" type="long"/>
  40615. <doc>
  40616. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  40617. </doc>
  40618. </method>
  40619. <method name="limitDecimalTo2" return="java.lang.String"
  40620. abstract="false" native="false" synchronized="true"
  40621. static="true" final="false" visibility="public"
  40622. deprecated="not deprecated">
  40623. <param name="d" type="double"/>
  40624. </method>
  40625. <method name="join" return="java.lang.String"
  40626. abstract="false" native="false" synchronized="false"
  40627. static="true" final="false" visibility="public"
  40628. deprecated="not deprecated">
  40629. <param name="separator" type="java.lang.CharSequence"/>
  40630. <param name="strings" type="java.lang.Iterable"/>
  40631. <doc>
  40632. <![CDATA[Concatenates strings, using a separator.
  40633. @param separator Separator to join with.
  40634. @param strings Strings to join.
  40635. @return the joined string]]>
  40636. </doc>
  40637. </method>
  40638. <method name="join" return="java.lang.String"
  40639. abstract="false" native="false" synchronized="false"
  40640. static="true" final="false" visibility="public"
  40641. deprecated="not deprecated">
  40642. <param name="separator" type="java.lang.CharSequence"/>
  40643. <param name="strings" type="java.lang.String[]"/>
  40644. <doc>
  40645. <![CDATA[Concatenates strings, using a separator.
  40646. @param separator to join with
  40647. @param strings to join
  40648. @return the joined string]]>
  40649. </doc>
  40650. </method>
  40651. <method name="capitalize" return="java.lang.String"
  40652. abstract="false" native="false" synchronized="false"
  40653. static="true" final="false" visibility="public"
  40654. deprecated="not deprecated">
  40655. <param name="s" type="java.lang.String"/>
  40656. <doc>
  40657. <![CDATA[Capitalize a word
  40658. @param s the input string
  40659. @return capitalized string]]>
  40660. </doc>
  40661. </method>
  40662. <method name="camelize" return="java.lang.String"
  40663. abstract="false" native="false" synchronized="false"
  40664. static="true" final="false" visibility="public"
  40665. deprecated="not deprecated">
  40666. <param name="s" type="java.lang.String"/>
  40667. <doc>
  40668. <![CDATA[Convert SOME_STUFF to SomeStuff
  40669. @param s input string
  40670. @return camelized string]]>
  40671. </doc>
  40672. </method>
  40673. <field name="COMMA" type="char"
  40674. transient="false" volatile="false"
  40675. static="true" final="true" visibility="public"
  40676. deprecated="not deprecated">
  40677. </field>
  40678. <field name="COMMA_STR" type="java.lang.String"
  40679. transient="false" volatile="false"
  40680. static="true" final="true" visibility="public"
  40681. deprecated="not deprecated">
  40682. </field>
  40683. <field name="ESCAPE_CHAR" type="char"
  40684. transient="false" volatile="false"
  40685. static="true" final="true" visibility="public"
  40686. deprecated="not deprecated">
  40687. </field>
  40688. <doc>
  40689. <![CDATA[General string utils]]>
  40690. </doc>
  40691. </class>
  40692. <!-- end class org.apache.hadoop.util.StringUtils -->
  40693. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  40694. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  40695. abstract="false"
  40696. static="true" final="true" visibility="public"
  40697. deprecated="not deprecated">
  40698. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  40699. abstract="false" native="false" synchronized="false"
  40700. static="true" final="false" visibility="public"
  40701. deprecated="not deprecated">
  40702. </method>
  40703. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40704. abstract="false" native="false" synchronized="false"
  40705. static="true" final="false" visibility="public"
  40706. deprecated="not deprecated">
  40707. <param name="name" type="java.lang.String"/>
  40708. </method>
  40709. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40710. abstract="false" native="false" synchronized="false"
  40711. static="true" final="false" visibility="public"
  40712. deprecated="not deprecated">
  40713. <param name="symbol" type="char"/>
  40714. <doc>
  40715. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  40716. </doc>
  40717. </method>
  40718. <method name="string2long" return="long"
  40719. abstract="false" native="false" synchronized="false"
  40720. static="true" final="false" visibility="public"
  40721. deprecated="not deprecated">
  40722. <param name="s" type="java.lang.String"/>
  40723. <doc>
  40724. <![CDATA[Convert a string to long.
  40725. The input string is first be trimmed
  40726. and then it is parsed with traditional binary prefix.
  40727. For example,
  40728. "-1230k" will be converted to -1230 * 1024 = -1259520;
  40729. "891g" will be converted to 891 * 1024^3 = 956703965184;
  40730. @param s input string
  40731. @return a long value represented by the input string.]]>
  40732. </doc>
  40733. </method>
  40734. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40735. transient="false" volatile="false"
  40736. static="true" final="true" visibility="public"
  40737. deprecated="not deprecated">
  40738. </field>
  40739. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40740. transient="false" volatile="false"
  40741. static="true" final="true" visibility="public"
  40742. deprecated="not deprecated">
  40743. </field>
  40744. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40745. transient="false" volatile="false"
  40746. static="true" final="true" visibility="public"
  40747. deprecated="not deprecated">
  40748. </field>
  40749. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40750. transient="false" volatile="false"
  40751. static="true" final="true" visibility="public"
  40752. deprecated="not deprecated">
  40753. </field>
  40754. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40755. transient="false" volatile="false"
  40756. static="true" final="true" visibility="public"
  40757. deprecated="not deprecated">
  40758. </field>
  40759. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40760. transient="false" volatile="false"
  40761. static="true" final="true" visibility="public"
  40762. deprecated="not deprecated">
  40763. </field>
  40764. <field name="value" type="long"
  40765. transient="false" volatile="false"
  40766. static="false" final="true" visibility="public"
  40767. deprecated="not deprecated">
  40768. </field>
  40769. <field name="symbol" type="char"
  40770. transient="false" volatile="false"
  40771. static="false" final="true" visibility="public"
  40772. deprecated="not deprecated">
  40773. </field>
  40774. <doc>
  40775. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  40776. which can be represented by a 64-bit integer.
  40777. TraditionalBinaryPrefix symbol are case insensitive.]]>
  40778. </doc>
  40779. </class>
  40780. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  40781. <!-- start interface org.apache.hadoop.util.Tool -->
  40782. <interface name="Tool" abstract="true"
  40783. static="false" final="false" visibility="public"
  40784. deprecated="not deprecated">
  40785. <implements name="org.apache.hadoop.conf.Configurable"/>
  40786. <method name="run" return="int"
  40787. abstract="false" native="false" synchronized="false"
  40788. static="false" final="false" visibility="public"
  40789. deprecated="not deprecated">
  40790. <param name="args" type="java.lang.String[]"/>
  40791. <exception name="Exception" type="java.lang.Exception"/>
  40792. <doc>
  40793. <![CDATA[Execute the command with the given arguments.
  40794. @param args command specific arguments.
  40795. @return exit code.
  40796. @throws Exception]]>
  40797. </doc>
  40798. </method>
  40799. <doc>
  40800. <![CDATA[A tool interface that supports handling of generic command-line options.
  40801. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  40802. The tool/application should delegate the handling of
  40803. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  40804. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  40805. and only handle its custom arguments.</p>
  40806. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  40807. <p><blockquote><pre>
  40808. public class MyApp extends Configured implements Tool {
  40809. public int run(String[] args) throws Exception {
  40810. // <code>Configuration</code> processed by <code>ToolRunner</code>
  40811. Configuration conf = getConf();
  40812. // Create a JobConf using the processed <code>conf</code>
  40813. JobConf job = new JobConf(conf, MyApp.class);
  40814. // Process custom command-line options
  40815. Path in = new Path(args[1]);
  40816. Path out = new Path(args[2]);
  40817. // Specify various job-specific parameters
  40818. job.setJobName("my-app");
  40819. job.setInputPath(in);
  40820. job.setOutputPath(out);
  40821. job.setMapperClass(MyApp.MyMapper.class);
  40822. job.setReducerClass(MyApp.MyReducer.class);
  40823. // Submit the job, then poll for progress until the job is complete
  40824. JobClient.runJob(job);
  40825. }
  40826. public static void main(String[] args) throws Exception {
  40827. // Let <code>ToolRunner</code> handle generic command-line options
  40828. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  40829. System.exit(res);
  40830. }
  40831. }
  40832. </pre></blockquote></p>
  40833. @see GenericOptionsParser
  40834. @see ToolRunner]]>
  40835. </doc>
  40836. </interface>
  40837. <!-- end interface org.apache.hadoop.util.Tool -->
  40838. <!-- start class org.apache.hadoop.util.ToolRunner -->
  40839. <class name="ToolRunner" extends="java.lang.Object"
  40840. abstract="false"
  40841. static="false" final="false" visibility="public"
  40842. deprecated="not deprecated">
  40843. <constructor name="ToolRunner"
  40844. static="false" final="false" visibility="public"
  40845. deprecated="not deprecated">
  40846. </constructor>
  40847. <method name="run" return="int"
  40848. abstract="false" native="false" synchronized="false"
  40849. static="true" final="false" visibility="public"
  40850. deprecated="not deprecated">
  40851. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40852. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  40853. <param name="args" type="java.lang.String[]"/>
  40854. <exception name="Exception" type="java.lang.Exception"/>
  40855. <doc>
  40856. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  40857. parsing with the given generic arguments. Uses the given
  40858. <code>Configuration</code>, or builds one if null.
  40859. Sets the <code>Tool</code>'s configuration with the possibly modified
  40860. version of the <code>conf</code>.
  40861. @param conf <code>Configuration</code> for the <code>Tool</code>.
  40862. @param tool <code>Tool</code> to run.
  40863. @param args command-line arguments to the tool.
  40864. @return exit code of the {@link Tool#run(String[])} method.]]>
  40865. </doc>
  40866. </method>
  40867. <method name="run" return="int"
  40868. abstract="false" native="false" synchronized="false"
  40869. static="true" final="false" visibility="public"
  40870. deprecated="not deprecated">
  40871. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  40872. <param name="args" type="java.lang.String[]"/>
  40873. <exception name="Exception" type="java.lang.Exception"/>
  40874. <doc>
  40875. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  40876. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  40877. @param tool <code>Tool</code> to run.
  40878. @param args command-line arguments to the tool.
  40879. @return exit code of the {@link Tool#run(String[])} method.]]>
  40880. </doc>
  40881. </method>
  40882. <method name="printGenericCommandUsage"
  40883. abstract="false" native="false" synchronized="false"
  40884. static="true" final="false" visibility="public"
  40885. deprecated="not deprecated">
  40886. <param name="out" type="java.io.PrintStream"/>
  40887. <doc>
  40888. <![CDATA[Prints generic command-line argurments and usage information.
  40889. @param out stream to write usage information to.]]>
  40890. </doc>
  40891. </method>
  40892. <doc>
  40893. <![CDATA[A utility to help run {@link Tool}s.
  40894. <p><code>ToolRunner</code> can be used to run classes implementing
  40895. <code>Tool</code> interface. It works in conjunction with
  40896. {@link GenericOptionsParser} to parse the
  40897. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  40898. generic hadoop command line arguments</a> and modifies the
  40899. <code>Configuration</code> of the <code>Tool</code>. The
  40900. application-specific options are passed along without being modified.
  40901. </p>
  40902. @see Tool
  40903. @see GenericOptionsParser]]>
  40904. </doc>
  40905. </class>
  40906. <!-- end class org.apache.hadoop.util.ToolRunner -->
  40907. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  40908. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  40909. abstract="false"
  40910. static="false" final="false" visibility="public"
  40911. deprecated="not deprecated">
  40912. <constructor name="UTF8ByteArrayUtils"
  40913. static="false" final="false" visibility="public"
  40914. deprecated="not deprecated">
  40915. </constructor>
  40916. <method name="findByte" return="int"
  40917. abstract="false" native="false" synchronized="false"
  40918. static="true" final="false" visibility="public"
  40919. deprecated="not deprecated">
  40920. <param name="utf" type="byte[]"/>
  40921. <param name="start" type="int"/>
  40922. <param name="end" type="int"/>
  40923. <param name="b" type="byte"/>
  40924. <doc>
  40925. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  40926. @param utf a byte array containing a UTF-8 encoded string
  40927. @param start starting offset
  40928. @param end ending position
  40929. @param b the byte to find
  40930. @return position that first byte occures otherwise -1]]>
  40931. </doc>
  40932. </method>
  40933. <method name="findBytes" return="int"
  40934. abstract="false" native="false" synchronized="false"
  40935. static="true" final="false" visibility="public"
  40936. deprecated="not deprecated">
  40937. <param name="utf" type="byte[]"/>
  40938. <param name="start" type="int"/>
  40939. <param name="end" type="int"/>
  40940. <param name="b" type="byte[]"/>
  40941. <doc>
  40942. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  40943. @param utf a byte array containing a UTF-8 encoded string
  40944. @param start starting offset
  40945. @param end ending position
  40946. @param b the bytes to find
  40947. @return position that first byte occures otherwise -1]]>
  40948. </doc>
  40949. </method>
  40950. <method name="findNthByte" return="int"
  40951. abstract="false" native="false" synchronized="false"
  40952. static="true" final="false" visibility="public"
  40953. deprecated="not deprecated">
  40954. <param name="utf" type="byte[]"/>
  40955. <param name="start" type="int"/>
  40956. <param name="length" type="int"/>
  40957. <param name="b" type="byte"/>
  40958. <param name="n" type="int"/>
  40959. <doc>
  40960. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  40961. @param utf a byte array containing a UTF-8 encoded string
  40962. @param start starting offset
  40963. @param length the length of byte array
  40964. @param b the byte to find
  40965. @param n the desired occurrence of the given byte
  40966. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  40967. </doc>
  40968. </method>
  40969. <method name="findNthByte" return="int"
  40970. abstract="false" native="false" synchronized="false"
  40971. static="true" final="false" visibility="public"
  40972. deprecated="not deprecated">
  40973. <param name="utf" type="byte[]"/>
  40974. <param name="b" type="byte"/>
  40975. <param name="n" type="int"/>
  40976. <doc>
  40977. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  40978. @param utf a byte array containing a UTF-8 encoded string
  40979. @param b the byte to find
  40980. @param n the desired occurrence of the given byte
  40981. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  40982. </doc>
  40983. </method>
  40984. </class>
  40985. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  40986. <!-- start class org.apache.hadoop.util.VersionInfo -->
  40987. <class name="VersionInfo" extends="java.lang.Object"
  40988. abstract="false"
  40989. static="false" final="false" visibility="public"
  40990. deprecated="not deprecated">
  40991. <constructor name="VersionInfo"
  40992. static="false" final="false" visibility="public"
  40993. deprecated="not deprecated">
  40994. </constructor>
  40995. <method name="getVersion" return="java.lang.String"
  40996. abstract="false" native="false" synchronized="false"
  40997. static="true" final="false" visibility="public"
  40998. deprecated="not deprecated">
  40999. <doc>
  41000. <![CDATA[Get the Hadoop version.
  41001. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  41002. </doc>
  41003. </method>
  41004. <method name="getRevision" return="java.lang.String"
  41005. abstract="false" native="false" synchronized="false"
  41006. static="true" final="false" visibility="public"
  41007. deprecated="not deprecated">
  41008. <doc>
  41009. <![CDATA[Get the subversion revision number for the root directory
  41010. @return the revision number, eg. "451451"]]>
  41011. </doc>
  41012. </method>
  41013. <method name="getDate" return="java.lang.String"
  41014. abstract="false" native="false" synchronized="false"
  41015. static="true" final="false" visibility="public"
  41016. deprecated="not deprecated">
  41017. <doc>
  41018. <![CDATA[The date that Hadoop was compiled.
  41019. @return the compilation date in unix date format]]>
  41020. </doc>
  41021. </method>
  41022. <method name="getUser" return="java.lang.String"
  41023. abstract="false" native="false" synchronized="false"
  41024. static="true" final="false" visibility="public"
  41025. deprecated="not deprecated">
  41026. <doc>
  41027. <![CDATA[The user that compiled Hadoop.
  41028. @return the username of the user]]>
  41029. </doc>
  41030. </method>
  41031. <method name="getUrl" return="java.lang.String"
  41032. abstract="false" native="false" synchronized="false"
  41033. static="true" final="false" visibility="public"
  41034. deprecated="not deprecated">
  41035. <doc>
  41036. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  41037. </doc>
  41038. </method>
  41039. <method name="getSrcChecksum" return="java.lang.String"
  41040. abstract="false" native="false" synchronized="false"
  41041. static="true" final="false" visibility="public"
  41042. deprecated="not deprecated">
  41043. <doc>
  41044. <![CDATA[Get the checksum of the source files from which Hadoop was
  41045. built.]]>
  41046. </doc>
  41047. </method>
  41048. <method name="getBuildVersion" return="java.lang.String"
  41049. abstract="false" native="false" synchronized="false"
  41050. static="true" final="false" visibility="public"
  41051. deprecated="not deprecated">
  41052. <doc>
  41053. <![CDATA[Returns the buildVersion which includes version,
  41054. revision, user and date.]]>
  41055. </doc>
  41056. </method>
  41057. <method name="main"
  41058. abstract="false" native="false" synchronized="false"
  41059. static="true" final="false" visibility="public"
  41060. deprecated="not deprecated">
  41061. <param name="args" type="java.lang.String[]"/>
  41062. </method>
  41063. <doc>
  41064. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  41065. information.]]>
  41066. </doc>
  41067. </class>
  41068. <!-- end class org.apache.hadoop.util.VersionInfo -->
  41069. <!-- start class org.apache.hadoop.util.XMLUtils -->
  41070. <class name="XMLUtils" extends="java.lang.Object"
  41071. abstract="false"
  41072. static="false" final="false" visibility="public"
  41073. deprecated="not deprecated">
  41074. <constructor name="XMLUtils"
  41075. static="false" final="false" visibility="public"
  41076. deprecated="not deprecated">
  41077. </constructor>
  41078. <method name="transform"
  41079. abstract="false" native="false" synchronized="false"
  41080. static="true" final="false" visibility="public"
  41081. deprecated="not deprecated">
  41082. <param name="styleSheet" type="java.io.InputStream"/>
  41083. <param name="xml" type="java.io.InputStream"/>
  41084. <param name="out" type="java.io.Writer"/>
  41085. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  41086. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  41087. <doc>
  41088. <![CDATA[Transform input xml given a stylesheet.
  41089. @param styleSheet the style-sheet
  41090. @param xml input xml data
  41091. @param out output
  41092. @throws TransformerConfigurationException
  41093. @throws TransformerException]]>
  41094. </doc>
  41095. </method>
  41096. <doc>
  41097. <![CDATA[General xml utilities.]]>
  41098. </doc>
  41099. </class>
  41100. <!-- end class org.apache.hadoop.util.XMLUtils -->
  41101. </package>
  41102. <package name="org.apache.hadoop.util.bloom">
  41103. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  41104. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41105. abstract="false"
  41106. static="false" final="false" visibility="public"
  41107. deprecated="not deprecated">
  41108. <constructor name="BloomFilter"
  41109. static="false" final="false" visibility="public"
  41110. deprecated="not deprecated">
  41111. <doc>
  41112. <![CDATA[Default constructor - use with readFields]]>
  41113. </doc>
  41114. </constructor>
  41115. <constructor name="BloomFilter" type="int, int, int"
  41116. static="false" final="false" visibility="public"
  41117. deprecated="not deprecated">
  41118. <doc>
  41119. <![CDATA[Constructor
  41120. @param vectorSize The vector size of <i>this</i> filter.
  41121. @param nbHash The number of hash function to consider.
  41122. @param hashType type of the hashing function (see
  41123. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41124. </doc>
  41125. </constructor>
  41126. <method name="add"
  41127. abstract="false" native="false" synchronized="false"
  41128. static="false" final="false" visibility="public"
  41129. deprecated="not deprecated">
  41130. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41131. </method>
  41132. <method name="and"
  41133. abstract="false" native="false" synchronized="false"
  41134. static="false" final="false" visibility="public"
  41135. deprecated="not deprecated">
  41136. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41137. </method>
  41138. <method name="membershipTest" return="boolean"
  41139. abstract="false" native="false" synchronized="false"
  41140. static="false" final="false" visibility="public"
  41141. deprecated="not deprecated">
  41142. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41143. </method>
  41144. <method name="not"
  41145. abstract="false" native="false" synchronized="false"
  41146. static="false" final="false" visibility="public"
  41147. deprecated="not deprecated">
  41148. </method>
  41149. <method name="or"
  41150. abstract="false" native="false" synchronized="false"
  41151. static="false" final="false" visibility="public"
  41152. deprecated="not deprecated">
  41153. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41154. </method>
  41155. <method name="xor"
  41156. abstract="false" native="false" synchronized="false"
  41157. static="false" final="false" visibility="public"
  41158. deprecated="not deprecated">
  41159. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41160. </method>
  41161. <method name="toString" return="java.lang.String"
  41162. abstract="false" native="false" synchronized="false"
  41163. static="false" final="false" visibility="public"
  41164. deprecated="not deprecated">
  41165. </method>
  41166. <method name="getVectorSize" return="int"
  41167. abstract="false" native="false" synchronized="false"
  41168. static="false" final="false" visibility="public"
  41169. deprecated="not deprecated">
  41170. <doc>
  41171. <![CDATA[@return size of the the bloomfilter]]>
  41172. </doc>
  41173. </method>
  41174. <method name="write"
  41175. abstract="false" native="false" synchronized="false"
  41176. static="false" final="false" visibility="public"
  41177. deprecated="not deprecated">
  41178. <param name="out" type="java.io.DataOutput"/>
  41179. <exception name="IOException" type="java.io.IOException"/>
  41180. </method>
  41181. <method name="readFields"
  41182. abstract="false" native="false" synchronized="false"
  41183. static="false" final="false" visibility="public"
  41184. deprecated="not deprecated">
  41185. <param name="in" type="java.io.DataInput"/>
  41186. <exception name="IOException" type="java.io.IOException"/>
  41187. </method>
  41188. <doc>
  41189. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  41190. <p>
  41191. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  41192. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  41193. offers for the transmission of set membership information between networked hosts. A sender encodes
  41194. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  41195. representation. Computation and space costs for construction are linear in the number of elements.
  41196. The receiver uses the filter to test whether various elements are members of the set. Though the
  41197. filter will occasionally return a false positive, it will never return a false negative. When creating
  41198. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  41199. <p>
  41200. Originally created by
  41201. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41202. @see Filter The general behavior of a filter
  41203. @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>]]>
  41204. </doc>
  41205. </class>
  41206. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  41207. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41208. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41209. abstract="false"
  41210. static="false" final="true" visibility="public"
  41211. deprecated="not deprecated">
  41212. <constructor name="CountingBloomFilter"
  41213. static="false" final="false" visibility="public"
  41214. deprecated="not deprecated">
  41215. <doc>
  41216. <![CDATA[Default constructor - use with readFields]]>
  41217. </doc>
  41218. </constructor>
  41219. <constructor name="CountingBloomFilter" type="int, int, int"
  41220. static="false" final="false" visibility="public"
  41221. deprecated="not deprecated">
  41222. <doc>
  41223. <![CDATA[Constructor
  41224. @param vectorSize The vector size of <i>this</i> filter.
  41225. @param nbHash The number of hash function to consider.
  41226. @param hashType type of the hashing function (see
  41227. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41228. </doc>
  41229. </constructor>
  41230. <method name="add"
  41231. abstract="false" native="false" synchronized="false"
  41232. static="false" final="false" visibility="public"
  41233. deprecated="not deprecated">
  41234. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41235. </method>
  41236. <method name="delete"
  41237. abstract="false" native="false" synchronized="false"
  41238. static="false" final="false" visibility="public"
  41239. deprecated="not deprecated">
  41240. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41241. <doc>
  41242. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  41243. <p>
  41244. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  41245. @param key The key to remove.]]>
  41246. </doc>
  41247. </method>
  41248. <method name="and"
  41249. abstract="false" native="false" synchronized="false"
  41250. static="false" final="false" visibility="public"
  41251. deprecated="not deprecated">
  41252. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41253. </method>
  41254. <method name="membershipTest" return="boolean"
  41255. abstract="false" native="false" synchronized="false"
  41256. static="false" final="false" visibility="public"
  41257. deprecated="not deprecated">
  41258. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41259. </method>
  41260. <method name="approximateCount" return="int"
  41261. abstract="false" native="false" synchronized="false"
  41262. static="false" final="false" visibility="public"
  41263. deprecated="not deprecated">
  41264. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41265. <doc>
  41266. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  41267. times the key was added to the filter. This allows the filter to be
  41268. used as an approximate <code>key -&gt; count</code> map.
  41269. <p>NOTE: due to the bucket size of this filter, inserting the same
  41270. key more than 15 times will cause an overflow at all filter positions
  41271. associated with this key, and it will significantly increase the error
  41272. rate for this and other keys. For this reason the filter can only be
  41273. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  41274. @param key key to be tested
  41275. @return 0 if the key is not present. Otherwise, a positive value v will
  41276. be returned such that <code>v == count</code> with probability equal to the
  41277. error rate of this filter, and <code>v &gt; count</code> otherwise.
  41278. Additionally, if the filter experienced an underflow as a result of
  41279. {@link #delete(Key)} operation, the return value may be lower than the
  41280. <code>count</code> with the probability of the false negative rate of such
  41281. filter.]]>
  41282. </doc>
  41283. </method>
  41284. <method name="not"
  41285. abstract="false" native="false" synchronized="false"
  41286. static="false" final="false" visibility="public"
  41287. deprecated="not deprecated">
  41288. </method>
  41289. <method name="or"
  41290. abstract="false" native="false" synchronized="false"
  41291. static="false" final="false" visibility="public"
  41292. deprecated="not deprecated">
  41293. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41294. </method>
  41295. <method name="xor"
  41296. abstract="false" native="false" synchronized="false"
  41297. static="false" final="false" visibility="public"
  41298. deprecated="not deprecated">
  41299. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41300. </method>
  41301. <method name="toString" return="java.lang.String"
  41302. abstract="false" native="false" synchronized="false"
  41303. static="false" final="false" visibility="public"
  41304. deprecated="not deprecated">
  41305. </method>
  41306. <method name="write"
  41307. abstract="false" native="false" synchronized="false"
  41308. static="false" final="false" visibility="public"
  41309. deprecated="not deprecated">
  41310. <param name="out" type="java.io.DataOutput"/>
  41311. <exception name="IOException" type="java.io.IOException"/>
  41312. </method>
  41313. <method name="readFields"
  41314. abstract="false" native="false" synchronized="false"
  41315. static="false" final="false" visibility="public"
  41316. deprecated="not deprecated">
  41317. <param name="in" type="java.io.DataInput"/>
  41318. <exception name="IOException" type="java.io.IOException"/>
  41319. </method>
  41320. <doc>
  41321. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  41322. 2000 paper.
  41323. <p>
  41324. A counting Bloom filter is an improvement to standard a Bloom filter as it
  41325. allows dynamic additions and deletions of set membership information. This
  41326. is achieved through the use of a counting vector instead of a bit vector.
  41327. <p>
  41328. Originally created by
  41329. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41330. @see Filter The general behavior of a filter
  41331. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  41332. </doc>
  41333. </class>
  41334. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41335. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41336. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41337. abstract="false"
  41338. static="false" final="false" visibility="public"
  41339. deprecated="not deprecated">
  41340. <constructor name="DynamicBloomFilter"
  41341. static="false" final="false" visibility="public"
  41342. deprecated="not deprecated">
  41343. <doc>
  41344. <![CDATA[Zero-args constructor for the serialization.]]>
  41345. </doc>
  41346. </constructor>
  41347. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  41348. static="false" final="false" visibility="public"
  41349. deprecated="not deprecated">
  41350. <doc>
  41351. <![CDATA[Constructor.
  41352. <p>
  41353. Builds an empty Dynamic Bloom filter.
  41354. @param vectorSize The number of bits in the vector.
  41355. @param nbHash The number of hash function to consider.
  41356. @param hashType type of the hashing function (see
  41357. {@link org.apache.hadoop.util.hash.Hash}).
  41358. @param nr The threshold for the maximum number of keys to record in a
  41359. dynamic Bloom filter row.]]>
  41360. </doc>
  41361. </constructor>
  41362. <method name="add"
  41363. abstract="false" native="false" synchronized="false"
  41364. static="false" final="false" visibility="public"
  41365. deprecated="not deprecated">
  41366. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41367. </method>
  41368. <method name="and"
  41369. abstract="false" native="false" synchronized="false"
  41370. static="false" final="false" visibility="public"
  41371. deprecated="not deprecated">
  41372. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41373. </method>
  41374. <method name="membershipTest" return="boolean"
  41375. abstract="false" native="false" synchronized="false"
  41376. static="false" final="false" visibility="public"
  41377. deprecated="not deprecated">
  41378. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41379. </method>
  41380. <method name="not"
  41381. abstract="false" native="false" synchronized="false"
  41382. static="false" final="false" visibility="public"
  41383. deprecated="not deprecated">
  41384. </method>
  41385. <method name="or"
  41386. abstract="false" native="false" synchronized="false"
  41387. static="false" final="false" visibility="public"
  41388. deprecated="not deprecated">
  41389. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41390. </method>
  41391. <method name="xor"
  41392. abstract="false" native="false" synchronized="false"
  41393. static="false" final="false" visibility="public"
  41394. deprecated="not deprecated">
  41395. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41396. </method>
  41397. <method name="toString" return="java.lang.String"
  41398. abstract="false" native="false" synchronized="false"
  41399. static="false" final="false" visibility="public"
  41400. deprecated="not deprecated">
  41401. </method>
  41402. <method name="write"
  41403. abstract="false" native="false" synchronized="false"
  41404. static="false" final="false" visibility="public"
  41405. deprecated="not deprecated">
  41406. <param name="out" type="java.io.DataOutput"/>
  41407. <exception name="IOException" type="java.io.IOException"/>
  41408. </method>
  41409. <method name="readFields"
  41410. abstract="false" native="false" synchronized="false"
  41411. static="false" final="false" visibility="public"
  41412. deprecated="not deprecated">
  41413. <param name="in" type="java.io.DataInput"/>
  41414. <exception name="IOException" type="java.io.IOException"/>
  41415. </method>
  41416. <doc>
  41417. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  41418. <p>
  41419. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  41420. each of the <code>s</code> rows is a standard Bloom filter. The creation
  41421. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  41422. bit matrix, i.e., it is composed of a single standard Bloom filter.
  41423. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  41424. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  41425. the cardinality of the set <code>A</code> to record in the filter).
  41426. <p>
  41427. As the size of <code>A</code> grows during the execution of the application,
  41428. several keys must be inserted in the DBF. When inserting a key into the DBF,
  41429. one must first get an active Bloom filter in the matrix. A Bloom filter is
  41430. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  41431. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  41432. If an active Bloom filter is found, the key is inserted and
  41433. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  41434. is no active Bloom filter, a new one is created (i.e., a new row is added to
  41435. the matrix) according to the current size of <code>A</code> and the element
  41436. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  41437. this new Bloom filter is set to one. A given key is said to belong to the
  41438. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  41439. <p>
  41440. Originally created by
  41441. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41442. @see Filter The general behavior of a filter
  41443. @see BloomFilter A Bloom filter
  41444. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  41445. </doc>
  41446. </class>
  41447. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41448. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  41449. <class name="Filter" extends="java.lang.Object"
  41450. abstract="true"
  41451. static="false" final="false" visibility="public"
  41452. deprecated="not deprecated">
  41453. <implements name="org.apache.hadoop.io.Writable"/>
  41454. <constructor name="Filter"
  41455. static="false" final="false" visibility="protected"
  41456. deprecated="not deprecated">
  41457. </constructor>
  41458. <constructor name="Filter" type="int, int, int"
  41459. static="false" final="false" visibility="protected"
  41460. deprecated="not deprecated">
  41461. <doc>
  41462. <![CDATA[Constructor.
  41463. @param vectorSize The vector size of <i>this</i> filter.
  41464. @param nbHash The number of hash functions to consider.
  41465. @param hashType type of the hashing function (see {@link Hash}).]]>
  41466. </doc>
  41467. </constructor>
  41468. <method name="add"
  41469. abstract="true" native="false" synchronized="false"
  41470. static="false" final="false" visibility="public"
  41471. deprecated="not deprecated">
  41472. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41473. <doc>
  41474. <![CDATA[Adds a key to <i>this</i> filter.
  41475. @param key The key to add.]]>
  41476. </doc>
  41477. </method>
  41478. <method name="membershipTest" return="boolean"
  41479. abstract="true" native="false" synchronized="false"
  41480. static="false" final="false" visibility="public"
  41481. deprecated="not deprecated">
  41482. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41483. <doc>
  41484. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  41485. @param key The key to test.
  41486. @return boolean True if the specified key belongs to <i>this</i> filter.
  41487. False otherwise.]]>
  41488. </doc>
  41489. </method>
  41490. <method name="and"
  41491. abstract="true" native="false" synchronized="false"
  41492. static="false" final="false" visibility="public"
  41493. deprecated="not deprecated">
  41494. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41495. <doc>
  41496. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  41497. <p>
  41498. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41499. @param filter The filter to AND with.]]>
  41500. </doc>
  41501. </method>
  41502. <method name="or"
  41503. abstract="true" native="false" synchronized="false"
  41504. static="false" final="false" visibility="public"
  41505. deprecated="not deprecated">
  41506. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41507. <doc>
  41508. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  41509. <p>
  41510. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41511. @param filter The filter to OR with.]]>
  41512. </doc>
  41513. </method>
  41514. <method name="xor"
  41515. abstract="true" native="false" synchronized="false"
  41516. static="false" final="false" visibility="public"
  41517. deprecated="not deprecated">
  41518. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41519. <doc>
  41520. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  41521. <p>
  41522. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41523. @param filter The filter to XOR with.]]>
  41524. </doc>
  41525. </method>
  41526. <method name="not"
  41527. abstract="true" native="false" synchronized="false"
  41528. static="false" final="false" visibility="public"
  41529. deprecated="not deprecated">
  41530. <doc>
  41531. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  41532. <p>
  41533. The result is assigned to <i>this</i> filter.]]>
  41534. </doc>
  41535. </method>
  41536. <method name="add"
  41537. abstract="false" native="false" synchronized="false"
  41538. static="false" final="false" visibility="public"
  41539. deprecated="not deprecated">
  41540. <param name="keys" type="java.util.List"/>
  41541. <doc>
  41542. <![CDATA[Adds a list of keys to <i>this</i> filter.
  41543. @param keys The list of keys.]]>
  41544. </doc>
  41545. </method>
  41546. <method name="add"
  41547. abstract="false" native="false" synchronized="false"
  41548. static="false" final="false" visibility="public"
  41549. deprecated="not deprecated">
  41550. <param name="keys" type="java.util.Collection"/>
  41551. <doc>
  41552. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  41553. @param keys The collection of keys.]]>
  41554. </doc>
  41555. </method>
  41556. <method name="add"
  41557. abstract="false" native="false" synchronized="false"
  41558. static="false" final="false" visibility="public"
  41559. deprecated="not deprecated">
  41560. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  41561. <doc>
  41562. <![CDATA[Adds an array of keys to <i>this</i> filter.
  41563. @param keys The array of keys.]]>
  41564. </doc>
  41565. </method>
  41566. <method name="write"
  41567. abstract="false" native="false" synchronized="false"
  41568. static="false" final="false" visibility="public"
  41569. deprecated="not deprecated">
  41570. <param name="out" type="java.io.DataOutput"/>
  41571. <exception name="IOException" type="java.io.IOException"/>
  41572. </method>
  41573. <method name="readFields"
  41574. abstract="false" native="false" synchronized="false"
  41575. static="false" final="false" visibility="public"
  41576. deprecated="not deprecated">
  41577. <param name="in" type="java.io.DataInput"/>
  41578. <exception name="IOException" type="java.io.IOException"/>
  41579. </method>
  41580. <field name="vectorSize" type="int"
  41581. transient="false" volatile="false"
  41582. static="false" final="false" visibility="protected"
  41583. deprecated="not deprecated">
  41584. <doc>
  41585. <![CDATA[The vector size of <i>this</i> filter.]]>
  41586. </doc>
  41587. </field>
  41588. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  41589. transient="false" volatile="false"
  41590. static="false" final="false" visibility="protected"
  41591. deprecated="not deprecated">
  41592. <doc>
  41593. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  41594. </doc>
  41595. </field>
  41596. <field name="nbHash" type="int"
  41597. transient="false" volatile="false"
  41598. static="false" final="false" visibility="protected"
  41599. deprecated="not deprecated">
  41600. <doc>
  41601. <![CDATA[The number of hash function to consider.]]>
  41602. </doc>
  41603. </field>
  41604. <field name="hashType" type="int"
  41605. transient="false" volatile="false"
  41606. static="false" final="false" visibility="protected"
  41607. deprecated="not deprecated">
  41608. <doc>
  41609. <![CDATA[Type of hashing function to use.]]>
  41610. </doc>
  41611. </field>
  41612. <doc>
  41613. <![CDATA[Defines the general behavior of a filter.
  41614. <p>
  41615. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  41616. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  41617. in a vector through the use of several hash functions.
  41618. <p>
  41619. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  41620. <p>
  41621. It must be extended in order to define the real behavior.
  41622. @see Key The general behavior of a key
  41623. @see HashFunction A hash function]]>
  41624. </doc>
  41625. </class>
  41626. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  41627. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  41628. <class name="HashFunction" extends="java.lang.Object"
  41629. abstract="false"
  41630. static="false" final="true" visibility="public"
  41631. deprecated="not deprecated">
  41632. <constructor name="HashFunction" type="int, int, int"
  41633. static="false" final="false" visibility="public"
  41634. deprecated="not deprecated">
  41635. <doc>
  41636. <![CDATA[Constructor.
  41637. <p>
  41638. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  41639. @param maxValue The maximum highest returned value.
  41640. @param nbHash The number of resulting hashed values.
  41641. @param hashType type of the hashing function (see {@link Hash}).]]>
  41642. </doc>
  41643. </constructor>
  41644. <method name="clear"
  41645. abstract="false" native="false" synchronized="false"
  41646. static="false" final="false" visibility="public"
  41647. deprecated="not deprecated">
  41648. <doc>
  41649. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  41650. </doc>
  41651. </method>
  41652. <method name="hash" return="int[]"
  41653. abstract="false" native="false" synchronized="false"
  41654. static="false" final="false" visibility="public"
  41655. deprecated="not deprecated">
  41656. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  41657. <doc>
  41658. <![CDATA[Hashes a specified key into several integers.
  41659. @param k The specified key.
  41660. @return The array of hashed values.]]>
  41661. </doc>
  41662. </method>
  41663. <doc>
  41664. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  41665. @see Key The general behavior of a key being stored in a filter
  41666. @see Filter The general behavior of a filter]]>
  41667. </doc>
  41668. </class>
  41669. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  41670. <!-- start class org.apache.hadoop.util.bloom.Key -->
  41671. <class name="Key" extends="java.lang.Object"
  41672. abstract="false"
  41673. static="false" final="false" visibility="public"
  41674. deprecated="not deprecated">
  41675. <implements name="org.apache.hadoop.io.WritableComparable"/>
  41676. <constructor name="Key"
  41677. static="false" final="false" visibility="public"
  41678. deprecated="not deprecated">
  41679. <doc>
  41680. <![CDATA[default constructor - use with readFields]]>
  41681. </doc>
  41682. </constructor>
  41683. <constructor name="Key" type="byte[]"
  41684. static="false" final="false" visibility="public"
  41685. deprecated="not deprecated">
  41686. <doc>
  41687. <![CDATA[Constructor.
  41688. <p>
  41689. Builds a key with a default weight.
  41690. @param value The byte value of <i>this</i> key.]]>
  41691. </doc>
  41692. </constructor>
  41693. <constructor name="Key" type="byte[], double"
  41694. static="false" final="false" visibility="public"
  41695. deprecated="not deprecated">
  41696. <doc>
  41697. <![CDATA[Constructor.
  41698. <p>
  41699. Builds a key with a specified weight.
  41700. @param value The value of <i>this</i> key.
  41701. @param weight The weight associated to <i>this</i> key.]]>
  41702. </doc>
  41703. </constructor>
  41704. <method name="set"
  41705. abstract="false" native="false" synchronized="false"
  41706. static="false" final="false" visibility="public"
  41707. deprecated="not deprecated">
  41708. <param name="value" type="byte[]"/>
  41709. <param name="weight" type="double"/>
  41710. <doc>
  41711. <![CDATA[@param value
  41712. @param weight]]>
  41713. </doc>
  41714. </method>
  41715. <method name="getBytes" return="byte[]"
  41716. abstract="false" native="false" synchronized="false"
  41717. static="false" final="false" visibility="public"
  41718. deprecated="not deprecated">
  41719. <doc>
  41720. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  41721. </doc>
  41722. </method>
  41723. <method name="getWeight" return="double"
  41724. abstract="false" native="false" synchronized="false"
  41725. static="false" final="false" visibility="public"
  41726. deprecated="not deprecated">
  41727. <doc>
  41728. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  41729. </doc>
  41730. </method>
  41731. <method name="incrementWeight"
  41732. abstract="false" native="false" synchronized="false"
  41733. static="false" final="false" visibility="public"
  41734. deprecated="not deprecated">
  41735. <param name="weight" type="double"/>
  41736. <doc>
  41737. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  41738. @param weight The increment.]]>
  41739. </doc>
  41740. </method>
  41741. <method name="incrementWeight"
  41742. abstract="false" native="false" synchronized="false"
  41743. static="false" final="false" visibility="public"
  41744. deprecated="not deprecated">
  41745. <doc>
  41746. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  41747. </doc>
  41748. </method>
  41749. <method name="equals" return="boolean"
  41750. abstract="false" native="false" synchronized="false"
  41751. static="false" final="false" visibility="public"
  41752. deprecated="not deprecated">
  41753. <param name="o" type="java.lang.Object"/>
  41754. </method>
  41755. <method name="hashCode" return="int"
  41756. abstract="false" native="false" synchronized="false"
  41757. static="false" final="false" visibility="public"
  41758. deprecated="not deprecated">
  41759. </method>
  41760. <method name="write"
  41761. abstract="false" native="false" synchronized="false"
  41762. static="false" final="false" visibility="public"
  41763. deprecated="not deprecated">
  41764. <param name="out" type="java.io.DataOutput"/>
  41765. <exception name="IOException" type="java.io.IOException"/>
  41766. </method>
  41767. <method name="readFields"
  41768. abstract="false" native="false" synchronized="false"
  41769. static="false" final="false" visibility="public"
  41770. deprecated="not deprecated">
  41771. <param name="in" type="java.io.DataInput"/>
  41772. <exception name="IOException" type="java.io.IOException"/>
  41773. </method>
  41774. <method name="compareTo" return="int"
  41775. abstract="false" native="false" synchronized="false"
  41776. static="false" final="false" visibility="public"
  41777. deprecated="not deprecated">
  41778. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  41779. </method>
  41780. <doc>
  41781. <![CDATA[The general behavior of a key that must be stored in a filter.
  41782. @see Filter The general behavior of a filter]]>
  41783. </doc>
  41784. </class>
  41785. <!-- end class org.apache.hadoop.util.bloom.Key -->
  41786. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  41787. <interface name="RemoveScheme" abstract="true"
  41788. static="false" final="false" visibility="public"
  41789. deprecated="not deprecated">
  41790. <field name="RANDOM" type="short"
  41791. transient="false" volatile="false"
  41792. static="true" final="true" visibility="public"
  41793. deprecated="not deprecated">
  41794. <doc>
  41795. <![CDATA[Random selection.
  41796. <p>
  41797. The idea is to randomly select a bit to reset.]]>
  41798. </doc>
  41799. </field>
  41800. <field name="MINIMUM_FN" type="short"
  41801. transient="false" volatile="false"
  41802. static="true" final="true" visibility="public"
  41803. deprecated="not deprecated">
  41804. <doc>
  41805. <![CDATA[MinimumFN Selection.
  41806. <p>
  41807. The idea is to select the bit to reset that will generate the minimum
  41808. number of false negative.]]>
  41809. </doc>
  41810. </field>
  41811. <field name="MAXIMUM_FP" type="short"
  41812. transient="false" volatile="false"
  41813. static="true" final="true" visibility="public"
  41814. deprecated="not deprecated">
  41815. <doc>
  41816. <![CDATA[MaximumFP Selection.
  41817. <p>
  41818. The idea is to select the bit to reset that will remove the maximum number
  41819. of false positive.]]>
  41820. </doc>
  41821. </field>
  41822. <field name="RATIO" type="short"
  41823. transient="false" volatile="false"
  41824. static="true" final="true" visibility="public"
  41825. deprecated="not deprecated">
  41826. <doc>
  41827. <![CDATA[Ratio Selection.
  41828. <p>
  41829. The idea is to select the bit to reset that will, at the same time, remove
  41830. the maximum number of false positve while minimizing the amount of false
  41831. negative generated.]]>
  41832. </doc>
  41833. </field>
  41834. <doc>
  41835. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  41836. <p>
  41837. Originally created by
  41838. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  41839. </doc>
  41840. </interface>
  41841. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  41842. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  41843. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  41844. abstract="false"
  41845. static="false" final="true" visibility="public"
  41846. deprecated="not deprecated">
  41847. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  41848. <constructor name="RetouchedBloomFilter"
  41849. static="false" final="false" visibility="public"
  41850. deprecated="not deprecated">
  41851. <doc>
  41852. <![CDATA[Default constructor - use with readFields]]>
  41853. </doc>
  41854. </constructor>
  41855. <constructor name="RetouchedBloomFilter" type="int, int, int"
  41856. static="false" final="false" visibility="public"
  41857. deprecated="not deprecated">
  41858. <doc>
  41859. <![CDATA[Constructor
  41860. @param vectorSize The vector size of <i>this</i> filter.
  41861. @param nbHash The number of hash function to consider.
  41862. @param hashType type of the hashing function (see
  41863. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41864. </doc>
  41865. </constructor>
  41866. <method name="add"
  41867. abstract="false" native="false" synchronized="false"
  41868. static="false" final="false" visibility="public"
  41869. deprecated="not deprecated">
  41870. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41871. </method>
  41872. <method name="addFalsePositive"
  41873. abstract="false" native="false" synchronized="false"
  41874. static="false" final="false" visibility="public"
  41875. deprecated="not deprecated">
  41876. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41877. <doc>
  41878. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  41879. <p>
  41880. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  41881. @param key The false positive key to add.]]>
  41882. </doc>
  41883. </method>
  41884. <method name="addFalsePositive"
  41885. abstract="false" native="false" synchronized="false"
  41886. static="false" final="false" visibility="public"
  41887. deprecated="not deprecated">
  41888. <param name="coll" type="java.util.Collection"/>
  41889. <doc>
  41890. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  41891. @param coll The collection of false positive.]]>
  41892. </doc>
  41893. </method>
  41894. <method name="addFalsePositive"
  41895. abstract="false" native="false" synchronized="false"
  41896. static="false" final="false" visibility="public"
  41897. deprecated="not deprecated">
  41898. <param name="keys" type="java.util.List"/>
  41899. <doc>
  41900. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  41901. @param keys The list of false positive.]]>
  41902. </doc>
  41903. </method>
  41904. <method name="addFalsePositive"
  41905. abstract="false" native="false" synchronized="false"
  41906. static="false" final="false" visibility="public"
  41907. deprecated="not deprecated">
  41908. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  41909. <doc>
  41910. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  41911. @param keys The array of false positive.]]>
  41912. </doc>
  41913. </method>
  41914. <method name="selectiveClearing"
  41915. abstract="false" native="false" synchronized="false"
  41916. static="false" final="false" visibility="public"
  41917. deprecated="not deprecated">
  41918. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  41919. <param name="scheme" type="short"/>
  41920. <doc>
  41921. <![CDATA[Performs the selective clearing for a given key.
  41922. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  41923. @param scheme The selective clearing scheme to apply.]]>
  41924. </doc>
  41925. </method>
  41926. <method name="write"
  41927. abstract="false" native="false" synchronized="false"
  41928. static="false" final="false" visibility="public"
  41929. deprecated="not deprecated">
  41930. <param name="out" type="java.io.DataOutput"/>
  41931. <exception name="IOException" type="java.io.IOException"/>
  41932. </method>
  41933. <method name="readFields"
  41934. abstract="false" native="false" synchronized="false"
  41935. static="false" final="false" visibility="public"
  41936. deprecated="not deprecated">
  41937. <param name="in" type="java.io.DataInput"/>
  41938. <exception name="IOException" type="java.io.IOException"/>
  41939. </method>
  41940. <doc>
  41941. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  41942. <p>
  41943. It allows the removal of selected false positives at the cost of introducing
  41944. random false negatives, and with the benefit of eliminating some random false
  41945. positives at the same time.
  41946. <p>
  41947. Originally created by
  41948. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41949. @see Filter The general behavior of a filter
  41950. @see BloomFilter A Bloom filter
  41951. @see RemoveScheme The different selective clearing algorithms
  41952. @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>]]>
  41953. </doc>
  41954. </class>
  41955. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  41956. </package>
  41957. <package name="org.apache.hadoop.util.hash">
  41958. <!-- start class org.apache.hadoop.util.hash.Hash -->
  41959. <class name="Hash" extends="java.lang.Object"
  41960. abstract="true"
  41961. static="false" final="false" visibility="public"
  41962. deprecated="not deprecated">
  41963. <constructor name="Hash"
  41964. static="false" final="false" visibility="public"
  41965. deprecated="not deprecated">
  41966. </constructor>
  41967. <method name="parseHashType" return="int"
  41968. abstract="false" native="false" synchronized="false"
  41969. static="true" final="false" visibility="public"
  41970. deprecated="not deprecated">
  41971. <param name="name" type="java.lang.String"/>
  41972. <doc>
  41973. <![CDATA[This utility method converts String representation of hash function name
  41974. to a symbolic constant. Currently two function types are supported,
  41975. "jenkins" and "murmur".
  41976. @param name hash function name
  41977. @return one of the predefined constants]]>
  41978. </doc>
  41979. </method>
  41980. <method name="getHashType" return="int"
  41981. abstract="false" native="false" synchronized="false"
  41982. static="true" final="false" visibility="public"
  41983. deprecated="not deprecated">
  41984. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41985. <doc>
  41986. <![CDATA[This utility method converts the name of the configured
  41987. hash type to a symbolic constant.
  41988. @param conf configuration
  41989. @return one of the predefined constants]]>
  41990. </doc>
  41991. </method>
  41992. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  41993. abstract="false" native="false" synchronized="false"
  41994. static="true" final="false" visibility="public"
  41995. deprecated="not deprecated">
  41996. <param name="type" type="int"/>
  41997. <doc>
  41998. <![CDATA[Get a singleton instance of hash function of a given type.
  41999. @param type predefined hash type
  42000. @return hash function instance, or null if type is invalid]]>
  42001. </doc>
  42002. </method>
  42003. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42004. abstract="false" native="false" synchronized="false"
  42005. static="true" final="false" visibility="public"
  42006. deprecated="not deprecated">
  42007. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42008. <doc>
  42009. <![CDATA[Get a singleton instance of hash function of a type
  42010. defined in the configuration.
  42011. @param conf current configuration
  42012. @return defined hash type, or null if type is invalid]]>
  42013. </doc>
  42014. </method>
  42015. <method name="hash" return="int"
  42016. abstract="false" native="false" synchronized="false"
  42017. static="false" final="false" visibility="public"
  42018. deprecated="not deprecated">
  42019. <param name="bytes" type="byte[]"/>
  42020. <doc>
  42021. <![CDATA[Calculate a hash using all bytes from the input argument, and
  42022. a seed of -1.
  42023. @param bytes input bytes
  42024. @return hash value]]>
  42025. </doc>
  42026. </method>
  42027. <method name="hash" return="int"
  42028. abstract="false" native="false" synchronized="false"
  42029. static="false" final="false" visibility="public"
  42030. deprecated="not deprecated">
  42031. <param name="bytes" type="byte[]"/>
  42032. <param name="initval" type="int"/>
  42033. <doc>
  42034. <![CDATA[Calculate a hash using all bytes from the input argument,
  42035. and a provided seed value.
  42036. @param bytes input bytes
  42037. @param initval seed value
  42038. @return hash value]]>
  42039. </doc>
  42040. </method>
  42041. <method name="hash" return="int"
  42042. abstract="true" native="false" synchronized="false"
  42043. static="false" final="false" visibility="public"
  42044. deprecated="not deprecated">
  42045. <param name="bytes" type="byte[]"/>
  42046. <param name="length" type="int"/>
  42047. <param name="initval" type="int"/>
  42048. <doc>
  42049. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  42050. the provided seed value
  42051. @param bytes input bytes
  42052. @param length length of the valid bytes to consider
  42053. @param initval seed value
  42054. @return hash value]]>
  42055. </doc>
  42056. </method>
  42057. <field name="INVALID_HASH" type="int"
  42058. transient="false" volatile="false"
  42059. static="true" final="true" visibility="public"
  42060. deprecated="not deprecated">
  42061. <doc>
  42062. <![CDATA[Constant to denote invalid hash type.]]>
  42063. </doc>
  42064. </field>
  42065. <field name="JENKINS_HASH" type="int"
  42066. transient="false" volatile="false"
  42067. static="true" final="true" visibility="public"
  42068. deprecated="not deprecated">
  42069. <doc>
  42070. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  42071. </doc>
  42072. </field>
  42073. <field name="MURMUR_HASH" type="int"
  42074. transient="false" volatile="false"
  42075. static="true" final="true" visibility="public"
  42076. deprecated="not deprecated">
  42077. <doc>
  42078. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  42079. </doc>
  42080. </field>
  42081. <doc>
  42082. <![CDATA[This class represents a common API for hashing functions.]]>
  42083. </doc>
  42084. </class>
  42085. <!-- end class org.apache.hadoop.util.hash.Hash -->
  42086. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  42087. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  42088. abstract="false"
  42089. static="false" final="false" visibility="public"
  42090. deprecated="not deprecated">
  42091. <constructor name="JenkinsHash"
  42092. static="false" final="false" visibility="public"
  42093. deprecated="not deprecated">
  42094. </constructor>
  42095. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42096. abstract="false" native="false" synchronized="false"
  42097. static="true" final="false" visibility="public"
  42098. deprecated="not deprecated">
  42099. </method>
  42100. <method name="hash" return="int"
  42101. abstract="false" native="false" synchronized="false"
  42102. static="false" final="false" visibility="public"
  42103. deprecated="not deprecated">
  42104. <param name="key" type="byte[]"/>
  42105. <param name="nbytes" type="int"/>
  42106. <param name="initval" type="int"/>
  42107. <doc>
  42108. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  42109. @param key the key (the unaligned variable-length array of bytes)
  42110. @param nbytes number of bytes to include in hash
  42111. @param initval can be any integer value
  42112. @return a 32-bit value. Every bit of the key affects every bit of the
  42113. return value. Two keys differing by one or two bits will have totally
  42114. different hash values.
  42115. <p>The best hash table sizes are powers of 2. There is no need to do mod
  42116. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  42117. For example, if you need only 10 bits, do
  42118. <code>h = (h & hashmask(10));</code>
  42119. In which case, the hash table should have hashsize(10) elements.
  42120. <p>If you are hashing n strings byte[][] k, do it like this:
  42121. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  42122. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  42123. code any way you wish, private, educational, or commercial. It's free.
  42124. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  42125. acceptable. Do NOT use for cryptographic purposes.]]>
  42126. </doc>
  42127. </method>
  42128. <method name="main"
  42129. abstract="false" native="false" synchronized="false"
  42130. static="true" final="false" visibility="public"
  42131. deprecated="not deprecated">
  42132. <param name="args" type="java.lang.String[]"/>
  42133. <exception name="IOException" type="java.io.IOException"/>
  42134. <doc>
  42135. <![CDATA[Compute the hash of the specified file
  42136. @param args name of file to compute hash of.
  42137. @throws IOException]]>
  42138. </doc>
  42139. </method>
  42140. <doc>
  42141. <![CDATA[Produces 32-bit hash for hash table lookup.
  42142. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  42143. You can use this free for any purpose. It's in the public domain.
  42144. It has no warranty.
  42145. </pre>
  42146. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  42147. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  42148. function compares to others such as CRC, MD?, etc</a>
  42149. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  42150. Dr. Dobbs Article</a>]]>
  42151. </doc>
  42152. </class>
  42153. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  42154. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  42155. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  42156. abstract="false"
  42157. static="false" final="false" visibility="public"
  42158. deprecated="not deprecated">
  42159. <constructor name="MurmurHash"
  42160. static="false" final="false" visibility="public"
  42161. deprecated="not deprecated">
  42162. </constructor>
  42163. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42164. abstract="false" native="false" synchronized="false"
  42165. static="true" final="false" visibility="public"
  42166. deprecated="not deprecated">
  42167. </method>
  42168. <method name="hash" return="int"
  42169. abstract="false" native="false" synchronized="false"
  42170. static="false" final="false" visibility="public"
  42171. deprecated="not deprecated">
  42172. <param name="data" type="byte[]"/>
  42173. <param name="length" type="int"/>
  42174. <param name="seed" type="int"/>
  42175. </method>
  42176. <doc>
  42177. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  42178. lookup. See http://murmurhash.googlepages.com/ for more details.
  42179. <p>The C version of MurmurHash 2.0 found at that site was ported
  42180. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  42181. </doc>
  42182. </class>
  42183. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  42184. </package>
  42185. <package name="org.apache.hadoop.filecache">
  42186. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  42187. <class name="DistributedCache" extends="java.lang.Object"
  42188. abstract="false"
  42189. static="false" final="false" visibility="public"
  42190. deprecated="not deprecated">
  42191. <constructor name="DistributedCache"
  42192. static="false" final="false" visibility="public"
  42193. deprecated="not deprecated">
  42194. </constructor>
  42195. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  42196. abstract="false" native="false" synchronized="false"
  42197. static="true" final="false" visibility="public"
  42198. deprecated="not deprecated">
  42199. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42200. <param name="cache" type="java.net.URI"/>
  42201. <exception name="IOException" type="java.io.IOException"/>
  42202. <doc>
  42203. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  42204. MapReduce.
  42205. @param conf configuration
  42206. @param cache cache file
  42207. @return <code>FileStatus</code> of a given cache file on hdfs
  42208. @throws IOException]]>
  42209. </doc>
  42210. </method>
  42211. <method name="getTimestamp" return="long"
  42212. abstract="false" native="false" synchronized="false"
  42213. static="true" final="false" visibility="public"
  42214. deprecated="not deprecated">
  42215. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42216. <param name="cache" type="java.net.URI"/>
  42217. <exception name="IOException" type="java.io.IOException"/>
  42218. <doc>
  42219. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  42220. @param conf configuration
  42221. @param cache cache file
  42222. @return mtime of a given cache file on hdfs
  42223. @throws IOException]]>
  42224. </doc>
  42225. </method>
  42226. <method name="createAllSymlink"
  42227. abstract="false" native="false" synchronized="false"
  42228. static="true" final="false" visibility="public"
  42229. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  42230. instead.">
  42231. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42232. <param name="jobCacheDir" type="java.io.File"/>
  42233. <param name="workDir" type="java.io.File"/>
  42234. <exception name="IOException" type="java.io.IOException"/>
  42235. <doc>
  42236. <![CDATA[This method create symlinks for all files in a given dir in another directory
  42237. @param conf the configuration
  42238. @param jobCacheDir the target directory for creating symlinks
  42239. @param workDir the directory in which the symlinks are created
  42240. @throws IOException
  42241. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  42242. instead.]]>
  42243. </doc>
  42244. </method>
  42245. <method name="setCacheArchives"
  42246. abstract="false" native="false" synchronized="false"
  42247. static="true" final="false" visibility="public"
  42248. deprecated="not deprecated">
  42249. <param name="archives" type="java.net.URI[]"/>
  42250. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42251. <doc>
  42252. <![CDATA[Set the configuration with the given set of archives. Intended
  42253. to be used by user code.
  42254. @param archives The list of archives that need to be localized
  42255. @param conf Configuration which will be changed]]>
  42256. </doc>
  42257. </method>
  42258. <method name="setCacheFiles"
  42259. abstract="false" native="false" synchronized="false"
  42260. static="true" final="false" visibility="public"
  42261. deprecated="not deprecated">
  42262. <param name="files" type="java.net.URI[]"/>
  42263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42264. <doc>
  42265. <![CDATA[Set the configuration with the given set of files. Intended to be
  42266. used by user code.
  42267. @param files The list of files that need to be localized
  42268. @param conf Configuration which will be changed]]>
  42269. </doc>
  42270. </method>
  42271. <method name="getCacheArchives" return="java.net.URI[]"
  42272. abstract="false" native="false" synchronized="false"
  42273. static="true" final="false" visibility="public"
  42274. deprecated="not deprecated">
  42275. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42276. <exception name="IOException" type="java.io.IOException"/>
  42277. <doc>
  42278. <![CDATA[Get cache archives set in the Configuration. Used by
  42279. internal DistributedCache and MapReduce code.
  42280. @param conf The configuration which contains the archives
  42281. @return An array of the caches set in the Configuration
  42282. @throws IOException]]>
  42283. </doc>
  42284. </method>
  42285. <method name="getCacheFiles" return="java.net.URI[]"
  42286. abstract="false" native="false" synchronized="false"
  42287. static="true" final="false" visibility="public"
  42288. deprecated="not deprecated">
  42289. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42290. <exception name="IOException" type="java.io.IOException"/>
  42291. <doc>
  42292. <![CDATA[Get cache files set in the Configuration. Used by internal
  42293. DistributedCache and MapReduce code.
  42294. @param conf The configuration which contains the files
  42295. @return Am array of the files set in the Configuration
  42296. @throws IOException]]>
  42297. </doc>
  42298. </method>
  42299. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  42300. abstract="false" native="false" synchronized="false"
  42301. static="true" final="false" visibility="public"
  42302. deprecated="not deprecated">
  42303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42304. <exception name="IOException" type="java.io.IOException"/>
  42305. <doc>
  42306. <![CDATA[Return the path array of the localized caches. Intended to be used
  42307. by user code.
  42308. @param conf Configuration that contains the localized archives
  42309. @return A path array of localized caches
  42310. @throws IOException]]>
  42311. </doc>
  42312. </method>
  42313. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  42314. abstract="false" native="false" synchronized="false"
  42315. static="true" final="false" visibility="public"
  42316. deprecated="not deprecated">
  42317. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42318. <exception name="IOException" type="java.io.IOException"/>
  42319. <doc>
  42320. <![CDATA[Return the path array of the localized files. Intended to be used
  42321. by user code.
  42322. @param conf Configuration that contains the localized files
  42323. @return A path array of localized files
  42324. @throws IOException]]>
  42325. </doc>
  42326. </method>
  42327. <method name="getArchiveTimestamps" return="long[]"
  42328. abstract="false" native="false" synchronized="false"
  42329. static="true" final="false" visibility="public"
  42330. deprecated="not deprecated">
  42331. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42332. <doc>
  42333. <![CDATA[Get the timestamps of the archives. Used by internal
  42334. DistributedCache and MapReduce code.
  42335. @param conf The configuration which stored the timestamps
  42336. @return a long array of timestamps
  42337. @throws IOException]]>
  42338. </doc>
  42339. </method>
  42340. <method name="getFileTimestamps" return="long[]"
  42341. abstract="false" native="false" synchronized="false"
  42342. static="true" final="false" visibility="public"
  42343. deprecated="not deprecated">
  42344. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42345. <doc>
  42346. <![CDATA[Get the timestamps of the files. Used by internal
  42347. DistributedCache and MapReduce code.
  42348. @param conf The configuration which stored the timestamps
  42349. @return a long array of timestamps
  42350. @throws IOException]]>
  42351. </doc>
  42352. </method>
  42353. <method name="setArchiveTimestamps"
  42354. abstract="false" native="false" synchronized="false"
  42355. static="true" final="false" visibility="public"
  42356. deprecated="not deprecated">
  42357. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42358. <param name="timestamps" type="java.lang.String"/>
  42359. <doc>
  42360. <![CDATA[This is to check the timestamp of the archives to be localized.
  42361. Used by internal MapReduce code.
  42362. @param conf Configuration which stores the timestamp's
  42363. @param timestamps comma separated list of timestamps of archives.
  42364. The order should be the same as the order in which the archives are added.]]>
  42365. </doc>
  42366. </method>
  42367. <method name="setFileTimestamps"
  42368. abstract="false" native="false" synchronized="false"
  42369. static="true" final="false" visibility="public"
  42370. deprecated="not deprecated">
  42371. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42372. <param name="timestamps" type="java.lang.String"/>
  42373. <doc>
  42374. <![CDATA[This is to check the timestamp of the files to be localized.
  42375. Used by internal MapReduce code.
  42376. @param conf Configuration which stores the timestamp's
  42377. @param timestamps comma separated list of timestamps of files.
  42378. The order should be the same as the order in which the files are added.]]>
  42379. </doc>
  42380. </method>
  42381. <method name="setLocalArchives"
  42382. abstract="false" native="false" synchronized="false"
  42383. static="true" final="false" visibility="public"
  42384. deprecated="not deprecated">
  42385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42386. <param name="str" type="java.lang.String"/>
  42387. <doc>
  42388. <![CDATA[Set the conf to contain the location for localized archives. Used
  42389. by internal DistributedCache code.
  42390. @param conf The conf to modify to contain the localized caches
  42391. @param str a comma separated list of local archives]]>
  42392. </doc>
  42393. </method>
  42394. <method name="setLocalFiles"
  42395. abstract="false" native="false" synchronized="false"
  42396. static="true" final="false" visibility="public"
  42397. deprecated="not deprecated">
  42398. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42399. <param name="str" type="java.lang.String"/>
  42400. <doc>
  42401. <![CDATA[Set the conf to contain the location for localized files. Used
  42402. by internal DistributedCache code.
  42403. @param conf The conf to modify to contain the localized caches
  42404. @param str a comma separated list of local files]]>
  42405. </doc>
  42406. </method>
  42407. <method name="addLocalArchives"
  42408. abstract="false" native="false" synchronized="false"
  42409. static="true" final="false" visibility="public"
  42410. deprecated="not deprecated">
  42411. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42412. <param name="str" type="java.lang.String"/>
  42413. <doc>
  42414. <![CDATA[Add a archive that has been localized to the conf. Used
  42415. by internal DistributedCache code.
  42416. @param conf The conf to modify to contain the localized caches
  42417. @param str a comma separated list of local archives]]>
  42418. </doc>
  42419. </method>
  42420. <method name="addLocalFiles"
  42421. abstract="false" native="false" synchronized="false"
  42422. static="true" final="false" visibility="public"
  42423. deprecated="not deprecated">
  42424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42425. <param name="str" type="java.lang.String"/>
  42426. <doc>
  42427. <![CDATA[Add a file that has been localized to the conf.. Used
  42428. by internal DistributedCache code.
  42429. @param conf The conf to modify to contain the localized caches
  42430. @param str a comma separated list of local files]]>
  42431. </doc>
  42432. </method>
  42433. <method name="addCacheArchive"
  42434. abstract="false" native="false" synchronized="false"
  42435. static="true" final="false" visibility="public"
  42436. deprecated="not deprecated">
  42437. <param name="uri" type="java.net.URI"/>
  42438. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42439. <doc>
  42440. <![CDATA[Add a archives to be localized to the conf. Intended to
  42441. be used by user code.
  42442. @param uri The uri of the cache to be localized
  42443. @param conf Configuration to add the cache to]]>
  42444. </doc>
  42445. </method>
  42446. <method name="addCacheFile"
  42447. abstract="false" native="false" synchronized="false"
  42448. static="true" final="false" visibility="public"
  42449. deprecated="not deprecated">
  42450. <param name="uri" type="java.net.URI"/>
  42451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42452. <doc>
  42453. <![CDATA[Add a file to be localized to the conf. Intended
  42454. to be used by user code.
  42455. @param uri The uri of the cache to be localized
  42456. @param conf Configuration to add the cache to]]>
  42457. </doc>
  42458. </method>
  42459. <method name="addFileToClassPath"
  42460. abstract="false" native="false" synchronized="false"
  42461. static="true" final="false" visibility="public"
  42462. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  42463. instead. The {@code FileSystem} should be obtained within an
  42464. appropriate {@code doAs}.">
  42465. <param name="file" type="org.apache.hadoop.fs.Path"/>
  42466. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42467. <exception name="IOException" type="java.io.IOException"/>
  42468. <doc>
  42469. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  42470. to cache as well. Intended to be used by user code.
  42471. @deprecated
  42472. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  42473. instead. The {@code FileSystem} should be obtained within an
  42474. appropriate {@code doAs}.
  42475. @param file Path of the file to be added
  42476. @param conf Configuration that contains the classpath setting]]>
  42477. </doc>
  42478. </method>
  42479. <method name="addFileToClassPath"
  42480. abstract="false" native="false" synchronized="false"
  42481. static="true" final="false" visibility="public"
  42482. deprecated="not deprecated">
  42483. <param name="file" type="org.apache.hadoop.fs.Path"/>
  42484. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42485. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  42486. <exception name="IOException" type="java.io.IOException"/>
  42487. <doc>
  42488. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  42489. to cache as well. Intended to be used by user code.
  42490. @param file Path of the file to be added
  42491. @param conf Configuration that contains the classpath setting
  42492. @param fs FileSystem with respect to which {@code archivefile} should
  42493. be interpreted.]]>
  42494. </doc>
  42495. </method>
  42496. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  42497. abstract="false" native="false" synchronized="false"
  42498. static="true" final="false" visibility="public"
  42499. deprecated="not deprecated">
  42500. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42501. <doc>
  42502. <![CDATA[Get the file entries in classpath as an array of Path.
  42503. Used by internal DistributedCache code.
  42504. @param conf Configuration that contains the classpath setting]]>
  42505. </doc>
  42506. </method>
  42507. <method name="addArchiveToClassPath"
  42508. abstract="false" native="false" synchronized="false"
  42509. static="true" final="false" visibility="public"
  42510. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  42511. instead. The {@code FileSystem} should be obtained within an
  42512. appropriate {@code doAs}.">
  42513. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  42514. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42515. <exception name="IOException" type="java.io.IOException"/>
  42516. <doc>
  42517. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  42518. archive to cache as well. Intended to be used by user code.
  42519. @deprecated
  42520. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  42521. instead. The {@code FileSystem} should be obtained within an
  42522. appropriate {@code doAs}.
  42523. @param archive Path of the archive to be added
  42524. @param conf Configuration that contains the classpath setting]]>
  42525. </doc>
  42526. </method>
  42527. <method name="addArchiveToClassPath"
  42528. abstract="false" native="false" synchronized="false"
  42529. static="true" final="false" visibility="public"
  42530. deprecated="not deprecated">
  42531. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  42532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42533. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  42534. <exception name="IOException" type="java.io.IOException"/>
  42535. <doc>
  42536. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  42537. archive to cache as well. Intended to be used by user code.
  42538. @param archive Path of the archive to be added
  42539. @param conf Configuration that contains the classpath setting
  42540. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  42541. </doc>
  42542. </method>
  42543. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  42544. abstract="false" native="false" synchronized="false"
  42545. static="true" final="false" visibility="public"
  42546. deprecated="not deprecated">
  42547. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42548. <doc>
  42549. <![CDATA[Get the archive entries in classpath as an array of Path.
  42550. Used by internal DistributedCache code.
  42551. @param conf Configuration that contains the classpath setting]]>
  42552. </doc>
  42553. </method>
  42554. <method name="createSymlink"
  42555. abstract="false" native="false" synchronized="false"
  42556. static="true" final="false" visibility="public"
  42557. deprecated="not deprecated">
  42558. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42559. <doc>
  42560. <![CDATA[This method allows you to create symlinks in the current working directory
  42561. of the task to all the cache files/archives.
  42562. Intended to be used by user code.
  42563. @param conf the jobconf]]>
  42564. </doc>
  42565. </method>
  42566. <method name="getSymlink" return="boolean"
  42567. abstract="false" native="false" synchronized="false"
  42568. static="true" final="false" visibility="public"
  42569. deprecated="not deprecated">
  42570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42571. <doc>
  42572. <![CDATA[This method checks to see if symlinks are to be create for the
  42573. localized cache files in the current working directory
  42574. Used by internal DistributedCache code.
  42575. @param conf the jobconf
  42576. @return true if symlinks are to be created- else return false]]>
  42577. </doc>
  42578. </method>
  42579. <method name="checkURIs" return="boolean"
  42580. abstract="false" native="false" synchronized="false"
  42581. static="true" final="false" visibility="public"
  42582. deprecated="not deprecated">
  42583. <param name="uriFiles" type="java.net.URI[]"/>
  42584. <param name="uriArchives" type="java.net.URI[]"/>
  42585. <doc>
  42586. <![CDATA[This method checks if there is a conflict in the fragment names
  42587. of the uris. Also makes sure that each uri has a fragment. It
  42588. is only to be called if you want to create symlinks for
  42589. the various archives and files. May be used by user code.
  42590. @param uriFiles The uri array of urifiles
  42591. @param uriArchives the uri array of uri archives]]>
  42592. </doc>
  42593. </method>
  42594. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  42595. transient="false" volatile="false"
  42596. static="true" final="true" visibility="public"
  42597. deprecated="not deprecated">
  42598. <doc>
  42599. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  42600. </doc>
  42601. </field>
  42602. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  42603. transient="false" volatile="false"
  42604. static="true" final="true" visibility="public"
  42605. deprecated="not deprecated">
  42606. <doc>
  42607. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  42608. </doc>
  42609. </field>
  42610. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  42611. transient="false" volatile="false"
  42612. static="true" final="true" visibility="public"
  42613. deprecated="not deprecated">
  42614. <doc>
  42615. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  42616. </doc>
  42617. </field>
  42618. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  42619. transient="false" volatile="false"
  42620. static="true" final="true" visibility="public"
  42621. deprecated="not deprecated">
  42622. <doc>
  42623. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  42624. </doc>
  42625. </field>
  42626. <field name="CACHE_ARCHIVES" type="java.lang.String"
  42627. transient="false" volatile="false"
  42628. static="true" final="true" visibility="public"
  42629. deprecated="not deprecated">
  42630. <doc>
  42631. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  42632. </doc>
  42633. </field>
  42634. <field name="CACHE_FILES" type="java.lang.String"
  42635. transient="false" volatile="false"
  42636. static="true" final="true" visibility="public"
  42637. deprecated="not deprecated">
  42638. <doc>
  42639. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  42640. </doc>
  42641. </field>
  42642. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  42643. transient="false" volatile="false"
  42644. static="true" final="true" visibility="public"
  42645. deprecated="not deprecated">
  42646. <doc>
  42647. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  42648. </doc>
  42649. </field>
  42650. <field name="CACHE_LOCALFILES" type="java.lang.String"
  42651. transient="false" volatile="false"
  42652. static="true" final="true" visibility="public"
  42653. deprecated="not deprecated">
  42654. <doc>
  42655. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  42656. </doc>
  42657. </field>
  42658. <field name="CACHE_SYMLINK" type="java.lang.String"
  42659. transient="false" volatile="false"
  42660. static="true" final="true" visibility="public"
  42661. deprecated="not deprecated">
  42662. <doc>
  42663. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  42664. </doc>
  42665. </field>
  42666. <doc>
  42667. <![CDATA[Distribute application-specific large, read-only files efficiently.
  42668. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  42669. framework to cache files (text, archives, jars etc.) needed by applications.
  42670. </p>
  42671. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  42672. via the {@link org.apache.hadoop.mapred.JobConf}.
  42673. The <code>DistributedCache</code> assumes that the
  42674. files specified via hdfs:// urls are already present on the
  42675. {@link FileSystem} at the path specified by the url.</p>
  42676. <p>The framework will copy the necessary files on to the slave node before
  42677. any tasks for the job are executed on that node. Its efficiency stems from
  42678. the fact that the files are only copied once per job and the ability to
  42679. cache archives which are un-archived on the slaves.</p>
  42680. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  42681. data/text files and/or more complex types such as archives, jars etc.
  42682. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  42683. Jars may be optionally added to the classpath of the tasks, a rudimentary
  42684. software distribution mechanism. Files have execution permissions.
  42685. Optionally users can also direct it to symlink the distributed cache file(s)
  42686. into the working directory of the task.</p>
  42687. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  42688. files. Clearly the cache files should not be modified by the application
  42689. or externally while the job is executing.</p>
  42690. <p>Here is an illustrative example on how to use the
  42691. <code>DistributedCache</code>:</p>
  42692. <p><blockquote><pre>
  42693. // Setting up the cache for the application
  42694. 1. Copy the requisite files to the <code>FileSystem</code>:
  42695. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  42696. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  42697. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  42698. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  42699. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  42700. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  42701. 2. Setup the application's <code>JobConf</code>:
  42702. JobConf job = new JobConf();
  42703. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  42704. job);
  42705. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  42706. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  42707. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  42708. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  42709. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  42710. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  42711. or {@link org.apache.hadoop.mapred.Reducer}:
  42712. public static class MapClass extends MapReduceBase
  42713. implements Mapper&lt;K, V, K, V&gt; {
  42714. private Path[] localArchives;
  42715. private Path[] localFiles;
  42716. public void configure(JobConf job) {
  42717. // Get the cached archives/files
  42718. localArchives = DistributedCache.getLocalCacheArchives(job);
  42719. localFiles = DistributedCache.getLocalCacheFiles(job);
  42720. }
  42721. public void map(K key, V value,
  42722. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  42723. throws IOException {
  42724. // Use data from the cached archives/files here
  42725. // ...
  42726. // ...
  42727. output.collect(k, v);
  42728. }
  42729. }
  42730. </pre></blockquote></p>
  42731. It is also very common to use the DistributedCache by using
  42732. {@link org.apache.hadoop.util.GenericOptionsParser}.
  42733. This class includes methods that should be used by users
  42734. (specifically those mentioned in the example above, as well
  42735. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  42736. as well as methods intended for use by the MapReduce framework
  42737. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  42738. details, see {@link TrackerDistributedCacheManager} and
  42739. {@link TaskDistributedCacheManager}.
  42740. @see TrackerDistributedCacheManager
  42741. @see TaskDistributedCacheManager
  42742. @see org.apache.hadoop.mapred.JobConf
  42743. @see org.apache.hadoop.mapred.JobClient]]>
  42744. </doc>
  42745. </class>
  42746. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  42747. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  42748. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  42749. abstract="false"
  42750. static="false" final="false" visibility="public"
  42751. deprecated="not deprecated">
  42752. <method name="setupCache"
  42753. abstract="false" native="false" synchronized="false"
  42754. static="false" final="false" visibility="public"
  42755. deprecated="not deprecated">
  42756. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  42757. <param name="publicCacheSubdir" type="java.lang.String"/>
  42758. <param name="privateCacheSubdir" type="java.lang.String"/>
  42759. <exception name="IOException" type="java.io.IOException"/>
  42760. <doc>
  42761. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  42762. the task configuration (which has been passed in via the constructor).
  42763. The private distributed cache is just looked at and the paths where the
  42764. files/archives should go to is decided here. The actual localization is
  42765. done by {@link JobLocalizer}.
  42766. It is the caller's responsibility to re-write the task configuration XML
  42767. file, if necessary.]]>
  42768. </doc>
  42769. </method>
  42770. <method name="getClassPaths" return="java.util.List"
  42771. abstract="false" native="false" synchronized="false"
  42772. static="false" final="false" visibility="public"
  42773. deprecated="not deprecated">
  42774. <exception name="IOException" type="java.io.IOException"/>
  42775. <doc>
  42776. <![CDATA[Retrieves class paths (as local references) to add.
  42777. Should be called after setup().]]>
  42778. </doc>
  42779. </method>
  42780. <method name="release"
  42781. abstract="false" native="false" synchronized="false"
  42782. static="false" final="false" visibility="public"
  42783. deprecated="not deprecated">
  42784. <exception name="IOException" type="java.io.IOException"/>
  42785. <doc>
  42786. <![CDATA[Releases the cached files/archives, so that space
  42787. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  42788. </doc>
  42789. </method>
  42790. <method name="setSizes"
  42791. abstract="false" native="false" synchronized="false"
  42792. static="false" final="false" visibility="public"
  42793. deprecated="not deprecated">
  42794. <param name="sizes" type="long[]"/>
  42795. <exception name="IOException" type="java.io.IOException"/>
  42796. </method>
  42797. <method name="makeClassLoader" return="java.lang.ClassLoader"
  42798. abstract="false" native="false" synchronized="false"
  42799. static="false" final="false" visibility="public"
  42800. deprecated="not deprecated">
  42801. <param name="parent" type="java.lang.ClassLoader"/>
  42802. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  42803. <doc>
  42804. <![CDATA[Creates a class loader that includes the designated
  42805. files and archives.]]>
  42806. </doc>
  42807. </method>
  42808. <doc>
  42809. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  42810. the cached files of a single job.
  42811. <b>This class is internal to Hadoop, and should not be treated as a public
  42812. interface.</b>]]>
  42813. </doc>
  42814. </class>
  42815. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  42816. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  42817. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  42818. abstract="false"
  42819. static="false" final="false" visibility="public"
  42820. deprecated="not deprecated">
  42821. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  42822. static="false" final="false" visibility="public"
  42823. deprecated="not deprecated">
  42824. <exception name="IOException" type="java.io.IOException"/>
  42825. </constructor>
  42826. <method name="downloadCacheObject" return="long"
  42827. abstract="false" native="false" synchronized="false"
  42828. static="true" final="false" visibility="public"
  42829. deprecated="not deprecated">
  42830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42831. <param name="source" type="java.net.URI"/>
  42832. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  42833. <param name="desiredTimestamp" type="long"/>
  42834. <param name="isArchive" type="boolean"/>
  42835. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  42836. <exception name="IOException" type="java.io.IOException"/>
  42837. <doc>
  42838. <![CDATA[Download a given path to the local file system.
  42839. @param conf the job's configuration
  42840. @param source the source to copy from
  42841. @param destination where to copy the file. must be local fs
  42842. @param desiredTimestamp the required modification timestamp of the source
  42843. @param isArchive is this an archive that should be expanded
  42844. @param permission the desired permissions of the file.
  42845. @return for archives, the number of bytes in the unpacked directory
  42846. @throws IOException]]>
  42847. </doc>
  42848. </method>
  42849. <method name="createAllSymlink"
  42850. abstract="false" native="false" synchronized="false"
  42851. static="true" final="false" visibility="public"
  42852. deprecated="not deprecated">
  42853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42854. <param name="jobCacheDir" type="java.io.File"/>
  42855. <param name="workDir" type="java.io.File"/>
  42856. <exception name="IOException" type="java.io.IOException"/>
  42857. <doc>
  42858. <![CDATA[This method create symlinks for all files in a given dir in another
  42859. directory.
  42860. Should not be used outside of DistributedCache code.
  42861. @param conf the configuration
  42862. @param jobCacheDir the target directory for creating symlinks
  42863. @param workDir the directory in which the symlinks are created
  42864. @throws IOException]]>
  42865. </doc>
  42866. </method>
  42867. <method name="purgeCache"
  42868. abstract="false" native="false" synchronized="false"
  42869. static="false" final="false" visibility="public"
  42870. deprecated="not deprecated">
  42871. <doc>
  42872. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  42873. should only be used when the server is reinitializing, because the users
  42874. are going to lose their files.]]>
  42875. </doc>
  42876. </method>
  42877. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  42878. abstract="false" native="false" synchronized="false"
  42879. static="false" final="false" visibility="public"
  42880. deprecated="not deprecated">
  42881. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42882. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  42883. <exception name="IOException" type="java.io.IOException"/>
  42884. </method>
  42885. <method name="setArchiveSizes"
  42886. abstract="false" native="false" synchronized="false"
  42887. static="false" final="false" visibility="public"
  42888. deprecated="not deprecated">
  42889. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42890. <param name="sizes" type="long[]"/>
  42891. <exception name="IOException" type="java.io.IOException"/>
  42892. </method>
  42893. <method name="removeTaskDistributedCacheManager"
  42894. abstract="false" native="false" synchronized="false"
  42895. static="false" final="false" visibility="public"
  42896. deprecated="not deprecated">
  42897. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42898. </method>
  42899. <method name="getTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  42900. abstract="false" native="false" synchronized="false"
  42901. static="false" final="false" visibility="protected"
  42902. deprecated="not deprecated">
  42903. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42904. </method>
  42905. <method name="determineTimestamps"
  42906. abstract="false" native="false" synchronized="false"
  42907. static="true" final="false" visibility="public"
  42908. deprecated="not deprecated">
  42909. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42910. <exception name="IOException" type="java.io.IOException"/>
  42911. <doc>
  42912. <![CDATA[Determines timestamps of files to be cached, and stores those
  42913. in the configuration. This is intended to be used internally by JobClient
  42914. after all cache files have been added.
  42915. This is an internal method!
  42916. @param job Configuration of a job.
  42917. @throws IOException]]>
  42918. </doc>
  42919. </method>
  42920. <method name="determineCacheVisibilities"
  42921. abstract="false" native="false" synchronized="false"
  42922. static="true" final="false" visibility="public"
  42923. deprecated="not deprecated">
  42924. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42925. <exception name="IOException" type="java.io.IOException"/>
  42926. <doc>
  42927. <![CDATA[Determines the visibilities of the distributed cache files and
  42928. archives. The visibility of a cache path is "public" if the leaf component
  42929. has READ permissions for others, and the parent subdirs have
  42930. EXECUTE permissions for others
  42931. @param job
  42932. @throws IOException]]>
  42933. </doc>
  42934. </method>
  42935. <method name="getFileVisibilities" return="boolean[]"
  42936. abstract="false" native="false" synchronized="false"
  42937. static="true" final="false" visibility="public"
  42938. deprecated="not deprecated">
  42939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42940. <doc>
  42941. <![CDATA[Get the booleans on whether the files are public or not. Used by
  42942. internal DistributedCache and MapReduce code.
  42943. @param conf The configuration which stored the timestamps
  42944. @return array of booleans
  42945. @throws IOException]]>
  42946. </doc>
  42947. </method>
  42948. <method name="getArchiveVisibilities" return="boolean[]"
  42949. abstract="false" native="false" synchronized="false"
  42950. static="true" final="false" visibility="public"
  42951. deprecated="not deprecated">
  42952. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42953. <doc>
  42954. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  42955. internal DistributedCache and MapReduce code.
  42956. @param conf The configuration which stored the timestamps
  42957. @return array of booleans]]>
  42958. </doc>
  42959. </method>
  42960. <method name="getDelegationTokens"
  42961. abstract="false" native="false" synchronized="false"
  42962. static="true" final="false" visibility="public"
  42963. deprecated="not deprecated">
  42964. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42965. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  42966. <exception name="IOException" type="java.io.IOException"/>
  42967. <doc>
  42968. <![CDATA[For each archive or cache file - get the corresponding delegation token
  42969. @param job
  42970. @param credentials
  42971. @throws IOException]]>
  42972. </doc>
  42973. </method>
  42974. <method name="validate"
  42975. abstract="false" native="false" synchronized="false"
  42976. static="true" final="false" visibility="public"
  42977. deprecated="not deprecated">
  42978. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42979. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  42980. <doc>
  42981. <![CDATA[This is part of the framework API. It's called within the job
  42982. submission code only, not by users. In the non-error case it has
  42983. no side effects and returns normally. If there's a URI in both
  42984. mapred.cache.files and mapred.cache.archives, it throws its
  42985. exception.
  42986. @param conf a {@link Configuration} to be cheked for duplication
  42987. in cached URIs
  42988. @throws InvalidJobConfException]]>
  42989. </doc>
  42990. </method>
  42991. <method name="startCleanupThread"
  42992. abstract="false" native="false" synchronized="false"
  42993. static="false" final="false" visibility="public"
  42994. deprecated="not deprecated">
  42995. <doc>
  42996. <![CDATA[Start the background thread]]>
  42997. </doc>
  42998. </method>
  42999. <method name="stopCleanupThread"
  43000. abstract="false" native="false" synchronized="false"
  43001. static="false" final="false" visibility="public"
  43002. deprecated="not deprecated">
  43003. <doc>
  43004. <![CDATA[Stop the background thread]]>
  43005. </doc>
  43006. </method>
  43007. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  43008. transient="false" volatile="false"
  43009. static="false" final="false" visibility="protected"
  43010. deprecated="not deprecated">
  43011. </field>
  43012. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  43013. transient="false" volatile="false"
  43014. static="false" final="false" visibility="protected"
  43015. deprecated="not deprecated">
  43016. </field>
  43017. <doc>
  43018. <![CDATA[Manages a single machine's instance of a cross-job
  43019. cache. This class would typically be instantiated
  43020. by a TaskTracker (or something that emulates it,
  43021. like LocalJobRunner).
  43022. <b>This class is internal to Hadoop, and should not be treated as a public
  43023. interface.</b>]]>
  43024. </doc>
  43025. </class>
  43026. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  43027. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  43028. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  43029. abstract="false"
  43030. static="false" final="false" visibility="protected"
  43031. deprecated="not deprecated">
  43032. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  43033. static="false" final="false" visibility="protected"
  43034. deprecated="not deprecated">
  43035. </constructor>
  43036. <method name="deleteCacheInfoUpdate"
  43037. abstract="false" native="false" synchronized="false"
  43038. static="false" final="false" visibility="public"
  43039. deprecated="not deprecated">
  43040. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  43041. <doc>
  43042. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  43043. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  43044. @param cacheStatus cache status of the cache is deleted]]>
  43045. </doc>
  43046. </method>
  43047. <method name="addCacheInfoUpdate"
  43048. abstract="false" native="false" synchronized="false"
  43049. static="false" final="false" visibility="public"
  43050. deprecated="not deprecated">
  43051. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  43052. <doc>
  43053. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  43054. Increase the size and sub directory count of the cache from baseDirSize
  43055. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  43056. @param cacheStatus cache status of the cache is added]]>
  43057. </doc>
  43058. </method>
  43059. <doc>
  43060. <![CDATA[This class holds properties of each base directories and is responsible
  43061. for clean up unused cache files in base directories.]]>
  43062. </doc>
  43063. </class>
  43064. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  43065. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  43066. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  43067. abstract="false"
  43068. static="false" final="false" visibility="protected"
  43069. deprecated="not deprecated">
  43070. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  43071. static="false" final="false" visibility="public"
  43072. deprecated="not deprecated">
  43073. </constructor>
  43074. <method name="stopRunning"
  43075. abstract="false" native="false" synchronized="false"
  43076. static="false" final="false" visibility="public"
  43077. deprecated="not deprecated">
  43078. </method>
  43079. <method name="run"
  43080. abstract="false" native="false" synchronized="false"
  43081. static="false" final="false" visibility="public"
  43082. deprecated="not deprecated">
  43083. </method>
  43084. <method name="exitTaskTracker"
  43085. abstract="false" native="false" synchronized="false"
  43086. static="false" final="false" visibility="protected"
  43087. deprecated="not deprecated">
  43088. <param name="t" type="java.lang.Throwable"/>
  43089. <doc>
  43090. <![CDATA[Exit the task tracker because of a fatal error.]]>
  43091. </doc>
  43092. </method>
  43093. <doc>
  43094. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  43095. </doc>
  43096. </class>
  43097. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  43098. </package>
  43099. <package name="org.apache.hadoop.mapred">
  43100. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  43101. <interface name="AdminOperationsProtocol" abstract="true"
  43102. static="false" final="false" visibility="public"
  43103. deprecated="not deprecated">
  43104. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  43105. <method name="refreshQueues"
  43106. abstract="false" native="false" synchronized="false"
  43107. static="false" final="false" visibility="public"
  43108. deprecated="not deprecated">
  43109. <exception name="IOException" type="java.io.IOException"/>
  43110. <doc>
  43111. <![CDATA[Refresh the queue acls in use currently.
  43112. Refresh the queues used by the jobtracker and scheduler.
  43113. Access control lists and queue states are refreshed.]]>
  43114. </doc>
  43115. </method>
  43116. <method name="refreshNodes"
  43117. abstract="false" native="false" synchronized="false"
  43118. static="false" final="false" visibility="public"
  43119. deprecated="not deprecated">
  43120. <exception name="IOException" type="java.io.IOException"/>
  43121. <doc>
  43122. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  43123. </doc>
  43124. </method>
  43125. <field name="versionID" type="long"
  43126. transient="false" volatile="false"
  43127. static="true" final="true" visibility="public"
  43128. deprecated="not deprecated">
  43129. <doc>
  43130. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  43131. Version 2: Added node refresh facility
  43132. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  43133. </doc>
  43134. </field>
  43135. <doc>
  43136. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  43137. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  43138. </doc>
  43139. </interface>
  43140. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  43141. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  43142. <class name="ClusterStatus" extends="java.lang.Object"
  43143. abstract="false"
  43144. static="false" final="false" visibility="public"
  43145. deprecated="not deprecated">
  43146. <implements name="org.apache.hadoop.io.Writable"/>
  43147. <method name="getTaskTrackers" return="int"
  43148. abstract="false" native="false" synchronized="false"
  43149. static="false" final="false" visibility="public"
  43150. deprecated="not deprecated">
  43151. <doc>
  43152. <![CDATA[Get the number of active task trackers in the cluster. Includes
  43153. graylisted but not blacklisted trackers.
  43154. @return the number of active task trackers in the cluster.]]>
  43155. </doc>
  43156. </method>
  43157. <method name="getActiveTrackerNames" return="java.util.Collection"
  43158. abstract="false" native="false" synchronized="false"
  43159. static="false" final="false" visibility="public"
  43160. deprecated="not deprecated">
  43161. <doc>
  43162. <![CDATA[Get the names of active task trackers in the cluster. Includes
  43163. graylisted but not blacklisted trackers.
  43164. @return the active task trackers in the cluster.]]>
  43165. </doc>
  43166. </method>
  43167. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  43168. abstract="false" native="false" synchronized="false"
  43169. static="false" final="false" visibility="public"
  43170. deprecated="not deprecated">
  43171. <doc>
  43172. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  43173. @return the blacklisted task trackers in the cluster.]]>
  43174. </doc>
  43175. </method>
  43176. <method name="getBlacklistedTrackers" return="int"
  43177. abstract="false" native="false" synchronized="false"
  43178. static="false" final="false" visibility="public"
  43179. deprecated="not deprecated">
  43180. <doc>
  43181. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  43182. @return the number of blacklisted task trackers in the cluster.]]>
  43183. </doc>
  43184. </method>
  43185. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  43186. abstract="false" native="false" synchronized="false"
  43187. static="false" final="false" visibility="public"
  43188. deprecated="not deprecated">
  43189. <doc>
  43190. <![CDATA[Get the names of graylisted task trackers in the cluster.
  43191. @return the graylisted task trackers in the cluster.]]>
  43192. </doc>
  43193. </method>
  43194. <method name="getGraylistedTrackers" return="int"
  43195. abstract="false" native="false" synchronized="false"
  43196. static="false" final="false" visibility="public"
  43197. deprecated="not deprecated">
  43198. <doc>
  43199. <![CDATA[Get the number of graylisted task trackers in the cluster.
  43200. @return the number of graylisted task trackers in the cluster.]]>
  43201. </doc>
  43202. </method>
  43203. <method name="getNumExcludedNodes" return="int"
  43204. abstract="false" native="false" synchronized="false"
  43205. static="false" final="false" visibility="public"
  43206. deprecated="not deprecated">
  43207. <doc>
  43208. <![CDATA[Get the number of excluded hosts in the cluster.
  43209. @return the number of excluded hosts in the cluster.]]>
  43210. </doc>
  43211. </method>
  43212. <method name="getTTExpiryInterval" return="long"
  43213. abstract="false" native="false" synchronized="false"
  43214. static="false" final="false" visibility="public"
  43215. deprecated="not deprecated">
  43216. <doc>
  43217. <![CDATA[Get the tasktracker expiry interval for the cluster
  43218. @return the expiry interval in msec]]>
  43219. </doc>
  43220. </method>
  43221. <method name="getMapTasks" return="int"
  43222. abstract="false" native="false" synchronized="false"
  43223. static="false" final="false" visibility="public"
  43224. deprecated="not deprecated">
  43225. <doc>
  43226. <![CDATA[Get the number of currently running map tasks in the cluster.
  43227. @return the number of currently running map tasks in the cluster.]]>
  43228. </doc>
  43229. </method>
  43230. <method name="getReduceTasks" return="int"
  43231. abstract="false" native="false" synchronized="false"
  43232. static="false" final="false" visibility="public"
  43233. deprecated="not deprecated">
  43234. <doc>
  43235. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  43236. @return the number of currently running reduce tasks in the cluster.]]>
  43237. </doc>
  43238. </method>
  43239. <method name="getMaxMapTasks" return="int"
  43240. abstract="false" native="false" synchronized="false"
  43241. static="false" final="false" visibility="public"
  43242. deprecated="not deprecated">
  43243. <doc>
  43244. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  43245. @return the maximum capacity for running map tasks in the cluster.]]>
  43246. </doc>
  43247. </method>
  43248. <method name="getMaxReduceTasks" return="int"
  43249. abstract="false" native="false" synchronized="false"
  43250. static="false" final="false" visibility="public"
  43251. deprecated="not deprecated">
  43252. <doc>
  43253. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  43254. @return the maximum capacity for running reduce tasks in the cluster.]]>
  43255. </doc>
  43256. </method>
  43257. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  43258. abstract="false" native="false" synchronized="false"
  43259. static="false" final="false" visibility="public"
  43260. deprecated="not deprecated">
  43261. <doc>
  43262. <![CDATA[Get the current state of the <code>JobTracker</code>,
  43263. as {@link JobTracker.State}
  43264. @return the current state of the <code>JobTracker</code>.]]>
  43265. </doc>
  43266. </method>
  43267. <method name="getUsedMemory" return="long"
  43268. abstract="false" native="false" synchronized="false"
  43269. static="false" final="false" visibility="public"
  43270. deprecated="not deprecated">
  43271. <doc>
  43272. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  43273. @return the size of heap memory used by the <code>JobTracker</code>]]>
  43274. </doc>
  43275. </method>
  43276. <method name="getMaxMemory" return="long"
  43277. abstract="false" native="false" synchronized="false"
  43278. static="false" final="false" visibility="public"
  43279. deprecated="not deprecated">
  43280. <doc>
  43281. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  43282. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  43283. </doc>
  43284. </method>
  43285. <method name="write"
  43286. abstract="false" native="false" synchronized="false"
  43287. static="false" final="false" visibility="public"
  43288. deprecated="not deprecated">
  43289. <param name="out" type="java.io.DataOutput"/>
  43290. <exception name="IOException" type="java.io.IOException"/>
  43291. </method>
  43292. <method name="readFields"
  43293. abstract="false" native="false" synchronized="false"
  43294. static="false" final="false" visibility="public"
  43295. deprecated="not deprecated">
  43296. <param name="in" type="java.io.DataInput"/>
  43297. <exception name="IOException" type="java.io.IOException"/>
  43298. </method>
  43299. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  43300. transient="false" volatile="false"
  43301. static="true" final="true" visibility="public"
  43302. deprecated="not deprecated">
  43303. </field>
  43304. <doc>
  43305. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  43306. <p><code>ClusterStatus</code> provides clients with information such as:
  43307. <ol>
  43308. <li>
  43309. Size of the cluster.
  43310. </li>
  43311. <li>
  43312. Name of the trackers.
  43313. </li>
  43314. <li>
  43315. Task capacity of the cluster.
  43316. </li>
  43317. <li>
  43318. The number of currently running map & reduce tasks.
  43319. </li>
  43320. <li>
  43321. State of the <code>JobTracker</code>.
  43322. </li>
  43323. </ol></p>
  43324. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  43325. {@link JobClient#getClusterStatus()}.</p>
  43326. @see JobClient]]>
  43327. </doc>
  43328. </class>
  43329. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  43330. <!-- start class org.apache.hadoop.mapred.Counters -->
  43331. <class name="Counters" extends="java.lang.Object"
  43332. abstract="false"
  43333. static="false" final="false" visibility="public"
  43334. deprecated="not deprecated">
  43335. <implements name="org.apache.hadoop.io.Writable"/>
  43336. <implements name="java.lang.Iterable"/>
  43337. <constructor name="Counters"
  43338. static="false" final="false" visibility="public"
  43339. deprecated="not deprecated">
  43340. </constructor>
  43341. <method name="getGroupNames" return="java.util.Collection"
  43342. abstract="false" native="false" synchronized="true"
  43343. static="false" final="false" visibility="public"
  43344. deprecated="not deprecated">
  43345. <doc>
  43346. <![CDATA[Returns the names of all counter classes.
  43347. @return Set of counter names.]]>
  43348. </doc>
  43349. </method>
  43350. <method name="iterator" return="java.util.Iterator"
  43351. abstract="false" native="false" synchronized="true"
  43352. static="false" final="false" visibility="public"
  43353. deprecated="not deprecated">
  43354. </method>
  43355. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  43356. abstract="false" native="false" synchronized="true"
  43357. static="false" final="false" visibility="public"
  43358. deprecated="not deprecated">
  43359. <param name="groupName" type="java.lang.String"/>
  43360. <doc>
  43361. <![CDATA[Returns the named counter group, or an empty group if there is none
  43362. with the specified name.]]>
  43363. </doc>
  43364. </method>
  43365. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43366. abstract="false" native="false" synchronized="true"
  43367. static="false" final="false" visibility="public"
  43368. deprecated="not deprecated">
  43369. <param name="key" type="java.lang.Enum"/>
  43370. <doc>
  43371. <![CDATA[Find the counter for the given enum. The same enum will always return the
  43372. same counter.
  43373. @param key the counter key
  43374. @return the matching counter object]]>
  43375. </doc>
  43376. </method>
  43377. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43378. abstract="false" native="false" synchronized="true"
  43379. static="false" final="false" visibility="public"
  43380. deprecated="not deprecated">
  43381. <param name="group" type="java.lang.String"/>
  43382. <param name="name" type="java.lang.String"/>
  43383. <doc>
  43384. <![CDATA[Find a counter given the group and the name.
  43385. @param group the name of the group
  43386. @param name the internal name of the counter
  43387. @return the counter for that name]]>
  43388. </doc>
  43389. </method>
  43390. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43391. abstract="false" native="false" synchronized="true"
  43392. static="false" final="false" visibility="public"
  43393. deprecated="deprecated, no comment">
  43394. <param name="group" type="java.lang.String"/>
  43395. <param name="id" type="int"/>
  43396. <param name="name" type="java.lang.String"/>
  43397. <doc>
  43398. <![CDATA[Find a counter by using strings
  43399. @param group the name of the group
  43400. @param id the id of the counter within the group (0 to N-1)
  43401. @param name the internal name of the counter
  43402. @return the counter for that name
  43403. @deprecated]]>
  43404. </doc>
  43405. </method>
  43406. <method name="incrCounter"
  43407. abstract="false" native="false" synchronized="true"
  43408. static="false" final="false" visibility="public"
  43409. deprecated="not deprecated">
  43410. <param name="key" type="java.lang.Enum"/>
  43411. <param name="amount" type="long"/>
  43412. <doc>
  43413. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43414. it didn't already exist.
  43415. @param key identifies a counter
  43416. @param amount amount by which counter is to be incremented]]>
  43417. </doc>
  43418. </method>
  43419. <method name="incrCounter"
  43420. abstract="false" native="false" synchronized="true"
  43421. static="false" final="false" visibility="public"
  43422. deprecated="not deprecated">
  43423. <param name="group" type="java.lang.String"/>
  43424. <param name="counter" type="java.lang.String"/>
  43425. <param name="amount" type="long"/>
  43426. <doc>
  43427. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43428. it didn't already exist.
  43429. @param group the name of the group
  43430. @param counter the internal name of the counter
  43431. @param amount amount by which counter is to be incremented]]>
  43432. </doc>
  43433. </method>
  43434. <method name="getCounter" return="long"
  43435. abstract="false" native="false" synchronized="true"
  43436. static="false" final="false" visibility="public"
  43437. deprecated="not deprecated">
  43438. <param name="key" type="java.lang.Enum"/>
  43439. <doc>
  43440. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  43441. does not exist.]]>
  43442. </doc>
  43443. </method>
  43444. <method name="incrAllCounters"
  43445. abstract="false" native="false" synchronized="true"
  43446. static="false" final="false" visibility="public"
  43447. deprecated="not deprecated">
  43448. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  43449. <doc>
  43450. <![CDATA[Increments multiple counters by their amounts in another Counters
  43451. instance.
  43452. @param other the other Counters instance]]>
  43453. </doc>
  43454. </method>
  43455. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  43456. abstract="false" native="false" synchronized="false"
  43457. static="true" final="false" visibility="public"
  43458. deprecated="not deprecated">
  43459. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  43460. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  43461. <doc>
  43462. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  43463. </doc>
  43464. </method>
  43465. <method name="size" return="int"
  43466. abstract="false" native="false" synchronized="true"
  43467. static="false" final="false" visibility="public"
  43468. deprecated="not deprecated">
  43469. <doc>
  43470. <![CDATA[Returns the total number of counters, by summing the number of counters
  43471. in each group.]]>
  43472. </doc>
  43473. </method>
  43474. <method name="write"
  43475. abstract="false" native="false" synchronized="true"
  43476. static="false" final="false" visibility="public"
  43477. deprecated="not deprecated">
  43478. <param name="out" type="java.io.DataOutput"/>
  43479. <exception name="IOException" type="java.io.IOException"/>
  43480. <doc>
  43481. <![CDATA[Write the set of groups.
  43482. The external format is:
  43483. #groups (groupName group)*
  43484. i.e. the number of groups followed by 0 or more groups, where each
  43485. group is of the form:
  43486. groupDisplayName #counters (false | true counter)*
  43487. where each counter is of the form:
  43488. name (false | true displayName) value]]>
  43489. </doc>
  43490. </method>
  43491. <method name="readFields"
  43492. abstract="false" native="false" synchronized="true"
  43493. static="false" final="false" visibility="public"
  43494. deprecated="not deprecated">
  43495. <param name="in" type="java.io.DataInput"/>
  43496. <exception name="IOException" type="java.io.IOException"/>
  43497. <doc>
  43498. <![CDATA[Read a set of groups.]]>
  43499. </doc>
  43500. </method>
  43501. <method name="log"
  43502. abstract="false" native="false" synchronized="false"
  43503. static="false" final="false" visibility="public"
  43504. deprecated="not deprecated">
  43505. <param name="log" type="org.apache.commons.logging.Log"/>
  43506. <doc>
  43507. <![CDATA[Logs the current counter values.
  43508. @param log The log to use.]]>
  43509. </doc>
  43510. </method>
  43511. <method name="toString" return="java.lang.String"
  43512. abstract="false" native="false" synchronized="true"
  43513. static="false" final="false" visibility="public"
  43514. deprecated="not deprecated">
  43515. <doc>
  43516. <![CDATA[Return textual representation of the counter values.]]>
  43517. </doc>
  43518. </method>
  43519. <method name="makeCompactString" return="java.lang.String"
  43520. abstract="false" native="false" synchronized="true"
  43521. static="false" final="false" visibility="public"
  43522. deprecated="not deprecated">
  43523. <doc>
  43524. <![CDATA[Convert a counters object into a single line that is easy to parse.
  43525. @return the string with "name=value" for each counter and separated by ","]]>
  43526. </doc>
  43527. </method>
  43528. <method name="makeEscapedCompactString" return="java.lang.String"
  43529. abstract="false" native="false" synchronized="true"
  43530. static="false" final="false" visibility="public"
  43531. deprecated="not deprecated">
  43532. <doc>
  43533. <![CDATA[Represent the counter in a textual format that can be converted back to
  43534. its object form
  43535. @return the string in the following format
  43536. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  43537. </doc>
  43538. </method>
  43539. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  43540. abstract="false" native="false" synchronized="false"
  43541. static="true" final="false" visibility="public"
  43542. deprecated="not deprecated">
  43543. <param name="compactString" type="java.lang.String"/>
  43544. <exception name="ParseException" type="java.text.ParseException"/>
  43545. <doc>
  43546. <![CDATA[Convert a stringified counter representation into a counter object. Note
  43547. that the counter can be recovered if its stringified using
  43548. {@link #makeEscapedCompactString()}.
  43549. @return a Counter]]>
  43550. </doc>
  43551. </method>
  43552. <method name="hashCode" return="int"
  43553. abstract="false" native="false" synchronized="true"
  43554. static="false" final="false" visibility="public"
  43555. deprecated="not deprecated">
  43556. </method>
  43557. <method name="equals" return="boolean"
  43558. abstract="false" native="false" synchronized="true"
  43559. static="false" final="false" visibility="public"
  43560. deprecated="not deprecated">
  43561. <param name="obj" type="java.lang.Object"/>
  43562. </method>
  43563. <field name="MAX_COUNTER_LIMIT" type="int"
  43564. transient="false" volatile="false"
  43565. static="true" final="false" visibility="public"
  43566. deprecated="not deprecated">
  43567. <doc>
  43568. <![CDATA[limit on counters]]>
  43569. </doc>
  43570. </field>
  43571. <doc>
  43572. <![CDATA[A set of named counters.
  43573. <p><code>Counters</code> represent global counters, defined either by the
  43574. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  43575. any {@link Enum} type.</p>
  43576. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  43577. counters from a particular <code>Enum</code> class.]]>
  43578. </doc>
  43579. </class>
  43580. <!-- end class org.apache.hadoop.mapred.Counters -->
  43581. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  43582. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  43583. abstract="false"
  43584. static="true" final="false" visibility="public"
  43585. deprecated="not deprecated">
  43586. <method name="setDisplayName"
  43587. abstract="false" native="false" synchronized="false"
  43588. static="false" final="false" visibility="public"
  43589. deprecated="not deprecated">
  43590. <param name="newName" type="java.lang.String"/>
  43591. </method>
  43592. <method name="makeEscapedCompactString" return="java.lang.String"
  43593. abstract="false" native="false" synchronized="true"
  43594. static="false" final="false" visibility="public"
  43595. deprecated="not deprecated">
  43596. <doc>
  43597. <![CDATA[Returns the compact stringified version of the counter in the format
  43598. [(actual-name)(display-name)(value)]]]>
  43599. </doc>
  43600. </method>
  43601. <method name="getCounter" return="long"
  43602. abstract="false" native="false" synchronized="true"
  43603. static="false" final="false" visibility="public"
  43604. deprecated="not deprecated">
  43605. <doc>
  43606. <![CDATA[What is the current value of this counter?
  43607. @return the current value]]>
  43608. </doc>
  43609. </method>
  43610. <doc>
  43611. <![CDATA[A counter record, comprising its name and value.]]>
  43612. </doc>
  43613. </class>
  43614. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  43615. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  43616. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  43617. abstract="false"
  43618. static="true" final="false" visibility="public"
  43619. deprecated="not deprecated">
  43620. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  43621. static="false" final="false" visibility="public"
  43622. deprecated="not deprecated">
  43623. </constructor>
  43624. <doc>
  43625. <![CDATA[Counter exception thrown when the number of counters exceed
  43626. the limit]]>
  43627. </doc>
  43628. </class>
  43629. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  43630. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  43631. <class name="Counters.Group" extends="java.lang.Object"
  43632. abstract="false"
  43633. static="false" final="false" visibility="public"
  43634. deprecated="not deprecated">
  43635. <implements name="org.apache.hadoop.io.Writable"/>
  43636. <implements name="java.lang.Iterable"/>
  43637. <method name="getName" return="java.lang.String"
  43638. abstract="false" native="false" synchronized="false"
  43639. static="false" final="false" visibility="public"
  43640. deprecated="not deprecated">
  43641. <doc>
  43642. <![CDATA[Returns raw name of the group. This is the name of the enum class
  43643. for this group of counters.]]>
  43644. </doc>
  43645. </method>
  43646. <method name="getDisplayName" return="java.lang.String"
  43647. abstract="false" native="false" synchronized="false"
  43648. static="false" final="false" visibility="public"
  43649. deprecated="not deprecated">
  43650. <doc>
  43651. <![CDATA[Returns localized name of the group. This is the same as getName() by
  43652. default, but different if an appropriate ResourceBundle is found.]]>
  43653. </doc>
  43654. </method>
  43655. <method name="setDisplayName"
  43656. abstract="false" native="false" synchronized="false"
  43657. static="false" final="false" visibility="public"
  43658. deprecated="not deprecated">
  43659. <param name="displayName" type="java.lang.String"/>
  43660. <doc>
  43661. <![CDATA[Set the display name]]>
  43662. </doc>
  43663. </method>
  43664. <method name="makeEscapedCompactString" return="java.lang.String"
  43665. abstract="false" native="false" synchronized="false"
  43666. static="false" final="false" visibility="public"
  43667. deprecated="not deprecated">
  43668. <doc>
  43669. <![CDATA[Returns the compact stringified version of the group in the format
  43670. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  43671. counters within.]]>
  43672. </doc>
  43673. </method>
  43674. <method name="hashCode" return="int"
  43675. abstract="false" native="false" synchronized="false"
  43676. static="false" final="false" visibility="public"
  43677. deprecated="not deprecated">
  43678. </method>
  43679. <method name="equals" return="boolean"
  43680. abstract="false" native="false" synchronized="true"
  43681. static="false" final="false" visibility="public"
  43682. deprecated="not deprecated">
  43683. <param name="obj" type="java.lang.Object"/>
  43684. <doc>
  43685. <![CDATA[Checks for (content) equality of Groups]]>
  43686. </doc>
  43687. </method>
  43688. <method name="getCounter" return="long"
  43689. abstract="false" native="false" synchronized="true"
  43690. static="false" final="false" visibility="public"
  43691. deprecated="not deprecated">
  43692. <param name="counterName" type="java.lang.String"/>
  43693. <doc>
  43694. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  43695. not exist.]]>
  43696. </doc>
  43697. </method>
  43698. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43699. abstract="false" native="false" synchronized="true"
  43700. static="false" final="false" visibility="public"
  43701. deprecated="use {@link #getCounter(String)} instead">
  43702. <param name="id" type="int"/>
  43703. <param name="name" type="java.lang.String"/>
  43704. <doc>
  43705. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  43706. @param id the numeric id of the counter within the group
  43707. @param name the internal counter name
  43708. @return the counter
  43709. @deprecated use {@link #getCounter(String)} instead]]>
  43710. </doc>
  43711. </method>
  43712. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  43713. abstract="false" native="false" synchronized="true"
  43714. static="false" final="false" visibility="public"
  43715. deprecated="not deprecated">
  43716. <param name="name" type="java.lang.String"/>
  43717. <doc>
  43718. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  43719. @param name the internal counter name
  43720. @return the counter]]>
  43721. </doc>
  43722. </method>
  43723. <method name="size" return="int"
  43724. abstract="false" native="false" synchronized="true"
  43725. static="false" final="false" visibility="public"
  43726. deprecated="not deprecated">
  43727. <doc>
  43728. <![CDATA[Returns the number of counters in this group.]]>
  43729. </doc>
  43730. </method>
  43731. <method name="write"
  43732. abstract="false" native="false" synchronized="true"
  43733. static="false" final="false" visibility="public"
  43734. deprecated="not deprecated">
  43735. <param name="out" type="java.io.DataOutput"/>
  43736. <exception name="IOException" type="java.io.IOException"/>
  43737. </method>
  43738. <method name="readFields"
  43739. abstract="false" native="false" synchronized="true"
  43740. static="false" final="false" visibility="public"
  43741. deprecated="not deprecated">
  43742. <param name="in" type="java.io.DataInput"/>
  43743. <exception name="IOException" type="java.io.IOException"/>
  43744. </method>
  43745. <method name="iterator" return="java.util.Iterator"
  43746. abstract="false" native="false" synchronized="true"
  43747. static="false" final="false" visibility="public"
  43748. deprecated="not deprecated">
  43749. </method>
  43750. <doc>
  43751. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  43752. counter {@link Enum} class.
  43753. <p><code>Group</code>handles localization of the class name and the
  43754. counter names.</p>]]>
  43755. </doc>
  43756. </class>
  43757. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  43758. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  43759. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  43760. abstract="false"
  43761. static="false" final="false" visibility="public"
  43762. deprecated="not deprecated">
  43763. <constructor name="DefaultJobHistoryParser"
  43764. static="false" final="false" visibility="public"
  43765. deprecated="not deprecated">
  43766. </constructor>
  43767. <method name="parseJobTasks"
  43768. abstract="false" native="false" synchronized="false"
  43769. static="true" final="false" visibility="public"
  43770. deprecated="not deprecated">
  43771. <param name="jobHistoryFile" type="java.lang.String"/>
  43772. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  43773. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43774. <exception name="IOException" type="java.io.IOException"/>
  43775. <doc>
  43776. <![CDATA[Populates a JobInfo object from the job's history log file.
  43777. @param jobHistoryFile history file for this job.
  43778. @param job a precreated JobInfo object, should be non-null.
  43779. @param fs FileSystem where historyFile is present.
  43780. @throws IOException]]>
  43781. </doc>
  43782. </method>
  43783. <doc>
  43784. <![CDATA[Default parser for job history files. It creates object model from
  43785. job history file.]]>
  43786. </doc>
  43787. </class>
  43788. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  43789. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  43790. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  43791. abstract="false"
  43792. static="false" final="false" visibility="public"
  43793. deprecated="not deprecated">
  43794. <constructor name="DefaultTaskController"
  43795. static="false" final="false" visibility="public"
  43796. deprecated="not deprecated">
  43797. </constructor>
  43798. <method name="setConf"
  43799. abstract="false" native="false" synchronized="false"
  43800. static="false" final="false" visibility="public"
  43801. deprecated="not deprecated">
  43802. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43803. </method>
  43804. <method name="createLogDir"
  43805. abstract="false" native="false" synchronized="false"
  43806. static="false" final="false" visibility="public"
  43807. deprecated="not deprecated">
  43808. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  43809. <param name="isCleanup" type="boolean"/>
  43810. <exception name="IOException" type="java.io.IOException"/>
  43811. </method>
  43812. <method name="launchTask" return="int"
  43813. abstract="false" native="false" synchronized="false"
  43814. static="false" final="false" visibility="public"
  43815. deprecated="not deprecated">
  43816. <param name="user" type="java.lang.String"/>
  43817. <param name="jobId" type="java.lang.String"/>
  43818. <param name="attemptId" type="java.lang.String"/>
  43819. <param name="setup" type="java.util.List"/>
  43820. <param name="jvmArguments" type="java.util.List"/>
  43821. <param name="currentWorkDirectory" type="java.io.File"/>
  43822. <param name="stdout" type="java.lang.String"/>
  43823. <param name="stderr" type="java.lang.String"/>
  43824. <exception name="IOException" type="java.io.IOException"/>
  43825. <doc>
  43826. <![CDATA[Create all of the directories for the task and launches the child jvm.
  43827. @param user the user name
  43828. @param attemptId the attempt id
  43829. @throws IOException]]>
  43830. </doc>
  43831. </method>
  43832. <method name="initializeJob"
  43833. abstract="false" native="false" synchronized="false"
  43834. static="false" final="false" visibility="public"
  43835. deprecated="not deprecated">
  43836. <param name="user" type="java.lang.String"/>
  43837. <param name="jobid" type="java.lang.String"/>
  43838. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  43839. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  43840. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  43841. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  43842. <exception name="IOException" type="java.io.IOException"/>
  43843. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  43844. <doc>
  43845. <![CDATA[This routine initializes the local file system for running a job.
  43846. Details:
  43847. <ul>
  43848. <li>Copies the credentials file from the TaskTracker's private space to
  43849. the job's private space </li>
  43850. <li>Creates the job work directory and set
  43851. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  43852. <li>Downloads the job.jar, unjars it, and updates the configuration to
  43853. reflect the localized path of the job.jar</li>
  43854. <li>Creates a base JobConf in the job's private space</li>
  43855. <li>Sets up the distributed cache</li>
  43856. <li>Sets up the user logs directory for the job</li>
  43857. </ul>
  43858. This method must be invoked in the access control context of the job owner
  43859. user. This is because the distributed cache is also setup here and the
  43860. access to the hdfs files requires authentication tokens in case where
  43861. security is enabled.
  43862. @param user the user in question (the job owner)
  43863. @param jobid the ID of the job in question
  43864. @param credentials the path to the credentials file that the TaskTracker
  43865. downloaded
  43866. @param jobConf the path to the job configuration file that the TaskTracker
  43867. downloaded
  43868. @param taskTracker the connection to the task tracker
  43869. @throws IOException
  43870. @throws InterruptedException]]>
  43871. </doc>
  43872. </method>
  43873. <method name="signalTask"
  43874. abstract="false" native="false" synchronized="false"
  43875. static="false" final="false" visibility="public"
  43876. deprecated="not deprecated">
  43877. <param name="user" type="java.lang.String"/>
  43878. <param name="taskPid" type="int"/>
  43879. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  43880. </method>
  43881. <method name="deleteAsUser"
  43882. abstract="false" native="false" synchronized="false"
  43883. static="false" final="false" visibility="public"
  43884. deprecated="not deprecated">
  43885. <param name="user" type="java.lang.String"/>
  43886. <param name="subDir" type="java.lang.String"/>
  43887. <exception name="IOException" type="java.io.IOException"/>
  43888. <doc>
  43889. <![CDATA[Delete the user's files under all of the task tracker root directories.
  43890. @param user the user name
  43891. @param subDir the path relative to the user's subdirectory under
  43892. the task tracker root directories.
  43893. @throws IOException]]>
  43894. </doc>
  43895. </method>
  43896. <method name="deleteLogAsUser"
  43897. abstract="false" native="false" synchronized="false"
  43898. static="false" final="false" visibility="public"
  43899. deprecated="not deprecated">
  43900. <param name="user" type="java.lang.String"/>
  43901. <param name="subDir" type="java.lang.String"/>
  43902. <exception name="IOException" type="java.io.IOException"/>
  43903. <doc>
  43904. <![CDATA[Delete the user's files under the userlogs directory.
  43905. @param user the user to work as
  43906. @param subDir the path under the userlogs directory.
  43907. @throws IOException]]>
  43908. </doc>
  43909. </method>
  43910. <method name="truncateLogsAsUser"
  43911. abstract="false" native="false" synchronized="false"
  43912. static="false" final="false" visibility="public"
  43913. deprecated="not deprecated">
  43914. <param name="user" type="java.lang.String"/>
  43915. <param name="allAttempts" type="java.util.List"/>
  43916. <exception name="IOException" type="java.io.IOException"/>
  43917. </method>
  43918. <method name="setup"
  43919. abstract="false" native="false" synchronized="false"
  43920. static="false" final="false" visibility="public"
  43921. deprecated="not deprecated">
  43922. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  43923. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  43924. </method>
  43925. <doc>
  43926. <![CDATA[The default implementation for controlling tasks.
  43927. This class provides an implementation for launching and killing
  43928. tasks that need to be run as the tasktracker itself. Hence,
  43929. many of the initializing or cleanup methods are not required here.
  43930. <br/>
  43931. NOTE: This class is internal only class and not intended for users!!]]>
  43932. </doc>
  43933. </class>
  43934. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  43935. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  43936. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  43937. abstract="false"
  43938. static="false" final="false" visibility="public"
  43939. deprecated="not deprecated">
  43940. <constructor name="FileAlreadyExistsException"
  43941. static="false" final="false" visibility="public"
  43942. deprecated="not deprecated">
  43943. </constructor>
  43944. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  43945. static="false" final="false" visibility="public"
  43946. deprecated="not deprecated">
  43947. </constructor>
  43948. <doc>
  43949. <![CDATA[Used when target file already exists for any operation and
  43950. is not configured to be overwritten.]]>
  43951. </doc>
  43952. </class>
  43953. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  43954. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  43955. <class name="FileInputFormat" extends="java.lang.Object"
  43956. abstract="true"
  43957. static="false" final="false" visibility="public"
  43958. deprecated="not deprecated">
  43959. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  43960. <constructor name="FileInputFormat"
  43961. static="false" final="false" visibility="public"
  43962. deprecated="not deprecated">
  43963. </constructor>
  43964. <method name="setMinSplitSize"
  43965. abstract="false" native="false" synchronized="false"
  43966. static="false" final="false" visibility="protected"
  43967. deprecated="not deprecated">
  43968. <param name="minSplitSize" type="long"/>
  43969. </method>
  43970. <method name="isSplitable" return="boolean"
  43971. abstract="false" native="false" synchronized="false"
  43972. static="false" final="false" visibility="protected"
  43973. deprecated="not deprecated">
  43974. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43975. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  43976. <doc>
  43977. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  43978. stream compressed, it will not be.
  43979. <code>FileInputFormat</code> implementations can override this and return
  43980. <code>false</code> to ensure that individual input files are never split-up
  43981. so that {@link Mapper}s process entire files.
  43982. @param fs the file system that the file is on
  43983. @param filename the file name to check
  43984. @return is this file splitable?]]>
  43985. </doc>
  43986. </method>
  43987. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  43988. abstract="true" native="false" synchronized="false"
  43989. static="false" final="false" visibility="public"
  43990. deprecated="not deprecated">
  43991. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  43992. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43993. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43994. <exception name="IOException" type="java.io.IOException"/>
  43995. </method>
  43996. <method name="setInputPathFilter"
  43997. abstract="false" native="false" synchronized="false"
  43998. static="true" final="false" visibility="public"
  43999. deprecated="not deprecated">
  44000. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44001. <param name="filter" type="java.lang.Class"/>
  44002. <doc>
  44003. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  44004. @param filter the PathFilter class use for filtering the input paths.]]>
  44005. </doc>
  44006. </method>
  44007. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  44008. abstract="false" native="false" synchronized="false"
  44009. static="true" final="false" visibility="public"
  44010. deprecated="not deprecated">
  44011. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44012. <doc>
  44013. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  44014. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  44015. </doc>
  44016. </method>
  44017. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  44018. abstract="false" native="false" synchronized="false"
  44019. static="false" final="false" visibility="protected"
  44020. deprecated="not deprecated">
  44021. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44022. <exception name="IOException" type="java.io.IOException"/>
  44023. <doc>
  44024. <![CDATA[List input directories.
  44025. Subclasses may override to, e.g., select only files matching a regular
  44026. expression.
  44027. @param job the job to list input paths for
  44028. @return array of FileStatus objects
  44029. @throws IOException if zero items.]]>
  44030. </doc>
  44031. </method>
  44032. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  44033. abstract="false" native="false" synchronized="false"
  44034. static="false" final="false" visibility="public"
  44035. deprecated="not deprecated">
  44036. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44037. <param name="numSplits" type="int"/>
  44038. <exception name="IOException" type="java.io.IOException"/>
  44039. <doc>
  44040. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  44041. they're too big.]]>
  44042. </doc>
  44043. </method>
  44044. <method name="computeSplitSize" return="long"
  44045. abstract="false" native="false" synchronized="false"
  44046. static="false" final="false" visibility="protected"
  44047. deprecated="not deprecated">
  44048. <param name="goalSize" type="long"/>
  44049. <param name="minSize" type="long"/>
  44050. <param name="blockSize" type="long"/>
  44051. </method>
  44052. <method name="getBlockIndex" return="int"
  44053. abstract="false" native="false" synchronized="false"
  44054. static="false" final="false" visibility="protected"
  44055. deprecated="not deprecated">
  44056. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  44057. <param name="offset" type="long"/>
  44058. </method>
  44059. <method name="setInputPaths"
  44060. abstract="false" native="false" synchronized="false"
  44061. static="true" final="false" visibility="public"
  44062. deprecated="not deprecated">
  44063. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44064. <param name="commaSeparatedPaths" type="java.lang.String"/>
  44065. <doc>
  44066. <![CDATA[Sets the given comma separated paths as the list of inputs
  44067. for the map-reduce job.
  44068. @param conf Configuration of the job
  44069. @param commaSeparatedPaths Comma separated paths to be set as
  44070. the list of inputs for the map-reduce job.]]>
  44071. </doc>
  44072. </method>
  44073. <method name="addInputPaths"
  44074. abstract="false" native="false" synchronized="false"
  44075. static="true" final="false" visibility="public"
  44076. deprecated="not deprecated">
  44077. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44078. <param name="commaSeparatedPaths" type="java.lang.String"/>
  44079. <doc>
  44080. <![CDATA[Add the given comma separated paths to the list of inputs for
  44081. the map-reduce job.
  44082. @param conf The configuration of the job
  44083. @param commaSeparatedPaths Comma separated paths to be added to
  44084. the list of inputs for the map-reduce job.]]>
  44085. </doc>
  44086. </method>
  44087. <method name="setInputPaths"
  44088. abstract="false" native="false" synchronized="false"
  44089. static="true" final="false" visibility="public"
  44090. deprecated="not deprecated">
  44091. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44092. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  44093. <doc>
  44094. <![CDATA[Set the array of {@link Path}s as the list of inputs
  44095. for the map-reduce job.
  44096. @param conf Configuration of the job.
  44097. @param inputPaths the {@link Path}s of the input directories/files
  44098. for the map-reduce job.]]>
  44099. </doc>
  44100. </method>
  44101. <method name="addInputPath"
  44102. abstract="false" native="false" synchronized="false"
  44103. static="true" final="false" visibility="public"
  44104. deprecated="not deprecated">
  44105. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44106. <param name="path" type="org.apache.hadoop.fs.Path"/>
  44107. <doc>
  44108. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  44109. @param conf The configuration of the job
  44110. @param path {@link Path} to be added to the list of inputs for
  44111. the map-reduce job.]]>
  44112. </doc>
  44113. </method>
  44114. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  44115. abstract="false" native="false" synchronized="false"
  44116. static="true" final="false" visibility="public"
  44117. deprecated="not deprecated">
  44118. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44119. <doc>
  44120. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  44121. @param conf The configuration of the job
  44122. @return the list of input {@link Path}s for the map-reduce job.]]>
  44123. </doc>
  44124. </method>
  44125. <method name="getSplitHosts" return="java.lang.String[]"
  44126. abstract="false" native="false" synchronized="false"
  44127. static="false" final="false" visibility="protected"
  44128. deprecated="not deprecated">
  44129. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  44130. <param name="offset" type="long"/>
  44131. <param name="splitSize" type="long"/>
  44132. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  44133. <exception name="IOException" type="java.io.IOException"/>
  44134. <doc>
  44135. <![CDATA[This function identifies and returns the hosts that contribute
  44136. most for a given split. For calculating the contribution, rack
  44137. locality is treated on par with host locality, so hosts from racks
  44138. that contribute the most are preferred over hosts on racks that
  44139. contribute less
  44140. @param blkLocations The list of block locations
  44141. @param offset
  44142. @param splitSize
  44143. @return array of hosts that contribute most to this split
  44144. @throws IOException]]>
  44145. </doc>
  44146. </method>
  44147. <field name="LOG" type="org.apache.commons.logging.Log"
  44148. transient="false" volatile="false"
  44149. static="true" final="true" visibility="public"
  44150. deprecated="not deprecated">
  44151. </field>
  44152. <doc>
  44153. <![CDATA[A base class for file-based {@link InputFormat}.
  44154. <p><code>FileInputFormat</code> is the base class for all file-based
  44155. <code>InputFormat</code>s. This provides a generic implementation of
  44156. {@link #getSplits(JobConf, int)}.
  44157. Subclasses of <code>FileInputFormat</code> can also override the
  44158. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  44159. not split-up and are processed as a whole by {@link Mapper}s.]]>
  44160. </doc>
  44161. </class>
  44162. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  44163. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  44164. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  44165. abstract="false"
  44166. static="true" final="true" visibility="public"
  44167. deprecated="not deprecated">
  44168. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  44169. abstract="false" native="false" synchronized="false"
  44170. static="true" final="false" visibility="public"
  44171. deprecated="not deprecated">
  44172. </method>
  44173. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  44174. abstract="false" native="false" synchronized="false"
  44175. static="true" final="false" visibility="public"
  44176. deprecated="not deprecated">
  44177. <param name="name" type="java.lang.String"/>
  44178. </method>
  44179. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  44180. transient="false" volatile="false"
  44181. static="true" final="true" visibility="public"
  44182. deprecated="not deprecated">
  44183. </field>
  44184. </class>
  44185. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  44186. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  44187. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  44188. abstract="false"
  44189. static="false" final="false" visibility="public"
  44190. deprecated="not deprecated">
  44191. <constructor name="FileOutputCommitter"
  44192. static="false" final="false" visibility="public"
  44193. deprecated="not deprecated">
  44194. </constructor>
  44195. <method name="setupJob"
  44196. abstract="false" native="false" synchronized="false"
  44197. static="false" final="false" visibility="public"
  44198. deprecated="not deprecated">
  44199. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44200. <exception name="IOException" type="java.io.IOException"/>
  44201. </method>
  44202. <method name="commitJob"
  44203. abstract="false" native="false" synchronized="false"
  44204. static="false" final="false" visibility="public"
  44205. deprecated="not deprecated">
  44206. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44207. <exception name="IOException" type="java.io.IOException"/>
  44208. </method>
  44209. <method name="cleanupJob"
  44210. abstract="false" native="false" synchronized="false"
  44211. static="false" final="false" visibility="public"
  44212. deprecated="not deprecated">
  44213. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44214. <exception name="IOException" type="java.io.IOException"/>
  44215. </method>
  44216. <method name="abortJob"
  44217. abstract="false" native="false" synchronized="false"
  44218. static="false" final="false" visibility="public"
  44219. deprecated="not deprecated">
  44220. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44221. <param name="runState" type="int"/>
  44222. <exception name="IOException" type="java.io.IOException"/>
  44223. <doc>
  44224. <![CDATA[Delete the temporary directory, including all of the work directories.
  44225. @param context the job's context
  44226. @param runState final run state of the job, should be
  44227. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  44228. </doc>
  44229. </method>
  44230. <method name="setupTask"
  44231. abstract="false" native="false" synchronized="false"
  44232. static="false" final="false" visibility="public"
  44233. deprecated="not deprecated">
  44234. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44235. <exception name="IOException" type="java.io.IOException"/>
  44236. </method>
  44237. <method name="commitTask"
  44238. abstract="false" native="false" synchronized="false"
  44239. static="false" final="false" visibility="public"
  44240. deprecated="not deprecated">
  44241. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44242. <exception name="IOException" type="java.io.IOException"/>
  44243. </method>
  44244. <method name="abortTask"
  44245. abstract="false" native="false" synchronized="false"
  44246. static="false" final="false" visibility="public"
  44247. deprecated="not deprecated">
  44248. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44249. <exception name="IOException" type="java.io.IOException"/>
  44250. </method>
  44251. <method name="needsTaskCommit" return="boolean"
  44252. abstract="false" native="false" synchronized="false"
  44253. static="false" final="false" visibility="public"
  44254. deprecated="not deprecated">
  44255. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44256. <exception name="IOException" type="java.io.IOException"/>
  44257. </method>
  44258. <field name="LOG" type="org.apache.commons.logging.Log"
  44259. transient="false" volatile="false"
  44260. static="true" final="true" visibility="public"
  44261. deprecated="not deprecated">
  44262. </field>
  44263. <field name="TEMP_DIR_NAME" type="java.lang.String"
  44264. transient="false" volatile="false"
  44265. static="true" final="true" visibility="public"
  44266. deprecated="not deprecated">
  44267. <doc>
  44268. <![CDATA[Temporary directory name]]>
  44269. </doc>
  44270. </field>
  44271. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  44272. transient="false" volatile="false"
  44273. static="true" final="true" visibility="public"
  44274. deprecated="not deprecated">
  44275. </field>
  44276. <doc>
  44277. <![CDATA[An {@link OutputCommitter} that commits files specified
  44278. in job output directory i.e. ${mapred.output.dir}.]]>
  44279. </doc>
  44280. </class>
  44281. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  44282. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  44283. <class name="FileOutputFormat" extends="java.lang.Object"
  44284. abstract="true"
  44285. static="false" final="false" visibility="public"
  44286. deprecated="not deprecated">
  44287. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  44288. <constructor name="FileOutputFormat"
  44289. static="false" final="false" visibility="public"
  44290. deprecated="not deprecated">
  44291. </constructor>
  44292. <method name="setCompressOutput"
  44293. abstract="false" native="false" synchronized="false"
  44294. static="true" final="false" visibility="public"
  44295. deprecated="not deprecated">
  44296. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44297. <param name="compress" type="boolean"/>
  44298. <doc>
  44299. <![CDATA[Set whether the output of the job is compressed.
  44300. @param conf the {@link JobConf} to modify
  44301. @param compress should the output of the job be compressed?]]>
  44302. </doc>
  44303. </method>
  44304. <method name="getCompressOutput" return="boolean"
  44305. abstract="false" native="false" synchronized="false"
  44306. static="true" final="false" visibility="public"
  44307. deprecated="not deprecated">
  44308. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44309. <doc>
  44310. <![CDATA[Is the job output compressed?
  44311. @param conf the {@link JobConf} to look in
  44312. @return <code>true</code> if the job output should be compressed,
  44313. <code>false</code> otherwise]]>
  44314. </doc>
  44315. </method>
  44316. <method name="setOutputCompressorClass"
  44317. abstract="false" native="false" synchronized="false"
  44318. static="true" final="false" visibility="public"
  44319. deprecated="not deprecated">
  44320. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44321. <param name="codecClass" type="java.lang.Class"/>
  44322. <doc>
  44323. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  44324. @param conf the {@link JobConf} to modify
  44325. @param codecClass the {@link CompressionCodec} to be used to
  44326. compress the job outputs]]>
  44327. </doc>
  44328. </method>
  44329. <method name="getOutputCompressorClass" return="java.lang.Class"
  44330. abstract="false" native="false" synchronized="false"
  44331. static="true" final="false" visibility="public"
  44332. deprecated="not deprecated">
  44333. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44334. <param name="defaultValue" type="java.lang.Class"/>
  44335. <doc>
  44336. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  44337. @param conf the {@link JobConf} to look in
  44338. @param defaultValue the {@link CompressionCodec} to return if not set
  44339. @return the {@link CompressionCodec} to be used to compress the
  44340. job outputs
  44341. @throws IllegalArgumentException if the class was specified, but not found]]>
  44342. </doc>
  44343. </method>
  44344. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44345. abstract="true" native="false" synchronized="false"
  44346. static="false" final="false" visibility="public"
  44347. deprecated="not deprecated">
  44348. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44349. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44350. <param name="name" type="java.lang.String"/>
  44351. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  44352. <exception name="IOException" type="java.io.IOException"/>
  44353. </method>
  44354. <method name="checkOutputSpecs"
  44355. abstract="false" native="false" synchronized="false"
  44356. static="false" final="false" visibility="public"
  44357. deprecated="not deprecated">
  44358. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44359. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44360. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  44361. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44362. <exception name="IOException" type="java.io.IOException"/>
  44363. </method>
  44364. <method name="setOutputPath"
  44365. abstract="false" native="false" synchronized="false"
  44366. static="true" final="false" visibility="public"
  44367. deprecated="not deprecated">
  44368. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44369. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  44370. <doc>
  44371. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  44372. @param conf The configuration of the job.
  44373. @param outputDir the {@link Path} of the output directory for
  44374. the map-reduce job.]]>
  44375. </doc>
  44376. </method>
  44377. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  44378. abstract="false" native="false" synchronized="false"
  44379. static="true" final="false" visibility="public"
  44380. deprecated="not deprecated">
  44381. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44382. <doc>
  44383. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  44384. @return the {@link Path} to the output directory for the map-reduce job.
  44385. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  44386. </doc>
  44387. </method>
  44388. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  44389. abstract="false" native="false" synchronized="false"
  44390. static="true" final="false" visibility="public"
  44391. deprecated="not deprecated">
  44392. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44393. <doc>
  44394. <![CDATA[Get the {@link Path} to the task's temporary output directory
  44395. for the map-reduce job
  44396. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  44397. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  44398. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  44399. a <code>FileOutputCommitter</code>, the task's temporary output
  44400. directory is same as {@link #getOutputPath(JobConf)} i.e.
  44401. <tt>${mapred.output.dir}$</tt></p>
  44402. <p>Some applications need to create/write-to side-files, which differ from
  44403. the actual job-outputs.
  44404. <p>In such cases there could be issues with 2 instances of the same TIP
  44405. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  44406. same file (path) on HDFS. Hence the application-writer will have to pick
  44407. unique names per task-attempt (e.g. using the attemptid, say
  44408. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  44409. <p>To get around this the Map-Reduce framework helps the application-writer
  44410. out by maintaining a special
  44411. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  44412. sub-directory for each task-attempt on HDFS where the output of the
  44413. task-attempt goes. On successful completion of the task-attempt the files
  44414. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  44415. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  44416. framework discards the sub-directory of unsuccessful task-attempts. This
  44417. is completely transparent to the application.</p>
  44418. <p>The application-writer can take advantage of this by creating any
  44419. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  44420. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  44421. framework will move them out similarly - thus she doesn't have to pick
  44422. unique paths per task-attempt.</p>
  44423. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  44424. execution of a particular task-attempt is actually
  44425. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  44426. set by the map-reduce framework. So, just create any side-files in the
  44427. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  44428. task to take advantage of this feature.</p>
  44429. <p>The entire discussion holds true for maps of jobs with
  44430. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  44431. goes directly to HDFS.</p>
  44432. @return the {@link Path} to the task's temporary output directory
  44433. for the map-reduce job.]]>
  44434. </doc>
  44435. </method>
  44436. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  44437. abstract="false" native="false" synchronized="false"
  44438. static="true" final="false" visibility="public"
  44439. deprecated="not deprecated">
  44440. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44441. <param name="name" type="java.lang.String"/>
  44442. <exception name="IOException" type="java.io.IOException"/>
  44443. <doc>
  44444. <![CDATA[Helper function to create the task's temporary output directory and
  44445. return the path to the task's output file.
  44446. @param conf job-configuration
  44447. @param name temporary task-output filename
  44448. @return path to the task's temporary output file
  44449. @throws IOException]]>
  44450. </doc>
  44451. </method>
  44452. <method name="getUniqueName" return="java.lang.String"
  44453. abstract="false" native="false" synchronized="false"
  44454. static="true" final="false" visibility="public"
  44455. deprecated="not deprecated">
  44456. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44457. <param name="name" type="java.lang.String"/>
  44458. <doc>
  44459. <![CDATA[Helper function to generate a name that is unique for the task.
  44460. <p>The generated name can be used to create custom files from within the
  44461. different tasks for the job, the names for different tasks will not collide
  44462. with each other.</p>
  44463. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  44464. reduces and the task partition number. For example, give a name 'test'
  44465. running on the first map o the job the generated name will be
  44466. 'test-m-00000'.</p>
  44467. @param conf the configuration for the job.
  44468. @param name the name to make unique.
  44469. @return a unique name accross all tasks of the job.]]>
  44470. </doc>
  44471. </method>
  44472. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  44473. abstract="false" native="false" synchronized="false"
  44474. static="true" final="false" visibility="public"
  44475. deprecated="not deprecated">
  44476. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44477. <param name="name" type="java.lang.String"/>
  44478. <doc>
  44479. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  44480. the task within the job output directory.
  44481. <p>The path can be used to create custom files from within the map and
  44482. reduce tasks. The path name will be unique for each task. The path parent
  44483. will be the job output directory.</p>ls
  44484. <p>This method uses the {@link #getUniqueName} method to make the file name
  44485. unique for the task.</p>
  44486. @param conf the configuration for the job.
  44487. @param name the name for the file.
  44488. @return a unique path accross all tasks of the job.]]>
  44489. </doc>
  44490. </method>
  44491. <doc>
  44492. <![CDATA[A base class for {@link OutputFormat}.]]>
  44493. </doc>
  44494. </class>
  44495. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  44496. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  44497. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  44498. abstract="false"
  44499. static="true" final="true" visibility="public"
  44500. deprecated="not deprecated">
  44501. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  44502. abstract="false" native="false" synchronized="false"
  44503. static="true" final="false" visibility="public"
  44504. deprecated="not deprecated">
  44505. </method>
  44506. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  44507. abstract="false" native="false" synchronized="false"
  44508. static="true" final="false" visibility="public"
  44509. deprecated="not deprecated">
  44510. <param name="name" type="java.lang.String"/>
  44511. </method>
  44512. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  44513. transient="false" volatile="false"
  44514. static="true" final="true" visibility="public"
  44515. deprecated="not deprecated">
  44516. </field>
  44517. </class>
  44518. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  44519. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  44520. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  44521. abstract="false"
  44522. static="false" final="false" visibility="public"
  44523. deprecated="not deprecated">
  44524. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  44525. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  44526. static="false" final="false" visibility="public"
  44527. deprecated="deprecated, no comment">
  44528. <doc>
  44529. <![CDATA[Constructs a split.
  44530. @deprecated
  44531. @param file the file name
  44532. @param start the position of the first byte in the file to process
  44533. @param length the number of bytes in the file to process]]>
  44534. </doc>
  44535. </constructor>
  44536. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  44537. static="false" final="false" visibility="public"
  44538. deprecated="not deprecated">
  44539. <doc>
  44540. <![CDATA[Constructs a split with host information
  44541. @param file the file name
  44542. @param start the position of the first byte in the file to process
  44543. @param length the number of bytes in the file to process
  44544. @param hosts the list of hosts containing the block, possibly null]]>
  44545. </doc>
  44546. </constructor>
  44547. <method name="getPath" return="org.apache.hadoop.fs.Path"
  44548. abstract="false" native="false" synchronized="false"
  44549. static="false" final="false" visibility="public"
  44550. deprecated="not deprecated">
  44551. <doc>
  44552. <![CDATA[The file containing this split's data.]]>
  44553. </doc>
  44554. </method>
  44555. <method name="getStart" return="long"
  44556. abstract="false" native="false" synchronized="false"
  44557. static="false" final="false" visibility="public"
  44558. deprecated="not deprecated">
  44559. <doc>
  44560. <![CDATA[The position of the first byte in the file to process.]]>
  44561. </doc>
  44562. </method>
  44563. <method name="getLength" return="long"
  44564. abstract="false" native="false" synchronized="false"
  44565. static="false" final="false" visibility="public"
  44566. deprecated="not deprecated">
  44567. <doc>
  44568. <![CDATA[The number of bytes in the file to process.]]>
  44569. </doc>
  44570. </method>
  44571. <method name="toString" return="java.lang.String"
  44572. abstract="false" native="false" synchronized="false"
  44573. static="false" final="false" visibility="public"
  44574. deprecated="not deprecated">
  44575. </method>
  44576. <method name="write"
  44577. abstract="false" native="false" synchronized="false"
  44578. static="false" final="false" visibility="public"
  44579. deprecated="not deprecated">
  44580. <param name="out" type="java.io.DataOutput"/>
  44581. <exception name="IOException" type="java.io.IOException"/>
  44582. </method>
  44583. <method name="readFields"
  44584. abstract="false" native="false" synchronized="false"
  44585. static="false" final="false" visibility="public"
  44586. deprecated="not deprecated">
  44587. <param name="in" type="java.io.DataInput"/>
  44588. <exception name="IOException" type="java.io.IOException"/>
  44589. </method>
  44590. <method name="getLocations" return="java.lang.String[]"
  44591. abstract="false" native="false" synchronized="false"
  44592. static="false" final="false" visibility="public"
  44593. deprecated="not deprecated">
  44594. <exception name="IOException" type="java.io.IOException"/>
  44595. </method>
  44596. <doc>
  44597. <![CDATA[A section of an input file. Returned by {@link
  44598. InputFormat#getSplits(JobConf, int)} and passed to
  44599. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  44600. </doc>
  44601. </class>
  44602. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  44603. <!-- start class org.apache.hadoop.mapred.ID -->
  44604. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  44605. abstract="true"
  44606. static="false" final="false" visibility="public"
  44607. deprecated="not deprecated">
  44608. <constructor name="ID" type="int"
  44609. static="false" final="false" visibility="public"
  44610. deprecated="not deprecated">
  44611. <doc>
  44612. <![CDATA[constructs an ID object from the given int]]>
  44613. </doc>
  44614. </constructor>
  44615. <constructor name="ID"
  44616. static="false" final="false" visibility="protected"
  44617. deprecated="not deprecated">
  44618. </constructor>
  44619. <doc>
  44620. <![CDATA[A general identifier, which internally stores the id
  44621. as an integer. This is the super class of {@link JobID},
  44622. {@link TaskID} and {@link TaskAttemptID}.
  44623. @see JobID
  44624. @see TaskID
  44625. @see TaskAttemptID]]>
  44626. </doc>
  44627. </class>
  44628. <!-- end class org.apache.hadoop.mapred.ID -->
  44629. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  44630. <interface name="InputFormat" abstract="true"
  44631. static="false" final="false" visibility="public"
  44632. deprecated="not deprecated">
  44633. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  44634. abstract="false" native="false" synchronized="false"
  44635. static="false" final="false" visibility="public"
  44636. deprecated="not deprecated">
  44637. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44638. <param name="numSplits" type="int"/>
  44639. <exception name="IOException" type="java.io.IOException"/>
  44640. <doc>
  44641. <![CDATA[Logically split the set of input files for the job.
  44642. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  44643. for processing.</p>
  44644. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  44645. input files are not physically split into chunks. For e.g. a split could
  44646. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  44647. @param job job configuration.
  44648. @param numSplits the desired number of splits, a hint.
  44649. @return an array of {@link InputSplit}s for the job.]]>
  44650. </doc>
  44651. </method>
  44652. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  44653. abstract="false" native="false" synchronized="false"
  44654. static="false" final="false" visibility="public"
  44655. deprecated="not deprecated">
  44656. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  44657. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44658. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44659. <exception name="IOException" type="java.io.IOException"/>
  44660. <doc>
  44661. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  44662. <p>It is the responsibility of the <code>RecordReader</code> to respect
  44663. record boundaries while processing the logical split to present a
  44664. record-oriented view to the individual task.</p>
  44665. @param split the {@link InputSplit}
  44666. @param job the job that this split belongs to
  44667. @return a {@link RecordReader}]]>
  44668. </doc>
  44669. </method>
  44670. <doc>
  44671. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  44672. Map-Reduce job.
  44673. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  44674. job to:<p>
  44675. <ol>
  44676. <li>
  44677. Validate the input-specification of the job.
  44678. <li>
  44679. Split-up the input file(s) into logical {@link InputSplit}s, each of
  44680. which is then assigned to an individual {@link Mapper}.
  44681. </li>
  44682. <li>
  44683. Provide the {@link RecordReader} implementation to be used to glean
  44684. input records from the logical <code>InputSplit</code> for processing by
  44685. the {@link Mapper}.
  44686. </li>
  44687. </ol>
  44688. <p>The default behavior of file-based {@link InputFormat}s, typically
  44689. sub-classes of {@link FileInputFormat}, is to split the
  44690. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  44691. bytes, of the input files. However, the {@link FileSystem} blocksize of
  44692. the input files is treated as an upper bound for input splits. A lower bound
  44693. on the split size can be set via
  44694. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  44695. mapred.min.split.size</a>.</p>
  44696. <p>Clearly, logical splits based on input-size is insufficient for many
  44697. applications since record boundaries are to respected. In such cases, the
  44698. application has to also implement a {@link RecordReader} on whom lies the
  44699. responsibilty to respect record-boundaries and present a record-oriented
  44700. view of the logical <code>InputSplit</code> to the individual task.
  44701. @see InputSplit
  44702. @see RecordReader
  44703. @see JobClient
  44704. @see FileInputFormat]]>
  44705. </doc>
  44706. </interface>
  44707. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  44708. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  44709. <interface name="InputSplit" abstract="true"
  44710. static="false" final="false" visibility="public"
  44711. deprecated="not deprecated">
  44712. <implements name="org.apache.hadoop.io.Writable"/>
  44713. <method name="getLength" return="long"
  44714. abstract="false" native="false" synchronized="false"
  44715. static="false" final="false" visibility="public"
  44716. deprecated="not deprecated">
  44717. <exception name="IOException" type="java.io.IOException"/>
  44718. <doc>
  44719. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  44720. @return the number of bytes in the input split.
  44721. @throws IOException]]>
  44722. </doc>
  44723. </method>
  44724. <method name="getLocations" return="java.lang.String[]"
  44725. abstract="false" native="false" synchronized="false"
  44726. static="false" final="false" visibility="public"
  44727. deprecated="not deprecated">
  44728. <exception name="IOException" type="java.io.IOException"/>
  44729. <doc>
  44730. <![CDATA[Get the list of hostnames where the input split is located.
  44731. @return list of hostnames where data of the <code>InputSplit</code> is
  44732. located as an array of <code>String</code>s.
  44733. @throws IOException]]>
  44734. </doc>
  44735. </method>
  44736. <doc>
  44737. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  44738. individual {@link Mapper}.
  44739. <p>Typically, it presents a byte-oriented view on the input and is the
  44740. responsibility of {@link RecordReader} of the job to process this and present
  44741. a record-oriented view.
  44742. @see InputFormat
  44743. @see RecordReader]]>
  44744. </doc>
  44745. </interface>
  44746. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  44747. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  44748. <class name="InvalidFileTypeException" extends="java.io.IOException"
  44749. abstract="false"
  44750. static="false" final="false" visibility="public"
  44751. deprecated="not deprecated">
  44752. <constructor name="InvalidFileTypeException"
  44753. static="false" final="false" visibility="public"
  44754. deprecated="not deprecated">
  44755. </constructor>
  44756. <constructor name="InvalidFileTypeException" type="java.lang.String"
  44757. static="false" final="false" visibility="public"
  44758. deprecated="not deprecated">
  44759. </constructor>
  44760. <doc>
  44761. <![CDATA[Used when file type differs from the desired file type. like
  44762. getting a file when a directory is expected. Or a wrong file type.]]>
  44763. </doc>
  44764. </class>
  44765. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  44766. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  44767. <class name="InvalidInputException" extends="java.io.IOException"
  44768. abstract="false"
  44769. static="false" final="false" visibility="public"
  44770. deprecated="not deprecated">
  44771. <constructor name="InvalidInputException" type="java.util.List"
  44772. static="false" final="false" visibility="public"
  44773. deprecated="not deprecated">
  44774. <doc>
  44775. <![CDATA[Create the exception with the given list.
  44776. @param probs the list of problems to report. this list is not copied.]]>
  44777. </doc>
  44778. </constructor>
  44779. <method name="getProblems" return="java.util.List"
  44780. abstract="false" native="false" synchronized="false"
  44781. static="false" final="false" visibility="public"
  44782. deprecated="not deprecated">
  44783. <doc>
  44784. <![CDATA[Get the complete list of the problems reported.
  44785. @return the list of problems, which must not be modified]]>
  44786. </doc>
  44787. </method>
  44788. <method name="getMessage" return="java.lang.String"
  44789. abstract="false" native="false" synchronized="false"
  44790. static="false" final="false" visibility="public"
  44791. deprecated="not deprecated">
  44792. <doc>
  44793. <![CDATA[Get a summary message of the problems found.
  44794. @return the concatenated messages from all of the problems.]]>
  44795. </doc>
  44796. </method>
  44797. <doc>
  44798. <![CDATA[This class wraps a list of problems with the input, so that the user
  44799. can get a list of problems together instead of finding and fixing them one
  44800. by one.]]>
  44801. </doc>
  44802. </class>
  44803. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  44804. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  44805. <class name="InvalidJobConfException" extends="java.io.IOException"
  44806. abstract="false"
  44807. static="false" final="false" visibility="public"
  44808. deprecated="not deprecated">
  44809. <constructor name="InvalidJobConfException"
  44810. static="false" final="false" visibility="public"
  44811. deprecated="not deprecated">
  44812. </constructor>
  44813. <constructor name="InvalidJobConfException" type="java.lang.String"
  44814. static="false" final="false" visibility="public"
  44815. deprecated="not deprecated">
  44816. </constructor>
  44817. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  44818. static="false" final="false" visibility="public"
  44819. deprecated="not deprecated">
  44820. </constructor>
  44821. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  44822. static="false" final="false" visibility="public"
  44823. deprecated="not deprecated">
  44824. </constructor>
  44825. <doc>
  44826. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  44827. or value of some attributes is invalid.]]>
  44828. </doc>
  44829. </class>
  44830. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  44831. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  44832. <class name="IsolationRunner" extends="java.lang.Object"
  44833. abstract="false"
  44834. static="false" final="false" visibility="public"
  44835. deprecated="not deprecated">
  44836. <constructor name="IsolationRunner"
  44837. static="false" final="false" visibility="public"
  44838. deprecated="not deprecated">
  44839. </constructor>
  44840. <method name="main"
  44841. abstract="false" native="false" synchronized="false"
  44842. static="true" final="false" visibility="public"
  44843. deprecated="not deprecated">
  44844. <param name="args" type="java.lang.String[]"/>
  44845. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  44846. <exception name="IOException" type="java.io.IOException"/>
  44847. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44848. <doc>
  44849. <![CDATA[Run a single task.
  44850. @param args the first argument is the task directory]]>
  44851. </doc>
  44852. </method>
  44853. <doc>
  44854. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  44855. task, given left-over task files for a (typically failed) past job.
  44856. Currently, it is limited to re-running map tasks.
  44857. Users may coerce MapReduce to keep task files around by setting
  44858. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  44859. </doc>
  44860. </class>
  44861. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  44862. <!-- start class org.apache.hadoop.mapred.JobClient -->
  44863. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  44864. abstract="false"
  44865. static="false" final="false" visibility="public"
  44866. deprecated="not deprecated">
  44867. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  44868. <implements name="org.apache.hadoop.util.Tool"/>
  44869. <constructor name="JobClient"
  44870. static="false" final="false" visibility="public"
  44871. deprecated="not deprecated">
  44872. <doc>
  44873. <![CDATA[Create a job client.]]>
  44874. </doc>
  44875. </constructor>
  44876. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  44877. static="false" final="false" visibility="public"
  44878. deprecated="not deprecated">
  44879. <exception name="IOException" type="java.io.IOException"/>
  44880. <doc>
  44881. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  44882. default {@link JobTracker}.
  44883. @param conf the job configuration.
  44884. @throws IOException]]>
  44885. </doc>
  44886. </constructor>
  44887. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  44888. static="false" final="false" visibility="public"
  44889. deprecated="not deprecated">
  44890. <exception name="IOException" type="java.io.IOException"/>
  44891. <doc>
  44892. <![CDATA[Build a job client, connect to the indicated job tracker.
  44893. @param jobTrackAddr the job tracker to connect to.
  44894. @param conf configuration.]]>
  44895. </doc>
  44896. </constructor>
  44897. <method name="init"
  44898. abstract="false" native="false" synchronized="false"
  44899. static="false" final="false" visibility="public"
  44900. deprecated="not deprecated">
  44901. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44902. <exception name="IOException" type="java.io.IOException"/>
  44903. <doc>
  44904. <![CDATA[Connect to the default {@link JobTracker}.
  44905. @param conf the job configuration.
  44906. @throws IOException]]>
  44907. </doc>
  44908. </method>
  44909. <method name="close"
  44910. abstract="false" native="false" synchronized="true"
  44911. static="false" final="false" visibility="public"
  44912. deprecated="not deprecated">
  44913. <exception name="IOException" type="java.io.IOException"/>
  44914. <doc>
  44915. <![CDATA[Close the <code>JobClient</code>.]]>
  44916. </doc>
  44917. </method>
  44918. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  44919. abstract="false" native="false" synchronized="true"
  44920. static="false" final="false" visibility="public"
  44921. deprecated="not deprecated">
  44922. <exception name="IOException" type="java.io.IOException"/>
  44923. <doc>
  44924. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  44925. for submission to the MapReduce system.
  44926. @return the filesystem handle.
  44927. @throws IOException]]>
  44928. </doc>
  44929. </method>
  44930. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  44931. abstract="false" native="false" synchronized="false"
  44932. static="false" final="false" visibility="public"
  44933. deprecated="not deprecated">
  44934. <param name="jobFile" type="java.lang.String"/>
  44935. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44936. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44937. <exception name="IOException" type="java.io.IOException"/>
  44938. <doc>
  44939. <![CDATA[Submit a job to the MR system.
  44940. This returns a handle to the {@link RunningJob} which can be used to track
  44941. the running-job.
  44942. @param jobFile the job configuration.
  44943. @return a handle to the {@link RunningJob} which can be used to track the
  44944. running-job.
  44945. @throws FileNotFoundException
  44946. @throws InvalidJobConfException
  44947. @throws IOException]]>
  44948. </doc>
  44949. </method>
  44950. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  44951. abstract="false" native="false" synchronized="false"
  44952. static="false" final="false" visibility="public"
  44953. deprecated="not deprecated">
  44954. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44955. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44956. <exception name="IOException" type="java.io.IOException"/>
  44957. <doc>
  44958. <![CDATA[Submit a job to the MR system.
  44959. This returns a handle to the {@link RunningJob} which can be used to track
  44960. the running-job.
  44961. @param job the job configuration.
  44962. @return a handle to the {@link RunningJob} which can be used to track the
  44963. running-job.
  44964. @throws FileNotFoundException
  44965. @throws IOException]]>
  44966. </doc>
  44967. </method>
  44968. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  44969. abstract="false" native="false" synchronized="false"
  44970. static="false" final="false" visibility="public"
  44971. deprecated="not deprecated">
  44972. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44973. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44974. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  44975. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44976. <exception name="IOException" type="java.io.IOException"/>
  44977. <doc>
  44978. <![CDATA[Internal method for submitting jobs to the system.
  44979. @param job the configuration to submit
  44980. @return a proxy object for the running job
  44981. @throws FileNotFoundException
  44982. @throws ClassNotFoundException
  44983. @throws InterruptedException
  44984. @throws IOException]]>
  44985. </doc>
  44986. </method>
  44987. <method name="isJobDirValid" return="boolean"
  44988. abstract="false" native="false" synchronized="false"
  44989. static="true" final="false" visibility="public"
  44990. deprecated="not deprecated">
  44991. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  44992. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44993. <exception name="IOException" type="java.io.IOException"/>
  44994. <doc>
  44995. <![CDATA[Checks if the job directory is clean and has all the required components
  44996. for (re) starting the job]]>
  44997. </doc>
  44998. </method>
  44999. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  45000. abstract="false" native="false" synchronized="false"
  45001. static="false" final="false" visibility="public"
  45002. deprecated="not deprecated">
  45003. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  45004. <exception name="IOException" type="java.io.IOException"/>
  45005. <doc>
  45006. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  45007. null if the id does not correspond to any known job.
  45008. @param jobid the jobid of the job.
  45009. @return the {@link RunningJob} handle to track the job, null if the
  45010. <code>jobid</code> doesn't correspond to any known job.
  45011. @throws IOException]]>
  45012. </doc>
  45013. </method>
  45014. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  45015. abstract="false" native="false" synchronized="false"
  45016. static="false" final="false" visibility="public"
  45017. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  45018. <param name="jobid" type="java.lang.String"/>
  45019. <exception name="IOException" type="java.io.IOException"/>
  45020. <doc>
  45021. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  45022. </doc>
  45023. </method>
  45024. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45025. abstract="false" native="false" synchronized="false"
  45026. static="false" final="false" visibility="public"
  45027. deprecated="not deprecated">
  45028. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45029. <exception name="IOException" type="java.io.IOException"/>
  45030. <doc>
  45031. <![CDATA[Get the information of the current state of the map tasks of a job.
  45032. @param jobId the job to query.
  45033. @return the list of all of the map tips.
  45034. @throws IOException]]>
  45035. </doc>
  45036. </method>
  45037. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45038. abstract="false" native="false" synchronized="false"
  45039. static="false" final="false" visibility="public"
  45040. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  45041. <param name="jobId" type="java.lang.String"/>
  45042. <exception name="IOException" type="java.io.IOException"/>
  45043. <doc>
  45044. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  45045. </doc>
  45046. </method>
  45047. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45048. abstract="false" native="false" synchronized="false"
  45049. static="false" final="false" visibility="public"
  45050. deprecated="not deprecated">
  45051. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45052. <exception name="IOException" type="java.io.IOException"/>
  45053. <doc>
  45054. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  45055. @param jobId the job to query.
  45056. @return the list of all of the reduce tips.
  45057. @throws IOException]]>
  45058. </doc>
  45059. </method>
  45060. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45061. abstract="false" native="false" synchronized="false"
  45062. static="false" final="false" visibility="public"
  45063. deprecated="not deprecated">
  45064. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45065. <exception name="IOException" type="java.io.IOException"/>
  45066. <doc>
  45067. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  45068. @param jobId the job to query.
  45069. @return the list of all of the cleanup tips.
  45070. @throws IOException]]>
  45071. </doc>
  45072. </method>
  45073. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45074. abstract="false" native="false" synchronized="false"
  45075. static="false" final="false" visibility="public"
  45076. deprecated="not deprecated">
  45077. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45078. <exception name="IOException" type="java.io.IOException"/>
  45079. <doc>
  45080. <![CDATA[Get the information of the current state of the setup tasks of a job.
  45081. @param jobId the job to query.
  45082. @return the list of all of the setup tips.
  45083. @throws IOException]]>
  45084. </doc>
  45085. </method>
  45086. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45087. abstract="false" native="false" synchronized="false"
  45088. static="false" final="false" visibility="public"
  45089. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  45090. <param name="jobId" type="java.lang.String"/>
  45091. <exception name="IOException" type="java.io.IOException"/>
  45092. <doc>
  45093. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  45094. </doc>
  45095. </method>
  45096. <method name="displayTasks"
  45097. abstract="false" native="false" synchronized="false"
  45098. static="false" final="false" visibility="public"
  45099. deprecated="not deprecated">
  45100. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45101. <param name="type" type="java.lang.String"/>
  45102. <param name="state" type="java.lang.String"/>
  45103. <exception name="IOException" type="java.io.IOException"/>
  45104. <doc>
  45105. <![CDATA[Display the information about a job's tasks, of a particular type and
  45106. in a particular state
  45107. @param jobId the ID of the job
  45108. @param type the type of the task (map/reduce/setup/cleanup)
  45109. @param state the state of the task
  45110. (pending/running/completed/failed/killed)]]>
  45111. </doc>
  45112. </method>
  45113. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  45114. abstract="false" native="false" synchronized="false"
  45115. static="false" final="false" visibility="public"
  45116. deprecated="not deprecated">
  45117. <exception name="IOException" type="java.io.IOException"/>
  45118. <doc>
  45119. <![CDATA[Get status information about the Map-Reduce cluster.
  45120. @return the status information about the Map-Reduce cluster as an object
  45121. of {@link ClusterStatus}.
  45122. @throws IOException]]>
  45123. </doc>
  45124. </method>
  45125. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  45126. abstract="false" native="false" synchronized="false"
  45127. static="false" final="false" visibility="public"
  45128. deprecated="not deprecated">
  45129. <param name="detailed" type="boolean"/>
  45130. <exception name="IOException" type="java.io.IOException"/>
  45131. <doc>
  45132. <![CDATA[Get status information about the Map-Reduce cluster.
  45133. @param detailed if true then get a detailed status including the
  45134. tracker names and memory usage of the JobTracker
  45135. @return the status information about the Map-Reduce cluster as an object
  45136. of {@link ClusterStatus}.
  45137. @throws IOException]]>
  45138. </doc>
  45139. </method>
  45140. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  45141. abstract="false" native="false" synchronized="false"
  45142. static="false" final="false" visibility="public"
  45143. deprecated="not deprecated">
  45144. <exception name="IOException" type="java.io.IOException"/>
  45145. <doc>
  45146. <![CDATA[Grab the jobtracker's view of the staging directory path where
  45147. job-specific files will be placed.
  45148. @return the staging directory where job-specific files are to be placed.]]>
  45149. </doc>
  45150. </method>
  45151. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  45152. abstract="false" native="false" synchronized="false"
  45153. static="false" final="false" visibility="public"
  45154. deprecated="not deprecated">
  45155. <exception name="IOException" type="java.io.IOException"/>
  45156. <doc>
  45157. <![CDATA[Get the jobs that are not completed and not failed.
  45158. @return array of {@link JobStatus} for the running/to-be-run jobs.
  45159. @throws IOException]]>
  45160. </doc>
  45161. </method>
  45162. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  45163. abstract="false" native="false" synchronized="false"
  45164. static="false" final="false" visibility="public"
  45165. deprecated="not deprecated">
  45166. <exception name="IOException" type="java.io.IOException"/>
  45167. <doc>
  45168. <![CDATA[Get the jobs that are submitted.
  45169. @return array of {@link JobStatus} for the submitted jobs.
  45170. @throws IOException]]>
  45171. </doc>
  45172. </method>
  45173. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  45174. abstract="false" native="false" synchronized="false"
  45175. static="true" final="false" visibility="public"
  45176. deprecated="not deprecated">
  45177. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45178. <exception name="IOException" type="java.io.IOException"/>
  45179. <doc>
  45180. <![CDATA[Utility that submits a job, then polls for progress until the job is
  45181. complete.
  45182. @param job the job configuration.
  45183. @throws IOException if the job fails]]>
  45184. </doc>
  45185. </method>
  45186. <method name="monitorAndPrintJob" return="boolean"
  45187. abstract="false" native="false" synchronized="false"
  45188. static="false" final="false" visibility="public"
  45189. deprecated="not deprecated">
  45190. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45191. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  45192. <exception name="IOException" type="java.io.IOException"/>
  45193. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45194. <doc>
  45195. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  45196. fail.
  45197. @param conf the job's configuration
  45198. @param job the job to track
  45199. @return true if the job succeeded
  45200. @throws IOException if communication to the JobTracker fails]]>
  45201. </doc>
  45202. </method>
  45203. <method name="setTaskOutputFilter"
  45204. abstract="false" native="false" synchronized="false"
  45205. static="false" final="false" visibility="public"
  45206. deprecated="not deprecated">
  45207. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45208. <doc>
  45209. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  45210. output matches the filter.
  45211. @param newValue task filter.]]>
  45212. </doc>
  45213. </method>
  45214. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45215. abstract="false" native="false" synchronized="false"
  45216. static="true" final="false" visibility="public"
  45217. deprecated="not deprecated">
  45218. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45219. <doc>
  45220. <![CDATA[Get the task output filter out of the JobConf.
  45221. @param job the JobConf to examine.
  45222. @return the filter level.]]>
  45223. </doc>
  45224. </method>
  45225. <method name="setTaskOutputFilter"
  45226. abstract="false" native="false" synchronized="false"
  45227. static="true" final="false" visibility="public"
  45228. deprecated="not deprecated">
  45229. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45230. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45231. <doc>
  45232. <![CDATA[Modify the JobConf to set the task output filter.
  45233. @param job the JobConf to modify.
  45234. @param newValue the value to set.]]>
  45235. </doc>
  45236. </method>
  45237. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45238. abstract="false" native="false" synchronized="false"
  45239. static="false" final="false" visibility="public"
  45240. deprecated="not deprecated">
  45241. <doc>
  45242. <![CDATA[Returns task output filter.
  45243. @return task filter.]]>
  45244. </doc>
  45245. </method>
  45246. <method name="run" return="int"
  45247. abstract="false" native="false" synchronized="false"
  45248. static="false" final="false" visibility="public"
  45249. deprecated="not deprecated">
  45250. <param name="argv" type="java.lang.String[]"/>
  45251. <exception name="Exception" type="java.lang.Exception"/>
  45252. </method>
  45253. <method name="getDefaultMaps" return="int"
  45254. abstract="false" native="false" synchronized="false"
  45255. static="false" final="false" visibility="public"
  45256. deprecated="not deprecated">
  45257. <exception name="IOException" type="java.io.IOException"/>
  45258. <doc>
  45259. <![CDATA[Get status information about the max available Maps in the cluster.
  45260. @return the max available Maps in the cluster
  45261. @throws IOException]]>
  45262. </doc>
  45263. </method>
  45264. <method name="getDefaultReduces" return="int"
  45265. abstract="false" native="false" synchronized="false"
  45266. static="false" final="false" visibility="public"
  45267. deprecated="not deprecated">
  45268. <exception name="IOException" type="java.io.IOException"/>
  45269. <doc>
  45270. <![CDATA[Get status information about the max available Reduces in the cluster.
  45271. @return the max available Reduces in the cluster
  45272. @throws IOException]]>
  45273. </doc>
  45274. </method>
  45275. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  45276. abstract="false" native="false" synchronized="false"
  45277. static="false" final="false" visibility="public"
  45278. deprecated="not deprecated">
  45279. <doc>
  45280. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  45281. @return the system directory where job-specific files are to be placed.]]>
  45282. </doc>
  45283. </method>
  45284. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  45285. abstract="false" native="false" synchronized="false"
  45286. static="false" final="false" visibility="public"
  45287. deprecated="not deprecated">
  45288. <exception name="IOException" type="java.io.IOException"/>
  45289. <doc>
  45290. <![CDATA[Return an array of queue information objects about all the Job Queues
  45291. configured.
  45292. @return Array of JobQueueInfo objects
  45293. @throws IOException]]>
  45294. </doc>
  45295. </method>
  45296. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  45297. abstract="false" native="false" synchronized="false"
  45298. static="false" final="false" visibility="public"
  45299. deprecated="not deprecated">
  45300. <param name="queueName" type="java.lang.String"/>
  45301. <exception name="IOException" type="java.io.IOException"/>
  45302. <doc>
  45303. <![CDATA[Gets all the jobs which were added to particular Job Queue
  45304. @param queueName name of the Job Queue
  45305. @return Array of jobs present in the job queue
  45306. @throws IOException]]>
  45307. </doc>
  45308. </method>
  45309. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  45310. abstract="false" native="false" synchronized="false"
  45311. static="false" final="false" visibility="public"
  45312. deprecated="not deprecated">
  45313. <param name="queueName" type="java.lang.String"/>
  45314. <exception name="IOException" type="java.io.IOException"/>
  45315. <doc>
  45316. <![CDATA[Gets the queue information associated to a particular Job Queue
  45317. @param queueName name of the job queue.
  45318. @return Queue information associated to particular queue.
  45319. @throws IOException]]>
  45320. </doc>
  45321. </method>
  45322. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  45323. abstract="false" native="false" synchronized="false"
  45324. static="false" final="false" visibility="public"
  45325. deprecated="not deprecated">
  45326. <exception name="IOException" type="java.io.IOException"/>
  45327. <doc>
  45328. <![CDATA[Gets the Queue ACLs for current user
  45329. @return array of QueueAclsInfo object for current user.
  45330. @throws IOException]]>
  45331. </doc>
  45332. </method>
  45333. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  45334. abstract="false" native="false" synchronized="false"
  45335. static="false" final="false" visibility="public"
  45336. deprecated="not deprecated">
  45337. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  45338. <exception name="IOException" type="java.io.IOException"/>
  45339. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45340. </method>
  45341. <method name="renewDelegationToken" return="long"
  45342. abstract="false" native="false" synchronized="false"
  45343. static="false" final="false" visibility="public"
  45344. deprecated="not deprecated">
  45345. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45346. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  45347. <exception name="IOException" type="java.io.IOException"/>
  45348. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45349. <doc>
  45350. <![CDATA[Renew a delegation token
  45351. @param token the token to renew
  45352. @return the new expiration time
  45353. @throws InvalidToken
  45354. @throws IOException]]>
  45355. </doc>
  45356. </method>
  45357. <method name="cancelDelegationToken"
  45358. abstract="false" native="false" synchronized="false"
  45359. static="false" final="false" visibility="public"
  45360. deprecated="not deprecated">
  45361. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45362. <exception name="IOException" type="java.io.IOException"/>
  45363. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45364. <doc>
  45365. <![CDATA[Cancel a delegation token from the JobTracker
  45366. @param token the token to cancel
  45367. @throws IOException]]>
  45368. </doc>
  45369. </method>
  45370. <method name="main"
  45371. abstract="false" native="false" synchronized="false"
  45372. static="true" final="false" visibility="public"
  45373. deprecated="not deprecated">
  45374. <param name="argv" type="java.lang.String[]"/>
  45375. <exception name="Exception" type="java.lang.Exception"/>
  45376. </method>
  45377. <doc>
  45378. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  45379. with the {@link JobTracker}.
  45380. <code>JobClient</code> provides facilities to submit jobs, track their
  45381. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  45382. status information etc.
  45383. <p>The job submission process involves:
  45384. <ol>
  45385. <li>
  45386. Checking the input and output specifications of the job.
  45387. </li>
  45388. <li>
  45389. Computing the {@link InputSplit}s for the job.
  45390. </li>
  45391. <li>
  45392. Setup the requisite accounting information for the {@link DistributedCache}
  45393. of the job, if necessary.
  45394. </li>
  45395. <li>
  45396. Copying the job's jar and configuration to the map-reduce system directory
  45397. on the distributed file-system.
  45398. </li>
  45399. <li>
  45400. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  45401. it's status.
  45402. </li>
  45403. </ol></p>
  45404. Normally the user creates the application, describes various facets of the
  45405. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  45406. the job and monitor its progress.
  45407. <p>Here is an example on how to use <code>JobClient</code>:</p>
  45408. <p><blockquote><pre>
  45409. // Create a new JobConf
  45410. JobConf job = new JobConf(new Configuration(), MyJob.class);
  45411. // Specify various job-specific parameters
  45412. job.setJobName("myjob");
  45413. job.setInputPath(new Path("in"));
  45414. job.setOutputPath(new Path("out"));
  45415. job.setMapperClass(MyJob.MyMapper.class);
  45416. job.setReducerClass(MyJob.MyReducer.class);
  45417. // Submit the job, then poll for progress until the job is complete
  45418. JobClient.runJob(job);
  45419. </pre></blockquote></p>
  45420. <h4 id="JobControl">Job Control</h4>
  45421. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  45422. which cannot be done via a single map-reduce job. This is fairly easy since
  45423. the output of the job, typically, goes to distributed file-system and that
  45424. can be used as the input for the next job.</p>
  45425. <p>However, this also means that the onus on ensuring jobs are complete
  45426. (success/failure) lies squarely on the clients. In such situations the
  45427. various job-control options are:
  45428. <ol>
  45429. <li>
  45430. {@link #runJob(JobConf)} : submits the job and returns only after
  45431. the job has completed.
  45432. </li>
  45433. <li>
  45434. {@link #submitJob(JobConf)} : only submits the job, then poll the
  45435. returned handle to the {@link RunningJob} to query status and make
  45436. scheduling decisions.
  45437. </li>
  45438. <li>
  45439. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  45440. on job-completion, thus avoiding polling.
  45441. </li>
  45442. </ol></p>
  45443. @see JobConf
  45444. @see ClusterStatus
  45445. @see Tool
  45446. @see DistributedCache]]>
  45447. </doc>
  45448. </class>
  45449. <!-- end class org.apache.hadoop.mapred.JobClient -->
  45450. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  45451. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  45452. abstract="false"
  45453. static="true" final="false" visibility="public"
  45454. deprecated="not deprecated">
  45455. <constructor name="JobClient.Renewer"
  45456. static="false" final="false" visibility="public"
  45457. deprecated="not deprecated">
  45458. </constructor>
  45459. <method name="handleKind" return="boolean"
  45460. abstract="false" native="false" synchronized="false"
  45461. static="false" final="false" visibility="public"
  45462. deprecated="not deprecated">
  45463. <param name="kind" type="org.apache.hadoop.io.Text"/>
  45464. </method>
  45465. <method name="renew" return="long"
  45466. abstract="false" native="false" synchronized="false"
  45467. static="false" final="false" visibility="public"
  45468. deprecated="not deprecated">
  45469. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45470. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45471. <exception name="IOException" type="java.io.IOException"/>
  45472. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45473. </method>
  45474. <method name="cancel"
  45475. abstract="false" native="false" synchronized="false"
  45476. static="false" final="false" visibility="public"
  45477. deprecated="not deprecated">
  45478. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45479. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45480. <exception name="IOException" type="java.io.IOException"/>
  45481. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45482. </method>
  45483. <method name="isManaged" return="boolean"
  45484. abstract="false" native="false" synchronized="false"
  45485. static="false" final="false" visibility="public"
  45486. deprecated="not deprecated">
  45487. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45488. <exception name="IOException" type="java.io.IOException"/>
  45489. </method>
  45490. </class>
  45491. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  45492. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  45493. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  45494. abstract="false"
  45495. static="true" final="true" visibility="public"
  45496. deprecated="not deprecated">
  45497. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  45498. abstract="false" native="false" synchronized="false"
  45499. static="true" final="false" visibility="public"
  45500. deprecated="not deprecated">
  45501. </method>
  45502. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45503. abstract="false" native="false" synchronized="false"
  45504. static="true" final="false" visibility="public"
  45505. deprecated="not deprecated">
  45506. <param name="name" type="java.lang.String"/>
  45507. </method>
  45508. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45509. transient="false" volatile="false"
  45510. static="true" final="true" visibility="public"
  45511. deprecated="not deprecated">
  45512. </field>
  45513. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45514. transient="false" volatile="false"
  45515. static="true" final="true" visibility="public"
  45516. deprecated="not deprecated">
  45517. </field>
  45518. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45519. transient="false" volatile="false"
  45520. static="true" final="true" visibility="public"
  45521. deprecated="not deprecated">
  45522. </field>
  45523. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45524. transient="false" volatile="false"
  45525. static="true" final="true" visibility="public"
  45526. deprecated="not deprecated">
  45527. </field>
  45528. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45529. transient="false" volatile="false"
  45530. static="true" final="true" visibility="public"
  45531. deprecated="not deprecated">
  45532. </field>
  45533. </class>
  45534. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  45535. <!-- start class org.apache.hadoop.mapred.JobConf -->
  45536. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  45537. abstract="false"
  45538. static="false" final="false" visibility="public"
  45539. deprecated="not deprecated">
  45540. <constructor name="JobConf"
  45541. static="false" final="false" visibility="public"
  45542. deprecated="not deprecated">
  45543. <doc>
  45544. <![CDATA[Construct a map/reduce job configuration.]]>
  45545. </doc>
  45546. </constructor>
  45547. <constructor name="JobConf" type="java.lang.Class"
  45548. static="false" final="false" visibility="public"
  45549. deprecated="not deprecated">
  45550. <doc>
  45551. <![CDATA[Construct a map/reduce job configuration.
  45552. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  45553. </doc>
  45554. </constructor>
  45555. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  45556. static="false" final="false" visibility="public"
  45557. deprecated="not deprecated">
  45558. <doc>
  45559. <![CDATA[Construct a map/reduce job configuration.
  45560. @param conf a Configuration whose settings will be inherited.]]>
  45561. </doc>
  45562. </constructor>
  45563. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  45564. static="false" final="false" visibility="public"
  45565. deprecated="not deprecated">
  45566. <doc>
  45567. <![CDATA[Construct a map/reduce job configuration.
  45568. @param conf a Configuration whose settings will be inherited.
  45569. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  45570. </doc>
  45571. </constructor>
  45572. <constructor name="JobConf" type="java.lang.String"
  45573. static="false" final="false" visibility="public"
  45574. deprecated="not deprecated">
  45575. <doc>
  45576. <![CDATA[Construct a map/reduce configuration.
  45577. @param config a Configuration-format XML job description file.]]>
  45578. </doc>
  45579. </constructor>
  45580. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  45581. static="false" final="false" visibility="public"
  45582. deprecated="not deprecated">
  45583. <doc>
  45584. <![CDATA[Construct a map/reduce configuration.
  45585. @param config a Configuration-format XML job description file.]]>
  45586. </doc>
  45587. </constructor>
  45588. <constructor name="JobConf" type="boolean"
  45589. static="false" final="false" visibility="public"
  45590. deprecated="not deprecated">
  45591. <doc>
  45592. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  45593. default resources can be turned off.
  45594. <p/>
  45595. If the parameter {@code loadDefaults} is false, the new instance
  45596. will not load resources from the default files.
  45597. @param loadDefaults specifies whether to load from the default files]]>
  45598. </doc>
  45599. </constructor>
  45600. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  45601. abstract="false" native="false" synchronized="false"
  45602. static="false" final="false" visibility="public"
  45603. deprecated="not deprecated">
  45604. <doc>
  45605. <![CDATA[Get credentials for the job.
  45606. @return credentials for the job]]>
  45607. </doc>
  45608. </method>
  45609. <method name="getJar" return="java.lang.String"
  45610. abstract="false" native="false" synchronized="false"
  45611. static="false" final="false" visibility="public"
  45612. deprecated="not deprecated">
  45613. <doc>
  45614. <![CDATA[Get the user jar for the map-reduce job.
  45615. @return the user jar for the map-reduce job.]]>
  45616. </doc>
  45617. </method>
  45618. <method name="setJar"
  45619. abstract="false" native="false" synchronized="false"
  45620. static="false" final="false" visibility="public"
  45621. deprecated="not deprecated">
  45622. <param name="jar" type="java.lang.String"/>
  45623. <doc>
  45624. <![CDATA[Set the user jar for the map-reduce job.
  45625. @param jar the user jar for the map-reduce job.]]>
  45626. </doc>
  45627. </method>
  45628. <method name="setJarByClass"
  45629. abstract="false" native="false" synchronized="false"
  45630. static="false" final="false" visibility="public"
  45631. deprecated="not deprecated">
  45632. <param name="cls" type="java.lang.Class"/>
  45633. <doc>
  45634. <![CDATA[Set the job's jar file by finding an example class location.
  45635. @param cls the example class.]]>
  45636. </doc>
  45637. </method>
  45638. <method name="getLocalDirs" return="java.lang.String[]"
  45639. abstract="false" native="false" synchronized="false"
  45640. static="false" final="false" visibility="public"
  45641. deprecated="not deprecated">
  45642. <exception name="IOException" type="java.io.IOException"/>
  45643. </method>
  45644. <method name="deleteLocalFiles"
  45645. abstract="false" native="false" synchronized="false"
  45646. static="false" final="false" visibility="public"
  45647. deprecated="not deprecated">
  45648. <exception name="IOException" type="java.io.IOException"/>
  45649. </method>
  45650. <method name="deleteLocalFiles"
  45651. abstract="false" native="false" synchronized="false"
  45652. static="false" final="false" visibility="public"
  45653. deprecated="not deprecated">
  45654. <param name="subdir" type="java.lang.String"/>
  45655. <exception name="IOException" type="java.io.IOException"/>
  45656. </method>
  45657. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  45658. abstract="false" native="false" synchronized="false"
  45659. static="false" final="false" visibility="public"
  45660. deprecated="not deprecated">
  45661. <param name="pathString" type="java.lang.String"/>
  45662. <exception name="IOException" type="java.io.IOException"/>
  45663. <doc>
  45664. <![CDATA[Constructs a local file name. Files are distributed among configured
  45665. local directories.]]>
  45666. </doc>
  45667. </method>
  45668. <method name="getUser" return="java.lang.String"
  45669. abstract="false" native="false" synchronized="false"
  45670. static="false" final="false" visibility="public"
  45671. deprecated="not deprecated">
  45672. <doc>
  45673. <![CDATA[Get the reported username for this job.
  45674. @return the username]]>
  45675. </doc>
  45676. </method>
  45677. <method name="setUser"
  45678. abstract="false" native="false" synchronized="false"
  45679. static="false" final="false" visibility="public"
  45680. deprecated="not deprecated">
  45681. <param name="user" type="java.lang.String"/>
  45682. <doc>
  45683. <![CDATA[Set the reported username for this job.
  45684. @param user the username for this job.]]>
  45685. </doc>
  45686. </method>
  45687. <method name="setKeepFailedTaskFiles"
  45688. abstract="false" native="false" synchronized="false"
  45689. static="false" final="false" visibility="public"
  45690. deprecated="not deprecated">
  45691. <param name="keep" type="boolean"/>
  45692. <doc>
  45693. <![CDATA[Set whether the framework should keep the intermediate files for
  45694. failed tasks.
  45695. @param keep <code>true</code> if framework should keep the intermediate files
  45696. for failed tasks, <code>false</code> otherwise.]]>
  45697. </doc>
  45698. </method>
  45699. <method name="getKeepFailedTaskFiles" return="boolean"
  45700. abstract="false" native="false" synchronized="false"
  45701. static="false" final="false" visibility="public"
  45702. deprecated="not deprecated">
  45703. <doc>
  45704. <![CDATA[Should the temporary files for failed tasks be kept?
  45705. @return should the files be kept?]]>
  45706. </doc>
  45707. </method>
  45708. <method name="setKeepTaskFilesPattern"
  45709. abstract="false" native="false" synchronized="false"
  45710. static="false" final="false" visibility="public"
  45711. deprecated="not deprecated">
  45712. <param name="pattern" type="java.lang.String"/>
  45713. <doc>
  45714. <![CDATA[Set a regular expression for task names that should be kept.
  45715. The regular expression ".*_m_000123_0" would keep the files
  45716. for the first instance of map 123 that ran.
  45717. @param pattern the java.util.regex.Pattern to match against the
  45718. task names.]]>
  45719. </doc>
  45720. </method>
  45721. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  45722. abstract="false" native="false" synchronized="false"
  45723. static="false" final="false" visibility="public"
  45724. deprecated="not deprecated">
  45725. <doc>
  45726. <![CDATA[Get the regular expression that is matched against the task names
  45727. to see if we need to keep the files.
  45728. @return the pattern as a string, if it was set, othewise null.]]>
  45729. </doc>
  45730. </method>
  45731. <method name="setWorkingDirectory"
  45732. abstract="false" native="false" synchronized="false"
  45733. static="false" final="false" visibility="public"
  45734. deprecated="not deprecated">
  45735. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  45736. <doc>
  45737. <![CDATA[Set the current working directory for the default file system.
  45738. @param dir the new current working directory.]]>
  45739. </doc>
  45740. </method>
  45741. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  45742. abstract="false" native="false" synchronized="false"
  45743. static="false" final="false" visibility="public"
  45744. deprecated="not deprecated">
  45745. <doc>
  45746. <![CDATA[Get the current working directory for the default file system.
  45747. @return the directory name.]]>
  45748. </doc>
  45749. </method>
  45750. <method name="setNumTasksToExecutePerJvm"
  45751. abstract="false" native="false" synchronized="false"
  45752. static="false" final="false" visibility="public"
  45753. deprecated="not deprecated">
  45754. <param name="numTasks" type="int"/>
  45755. <doc>
  45756. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  45757. before it exits
  45758. @param numTasks the number of tasks to execute; defaults to 1;
  45759. -1 signifies no limit]]>
  45760. </doc>
  45761. </method>
  45762. <method name="getNumTasksToExecutePerJvm" return="int"
  45763. abstract="false" native="false" synchronized="false"
  45764. static="false" final="false" visibility="public"
  45765. deprecated="not deprecated">
  45766. <doc>
  45767. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  45768. </doc>
  45769. </method>
  45770. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  45771. abstract="false" native="false" synchronized="false"
  45772. static="false" final="false" visibility="public"
  45773. deprecated="not deprecated">
  45774. <doc>
  45775. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  45776. defaults to {@link TextInputFormat} if not specified explicity.
  45777. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  45778. </doc>
  45779. </method>
  45780. <method name="setInputFormat"
  45781. abstract="false" native="false" synchronized="false"
  45782. static="false" final="false" visibility="public"
  45783. deprecated="not deprecated">
  45784. <param name="theClass" type="java.lang.Class"/>
  45785. <doc>
  45786. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  45787. @param theClass the {@link InputFormat} implementation for the map-reduce
  45788. job.]]>
  45789. </doc>
  45790. </method>
  45791. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  45792. abstract="false" native="false" synchronized="false"
  45793. static="false" final="false" visibility="public"
  45794. deprecated="not deprecated">
  45795. <doc>
  45796. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  45797. defaults to {@link TextOutputFormat} if not specified explicity.
  45798. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  45799. </doc>
  45800. </method>
  45801. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  45802. abstract="false" native="false" synchronized="false"
  45803. static="false" final="false" visibility="public"
  45804. deprecated="not deprecated">
  45805. <doc>
  45806. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  45807. defaults to {@link FileOutputCommitter} if not specified explicitly.
  45808. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  45809. </doc>
  45810. </method>
  45811. <method name="setOutputCommitter"
  45812. abstract="false" native="false" synchronized="false"
  45813. static="false" final="false" visibility="public"
  45814. deprecated="not deprecated">
  45815. <param name="theClass" type="java.lang.Class"/>
  45816. <doc>
  45817. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  45818. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  45819. job.]]>
  45820. </doc>
  45821. </method>
  45822. <method name="setOutputFormat"
  45823. abstract="false" native="false" synchronized="false"
  45824. static="false" final="false" visibility="public"
  45825. deprecated="not deprecated">
  45826. <param name="theClass" type="java.lang.Class"/>
  45827. <doc>
  45828. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  45829. @param theClass the {@link OutputFormat} implementation for the map-reduce
  45830. job.]]>
  45831. </doc>
  45832. </method>
  45833. <method name="setCompressMapOutput"
  45834. abstract="false" native="false" synchronized="false"
  45835. static="false" final="false" visibility="public"
  45836. deprecated="not deprecated">
  45837. <param name="compress" type="boolean"/>
  45838. <doc>
  45839. <![CDATA[Should the map outputs be compressed before transfer?
  45840. Uses the SequenceFile compression.
  45841. @param compress should the map outputs be compressed?]]>
  45842. </doc>
  45843. </method>
  45844. <method name="getCompressMapOutput" return="boolean"
  45845. abstract="false" native="false" synchronized="false"
  45846. static="false" final="false" visibility="public"
  45847. deprecated="not deprecated">
  45848. <doc>
  45849. <![CDATA[Are the outputs of the maps be compressed?
  45850. @return <code>true</code> if the outputs of the maps are to be compressed,
  45851. <code>false</code> otherwise.]]>
  45852. </doc>
  45853. </method>
  45854. <method name="setMapOutputCompressorClass"
  45855. abstract="false" native="false" synchronized="false"
  45856. static="false" final="false" visibility="public"
  45857. deprecated="not deprecated">
  45858. <param name="codecClass" type="java.lang.Class"/>
  45859. <doc>
  45860. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  45861. @param codecClass the {@link CompressionCodec} class that will compress
  45862. the map outputs.]]>
  45863. </doc>
  45864. </method>
  45865. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  45866. abstract="false" native="false" synchronized="false"
  45867. static="false" final="false" visibility="public"
  45868. deprecated="not deprecated">
  45869. <param name="defaultValue" type="java.lang.Class"/>
  45870. <doc>
  45871. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  45872. @param defaultValue the {@link CompressionCodec} to return if not set
  45873. @return the {@link CompressionCodec} class that should be used to compress the
  45874. map outputs.
  45875. @throws IllegalArgumentException if the class was specified, but not found]]>
  45876. </doc>
  45877. </method>
  45878. <method name="getMapOutputKeyClass" return="java.lang.Class"
  45879. abstract="false" native="false" synchronized="false"
  45880. static="false" final="false" visibility="public"
  45881. deprecated="not deprecated">
  45882. <doc>
  45883. <![CDATA[Get the key class for the map output data. If it is not set, use the
  45884. (final) output key class. This allows the map output key class to be
  45885. different than the final output key class.
  45886. @return the map output key class.]]>
  45887. </doc>
  45888. </method>
  45889. <method name="setMapOutputKeyClass"
  45890. abstract="false" native="false" synchronized="false"
  45891. static="false" final="false" visibility="public"
  45892. deprecated="not deprecated">
  45893. <param name="theClass" type="java.lang.Class"/>
  45894. <doc>
  45895. <![CDATA[Set the key class for the map output data. This allows the user to
  45896. specify the map output key class to be different than the final output
  45897. value class.
  45898. @param theClass the map output key class.]]>
  45899. </doc>
  45900. </method>
  45901. <method name="getMapOutputValueClass" return="java.lang.Class"
  45902. abstract="false" native="false" synchronized="false"
  45903. static="false" final="false" visibility="public"
  45904. deprecated="not deprecated">
  45905. <doc>
  45906. <![CDATA[Get the value class for the map output data. If it is not set, use the
  45907. (final) output value class This allows the map output value class to be
  45908. different than the final output value class.
  45909. @return the map output value class.]]>
  45910. </doc>
  45911. </method>
  45912. <method name="setMapOutputValueClass"
  45913. abstract="false" native="false" synchronized="false"
  45914. static="false" final="false" visibility="public"
  45915. deprecated="not deprecated">
  45916. <param name="theClass" type="java.lang.Class"/>
  45917. <doc>
  45918. <![CDATA[Set the value class for the map output data. This allows the user to
  45919. specify the map output value class to be different than the final output
  45920. value class.
  45921. @param theClass the map output value class.]]>
  45922. </doc>
  45923. </method>
  45924. <method name="getOutputKeyClass" return="java.lang.Class"
  45925. abstract="false" native="false" synchronized="false"
  45926. static="false" final="false" visibility="public"
  45927. deprecated="not deprecated">
  45928. <doc>
  45929. <![CDATA[Get the key class for the job output data.
  45930. @return the key class for the job output data.]]>
  45931. </doc>
  45932. </method>
  45933. <method name="setOutputKeyClass"
  45934. abstract="false" native="false" synchronized="false"
  45935. static="false" final="false" visibility="public"
  45936. deprecated="not deprecated">
  45937. <param name="theClass" type="java.lang.Class"/>
  45938. <doc>
  45939. <![CDATA[Set the key class for the job output data.
  45940. @param theClass the key class for the job output data.]]>
  45941. </doc>
  45942. </method>
  45943. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  45944. abstract="false" native="false" synchronized="false"
  45945. static="false" final="false" visibility="public"
  45946. deprecated="not deprecated">
  45947. <doc>
  45948. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  45949. @return the {@link RawComparator} comparator used to compare keys.]]>
  45950. </doc>
  45951. </method>
  45952. <method name="setOutputKeyComparatorClass"
  45953. abstract="false" native="false" synchronized="false"
  45954. static="false" final="false" visibility="public"
  45955. deprecated="not deprecated">
  45956. <param name="theClass" type="java.lang.Class"/>
  45957. <doc>
  45958. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  45959. @param theClass the {@link RawComparator} comparator used to
  45960. compare keys.
  45961. @see #setOutputValueGroupingComparator(Class)]]>
  45962. </doc>
  45963. </method>
  45964. <method name="setKeyFieldComparatorOptions"
  45965. abstract="false" native="false" synchronized="false"
  45966. static="false" final="false" visibility="public"
  45967. deprecated="not deprecated">
  45968. <param name="keySpec" type="java.lang.String"/>
  45969. <doc>
  45970. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  45971. @param keySpec the key specification of the form -k pos1[,pos2], where,
  45972. pos is of the form f[.c][opts], where f is the number
  45973. of the key field to use, and c is the number of the first character from
  45974. the beginning of the field. Fields and character posns are numbered
  45975. starting with 1; a character position of zero in pos2 indicates the
  45976. field's last character. If '.c' is omitted from pos1, it defaults to 1
  45977. (the beginning of the field); if omitted from pos2, it defaults to 0
  45978. (the end of the field). opts are ordering options. The supported options
  45979. are:
  45980. -n, (Sort numerically)
  45981. -r, (Reverse the result of comparison)]]>
  45982. </doc>
  45983. </method>
  45984. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  45985. abstract="false" native="false" synchronized="false"
  45986. static="false" final="false" visibility="public"
  45987. deprecated="not deprecated">
  45988. <doc>
  45989. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  45990. </doc>
  45991. </method>
  45992. <method name="setKeyFieldPartitionerOptions"
  45993. abstract="false" native="false" synchronized="false"
  45994. static="false" final="false" visibility="public"
  45995. deprecated="not deprecated">
  45996. <param name="keySpec" type="java.lang.String"/>
  45997. <doc>
  45998. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  45999. {@link Partitioner}
  46000. @param keySpec the key specification of the form -k pos1[,pos2], where,
  46001. pos is of the form f[.c][opts], where f is the number
  46002. of the key field to use, and c is the number of the first character from
  46003. the beginning of the field. Fields and character posns are numbered
  46004. starting with 1; a character position of zero in pos2 indicates the
  46005. field's last character. If '.c' is omitted from pos1, it defaults to 1
  46006. (the beginning of the field); if omitted from pos2, it defaults to 0
  46007. (the end of the field).]]>
  46008. </doc>
  46009. </method>
  46010. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  46011. abstract="false" native="false" synchronized="false"
  46012. static="false" final="false" visibility="public"
  46013. deprecated="not deprecated">
  46014. <doc>
  46015. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  46016. </doc>
  46017. </method>
  46018. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  46019. abstract="false" native="false" synchronized="false"
  46020. static="false" final="false" visibility="public"
  46021. deprecated="not deprecated">
  46022. <doc>
  46023. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  46024. grouping keys of inputs to the reduce.
  46025. @return comparator set by the user for grouping values.
  46026. @see #setOutputValueGroupingComparator(Class) for details.]]>
  46027. </doc>
  46028. </method>
  46029. <method name="setOutputValueGroupingComparator"
  46030. abstract="false" native="false" synchronized="false"
  46031. static="false" final="false" visibility="public"
  46032. deprecated="not deprecated">
  46033. <param name="theClass" type="java.lang.Class"/>
  46034. <doc>
  46035. <![CDATA[Set the user defined {@link RawComparator} comparator for
  46036. grouping keys in the input to the reduce.
  46037. <p>This comparator should be provided if the equivalence rules for keys
  46038. for sorting the intermediates are different from those for grouping keys
  46039. before each call to
  46040. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  46041. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  46042. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  46043. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  46044. how keys are sorted, this can be used in conjunction to simulate
  46045. <i>secondary sort on values</i>.</p>
  46046. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  46047. <i>stable</i> in any sense. (In any case, with the order of available
  46048. map-outputs to the reduce being non-deterministic, it wouldn't make
  46049. that much sense.)</p>
  46050. @param theClass the comparator class to be used for grouping keys.
  46051. It should implement <code>RawComparator</code>.
  46052. @see #setOutputKeyComparatorClass(Class)]]>
  46053. </doc>
  46054. </method>
  46055. <method name="getUseNewMapper" return="boolean"
  46056. abstract="false" native="false" synchronized="false"
  46057. static="false" final="false" visibility="public"
  46058. deprecated="not deprecated">
  46059. <doc>
  46060. <![CDATA[Should the framework use the new context-object code for running
  46061. the mapper?
  46062. @return true, if the new api should be used]]>
  46063. </doc>
  46064. </method>
  46065. <method name="setUseNewMapper"
  46066. abstract="false" native="false" synchronized="false"
  46067. static="false" final="false" visibility="public"
  46068. deprecated="not deprecated">
  46069. <param name="flag" type="boolean"/>
  46070. <doc>
  46071. <![CDATA[Set whether the framework should use the new api for the mapper.
  46072. This is the default for jobs submitted with the new Job api.
  46073. @param flag true, if the new api should be used]]>
  46074. </doc>
  46075. </method>
  46076. <method name="getUseNewReducer" return="boolean"
  46077. abstract="false" native="false" synchronized="false"
  46078. static="false" final="false" visibility="public"
  46079. deprecated="not deprecated">
  46080. <doc>
  46081. <![CDATA[Should the framework use the new context-object code for running
  46082. the reducer?
  46083. @return true, if the new api should be used]]>
  46084. </doc>
  46085. </method>
  46086. <method name="setUseNewReducer"
  46087. abstract="false" native="false" synchronized="false"
  46088. static="false" final="false" visibility="public"
  46089. deprecated="not deprecated">
  46090. <param name="flag" type="boolean"/>
  46091. <doc>
  46092. <![CDATA[Set whether the framework should use the new api for the reducer.
  46093. This is the default for jobs submitted with the new Job api.
  46094. @param flag true, if the new api should be used]]>
  46095. </doc>
  46096. </method>
  46097. <method name="getOutputValueClass" return="java.lang.Class"
  46098. abstract="false" native="false" synchronized="false"
  46099. static="false" final="false" visibility="public"
  46100. deprecated="not deprecated">
  46101. <doc>
  46102. <![CDATA[Get the value class for job outputs.
  46103. @return the value class for job outputs.]]>
  46104. </doc>
  46105. </method>
  46106. <method name="setOutputValueClass"
  46107. abstract="false" native="false" synchronized="false"
  46108. static="false" final="false" visibility="public"
  46109. deprecated="not deprecated">
  46110. <param name="theClass" type="java.lang.Class"/>
  46111. <doc>
  46112. <![CDATA[Set the value class for job outputs.
  46113. @param theClass the value class for job outputs.]]>
  46114. </doc>
  46115. </method>
  46116. <method name="getMapperClass" return="java.lang.Class"
  46117. abstract="false" native="false" synchronized="false"
  46118. static="false" final="false" visibility="public"
  46119. deprecated="not deprecated">
  46120. <doc>
  46121. <![CDATA[Get the {@link Mapper} class for the job.
  46122. @return the {@link Mapper} class for the job.]]>
  46123. </doc>
  46124. </method>
  46125. <method name="setMapperClass"
  46126. abstract="false" native="false" synchronized="false"
  46127. static="false" final="false" visibility="public"
  46128. deprecated="not deprecated">
  46129. <param name="theClass" type="java.lang.Class"/>
  46130. <doc>
  46131. <![CDATA[Set the {@link Mapper} class for the job.
  46132. @param theClass the {@link Mapper} class for the job.]]>
  46133. </doc>
  46134. </method>
  46135. <method name="getMapRunnerClass" return="java.lang.Class"
  46136. abstract="false" native="false" synchronized="false"
  46137. static="false" final="false" visibility="public"
  46138. deprecated="not deprecated">
  46139. <doc>
  46140. <![CDATA[Get the {@link MapRunnable} class for the job.
  46141. @return the {@link MapRunnable} class for the job.]]>
  46142. </doc>
  46143. </method>
  46144. <method name="setMapRunnerClass"
  46145. abstract="false" native="false" synchronized="false"
  46146. static="false" final="false" visibility="public"
  46147. deprecated="not deprecated">
  46148. <param name="theClass" type="java.lang.Class"/>
  46149. <doc>
  46150. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  46151. Typically used to exert greater control on {@link Mapper}s.
  46152. @param theClass the {@link MapRunnable} class for the job.]]>
  46153. </doc>
  46154. </method>
  46155. <method name="getPartitionerClass" return="java.lang.Class"
  46156. abstract="false" native="false" synchronized="false"
  46157. static="false" final="false" visibility="public"
  46158. deprecated="not deprecated">
  46159. <doc>
  46160. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  46161. to be sent to the {@link Reducer}s.
  46162. @return the {@link Partitioner} used to partition map-outputs.]]>
  46163. </doc>
  46164. </method>
  46165. <method name="setPartitionerClass"
  46166. abstract="false" native="false" synchronized="false"
  46167. static="false" final="false" visibility="public"
  46168. deprecated="not deprecated">
  46169. <param name="theClass" type="java.lang.Class"/>
  46170. <doc>
  46171. <![CDATA[Set the {@link Partitioner} class used to partition
  46172. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  46173. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  46174. </doc>
  46175. </method>
  46176. <method name="getReducerClass" return="java.lang.Class"
  46177. abstract="false" native="false" synchronized="false"
  46178. static="false" final="false" visibility="public"
  46179. deprecated="not deprecated">
  46180. <doc>
  46181. <![CDATA[Get the {@link Reducer} class for the job.
  46182. @return the {@link Reducer} class for the job.]]>
  46183. </doc>
  46184. </method>
  46185. <method name="setReducerClass"
  46186. abstract="false" native="false" synchronized="false"
  46187. static="false" final="false" visibility="public"
  46188. deprecated="not deprecated">
  46189. <param name="theClass" type="java.lang.Class"/>
  46190. <doc>
  46191. <![CDATA[Set the {@link Reducer} class for the job.
  46192. @param theClass the {@link Reducer} class for the job.]]>
  46193. </doc>
  46194. </method>
  46195. <method name="getCombinerClass" return="java.lang.Class"
  46196. abstract="false" native="false" synchronized="false"
  46197. static="false" final="false" visibility="public"
  46198. deprecated="not deprecated">
  46199. <doc>
  46200. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  46201. before being sent to the reducers. Typically the combiner is same as the
  46202. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  46203. @return the user-defined combiner class used to combine map-outputs.]]>
  46204. </doc>
  46205. </method>
  46206. <method name="setCombinerClass"
  46207. abstract="false" native="false" synchronized="false"
  46208. static="false" final="false" visibility="public"
  46209. deprecated="not deprecated">
  46210. <param name="theClass" type="java.lang.Class"/>
  46211. <doc>
  46212. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  46213. before being sent to the reducers.
  46214. <p>The combiner is an application-specified aggregation operation, which
  46215. can help cut down the amount of data transferred between the
  46216. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  46217. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  46218. the mapper and reducer tasks. In general, the combiner is called as the
  46219. sort/merge result is written to disk. The combiner must:
  46220. <ul>
  46221. <li> be side-effect free</li>
  46222. <li> have the same input and output key types and the same input and
  46223. output value types</li>
  46224. </ul></p>
  46225. <p>Typically the combiner is same as the <code>Reducer</code> for the
  46226. job i.e. {@link #setReducerClass(Class)}.</p>
  46227. @param theClass the user-defined combiner class used to combine
  46228. map-outputs.]]>
  46229. </doc>
  46230. </method>
  46231. <method name="getSpeculativeExecution" return="boolean"
  46232. abstract="false" native="false" synchronized="false"
  46233. static="false" final="false" visibility="public"
  46234. deprecated="not deprecated">
  46235. <doc>
  46236. <![CDATA[Should speculative execution be used for this job?
  46237. Defaults to <code>true</code>.
  46238. @return <code>true</code> if speculative execution be used for this job,
  46239. <code>false</code> otherwise.]]>
  46240. </doc>
  46241. </method>
  46242. <method name="setSpeculativeExecution"
  46243. abstract="false" native="false" synchronized="false"
  46244. static="false" final="false" visibility="public"
  46245. deprecated="not deprecated">
  46246. <param name="speculativeExecution" type="boolean"/>
  46247. <doc>
  46248. <![CDATA[Turn speculative execution on or off for this job.
  46249. @param speculativeExecution <code>true</code> if speculative execution
  46250. should be turned on, else <code>false</code>.]]>
  46251. </doc>
  46252. </method>
  46253. <method name="getMapSpeculativeExecution" return="boolean"
  46254. abstract="false" native="false" synchronized="false"
  46255. static="false" final="false" visibility="public"
  46256. deprecated="not deprecated">
  46257. <doc>
  46258. <![CDATA[Should speculative execution be used for this job for map tasks?
  46259. Defaults to <code>true</code>.
  46260. @return <code>true</code> if speculative execution be
  46261. used for this job for map tasks,
  46262. <code>false</code> otherwise.]]>
  46263. </doc>
  46264. </method>
  46265. <method name="setMapSpeculativeExecution"
  46266. abstract="false" native="false" synchronized="false"
  46267. static="false" final="false" visibility="public"
  46268. deprecated="not deprecated">
  46269. <param name="speculativeExecution" type="boolean"/>
  46270. <doc>
  46271. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  46272. @param speculativeExecution <code>true</code> if speculative execution
  46273. should be turned on for map tasks,
  46274. else <code>false</code>.]]>
  46275. </doc>
  46276. </method>
  46277. <method name="getReduceSpeculativeExecution" return="boolean"
  46278. abstract="false" native="false" synchronized="false"
  46279. static="false" final="false" visibility="public"
  46280. deprecated="not deprecated">
  46281. <doc>
  46282. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  46283. Defaults to <code>true</code>.
  46284. @return <code>true</code> if speculative execution be used
  46285. for reduce tasks for this job,
  46286. <code>false</code> otherwise.]]>
  46287. </doc>
  46288. </method>
  46289. <method name="setReduceSpeculativeExecution"
  46290. abstract="false" native="false" synchronized="false"
  46291. static="false" final="false" visibility="public"
  46292. deprecated="not deprecated">
  46293. <param name="speculativeExecution" type="boolean"/>
  46294. <doc>
  46295. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  46296. @param speculativeExecution <code>true</code> if speculative execution
  46297. should be turned on for reduce tasks,
  46298. else <code>false</code>.]]>
  46299. </doc>
  46300. </method>
  46301. <method name="getNumMapTasks" return="int"
  46302. abstract="false" native="false" synchronized="false"
  46303. static="false" final="false" visibility="public"
  46304. deprecated="not deprecated">
  46305. <doc>
  46306. <![CDATA[Get configured the number of reduce tasks for this job.
  46307. Defaults to <code>1</code>.
  46308. @return the number of reduce tasks for this job.]]>
  46309. </doc>
  46310. </method>
  46311. <method name="setNumMapTasks"
  46312. abstract="false" native="false" synchronized="false"
  46313. static="false" final="false" visibility="public"
  46314. deprecated="not deprecated">
  46315. <param name="n" type="int"/>
  46316. <doc>
  46317. <![CDATA[Set the number of map tasks for this job.
  46318. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  46319. number of spawned map tasks depends on the number of {@link InputSplit}s
  46320. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  46321. A custom {@link InputFormat} is typically used to accurately control
  46322. the number of map tasks for the job.</p>
  46323. <h4 id="NoOfMaps">How many maps?</h4>
  46324. <p>The number of maps is usually driven by the total size of the inputs
  46325. i.e. total number of blocks of the input files.</p>
  46326. <p>The right level of parallelism for maps seems to be around 10-100 maps
  46327. per-node, although it has been set up to 300 or so for very cpu-light map
  46328. tasks. Task setup takes awhile, so it is best if the maps take at least a
  46329. minute to execute.</p>
  46330. <p>The default behavior of file-based {@link InputFormat}s is to split the
  46331. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  46332. bytes, of input files. However, the {@link FileSystem} blocksize of the
  46333. input files is treated as an upper bound for input splits. A lower bound
  46334. on the split size can be set via
  46335. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  46336. mapred.min.split.size</a>.</p>
  46337. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  46338. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  46339. used to set it even higher.</p>
  46340. @param n the number of map tasks for this job.
  46341. @see InputFormat#getSplits(JobConf, int)
  46342. @see FileInputFormat
  46343. @see FileSystem#getDefaultBlockSize()
  46344. @see FileStatus#getBlockSize()]]>
  46345. </doc>
  46346. </method>
  46347. <method name="getNumReduceTasks" return="int"
  46348. abstract="false" native="false" synchronized="false"
  46349. static="false" final="false" visibility="public"
  46350. deprecated="not deprecated">
  46351. <doc>
  46352. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  46353. <code>1</code>.
  46354. @return the number of reduce tasks for this job.]]>
  46355. </doc>
  46356. </method>
  46357. <method name="setNumReduceTasks"
  46358. abstract="false" native="false" synchronized="false"
  46359. static="false" final="false" visibility="public"
  46360. deprecated="not deprecated">
  46361. <param name="n" type="int"/>
  46362. <doc>
  46363. <![CDATA[Set the requisite number of reduce tasks for this job.
  46364. <h4 id="NoOfReduces">How many reduces?</h4>
  46365. <p>The right number of reduces seems to be <code>0.95</code> or
  46366. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  46367. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  46368. mapred.tasktracker.reduce.tasks.maximum</a>).
  46369. </p>
  46370. <p>With <code>0.95</code> all of the reduces can launch immediately and
  46371. start transfering map outputs as the maps finish. With <code>1.75</code>
  46372. the faster nodes will finish their first round of reduces and launch a
  46373. second wave of reduces doing a much better job of load balancing.</p>
  46374. <p>Increasing the number of reduces increases the framework overhead, but
  46375. increases load balancing and lowers the cost of failures.</p>
  46376. <p>The scaling factors above are slightly less than whole numbers to
  46377. reserve a few reduce slots in the framework for speculative-tasks, failures
  46378. etc.</p>
  46379. <h4 id="ReducerNone">Reducer NONE</h4>
  46380. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  46381. <p>In this case the output of the map-tasks directly go to distributed
  46382. file-system, to the path set by
  46383. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  46384. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  46385. @param n the number of reduce tasks for this job.]]>
  46386. </doc>
  46387. </method>
  46388. <method name="getMaxMapAttempts" return="int"
  46389. abstract="false" native="false" synchronized="false"
  46390. static="false" final="false" visibility="public"
  46391. deprecated="not deprecated">
  46392. <doc>
  46393. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46394. map task, as specified by the <code>mapred.map.max.attempts</code>
  46395. property. If this property is not already set, the default is 4 attempts.
  46396. @return the max number of attempts per map task.]]>
  46397. </doc>
  46398. </method>
  46399. <method name="setMaxMapAttempts"
  46400. abstract="false" native="false" synchronized="false"
  46401. static="false" final="false" visibility="public"
  46402. deprecated="not deprecated">
  46403. <param name="n" type="int"/>
  46404. <doc>
  46405. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46406. map task.
  46407. @param n the number of attempts per map task.]]>
  46408. </doc>
  46409. </method>
  46410. <method name="getMaxReduceAttempts" return="int"
  46411. abstract="false" native="false" synchronized="false"
  46412. static="false" final="false" visibility="public"
  46413. deprecated="not deprecated">
  46414. <doc>
  46415. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46416. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  46417. property. If this property is not already set, the default is 4 attempts.
  46418. @return the max number of attempts per reduce task.]]>
  46419. </doc>
  46420. </method>
  46421. <method name="setMaxReduceAttempts"
  46422. abstract="false" native="false" synchronized="false"
  46423. static="false" final="false" visibility="public"
  46424. deprecated="not deprecated">
  46425. <param name="n" type="int"/>
  46426. <doc>
  46427. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46428. reduce task.
  46429. @param n the number of attempts per reduce task.]]>
  46430. </doc>
  46431. </method>
  46432. <method name="getJobName" return="java.lang.String"
  46433. abstract="false" native="false" synchronized="false"
  46434. static="false" final="false" visibility="public"
  46435. deprecated="not deprecated">
  46436. <doc>
  46437. <![CDATA[Get the user-specified job name. This is only used to identify the
  46438. job to the user.
  46439. @return the job's name, defaulting to "".]]>
  46440. </doc>
  46441. </method>
  46442. <method name="setJobName"
  46443. abstract="false" native="false" synchronized="false"
  46444. static="false" final="false" visibility="public"
  46445. deprecated="not deprecated">
  46446. <param name="name" type="java.lang.String"/>
  46447. <doc>
  46448. <![CDATA[Set the user-specified job name.
  46449. @param name the job's new name.]]>
  46450. </doc>
  46451. </method>
  46452. <method name="getSessionId" return="java.lang.String"
  46453. abstract="false" native="false" synchronized="false"
  46454. static="false" final="false" visibility="public"
  46455. deprecated="not deprecated">
  46456. <doc>
  46457. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  46458. The session identifier is used to tag metric data that is reported to some
  46459. performance metrics system via the org.apache.hadoop.metrics API. The
  46460. session identifier is intended, in particular, for use by Hadoop-On-Demand
  46461. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  46462. HOD will set the session identifier by modifying the mapred-site.xml file
  46463. before starting the cluster.
  46464. When not running under HOD, this identifer is expected to remain set to
  46465. the empty string.
  46466. @return the session identifier, defaulting to "".]]>
  46467. </doc>
  46468. </method>
  46469. <method name="setSessionId"
  46470. abstract="false" native="false" synchronized="false"
  46471. static="false" final="false" visibility="public"
  46472. deprecated="not deprecated">
  46473. <param name="sessionId" type="java.lang.String"/>
  46474. <doc>
  46475. <![CDATA[Set the user-specified session identifier.
  46476. @param sessionId the new session id.]]>
  46477. </doc>
  46478. </method>
  46479. <method name="setMaxTaskFailuresPerTracker"
  46480. abstract="false" native="false" synchronized="false"
  46481. static="false" final="false" visibility="public"
  46482. deprecated="not deprecated">
  46483. <param name="noFailures" type="int"/>
  46484. <doc>
  46485. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  46486. If the no. of task failures exceeds <code>noFailures</code>, the
  46487. tasktracker is <i>blacklisted</i> for this job.
  46488. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  46489. </doc>
  46490. </method>
  46491. <method name="getMaxTaskFailuresPerTracker" return="int"
  46492. abstract="false" native="false" synchronized="false"
  46493. static="false" final="false" visibility="public"
  46494. deprecated="not deprecated">
  46495. <doc>
  46496. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  46497. If the no. of task failures exceeds this, the tasktracker is
  46498. <i>blacklisted</i> for this job.
  46499. @return the maximum no. of failures of a given job per tasktracker.]]>
  46500. </doc>
  46501. </method>
  46502. <method name="getMaxMapTaskFailuresPercent" return="int"
  46503. abstract="false" native="false" synchronized="false"
  46504. static="false" final="false" visibility="public"
  46505. deprecated="not deprecated">
  46506. <doc>
  46507. <![CDATA[Get the maximum percentage of map tasks that can fail without
  46508. the job being aborted.
  46509. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  46510. attempts before being declared as <i>failed</i>.
  46511. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  46512. the job being declared as {@link JobStatus#FAILED}.
  46513. @return the maximum percentage of map tasks that can fail without
  46514. the job being aborted.]]>
  46515. </doc>
  46516. </method>
  46517. <method name="setMaxMapTaskFailuresPercent"
  46518. abstract="false" native="false" synchronized="false"
  46519. static="false" final="false" visibility="public"
  46520. deprecated="not deprecated">
  46521. <param name="percent" type="int"/>
  46522. <doc>
  46523. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  46524. job being aborted.
  46525. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  46526. before being declared as <i>failed</i>.
  46527. @param percent the maximum percentage of map tasks that can fail without
  46528. the job being aborted.]]>
  46529. </doc>
  46530. </method>
  46531. <method name="getMaxReduceTaskFailuresPercent" return="int"
  46532. abstract="false" native="false" synchronized="false"
  46533. static="false" final="false" visibility="public"
  46534. deprecated="not deprecated">
  46535. <doc>
  46536. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  46537. the job being aborted.
  46538. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  46539. attempts before being declared as <i>failed</i>.
  46540. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  46541. in the job being declared as {@link JobStatus#FAILED}.
  46542. @return the maximum percentage of reduce tasks that can fail without
  46543. the job being aborted.]]>
  46544. </doc>
  46545. </method>
  46546. <method name="setMaxReduceTaskFailuresPercent"
  46547. abstract="false" native="false" synchronized="false"
  46548. static="false" final="false" visibility="public"
  46549. deprecated="not deprecated">
  46550. <param name="percent" type="int"/>
  46551. <doc>
  46552. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  46553. being aborted.
  46554. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  46555. attempts before being declared as <i>failed</i>.
  46556. @param percent the maximum percentage of reduce tasks that can fail without
  46557. the job being aborted.]]>
  46558. </doc>
  46559. </method>
  46560. <method name="setJobPriority"
  46561. abstract="false" native="false" synchronized="false"
  46562. static="false" final="false" visibility="public"
  46563. deprecated="not deprecated">
  46564. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  46565. <doc>
  46566. <![CDATA[Set {@link JobPriority} for this job.
  46567. @param prio the {@link JobPriority} for this job.]]>
  46568. </doc>
  46569. </method>
  46570. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  46571. abstract="false" native="false" synchronized="false"
  46572. static="false" final="false" visibility="public"
  46573. deprecated="not deprecated">
  46574. <doc>
  46575. <![CDATA[Get the {@link JobPriority} for this job.
  46576. @return the {@link JobPriority} for this job.]]>
  46577. </doc>
  46578. </method>
  46579. <method name="getProfileEnabled" return="boolean"
  46580. abstract="false" native="false" synchronized="false"
  46581. static="false" final="false" visibility="public"
  46582. deprecated="not deprecated">
  46583. <doc>
  46584. <![CDATA[Get whether the task profiling is enabled.
  46585. @return true if some tasks will be profiled]]>
  46586. </doc>
  46587. </method>
  46588. <method name="setProfileEnabled"
  46589. abstract="false" native="false" synchronized="false"
  46590. static="false" final="false" visibility="public"
  46591. deprecated="not deprecated">
  46592. <param name="newValue" type="boolean"/>
  46593. <doc>
  46594. <![CDATA[Set whether the system should collect profiler information for some of
  46595. the tasks in this job? The information is stored in the user log
  46596. directory.
  46597. @param newValue true means it should be gathered]]>
  46598. </doc>
  46599. </method>
  46600. <method name="getProfileParams" return="java.lang.String"
  46601. abstract="false" native="false" synchronized="false"
  46602. static="false" final="false" visibility="public"
  46603. deprecated="not deprecated">
  46604. <doc>
  46605. <![CDATA[Get the profiler configuration arguments.
  46606. The default value for this property is
  46607. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  46608. @return the parameters to pass to the task child to configure profiling]]>
  46609. </doc>
  46610. </method>
  46611. <method name="setProfileParams"
  46612. abstract="false" native="false" synchronized="false"
  46613. static="false" final="false" visibility="public"
  46614. deprecated="not deprecated">
  46615. <param name="value" type="java.lang.String"/>
  46616. <doc>
  46617. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  46618. will be replaced with the name of the profiling output file when the task
  46619. runs.
  46620. This value is passed to the task child JVM on the command line.
  46621. @param value the configuration string]]>
  46622. </doc>
  46623. </method>
  46624. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  46625. abstract="false" native="false" synchronized="false"
  46626. static="false" final="false" visibility="public"
  46627. deprecated="not deprecated">
  46628. <param name="isMap" type="boolean"/>
  46629. <doc>
  46630. <![CDATA[Get the range of maps or reduces to profile.
  46631. @param isMap is the task a map?
  46632. @return the task ranges]]>
  46633. </doc>
  46634. </method>
  46635. <method name="setProfileTaskRange"
  46636. abstract="false" native="false" synchronized="false"
  46637. static="false" final="false" visibility="public"
  46638. deprecated="not deprecated">
  46639. <param name="isMap" type="boolean"/>
  46640. <param name="newValue" type="java.lang.String"/>
  46641. <doc>
  46642. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  46643. must also be called.
  46644. @param newValue a set of integer ranges of the map ids]]>
  46645. </doc>
  46646. </method>
  46647. <method name="setMapDebugScript"
  46648. abstract="false" native="false" synchronized="false"
  46649. static="false" final="false" visibility="public"
  46650. deprecated="not deprecated">
  46651. <param name="mDbgScript" type="java.lang.String"/>
  46652. <doc>
  46653. <![CDATA[Set the debug script to run when the map tasks fail.
  46654. <p>The debug script can aid debugging of failed map tasks. The script is
  46655. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  46656. <p>The debug command, run on the node where the map failed, is:</p>
  46657. <p><pre><blockquote>
  46658. $script $stdout $stderr $syslog $jobconf.
  46659. </blockquote></pre></p>
  46660. <p> The script file is distributed through {@link DistributedCache}
  46661. APIs. The script needs to be symlinked. </p>
  46662. <p>Here is an example on how to submit a script
  46663. <p><blockquote><pre>
  46664. job.setMapDebugScript("./myscript");
  46665. DistributedCache.createSymlink(job);
  46666. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  46667. </pre></blockquote></p>
  46668. @param mDbgScript the script name]]>
  46669. </doc>
  46670. </method>
  46671. <method name="getMapDebugScript" return="java.lang.String"
  46672. abstract="false" native="false" synchronized="false"
  46673. static="false" final="false" visibility="public"
  46674. deprecated="not deprecated">
  46675. <doc>
  46676. <![CDATA[Get the map task's debug script.
  46677. @return the debug Script for the mapred job for failed map tasks.
  46678. @see #setMapDebugScript(String)]]>
  46679. </doc>
  46680. </method>
  46681. <method name="setReduceDebugScript"
  46682. abstract="false" native="false" synchronized="false"
  46683. static="false" final="false" visibility="public"
  46684. deprecated="not deprecated">
  46685. <param name="rDbgScript" type="java.lang.String"/>
  46686. <doc>
  46687. <![CDATA[Set the debug script to run when the reduce tasks fail.
  46688. <p>The debug script can aid debugging of failed reduce tasks. The script
  46689. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  46690. <p>The debug command, run on the node where the map failed, is:</p>
  46691. <p><pre><blockquote>
  46692. $script $stdout $stderr $syslog $jobconf.
  46693. </blockquote></pre></p>
  46694. <p> The script file is distributed through {@link DistributedCache}
  46695. APIs. The script file needs to be symlinked </p>
  46696. <p>Here is an example on how to submit a script
  46697. <p><blockquote><pre>
  46698. job.setReduceDebugScript("./myscript");
  46699. DistributedCache.createSymlink(job);
  46700. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  46701. </pre></blockquote></p>
  46702. @param rDbgScript the script name]]>
  46703. </doc>
  46704. </method>
  46705. <method name="getReduceDebugScript" return="java.lang.String"
  46706. abstract="false" native="false" synchronized="false"
  46707. static="false" final="false" visibility="public"
  46708. deprecated="not deprecated">
  46709. <doc>
  46710. <![CDATA[Get the reduce task's debug Script
  46711. @return the debug script for the mapred job for failed reduce tasks.
  46712. @see #setReduceDebugScript(String)]]>
  46713. </doc>
  46714. </method>
  46715. <method name="getJobEndNotificationURI" return="java.lang.String"
  46716. abstract="false" native="false" synchronized="false"
  46717. static="false" final="false" visibility="public"
  46718. deprecated="not deprecated">
  46719. <doc>
  46720. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  46721. has completed (success/failure).
  46722. @return the job end notification uri, <code>null</code> if it hasn't
  46723. been set.
  46724. @see #setJobEndNotificationURI(String)]]>
  46725. </doc>
  46726. </method>
  46727. <method name="setJobEndNotificationURI"
  46728. abstract="false" native="false" synchronized="false"
  46729. static="false" final="false" visibility="public"
  46730. deprecated="not deprecated">
  46731. <param name="uri" type="java.lang.String"/>
  46732. <doc>
  46733. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  46734. has completed (success/failure).
  46735. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  46736. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  46737. identifier and completion-status respectively.</p>
  46738. <p>This is typically used by application-writers to implement chaining of
  46739. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  46740. @param uri the job end notification uri
  46741. @see JobStatus
  46742. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  46743. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  46744. </doc>
  46745. </method>
  46746. <method name="getJobLocalDir" return="java.lang.String"
  46747. abstract="false" native="false" synchronized="false"
  46748. static="false" final="false" visibility="public"
  46749. deprecated="not deprecated">
  46750. <doc>
  46751. <![CDATA[Get job-specific shared directory for use as scratch space
  46752. <p>
  46753. When a job starts, a shared directory is created at location
  46754. <code>
  46755. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  46756. This directory is exposed to the users through
  46757. <code>job.local.dir </code>.
  46758. So, the tasks can use this space
  46759. as scratch space and share files among them. </p>
  46760. This value is available as System property also.
  46761. @return The localized job specific shared directory]]>
  46762. </doc>
  46763. </method>
  46764. <method name="getMemoryForMapTask" return="long"
  46765. abstract="false" native="false" synchronized="false"
  46766. static="false" final="false" visibility="public"
  46767. deprecated="not deprecated">
  46768. <doc>
  46769. <![CDATA[Get memory required to run a map task of the job, in MB.
  46770. If a value is specified in the configuration, it is returned.
  46771. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  46772. <p/>
  46773. For backward compatibility, if the job configuration sets the
  46774. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46775. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  46776. after converting it from bytes to MB.
  46777. @return memory required to run a map task of the job, in MB,
  46778. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  46779. </doc>
  46780. </method>
  46781. <method name="setMemoryForMapTask"
  46782. abstract="false" native="false" synchronized="false"
  46783. static="false" final="false" visibility="public"
  46784. deprecated="not deprecated">
  46785. <param name="mem" type="long"/>
  46786. </method>
  46787. <method name="getMemoryForReduceTask" return="long"
  46788. abstract="false" native="false" synchronized="false"
  46789. static="false" final="false" visibility="public"
  46790. deprecated="not deprecated">
  46791. <doc>
  46792. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  46793. If a value is specified in the configuration, it is returned.
  46794. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  46795. <p/>
  46796. For backward compatibility, if the job configuration sets the
  46797. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46798. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  46799. after converting it from bytes to MB.
  46800. @return memory required to run a reduce task of the job, in MB,
  46801. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  46802. </doc>
  46803. </method>
  46804. <method name="setMemoryForReduceTask"
  46805. abstract="false" native="false" synchronized="false"
  46806. static="false" final="false" visibility="public"
  46807. deprecated="not deprecated">
  46808. <param name="mem" type="long"/>
  46809. </method>
  46810. <method name="getQueueName" return="java.lang.String"
  46811. abstract="false" native="false" synchronized="false"
  46812. static="false" final="false" visibility="public"
  46813. deprecated="not deprecated">
  46814. <doc>
  46815. <![CDATA[Return the name of the queue to which this job is submitted.
  46816. Defaults to 'default'.
  46817. @return name of the queue]]>
  46818. </doc>
  46819. </method>
  46820. <method name="setQueueName"
  46821. abstract="false" native="false" synchronized="false"
  46822. static="false" final="false" visibility="public"
  46823. deprecated="not deprecated">
  46824. <param name="queueName" type="java.lang.String"/>
  46825. <doc>
  46826. <![CDATA[Set the name of the queue to which this job should be submitted.
  46827. @param queueName Name of the queue]]>
  46828. </doc>
  46829. </method>
  46830. <method name="normalizeMemoryConfigValue" return="long"
  46831. abstract="false" native="false" synchronized="false"
  46832. static="true" final="false" visibility="public"
  46833. deprecated="not deprecated">
  46834. <param name="val" type="long"/>
  46835. <doc>
  46836. <![CDATA[Normalize the negative values in configuration
  46837. @param val
  46838. @return normalized value]]>
  46839. </doc>
  46840. </method>
  46841. <method name="getMaxVirtualMemoryForTask" return="long"
  46842. abstract="false" native="false" synchronized="false"
  46843. static="false" final="false" visibility="public"
  46844. deprecated="Use {@link #getMemoryForMapTask()} and
  46845. {@link #getMemoryForReduceTask()}">
  46846. <doc>
  46847. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  46848. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  46849. <p/>
  46850. This method is deprecated. Now, different memory limits can be
  46851. set for map and reduce tasks of a job, in MB.
  46852. <p/>
  46853. For backward compatibility, if the job configuration sets the
  46854. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46855. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  46856. Otherwise, this method will return the larger of the values returned by
  46857. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  46858. after converting them into bytes.
  46859. @return Memory required to run a task of this job, in bytes,
  46860. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  46861. @see #setMaxVirtualMemoryForTask(long)
  46862. @deprecated Use {@link #getMemoryForMapTask()} and
  46863. {@link #getMemoryForReduceTask()}]]>
  46864. </doc>
  46865. </method>
  46866. <method name="setMaxVirtualMemoryForTask"
  46867. abstract="false" native="false" synchronized="false"
  46868. static="false" final="false" visibility="public"
  46869. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  46870. Use {@link #setMemoryForReduceTask(long mem)}">
  46871. <param name="vmem" type="long"/>
  46872. <doc>
  46873. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  46874. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  46875. <p/>
  46876. mapred.task.maxvmem is split into
  46877. mapred.job.map.memory.mb
  46878. and mapred.job.map.memory.mb,mapred
  46879. each of the new key are set
  46880. as mapred.task.maxvmem / 1024
  46881. as new values are in MB
  46882. @param vmem Maximum amount of virtual memory in bytes any task of this job
  46883. can use.
  46884. @see #getMaxVirtualMemoryForTask()
  46885. @deprecated
  46886. Use {@link #setMemoryForMapTask(long mem)} and
  46887. Use {@link #setMemoryForReduceTask(long mem)}]]>
  46888. </doc>
  46889. </method>
  46890. <method name="getMaxPhysicalMemoryForTask" return="long"
  46891. abstract="false" native="false" synchronized="false"
  46892. static="false" final="false" visibility="public"
  46893. deprecated="this variable is deprecated and nolonger in use.">
  46894. <doc>
  46895. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  46896. </doc>
  46897. </method>
  46898. <method name="setMaxPhysicalMemoryForTask"
  46899. abstract="false" native="false" synchronized="false"
  46900. static="false" final="false" visibility="public"
  46901. deprecated="not deprecated">
  46902. <param name="mem" type="long"/>
  46903. </method>
  46904. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  46905. transient="false" volatile="false"
  46906. static="true" final="true" visibility="public"
  46907. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  46908. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  46909. <doc>
  46910. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  46911. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  46912. </doc>
  46913. </field>
  46914. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  46915. transient="false" volatile="false"
  46916. static="true" final="true" visibility="public"
  46917. deprecated="deprecated, no comment">
  46918. <doc>
  46919. <![CDATA[@deprecated]]>
  46920. </doc>
  46921. </field>
  46922. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  46923. transient="false" volatile="false"
  46924. static="true" final="true" visibility="public"
  46925. deprecated="deprecated, no comment">
  46926. <doc>
  46927. <![CDATA[@deprecated]]>
  46928. </doc>
  46929. </field>
  46930. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  46931. transient="false" volatile="false"
  46932. static="true" final="true" visibility="public"
  46933. deprecated="deprecated, no comment">
  46934. <doc>
  46935. <![CDATA[@deprecated]]>
  46936. </doc>
  46937. </field>
  46938. <field name="DISABLED_MEMORY_LIMIT" type="long"
  46939. transient="false" volatile="false"
  46940. static="true" final="true" visibility="public"
  46941. deprecated="not deprecated">
  46942. <doc>
  46943. <![CDATA[A value which if set for memory related configuration options,
  46944. indicates that the options are turned off.]]>
  46945. </doc>
  46946. </field>
  46947. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  46948. transient="false" volatile="false"
  46949. static="true" final="true" visibility="public"
  46950. deprecated="not deprecated">
  46951. <doc>
  46952. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  46953. </doc>
  46954. </field>
  46955. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  46956. transient="false" volatile="false"
  46957. static="true" final="true" visibility="public"
  46958. deprecated="not deprecated">
  46959. <doc>
  46960. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  46961. name is mentioned.]]>
  46962. </doc>
  46963. </field>
  46964. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  46965. transient="false" volatile="false"
  46966. static="true" final="true" visibility="public"
  46967. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  46968. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  46969. <doc>
  46970. <![CDATA[Configuration key to set the java command line options for the child
  46971. map and reduce tasks.
  46972. Java opts for the task tracker child processes.
  46973. The following symbol, if present, will be interpolated: @taskid@.
  46974. It is replaced by current TaskID. Any other occurrences of '@' will go
  46975. unchanged.
  46976. For example, to enable verbose gc logging to a file named for the taskid in
  46977. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46978. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  46979. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  46980. control the maximum virtual memory of the child processes.
  46981. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  46982. other environment variables to the child processes.
  46983. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  46984. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  46985. </doc>
  46986. </field>
  46987. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  46988. transient="false" volatile="false"
  46989. static="true" final="true" visibility="public"
  46990. deprecated="not deprecated">
  46991. <doc>
  46992. <![CDATA[Configuration key to set the java command line options for the map tasks.
  46993. Java opts for the task tracker child map processes.
  46994. The following symbol, if present, will be interpolated: @taskid@.
  46995. It is replaced by current TaskID. Any other occurrences of '@' will go
  46996. unchanged.
  46997. For example, to enable verbose gc logging to a file named for the taskid in
  46998. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46999. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  47000. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  47001. control the maximum virtual memory of the map processes.
  47002. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  47003. other environment variables to the map processes.]]>
  47004. </doc>
  47005. </field>
  47006. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  47007. transient="false" volatile="false"
  47008. static="true" final="true" visibility="public"
  47009. deprecated="not deprecated">
  47010. <doc>
  47011. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  47012. Java opts for the task tracker child reduce processes.
  47013. The following symbol, if present, will be interpolated: @taskid@.
  47014. It is replaced by current TaskID. Any other occurrences of '@' will go
  47015. unchanged.
  47016. For example, to enable verbose gc logging to a file named for the taskid in
  47017. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  47018. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  47019. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  47020. to control the maximum virtual memory of the reduce processes.
  47021. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  47022. pass process environment variables to the reduce processes.]]>
  47023. </doc>
  47024. </field>
  47025. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" 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="MAPRED_TASK_ULIMIT" type="java.lang.String"
  47031. transient="false" volatile="false"
  47032. static="true" final="true" visibility="public"
  47033. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  47034. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  47035. <doc>
  47036. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  47037. map and reduce tasks (in kilo-bytes).
  47038. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47039. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  47040. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  47041. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  47042. </doc>
  47043. </field>
  47044. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  47045. transient="false" volatile="false"
  47046. static="true" final="true" visibility="public"
  47047. deprecated="not deprecated">
  47048. <doc>
  47049. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47050. map tasks (in kilo-bytes).
  47051. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47052. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  47053. </doc>
  47054. </field>
  47055. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  47056. transient="false" volatile="false"
  47057. static="true" final="true" visibility="public"
  47058. deprecated="not deprecated">
  47059. <doc>
  47060. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47061. reduce tasks (in kilo-bytes).
  47062. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47063. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  47064. </doc>
  47065. </field>
  47066. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  47067. transient="false" volatile="false"
  47068. static="true" final="true" visibility="public"
  47069. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  47070. {@link #MAPRED_REDUCE_TASK_ENV}">
  47071. <doc>
  47072. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  47073. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47074. reference existing environment variables via <code>$key</code>.
  47075. Example:
  47076. <ul>
  47077. <li> A=foo - This will set the env variable A to foo. </li>
  47078. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47079. </ul>
  47080. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  47081. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  47082. </doc>
  47083. </field>
  47084. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  47085. transient="false" volatile="false"
  47086. static="true" final="true" visibility="public"
  47087. deprecated="not deprecated">
  47088. <doc>
  47089. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47090. map tasks.
  47091. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47092. reference existing environment variables via <code>$key</code>.
  47093. Example:
  47094. <ul>
  47095. <li> A=foo - This will set the env variable A to foo. </li>
  47096. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47097. </ul>]]>
  47098. </doc>
  47099. </field>
  47100. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  47101. transient="false" volatile="false"
  47102. static="true" final="true" visibility="public"
  47103. deprecated="not deprecated">
  47104. <doc>
  47105. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47106. reduce tasks.
  47107. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47108. reference existing environment variables via <code>$key</code>.
  47109. Example:
  47110. <ul>
  47111. <li> A=foo - This will set the env variable A to foo. </li>
  47112. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47113. </ul>]]>
  47114. </doc>
  47115. </field>
  47116. <doc>
  47117. <![CDATA[A map/reduce job configuration.
  47118. <p><code>JobConf</code> is the primary interface for a user to describe a
  47119. map-reduce job to the Hadoop framework for execution. The framework tries to
  47120. faithfully execute the job as-is described by <code>JobConf</code>, however:
  47121. <ol>
  47122. <li>
  47123. Some configuration parameters might have been marked as
  47124. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  47125. final</a> by administrators and hence cannot be altered.
  47126. </li>
  47127. <li>
  47128. While some job parameters are straight-forward to set
  47129. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  47130. rest of the framework and/or job-configuration and is relatively more
  47131. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  47132. </li>
  47133. </ol></p>
  47134. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  47135. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  47136. {@link OutputFormat} implementations to be used etc.
  47137. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  47138. of the job such as <code>Comparator</code>s to be used, files to be put in
  47139. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  47140. are to be compressed (and how), debugability via user-provided scripts
  47141. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  47142. for doing post-processing on task logs, task's stdout, stderr, syslog.
  47143. and etc.</p>
  47144. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  47145. <p><blockquote><pre>
  47146. // Create a new JobConf
  47147. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47148. // Specify various job-specific parameters
  47149. job.setJobName("myjob");
  47150. FileInputFormat.setInputPaths(job, new Path("in"));
  47151. FileOutputFormat.setOutputPath(job, new Path("out"));
  47152. job.setMapperClass(MyJob.MyMapper.class);
  47153. job.setCombinerClass(MyJob.MyReducer.class);
  47154. job.setReducerClass(MyJob.MyReducer.class);
  47155. job.setInputFormat(SequenceFileInputFormat.class);
  47156. job.setOutputFormat(SequenceFileOutputFormat.class);
  47157. </pre></blockquote></p>
  47158. @see JobClient
  47159. @see ClusterStatus
  47160. @see Tool
  47161. @see DistributedCache]]>
  47162. </doc>
  47163. </class>
  47164. <!-- end class org.apache.hadoop.mapred.JobConf -->
  47165. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  47166. <interface name="JobConfigurable" abstract="true"
  47167. static="false" final="false" visibility="public"
  47168. deprecated="not deprecated">
  47169. <method name="configure"
  47170. abstract="false" native="false" synchronized="false"
  47171. static="false" final="false" visibility="public"
  47172. deprecated="not deprecated">
  47173. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47174. <doc>
  47175. <![CDATA[Initializes a new instance from a {@link JobConf}.
  47176. @param job the configuration]]>
  47177. </doc>
  47178. </method>
  47179. <doc>
  47180. <![CDATA[That what may be configured.]]>
  47181. </doc>
  47182. </interface>
  47183. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  47184. <!-- start class org.apache.hadoop.mapred.JobContext -->
  47185. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  47186. abstract="false"
  47187. static="false" final="false" visibility="public"
  47188. deprecated="not deprecated">
  47189. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  47190. abstract="false" native="false" synchronized="false"
  47191. static="false" final="false" visibility="public"
  47192. deprecated="not deprecated">
  47193. <doc>
  47194. <![CDATA[Get the job Configuration
  47195. @return JobConf]]>
  47196. </doc>
  47197. </method>
  47198. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  47199. abstract="false" native="false" synchronized="false"
  47200. static="false" final="false" visibility="public"
  47201. deprecated="not deprecated">
  47202. <doc>
  47203. <![CDATA[Get the progress mechanism for reporting progress.
  47204. @return progress mechanism]]>
  47205. </doc>
  47206. </method>
  47207. </class>
  47208. <!-- end class org.apache.hadoop.mapred.JobContext -->
  47209. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  47210. <class name="JobEndNotifier" extends="java.lang.Object"
  47211. abstract="false"
  47212. static="false" final="false" visibility="public"
  47213. deprecated="not deprecated">
  47214. <constructor name="JobEndNotifier"
  47215. static="false" final="false" visibility="public"
  47216. deprecated="not deprecated">
  47217. </constructor>
  47218. <method name="startNotifier"
  47219. abstract="false" native="false" synchronized="false"
  47220. static="true" final="false" visibility="public"
  47221. deprecated="not deprecated">
  47222. </method>
  47223. <method name="stopNotifier"
  47224. abstract="false" native="false" synchronized="false"
  47225. static="true" final="false" visibility="public"
  47226. deprecated="not deprecated">
  47227. </method>
  47228. <method name="registerNotification"
  47229. abstract="false" native="false" synchronized="false"
  47230. static="true" final="false" visibility="public"
  47231. deprecated="not deprecated">
  47232. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47233. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47234. </method>
  47235. <method name="localRunnerNotification"
  47236. abstract="false" native="false" synchronized="false"
  47237. static="true" final="false" visibility="public"
  47238. deprecated="not deprecated">
  47239. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47240. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47241. </method>
  47242. </class>
  47243. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  47244. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  47245. <class name="JobHistory" extends="java.lang.Object"
  47246. abstract="false"
  47247. static="false" final="false" visibility="public"
  47248. deprecated="not deprecated">
  47249. <constructor name="JobHistory"
  47250. static="false" final="false" visibility="public"
  47251. deprecated="not deprecated">
  47252. </constructor>
  47253. <method name="getHistoryFilePath" return="java.lang.String"
  47254. abstract="false" native="false" synchronized="false"
  47255. static="true" final="false" visibility="public"
  47256. deprecated="not deprecated">
  47257. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47258. <doc>
  47259. <![CDATA[Given the job id, return the history file path from the cache]]>
  47260. </doc>
  47261. </method>
  47262. <method name="init"
  47263. abstract="false" native="false" synchronized="false"
  47264. static="true" final="false" visibility="public"
  47265. deprecated="not deprecated">
  47266. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  47267. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47268. <param name="hostname" type="java.lang.String"/>
  47269. <param name="jobTrackerStartTime" type="long"/>
  47270. <exception name="IOException" type="java.io.IOException"/>
  47271. <doc>
  47272. <![CDATA[Initialize JobHistory files.
  47273. @param conf Jobconf of the job tracker.
  47274. @param hostname jobtracker's hostname
  47275. @param jobTrackerStartTime jobtracker's start time]]>
  47276. </doc>
  47277. </method>
  47278. <method name="parseHistoryFromFS"
  47279. abstract="false" native="false" synchronized="false"
  47280. static="true" final="false" visibility="public"
  47281. deprecated="not deprecated">
  47282. <param name="path" type="java.lang.String"/>
  47283. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  47284. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  47285. <exception name="IOException" type="java.io.IOException"/>
  47286. <doc>
  47287. <![CDATA[Parses history file and invokes Listener.handle() for
  47288. each line of history. It can be used for looking through history
  47289. files for specific items without having to keep whole history in memory.
  47290. @param path path to history file
  47291. @param l Listener for history events
  47292. @param fs FileSystem where history file is present
  47293. @throws IOException]]>
  47294. </doc>
  47295. </method>
  47296. <method name="getTaskLogsUrl" return="java.lang.String"
  47297. abstract="false" native="false" synchronized="false"
  47298. static="true" final="false" visibility="public"
  47299. deprecated="not deprecated">
  47300. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  47301. <doc>
  47302. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  47303. @param attempt
  47304. @return the taskLogsUrl. null if http-port or tracker-name or
  47305. task-attempt-id are unavailable.]]>
  47306. </doc>
  47307. </method>
  47308. <field name="LOG" type="org.apache.commons.logging.Log"
  47309. transient="false" volatile="false"
  47310. static="true" final="true" visibility="public"
  47311. deprecated="not deprecated">
  47312. </field>
  47313. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  47314. transient="false" volatile="false"
  47315. static="true" final="true" visibility="public"
  47316. deprecated="not deprecated">
  47317. </field>
  47318. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  47319. transient="false" volatile="false"
  47320. static="true" final="true" visibility="public"
  47321. deprecated="not deprecated">
  47322. </field>
  47323. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  47324. transient="false" volatile="false"
  47325. static="true" final="true" visibility="public"
  47326. deprecated="not deprecated">
  47327. </field>
  47328. <doc>
  47329. <![CDATA[Provides methods for writing to and reading from job history.
  47330. Job History works in an append mode, JobHistory and its inner classes provide methods
  47331. to log job events.
  47332. JobHistory is split into multiple files, format of each file is plain text where each line
  47333. is of the format [type (key=value)*], where type identifies the type of the record.
  47334. Type maps to UID of one of the inner classes of this class.
  47335. Job history is maintained in a master index which contains star/stop times of all jobs with
  47336. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  47337. file. name of job history files follows the format jobtrackerId_jobid
  47338. For parsing the job history it supports a listener based interface where each line is parsed
  47339. and passed to listener. The listener can create an object model of history or look for specific
  47340. events and discard rest of the history.
  47341. CHANGE LOG :
  47342. Version 0 : The history has the following format :
  47343. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  47344. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  47345. Note that a '"' is the line delimiter.
  47346. Version 1 : Changes the line delimiter to '.'
  47347. Values are now escaped for unambiguous parsing.
  47348. Added the Meta tag to store version info.]]>
  47349. </doc>
  47350. </class>
  47351. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  47352. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47353. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  47354. abstract="false"
  47355. static="true" final="false" visibility="public"
  47356. deprecated="not deprecated">
  47357. <implements name="java.lang.Runnable"/>
  47358. <constructor name="JobHistory.HistoryCleaner"
  47359. static="false" final="false" visibility="public"
  47360. deprecated="not deprecated">
  47361. </constructor>
  47362. <method name="run"
  47363. abstract="false" native="false" synchronized="false"
  47364. static="false" final="false" visibility="public"
  47365. deprecated="not deprecated">
  47366. <doc>
  47367. <![CDATA[Cleans up history data.]]>
  47368. </doc>
  47369. </method>
  47370. <doc>
  47371. <![CDATA[Delete history files older than one month. Update master index and remove all
  47372. jobs older than one month. Also if a job tracker has no jobs in last one month
  47373. remove reference to the job tracker.]]>
  47374. </doc>
  47375. </class>
  47376. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47377. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  47378. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  47379. abstract="false"
  47380. static="true" final="false" visibility="public"
  47381. deprecated="not deprecated">
  47382. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  47383. static="false" final="false" visibility="public"
  47384. deprecated="not deprecated">
  47385. <doc>
  47386. <![CDATA[Create new JobInfo]]>
  47387. </doc>
  47388. </constructor>
  47389. <method name="getAllTasks" return="java.util.Map"
  47390. abstract="false" native="false" synchronized="false"
  47391. static="false" final="false" visibility="public"
  47392. deprecated="not deprecated">
  47393. <doc>
  47394. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  47395. </doc>
  47396. </method>
  47397. <method name="getJobACLs" return="java.util.Map"
  47398. abstract="false" native="false" synchronized="false"
  47399. static="false" final="false" visibility="public"
  47400. deprecated="not deprecated">
  47401. <doc>
  47402. <![CDATA[Get the job acls.
  47403. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  47404. </doc>
  47405. </method>
  47406. <method name="handle"
  47407. abstract="false" native="false" synchronized="true"
  47408. static="false" final="false" visibility="public"
  47409. deprecated="not deprecated">
  47410. <param name="values" type="java.util.Map"/>
  47411. </method>
  47412. <method name="getLocalJobFilePath" return="java.lang.String"
  47413. abstract="false" native="false" synchronized="false"
  47414. static="true" final="false" visibility="public"
  47415. deprecated="not deprecated">
  47416. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47417. <doc>
  47418. <![CDATA[Get the path of the locally stored job file
  47419. @param jobId id of the job
  47420. @return the path of the job file on the local file system]]>
  47421. </doc>
  47422. </method>
  47423. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  47424. abstract="false" native="false" synchronized="false"
  47425. static="true" final="false" visibility="public"
  47426. deprecated="not deprecated">
  47427. <param name="logFile" type="java.lang.String"/>
  47428. <exception name="IOException" type="java.io.IOException"/>
  47429. <doc>
  47430. <![CDATA[Helper function to encode the URL of the path of the job-history
  47431. log file.
  47432. @param logFile path of the job-history file
  47433. @return URL encoded path
  47434. @throws IOException]]>
  47435. </doc>
  47436. </method>
  47437. <method name="encodeJobHistoryFileName" return="java.lang.String"
  47438. abstract="false" native="false" synchronized="false"
  47439. static="true" final="false" visibility="public"
  47440. deprecated="not deprecated">
  47441. <param name="logFileName" type="java.lang.String"/>
  47442. <exception name="IOException" type="java.io.IOException"/>
  47443. <doc>
  47444. <![CDATA[Helper function to encode the URL of the filename of the job-history
  47445. log file.
  47446. @param logFileName file name of the job-history file
  47447. @return URL encoded filename
  47448. @throws IOException]]>
  47449. </doc>
  47450. </method>
  47451. <method name="decodeJobHistoryFileName" return="java.lang.String"
  47452. abstract="false" native="false" synchronized="false"
  47453. static="true" final="false" visibility="public"
  47454. deprecated="not deprecated">
  47455. <param name="logFileName" type="java.lang.String"/>
  47456. <exception name="IOException" type="java.io.IOException"/>
  47457. <doc>
  47458. <![CDATA[Helper function to decode the URL of the filename of the job-history
  47459. log file.
  47460. @param logFileName file name of the job-history file
  47461. @return URL decoded filename
  47462. @throws IOException]]>
  47463. </doc>
  47464. </method>
  47465. <method name="getUserName" return="java.lang.String"
  47466. abstract="false" native="false" synchronized="false"
  47467. static="true" final="false" visibility="public"
  47468. deprecated="not deprecated">
  47469. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47470. <doc>
  47471. <![CDATA[Get the user name from the job conf]]>
  47472. </doc>
  47473. </method>
  47474. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  47475. abstract="false" native="false" synchronized="false"
  47476. static="true" final="false" visibility="public"
  47477. deprecated="not deprecated">
  47478. <param name="logFileName" type="java.lang.String"/>
  47479. <doc>
  47480. <![CDATA[Get the job history file path given the history filename]]>
  47481. </doc>
  47482. </method>
  47483. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  47484. abstract="false" native="false" synchronized="false"
  47485. static="true" final="false" visibility="public"
  47486. deprecated="not deprecated">
  47487. <param name="logFileName" type="java.lang.String"/>
  47488. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47489. <doc>
  47490. <![CDATA[Get the user job history file path]]>
  47491. </doc>
  47492. </method>
  47493. <method name="getJobHistoryFileName" return="java.lang.String"
  47494. abstract="false" native="false" synchronized="true"
  47495. static="true" final="false" visibility="public"
  47496. deprecated="not deprecated">
  47497. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47498. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  47499. <exception name="IOException" type="java.io.IOException"/>
  47500. <doc>
  47501. <![CDATA[Recover the job history filename from the history folder.
  47502. Uses the following pattern
  47503. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  47504. @param jobConf the job conf
  47505. @param id job id]]>
  47506. </doc>
  47507. </method>
  47508. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  47509. abstract="false" native="false" synchronized="true"
  47510. static="true" final="false" visibility="public"
  47511. deprecated="not deprecated">
  47512. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47513. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  47514. <exception name="IOException" type="java.io.IOException"/>
  47515. <doc>
  47516. <![CDATA[Selects one of the two files generated as a part of recovery.
  47517. The thumb rule is that always select the oldest file.
  47518. This call makes sure that only one file is left in the end.
  47519. @param conf job conf
  47520. @param logFilePath Path of the log file
  47521. @throws IOException]]>
  47522. </doc>
  47523. </method>
  47524. <method name="logSubmitted"
  47525. abstract="false" native="false" synchronized="false"
  47526. static="true" final="false" visibility="public"
  47527. deprecated="Use
  47528. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  47529. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47530. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47531. <param name="jobConfPath" type="java.lang.String"/>
  47532. <param name="submitTime" type="long"/>
  47533. <exception name="IOException" type="java.io.IOException"/>
  47534. <doc>
  47535. <![CDATA[Log job submitted event to history. Creates a new file in history
  47536. for the job. if history file creation fails, it disables history
  47537. for all other events.
  47538. @param jobId job id assigned by job tracker.
  47539. @param jobConf job conf of the job
  47540. @param jobConfPath path to job conf xml file in HDFS.
  47541. @param submitTime time when job tracker received the job
  47542. @throws IOException
  47543. @deprecated Use
  47544. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  47545. </doc>
  47546. </method>
  47547. <method name="logSubmitted"
  47548. abstract="false" native="false" synchronized="false"
  47549. static="true" final="false" visibility="public"
  47550. deprecated="not deprecated">
  47551. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47552. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47553. <param name="jobConfPath" type="java.lang.String"/>
  47554. <param name="submitTime" type="long"/>
  47555. <param name="restarted" type="boolean"/>
  47556. <exception name="IOException" type="java.io.IOException"/>
  47557. </method>
  47558. <method name="logInited"
  47559. abstract="false" native="false" synchronized="false"
  47560. static="true" final="false" visibility="public"
  47561. deprecated="not deprecated">
  47562. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47563. <param name="startTime" type="long"/>
  47564. <param name="totalMaps" type="int"/>
  47565. <param name="totalReduces" type="int"/>
  47566. <doc>
  47567. <![CDATA[Logs launch time of job.
  47568. @param jobId job id, assigned by jobtracker.
  47569. @param startTime start time of job.
  47570. @param totalMaps total maps assigned by jobtracker.
  47571. @param totalReduces total reduces.]]>
  47572. </doc>
  47573. </method>
  47574. <method name="logStarted"
  47575. abstract="false" native="false" synchronized="false"
  47576. static="true" final="false" visibility="public"
  47577. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  47578. {@link #logStarted(JobID)}">
  47579. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47580. <param name="startTime" type="long"/>
  47581. <param name="totalMaps" type="int"/>
  47582. <param name="totalReduces" type="int"/>
  47583. <doc>
  47584. <![CDATA[Logs the job as RUNNING.
  47585. @param jobId job id, assigned by jobtracker.
  47586. @param startTime start time of job.
  47587. @param totalMaps total maps assigned by jobtracker.
  47588. @param totalReduces total reduces.
  47589. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  47590. {@link #logStarted(JobID)}]]>
  47591. </doc>
  47592. </method>
  47593. <method name="logStarted"
  47594. abstract="false" native="false" synchronized="false"
  47595. static="true" final="false" visibility="public"
  47596. deprecated="not deprecated">
  47597. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47598. <doc>
  47599. <![CDATA[Logs job as running
  47600. @param jobId job id, assigned by jobtracker.]]>
  47601. </doc>
  47602. </method>
  47603. <method name="logFinished"
  47604. abstract="false" native="false" synchronized="false"
  47605. static="true" final="false" visibility="public"
  47606. deprecated="not deprecated">
  47607. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47608. <param name="finishTime" type="long"/>
  47609. <param name="finishedMaps" type="int"/>
  47610. <param name="finishedReduces" type="int"/>
  47611. <param name="failedMaps" type="int"/>
  47612. <param name="failedReduces" type="int"/>
  47613. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  47614. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  47615. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  47616. <doc>
  47617. <![CDATA[Log job finished. closes the job file in history.
  47618. @param jobId job id, assigned by jobtracker.
  47619. @param finishTime finish time of job in ms.
  47620. @param finishedMaps no of maps successfully finished.
  47621. @param finishedReduces no of reduces finished sucessfully.
  47622. @param failedMaps no of failed map tasks.
  47623. @param failedReduces no of failed reduce tasks.
  47624. @param counters the counters from the job]]>
  47625. </doc>
  47626. </method>
  47627. <method name="logFailed"
  47628. abstract="false" native="false" synchronized="false"
  47629. static="true" final="false" visibility="public"
  47630. deprecated="not deprecated">
  47631. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47632. <param name="timestamp" type="long"/>
  47633. <param name="finishedMaps" type="int"/>
  47634. <param name="finishedReduces" type="int"/>
  47635. <param name="failReason" type="java.lang.String"/>
  47636. <doc>
  47637. <![CDATA[Logs job failed event. Closes the job history log file.
  47638. @param jobid job id
  47639. @param timestamp time when job failure was detected in ms.
  47640. @param finishedMaps no finished map tasks.
  47641. @param finishedReduces no of finished reduce tasks.]]>
  47642. </doc>
  47643. </method>
  47644. <method name="logKilled"
  47645. abstract="false" native="false" synchronized="false"
  47646. static="true" final="false" visibility="public"
  47647. deprecated="not deprecated">
  47648. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47649. <param name="timestamp" type="long"/>
  47650. <param name="finishedMaps" type="int"/>
  47651. <param name="finishedReduces" type="int"/>
  47652. <doc>
  47653. <![CDATA[Logs job killed event. Closes the job history log file.
  47654. @param jobid
  47655. job id
  47656. @param timestamp
  47657. time when job killed was issued in ms.
  47658. @param finishedMaps
  47659. no finished map tasks.
  47660. @param finishedReduces
  47661. no of finished reduce tasks.]]>
  47662. </doc>
  47663. </method>
  47664. <method name="logJobPriority"
  47665. abstract="false" native="false" synchronized="false"
  47666. static="true" final="false" visibility="public"
  47667. deprecated="not deprecated">
  47668. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47669. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  47670. <doc>
  47671. <![CDATA[Log job's priority.
  47672. @param jobid job id
  47673. @param priority Jobs priority]]>
  47674. </doc>
  47675. </method>
  47676. <method name="logJobInfo"
  47677. abstract="false" native="false" synchronized="false"
  47678. static="true" final="false" visibility="public"
  47679. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  47680. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47681. <param name="submitTime" type="long"/>
  47682. <param name="launchTime" type="long"/>
  47683. <param name="restartCount" type="int"/>
  47684. <doc>
  47685. <![CDATA[Log job's submit-time/launch-time
  47686. @param jobid job id
  47687. @param submitTime job's submit time
  47688. @param launchTime job's launch time
  47689. @param restartCount number of times the job got restarted
  47690. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  47691. </doc>
  47692. </method>
  47693. <method name="logJobInfo"
  47694. abstract="false" native="false" synchronized="false"
  47695. static="true" final="false" visibility="public"
  47696. deprecated="not deprecated">
  47697. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47698. <param name="submitTime" type="long"/>
  47699. <param name="launchTime" type="long"/>
  47700. </method>
  47701. <doc>
  47702. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  47703. </doc>
  47704. </class>
  47705. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  47706. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  47707. <class name="JobHistory.Keys" extends="java.lang.Enum"
  47708. abstract="false"
  47709. static="true" final="true" visibility="public"
  47710. deprecated="not deprecated">
  47711. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  47712. abstract="false" native="false" synchronized="false"
  47713. static="true" final="false" visibility="public"
  47714. deprecated="not deprecated">
  47715. </method>
  47716. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  47717. abstract="false" native="false" synchronized="false"
  47718. static="true" final="false" visibility="public"
  47719. deprecated="not deprecated">
  47720. <param name="name" type="java.lang.String"/>
  47721. </method>
  47722. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47723. transient="false" volatile="false"
  47724. static="true" final="true" visibility="public"
  47725. deprecated="not deprecated">
  47726. </field>
  47727. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47728. transient="false" volatile="false"
  47729. static="true" final="true" visibility="public"
  47730. deprecated="not deprecated">
  47731. </field>
  47732. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47733. transient="false" volatile="false"
  47734. static="true" final="true" visibility="public"
  47735. deprecated="not deprecated">
  47736. </field>
  47737. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47738. transient="false" volatile="false"
  47739. static="true" final="true" visibility="public"
  47740. deprecated="not deprecated">
  47741. </field>
  47742. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47743. transient="false" volatile="false"
  47744. static="true" final="true" visibility="public"
  47745. deprecated="not deprecated">
  47746. </field>
  47747. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47748. transient="false" volatile="false"
  47749. static="true" final="true" visibility="public"
  47750. deprecated="not deprecated">
  47751. </field>
  47752. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47753. transient="false" volatile="false"
  47754. static="true" final="true" visibility="public"
  47755. deprecated="not deprecated">
  47756. </field>
  47757. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47758. transient="false" volatile="false"
  47759. static="true" final="true" visibility="public"
  47760. deprecated="not deprecated">
  47761. </field>
  47762. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47763. transient="false" volatile="false"
  47764. static="true" final="true" visibility="public"
  47765. deprecated="not deprecated">
  47766. </field>
  47767. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47768. transient="false" volatile="false"
  47769. static="true" final="true" visibility="public"
  47770. deprecated="not deprecated">
  47771. </field>
  47772. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47773. transient="false" volatile="false"
  47774. static="true" final="true" visibility="public"
  47775. deprecated="not deprecated">
  47776. </field>
  47777. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47778. transient="false" volatile="false"
  47779. static="true" final="true" visibility="public"
  47780. deprecated="not deprecated">
  47781. </field>
  47782. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47783. transient="false" volatile="false"
  47784. static="true" final="true" visibility="public"
  47785. deprecated="not deprecated">
  47786. </field>
  47787. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47788. transient="false" volatile="false"
  47789. static="true" final="true" visibility="public"
  47790. deprecated="not deprecated">
  47791. </field>
  47792. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47793. transient="false" volatile="false"
  47794. static="true" final="true" visibility="public"
  47795. deprecated="not deprecated">
  47796. </field>
  47797. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47798. transient="false" volatile="false"
  47799. static="true" final="true" visibility="public"
  47800. deprecated="not deprecated">
  47801. </field>
  47802. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47803. transient="false" volatile="false"
  47804. static="true" final="true" visibility="public"
  47805. deprecated="not deprecated">
  47806. </field>
  47807. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47808. transient="false" volatile="false"
  47809. static="true" final="true" visibility="public"
  47810. deprecated="not deprecated">
  47811. </field>
  47812. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47813. transient="false" volatile="false"
  47814. static="true" final="true" visibility="public"
  47815. deprecated="not deprecated">
  47816. </field>
  47817. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47818. transient="false" volatile="false"
  47819. static="true" final="true" visibility="public"
  47820. deprecated="not deprecated">
  47821. </field>
  47822. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47823. transient="false" volatile="false"
  47824. static="true" final="true" visibility="public"
  47825. deprecated="not deprecated">
  47826. </field>
  47827. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47828. transient="false" volatile="false"
  47829. static="true" final="true" visibility="public"
  47830. deprecated="not deprecated">
  47831. </field>
  47832. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47833. transient="false" volatile="false"
  47834. static="true" final="true" visibility="public"
  47835. deprecated="not deprecated">
  47836. </field>
  47837. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47838. transient="false" volatile="false"
  47839. static="true" final="true" visibility="public"
  47840. deprecated="not deprecated">
  47841. </field>
  47842. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47843. transient="false" volatile="false"
  47844. static="true" final="true" visibility="public"
  47845. deprecated="not deprecated">
  47846. </field>
  47847. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47848. transient="false" volatile="false"
  47849. static="true" final="true" visibility="public"
  47850. deprecated="not deprecated">
  47851. </field>
  47852. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47853. transient="false" volatile="false"
  47854. static="true" final="true" visibility="public"
  47855. deprecated="not deprecated">
  47856. </field>
  47857. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47858. transient="false" volatile="false"
  47859. static="true" final="true" visibility="public"
  47860. deprecated="not deprecated">
  47861. </field>
  47862. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47863. transient="false" volatile="false"
  47864. static="true" final="true" visibility="public"
  47865. deprecated="not deprecated">
  47866. </field>
  47867. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47868. transient="false" volatile="false"
  47869. static="true" final="true" visibility="public"
  47870. deprecated="not deprecated">
  47871. </field>
  47872. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47873. transient="false" volatile="false"
  47874. static="true" final="true" visibility="public"
  47875. deprecated="not deprecated">
  47876. </field>
  47877. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47878. transient="false" volatile="false"
  47879. static="true" final="true" visibility="public"
  47880. deprecated="not deprecated">
  47881. </field>
  47882. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47883. transient="false" volatile="false"
  47884. static="true" final="true" visibility="public"
  47885. deprecated="not deprecated">
  47886. </field>
  47887. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47888. transient="false" volatile="false"
  47889. static="true" final="true" visibility="public"
  47890. deprecated="not deprecated">
  47891. </field>
  47892. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47893. transient="false" volatile="false"
  47894. static="true" final="true" visibility="public"
  47895. deprecated="not deprecated">
  47896. </field>
  47897. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47898. transient="false" volatile="false"
  47899. static="true" final="true" visibility="public"
  47900. deprecated="not deprecated">
  47901. </field>
  47902. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47903. transient="false" volatile="false"
  47904. static="true" final="true" visibility="public"
  47905. deprecated="not deprecated">
  47906. </field>
  47907. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47908. transient="false" volatile="false"
  47909. static="true" final="true" visibility="public"
  47910. deprecated="not deprecated">
  47911. </field>
  47912. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47913. transient="false" volatile="false"
  47914. static="true" final="true" visibility="public"
  47915. deprecated="not deprecated">
  47916. </field>
  47917. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47918. transient="false" volatile="false"
  47919. static="true" final="true" visibility="public"
  47920. deprecated="not deprecated">
  47921. </field>
  47922. <doc>
  47923. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  47924. It acts as a global namespace for all keys.]]>
  47925. </doc>
  47926. </class>
  47927. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  47928. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  47929. <interface name="JobHistory.Listener" abstract="true"
  47930. static="true" final="false" visibility="public"
  47931. deprecated="not deprecated">
  47932. <method name="handle"
  47933. abstract="false" native="false" synchronized="false"
  47934. static="false" final="false" visibility="public"
  47935. deprecated="not deprecated">
  47936. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  47937. <param name="values" type="java.util.Map"/>
  47938. <exception name="IOException" type="java.io.IOException"/>
  47939. <doc>
  47940. <![CDATA[Callback method for history parser.
  47941. @param recType type of record, which is the first entry in the line.
  47942. @param values a map of key-value pairs as thry appear in history.
  47943. @throws IOException]]>
  47944. </doc>
  47945. </method>
  47946. <doc>
  47947. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  47948. should be implemented and passed to JobHistory.parseHistory()]]>
  47949. </doc>
  47950. </interface>
  47951. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  47952. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  47953. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  47954. abstract="false"
  47955. static="true" final="false" visibility="public"
  47956. deprecated="not deprecated">
  47957. <constructor name="JobHistory.MapAttempt"
  47958. static="false" final="false" visibility="public"
  47959. deprecated="not deprecated">
  47960. </constructor>
  47961. <method name="logStarted"
  47962. abstract="false" native="false" synchronized="false"
  47963. static="true" final="false" visibility="public"
  47964. deprecated="Use
  47965. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  47966. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47967. <param name="startTime" type="long"/>
  47968. <param name="hostName" type="java.lang.String"/>
  47969. <doc>
  47970. <![CDATA[Log start time of this map task attempt.
  47971. @param taskAttemptId task attempt id
  47972. @param startTime start time of task attempt as reported by task tracker.
  47973. @param hostName host name of the task attempt.
  47974. @deprecated Use
  47975. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  47976. </doc>
  47977. </method>
  47978. <method name="logStarted"
  47979. abstract="false" native="false" synchronized="false"
  47980. static="true" final="false" visibility="public"
  47981. deprecated="not deprecated">
  47982. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47983. <param name="startTime" type="long"/>
  47984. <param name="trackerName" type="java.lang.String"/>
  47985. <param name="httpPort" type="int"/>
  47986. <param name="taskType" type="java.lang.String"/>
  47987. <doc>
  47988. <![CDATA[Log start time of this map task attempt.
  47989. @param taskAttemptId task attempt id
  47990. @param startTime start time of task attempt as reported by task tracker.
  47991. @param trackerName name of the tracker executing the task attempt.
  47992. @param httpPort http port of the task tracker executing the task attempt
  47993. @param taskType Whether the attempt is cleanup or setup or map]]>
  47994. </doc>
  47995. </method>
  47996. <method name="logFinished"
  47997. abstract="false" native="false" synchronized="false"
  47998. static="true" final="false" visibility="public"
  47999. deprecated="Use
  48000. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  48001. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48002. <param name="finishTime" type="long"/>
  48003. <param name="hostName" type="java.lang.String"/>
  48004. <doc>
  48005. <![CDATA[Log finish time of map task attempt.
  48006. @param taskAttemptId task attempt id
  48007. @param finishTime finish time
  48008. @param hostName host name
  48009. @deprecated Use
  48010. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  48011. </doc>
  48012. </method>
  48013. <method name="logFinished"
  48014. abstract="false" native="false" synchronized="false"
  48015. static="true" final="false" visibility="public"
  48016. deprecated="not deprecated">
  48017. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48018. <param name="finishTime" type="long"/>
  48019. <param name="hostName" type="java.lang.String"/>
  48020. <param name="taskType" type="java.lang.String"/>
  48021. <param name="stateString" type="java.lang.String"/>
  48022. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  48023. <doc>
  48024. <![CDATA[Log finish time of map task attempt.
  48025. @param taskAttemptId task attempt id
  48026. @param finishTime finish time
  48027. @param hostName host name
  48028. @param taskType Whether the attempt is cleanup or setup or map
  48029. @param stateString state string of the task attempt
  48030. @param counter counters of the task attempt]]>
  48031. </doc>
  48032. </method>
  48033. <method name="logFailed"
  48034. abstract="false" native="false" synchronized="false"
  48035. static="true" final="false" visibility="public"
  48036. deprecated="Use
  48037. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  48038. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48039. <param name="timestamp" type="long"/>
  48040. <param name="hostName" type="java.lang.String"/>
  48041. <param name="error" type="java.lang.String"/>
  48042. <doc>
  48043. <![CDATA[Log task attempt failed event.
  48044. @param taskAttemptId task attempt id
  48045. @param timestamp timestamp
  48046. @param hostName hostname of this task attempt.
  48047. @param error error message if any for this task attempt.
  48048. @deprecated Use
  48049. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  48050. </doc>
  48051. </method>
  48052. <method name="logFailed"
  48053. abstract="false" native="false" synchronized="false"
  48054. static="true" final="false" visibility="public"
  48055. deprecated="not deprecated">
  48056. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48057. <param name="timestamp" type="long"/>
  48058. <param name="hostName" type="java.lang.String"/>
  48059. <param name="error" type="java.lang.String"/>
  48060. <param name="taskType" type="java.lang.String"/>
  48061. <doc>
  48062. <![CDATA[Log task attempt failed event.
  48063. @param taskAttemptId task attempt id
  48064. @param timestamp timestamp
  48065. @param hostName hostname of this task attempt.
  48066. @param error error message if any for this task attempt.
  48067. @param taskType Whether the attempt is cleanup or setup or map]]>
  48068. </doc>
  48069. </method>
  48070. <method name="logKilled"
  48071. abstract="false" native="false" synchronized="false"
  48072. static="true" final="false" visibility="public"
  48073. deprecated="Use
  48074. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  48075. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48076. <param name="timestamp" type="long"/>
  48077. <param name="hostName" type="java.lang.String"/>
  48078. <param name="error" type="java.lang.String"/>
  48079. <doc>
  48080. <![CDATA[Log task attempt killed event.
  48081. @param taskAttemptId task attempt id
  48082. @param timestamp timestamp
  48083. @param hostName hostname of this task attempt.
  48084. @param error error message if any for this task attempt.
  48085. @deprecated Use
  48086. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  48087. </doc>
  48088. </method>
  48089. <method name="logKilled"
  48090. abstract="false" native="false" synchronized="false"
  48091. static="true" final="false" visibility="public"
  48092. deprecated="not deprecated">
  48093. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48094. <param name="timestamp" type="long"/>
  48095. <param name="hostName" type="java.lang.String"/>
  48096. <param name="error" type="java.lang.String"/>
  48097. <param name="taskType" type="java.lang.String"/>
  48098. <doc>
  48099. <![CDATA[Log task attempt killed event.
  48100. @param taskAttemptId task attempt id
  48101. @param timestamp timestamp
  48102. @param hostName hostname of this task attempt.
  48103. @param error error message if any for this task attempt.
  48104. @param taskType Whether the attempt is cleanup or setup or map]]>
  48105. </doc>
  48106. </method>
  48107. <doc>
  48108. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  48109. a Map Attempt on a node.]]>
  48110. </doc>
  48111. </class>
  48112. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  48113. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  48114. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  48115. abstract="false"
  48116. static="true" final="true" visibility="public"
  48117. deprecated="not deprecated">
  48118. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  48119. abstract="false" native="false" synchronized="false"
  48120. static="true" final="false" visibility="public"
  48121. deprecated="not deprecated">
  48122. </method>
  48123. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48124. abstract="false" native="false" synchronized="false"
  48125. static="true" final="false" visibility="public"
  48126. deprecated="not deprecated">
  48127. <param name="name" type="java.lang.String"/>
  48128. </method>
  48129. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48130. transient="false" volatile="false"
  48131. static="true" final="true" visibility="public"
  48132. deprecated="not deprecated">
  48133. </field>
  48134. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48135. transient="false" volatile="false"
  48136. static="true" final="true" visibility="public"
  48137. deprecated="not deprecated">
  48138. </field>
  48139. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48140. transient="false" volatile="false"
  48141. static="true" final="true" visibility="public"
  48142. deprecated="not deprecated">
  48143. </field>
  48144. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48145. transient="false" volatile="false"
  48146. static="true" final="true" visibility="public"
  48147. deprecated="not deprecated">
  48148. </field>
  48149. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48150. transient="false" volatile="false"
  48151. static="true" final="true" visibility="public"
  48152. deprecated="not deprecated">
  48153. </field>
  48154. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48155. transient="false" volatile="false"
  48156. static="true" final="true" visibility="public"
  48157. deprecated="not deprecated">
  48158. </field>
  48159. <doc>
  48160. <![CDATA[Record types are identifiers for each line of log in history files.
  48161. A record type appears as the first token in a single line of log.]]>
  48162. </doc>
  48163. </class>
  48164. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  48165. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  48166. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  48167. abstract="false"
  48168. static="true" final="false" visibility="public"
  48169. deprecated="not deprecated">
  48170. <constructor name="JobHistory.ReduceAttempt"
  48171. static="false" final="false" visibility="public"
  48172. deprecated="not deprecated">
  48173. </constructor>
  48174. <method name="logStarted"
  48175. abstract="false" native="false" synchronized="false"
  48176. static="true" final="false" visibility="public"
  48177. deprecated="Use
  48178. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  48179. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48180. <param name="startTime" type="long"/>
  48181. <param name="hostName" type="java.lang.String"/>
  48182. <doc>
  48183. <![CDATA[Log start time of Reduce task attempt.
  48184. @param taskAttemptId task attempt id
  48185. @param startTime start time
  48186. @param hostName host name
  48187. @deprecated Use
  48188. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  48189. </doc>
  48190. </method>
  48191. <method name="logStarted"
  48192. abstract="false" native="false" synchronized="false"
  48193. static="true" final="false" visibility="public"
  48194. deprecated="not deprecated">
  48195. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48196. <param name="startTime" type="long"/>
  48197. <param name="trackerName" type="java.lang.String"/>
  48198. <param name="httpPort" type="int"/>
  48199. <param name="taskType" type="java.lang.String"/>
  48200. <doc>
  48201. <![CDATA[Log start time of Reduce task attempt.
  48202. @param taskAttemptId task attempt id
  48203. @param startTime start time
  48204. @param trackerName tracker name
  48205. @param httpPort the http port of the tracker executing the task attempt
  48206. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48207. </doc>
  48208. </method>
  48209. <method name="logFinished"
  48210. abstract="false" native="false" synchronized="false"
  48211. static="true" final="false" visibility="public"
  48212. deprecated="Use
  48213. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  48214. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48215. <param name="shuffleFinished" type="long"/>
  48216. <param name="sortFinished" type="long"/>
  48217. <param name="finishTime" type="long"/>
  48218. <param name="hostName" type="java.lang.String"/>
  48219. <doc>
  48220. <![CDATA[Log finished event of this task.
  48221. @param taskAttemptId task attempt id
  48222. @param shuffleFinished shuffle finish time
  48223. @param sortFinished sort finish time
  48224. @param finishTime finish time of task
  48225. @param hostName host name where task attempt executed
  48226. @deprecated Use
  48227. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  48228. </doc>
  48229. </method>
  48230. <method name="logFinished"
  48231. abstract="false" native="false" synchronized="false"
  48232. static="true" final="false" visibility="public"
  48233. deprecated="not deprecated">
  48234. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48235. <param name="shuffleFinished" type="long"/>
  48236. <param name="sortFinished" type="long"/>
  48237. <param name="finishTime" type="long"/>
  48238. <param name="hostName" type="java.lang.String"/>
  48239. <param name="taskType" type="java.lang.String"/>
  48240. <param name="stateString" type="java.lang.String"/>
  48241. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  48242. <doc>
  48243. <![CDATA[Log finished event of this task.
  48244. @param taskAttemptId task attempt id
  48245. @param shuffleFinished shuffle finish time
  48246. @param sortFinished sort finish time
  48247. @param finishTime finish time of task
  48248. @param hostName host name where task attempt executed
  48249. @param taskType Whether the attempt is cleanup or setup or reduce
  48250. @param stateString the state string of the attempt
  48251. @param counter counters of the attempt]]>
  48252. </doc>
  48253. </method>
  48254. <method name="logFailed"
  48255. abstract="false" native="false" synchronized="false"
  48256. static="true" final="false" visibility="public"
  48257. deprecated="Use
  48258. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  48259. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48260. <param name="timestamp" type="long"/>
  48261. <param name="hostName" type="java.lang.String"/>
  48262. <param name="error" type="java.lang.String"/>
  48263. <doc>
  48264. <![CDATA[Log failed reduce task attempt.
  48265. @param taskAttemptId task attempt id
  48266. @param timestamp time stamp when task failed
  48267. @param hostName host name of the task attempt.
  48268. @param error error message of the task.
  48269. @deprecated Use
  48270. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  48271. </doc>
  48272. </method>
  48273. <method name="logFailed"
  48274. abstract="false" native="false" synchronized="false"
  48275. static="true" final="false" visibility="public"
  48276. deprecated="not deprecated">
  48277. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48278. <param name="timestamp" type="long"/>
  48279. <param name="hostName" type="java.lang.String"/>
  48280. <param name="error" type="java.lang.String"/>
  48281. <param name="taskType" type="java.lang.String"/>
  48282. <doc>
  48283. <![CDATA[Log failed reduce task attempt.
  48284. @param taskAttemptId task attempt id
  48285. @param timestamp time stamp when task failed
  48286. @param hostName host name of the task attempt.
  48287. @param error error message of the task.
  48288. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48289. </doc>
  48290. </method>
  48291. <method name="logKilled"
  48292. abstract="false" native="false" synchronized="false"
  48293. static="true" final="false" visibility="public"
  48294. deprecated="Use
  48295. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  48296. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48297. <param name="timestamp" type="long"/>
  48298. <param name="hostName" type="java.lang.String"/>
  48299. <param name="error" type="java.lang.String"/>
  48300. <doc>
  48301. <![CDATA[Log killed reduce task attempt.
  48302. @param taskAttemptId task attempt id
  48303. @param timestamp time stamp when task failed
  48304. @param hostName host name of the task attempt.
  48305. @param error error message of the task.
  48306. @deprecated Use
  48307. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  48308. </doc>
  48309. </method>
  48310. <method name="logKilled"
  48311. abstract="false" native="false" synchronized="false"
  48312. static="true" final="false" visibility="public"
  48313. deprecated="not deprecated">
  48314. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48315. <param name="timestamp" type="long"/>
  48316. <param name="hostName" type="java.lang.String"/>
  48317. <param name="error" type="java.lang.String"/>
  48318. <param name="taskType" type="java.lang.String"/>
  48319. <doc>
  48320. <![CDATA[Log killed reduce task attempt.
  48321. @param taskAttemptId task attempt id
  48322. @param timestamp time stamp when task failed
  48323. @param hostName host name of the task attempt.
  48324. @param error error message of the task.
  48325. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48326. </doc>
  48327. </method>
  48328. <doc>
  48329. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  48330. a Map Attempt on a node.]]>
  48331. </doc>
  48332. </class>
  48333. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  48334. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  48335. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  48336. abstract="false"
  48337. static="true" final="false" visibility="public"
  48338. deprecated="not deprecated">
  48339. <constructor name="JobHistory.Task"
  48340. static="false" final="false" visibility="public"
  48341. deprecated="not deprecated">
  48342. </constructor>
  48343. <method name="logStarted"
  48344. abstract="false" native="false" synchronized="false"
  48345. static="true" final="false" visibility="public"
  48346. deprecated="not deprecated">
  48347. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48348. <param name="taskType" type="java.lang.String"/>
  48349. <param name="startTime" type="long"/>
  48350. <param name="splitLocations" type="java.lang.String"/>
  48351. <doc>
  48352. <![CDATA[Log start time of task (TIP).
  48353. @param taskId task id
  48354. @param taskType MAP or REDUCE
  48355. @param startTime startTime of tip.]]>
  48356. </doc>
  48357. </method>
  48358. <method name="logFinished"
  48359. abstract="false" native="false" synchronized="false"
  48360. static="true" final="false" visibility="public"
  48361. deprecated="not deprecated">
  48362. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48363. <param name="taskType" type="java.lang.String"/>
  48364. <param name="finishTime" type="long"/>
  48365. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48366. <doc>
  48367. <![CDATA[Log finish time of task.
  48368. @param taskId task id
  48369. @param taskType MAP or REDUCE
  48370. @param finishTime finish timeof task in ms]]>
  48371. </doc>
  48372. </method>
  48373. <method name="logUpdates"
  48374. abstract="false" native="false" synchronized="false"
  48375. static="true" final="false" visibility="public"
  48376. deprecated="not deprecated">
  48377. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48378. <param name="finishTime" type="long"/>
  48379. <doc>
  48380. <![CDATA[Update the finish time of task.
  48381. @param taskId task id
  48382. @param finishTime finish time of task in ms]]>
  48383. </doc>
  48384. </method>
  48385. <method name="logFailed"
  48386. abstract="false" native="false" synchronized="false"
  48387. static="true" final="false" visibility="public"
  48388. deprecated="not deprecated">
  48389. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48390. <param name="taskType" type="java.lang.String"/>
  48391. <param name="time" type="long"/>
  48392. <param name="error" type="java.lang.String"/>
  48393. <doc>
  48394. <![CDATA[Log job failed event.
  48395. @param taskId task id
  48396. @param taskType MAP or REDUCE.
  48397. @param time timestamp when job failed detected.
  48398. @param error error message for failure.]]>
  48399. </doc>
  48400. </method>
  48401. <method name="logFailed"
  48402. abstract="false" native="false" synchronized="false"
  48403. static="true" final="false" visibility="public"
  48404. deprecated="not deprecated">
  48405. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48406. <param name="taskType" type="java.lang.String"/>
  48407. <param name="time" type="long"/>
  48408. <param name="error" type="java.lang.String"/>
  48409. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48410. <doc>
  48411. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  48412. </doc>
  48413. </method>
  48414. <method name="getTaskAttempts" return="java.util.Map"
  48415. abstract="false" native="false" synchronized="false"
  48416. static="false" final="false" visibility="public"
  48417. deprecated="not deprecated">
  48418. <doc>
  48419. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  48420. </doc>
  48421. </method>
  48422. <doc>
  48423. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  48424. All events logged by this class are logged in a separate file per job in
  48425. job tracker history. These events map to TIPs in jobtracker.]]>
  48426. </doc>
  48427. </class>
  48428. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  48429. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48430. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  48431. abstract="false"
  48432. static="true" final="false" visibility="public"
  48433. deprecated="not deprecated">
  48434. <constructor name="JobHistory.TaskAttempt"
  48435. static="false" final="false" visibility="public"
  48436. deprecated="not deprecated">
  48437. </constructor>
  48438. <doc>
  48439. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  48440. </doc>
  48441. </class>
  48442. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48443. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  48444. <class name="JobHistory.Values" extends="java.lang.Enum"
  48445. abstract="false"
  48446. static="true" final="true" visibility="public"
  48447. deprecated="not deprecated">
  48448. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  48449. abstract="false" native="false" synchronized="false"
  48450. static="true" final="false" visibility="public"
  48451. deprecated="not deprecated">
  48452. </method>
  48453. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  48454. abstract="false" native="false" synchronized="false"
  48455. static="true" final="false" visibility="public"
  48456. deprecated="not deprecated">
  48457. <param name="name" type="java.lang.String"/>
  48458. </method>
  48459. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  48460. transient="false" volatile="false"
  48461. static="true" final="true" visibility="public"
  48462. deprecated="not deprecated">
  48463. </field>
  48464. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  48465. transient="false" volatile="false"
  48466. static="true" final="true" visibility="public"
  48467. deprecated="not deprecated">
  48468. </field>
  48469. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  48470. transient="false" volatile="false"
  48471. static="true" final="true" visibility="public"
  48472. deprecated="not deprecated">
  48473. </field>
  48474. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48475. transient="false" volatile="false"
  48476. static="true" final="true" visibility="public"
  48477. deprecated="not deprecated">
  48478. </field>
  48479. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  48480. transient="false" volatile="false"
  48481. static="true" final="true" visibility="public"
  48482. deprecated="not deprecated">
  48483. </field>
  48484. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48485. transient="false" volatile="false"
  48486. static="true" final="true" visibility="public"
  48487. deprecated="not deprecated">
  48488. </field>
  48489. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  48490. transient="false" volatile="false"
  48491. static="true" final="true" visibility="public"
  48492. deprecated="not deprecated">
  48493. </field>
  48494. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48495. transient="false" volatile="false"
  48496. static="true" final="true" visibility="public"
  48497. deprecated="not deprecated">
  48498. </field>
  48499. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48500. transient="false" volatile="false"
  48501. static="true" final="true" visibility="public"
  48502. deprecated="not deprecated">
  48503. </field>
  48504. <doc>
  48505. <![CDATA[This enum contains some of the values commonly used by history log events.
  48506. since values in history can only be strings - Values.name() is used in
  48507. most places in history file.]]>
  48508. </doc>
  48509. </class>
  48510. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  48511. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  48512. <class name="JobHistoryServer" extends="java.lang.Object"
  48513. abstract="false"
  48514. static="false" final="false" visibility="public"
  48515. deprecated="not deprecated">
  48516. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  48517. static="false" final="false" visibility="public"
  48518. deprecated="not deprecated">
  48519. <exception name="IOException" type="java.io.IOException"/>
  48520. <doc>
  48521. <![CDATA[Starts job history server as a independent process
  48522. * Initializes ACL Manager
  48523. * Starts a webapp to service history requests
  48524. @param conf - Mr Cluster configuration
  48525. @throws IOException - any exception starting history server]]>
  48526. </doc>
  48527. </constructor>
  48528. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  48529. static="false" final="false" visibility="public"
  48530. deprecated="not deprecated">
  48531. <exception name="IOException" type="java.io.IOException"/>
  48532. <doc>
  48533. <![CDATA[Starts job history server as a embedded server within job tracker
  48534. * Starts a webapp to service history requests
  48535. @param conf - MR Cluster configuration
  48536. @param aclsManager - ACLs Manager for user authentication
  48537. @param httpServer - Http Server instance
  48538. @throws IOException - any exception starting history server]]>
  48539. </doc>
  48540. </constructor>
  48541. <method name="start"
  48542. abstract="false" native="false" synchronized="false"
  48543. static="false" final="false" visibility="public"
  48544. deprecated="not deprecated">
  48545. <exception name="IOException" type="java.io.IOException"/>
  48546. </method>
  48547. <method name="join"
  48548. abstract="false" native="false" synchronized="false"
  48549. static="false" final="false" visibility="public"
  48550. deprecated="not deprecated">
  48551. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48552. </method>
  48553. <method name="shutdown"
  48554. abstract="false" native="false" synchronized="false"
  48555. static="false" final="false" visibility="public"
  48556. deprecated="not deprecated">
  48557. <exception name="Exception" type="java.lang.Exception"/>
  48558. <doc>
  48559. <![CDATA[Shutsdown the history server if already initialized
  48560. @throws Exception - Any exception during shutdown]]>
  48561. </doc>
  48562. </method>
  48563. <method name="main"
  48564. abstract="false" native="false" synchronized="false"
  48565. static="true" final="false" visibility="public"
  48566. deprecated="not deprecated">
  48567. <param name="args" type="java.lang.String[]"/>
  48568. <doc>
  48569. <![CDATA[Start job history server as an independent process
  48570. @param args - Command line arguments]]>
  48571. </doc>
  48572. </method>
  48573. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  48574. transient="false" volatile="false"
  48575. static="true" final="true" visibility="public"
  48576. deprecated="not deprecated">
  48577. </field>
  48578. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  48579. transient="false" volatile="false"
  48580. static="true" final="true" visibility="public"
  48581. deprecated="not deprecated">
  48582. </field>
  48583. <doc>
  48584. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  48585. related requests from client.
  48586. History Server can be initialized in one of two modes
  48587. * Emdedded within {@link JobTracker}
  48588. * External daemon, can either be run on the job tracker node or outside
  48589. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  48590. of the history server
  48591. mapred.job.history.server.http.address is address to which history web
  48592. server is bound to. If operating in embedded mode, the hostname on
  48593. history address has to be same as the job tracker host name
  48594. mapred.job.history.server.embedded (default is true) will cause job tracker
  48595. to init history server, else the server need to be started as a
  48596. separate daemon process]]>
  48597. </doc>
  48598. </class>
  48599. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  48600. <!-- start class org.apache.hadoop.mapred.JobID -->
  48601. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  48602. abstract="false"
  48603. static="false" final="false" visibility="public"
  48604. deprecated="not deprecated">
  48605. <constructor name="JobID" type="java.lang.String, int"
  48606. static="false" final="false" visibility="public"
  48607. deprecated="not deprecated">
  48608. <doc>
  48609. <![CDATA[Constructs a JobID object
  48610. @param jtIdentifier jobTracker identifier
  48611. @param id job number]]>
  48612. </doc>
  48613. </constructor>
  48614. <constructor name="JobID"
  48615. static="false" final="false" visibility="public"
  48616. deprecated="not deprecated">
  48617. </constructor>
  48618. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  48619. abstract="false" native="false" synchronized="false"
  48620. static="true" final="false" visibility="public"
  48621. deprecated="not deprecated">
  48622. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  48623. <doc>
  48624. <![CDATA[Downgrade a new JobID to an old one
  48625. @param old a new or old JobID
  48626. @return either old or a new JobID build to match old]]>
  48627. </doc>
  48628. </method>
  48629. <method name="read" return="org.apache.hadoop.mapred.JobID"
  48630. abstract="false" native="false" synchronized="false"
  48631. static="true" final="false" visibility="public"
  48632. deprecated="not deprecated">
  48633. <param name="in" type="java.io.DataInput"/>
  48634. <exception name="IOException" type="java.io.IOException"/>
  48635. </method>
  48636. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  48637. abstract="false" native="false" synchronized="false"
  48638. static="true" final="false" visibility="public"
  48639. deprecated="not deprecated">
  48640. <param name="str" type="java.lang.String"/>
  48641. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  48642. <doc>
  48643. <![CDATA[Construct a JobId object from given string
  48644. @return constructed JobId object or null if the given String is null
  48645. @throws IllegalArgumentException if the given string is malformed]]>
  48646. </doc>
  48647. </method>
  48648. <method name="getJobIDsPattern" return="java.lang.String"
  48649. abstract="false" native="false" synchronized="false"
  48650. static="true" final="false" visibility="public"
  48651. deprecated="not deprecated">
  48652. <param name="jtIdentifier" type="java.lang.String"/>
  48653. <param name="jobId" type="java.lang.Integer"/>
  48654. <doc>
  48655. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  48656. be given null, in which case that part of the regex will be generic.
  48657. For example to obtain a regex matching <i>any job</i>
  48658. run on the jobtracker started at <i>200707121733</i>, we would use :
  48659. <pre>
  48660. JobID.getTaskIDsPattern("200707121733", null);
  48661. </pre>
  48662. which will return :
  48663. <pre> "job_200707121733_[0-9]*" </pre>
  48664. @param jtIdentifier jobTracker identifier, or null
  48665. @param jobId job number, or null
  48666. @return a regex pattern matching JobIDs]]>
  48667. </doc>
  48668. </method>
  48669. <doc>
  48670. <![CDATA[JobID represents the immutable and unique identifier for
  48671. the job. JobID consists of two parts. First part
  48672. represents the jobtracker identifier, so that jobID to jobtracker map
  48673. is defined. For cluster setup this string is the jobtracker
  48674. start time, for local setting, it is "local".
  48675. Second part of the JobID is the job number. <br>
  48676. An example JobID is :
  48677. <code>job_200707121733_0003</code> , which represents the third job
  48678. running at the jobtracker started at <code>200707121733</code>.
  48679. <p>
  48680. Applications should never construct or parse JobID strings, but rather
  48681. use appropriate constructors or {@link #forName(String)} method.
  48682. @see TaskID
  48683. @see TaskAttemptID]]>
  48684. </doc>
  48685. </class>
  48686. <!-- end class org.apache.hadoop.mapred.JobID -->
  48687. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  48688. <class name="JobInProgress" extends="java.lang.Object"
  48689. abstract="false"
  48690. static="false" final="false" visibility="public"
  48691. deprecated="not deprecated">
  48692. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  48693. static="false" final="false" visibility="protected"
  48694. deprecated="not deprecated">
  48695. <exception name="IOException" type="java.io.IOException"/>
  48696. <doc>
  48697. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  48698. </doc>
  48699. </constructor>
  48700. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  48701. abstract="false" native="false" synchronized="false"
  48702. static="false" final="false" visibility="public"
  48703. deprecated="not deprecated">
  48704. <doc>
  48705. <![CDATA[Get the QueueMetrics object associated with this job
  48706. @return QueueMetrics]]>
  48707. </doc>
  48708. </method>
  48709. <method name="cleanUpMetrics"
  48710. abstract="false" native="false" synchronized="false"
  48711. static="false" final="false" visibility="public"
  48712. deprecated="not deprecated">
  48713. <doc>
  48714. <![CDATA[Called when the job is complete]]>
  48715. </doc>
  48716. </method>
  48717. <method name="inited" return="boolean"
  48718. abstract="false" native="false" synchronized="false"
  48719. static="false" final="false" visibility="public"
  48720. deprecated="not deprecated">
  48721. <doc>
  48722. <![CDATA[Check if the job has been initialized.
  48723. @return <code>true</code> if the job has been initialized,
  48724. <code>false</code> otherwise]]>
  48725. </doc>
  48726. </method>
  48727. <method name="getUser" return="java.lang.String"
  48728. abstract="false" native="false" synchronized="false"
  48729. static="false" final="false" visibility="public"
  48730. deprecated="not deprecated">
  48731. <doc>
  48732. <![CDATA[Get the user for the job]]>
  48733. </doc>
  48734. </method>
  48735. <method name="initTasks"
  48736. abstract="false" native="false" synchronized="true"
  48737. static="false" final="false" visibility="public"
  48738. deprecated="not deprecated">
  48739. <exception name="IOException" type="java.io.IOException"/>
  48740. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  48741. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  48742. <doc>
  48743. <![CDATA[Construct the splits, etc. This is invoked from an async
  48744. thread so that split-computation doesn't block anyone.]]>
  48745. </doc>
  48746. </method>
  48747. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  48748. abstract="false" native="false" synchronized="false"
  48749. static="false" final="false" visibility="public"
  48750. deprecated="not deprecated">
  48751. </method>
  48752. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  48753. abstract="false" native="false" synchronized="false"
  48754. static="false" final="false" visibility="public"
  48755. deprecated="not deprecated">
  48756. </method>
  48757. <method name="getLaunchTime" return="long"
  48758. abstract="false" native="false" synchronized="true"
  48759. static="false" final="false" visibility="public"
  48760. deprecated="not deprecated">
  48761. </method>
  48762. <method name="getStartTime" return="long"
  48763. abstract="false" native="false" synchronized="false"
  48764. static="false" final="false" visibility="public"
  48765. deprecated="not deprecated">
  48766. </method>
  48767. <method name="getFinishTime" return="long"
  48768. abstract="false" native="false" synchronized="false"
  48769. static="false" final="false" visibility="public"
  48770. deprecated="not deprecated">
  48771. </method>
  48772. <method name="desiredMaps" return="int"
  48773. abstract="false" native="false" synchronized="false"
  48774. static="false" final="false" visibility="public"
  48775. deprecated="not deprecated">
  48776. </method>
  48777. <method name="finishedMaps" return="int"
  48778. abstract="false" native="false" synchronized="true"
  48779. static="false" final="false" visibility="public"
  48780. deprecated="not deprecated">
  48781. </method>
  48782. <method name="desiredReduces" return="int"
  48783. abstract="false" native="false" synchronized="false"
  48784. static="false" final="false" visibility="public"
  48785. deprecated="not deprecated">
  48786. </method>
  48787. <method name="runningMaps" return="int"
  48788. abstract="false" native="false" synchronized="true"
  48789. static="false" final="false" visibility="public"
  48790. deprecated="not deprecated">
  48791. </method>
  48792. <method name="runningReduces" return="int"
  48793. abstract="false" native="false" synchronized="true"
  48794. static="false" final="false" visibility="public"
  48795. deprecated="not deprecated">
  48796. </method>
  48797. <method name="finishedReduces" return="int"
  48798. abstract="false" native="false" synchronized="true"
  48799. static="false" final="false" visibility="public"
  48800. deprecated="not deprecated">
  48801. </method>
  48802. <method name="pendingMaps" return="int"
  48803. abstract="false" native="false" synchronized="true"
  48804. static="false" final="false" visibility="public"
  48805. deprecated="not deprecated">
  48806. </method>
  48807. <method name="pendingReduces" return="int"
  48808. abstract="false" native="false" synchronized="true"
  48809. static="false" final="false" visibility="public"
  48810. deprecated="not deprecated">
  48811. </method>
  48812. <method name="desiredTasks" return="int"
  48813. abstract="false" native="false" synchronized="false"
  48814. static="false" final="false" visibility="public"
  48815. deprecated="not deprecated">
  48816. <doc>
  48817. <![CDATA[Return total number of map and reduce tasks desired by the job.
  48818. @return total number of map and reduce tasks desired by the job]]>
  48819. </doc>
  48820. </method>
  48821. <method name="getNumSlotsPerTask" return="int"
  48822. abstract="false" native="false" synchronized="false"
  48823. static="false" final="false" visibility="public"
  48824. deprecated="not deprecated">
  48825. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  48826. </method>
  48827. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  48828. abstract="false" native="false" synchronized="false"
  48829. static="false" final="false" visibility="public"
  48830. deprecated="not deprecated">
  48831. </method>
  48832. <method name="setPriority"
  48833. abstract="false" native="false" synchronized="false"
  48834. static="false" final="false" visibility="public"
  48835. deprecated="not deprecated">
  48836. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  48837. </method>
  48838. <method name="reportTasksInProgress" return="java.util.Vector"
  48839. abstract="false" native="false" synchronized="true"
  48840. static="false" final="false" visibility="public"
  48841. deprecated="not deprecated">
  48842. <param name="shouldBeMap" type="boolean"/>
  48843. <param name="shouldBeComplete" type="boolean"/>
  48844. <doc>
  48845. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  48846. </doc>
  48847. </method>
  48848. <method name="reportCleanupTIPs" return="java.util.Vector"
  48849. abstract="false" native="false" synchronized="true"
  48850. static="false" final="false" visibility="public"
  48851. deprecated="not deprecated">
  48852. <param name="shouldBeComplete" type="boolean"/>
  48853. <doc>
  48854. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  48855. </doc>
  48856. </method>
  48857. <method name="reportSetupTIPs" return="java.util.Vector"
  48858. abstract="false" native="false" synchronized="true"
  48859. static="false" final="false" visibility="public"
  48860. deprecated="not deprecated">
  48861. <param name="shouldBeComplete" type="boolean"/>
  48862. <doc>
  48863. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  48864. </doc>
  48865. </method>
  48866. <method name="updateTaskStatus"
  48867. abstract="false" native="false" synchronized="true"
  48868. static="false" final="false" visibility="public"
  48869. deprecated="not deprecated">
  48870. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  48871. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  48872. <doc>
  48873. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  48874. </doc>
  48875. </method>
  48876. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  48877. abstract="false" native="false" synchronized="true"
  48878. static="false" final="false" visibility="public"
  48879. deprecated="not deprecated">
  48880. <doc>
  48881. <![CDATA[Returns the job-level counters.
  48882. @return the job-level counters.]]>
  48883. </doc>
  48884. </method>
  48885. <method name="getMapCounters" return="boolean"
  48886. abstract="false" native="false" synchronized="true"
  48887. static="false" final="false" visibility="public"
  48888. deprecated="not deprecated">
  48889. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48890. <doc>
  48891. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  48892. This method returns true if counters are within limit or false.]]>
  48893. </doc>
  48894. </method>
  48895. <method name="getReduceCounters" return="boolean"
  48896. abstract="false" native="false" synchronized="true"
  48897. static="false" final="false" visibility="public"
  48898. deprecated="not deprecated">
  48899. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48900. <doc>
  48901. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  48902. This method returns true if counters are within limits and false otherwise.]]>
  48903. </doc>
  48904. </method>
  48905. <method name="getCounters" return="boolean"
  48906. abstract="false" native="false" synchronized="true"
  48907. static="false" final="false" visibility="public"
  48908. deprecated="not deprecated">
  48909. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  48910. <doc>
  48911. <![CDATA[Returns the total job counters, by adding together the job,
  48912. the map and the reduce counters. This method returns true if
  48913. counters are within limits and false otherwise.]]>
  48914. </doc>
  48915. </method>
  48916. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  48917. abstract="false" native="false" synchronized="true"
  48918. static="false" final="false" visibility="public"
  48919. deprecated="not deprecated">
  48920. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48921. <param name="clusterSize" type="int"/>
  48922. <param name="numUniqueHosts" type="int"/>
  48923. <exception name="IOException" type="java.io.IOException"/>
  48924. <doc>
  48925. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  48926. </doc>
  48927. </method>
  48928. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  48929. abstract="false" native="false" synchronized="false"
  48930. static="false" final="false" visibility="public"
  48931. deprecated="not deprecated">
  48932. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48933. <param name="isMapSlot" type="boolean"/>
  48934. <exception name="IOException" type="java.io.IOException"/>
  48935. </method>
  48936. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48937. abstract="false" native="false" synchronized="true"
  48938. static="false" final="false" visibility="public"
  48939. deprecated="not deprecated">
  48940. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48941. <param name="clusterSize" type="int"/>
  48942. <param name="numUniqueHosts" type="int"/>
  48943. <exception name="IOException" type="java.io.IOException"/>
  48944. </method>
  48945. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48946. abstract="false" native="false" synchronized="true"
  48947. static="false" final="false" visibility="public"
  48948. deprecated="not deprecated">
  48949. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48950. <param name="clusterSize" type="int"/>
  48951. <param name="numUniqueHosts" type="int"/>
  48952. <exception name="IOException" type="java.io.IOException"/>
  48953. </method>
  48954. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48955. abstract="false" native="false" synchronized="true"
  48956. static="false" final="false" visibility="public"
  48957. deprecated="not deprecated">
  48958. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48959. <param name="clusterSize" type="int"/>
  48960. <param name="numUniqueHosts" type="int"/>
  48961. <exception name="IOException" type="java.io.IOException"/>
  48962. </method>
  48963. <method name="schedulingOpportunity"
  48964. abstract="false" native="false" synchronized="false"
  48965. static="false" final="false" visibility="public"
  48966. deprecated="not deprecated">
  48967. </method>
  48968. <method name="resetSchedulingOpportunities"
  48969. abstract="false" native="false" synchronized="false"
  48970. static="false" final="false" visibility="public"
  48971. deprecated="not deprecated">
  48972. </method>
  48973. <method name="getNumSchedulingOpportunities" return="long"
  48974. abstract="false" native="false" synchronized="false"
  48975. static="false" final="false" visibility="public"
  48976. deprecated="not deprecated">
  48977. </method>
  48978. <method name="overrideSchedulingOpportunities"
  48979. abstract="false" native="false" synchronized="false"
  48980. static="false" final="false" visibility="public"
  48981. deprecated="not deprecated">
  48982. </method>
  48983. <method name="scheduleOffSwitch" return="boolean"
  48984. abstract="false" native="false" synchronized="false"
  48985. static="false" final="false" visibility="public"
  48986. deprecated="not deprecated">
  48987. <param name="numTaskTrackers" type="int"/>
  48988. <doc>
  48989. <![CDATA[Check if we can schedule an off-switch task for this job.
  48990. @param numTaskTrackers number of tasktrackers
  48991. @return <code>true</code> if we can schedule off-switch,
  48992. <code>false</code> otherwise
  48993. We check the number of missed opportunities for the job.
  48994. If it has 'waited' long enough we go ahead and schedule.]]>
  48995. </doc>
  48996. </method>
  48997. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  48998. abstract="false" native="false" synchronized="false"
  48999. static="false" final="false" visibility="public"
  49000. deprecated="not deprecated">
  49001. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49002. <param name="clusterSize" type="int"/>
  49003. <param name="numUniqueHosts" type="int"/>
  49004. <param name="isMapSlot" type="boolean"/>
  49005. <exception name="IOException" type="java.io.IOException"/>
  49006. <doc>
  49007. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  49008. </doc>
  49009. </method>
  49010. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  49011. abstract="false" native="false" synchronized="false"
  49012. static="false" final="false" visibility="public"
  49013. deprecated="not deprecated">
  49014. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49015. <param name="clusterSize" type="int"/>
  49016. <param name="numUniqueHosts" type="int"/>
  49017. <param name="isMapSlot" type="boolean"/>
  49018. <exception name="IOException" type="java.io.IOException"/>
  49019. <doc>
  49020. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  49021. </doc>
  49022. </method>
  49023. <method name="scheduleReduces" return="boolean"
  49024. abstract="false" native="false" synchronized="true"
  49025. static="false" final="false" visibility="public"
  49026. deprecated="not deprecated">
  49027. </method>
  49028. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  49029. abstract="false" native="false" synchronized="true"
  49030. static="false" final="false" visibility="public"
  49031. deprecated="not deprecated">
  49032. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49033. <param name="clusterSize" type="int"/>
  49034. <param name="numUniqueHosts" type="int"/>
  49035. <exception name="IOException" type="java.io.IOException"/>
  49036. <doc>
  49037. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  49038. We don't have cache-sensitivity for reduce tasks, as they
  49039. work on temporary MapRed files.]]>
  49040. </doc>
  49041. </method>
  49042. <method name="reserveTaskTracker"
  49043. abstract="false" native="false" synchronized="true"
  49044. static="false" final="false" visibility="public"
  49045. deprecated="not deprecated">
  49046. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  49047. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  49048. <param name="numSlots" type="int"/>
  49049. </method>
  49050. <method name="unreserveTaskTracker"
  49051. abstract="false" native="false" synchronized="true"
  49052. static="false" final="false" visibility="public"
  49053. deprecated="not deprecated">
  49054. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  49055. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  49056. </method>
  49057. <method name="getNumReservedTaskTrackersForMaps" return="int"
  49058. abstract="false" native="false" synchronized="false"
  49059. static="false" final="false" visibility="public"
  49060. deprecated="not deprecated">
  49061. </method>
  49062. <method name="getNumReservedTaskTrackersForReduces" return="int"
  49063. abstract="false" native="false" synchronized="false"
  49064. static="false" final="false" visibility="public"
  49065. deprecated="not deprecated">
  49066. </method>
  49067. <method name="scheduleMap"
  49068. abstract="false" native="false" synchronized="true"
  49069. static="false" final="false" visibility="protected"
  49070. deprecated="not deprecated">
  49071. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49072. <doc>
  49073. <![CDATA[Adds a map tip to the list of running maps.
  49074. @param tip the tip that needs to be scheduled as running]]>
  49075. </doc>
  49076. </method>
  49077. <method name="scheduleReduce"
  49078. abstract="false" native="false" synchronized="true"
  49079. static="false" final="false" visibility="protected"
  49080. deprecated="not deprecated">
  49081. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49082. <doc>
  49083. <![CDATA[Adds a reduce tip to the list of running reduces
  49084. @param tip the tip that needs to be scheduled as running]]>
  49085. </doc>
  49086. </method>
  49087. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  49088. abstract="false" native="false" synchronized="true"
  49089. static="false" final="false" visibility="protected"
  49090. deprecated="not deprecated">
  49091. <param name="list" type="java.util.Collection"/>
  49092. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49093. <param name="avgProgress" type="double"/>
  49094. <param name="currentTime" type="long"/>
  49095. <param name="shouldRemove" type="boolean"/>
  49096. <doc>
  49097. <![CDATA[Find a speculative task
  49098. @param list a list of tips
  49099. @param ttStatus status of the tracker that has requested a tip
  49100. @param avgProgress the average progress for speculation
  49101. @param currentTime current time in milliseconds
  49102. @param shouldRemove whether to remove the tips
  49103. @return a tip that can be speculated on the tracker]]>
  49104. </doc>
  49105. </method>
  49106. <method name="completedTask" return="boolean"
  49107. abstract="false" native="false" synchronized="true"
  49108. static="false" final="false" visibility="public"
  49109. deprecated="not deprecated">
  49110. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49111. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  49112. <doc>
  49113. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  49114. </doc>
  49115. </method>
  49116. <method name="kill"
  49117. abstract="false" native="false" synchronized="false"
  49118. static="false" final="false" visibility="public"
  49119. deprecated="not deprecated">
  49120. <doc>
  49121. <![CDATA[Kill the job and all its component tasks. This method should be called from
  49122. jobtracker and should return fast as it locks the jobtracker.]]>
  49123. </doc>
  49124. </method>
  49125. <method name="failedTask"
  49126. abstract="false" native="false" synchronized="false"
  49127. static="false" final="false" visibility="public"
  49128. deprecated="not deprecated">
  49129. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49130. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49131. <param name="reason" type="java.lang.String"/>
  49132. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  49133. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  49134. <param name="trackerName" type="java.lang.String"/>
  49135. <doc>
  49136. <![CDATA[Fail a task with a given reason, but without a status object.
  49137. Assuming {@link JobTracker} is locked on entry.
  49138. @param tip The task's tip
  49139. @param taskid The task id
  49140. @param reason The reason that the task failed
  49141. @param trackerName The task tracker the task failed on]]>
  49142. </doc>
  49143. </method>
  49144. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  49145. abstract="false" native="false" synchronized="true"
  49146. static="false" final="false" visibility="public"
  49147. deprecated="not deprecated">
  49148. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  49149. <doc>
  49150. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  49151. </doc>
  49152. </method>
  49153. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  49154. abstract="false" native="false" synchronized="true"
  49155. static="false" final="false" visibility="public"
  49156. deprecated="not deprecated">
  49157. <param name="mapId" type="int"/>
  49158. <doc>
  49159. <![CDATA[Find the details of someplace where a map has finished
  49160. @param mapId the id of the map
  49161. @return the task status of the completed task]]>
  49162. </doc>
  49163. </method>
  49164. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  49165. abstract="false" native="false" synchronized="true"
  49166. static="false" final="false" visibility="public"
  49167. deprecated="not deprecated">
  49168. <param name="fromEventId" type="int"/>
  49169. <param name="maxEvents" type="int"/>
  49170. </method>
  49171. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49172. abstract="false" native="false" synchronized="false"
  49173. static="false" final="false" visibility="public"
  49174. deprecated="not deprecated">
  49175. <doc>
  49176. <![CDATA[@return The JobID of this JobInProgress.]]>
  49177. </doc>
  49178. </method>
  49179. <method name="getJobSubmitHostName" return="java.lang.String"
  49180. abstract="false" native="false" synchronized="false"
  49181. static="false" final="false" visibility="public"
  49182. deprecated="not deprecated">
  49183. <doc>
  49184. <![CDATA[@return submitHostName of this JobInProgress.]]>
  49185. </doc>
  49186. </method>
  49187. <method name="getJobSubmitHostAddress" return="java.lang.String"
  49188. abstract="false" native="false" synchronized="false"
  49189. static="false" final="false" visibility="public"
  49190. deprecated="not deprecated">
  49191. <doc>
  49192. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  49193. </doc>
  49194. </method>
  49195. <method name="getSchedulingInfo" return="java.lang.Object"
  49196. abstract="false" native="false" synchronized="true"
  49197. static="false" final="false" visibility="public"
  49198. deprecated="not deprecated">
  49199. </method>
  49200. <method name="setSchedulingInfo"
  49201. abstract="false" native="false" synchronized="true"
  49202. static="false" final="false" visibility="public"
  49203. deprecated="not deprecated">
  49204. <param name="schedulingInfo" type="java.lang.Object"/>
  49205. </method>
  49206. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  49207. transient="false" volatile="false"
  49208. static="false" final="false" visibility="protected"
  49209. deprecated="not deprecated">
  49210. </field>
  49211. <doc>
  49212. <![CDATA[JobInProgress maintains all the info for keeping
  49213. a Job on the straight and narrow. It keeps its JobProfile
  49214. and its latest JobStatus, plus a set of tables for
  49215. doing bookkeeping of its Tasks.
  49216. ***********************************************************]]>
  49217. </doc>
  49218. </class>
  49219. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  49220. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49221. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  49222. abstract="false"
  49223. static="true" final="true" visibility="public"
  49224. deprecated="not deprecated">
  49225. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  49226. abstract="false" native="false" synchronized="false"
  49227. static="true" final="false" visibility="public"
  49228. deprecated="not deprecated">
  49229. </method>
  49230. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  49231. abstract="false" native="false" synchronized="false"
  49232. static="true" final="false" visibility="public"
  49233. deprecated="not deprecated">
  49234. <param name="name" type="java.lang.String"/>
  49235. </method>
  49236. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49237. transient="false" volatile="false"
  49238. static="true" final="true" visibility="public"
  49239. deprecated="not deprecated">
  49240. </field>
  49241. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49242. transient="false" volatile="false"
  49243. static="true" final="true" visibility="public"
  49244. deprecated="not deprecated">
  49245. </field>
  49246. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49247. transient="false" volatile="false"
  49248. static="true" final="true" visibility="public"
  49249. deprecated="not deprecated">
  49250. </field>
  49251. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49252. transient="false" volatile="false"
  49253. static="true" final="true" visibility="public"
  49254. deprecated="not deprecated">
  49255. </field>
  49256. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49257. transient="false" volatile="false"
  49258. static="true" final="true" visibility="public"
  49259. deprecated="not deprecated">
  49260. </field>
  49261. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49262. transient="false" volatile="false"
  49263. static="true" final="true" visibility="public"
  49264. deprecated="not deprecated">
  49265. </field>
  49266. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49267. transient="false" volatile="false"
  49268. static="true" final="true" visibility="public"
  49269. deprecated="not deprecated">
  49270. </field>
  49271. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49272. transient="false" volatile="false"
  49273. static="true" final="true" visibility="public"
  49274. deprecated="not deprecated">
  49275. </field>
  49276. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49277. transient="false" volatile="false"
  49278. static="true" final="true" visibility="public"
  49279. deprecated="not deprecated">
  49280. </field>
  49281. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49282. transient="false" volatile="false"
  49283. static="true" final="true" visibility="public"
  49284. deprecated="not deprecated">
  49285. </field>
  49286. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49287. transient="false" volatile="false"
  49288. static="true" final="true" visibility="public"
  49289. deprecated="not deprecated">
  49290. </field>
  49291. </class>
  49292. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49293. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  49294. <class name="JobLocalizer" extends="java.lang.Object"
  49295. abstract="false"
  49296. static="false" final="false" visibility="public"
  49297. deprecated="not deprecated">
  49298. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  49299. static="false" final="false" visibility="public"
  49300. deprecated="not deprecated">
  49301. <exception name="IOException" type="java.io.IOException"/>
  49302. </constructor>
  49303. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  49304. static="false" final="false" visibility="public"
  49305. deprecated="not deprecated">
  49306. <exception name="IOException" type="java.io.IOException"/>
  49307. </constructor>
  49308. <method name="createLocalDirs"
  49309. abstract="false" native="false" synchronized="false"
  49310. static="false" final="false" visibility="public"
  49311. deprecated="not deprecated">
  49312. <exception name="IOException" type="java.io.IOException"/>
  49313. </method>
  49314. <method name="createUserDirs"
  49315. abstract="false" native="false" synchronized="false"
  49316. static="false" final="false" visibility="public"
  49317. deprecated="not deprecated">
  49318. <exception name="IOException" type="java.io.IOException"/>
  49319. <doc>
  49320. <![CDATA[Initialize the local directories for a particular user on this TT. This
  49321. involves creation and setting permissions of the following directories
  49322. <ul>
  49323. <li>$mapred.local.dir/taskTracker/$user</li>
  49324. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49325. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  49326. </ul>]]>
  49327. </doc>
  49328. </method>
  49329. <method name="createJobDirs"
  49330. abstract="false" native="false" synchronized="false"
  49331. static="false" final="false" visibility="public"
  49332. deprecated="not deprecated">
  49333. <exception name="IOException" type="java.io.IOException"/>
  49334. <doc>
  49335. <![CDATA[Prepare the job directories for a given job. To be called by the job
  49336. localization code, only if the job is not already localized.
  49337. <br>
  49338. Here, we set 700 permissions on the job directories created on all disks.
  49339. This we do so as to avoid any misuse by other users till the time
  49340. {@link TaskController#initializeJob} is run at a
  49341. later time to set proper private permissions on the job directories. <br>]]>
  49342. </doc>
  49343. </method>
  49344. <method name="initializeJobLogDir"
  49345. abstract="false" native="false" synchronized="false"
  49346. static="false" final="false" visibility="public"
  49347. deprecated="not deprecated">
  49348. <exception name="IOException" type="java.io.IOException"/>
  49349. <doc>
  49350. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  49351. </doc>
  49352. </method>
  49353. <method name="downloadPrivateCache" return="long[]"
  49354. abstract="false" native="false" synchronized="false"
  49355. static="true" final="false" visibility="public"
  49356. deprecated="not deprecated">
  49357. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  49358. <exception name="IOException" type="java.io.IOException"/>
  49359. <doc>
  49360. <![CDATA[Download the parts of the distributed cache that are private.
  49361. @param conf the job's configuration
  49362. @throws IOException
  49363. @return the size of the archive objects]]>
  49364. </doc>
  49365. </method>
  49366. <method name="localizeJobFiles"
  49367. abstract="false" native="false" synchronized="false"
  49368. static="false" final="false" visibility="public"
  49369. deprecated="not deprecated">
  49370. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49371. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49372. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49373. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49374. <exception name="IOException" type="java.io.IOException"/>
  49375. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49376. </method>
  49377. <method name="localizeJobFiles"
  49378. abstract="false" native="false" synchronized="false"
  49379. static="false" final="false" visibility="public"
  49380. deprecated="not deprecated">
  49381. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49382. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49383. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  49384. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49385. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49386. <exception name="IOException" type="java.io.IOException"/>
  49387. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49388. </method>
  49389. <method name="createWorkDir"
  49390. abstract="false" native="false" synchronized="false"
  49391. static="false" final="false" visibility="public"
  49392. deprecated="not deprecated">
  49393. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49394. <exception name="IOException" type="java.io.IOException"/>
  49395. </method>
  49396. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  49397. abstract="false" native="false" synchronized="false"
  49398. static="false" final="false" visibility="public"
  49399. deprecated="not deprecated">
  49400. <exception name="IOException" type="java.io.IOException"/>
  49401. </method>
  49402. <method name="runSetup" return="int"
  49403. abstract="false" native="false" synchronized="false"
  49404. static="false" final="false" visibility="public"
  49405. deprecated="not deprecated">
  49406. <param name="user" type="java.lang.String"/>
  49407. <param name="jobid" type="java.lang.String"/>
  49408. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49409. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49410. <exception name="IOException" type="java.io.IOException"/>
  49411. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49412. </method>
  49413. <method name="main"
  49414. abstract="false" native="false" synchronized="false"
  49415. static="true" final="false" visibility="public"
  49416. deprecated="not deprecated">
  49417. <param name="argv" type="java.lang.String[]"/>
  49418. <exception name="IOException" type="java.io.IOException"/>
  49419. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49420. </method>
  49421. <method name="writeLocalJobFile"
  49422. abstract="false" native="false" synchronized="false"
  49423. static="true" final="false" visibility="public"
  49424. deprecated="not deprecated">
  49425. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  49426. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49427. <exception name="IOException" type="java.io.IOException"/>
  49428. <doc>
  49429. <![CDATA[Write the task specific job-configuration file.
  49430. @throws IOException]]>
  49431. </doc>
  49432. </method>
  49433. <doc>
  49434. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  49435. Creates the following hierarchy:
  49436. <li>$mapred.local.dir/taskTracker/$user</li>
  49437. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49438. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  49439. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  49440. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  49441. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  49442. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  49443. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  49444. </doc>
  49445. </class>
  49446. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  49447. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  49448. <class name="JobPriority" extends="java.lang.Enum"
  49449. abstract="false"
  49450. static="false" final="true" visibility="public"
  49451. deprecated="not deprecated">
  49452. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  49453. abstract="false" native="false" synchronized="false"
  49454. static="true" final="false" visibility="public"
  49455. deprecated="not deprecated">
  49456. </method>
  49457. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  49458. abstract="false" native="false" synchronized="false"
  49459. static="true" final="false" visibility="public"
  49460. deprecated="not deprecated">
  49461. <param name="name" type="java.lang.String"/>
  49462. </method>
  49463. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  49464. transient="false" volatile="false"
  49465. static="true" final="true" visibility="public"
  49466. deprecated="not deprecated">
  49467. </field>
  49468. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  49469. transient="false" volatile="false"
  49470. static="true" final="true" visibility="public"
  49471. deprecated="not deprecated">
  49472. </field>
  49473. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  49474. transient="false" volatile="false"
  49475. static="true" final="true" visibility="public"
  49476. deprecated="not deprecated">
  49477. </field>
  49478. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  49479. transient="false" volatile="false"
  49480. static="true" final="true" visibility="public"
  49481. deprecated="not deprecated">
  49482. </field>
  49483. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  49484. transient="false" volatile="false"
  49485. static="true" final="true" visibility="public"
  49486. deprecated="not deprecated">
  49487. </field>
  49488. <doc>
  49489. <![CDATA[Used to describe the priority of the running job.]]>
  49490. </doc>
  49491. </class>
  49492. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  49493. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  49494. <class name="JobProfile" extends="java.lang.Object"
  49495. abstract="false"
  49496. static="false" final="false" visibility="public"
  49497. deprecated="not deprecated">
  49498. <implements name="org.apache.hadoop.io.Writable"/>
  49499. <constructor name="JobProfile"
  49500. static="false" final="false" visibility="public"
  49501. deprecated="not deprecated">
  49502. <doc>
  49503. <![CDATA[Construct an empty {@link JobProfile}.]]>
  49504. </doc>
  49505. </constructor>
  49506. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  49507. static="false" final="false" visibility="public"
  49508. deprecated="not deprecated">
  49509. <doc>
  49510. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  49511. job config-file, job-details url and job name.
  49512. @param user userid of the person who submitted the job.
  49513. @param jobid id of the job.
  49514. @param jobFile job configuration file.
  49515. @param url link to the web-ui for details of the job.
  49516. @param name user-specified job name.]]>
  49517. </doc>
  49518. </constructor>
  49519. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  49520. static="false" final="false" visibility="public"
  49521. deprecated="not deprecated">
  49522. <doc>
  49523. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  49524. job config-file, job-details url and job name.
  49525. @param user userid of the person who submitted the job.
  49526. @param jobid id of the job.
  49527. @param jobFile job configuration file.
  49528. @param url link to the web-ui for details of the job.
  49529. @param name user-specified job name.
  49530. @param queueName name of the queue to which the job is submitted]]>
  49531. </doc>
  49532. </constructor>
  49533. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  49534. static="false" final="false" visibility="public"
  49535. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  49536. <doc>
  49537. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  49538. </doc>
  49539. </constructor>
  49540. <method name="getUser" return="java.lang.String"
  49541. abstract="false" native="false" synchronized="false"
  49542. static="false" final="false" visibility="public"
  49543. deprecated="not deprecated">
  49544. <doc>
  49545. <![CDATA[Get the user id.]]>
  49546. </doc>
  49547. </method>
  49548. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49549. abstract="false" native="false" synchronized="false"
  49550. static="false" final="false" visibility="public"
  49551. deprecated="not deprecated">
  49552. <doc>
  49553. <![CDATA[Get the job id.]]>
  49554. </doc>
  49555. </method>
  49556. <method name="getJobId" return="java.lang.String"
  49557. abstract="false" native="false" synchronized="false"
  49558. static="false" final="false" visibility="public"
  49559. deprecated="use getJobID() instead">
  49560. <doc>
  49561. <![CDATA[@deprecated use getJobID() instead]]>
  49562. </doc>
  49563. </method>
  49564. <method name="getJobFile" return="java.lang.String"
  49565. abstract="false" native="false" synchronized="false"
  49566. static="false" final="false" visibility="public"
  49567. deprecated="not deprecated">
  49568. <doc>
  49569. <![CDATA[Get the configuration file for the job.]]>
  49570. </doc>
  49571. </method>
  49572. <method name="getURL" return="java.net.URL"
  49573. abstract="false" native="false" synchronized="false"
  49574. static="false" final="false" visibility="public"
  49575. deprecated="not deprecated">
  49576. <doc>
  49577. <![CDATA[Get the link to the web-ui for details of the job.]]>
  49578. </doc>
  49579. </method>
  49580. <method name="getJobName" return="java.lang.String"
  49581. abstract="false" native="false" synchronized="false"
  49582. static="false" final="false" visibility="public"
  49583. deprecated="not deprecated">
  49584. <doc>
  49585. <![CDATA[Get the user-specified job name.]]>
  49586. </doc>
  49587. </method>
  49588. <method name="getQueueName" return="java.lang.String"
  49589. abstract="false" native="false" synchronized="false"
  49590. static="false" final="false" visibility="public"
  49591. deprecated="not deprecated">
  49592. <doc>
  49593. <![CDATA[Get the name of the queue to which the job is submitted.
  49594. @return name of the queue.]]>
  49595. </doc>
  49596. </method>
  49597. <method name="write"
  49598. abstract="false" native="false" synchronized="false"
  49599. static="false" final="false" visibility="public"
  49600. deprecated="not deprecated">
  49601. <param name="out" type="java.io.DataOutput"/>
  49602. <exception name="IOException" type="java.io.IOException"/>
  49603. </method>
  49604. <method name="readFields"
  49605. abstract="false" native="false" synchronized="false"
  49606. static="false" final="false" visibility="public"
  49607. deprecated="not deprecated">
  49608. <param name="in" type="java.io.DataInput"/>
  49609. <exception name="IOException" type="java.io.IOException"/>
  49610. </method>
  49611. <doc>
  49612. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  49613. whether living or dead.]]>
  49614. </doc>
  49615. </class>
  49616. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  49617. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  49618. <class name="JobQueueInfo" extends="java.lang.Object"
  49619. abstract="false"
  49620. static="false" final="false" visibility="public"
  49621. deprecated="not deprecated">
  49622. <implements name="org.apache.hadoop.io.Writable"/>
  49623. <constructor name="JobQueueInfo"
  49624. static="false" final="false" visibility="public"
  49625. deprecated="not deprecated">
  49626. </constructor>
  49627. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  49628. static="false" final="false" visibility="public"
  49629. deprecated="not deprecated">
  49630. <doc>
  49631. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  49632. scheduling information passed.
  49633. @param queueName Name of the job queue
  49634. @param schedulingInfo Scheduling Information associated with the job
  49635. queue]]>
  49636. </doc>
  49637. </constructor>
  49638. <method name="setQueueName"
  49639. abstract="false" native="false" synchronized="false"
  49640. static="false" final="false" visibility="public"
  49641. deprecated="not deprecated">
  49642. <param name="queueName" type="java.lang.String"/>
  49643. <doc>
  49644. <![CDATA[Set the queue name of the JobQueueInfo
  49645. @param queueName Name of the job queue.]]>
  49646. </doc>
  49647. </method>
  49648. <method name="getQueueName" return="java.lang.String"
  49649. abstract="false" native="false" synchronized="false"
  49650. static="false" final="false" visibility="public"
  49651. deprecated="not deprecated">
  49652. <doc>
  49653. <![CDATA[Get the queue name from JobQueueInfo
  49654. @return queue name]]>
  49655. </doc>
  49656. </method>
  49657. <method name="setSchedulingInfo"
  49658. abstract="false" native="false" synchronized="false"
  49659. static="false" final="false" visibility="public"
  49660. deprecated="not deprecated">
  49661. <param name="schedulingInfo" type="java.lang.String"/>
  49662. <doc>
  49663. <![CDATA[Set the scheduling information associated to particular job queue
  49664. @param schedulingInfo]]>
  49665. </doc>
  49666. </method>
  49667. <method name="getSchedulingInfo" return="java.lang.String"
  49668. abstract="false" native="false" synchronized="false"
  49669. static="false" final="false" visibility="public"
  49670. deprecated="not deprecated">
  49671. <doc>
  49672. <![CDATA[Gets the scheduling information associated to particular job queue.
  49673. If nothing is set would return <b>"N/A"</b>
  49674. @return Scheduling information associated to particular Job Queue]]>
  49675. </doc>
  49676. </method>
  49677. <method name="setQueueState"
  49678. abstract="false" native="false" synchronized="false"
  49679. static="false" final="false" visibility="public"
  49680. deprecated="not deprecated">
  49681. <param name="state" type="java.lang.String"/>
  49682. <doc>
  49683. <![CDATA[Set the state of the queue
  49684. @param state state of the queue.]]>
  49685. </doc>
  49686. </method>
  49687. <method name="getQueueState" return="java.lang.String"
  49688. abstract="false" native="false" synchronized="false"
  49689. static="false" final="false" visibility="public"
  49690. deprecated="not deprecated">
  49691. <doc>
  49692. <![CDATA[Return the queue state
  49693. @return the queue state.]]>
  49694. </doc>
  49695. </method>
  49696. <method name="readFields"
  49697. abstract="false" native="false" synchronized="false"
  49698. static="false" final="false" visibility="public"
  49699. deprecated="not deprecated">
  49700. <param name="in" type="java.io.DataInput"/>
  49701. <exception name="IOException" type="java.io.IOException"/>
  49702. </method>
  49703. <method name="write"
  49704. abstract="false" native="false" synchronized="false"
  49705. static="false" final="false" visibility="public"
  49706. deprecated="not deprecated">
  49707. <param name="out" type="java.io.DataOutput"/>
  49708. <exception name="IOException" type="java.io.IOException"/>
  49709. </method>
  49710. <doc>
  49711. <![CDATA[Class that contains the information regarding the Job Queues which are
  49712. maintained by the Hadoop Map/Reduce framework.]]>
  49713. </doc>
  49714. </class>
  49715. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  49716. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  49717. <class name="JobStatus" extends="java.lang.Object"
  49718. abstract="false"
  49719. static="false" final="false" visibility="public"
  49720. deprecated="not deprecated">
  49721. <implements name="org.apache.hadoop.io.Writable"/>
  49722. <implements name="java.lang.Cloneable"/>
  49723. <constructor name="JobStatus"
  49724. static="false" final="false" visibility="public"
  49725. deprecated="not deprecated">
  49726. </constructor>
  49727. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  49728. static="false" final="false" visibility="public"
  49729. deprecated="not deprecated">
  49730. <doc>
  49731. <![CDATA[Create a job status object for a given jobid.
  49732. @param jobid The jobid of the job
  49733. @param mapProgress The progress made on the maps
  49734. @param reduceProgress The progress made on the reduces
  49735. @param cleanupProgress The progress made on cleanup
  49736. @param runState The current state of the job]]>
  49737. </doc>
  49738. </constructor>
  49739. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  49740. static="false" final="false" visibility="public"
  49741. deprecated="not deprecated">
  49742. <doc>
  49743. <![CDATA[Create a job status object for a given jobid.
  49744. @param jobid The jobid of the job
  49745. @param mapProgress The progress made on the maps
  49746. @param reduceProgress The progress made on the reduces
  49747. @param runState The current state of the job]]>
  49748. </doc>
  49749. </constructor>
  49750. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  49751. static="false" final="false" visibility="public"
  49752. deprecated="not deprecated">
  49753. <doc>
  49754. <![CDATA[Create a job status object for a given jobid.
  49755. @param jobid The jobid of the job
  49756. @param mapProgress The progress made on the maps
  49757. @param reduceProgress The progress made on the reduces
  49758. @param runState The current state of the job
  49759. @param jp Priority of the job.]]>
  49760. </doc>
  49761. </constructor>
  49762. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  49763. static="false" final="false" visibility="public"
  49764. deprecated="not deprecated">
  49765. <doc>
  49766. <![CDATA[Create a job status object for a given jobid.
  49767. @param jobid The jobid of the job
  49768. @param setupProgress The progress made on the setup
  49769. @param mapProgress The progress made on the maps
  49770. @param reduceProgress The progress made on the reduces
  49771. @param cleanupProgress The progress made on the cleanup
  49772. @param runState The current state of the job
  49773. @param jp Priority of the job.]]>
  49774. </doc>
  49775. </constructor>
  49776. <method name="getJobRunState" return="java.lang.String"
  49777. abstract="false" native="false" synchronized="false"
  49778. static="true" final="false" visibility="public"
  49779. deprecated="not deprecated">
  49780. <param name="state" type="int"/>
  49781. <doc>
  49782. <![CDATA[Helper method to get human-readable state of the job.
  49783. @param state job state
  49784. @return human-readable state of the job]]>
  49785. </doc>
  49786. </method>
  49787. <method name="getJobId" return="java.lang.String"
  49788. abstract="false" native="false" synchronized="false"
  49789. static="false" final="false" visibility="public"
  49790. deprecated="use getJobID instead">
  49791. <doc>
  49792. <![CDATA[@deprecated use getJobID instead]]>
  49793. </doc>
  49794. </method>
  49795. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49796. abstract="false" native="false" synchronized="false"
  49797. static="false" final="false" visibility="public"
  49798. deprecated="not deprecated">
  49799. <doc>
  49800. <![CDATA[@return The jobid of the Job]]>
  49801. </doc>
  49802. </method>
  49803. <method name="mapProgress" return="float"
  49804. abstract="false" native="false" synchronized="true"
  49805. static="false" final="false" visibility="public"
  49806. deprecated="not deprecated">
  49807. <doc>
  49808. <![CDATA[@return Percentage of progress in maps]]>
  49809. </doc>
  49810. </method>
  49811. <method name="setJobACLs"
  49812. abstract="false" native="false" synchronized="true"
  49813. static="false" final="false" visibility="protected"
  49814. deprecated="not deprecated">
  49815. <param name="acls" type="java.util.Map"/>
  49816. <doc>
  49817. <![CDATA[Set the job acls
  49818. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49819. </doc>
  49820. </method>
  49821. <method name="cleanupProgress" return="float"
  49822. abstract="false" native="false" synchronized="true"
  49823. static="false" final="false" visibility="public"
  49824. deprecated="not deprecated">
  49825. <doc>
  49826. <![CDATA[@return Percentage of progress in cleanup]]>
  49827. </doc>
  49828. </method>
  49829. <method name="setupProgress" return="float"
  49830. abstract="false" native="false" synchronized="true"
  49831. static="false" final="false" visibility="public"
  49832. deprecated="not deprecated">
  49833. <doc>
  49834. <![CDATA[@return Percentage of progress in setup]]>
  49835. </doc>
  49836. </method>
  49837. <method name="reduceProgress" return="float"
  49838. abstract="false" native="false" synchronized="true"
  49839. static="false" final="false" visibility="public"
  49840. deprecated="not deprecated">
  49841. <doc>
  49842. <![CDATA[@return Percentage of progress in reduce]]>
  49843. </doc>
  49844. </method>
  49845. <method name="getRunState" return="int"
  49846. abstract="false" native="false" synchronized="true"
  49847. static="false" final="false" visibility="public"
  49848. deprecated="not deprecated">
  49849. <doc>
  49850. <![CDATA[@return running state of the job]]>
  49851. </doc>
  49852. </method>
  49853. <method name="setRunState"
  49854. abstract="false" native="false" synchronized="true"
  49855. static="false" final="false" visibility="public"
  49856. deprecated="not deprecated">
  49857. <param name="state" type="int"/>
  49858. <doc>
  49859. <![CDATA[Change the current run state of the job.]]>
  49860. </doc>
  49861. </method>
  49862. <method name="getStartTime" return="long"
  49863. abstract="false" native="false" synchronized="true"
  49864. static="false" final="false" visibility="public"
  49865. deprecated="not deprecated">
  49866. <doc>
  49867. <![CDATA[@return start time of the job]]>
  49868. </doc>
  49869. </method>
  49870. <method name="clone" return="java.lang.Object"
  49871. abstract="false" native="false" synchronized="false"
  49872. static="false" final="false" visibility="public"
  49873. deprecated="not deprecated">
  49874. </method>
  49875. <method name="getUsername" return="java.lang.String"
  49876. abstract="false" native="false" synchronized="true"
  49877. static="false" final="false" visibility="public"
  49878. deprecated="not deprecated">
  49879. <doc>
  49880. <![CDATA[@return the username of the job]]>
  49881. </doc>
  49882. </method>
  49883. <method name="getSchedulingInfo" return="java.lang.String"
  49884. abstract="false" native="false" synchronized="true"
  49885. static="false" final="false" visibility="public"
  49886. deprecated="not deprecated">
  49887. <doc>
  49888. <![CDATA[Gets the Scheduling information associated to a particular Job.
  49889. @return the scheduling information of the job]]>
  49890. </doc>
  49891. </method>
  49892. <method name="getFailureInfo" return="java.lang.String"
  49893. abstract="false" native="false" synchronized="true"
  49894. static="false" final="false" visibility="public"
  49895. deprecated="not deprecated">
  49896. <doc>
  49897. <![CDATA[gets any available info on the reason of failure of the job.
  49898. @return diagnostic information on why a job might have failed.]]>
  49899. </doc>
  49900. </method>
  49901. <method name="setFailureInfo"
  49902. abstract="false" native="false" synchronized="true"
  49903. static="false" final="false" visibility="public"
  49904. deprecated="not deprecated">
  49905. <param name="failureInfo" type="java.lang.String"/>
  49906. <doc>
  49907. <![CDATA[set the reason for failuire of this job
  49908. @param failureInfo the reason for failure of this job.]]>
  49909. </doc>
  49910. </method>
  49911. <method name="setSchedulingInfo"
  49912. abstract="false" native="false" synchronized="true"
  49913. static="false" final="false" visibility="public"
  49914. deprecated="not deprecated">
  49915. <param name="schedulingInfo" type="java.lang.String"/>
  49916. <doc>
  49917. <![CDATA[Used to set the scheduling information associated to a particular Job.
  49918. @param schedulingInfo Scheduling information of the job]]>
  49919. </doc>
  49920. </method>
  49921. <method name="getJobACLs" return="java.util.Map"
  49922. abstract="false" native="false" synchronized="true"
  49923. static="false" final="false" visibility="public"
  49924. deprecated="not deprecated">
  49925. <doc>
  49926. <![CDATA[Get the acls for Job.
  49927. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49928. </doc>
  49929. </method>
  49930. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  49931. abstract="false" native="false" synchronized="true"
  49932. static="false" final="false" visibility="public"
  49933. deprecated="not deprecated">
  49934. <doc>
  49935. <![CDATA[Return the priority of the job
  49936. @return job priority]]>
  49937. </doc>
  49938. </method>
  49939. <method name="setJobPriority"
  49940. abstract="false" native="false" synchronized="true"
  49941. static="false" final="false" visibility="public"
  49942. deprecated="not deprecated">
  49943. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  49944. <doc>
  49945. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  49946. @param jp new job priority]]>
  49947. </doc>
  49948. </method>
  49949. <method name="isJobComplete" return="boolean"
  49950. abstract="false" native="false" synchronized="true"
  49951. static="false" final="false" visibility="public"
  49952. deprecated="not deprecated">
  49953. <doc>
  49954. <![CDATA[Returns true if the status is for a completed job.]]>
  49955. </doc>
  49956. </method>
  49957. <method name="write"
  49958. abstract="false" native="false" synchronized="true"
  49959. static="false" final="false" visibility="public"
  49960. deprecated="not deprecated">
  49961. <param name="out" type="java.io.DataOutput"/>
  49962. <exception name="IOException" type="java.io.IOException"/>
  49963. </method>
  49964. <method name="readFields"
  49965. abstract="false" native="false" synchronized="true"
  49966. static="false" final="false" visibility="public"
  49967. deprecated="not deprecated">
  49968. <param name="in" type="java.io.DataInput"/>
  49969. <exception name="IOException" type="java.io.IOException"/>
  49970. </method>
  49971. <field name="RUNNING" type="int"
  49972. transient="false" volatile="false"
  49973. static="true" final="true" visibility="public"
  49974. deprecated="not deprecated">
  49975. </field>
  49976. <field name="SUCCEEDED" type="int"
  49977. transient="false" volatile="false"
  49978. static="true" final="true" visibility="public"
  49979. deprecated="not deprecated">
  49980. </field>
  49981. <field name="FAILED" type="int"
  49982. transient="false" volatile="false"
  49983. static="true" final="true" visibility="public"
  49984. deprecated="not deprecated">
  49985. </field>
  49986. <field name="PREP" type="int"
  49987. transient="false" volatile="false"
  49988. static="true" final="true" visibility="public"
  49989. deprecated="not deprecated">
  49990. </field>
  49991. <field name="KILLED" type="int"
  49992. transient="false" volatile="false"
  49993. static="true" final="true" visibility="public"
  49994. deprecated="not deprecated">
  49995. </field>
  49996. <doc>
  49997. <![CDATA[Describes the current status of a job.
  49998. @see JobProfile for some more information.]]>
  49999. </doc>
  50000. </class>
  50001. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  50002. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  50003. <class name="JobTracker" extends="java.lang.Object"
  50004. abstract="false"
  50005. static="false" final="false" visibility="public"
  50006. deprecated="not deprecated">
  50007. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  50008. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  50009. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  50010. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  50011. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  50012. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  50013. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  50014. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  50015. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  50016. abstract="false" native="false" synchronized="false"
  50017. static="false" final="false" visibility="public"
  50018. deprecated="not deprecated">
  50019. </method>
  50020. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  50021. abstract="false" native="false" synchronized="false"
  50022. static="true" final="false" visibility="public"
  50023. deprecated="not deprecated">
  50024. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50025. <exception name="IOException" type="java.io.IOException"/>
  50026. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50027. <doc>
  50028. <![CDATA[Start the JobTracker with given configuration.
  50029. The conf will be modified to reflect the actual ports on which
  50030. the JobTracker is up and running if the user passes the port as
  50031. <code>zero</code>.
  50032. @param conf configuration for the JobTracker.
  50033. @throws IOException]]>
  50034. </doc>
  50035. </method>
  50036. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  50037. abstract="false" native="false" synchronized="false"
  50038. static="true" final="false" visibility="public"
  50039. deprecated="not deprecated">
  50040. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50041. <param name="identifier" type="java.lang.String"/>
  50042. <exception name="IOException" type="java.io.IOException"/>
  50043. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50044. </method>
  50045. <method name="stopTracker"
  50046. abstract="false" native="false" synchronized="false"
  50047. static="false" final="false" visibility="public"
  50048. deprecated="not deprecated">
  50049. <exception name="IOException" type="java.io.IOException"/>
  50050. </method>
  50051. <method name="getProtocolVersion" return="long"
  50052. abstract="false" native="false" synchronized="false"
  50053. static="false" final="false" visibility="public"
  50054. deprecated="not deprecated">
  50055. <param name="protocol" type="java.lang.String"/>
  50056. <param name="clientVersion" type="long"/>
  50057. <exception name="IOException" type="java.io.IOException"/>
  50058. </method>
  50059. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  50060. abstract="false" native="false" synchronized="false"
  50061. static="false" final="false" visibility="public"
  50062. deprecated="not deprecated">
  50063. </method>
  50064. <method name="hasRestarted" return="boolean"
  50065. abstract="false" native="false" synchronized="false"
  50066. static="false" final="false" visibility="public"
  50067. deprecated="not deprecated">
  50068. <doc>
  50069. <![CDATA[Whether the JT has restarted]]>
  50070. </doc>
  50071. </method>
  50072. <method name="hasRecovered" return="boolean"
  50073. abstract="false" native="false" synchronized="false"
  50074. static="false" final="false" visibility="public"
  50075. deprecated="not deprecated">
  50076. <doc>
  50077. <![CDATA[Whether the JT has recovered upon restart]]>
  50078. </doc>
  50079. </method>
  50080. <method name="getRecoveryDuration" return="long"
  50081. abstract="false" native="false" synchronized="false"
  50082. static="false" final="false" visibility="public"
  50083. deprecated="not deprecated">
  50084. <doc>
  50085. <![CDATA[How long the jobtracker took to recover from restart.]]>
  50086. </doc>
  50087. </method>
  50088. <method name="getAddress" return="java.net.InetSocketAddress"
  50089. abstract="false" native="false" synchronized="false"
  50090. static="true" final="false" visibility="public"
  50091. deprecated="not deprecated">
  50092. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50093. </method>
  50094. <method name="offerService"
  50095. abstract="false" native="false" synchronized="false"
  50096. static="false" final="false" visibility="public"
  50097. deprecated="not deprecated">
  50098. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50099. <exception name="IOException" type="java.io.IOException"/>
  50100. <doc>
  50101. <![CDATA[Run forever]]>
  50102. </doc>
  50103. </method>
  50104. <method name="getTotalSubmissions" return="int"
  50105. abstract="false" native="false" synchronized="false"
  50106. static="false" final="false" visibility="public"
  50107. deprecated="not deprecated">
  50108. </method>
  50109. <method name="getJobTrackerMachine" return="java.lang.String"
  50110. abstract="false" native="false" synchronized="false"
  50111. static="false" final="false" visibility="public"
  50112. deprecated="not deprecated">
  50113. </method>
  50114. <method name="getTrackerIdentifier" return="java.lang.String"
  50115. abstract="false" native="false" synchronized="false"
  50116. static="false" final="false" visibility="public"
  50117. deprecated="not deprecated">
  50118. <doc>
  50119. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  50120. @return a string with a unique identifier]]>
  50121. </doc>
  50122. </method>
  50123. <method name="getTrackerPort" return="int"
  50124. abstract="false" native="false" synchronized="false"
  50125. static="false" final="false" visibility="public"
  50126. deprecated="not deprecated">
  50127. </method>
  50128. <method name="getInfoPort" return="int"
  50129. abstract="false" native="false" synchronized="false"
  50130. static="false" final="false" visibility="public"
  50131. deprecated="not deprecated">
  50132. </method>
  50133. <method name="getStartTime" return="long"
  50134. abstract="false" native="false" synchronized="false"
  50135. static="false" final="false" visibility="public"
  50136. deprecated="not deprecated">
  50137. </method>
  50138. <method name="runningJobs" return="java.util.Vector"
  50139. abstract="false" native="false" synchronized="false"
  50140. static="false" final="false" visibility="public"
  50141. deprecated="not deprecated">
  50142. </method>
  50143. <method name="getRunningJobs" return="java.util.List"
  50144. abstract="false" native="false" synchronized="true"
  50145. static="false" final="false" visibility="public"
  50146. deprecated="not deprecated">
  50147. <doc>
  50148. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  50149. careful to synchronize.]]>
  50150. </doc>
  50151. </method>
  50152. <method name="failedJobs" return="java.util.Vector"
  50153. abstract="false" native="false" synchronized="false"
  50154. static="false" final="false" visibility="public"
  50155. deprecated="not deprecated">
  50156. </method>
  50157. <method name="completedJobs" return="java.util.Vector"
  50158. abstract="false" native="false" synchronized="false"
  50159. static="false" final="false" visibility="public"
  50160. deprecated="not deprecated">
  50161. </method>
  50162. <method name="taskTrackers" return="java.util.Collection"
  50163. abstract="false" native="false" synchronized="true"
  50164. static="false" final="false" visibility="public"
  50165. deprecated="not deprecated">
  50166. <doc>
  50167. <![CDATA[Get all the task trackers in the cluster
  50168. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  50169. </doc>
  50170. </method>
  50171. <method name="activeTaskTrackers" return="java.util.Collection"
  50172. abstract="false" native="false" synchronized="true"
  50173. static="false" final="false" visibility="public"
  50174. deprecated="not deprecated">
  50175. <doc>
  50176. <![CDATA[Get the active task tracker statuses in the cluster
  50177. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  50178. </doc>
  50179. </method>
  50180. <method name="taskTrackerNames" return="java.util.List"
  50181. abstract="false" native="false" synchronized="true"
  50182. static="false" final="false" visibility="public"
  50183. deprecated="not deprecated">
  50184. <doc>
  50185. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  50186. cluster. The first element in the returned list contains the list of
  50187. active tracker names; the second element in the returned list contains
  50188. the list of blacklisted tracker names; and the third contains the list
  50189. of graylisted tracker names. Note that the blacklist is disjoint
  50190. from the active list, but the graylist is not: initially, graylisted
  50191. trackers are still active and therefore will appear in both lists.
  50192. (Graylisted trackers can later be blacklisted, in which case they'll
  50193. be removed from the active list and added to the blacklist, but they
  50194. remain on the graylist in this case. Blacklisting comes about via the
  50195. health-check script, while graylisting is heuristically based on the
  50196. number of per-job blacklistings in a specified time interval.)]]>
  50197. </doc>
  50198. </method>
  50199. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  50200. abstract="false" native="false" synchronized="false"
  50201. static="false" final="false" visibility="public"
  50202. deprecated="not deprecated">
  50203. <doc>
  50204. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  50205. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  50206. </doc>
  50207. </method>
  50208. <method name="graylistedTaskTrackers" return="java.util.Collection"
  50209. abstract="false" native="false" synchronized="false"
  50210. static="false" final="false" visibility="public"
  50211. deprecated="not deprecated">
  50212. <doc>
  50213. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  50214. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  50215. </doc>
  50216. </method>
  50217. <method name="isBlacklisted" return="boolean"
  50218. abstract="false" native="false" synchronized="true"
  50219. static="false" final="false" visibility="public"
  50220. deprecated="not deprecated">
  50221. <param name="trackerID" type="java.lang.String"/>
  50222. <doc>
  50223. <![CDATA[Whether the tracker is blacklisted or not
  50224. @param trackerID
  50225. @return true if blacklisted, false otherwise]]>
  50226. </doc>
  50227. </method>
  50228. <method name="isGraylisted" return="boolean"
  50229. abstract="false" native="false" synchronized="true"
  50230. static="false" final="false" visibility="public"
  50231. deprecated="not deprecated">
  50232. <param name="trackerID" type="java.lang.String"/>
  50233. <doc>
  50234. <![CDATA[Whether the tracker is graylisted or not
  50235. @param trackerID
  50236. @return true if graylisted, false otherwise]]>
  50237. </doc>
  50238. </method>
  50239. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  50240. abstract="false" native="false" synchronized="true"
  50241. static="false" final="false" visibility="public"
  50242. deprecated="not deprecated">
  50243. <param name="trackerID" type="java.lang.String"/>
  50244. </method>
  50245. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  50246. abstract="false" native="false" synchronized="true"
  50247. static="false" final="false" visibility="public"
  50248. deprecated="not deprecated">
  50249. <param name="trackerID" type="java.lang.String"/>
  50250. </method>
  50251. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  50252. abstract="false" native="false" synchronized="false"
  50253. static="false" final="false" visibility="public"
  50254. deprecated="not deprecated">
  50255. <param name="name" type="java.lang.String"/>
  50256. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  50257. </method>
  50258. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  50259. abstract="false" native="false" synchronized="false"
  50260. static="false" final="false" visibility="public"
  50261. deprecated="not deprecated">
  50262. <doc>
  50263. <![CDATA[Returns a collection of nodes at the max level]]>
  50264. </doc>
  50265. </method>
  50266. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  50267. abstract="false" native="false" synchronized="false"
  50268. static="true" final="false" visibility="public"
  50269. deprecated="not deprecated">
  50270. <param name="node" type="org.apache.hadoop.net.Node"/>
  50271. <param name="level" type="int"/>
  50272. </method>
  50273. <method name="getNode" return="org.apache.hadoop.net.Node"
  50274. abstract="false" native="false" synchronized="false"
  50275. static="false" final="false" visibility="public"
  50276. deprecated="not deprecated">
  50277. <param name="name" type="java.lang.String"/>
  50278. <doc>
  50279. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  50280. </doc>
  50281. </method>
  50282. <method name="getNumTaskCacheLevels" return="int"
  50283. abstract="false" native="false" synchronized="false"
  50284. static="false" final="false" visibility="public"
  50285. deprecated="not deprecated">
  50286. </method>
  50287. <method name="getNumResolvedTaskTrackers" return="int"
  50288. abstract="false" native="false" synchronized="false"
  50289. static="false" final="false" visibility="public"
  50290. deprecated="not deprecated">
  50291. </method>
  50292. <method name="getNumberOfUniqueHosts" return="int"
  50293. abstract="false" native="false" synchronized="false"
  50294. static="false" final="false" visibility="public"
  50295. deprecated="not deprecated">
  50296. </method>
  50297. <method name="addJobInProgressListener"
  50298. abstract="false" native="false" synchronized="false"
  50299. static="false" final="false" visibility="public"
  50300. deprecated="not deprecated">
  50301. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50302. </method>
  50303. <method name="removeJobInProgressListener"
  50304. abstract="false" native="false" synchronized="false"
  50305. static="false" final="false" visibility="public"
  50306. deprecated="not deprecated">
  50307. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50308. </method>
  50309. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  50310. abstract="false" native="false" synchronized="false"
  50311. static="false" final="false" visibility="public"
  50312. deprecated="not deprecated">
  50313. <doc>
  50314. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  50315. </doc>
  50316. </method>
  50317. <method name="getBuildVersion" return="java.lang.String"
  50318. abstract="false" native="false" synchronized="false"
  50319. static="false" final="false" visibility="public"
  50320. deprecated="not deprecated">
  50321. <exception name="IOException" type="java.io.IOException"/>
  50322. </method>
  50323. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  50324. abstract="false" native="false" synchronized="true"
  50325. static="false" final="false" visibility="public"
  50326. deprecated="not deprecated">
  50327. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50328. <param name="restarted" type="boolean"/>
  50329. <param name="initialContact" type="boolean"/>
  50330. <param name="acceptNewTasks" type="boolean"/>
  50331. <param name="responseId" type="short"/>
  50332. <exception name="IOException" type="java.io.IOException"/>
  50333. <doc>
  50334. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  50335. the {@link JobTracker}.
  50336. The {@link JobTracker} processes the status information sent by the
  50337. {@link TaskTracker} and responds with instructions to start/stop
  50338. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  50339. </doc>
  50340. </method>
  50341. <method name="getNextHeartbeatInterval" return="int"
  50342. abstract="false" native="false" synchronized="false"
  50343. static="false" final="false" visibility="public"
  50344. deprecated="not deprecated">
  50345. <doc>
  50346. <![CDATA[Calculates next heartbeat interval using cluster size.
  50347. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  50348. @return next heartbeat interval.]]>
  50349. </doc>
  50350. </method>
  50351. <method name="getFilesystemName" return="java.lang.String"
  50352. abstract="false" native="false" synchronized="true"
  50353. static="false" final="false" visibility="public"
  50354. deprecated="not deprecated">
  50355. <exception name="IOException" type="java.io.IOException"/>
  50356. <doc>
  50357. <![CDATA[Grab the local fs name]]>
  50358. </doc>
  50359. </method>
  50360. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  50361. abstract="false" native="false" synchronized="false"
  50362. static="false" final="false" visibility="public"
  50363. deprecated="not deprecated">
  50364. <doc>
  50365. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  50366. </doc>
  50367. </method>
  50368. <method name="reportTaskTrackerError"
  50369. abstract="false" native="false" synchronized="false"
  50370. static="false" final="false" visibility="public"
  50371. deprecated="not deprecated">
  50372. <param name="taskTracker" type="java.lang.String"/>
  50373. <param name="errorClass" type="java.lang.String"/>
  50374. <param name="errorMessage" type="java.lang.String"/>
  50375. <exception name="IOException" type="java.io.IOException"/>
  50376. </method>
  50377. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  50378. abstract="false" native="false" synchronized="true"
  50379. static="false" final="false" visibility="public"
  50380. deprecated="not deprecated">
  50381. <exception name="IOException" type="java.io.IOException"/>
  50382. <doc>
  50383. <![CDATA[Allocates a new JobId string.]]>
  50384. </doc>
  50385. </method>
  50386. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  50387. abstract="false" native="false" synchronized="false"
  50388. static="false" final="false" visibility="public"
  50389. deprecated="not deprecated">
  50390. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50391. <param name="jobSubmitDir" type="java.lang.String"/>
  50392. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  50393. <exception name="IOException" type="java.io.IOException"/>
  50394. <doc>
  50395. <![CDATA[JobTracker.submitJob() kicks off a new job.
  50396. Create a 'JobInProgress' object, which contains both JobProfile
  50397. and JobStatus. Those two sub-objects are sometimes shipped outside
  50398. of the JobTracker. But JobInProgress adds info that's useful for
  50399. the JobTracker alone.]]>
  50400. </doc>
  50401. </method>
  50402. <method name="getStagingAreaDir" return="java.lang.String"
  50403. abstract="false" native="false" synchronized="false"
  50404. static="false" final="false" visibility="public"
  50405. deprecated="not deprecated">
  50406. <exception name="IOException" type="java.io.IOException"/>
  50407. <doc>
  50408. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  50409. </doc>
  50410. </method>
  50411. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50412. abstract="false" native="false" synchronized="true"
  50413. static="false" final="false" visibility="public"
  50414. deprecated="use {@link #getClusterStatus(boolean)}">
  50415. <doc>
  50416. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  50417. </doc>
  50418. </method>
  50419. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50420. abstract="false" native="false" synchronized="true"
  50421. static="false" final="false" visibility="public"
  50422. deprecated="not deprecated">
  50423. <param name="detailed" type="boolean"/>
  50424. </method>
  50425. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  50426. abstract="false" native="false" synchronized="true"
  50427. static="false" final="false" visibility="public"
  50428. deprecated="not deprecated">
  50429. </method>
  50430. <method name="killJob"
  50431. abstract="false" native="false" synchronized="true"
  50432. static="false" final="false" visibility="public"
  50433. deprecated="not deprecated">
  50434. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50435. <exception name="IOException" type="java.io.IOException"/>
  50436. <doc>
  50437. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  50438. </doc>
  50439. </method>
  50440. <method name="cancelDelegationToken"
  50441. abstract="false" native="false" synchronized="false"
  50442. static="false" final="false" visibility="public"
  50443. deprecated="not deprecated">
  50444. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  50445. <exception name="IOException" type="java.io.IOException"/>
  50446. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50447. <doc>
  50448. <![CDATA[Discard a current delegation token.]]>
  50449. </doc>
  50450. </method>
  50451. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  50452. abstract="false" native="false" synchronized="false"
  50453. static="false" final="false" visibility="public"
  50454. deprecated="not deprecated">
  50455. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  50456. <exception name="IOException" type="java.io.IOException"/>
  50457. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50458. <doc>
  50459. <![CDATA[Get a new delegation token.]]>
  50460. </doc>
  50461. </method>
  50462. <method name="renewDelegationToken" return="long"
  50463. abstract="false" native="false" synchronized="false"
  50464. static="false" final="false" visibility="public"
  50465. deprecated="not deprecated">
  50466. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  50467. <exception name="IOException" type="java.io.IOException"/>
  50468. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50469. <doc>
  50470. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  50471. </doc>
  50472. </method>
  50473. <method name="initJob"
  50474. abstract="false" native="false" synchronized="false"
  50475. static="false" final="false" visibility="public"
  50476. deprecated="not deprecated">
  50477. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  50478. </method>
  50479. <method name="failJob"
  50480. abstract="false" native="false" synchronized="true"
  50481. static="false" final="false" visibility="public"
  50482. deprecated="not deprecated">
  50483. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  50484. <doc>
  50485. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  50486. should use this to fail a job.]]>
  50487. </doc>
  50488. </method>
  50489. <method name="setJobPriority"
  50490. abstract="false" native="false" synchronized="true"
  50491. static="false" final="false" visibility="public"
  50492. deprecated="not deprecated">
  50493. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50494. <param name="priority" type="java.lang.String"/>
  50495. <exception name="IOException" type="java.io.IOException"/>
  50496. </method>
  50497. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  50498. abstract="false" native="false" synchronized="false"
  50499. static="false" final="false" visibility="public"
  50500. deprecated="not deprecated">
  50501. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50502. </method>
  50503. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  50504. abstract="false" native="false" synchronized="false"
  50505. static="false" final="false" visibility="public"
  50506. deprecated="not deprecated">
  50507. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50508. </method>
  50509. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  50510. abstract="false" native="false" synchronized="false"
  50511. static="false" final="false" visibility="public"
  50512. deprecated="not deprecated">
  50513. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50514. <exception name="IOException" type="java.io.IOException"/>
  50515. </method>
  50516. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50517. abstract="false" native="false" synchronized="true"
  50518. static="false" final="false" visibility="public"
  50519. deprecated="not deprecated">
  50520. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50521. <exception name="IOException" type="java.io.IOException"/>
  50522. </method>
  50523. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50524. abstract="false" native="false" synchronized="true"
  50525. static="false" final="false" visibility="public"
  50526. deprecated="not deprecated">
  50527. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50528. <exception name="IOException" type="java.io.IOException"/>
  50529. </method>
  50530. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50531. abstract="false" native="false" synchronized="true"
  50532. static="false" final="false" visibility="public"
  50533. deprecated="not deprecated">
  50534. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50535. <exception name="IOException" type="java.io.IOException"/>
  50536. </method>
  50537. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50538. abstract="false" native="false" synchronized="true"
  50539. static="false" final="false" visibility="public"
  50540. deprecated="not deprecated">
  50541. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50542. <exception name="IOException" type="java.io.IOException"/>
  50543. </method>
  50544. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  50545. abstract="false" native="false" synchronized="false"
  50546. static="false" final="false" visibility="public"
  50547. deprecated="not deprecated">
  50548. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50549. <param name="fromEventId" type="int"/>
  50550. <param name="maxEvents" type="int"/>
  50551. <exception name="IOException" type="java.io.IOException"/>
  50552. </method>
  50553. <method name="getTaskDiagnostics" return="java.lang.String[]"
  50554. abstract="false" native="false" synchronized="true"
  50555. static="false" final="false" visibility="public"
  50556. deprecated="not deprecated">
  50557. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50558. <exception name="IOException" type="java.io.IOException"/>
  50559. <doc>
  50560. <![CDATA[Get the diagnostics for a given task
  50561. @param taskId the id of the task
  50562. @return an array of the diagnostic messages]]>
  50563. </doc>
  50564. </method>
  50565. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  50566. abstract="false" native="false" synchronized="false"
  50567. static="false" final="false" visibility="public"
  50568. deprecated="not deprecated">
  50569. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  50570. <doc>
  50571. <![CDATA[Returns specified TaskInProgress, or null.]]>
  50572. </doc>
  50573. </method>
  50574. <method name="killTask" return="boolean"
  50575. abstract="false" native="false" synchronized="true"
  50576. static="false" final="false" visibility="public"
  50577. deprecated="not deprecated">
  50578. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50579. <param name="shouldFail" type="boolean"/>
  50580. <exception name="IOException" type="java.io.IOException"/>
  50581. <doc>
  50582. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  50583. </doc>
  50584. </method>
  50585. <method name="getAssignedTracker" return="java.lang.String"
  50586. abstract="false" native="false" synchronized="true"
  50587. static="false" final="false" visibility="public"
  50588. deprecated="not deprecated">
  50589. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50590. <doc>
  50591. <![CDATA[Get tracker name for a given task id.
  50592. @param taskId the name of the task
  50593. @return The name of the task tracker]]>
  50594. </doc>
  50595. </method>
  50596. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  50597. abstract="false" native="false" synchronized="false"
  50598. static="false" final="false" visibility="public"
  50599. deprecated="not deprecated">
  50600. </method>
  50601. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  50602. abstract="false" native="false" synchronized="false"
  50603. static="false" final="false" visibility="public"
  50604. deprecated="not deprecated">
  50605. <doc>
  50606. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  50607. </doc>
  50608. </method>
  50609. <method name="getSystemDir" return="java.lang.String"
  50610. abstract="false" native="false" synchronized="false"
  50611. static="false" final="false" visibility="public"
  50612. deprecated="not deprecated">
  50613. <doc>
  50614. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  50615. </doc>
  50616. </method>
  50617. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  50618. abstract="false" native="false" synchronized="false"
  50619. static="false" final="false" visibility="public"
  50620. deprecated="not deprecated">
  50621. <param name="queueName" type="java.lang.String"/>
  50622. <exception name="IOException" type="java.io.IOException"/>
  50623. <doc>
  50624. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  50625. </doc>
  50626. </method>
  50627. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  50628. abstract="false" native="false" synchronized="false"
  50629. static="false" final="false" visibility="public"
  50630. deprecated="not deprecated">
  50631. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50632. </method>
  50633. <method name="refreshNodes"
  50634. abstract="false" native="false" synchronized="true"
  50635. static="false" final="false" visibility="public"
  50636. deprecated="not deprecated">
  50637. <exception name="IOException" type="java.io.IOException"/>
  50638. <doc>
  50639. <![CDATA[Rereads the config to get hosts and exclude list file names.
  50640. Rereads the files to update the hosts and exclude lists.]]>
  50641. </doc>
  50642. </method>
  50643. <method name="getLocalJobFilePath" return="java.lang.String"
  50644. abstract="false" native="false" synchronized="false"
  50645. static="true" final="false" visibility="public"
  50646. deprecated="not deprecated">
  50647. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50648. <doc>
  50649. <![CDATA[Get the localized job file path on the job trackers local file system
  50650. @param jobId id of the job
  50651. @return the path of the job conf file on the local file system]]>
  50652. </doc>
  50653. </method>
  50654. <method name="main"
  50655. abstract="false" native="false" synchronized="false"
  50656. static="true" final="false" visibility="public"
  50657. deprecated="not deprecated">
  50658. <param name="argv" type="java.lang.String[]"/>
  50659. <exception name="IOException" type="java.io.IOException"/>
  50660. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50661. <doc>
  50662. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  50663. JobTracker should be run as part of the DFS Namenode process.]]>
  50664. </doc>
  50665. </method>
  50666. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  50667. abstract="false" native="false" synchronized="false"
  50668. static="false" final="false" visibility="public"
  50669. deprecated="not deprecated">
  50670. <exception name="IOException" type="java.io.IOException"/>
  50671. </method>
  50672. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  50673. abstract="false" native="false" synchronized="false"
  50674. static="false" final="false" visibility="public"
  50675. deprecated="not deprecated">
  50676. <param name="queue" type="java.lang.String"/>
  50677. <exception name="IOException" type="java.io.IOException"/>
  50678. </method>
  50679. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  50680. abstract="false" native="false" synchronized="false"
  50681. static="false" final="false" visibility="public"
  50682. deprecated="not deprecated">
  50683. <param name="queue" type="java.lang.String"/>
  50684. <exception name="IOException" type="java.io.IOException"/>
  50685. </method>
  50686. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  50687. abstract="false" native="false" synchronized="false"
  50688. static="false" final="false" visibility="public"
  50689. deprecated="not deprecated">
  50690. <exception name="IOException" type="java.io.IOException"/>
  50691. </method>
  50692. <method name="refreshServiceAcl"
  50693. abstract="false" native="false" synchronized="false"
  50694. static="false" final="false" visibility="public"
  50695. deprecated="not deprecated">
  50696. <exception name="IOException" type="java.io.IOException"/>
  50697. </method>
  50698. <method name="refreshSuperUserGroupsConfiguration"
  50699. abstract="false" native="false" synchronized="false"
  50700. static="false" final="false" visibility="public"
  50701. deprecated="not deprecated">
  50702. </method>
  50703. <method name="refreshUserToGroupsMappings"
  50704. abstract="false" native="false" synchronized="false"
  50705. static="false" final="false" visibility="public"
  50706. deprecated="not deprecated">
  50707. <exception name="IOException" type="java.io.IOException"/>
  50708. </method>
  50709. <method name="refreshQueues"
  50710. abstract="false" native="false" synchronized="false"
  50711. static="false" final="false" visibility="public"
  50712. deprecated="not deprecated">
  50713. <exception name="IOException" type="java.io.IOException"/>
  50714. </method>
  50715. <method name="getReasonsForBlacklisting" return="java.lang.String"
  50716. abstract="false" native="false" synchronized="false"
  50717. static="false" final="false" visibility="public"
  50718. deprecated="not deprecated">
  50719. <param name="host" type="java.lang.String"/>
  50720. </method>
  50721. <method name="getReasonsForGraylisting" return="java.lang.String"
  50722. abstract="false" native="false" synchronized="false"
  50723. static="false" final="false" visibility="public"
  50724. deprecated="not deprecated">
  50725. <param name="host" type="java.lang.String"/>
  50726. </method>
  50727. <method name="getHostname" return="java.lang.String"
  50728. abstract="false" native="false" synchronized="false"
  50729. static="false" final="false" visibility="public"
  50730. deprecated="not deprecated">
  50731. </method>
  50732. <method name="getVersion" return="java.lang.String"
  50733. abstract="false" native="false" synchronized="false"
  50734. static="false" final="false" visibility="public"
  50735. deprecated="not deprecated">
  50736. </method>
  50737. <method name="getConfigVersion" return="java.lang.String"
  50738. abstract="false" native="false" synchronized="false"
  50739. static="false" final="false" visibility="public"
  50740. deprecated="not deprecated">
  50741. </method>
  50742. <method name="getThreadCount" return="int"
  50743. abstract="false" native="false" synchronized="false"
  50744. static="false" final="false" visibility="public"
  50745. deprecated="not deprecated">
  50746. </method>
  50747. <method name="getSummaryJson" return="java.lang.String"
  50748. abstract="false" native="false" synchronized="false"
  50749. static="false" final="false" visibility="public"
  50750. deprecated="not deprecated">
  50751. </method>
  50752. <method name="getAliveNodesInfoJson" return="java.lang.String"
  50753. abstract="false" native="false" synchronized="false"
  50754. static="false" final="false" visibility="public"
  50755. deprecated="not deprecated">
  50756. </method>
  50757. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  50758. abstract="false" native="false" synchronized="false"
  50759. static="false" final="false" visibility="public"
  50760. deprecated="not deprecated">
  50761. </method>
  50762. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  50763. abstract="false" native="false" synchronized="false"
  50764. static="false" final="false" visibility="public"
  50765. deprecated="not deprecated">
  50766. </method>
  50767. <method name="getQueueInfoJson" return="java.lang.String"
  50768. abstract="false" native="false" synchronized="false"
  50769. static="false" final="false" visibility="public"
  50770. deprecated="not deprecated">
  50771. </method>
  50772. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  50773. transient="false" volatile="false"
  50774. static="true" final="true" visibility="public"
  50775. deprecated="not deprecated">
  50776. <doc>
  50777. <![CDATA[the config key for max user jobconf size]]>
  50778. </doc>
  50779. </field>
  50780. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  50781. transient="false" volatile="false"
  50782. static="true" final="true" visibility="public"
  50783. deprecated="not deprecated">
  50784. </field>
  50785. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  50786. transient="false" volatile="false"
  50787. static="true" final="true" visibility="public"
  50788. deprecated="not deprecated">
  50789. </field>
  50790. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  50791. transient="false" volatile="false"
  50792. static="true" final="true" visibility="public"
  50793. deprecated="not deprecated">
  50794. </field>
  50795. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  50796. transient="false" volatile="false"
  50797. static="true" final="true" visibility="public"
  50798. deprecated="not deprecated">
  50799. </field>
  50800. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  50801. transient="false" volatile="false"
  50802. static="true" final="true" visibility="public"
  50803. deprecated="not deprecated">
  50804. </field>
  50805. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  50806. transient="false" volatile="false"
  50807. static="true" final="true" visibility="public"
  50808. deprecated="not deprecated">
  50809. </field>
  50810. <field name="LOG" type="org.apache.commons.logging.Log"
  50811. transient="false" volatile="false"
  50812. static="true" final="true" visibility="public"
  50813. deprecated="not deprecated">
  50814. </field>
  50815. <field name="JT_USER_NAME" type="java.lang.String"
  50816. transient="false" volatile="false"
  50817. static="true" final="true" visibility="public"
  50818. deprecated="not deprecated">
  50819. </field>
  50820. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  50821. transient="false" volatile="false"
  50822. static="true" final="true" visibility="public"
  50823. deprecated="not deprecated">
  50824. </field>
  50825. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  50826. transient="false" volatile="false"
  50827. static="true" final="true" visibility="public"
  50828. deprecated="not deprecated">
  50829. </field>
  50830. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  50831. transient="false" volatile="false"
  50832. static="true" final="true" visibility="public"
  50833. deprecated="not deprecated">
  50834. </field>
  50835. <doc>
  50836. <![CDATA[JobTracker is the central location for submitting and
  50837. tracking MR jobs in a network environment.]]>
  50838. </doc>
  50839. </class>
  50840. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  50841. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  50842. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  50843. abstract="false"
  50844. static="true" final="false" visibility="public"
  50845. deprecated="not deprecated">
  50846. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  50847. static="false" final="false" visibility="public"
  50848. deprecated="not deprecated">
  50849. </constructor>
  50850. <doc>
  50851. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  50852. </doc>
  50853. </class>
  50854. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  50855. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  50856. <class name="JobTracker.State" extends="java.lang.Enum"
  50857. abstract="false"
  50858. static="true" final="true" visibility="public"
  50859. deprecated="not deprecated">
  50860. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  50861. abstract="false" native="false" synchronized="false"
  50862. static="true" final="false" visibility="public"
  50863. deprecated="not deprecated">
  50864. </method>
  50865. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  50866. abstract="false" native="false" synchronized="false"
  50867. static="true" final="false" visibility="public"
  50868. deprecated="not deprecated">
  50869. <param name="name" type="java.lang.String"/>
  50870. </method>
  50871. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  50872. transient="false" volatile="false"
  50873. static="true" final="true" visibility="public"
  50874. deprecated="not deprecated">
  50875. </field>
  50876. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  50877. transient="false" volatile="false"
  50878. static="true" final="true" visibility="public"
  50879. deprecated="not deprecated">
  50880. </field>
  50881. </class>
  50882. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  50883. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  50884. <interface name="JobTrackerMXBean" abstract="true"
  50885. static="false" final="false" visibility="public"
  50886. deprecated="not deprecated">
  50887. <method name="getHostname" return="java.lang.String"
  50888. abstract="false" native="false" synchronized="false"
  50889. static="false" final="false" visibility="public"
  50890. deprecated="not deprecated">
  50891. <doc>
  50892. <![CDATA[@return hostname of the jobtracker]]>
  50893. </doc>
  50894. </method>
  50895. <method name="getVersion" return="java.lang.String"
  50896. abstract="false" native="false" synchronized="false"
  50897. static="false" final="false" visibility="public"
  50898. deprecated="not deprecated">
  50899. <doc>
  50900. <![CDATA[@return version of the code base]]>
  50901. </doc>
  50902. </method>
  50903. <method name="getConfigVersion" return="java.lang.String"
  50904. abstract="false" native="false" synchronized="false"
  50905. static="false" final="false" visibility="public"
  50906. deprecated="not deprecated">
  50907. <doc>
  50908. <![CDATA[@return the config version (from a config property)]]>
  50909. </doc>
  50910. </method>
  50911. <method name="getThreadCount" return="int"
  50912. abstract="false" native="false" synchronized="false"
  50913. static="false" final="false" visibility="public"
  50914. deprecated="not deprecated">
  50915. <doc>
  50916. <![CDATA[@return number of threads of the jobtracker jvm]]>
  50917. </doc>
  50918. </method>
  50919. <method name="getSummaryJson" return="java.lang.String"
  50920. abstract="false" native="false" synchronized="false"
  50921. static="false" final="false" visibility="public"
  50922. deprecated="not deprecated">
  50923. <doc>
  50924. <![CDATA[@return the summary info in json]]>
  50925. </doc>
  50926. </method>
  50927. <method name="getAliveNodesInfoJson" return="java.lang.String"
  50928. abstract="false" native="false" synchronized="false"
  50929. static="false" final="false" visibility="public"
  50930. deprecated="not deprecated">
  50931. <doc>
  50932. <![CDATA[@return the alive nodes info in json]]>
  50933. </doc>
  50934. </method>
  50935. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  50936. abstract="false" native="false" synchronized="false"
  50937. static="false" final="false" visibility="public"
  50938. deprecated="not deprecated">
  50939. <doc>
  50940. <![CDATA[@return the blacklisted nodes info in json]]>
  50941. </doc>
  50942. </method>
  50943. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  50944. abstract="false" native="false" synchronized="false"
  50945. static="false" final="false" visibility="public"
  50946. deprecated="not deprecated">
  50947. <doc>
  50948. <![CDATA[@return the graylisted nodes info in json]]>
  50949. </doc>
  50950. </method>
  50951. <method name="getQueueInfoJson" return="java.lang.String"
  50952. abstract="false" native="false" synchronized="false"
  50953. static="false" final="false" visibility="public"
  50954. deprecated="not deprecated">
  50955. <doc>
  50956. <![CDATA[@return the queue info json]]>
  50957. </doc>
  50958. </method>
  50959. <doc>
  50960. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  50961. </doc>
  50962. </interface>
  50963. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  50964. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  50965. <class name="JvmTask" extends="java.lang.Object"
  50966. abstract="false"
  50967. static="false" final="false" visibility="public"
  50968. deprecated="not deprecated">
  50969. <implements name="org.apache.hadoop.io.Writable"/>
  50970. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  50971. static="false" final="false" visibility="public"
  50972. deprecated="not deprecated">
  50973. </constructor>
  50974. <constructor name="JvmTask"
  50975. static="false" final="false" visibility="public"
  50976. deprecated="not deprecated">
  50977. </constructor>
  50978. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  50979. abstract="false" native="false" synchronized="false"
  50980. static="false" final="false" visibility="public"
  50981. deprecated="not deprecated">
  50982. </method>
  50983. <method name="shouldDie" return="boolean"
  50984. abstract="false" native="false" synchronized="false"
  50985. static="false" final="false" visibility="public"
  50986. deprecated="not deprecated">
  50987. </method>
  50988. <method name="write"
  50989. abstract="false" native="false" synchronized="false"
  50990. static="false" final="false" visibility="public"
  50991. deprecated="not deprecated">
  50992. <param name="out" type="java.io.DataOutput"/>
  50993. <exception name="IOException" type="java.io.IOException"/>
  50994. </method>
  50995. <method name="readFields"
  50996. abstract="false" native="false" synchronized="false"
  50997. static="false" final="false" visibility="public"
  50998. deprecated="not deprecated">
  50999. <param name="in" type="java.io.DataInput"/>
  51000. <exception name="IOException" type="java.io.IOException"/>
  51001. </method>
  51002. </class>
  51003. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  51004. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  51005. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  51006. abstract="false"
  51007. static="false" final="false" visibility="public"
  51008. deprecated="not deprecated">
  51009. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  51010. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  51011. static="false" final="false" visibility="public"
  51012. deprecated="not deprecated">
  51013. <exception name="IOException" type="java.io.IOException"/>
  51014. </constructor>
  51015. <method name="getKeyClass" return="java.lang.Class"
  51016. abstract="false" native="false" synchronized="false"
  51017. static="false" final="false" visibility="public"
  51018. deprecated="not deprecated">
  51019. </method>
  51020. <method name="createKey" return="org.apache.hadoop.io.Text"
  51021. abstract="false" native="false" synchronized="false"
  51022. static="false" final="false" visibility="public"
  51023. deprecated="not deprecated">
  51024. </method>
  51025. <method name="createValue" return="org.apache.hadoop.io.Text"
  51026. abstract="false" native="false" synchronized="false"
  51027. static="false" final="false" visibility="public"
  51028. deprecated="not deprecated">
  51029. </method>
  51030. <method name="findSeparator" return="int"
  51031. abstract="false" native="false" synchronized="false"
  51032. static="true" final="false" visibility="public"
  51033. deprecated="not deprecated">
  51034. <param name="utf" type="byte[]"/>
  51035. <param name="start" type="int"/>
  51036. <param name="length" type="int"/>
  51037. <param name="sep" type="byte"/>
  51038. </method>
  51039. <method name="next" return="boolean"
  51040. abstract="false" native="false" synchronized="true"
  51041. static="false" final="false" visibility="public"
  51042. deprecated="not deprecated">
  51043. <param name="key" type="org.apache.hadoop.io.Text"/>
  51044. <param name="value" type="org.apache.hadoop.io.Text"/>
  51045. <exception name="IOException" type="java.io.IOException"/>
  51046. <doc>
  51047. <![CDATA[Read key/value pair in a line.]]>
  51048. </doc>
  51049. </method>
  51050. <method name="getProgress" return="float"
  51051. abstract="false" native="false" synchronized="false"
  51052. static="false" final="false" visibility="public"
  51053. deprecated="not deprecated">
  51054. </method>
  51055. <method name="getPos" return="long"
  51056. abstract="false" native="false" synchronized="true"
  51057. static="false" final="false" visibility="public"
  51058. deprecated="not deprecated">
  51059. <exception name="IOException" type="java.io.IOException"/>
  51060. </method>
  51061. <method name="close"
  51062. abstract="false" native="false" synchronized="true"
  51063. static="false" final="false" visibility="public"
  51064. deprecated="not deprecated">
  51065. <exception name="IOException" type="java.io.IOException"/>
  51066. </method>
  51067. <doc>
  51068. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  51069. separator character. The separator can be specified in config file
  51070. under the attribute name key.value.separator.in.input.line. The default
  51071. separator is the tab character ('\t').]]>
  51072. </doc>
  51073. </class>
  51074. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  51075. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  51076. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  51077. abstract="false"
  51078. static="false" final="false" visibility="public"
  51079. deprecated="not deprecated">
  51080. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51081. <constructor name="KeyValueTextInputFormat"
  51082. static="false" final="false" visibility="public"
  51083. deprecated="not deprecated">
  51084. </constructor>
  51085. <method name="configure"
  51086. abstract="false" native="false" synchronized="false"
  51087. static="false" final="false" visibility="public"
  51088. deprecated="not deprecated">
  51089. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51090. </method>
  51091. <method name="isSplitable" return="boolean"
  51092. abstract="false" native="false" synchronized="false"
  51093. static="false" final="false" visibility="protected"
  51094. deprecated="not deprecated">
  51095. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  51096. <param name="file" type="org.apache.hadoop.fs.Path"/>
  51097. </method>
  51098. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  51099. abstract="false" native="false" synchronized="false"
  51100. static="false" final="false" visibility="public"
  51101. deprecated="not deprecated">
  51102. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  51103. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51104. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51105. <exception name="IOException" type="java.io.IOException"/>
  51106. </method>
  51107. <doc>
  51108. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  51109. Either linefeed or carriage-return are used to signal end of line. Each line
  51110. is divided into key and value parts by a separator byte. If no such a byte
  51111. exists, the key will be the entire line and value will be empty.]]>
  51112. </doc>
  51113. </class>
  51114. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  51115. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  51116. <class name="LineRecordReader" extends="java.lang.Object"
  51117. abstract="false"
  51118. static="false" final="false" visibility="public"
  51119. deprecated="not deprecated">
  51120. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  51121. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  51122. static="false" final="false" visibility="public"
  51123. deprecated="not deprecated">
  51124. <exception name="IOException" type="java.io.IOException"/>
  51125. </constructor>
  51126. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  51127. static="false" final="false" visibility="public"
  51128. deprecated="not deprecated">
  51129. </constructor>
  51130. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  51131. static="false" final="false" visibility="public"
  51132. deprecated="not deprecated">
  51133. <exception name="IOException" type="java.io.IOException"/>
  51134. </constructor>
  51135. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  51136. abstract="false" native="false" synchronized="false"
  51137. static="false" final="false" visibility="public"
  51138. deprecated="not deprecated">
  51139. </method>
  51140. <method name="createValue" return="org.apache.hadoop.io.Text"
  51141. abstract="false" native="false" synchronized="false"
  51142. static="false" final="false" visibility="public"
  51143. deprecated="not deprecated">
  51144. </method>
  51145. <method name="next" return="boolean"
  51146. abstract="false" native="false" synchronized="true"
  51147. static="false" final="false" visibility="public"
  51148. deprecated="not deprecated">
  51149. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  51150. <param name="value" type="org.apache.hadoop.io.Text"/>
  51151. <exception name="IOException" type="java.io.IOException"/>
  51152. <doc>
  51153. <![CDATA[Read a line.]]>
  51154. </doc>
  51155. </method>
  51156. <method name="getProgress" return="float"
  51157. abstract="false" native="false" synchronized="false"
  51158. static="false" final="false" visibility="public"
  51159. deprecated="not deprecated">
  51160. <doc>
  51161. <![CDATA[Get the progress within the split]]>
  51162. </doc>
  51163. </method>
  51164. <method name="getPos" return="long"
  51165. abstract="false" native="false" synchronized="true"
  51166. static="false" final="false" visibility="public"
  51167. deprecated="not deprecated">
  51168. <exception name="IOException" type="java.io.IOException"/>
  51169. </method>
  51170. <method name="close"
  51171. abstract="false" native="false" synchronized="true"
  51172. static="false" final="false" visibility="public"
  51173. deprecated="not deprecated">
  51174. <exception name="IOException" type="java.io.IOException"/>
  51175. </method>
  51176. <doc>
  51177. <![CDATA[Treats keys as offset in file and value as line.]]>
  51178. </doc>
  51179. </class>
  51180. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  51181. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  51182. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  51183. abstract="false"
  51184. static="true" final="false" visibility="public"
  51185. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  51186. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  51187. static="false" final="false" visibility="public"
  51188. deprecated="not deprecated">
  51189. <exception name="IOException" type="java.io.IOException"/>
  51190. </constructor>
  51191. <doc>
  51192. <![CDATA[A class that provides a line reader from an input stream.
  51193. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  51194. </doc>
  51195. </class>
  51196. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  51197. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  51198. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  51199. abstract="false"
  51200. static="false" final="false" visibility="public"
  51201. deprecated="not deprecated">
  51202. <constructor name="MapFileOutputFormat"
  51203. static="false" final="false" visibility="public"
  51204. deprecated="not deprecated">
  51205. </constructor>
  51206. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  51207. abstract="false" native="false" synchronized="false"
  51208. static="false" final="false" visibility="public"
  51209. deprecated="not deprecated">
  51210. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51211. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51212. <param name="name" type="java.lang.String"/>
  51213. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  51214. <exception name="IOException" type="java.io.IOException"/>
  51215. </method>
  51216. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  51217. abstract="false" native="false" synchronized="false"
  51218. static="true" final="false" visibility="public"
  51219. deprecated="not deprecated">
  51220. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51221. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  51222. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51223. <exception name="IOException" type="java.io.IOException"/>
  51224. <doc>
  51225. <![CDATA[Open the output generated by this format.]]>
  51226. </doc>
  51227. </method>
  51228. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  51229. abstract="false" native="false" synchronized="false"
  51230. static="true" final="false" visibility="public"
  51231. deprecated="not deprecated">
  51232. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  51233. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  51234. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  51235. <param name="value" type="org.apache.hadoop.io.Writable"/>
  51236. <exception name="IOException" type="java.io.IOException"/>
  51237. <doc>
  51238. <![CDATA[Get an entry from output generated by this class.]]>
  51239. </doc>
  51240. </method>
  51241. <doc>
  51242. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  51243. </doc>
  51244. </class>
  51245. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  51246. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  51247. <interface name="Mapper" abstract="true"
  51248. static="false" final="false" visibility="public"
  51249. deprecated="not deprecated">
  51250. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51251. <implements name="org.apache.hadoop.io.Closeable"/>
  51252. <method name="map"
  51253. abstract="false" native="false" synchronized="false"
  51254. static="false" final="false" visibility="public"
  51255. deprecated="not deprecated">
  51256. <param name="key" type="java.lang.Object"/>
  51257. <param name="value" type="java.lang.Object"/>
  51258. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51259. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51260. <exception name="IOException" type="java.io.IOException"/>
  51261. <doc>
  51262. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  51263. <p>Output pairs need not be of the same types as input pairs. A given
  51264. input pair may map to zero or many output pairs. Output pairs are
  51265. collected with calls to
  51266. {@link OutputCollector#collect(Object,Object)}.</p>
  51267. <p>Applications can use the {@link Reporter} provided to report progress
  51268. or just indicate that they are alive. In scenarios where the application
  51269. takes an insignificant amount of time to process individual key/value
  51270. pairs, this is crucial since the framework might assume that the task has
  51271. timed-out and kill that task. The other way of avoiding this is to set
  51272. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  51273. mapred.task.timeout</a> to a high-enough value (or even zero for no
  51274. time-outs).</p>
  51275. @param key the input key.
  51276. @param value the input value.
  51277. @param output collects mapped keys and values.
  51278. @param reporter facility to report progress.]]>
  51279. </doc>
  51280. </method>
  51281. <doc>
  51282. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  51283. <p>Maps are the individual tasks which transform input records into a
  51284. intermediate records. The transformed intermediate records need not be of
  51285. the same type as the input records. A given input pair may map to zero or
  51286. many output pairs.</p>
  51287. <p>The Hadoop Map-Reduce framework spawns one map task for each
  51288. {@link InputSplit} generated by the {@link InputFormat} for the job.
  51289. <code>Mapper</code> implementations can access the {@link JobConf} for the
  51290. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  51291. themselves. Similarly they can use the {@link Closeable#close()} method for
  51292. de-initialization.</p>
  51293. <p>The framework then calls
  51294. {@link #map(Object, Object, OutputCollector, Reporter)}
  51295. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  51296. <p>All intermediate values associated with a given output key are
  51297. subsequently grouped by the framework, and passed to a {@link Reducer} to
  51298. determine the final output. Users can control the grouping by specifying
  51299. a <code>Comparator</code> via
  51300. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  51301. <p>The grouped <code>Mapper</code> outputs are partitioned per
  51302. <code>Reducer</code>. Users can control which keys (and hence records) go to
  51303. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  51304. <p>Users can optionally specify a <code>combiner</code>, via
  51305. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  51306. intermediate outputs, which helps to cut down the amount of data transferred
  51307. from the <code>Mapper</code> to the <code>Reducer</code>.
  51308. <p>The intermediate, grouped outputs are always stored in
  51309. {@link SequenceFile}s. Applications can specify if and how the intermediate
  51310. outputs are to be compressed and which {@link CompressionCodec}s are to be
  51311. used via the <code>JobConf</code>.</p>
  51312. <p>If the job has
  51313. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  51314. reduces</a> then the output of the <code>Mapper</code> is directly written
  51315. to the {@link FileSystem} without grouping by keys.</p>
  51316. <p>Example:</p>
  51317. <p><blockquote><pre>
  51318. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  51319. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  51320. static enum MyCounters { NUM_RECORDS }
  51321. private String mapTaskId;
  51322. private String inputFile;
  51323. private int noRecords = 0;
  51324. public void configure(JobConf job) {
  51325. mapTaskId = job.get("mapred.task.id");
  51326. inputFile = job.get("map.input.file");
  51327. }
  51328. public void map(K key, V val,
  51329. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  51330. throws IOException {
  51331. // Process the &lt;key, value&gt; pair (assume this takes a while)
  51332. // ...
  51333. // ...
  51334. // Let the framework know that we are alive, and kicking!
  51335. // reporter.progress();
  51336. // Process some more
  51337. // ...
  51338. // ...
  51339. // Increment the no. of &lt;key, value&gt; pairs processed
  51340. ++noRecords;
  51341. // Increment counters
  51342. reporter.incrCounter(NUM_RECORDS, 1);
  51343. // Every 100 records update application-level status
  51344. if ((noRecords%100) == 0) {
  51345. reporter.setStatus(mapTaskId + " processed " + noRecords +
  51346. " from input-file: " + inputFile);
  51347. }
  51348. // Output the result
  51349. output.collect(key, val);
  51350. }
  51351. }
  51352. </pre></blockquote></p>
  51353. <p>Applications may write a custom {@link MapRunnable} to exert greater
  51354. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  51355. @see JobConf
  51356. @see InputFormat
  51357. @see Partitioner
  51358. @see Reducer
  51359. @see MapReduceBase
  51360. @see MapRunnable
  51361. @see SequenceFile]]>
  51362. </doc>
  51363. </interface>
  51364. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  51365. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  51366. <class name="MapReduceBase" extends="java.lang.Object"
  51367. abstract="false"
  51368. static="false" final="false" visibility="public"
  51369. deprecated="not deprecated">
  51370. <implements name="org.apache.hadoop.io.Closeable"/>
  51371. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51372. <constructor name="MapReduceBase"
  51373. static="false" final="false" visibility="public"
  51374. deprecated="not deprecated">
  51375. </constructor>
  51376. <method name="close"
  51377. abstract="false" native="false" synchronized="false"
  51378. static="false" final="false" visibility="public"
  51379. deprecated="not deprecated">
  51380. <exception name="IOException" type="java.io.IOException"/>
  51381. <doc>
  51382. <![CDATA[Default implementation that does nothing.]]>
  51383. </doc>
  51384. </method>
  51385. <method name="configure"
  51386. abstract="false" native="false" synchronized="false"
  51387. static="false" final="false" visibility="public"
  51388. deprecated="not deprecated">
  51389. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51390. <doc>
  51391. <![CDATA[Default implementation that does nothing.]]>
  51392. </doc>
  51393. </method>
  51394. <doc>
  51395. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  51396. <p>Provides default no-op implementations for a few methods, most non-trivial
  51397. applications need to override some of them.</p>]]>
  51398. </doc>
  51399. </class>
  51400. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  51401. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51402. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  51403. abstract="false"
  51404. static="false" final="false" visibility="public"
  51405. deprecated="not deprecated">
  51406. <constructor name="MapReducePolicyProvider"
  51407. static="false" final="false" visibility="public"
  51408. deprecated="not deprecated">
  51409. </constructor>
  51410. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  51411. abstract="false" native="false" synchronized="false"
  51412. static="false" final="false" visibility="public"
  51413. deprecated="not deprecated">
  51414. </method>
  51415. <doc>
  51416. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  51417. </doc>
  51418. </class>
  51419. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51420. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  51421. <interface name="MapRunnable" abstract="true"
  51422. static="false" final="false" visibility="public"
  51423. deprecated="not deprecated">
  51424. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51425. <method name="run"
  51426. abstract="false" native="false" synchronized="false"
  51427. static="false" final="false" visibility="public"
  51428. deprecated="not deprecated">
  51429. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  51430. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51431. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51432. <exception name="IOException" type="java.io.IOException"/>
  51433. <doc>
  51434. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  51435. <p>Mapping of input records to output records is complete when this method
  51436. returns.</p>
  51437. @param input the {@link RecordReader} to read the input records.
  51438. @param output the {@link OutputCollector} to collect the outputrecords.
  51439. @param reporter {@link Reporter} to report progress, status-updates etc.
  51440. @throws IOException]]>
  51441. </doc>
  51442. </method>
  51443. <doc>
  51444. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  51445. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  51446. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  51447. @see Mapper]]>
  51448. </doc>
  51449. </interface>
  51450. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  51451. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  51452. <class name="MapRunner" extends="java.lang.Object"
  51453. abstract="false"
  51454. static="false" final="false" visibility="public"
  51455. deprecated="not deprecated">
  51456. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  51457. <constructor name="MapRunner"
  51458. static="false" final="false" visibility="public"
  51459. deprecated="not deprecated">
  51460. </constructor>
  51461. <method name="configure"
  51462. abstract="false" native="false" synchronized="false"
  51463. static="false" final="false" visibility="public"
  51464. deprecated="not deprecated">
  51465. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51466. </method>
  51467. <method name="run"
  51468. abstract="false" native="false" synchronized="false"
  51469. static="false" final="false" visibility="public"
  51470. deprecated="not deprecated">
  51471. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  51472. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51473. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51474. <exception name="IOException" type="java.io.IOException"/>
  51475. </method>
  51476. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  51477. abstract="false" native="false" synchronized="false"
  51478. static="false" final="false" visibility="protected"
  51479. deprecated="not deprecated">
  51480. </method>
  51481. <doc>
  51482. <![CDATA[Default {@link MapRunnable} implementation.]]>
  51483. </doc>
  51484. </class>
  51485. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  51486. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  51487. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  51488. abstract="false"
  51489. static="false" final="false" visibility="public"
  51490. deprecated="not deprecated">
  51491. <implements name="org.apache.hadoop.io.Writable"/>
  51492. <constructor name="MapTaskCompletionEventsUpdate"
  51493. static="false" final="false" visibility="public"
  51494. deprecated="not deprecated">
  51495. </constructor>
  51496. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  51497. static="false" final="false" visibility="public"
  51498. deprecated="not deprecated">
  51499. </constructor>
  51500. <method name="shouldReset" return="boolean"
  51501. abstract="false" native="false" synchronized="false"
  51502. static="false" final="false" visibility="public"
  51503. deprecated="not deprecated">
  51504. </method>
  51505. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  51506. abstract="false" native="false" synchronized="false"
  51507. static="false" final="false" visibility="public"
  51508. deprecated="not deprecated">
  51509. </method>
  51510. <method name="write"
  51511. abstract="false" native="false" synchronized="false"
  51512. static="false" final="false" visibility="public"
  51513. deprecated="not deprecated">
  51514. <param name="out" type="java.io.DataOutput"/>
  51515. <exception name="IOException" type="java.io.IOException"/>
  51516. </method>
  51517. <method name="readFields"
  51518. abstract="false" native="false" synchronized="false"
  51519. static="false" final="false" visibility="public"
  51520. deprecated="not deprecated">
  51521. <param name="in" type="java.io.DataInput"/>
  51522. <exception name="IOException" type="java.io.IOException"/>
  51523. </method>
  51524. <doc>
  51525. <![CDATA[A class that represents the communication between the tasktracker and child
  51526. tasks w.r.t the map task completion events. It also indicates whether the
  51527. child task should reset its events index.]]>
  51528. </doc>
  51529. </class>
  51530. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  51531. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  51532. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  51533. abstract="true"
  51534. static="false" final="false" visibility="public"
  51535. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  51536. <constructor name="MultiFileInputFormat"
  51537. static="false" final="false" visibility="public"
  51538. deprecated="not deprecated">
  51539. </constructor>
  51540. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  51541. abstract="false" native="false" synchronized="false"
  51542. static="false" final="false" visibility="public"
  51543. deprecated="not deprecated">
  51544. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51545. <param name="numSplits" type="int"/>
  51546. <exception name="IOException" type="java.io.IOException"/>
  51547. </method>
  51548. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  51549. abstract="true" native="false" synchronized="false"
  51550. static="false" final="false" visibility="public"
  51551. deprecated="not deprecated">
  51552. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  51553. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51554. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51555. <exception name="IOException" type="java.io.IOException"/>
  51556. </method>
  51557. <doc>
  51558. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  51559. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  51560. the files under the input paths. Each split returned contains <i>nearly</i>
  51561. equal content length. <br>
  51562. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  51563. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  51564. @see MultiFileSplit
  51565. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  51566. </doc>
  51567. </class>
  51568. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  51569. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  51570. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  51571. abstract="false"
  51572. static="false" final="false" visibility="public"
  51573. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  51574. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  51575. static="false" final="false" visibility="public"
  51576. deprecated="not deprecated">
  51577. </constructor>
  51578. <method name="getLocations" return="java.lang.String[]"
  51579. abstract="false" native="false" synchronized="false"
  51580. static="false" final="false" visibility="public"
  51581. deprecated="not deprecated">
  51582. <exception name="IOException" type="java.io.IOException"/>
  51583. </method>
  51584. <method name="toString" return="java.lang.String"
  51585. abstract="false" native="false" synchronized="false"
  51586. static="false" final="false" visibility="public"
  51587. deprecated="not deprecated">
  51588. </method>
  51589. <doc>
  51590. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  51591. class does not represent a split of a file, but a split of input files
  51592. into smaller sets. The atomic unit of split is a file. <br>
  51593. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  51594. reading one record per file.
  51595. @see FileSplit
  51596. @see MultiFileInputFormat
  51597. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  51598. </doc>
  51599. </class>
  51600. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  51601. <!-- start class org.apache.hadoop.mapred.Operation -->
  51602. <class name="Operation" extends="java.lang.Enum"
  51603. abstract="false"
  51604. static="false" final="true" visibility="public"
  51605. deprecated="not deprecated">
  51606. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  51607. abstract="false" native="false" synchronized="false"
  51608. static="true" final="false" visibility="public"
  51609. deprecated="not deprecated">
  51610. </method>
  51611. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  51612. abstract="false" native="false" synchronized="false"
  51613. static="true" final="false" visibility="public"
  51614. deprecated="not deprecated">
  51615. <param name="name" type="java.lang.String"/>
  51616. </method>
  51617. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  51618. transient="false" volatile="false"
  51619. static="true" final="true" visibility="public"
  51620. deprecated="not deprecated">
  51621. </field>
  51622. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  51623. transient="false" volatile="false"
  51624. static="true" final="true" visibility="public"
  51625. deprecated="not deprecated">
  51626. </field>
  51627. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  51628. transient="false" volatile="false"
  51629. static="true" final="true" visibility="public"
  51630. deprecated="not deprecated">
  51631. </field>
  51632. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  51633. transient="false" volatile="false"
  51634. static="true" final="true" visibility="public"
  51635. deprecated="not deprecated">
  51636. </field>
  51637. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  51638. transient="false" volatile="false"
  51639. static="true" final="true" visibility="public"
  51640. deprecated="not deprecated">
  51641. </field>
  51642. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  51643. transient="false" volatile="false"
  51644. static="true" final="true" visibility="public"
  51645. deprecated="not deprecated">
  51646. </field>
  51647. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  51648. transient="false" volatile="false"
  51649. static="true" final="true" visibility="public"
  51650. deprecated="not deprecated">
  51651. </field>
  51652. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  51653. transient="false" volatile="false"
  51654. static="true" final="true" visibility="public"
  51655. deprecated="not deprecated">
  51656. </field>
  51657. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  51658. transient="false" volatile="false"
  51659. static="false" final="false" visibility="public"
  51660. deprecated="not deprecated">
  51661. </field>
  51662. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  51663. transient="false" volatile="false"
  51664. static="false" final="false" visibility="public"
  51665. deprecated="not deprecated">
  51666. </field>
  51667. <doc>
  51668. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  51669. authorization of the operation.]]>
  51670. </doc>
  51671. </class>
  51672. <!-- end class org.apache.hadoop.mapred.Operation -->
  51673. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  51674. <interface name="OutputCollector" abstract="true"
  51675. static="false" final="false" visibility="public"
  51676. deprecated="not deprecated">
  51677. <method name="collect"
  51678. abstract="false" native="false" synchronized="false"
  51679. static="false" final="false" visibility="public"
  51680. deprecated="not deprecated">
  51681. <param name="key" type="java.lang.Object"/>
  51682. <param name="value" type="java.lang.Object"/>
  51683. <exception name="IOException" type="java.io.IOException"/>
  51684. <doc>
  51685. <![CDATA[Adds a key/value pair to the output.
  51686. @param key the key to collect.
  51687. @param value to value to collect.
  51688. @throws IOException]]>
  51689. </doc>
  51690. </method>
  51691. <doc>
  51692. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  51693. and {@link Reducer}s.
  51694. <p><code>OutputCollector</code> is the generalization of the facility
  51695. provided by the Map-Reduce framework to collect data output by either the
  51696. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  51697. or the output of the job.</p>]]>
  51698. </doc>
  51699. </interface>
  51700. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  51701. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  51702. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  51703. abstract="true"
  51704. static="false" final="false" visibility="public"
  51705. deprecated="not deprecated">
  51706. <constructor name="OutputCommitter"
  51707. static="false" final="false" visibility="public"
  51708. deprecated="not deprecated">
  51709. </constructor>
  51710. <method name="setupJob"
  51711. abstract="true" native="false" synchronized="false"
  51712. static="false" final="false" visibility="public"
  51713. deprecated="not deprecated">
  51714. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51715. <exception name="IOException" type="java.io.IOException"/>
  51716. <doc>
  51717. <![CDATA[For the framework to setup the job output during initialization
  51718. @param jobContext Context of the job whose output is being written.
  51719. @throws IOException if temporary output could not be created]]>
  51720. </doc>
  51721. </method>
  51722. <method name="cleanupJob"
  51723. abstract="false" native="false" synchronized="false"
  51724. static="false" final="false" visibility="public"
  51725. deprecated="use {@link #commitJob(JobContext)} or
  51726. {@link #abortJob(JobContext, int)} instead">
  51727. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51728. <exception name="IOException" type="java.io.IOException"/>
  51729. <doc>
  51730. <![CDATA[For cleaning up the job's output after job completion
  51731. @deprecated use {@link #commitJob(JobContext)} or
  51732. {@link #abortJob(JobContext, int)} instead]]>
  51733. </doc>
  51734. </method>
  51735. <method name="commitJob"
  51736. abstract="false" native="false" synchronized="false"
  51737. static="false" final="false" visibility="public"
  51738. deprecated="not deprecated">
  51739. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51740. <exception name="IOException" type="java.io.IOException"/>
  51741. <doc>
  51742. <![CDATA[For committing job's output after successful job completion. Note that this
  51743. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  51744. @param jobContext Context of the job whose output is being written.
  51745. @throws IOException]]>
  51746. </doc>
  51747. </method>
  51748. <method name="abortJob"
  51749. abstract="false" native="false" synchronized="false"
  51750. static="false" final="false" visibility="public"
  51751. deprecated="not deprecated">
  51752. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51753. <param name="status" type="int"/>
  51754. <exception name="IOException" type="java.io.IOException"/>
  51755. <doc>
  51756. <![CDATA[For cleaning up the job's output after job failure.
  51757. @param jobContext Context of the job whose output is being written.
  51758. @param status Final run state of the job, should be
  51759. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  51760. @throws IOException]]>
  51761. </doc>
  51762. </method>
  51763. <method name="setupTask"
  51764. abstract="true" native="false" synchronized="false"
  51765. static="false" final="false" visibility="public"
  51766. deprecated="not deprecated">
  51767. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51768. <exception name="IOException" type="java.io.IOException"/>
  51769. <doc>
  51770. <![CDATA[Sets up output for the task.
  51771. @param taskContext Context of the task whose output is being written.
  51772. @throws IOException]]>
  51773. </doc>
  51774. </method>
  51775. <method name="needsTaskCommit" return="boolean"
  51776. abstract="true" native="false" synchronized="false"
  51777. static="false" final="false" visibility="public"
  51778. deprecated="not deprecated">
  51779. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51780. <exception name="IOException" type="java.io.IOException"/>
  51781. <doc>
  51782. <![CDATA[Check whether task needs a commit
  51783. @param taskContext
  51784. @return true/false
  51785. @throws IOException]]>
  51786. </doc>
  51787. </method>
  51788. <method name="commitTask"
  51789. abstract="true" native="false" synchronized="false"
  51790. static="false" final="false" visibility="public"
  51791. deprecated="not deprecated">
  51792. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51793. <exception name="IOException" type="java.io.IOException"/>
  51794. <doc>
  51795. <![CDATA[To promote the task's temporary output to final output location
  51796. The task's output is moved to the job's output directory.
  51797. @param taskContext Context of the task whose output is being written.
  51798. @throws IOException if commit is not]]>
  51799. </doc>
  51800. </method>
  51801. <method name="abortTask"
  51802. abstract="true" native="false" synchronized="false"
  51803. static="false" final="false" visibility="public"
  51804. deprecated="not deprecated">
  51805. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51806. <exception name="IOException" type="java.io.IOException"/>
  51807. <doc>
  51808. <![CDATA[Discard the task output
  51809. @param taskContext
  51810. @throws IOException]]>
  51811. </doc>
  51812. </method>
  51813. <method name="setupJob"
  51814. abstract="false" native="false" synchronized="false"
  51815. static="false" final="true" visibility="public"
  51816. deprecated="not deprecated">
  51817. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  51818. <exception name="IOException" type="java.io.IOException"/>
  51819. <doc>
  51820. <![CDATA[This method implements the new interface by calling the old method. Note
  51821. that the input types are different between the new and old apis and this
  51822. is a bridge between the two.]]>
  51823. </doc>
  51824. </method>
  51825. <method name="cleanupJob"
  51826. abstract="false" native="false" synchronized="false"
  51827. static="false" final="true" visibility="public"
  51828. deprecated="not deprecated">
  51829. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51830. <exception name="IOException" type="java.io.IOException"/>
  51831. <doc>
  51832. <![CDATA[This method implements the new interface by calling the old method. Note
  51833. that the input types are different between the new and old apis and this
  51834. is a bridge between the two.]]>
  51835. </doc>
  51836. </method>
  51837. <method name="commitJob"
  51838. abstract="false" native="false" synchronized="false"
  51839. static="false" final="true" visibility="public"
  51840. deprecated="not deprecated">
  51841. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51842. <exception name="IOException" type="java.io.IOException"/>
  51843. <doc>
  51844. <![CDATA[This method implements the new interface by calling the old method. Note
  51845. that the input types are different between the new and old apis and this
  51846. is a bridge between the two.]]>
  51847. </doc>
  51848. </method>
  51849. <method name="abortJob"
  51850. abstract="false" native="false" synchronized="false"
  51851. static="false" final="true" visibility="public"
  51852. deprecated="not deprecated">
  51853. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51854. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  51855. <exception name="IOException" type="java.io.IOException"/>
  51856. <doc>
  51857. <![CDATA[This method implements the new interface by calling the old method. Note
  51858. that the input types are different between the new and old apis and this
  51859. is a bridge between the two.]]>
  51860. </doc>
  51861. </method>
  51862. <method name="setupTask"
  51863. abstract="false" native="false" synchronized="false"
  51864. static="false" final="true" visibility="public"
  51865. deprecated="not deprecated">
  51866. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51867. <exception name="IOException" type="java.io.IOException"/>
  51868. <doc>
  51869. <![CDATA[This method implements the new interface by calling the old method. Note
  51870. that the input types are different between the new and old apis and this
  51871. is a bridge between the two.]]>
  51872. </doc>
  51873. </method>
  51874. <method name="needsTaskCommit" return="boolean"
  51875. abstract="false" native="false" synchronized="false"
  51876. static="false" final="true" visibility="public"
  51877. deprecated="not deprecated">
  51878. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51879. <exception name="IOException" type="java.io.IOException"/>
  51880. <doc>
  51881. <![CDATA[This method implements the new interface by calling the old method. Note
  51882. that the input types are different between the new and old apis and this
  51883. is a bridge between the two.]]>
  51884. </doc>
  51885. </method>
  51886. <method name="commitTask"
  51887. abstract="false" native="false" synchronized="false"
  51888. static="false" final="true" visibility="public"
  51889. deprecated="not deprecated">
  51890. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51891. <exception name="IOException" type="java.io.IOException"/>
  51892. <doc>
  51893. <![CDATA[This method implements the new interface by calling the old method. Note
  51894. that the input types are different between the new and old apis and this
  51895. is a bridge between the two.]]>
  51896. </doc>
  51897. </method>
  51898. <method name="abortTask"
  51899. abstract="false" native="false" synchronized="false"
  51900. static="false" final="true" visibility="public"
  51901. deprecated="not deprecated">
  51902. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51903. <exception name="IOException" type="java.io.IOException"/>
  51904. <doc>
  51905. <![CDATA[This method implements the new interface by calling the old method. Note
  51906. that the input types are different between the new and old apis and this
  51907. is a bridge between the two.]]>
  51908. </doc>
  51909. </method>
  51910. <doc>
  51911. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  51912. Map-Reduce job.
  51913. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  51914. the job to:<p>
  51915. <ol>
  51916. <li>
  51917. Setup the job during initialization. For example, create the temporary
  51918. output directory for the job during the initialization of the job.
  51919. </li>
  51920. <li>
  51921. Cleanup the job after the job completion. For example, remove the
  51922. temporary output directory after the job completion.
  51923. </li>
  51924. <li>
  51925. Setup the task temporary output.
  51926. </li>
  51927. <li>
  51928. Check whether a task needs a commit. This is to avoid the commit
  51929. procedure if a task does not need commit.
  51930. </li>
  51931. <li>
  51932. Commit of the task output.
  51933. </li>
  51934. <li>
  51935. Discard the task commit.
  51936. </li>
  51937. </ol>
  51938. @see FileOutputCommitter
  51939. @see JobContext
  51940. @see TaskAttemptContext]]>
  51941. </doc>
  51942. </class>
  51943. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  51944. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  51945. <interface name="OutputFormat" abstract="true"
  51946. static="false" final="false" visibility="public"
  51947. deprecated="not deprecated">
  51948. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  51949. abstract="false" native="false" synchronized="false"
  51950. static="false" final="false" visibility="public"
  51951. deprecated="not deprecated">
  51952. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51953. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51954. <param name="name" type="java.lang.String"/>
  51955. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  51956. <exception name="IOException" type="java.io.IOException"/>
  51957. <doc>
  51958. <![CDATA[Get the {@link RecordWriter} for the given job.
  51959. @param ignored
  51960. @param job configuration for the job whose output is being written.
  51961. @param name the unique name for this part of the output.
  51962. @param progress mechanism for reporting progress while writing to file.
  51963. @return a {@link RecordWriter} to write the output for the job.
  51964. @throws IOException]]>
  51965. </doc>
  51966. </method>
  51967. <method name="checkOutputSpecs"
  51968. abstract="false" native="false" synchronized="false"
  51969. static="false" final="false" visibility="public"
  51970. deprecated="not deprecated">
  51971. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51972. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51973. <exception name="IOException" type="java.io.IOException"/>
  51974. <doc>
  51975. <![CDATA[Check for validity of the output-specification for the job.
  51976. <p>This is to validate the output specification for the job when it is
  51977. a job is submitted. Typically checks that it does not already exist,
  51978. throwing an exception when it already exists, so that output is not
  51979. overwritten.</p>
  51980. @param ignored
  51981. @param job job configuration.
  51982. @throws IOException when output should not be attempted]]>
  51983. </doc>
  51984. </method>
  51985. <doc>
  51986. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  51987. Map-Reduce job.
  51988. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  51989. job to:<p>
  51990. <ol>
  51991. <li>
  51992. Validate the output-specification of the job. For e.g. check that the
  51993. output directory doesn't already exist.
  51994. <li>
  51995. Provide the {@link RecordWriter} implementation to be used to write out
  51996. the output files of the job. Output files are stored in a
  51997. {@link FileSystem}.
  51998. </li>
  51999. </ol>
  52000. @see RecordWriter
  52001. @see JobConf]]>
  52002. </doc>
  52003. </interface>
  52004. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  52005. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  52006. <class name="OutputLogFilter" extends="java.lang.Object"
  52007. abstract="false"
  52008. static="false" final="false" visibility="public"
  52009. deprecated="Use
  52010. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  52011. instead.">
  52012. <implements name="org.apache.hadoop.fs.PathFilter"/>
  52013. <constructor name="OutputLogFilter"
  52014. static="false" final="false" visibility="public"
  52015. deprecated="not deprecated">
  52016. </constructor>
  52017. <method name="accept" return="boolean"
  52018. abstract="false" native="false" synchronized="false"
  52019. static="false" final="false" visibility="public"
  52020. deprecated="not deprecated">
  52021. <param name="path" type="org.apache.hadoop.fs.Path"/>
  52022. </method>
  52023. <doc>
  52024. <![CDATA[This class filters log files from directory given
  52025. It doesnt accept paths having _logs.
  52026. This can be used to list paths of output directory as follows:
  52027. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  52028. new OutputLogFilter()));
  52029. @deprecated Use
  52030. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  52031. instead.]]>
  52032. </doc>
  52033. </class>
  52034. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  52035. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  52036. <interface name="Partitioner" abstract="true"
  52037. static="false" final="false" visibility="public"
  52038. deprecated="not deprecated">
  52039. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52040. <method name="getPartition" return="int"
  52041. abstract="false" native="false" synchronized="false"
  52042. static="false" final="false" visibility="public"
  52043. deprecated="not deprecated">
  52044. <param name="key" type="java.lang.Object"/>
  52045. <param name="value" type="java.lang.Object"/>
  52046. <param name="numPartitions" type="int"/>
  52047. <doc>
  52048. <![CDATA[Get the paritition number for a given key (hence record) given the total
  52049. number of partitions i.e. number of reduce-tasks for the job.
  52050. <p>Typically a hash function on a all or a subset of the key.</p>
  52051. @param key the key to be paritioned.
  52052. @param value the entry value.
  52053. @param numPartitions the total number of partitions.
  52054. @return the partition number for the <code>key</code>.]]>
  52055. </doc>
  52056. </method>
  52057. <doc>
  52058. <![CDATA[Partitions the key space.
  52059. <p><code>Partitioner</code> controls the partitioning of the keys of the
  52060. intermediate map-outputs. The key (or a subset of the key) is used to derive
  52061. the partition, typically by a hash function. The total number of partitions
  52062. is the same as the number of reduce tasks for the job. Hence this controls
  52063. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  52064. record) is sent for reduction.</p>
  52065. @see Reducer]]>
  52066. </doc>
  52067. </interface>
  52068. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  52069. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  52070. <class name="QueueAclsInfo" extends="java.lang.Object"
  52071. abstract="false"
  52072. static="false" final="false" visibility="public"
  52073. deprecated="not deprecated">
  52074. <implements name="org.apache.hadoop.io.Writable"/>
  52075. <constructor name="QueueAclsInfo"
  52076. static="false" final="false" visibility="public"
  52077. deprecated="not deprecated">
  52078. <doc>
  52079. <![CDATA[Default constructor for QueueAclsInfo.]]>
  52080. </doc>
  52081. </constructor>
  52082. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  52083. static="false" final="false" visibility="public"
  52084. deprecated="not deprecated">
  52085. <doc>
  52086. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  52087. queue operations array
  52088. @param queueName Name of the job queue
  52089. @param queue operations]]>
  52090. </doc>
  52091. </constructor>
  52092. <method name="getQueueName" return="java.lang.String"
  52093. abstract="false" native="false" synchronized="false"
  52094. static="false" final="false" visibility="public"
  52095. deprecated="not deprecated">
  52096. </method>
  52097. <method name="setQueueName"
  52098. abstract="false" native="false" synchronized="false"
  52099. static="false" final="false" visibility="protected"
  52100. deprecated="not deprecated">
  52101. <param name="queueName" type="java.lang.String"/>
  52102. </method>
  52103. <method name="getOperations" return="java.lang.String[]"
  52104. abstract="false" native="false" synchronized="false"
  52105. static="false" final="false" visibility="public"
  52106. deprecated="not deprecated">
  52107. </method>
  52108. <method name="readFields"
  52109. abstract="false" native="false" synchronized="false"
  52110. static="false" final="false" visibility="public"
  52111. deprecated="not deprecated">
  52112. <param name="in" type="java.io.DataInput"/>
  52113. <exception name="IOException" type="java.io.IOException"/>
  52114. </method>
  52115. <method name="write"
  52116. abstract="false" native="false" synchronized="false"
  52117. static="false" final="false" visibility="public"
  52118. deprecated="not deprecated">
  52119. <param name="out" type="java.io.DataOutput"/>
  52120. <exception name="IOException" type="java.io.IOException"/>
  52121. </method>
  52122. <doc>
  52123. <![CDATA[Class to encapsulate Queue ACLs for a particular
  52124. user.]]>
  52125. </doc>
  52126. </class>
  52127. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  52128. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  52129. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  52130. abstract="false"
  52131. static="false" final="false" visibility="public"
  52132. deprecated="not deprecated">
  52133. <constructor name="RawHistoryFileServlet"
  52134. static="false" final="false" visibility="public"
  52135. deprecated="not deprecated">
  52136. </constructor>
  52137. <method name="init"
  52138. abstract="false" native="false" synchronized="false"
  52139. static="false" final="false" visibility="public"
  52140. deprecated="not deprecated">
  52141. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  52142. <exception name="ServletException" type="javax.servlet.ServletException"/>
  52143. </method>
  52144. <method name="doGet"
  52145. abstract="false" native="false" synchronized="false"
  52146. static="false" final="false" visibility="protected"
  52147. deprecated="not deprecated">
  52148. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  52149. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  52150. <exception name="ServletException" type="javax.servlet.ServletException"/>
  52151. <exception name="IOException" type="java.io.IOException"/>
  52152. </method>
  52153. </class>
  52154. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  52155. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  52156. <interface name="RawKeyValueIterator" abstract="true"
  52157. static="false" final="false" visibility="public"
  52158. deprecated="not deprecated">
  52159. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  52160. abstract="false" native="false" synchronized="false"
  52161. static="false" final="false" visibility="public"
  52162. deprecated="not deprecated">
  52163. <exception name="IOException" type="java.io.IOException"/>
  52164. <doc>
  52165. <![CDATA[Gets the current raw key.
  52166. @return Gets the current raw key as a DataInputBuffer
  52167. @throws IOException]]>
  52168. </doc>
  52169. </method>
  52170. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  52171. abstract="false" native="false" synchronized="false"
  52172. static="false" final="false" visibility="public"
  52173. deprecated="not deprecated">
  52174. <exception name="IOException" type="java.io.IOException"/>
  52175. <doc>
  52176. <![CDATA[Gets the current raw value.
  52177. @return Gets the current raw value as a DataInputBuffer
  52178. @throws IOException]]>
  52179. </doc>
  52180. </method>
  52181. <method name="next" return="boolean"
  52182. abstract="false" native="false" synchronized="false"
  52183. static="false" final="false" visibility="public"
  52184. deprecated="not deprecated">
  52185. <exception name="IOException" type="java.io.IOException"/>
  52186. <doc>
  52187. <![CDATA[Sets up the current key and value (for getKey and getValue).
  52188. @return <code>true</code> if there exists a key/value,
  52189. <code>false</code> otherwise.
  52190. @throws IOException]]>
  52191. </doc>
  52192. </method>
  52193. <method name="close"
  52194. abstract="false" native="false" synchronized="false"
  52195. static="false" final="false" visibility="public"
  52196. deprecated="not deprecated">
  52197. <exception name="IOException" type="java.io.IOException"/>
  52198. <doc>
  52199. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  52200. @throws IOException]]>
  52201. </doc>
  52202. </method>
  52203. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  52204. abstract="false" native="false" synchronized="false"
  52205. static="false" final="false" visibility="public"
  52206. deprecated="not deprecated">
  52207. <doc>
  52208. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  52209. indicating the bytes processed by the iterator so far]]>
  52210. </doc>
  52211. </method>
  52212. <doc>
  52213. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  52214. the raw keys and values during sort/merge of intermediate data.]]>
  52215. </doc>
  52216. </interface>
  52217. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  52218. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  52219. <interface name="RecordReader" abstract="true"
  52220. static="false" final="false" visibility="public"
  52221. deprecated="not deprecated">
  52222. <method name="next" return="boolean"
  52223. abstract="false" native="false" synchronized="false"
  52224. static="false" final="false" visibility="public"
  52225. deprecated="not deprecated">
  52226. <param name="key" type="java.lang.Object"/>
  52227. <param name="value" type="java.lang.Object"/>
  52228. <exception name="IOException" type="java.io.IOException"/>
  52229. <doc>
  52230. <![CDATA[Reads the next key/value pair from the input for processing.
  52231. @param key the key to read data into
  52232. @param value the value to read data into
  52233. @return true iff a key/value was read, false if at EOF]]>
  52234. </doc>
  52235. </method>
  52236. <method name="createKey" return="java.lang.Object"
  52237. abstract="false" native="false" synchronized="false"
  52238. static="false" final="false" visibility="public"
  52239. deprecated="not deprecated">
  52240. <doc>
  52241. <![CDATA[Create an object of the appropriate type to be used as a key.
  52242. @return a new key object.]]>
  52243. </doc>
  52244. </method>
  52245. <method name="createValue" return="java.lang.Object"
  52246. abstract="false" native="false" synchronized="false"
  52247. static="false" final="false" visibility="public"
  52248. deprecated="not deprecated">
  52249. <doc>
  52250. <![CDATA[Create an object of the appropriate type to be used as a value.
  52251. @return a new value object.]]>
  52252. </doc>
  52253. </method>
  52254. <method name="getPos" return="long"
  52255. abstract="false" native="false" synchronized="false"
  52256. static="false" final="false" visibility="public"
  52257. deprecated="not deprecated">
  52258. <exception name="IOException" type="java.io.IOException"/>
  52259. <doc>
  52260. <![CDATA[Returns the current position in the input.
  52261. @return the current position in the input.
  52262. @throws IOException]]>
  52263. </doc>
  52264. </method>
  52265. <method name="close"
  52266. abstract="false" native="false" synchronized="false"
  52267. static="false" final="false" visibility="public"
  52268. deprecated="not deprecated">
  52269. <exception name="IOException" type="java.io.IOException"/>
  52270. <doc>
  52271. <![CDATA[Close this {@link InputSplit} to future operations.
  52272. @throws IOException]]>
  52273. </doc>
  52274. </method>
  52275. <method name="getProgress" return="float"
  52276. abstract="false" native="false" synchronized="false"
  52277. static="false" final="false" visibility="public"
  52278. deprecated="not deprecated">
  52279. <exception name="IOException" type="java.io.IOException"/>
  52280. <doc>
  52281. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  52282. has been processed by?
  52283. @return progress from <code>0.0</code> to <code>1.0</code>.
  52284. @throws IOException]]>
  52285. </doc>
  52286. </method>
  52287. <doc>
  52288. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  52289. {@link InputSplit}.
  52290. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  52291. the input, provided by the <code>InputSplit</code>, and presents a
  52292. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  52293. processing. It thus assumes the responsibility of processing record
  52294. boundaries and presenting the tasks with keys and values.</p>
  52295. @see InputSplit
  52296. @see InputFormat]]>
  52297. </doc>
  52298. </interface>
  52299. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  52300. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  52301. <interface name="RecordWriter" abstract="true"
  52302. static="false" final="false" visibility="public"
  52303. deprecated="not deprecated">
  52304. <method name="write"
  52305. abstract="false" native="false" synchronized="false"
  52306. static="false" final="false" visibility="public"
  52307. deprecated="not deprecated">
  52308. <param name="key" type="java.lang.Object"/>
  52309. <param name="value" type="java.lang.Object"/>
  52310. <exception name="IOException" type="java.io.IOException"/>
  52311. <doc>
  52312. <![CDATA[Writes a key/value pair.
  52313. @param key the key to write.
  52314. @param value the value to write.
  52315. @throws IOException]]>
  52316. </doc>
  52317. </method>
  52318. <method name="close"
  52319. abstract="false" native="false" synchronized="false"
  52320. static="false" final="false" visibility="public"
  52321. deprecated="not deprecated">
  52322. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52323. <exception name="IOException" type="java.io.IOException"/>
  52324. <doc>
  52325. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  52326. @param reporter facility to report progress.
  52327. @throws IOException]]>
  52328. </doc>
  52329. </method>
  52330. <doc>
  52331. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  52332. to an output file.
  52333. <p><code>RecordWriter</code> implementations write the job outputs to the
  52334. {@link FileSystem}.
  52335. @see OutputFormat]]>
  52336. </doc>
  52337. </interface>
  52338. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  52339. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  52340. <interface name="Reducer" abstract="true"
  52341. static="false" final="false" visibility="public"
  52342. deprecated="not deprecated">
  52343. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52344. <implements name="org.apache.hadoop.io.Closeable"/>
  52345. <method name="reduce"
  52346. abstract="false" native="false" synchronized="false"
  52347. static="false" final="false" visibility="public"
  52348. deprecated="not deprecated">
  52349. <param name="key" type="java.lang.Object"/>
  52350. <param name="values" type="java.util.Iterator"/>
  52351. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  52352. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52353. <exception name="IOException" type="java.io.IOException"/>
  52354. <doc>
  52355. <![CDATA[<i>Reduces</i> values for a given key.
  52356. <p>The framework calls this method for each
  52357. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  52358. Output values must be of the same type as input values. Input keys must
  52359. not be altered. The framework will <b>reuse</b> the key and value objects
  52360. that are passed into the reduce, therefore the application should clone
  52361. the objects they want to keep a copy of. In many cases, all values are
  52362. combined into zero or one value.
  52363. </p>
  52364. <p>Output pairs are collected with calls to
  52365. {@link OutputCollector#collect(Object,Object)}.</p>
  52366. <p>Applications can use the {@link Reporter} provided to report progress
  52367. or just indicate that they are alive. In scenarios where the application
  52368. takes an insignificant amount of time to process individual key/value
  52369. pairs, this is crucial since the framework might assume that the task has
  52370. timed-out and kill that task. The other way of avoiding this is to set
  52371. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  52372. mapred.task.timeout</a> to a high-enough value (or even zero for no
  52373. time-outs).</p>
  52374. @param key the key.
  52375. @param values the list of values to reduce.
  52376. @param output to collect keys and combined values.
  52377. @param reporter facility to report progress.]]>
  52378. </doc>
  52379. </method>
  52380. <doc>
  52381. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  52382. values.
  52383. <p>The number of <code>Reducer</code>s for the job is set by the user via
  52384. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  52385. can access the {@link JobConf} for the job via the
  52386. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  52387. Similarly they can use the {@link Closeable#close()} method for
  52388. de-initialization.</p>
  52389. <p><code>Reducer</code> has 3 primary phases:</p>
  52390. <ol>
  52391. <li>
  52392. <h4 id="Shuffle">Shuffle</h4>
  52393. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  52394. In the phase the framework, for each <code>Reducer</code>, fetches the
  52395. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  52396. </p>
  52397. </li>
  52398. <li>
  52399. <h4 id="Sort">Sort</h4>
  52400. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  52401. (since different <code>Mapper</code>s may have output the same key) in this
  52402. stage.</p>
  52403. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  52404. being fetched they are merged.</p>
  52405. <h5 id="SecondarySort">SecondarySort</h5>
  52406. <p>If equivalence rules for keys while grouping the intermediates are
  52407. different from those for grouping keys before reduction, then one may
  52408. specify a <code>Comparator</code> via
  52409. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  52410. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  52411. control how intermediate keys are grouped, these can be used in conjunction
  52412. to simulate <i>secondary sort on values</i>.</p>
  52413. For example, say that you want to find duplicate web pages and tag them
  52414. all with the url of the "best" known example. You would set up the job
  52415. like:
  52416. <ul>
  52417. <li>Map Input Key: url</li>
  52418. <li>Map Input Value: document</li>
  52419. <li>Map Output Key: document checksum, url pagerank</li>
  52420. <li>Map Output Value: url</li>
  52421. <li>Partitioner: by checksum</li>
  52422. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  52423. <li>OutputValueGroupingComparator: by checksum</li>
  52424. </ul>
  52425. </li>
  52426. <li>
  52427. <h4 id="Reduce">Reduce</h4>
  52428. <p>In this phase the
  52429. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  52430. method is called for each <code>&lt;key, (list of values)></code> pair in
  52431. the grouped inputs.</p>
  52432. <p>The output of the reduce task is typically written to the
  52433. {@link FileSystem} via
  52434. {@link OutputCollector#collect(Object, Object)}.</p>
  52435. </li>
  52436. </ol>
  52437. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  52438. <p>Example:</p>
  52439. <p><blockquote><pre>
  52440. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  52441. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  52442. static enum MyCounters { NUM_RECORDS }
  52443. private String reduceTaskId;
  52444. private int noKeys = 0;
  52445. public void configure(JobConf job) {
  52446. reduceTaskId = job.get("mapred.task.id");
  52447. }
  52448. public void reduce(K key, Iterator&lt;V&gt; values,
  52449. OutputCollector&lt;K, V&gt; output,
  52450. Reporter reporter)
  52451. throws IOException {
  52452. // Process
  52453. int noValues = 0;
  52454. while (values.hasNext()) {
  52455. V value = values.next();
  52456. // Increment the no. of values for this key
  52457. ++noValues;
  52458. // Process the &lt;key, value&gt; pair (assume this takes a while)
  52459. // ...
  52460. // ...
  52461. // Let the framework know that we are alive, and kicking!
  52462. if ((noValues%10) == 0) {
  52463. reporter.progress();
  52464. }
  52465. // Process some more
  52466. // ...
  52467. // ...
  52468. // Output the &lt;key, value&gt;
  52469. output.collect(key, value);
  52470. }
  52471. // Increment the no. of &lt;key, list of values&gt; pairs processed
  52472. ++noKeys;
  52473. // Increment counters
  52474. reporter.incrCounter(NUM_RECORDS, 1);
  52475. // Every 100 keys update application-level status
  52476. if ((noKeys%100) == 0) {
  52477. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  52478. }
  52479. }
  52480. }
  52481. </pre></blockquote></p>
  52482. @see Mapper
  52483. @see Partitioner
  52484. @see Reporter
  52485. @see MapReduceBase]]>
  52486. </doc>
  52487. </interface>
  52488. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  52489. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  52490. <interface name="Reporter" abstract="true"
  52491. static="false" final="false" visibility="public"
  52492. deprecated="not deprecated">
  52493. <implements name="org.apache.hadoop.util.Progressable"/>
  52494. <method name="setStatus"
  52495. abstract="false" native="false" synchronized="false"
  52496. static="false" final="false" visibility="public"
  52497. deprecated="not deprecated">
  52498. <param name="status" type="java.lang.String"/>
  52499. <doc>
  52500. <![CDATA[Set the status description for the task.
  52501. @param status brief description of the current status.]]>
  52502. </doc>
  52503. </method>
  52504. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  52505. abstract="false" native="false" synchronized="false"
  52506. static="false" final="false" visibility="public"
  52507. deprecated="not deprecated">
  52508. <param name="name" type="java.lang.Enum"/>
  52509. <doc>
  52510. <![CDATA[Get the {@link Counter} of the given group with the given name.
  52511. @param name counter name
  52512. @return the <code>Counter</code> of the given group/name.]]>
  52513. </doc>
  52514. </method>
  52515. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  52516. abstract="false" native="false" synchronized="false"
  52517. static="false" final="false" visibility="public"
  52518. deprecated="not deprecated">
  52519. <param name="group" type="java.lang.String"/>
  52520. <param name="name" type="java.lang.String"/>
  52521. <doc>
  52522. <![CDATA[Get the {@link Counter} of the given group with the given name.
  52523. @param group counter group
  52524. @param name counter name
  52525. @return the <code>Counter</code> of the given group/name.]]>
  52526. </doc>
  52527. </method>
  52528. <method name="incrCounter"
  52529. abstract="false" native="false" synchronized="false"
  52530. static="false" final="false" visibility="public"
  52531. deprecated="not deprecated">
  52532. <param name="key" type="java.lang.Enum"/>
  52533. <param name="amount" type="long"/>
  52534. <doc>
  52535. <![CDATA[Increments the counter identified by the key, which can be of
  52536. any {@link Enum} type, by the specified amount.
  52537. @param key key to identify the counter to be incremented. The key can be
  52538. be any <code>Enum</code>.
  52539. @param amount A non-negative amount by which the counter is to
  52540. be incremented.]]>
  52541. </doc>
  52542. </method>
  52543. <method name="incrCounter"
  52544. abstract="false" native="false" synchronized="false"
  52545. static="false" final="false" visibility="public"
  52546. deprecated="not deprecated">
  52547. <param name="group" type="java.lang.String"/>
  52548. <param name="counter" type="java.lang.String"/>
  52549. <param name="amount" type="long"/>
  52550. <doc>
  52551. <![CDATA[Increments the counter identified by the group and counter name
  52552. by the specified amount.
  52553. @param group name to identify the group of the counter to be incremented.
  52554. @param counter name to identify the counter within the group.
  52555. @param amount A non-negative amount by which the counter is to
  52556. be incremented.]]>
  52557. </doc>
  52558. </method>
  52559. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  52560. abstract="false" native="false" synchronized="false"
  52561. static="false" final="false" visibility="public"
  52562. deprecated="not deprecated">
  52563. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  52564. <doc>
  52565. <![CDATA[Get the {@link InputSplit} object for a map.
  52566. @return the <code>InputSplit</code> that the map is reading from.
  52567. @throws UnsupportedOperationException if called outside a mapper]]>
  52568. </doc>
  52569. </method>
  52570. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  52571. transient="false" volatile="false"
  52572. static="true" final="true" visibility="public"
  52573. deprecated="not deprecated">
  52574. <doc>
  52575. <![CDATA[A constant of Reporter type that does nothing.]]>
  52576. </doc>
  52577. </field>
  52578. <doc>
  52579. <![CDATA[A facility for Map-Reduce applications to report progress and update
  52580. counters, status information etc.
  52581. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  52582. provided to report progress or just indicate that they are alive. In
  52583. scenarios where the application takes an insignificant amount of time to
  52584. process individual key/value pairs, this is crucial since the framework
  52585. might assume that the task has timed-out and kill that task.
  52586. <p>Applications can also update {@link Counters} via the provided
  52587. <code>Reporter</code> .</p>
  52588. @see Progressable
  52589. @see Counters]]>
  52590. </doc>
  52591. </interface>
  52592. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  52593. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  52594. <interface name="RunningJob" abstract="true"
  52595. static="false" final="false" visibility="public"
  52596. deprecated="not deprecated">
  52597. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  52598. abstract="false" native="false" synchronized="false"
  52599. static="false" final="false" visibility="public"
  52600. deprecated="not deprecated">
  52601. <doc>
  52602. <![CDATA[Get the job identifier.
  52603. @return the job identifier.]]>
  52604. </doc>
  52605. </method>
  52606. <method name="getJobID" return="java.lang.String"
  52607. abstract="false" native="false" synchronized="false"
  52608. static="false" final="false" visibility="public"
  52609. deprecated="This method is deprecated and will be removed. Applications should
  52610. rather use {@link #getID()}.">
  52611. <doc>
  52612. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  52613. rather use {@link #getID()}.]]>
  52614. </doc>
  52615. </method>
  52616. <method name="getJobName" return="java.lang.String"
  52617. abstract="false" native="false" synchronized="false"
  52618. static="false" final="false" visibility="public"
  52619. deprecated="not deprecated">
  52620. <doc>
  52621. <![CDATA[Get the name of the job.
  52622. @return the name of the job.]]>
  52623. </doc>
  52624. </method>
  52625. <method name="getJobFile" return="java.lang.String"
  52626. abstract="false" native="false" synchronized="false"
  52627. static="false" final="false" visibility="public"
  52628. deprecated="not deprecated">
  52629. <doc>
  52630. <![CDATA[Get the path of the submitted job configuration.
  52631. @return the path of the submitted job configuration.]]>
  52632. </doc>
  52633. </method>
  52634. <method name="getTrackingURL" return="java.lang.String"
  52635. abstract="false" native="false" synchronized="false"
  52636. static="false" final="false" visibility="public"
  52637. deprecated="not deprecated">
  52638. <doc>
  52639. <![CDATA[Get the URL where some job progress information will be displayed.
  52640. @return the URL where some job progress information will be displayed.]]>
  52641. </doc>
  52642. </method>
  52643. <method name="mapProgress" return="float"
  52644. abstract="false" native="false" synchronized="false"
  52645. static="false" final="false" visibility="public"
  52646. deprecated="not deprecated">
  52647. <exception name="IOException" type="java.io.IOException"/>
  52648. <doc>
  52649. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  52650. and 1.0. When all map tasks have completed, the function returns 1.0.
  52651. @return the progress of the job's map-tasks.
  52652. @throws IOException]]>
  52653. </doc>
  52654. </method>
  52655. <method name="reduceProgress" return="float"
  52656. abstract="false" native="false" synchronized="false"
  52657. static="false" final="false" visibility="public"
  52658. deprecated="not deprecated">
  52659. <exception name="IOException" type="java.io.IOException"/>
  52660. <doc>
  52661. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  52662. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  52663. @return the progress of the job's reduce-tasks.
  52664. @throws IOException]]>
  52665. </doc>
  52666. </method>
  52667. <method name="cleanupProgress" return="float"
  52668. abstract="false" native="false" synchronized="false"
  52669. static="false" final="false" visibility="public"
  52670. deprecated="not deprecated">
  52671. <exception name="IOException" type="java.io.IOException"/>
  52672. <doc>
  52673. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  52674. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  52675. @return the progress of the job's cleanup-tasks.
  52676. @throws IOException]]>
  52677. </doc>
  52678. </method>
  52679. <method name="setupProgress" return="float"
  52680. abstract="false" native="false" synchronized="false"
  52681. static="false" final="false" visibility="public"
  52682. deprecated="not deprecated">
  52683. <exception name="IOException" type="java.io.IOException"/>
  52684. <doc>
  52685. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  52686. and 1.0. When all setup tasks have completed, the function returns 1.0.
  52687. @return the progress of the job's setup-tasks.
  52688. @throws IOException]]>
  52689. </doc>
  52690. </method>
  52691. <method name="isComplete" return="boolean"
  52692. abstract="false" native="false" synchronized="false"
  52693. static="false" final="false" visibility="public"
  52694. deprecated="not deprecated">
  52695. <exception name="IOException" type="java.io.IOException"/>
  52696. <doc>
  52697. <![CDATA[Check if the job is finished or not.
  52698. This is a non-blocking call.
  52699. @return <code>true</code> if the job is complete, else <code>false</code>.
  52700. @throws IOException]]>
  52701. </doc>
  52702. </method>
  52703. <method name="isSuccessful" return="boolean"
  52704. abstract="false" native="false" synchronized="false"
  52705. static="false" final="false" visibility="public"
  52706. deprecated="not deprecated">
  52707. <exception name="IOException" type="java.io.IOException"/>
  52708. <doc>
  52709. <![CDATA[Check if the job completed successfully.
  52710. @return <code>true</code> if the job succeeded, else <code>false</code>.
  52711. @throws IOException]]>
  52712. </doc>
  52713. </method>
  52714. <method name="waitForCompletion"
  52715. abstract="false" native="false" synchronized="false"
  52716. static="false" final="false" visibility="public"
  52717. deprecated="not deprecated">
  52718. <exception name="IOException" type="java.io.IOException"/>
  52719. <doc>
  52720. <![CDATA[Blocks until the job is complete.
  52721. @throws IOException]]>
  52722. </doc>
  52723. </method>
  52724. <method name="getJobState" return="int"
  52725. abstract="false" native="false" synchronized="false"
  52726. static="false" final="false" visibility="public"
  52727. deprecated="not deprecated">
  52728. <exception name="IOException" type="java.io.IOException"/>
  52729. <doc>
  52730. <![CDATA[Returns the current state of the Job.
  52731. {@link JobStatus}
  52732. @throws IOException]]>
  52733. </doc>
  52734. </method>
  52735. <method name="killJob"
  52736. abstract="false" native="false" synchronized="false"
  52737. static="false" final="false" visibility="public"
  52738. deprecated="not deprecated">
  52739. <exception name="IOException" type="java.io.IOException"/>
  52740. <doc>
  52741. <![CDATA[Kill the running job. Blocks until all job tasks have been
  52742. killed as well. If the job is no longer running, it simply returns.
  52743. @throws IOException]]>
  52744. </doc>
  52745. </method>
  52746. <method name="setJobPriority"
  52747. abstract="false" native="false" synchronized="false"
  52748. static="false" final="false" visibility="public"
  52749. deprecated="not deprecated">
  52750. <param name="priority" type="java.lang.String"/>
  52751. <exception name="IOException" type="java.io.IOException"/>
  52752. <doc>
  52753. <![CDATA[Set the priority of a running job.
  52754. @param priority the new priority for the job.
  52755. @throws IOException]]>
  52756. </doc>
  52757. </method>
  52758. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  52759. abstract="false" native="false" synchronized="false"
  52760. static="false" final="false" visibility="public"
  52761. deprecated="not deprecated">
  52762. <param name="startFrom" type="int"/>
  52763. <exception name="IOException" type="java.io.IOException"/>
  52764. <doc>
  52765. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  52766. @param startFrom index to start fetching events from
  52767. @return an array of {@link TaskCompletionEvent}s
  52768. @throws IOException]]>
  52769. </doc>
  52770. </method>
  52771. <method name="killTask"
  52772. abstract="false" native="false" synchronized="false"
  52773. static="false" final="false" visibility="public"
  52774. deprecated="not deprecated">
  52775. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52776. <param name="shouldFail" type="boolean"/>
  52777. <exception name="IOException" type="java.io.IOException"/>
  52778. <doc>
  52779. <![CDATA[Kill indicated task attempt.
  52780. @param taskId the id of the task to be terminated.
  52781. @param shouldFail if true the task is failed and added to failed tasks
  52782. list, otherwise it is just killed, w/o affecting
  52783. job failure status.
  52784. @throws IOException]]>
  52785. </doc>
  52786. </method>
  52787. <method name="killTask"
  52788. abstract="false" native="false" synchronized="false"
  52789. static="false" final="false" visibility="public"
  52790. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  52791. <param name="taskId" type="java.lang.String"/>
  52792. <param name="shouldFail" type="boolean"/>
  52793. <exception name="IOException" type="java.io.IOException"/>
  52794. <doc>
  52795. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  52796. </doc>
  52797. </method>
  52798. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  52799. abstract="false" native="false" synchronized="false"
  52800. static="false" final="false" visibility="public"
  52801. deprecated="not deprecated">
  52802. <exception name="IOException" type="java.io.IOException"/>
  52803. <doc>
  52804. <![CDATA[Gets the counters for this job.
  52805. @return the counters for this job.
  52806. @throws IOException]]>
  52807. </doc>
  52808. </method>
  52809. <method name="getFailureInfo" return="java.lang.String"
  52810. abstract="false" native="false" synchronized="false"
  52811. static="false" final="false" visibility="public"
  52812. deprecated="not deprecated">
  52813. <exception name="IOException" type="java.io.IOException"/>
  52814. <doc>
  52815. <![CDATA[Get failure info for the job.
  52816. @return the failure info for the job.
  52817. @throws IOException]]>
  52818. </doc>
  52819. </method>
  52820. <method name="getTaskDiagnostics" return="java.lang.String[]"
  52821. abstract="false" native="false" synchronized="false"
  52822. static="false" final="false" visibility="public"
  52823. deprecated="not deprecated">
  52824. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52825. <exception name="IOException" type="java.io.IOException"/>
  52826. <doc>
  52827. <![CDATA[Gets the diagnostic messages for a given task attempt.
  52828. @param taskid
  52829. @return the list of diagnostic messages for the task
  52830. @throws IOException]]>
  52831. </doc>
  52832. </method>
  52833. <doc>
  52834. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  52835. running Map-Reduce job.
  52836. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  52837. and then query the running-job for details such as name, configuration,
  52838. progress etc.</p>
  52839. @see JobClient]]>
  52840. </doc>
  52841. </interface>
  52842. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  52843. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  52844. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  52845. abstract="false"
  52846. static="false" final="false" visibility="public"
  52847. deprecated="not deprecated">
  52848. <constructor name="SequenceFileAsBinaryInputFormat"
  52849. static="false" final="false" visibility="public"
  52850. deprecated="not deprecated">
  52851. </constructor>
  52852. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52853. abstract="false" native="false" synchronized="false"
  52854. static="false" final="false" visibility="public"
  52855. deprecated="not deprecated">
  52856. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  52857. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52858. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52859. <exception name="IOException" type="java.io.IOException"/>
  52860. </method>
  52861. <doc>
  52862. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  52863. format.]]>
  52864. </doc>
  52865. </class>
  52866. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  52867. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  52868. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  52869. abstract="false"
  52870. static="true" final="false" visibility="public"
  52871. deprecated="not deprecated">
  52872. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52873. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52874. static="false" final="false" visibility="public"
  52875. deprecated="not deprecated">
  52876. <exception name="IOException" type="java.io.IOException"/>
  52877. </constructor>
  52878. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  52879. abstract="false" native="false" synchronized="false"
  52880. static="false" final="false" visibility="public"
  52881. deprecated="not deprecated">
  52882. </method>
  52883. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  52884. abstract="false" native="false" synchronized="false"
  52885. static="false" final="false" visibility="public"
  52886. deprecated="not deprecated">
  52887. </method>
  52888. <method name="getKeyClassName" return="java.lang.String"
  52889. abstract="false" native="false" synchronized="false"
  52890. static="false" final="false" visibility="public"
  52891. deprecated="not deprecated">
  52892. <doc>
  52893. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  52894. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  52895. </doc>
  52896. </method>
  52897. <method name="getValueClassName" return="java.lang.String"
  52898. abstract="false" native="false" synchronized="false"
  52899. static="false" final="false" visibility="public"
  52900. deprecated="not deprecated">
  52901. <doc>
  52902. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  52903. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  52904. </doc>
  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.BytesWritable"/>
  52911. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  52912. <exception name="IOException" type="java.io.IOException"/>
  52913. <doc>
  52914. <![CDATA[Read raw bytes from a SequenceFile.]]>
  52915. </doc>
  52916. </method>
  52917. <method name="getPos" return="long"
  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. </method>
  52923. <method name="close"
  52924. abstract="false" native="false" synchronized="false"
  52925. static="false" final="false" visibility="public"
  52926. deprecated="not deprecated">
  52927. <exception name="IOException" type="java.io.IOException"/>
  52928. </method>
  52929. <method name="getProgress" return="float"
  52930. abstract="false" native="false" synchronized="false"
  52931. static="false" final="false" visibility="public"
  52932. deprecated="not deprecated">
  52933. <exception name="IOException" type="java.io.IOException"/>
  52934. <doc>
  52935. <![CDATA[Return the progress within the input split
  52936. @return 0.0 to 1.0 of the input byte range]]>
  52937. </doc>
  52938. </method>
  52939. <doc>
  52940. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  52941. </doc>
  52942. </class>
  52943. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  52944. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  52945. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  52946. abstract="false"
  52947. static="false" final="false" visibility="public"
  52948. deprecated="not deprecated">
  52949. <constructor name="SequenceFileAsBinaryOutputFormat"
  52950. static="false" final="false" visibility="public"
  52951. deprecated="not deprecated">
  52952. </constructor>
  52953. <method name="setSequenceFileOutputKeyClass"
  52954. abstract="false" native="false" synchronized="false"
  52955. static="true" final="false" visibility="public"
  52956. deprecated="not deprecated">
  52957. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52958. <param name="theClass" type="java.lang.Class"/>
  52959. <doc>
  52960. <![CDATA[Set the key class for the {@link SequenceFile}
  52961. <p>This allows the user to specify the key class to be different
  52962. from the actual class ({@link BytesWritable}) used for writing </p>
  52963. @param conf the {@link JobConf} to modify
  52964. @param theClass the SequenceFile output key class.]]>
  52965. </doc>
  52966. </method>
  52967. <method name="setSequenceFileOutputValueClass"
  52968. abstract="false" native="false" synchronized="false"
  52969. static="true" final="false" visibility="public"
  52970. deprecated="not deprecated">
  52971. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52972. <param name="theClass" type="java.lang.Class"/>
  52973. <doc>
  52974. <![CDATA[Set the value class for the {@link SequenceFile}
  52975. <p>This allows the user to specify the value class to be different
  52976. from the actual class ({@link BytesWritable}) used for writing </p>
  52977. @param conf the {@link JobConf} to modify
  52978. @param theClass the SequenceFile output key class.]]>
  52979. </doc>
  52980. </method>
  52981. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  52982. abstract="false" native="false" synchronized="false"
  52983. static="true" final="false" visibility="public"
  52984. deprecated="not deprecated">
  52985. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52986. <doc>
  52987. <![CDATA[Get the key class for the {@link SequenceFile}
  52988. @return the key class of the {@link SequenceFile}]]>
  52989. </doc>
  52990. </method>
  52991. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  52992. abstract="false" native="false" synchronized="false"
  52993. static="true" final="false" visibility="public"
  52994. deprecated="not deprecated">
  52995. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52996. <doc>
  52997. <![CDATA[Get the value class for the {@link SequenceFile}
  52998. @return the value class of the {@link SequenceFile}]]>
  52999. </doc>
  53000. </method>
  53001. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53002. abstract="false" native="false" synchronized="false"
  53003. static="false" final="false" visibility="public"
  53004. deprecated="not deprecated">
  53005. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53006. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53007. <param name="name" type="java.lang.String"/>
  53008. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53009. <exception name="IOException" type="java.io.IOException"/>
  53010. </method>
  53011. <method name="checkOutputSpecs"
  53012. abstract="false" native="false" synchronized="false"
  53013. static="false" final="false" visibility="public"
  53014. deprecated="not deprecated">
  53015. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53016. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53017. <exception name="IOException" type="java.io.IOException"/>
  53018. </method>
  53019. <doc>
  53020. <![CDATA[An {@link OutputFormat} that writes keys, values to
  53021. {@link SequenceFile}s in binary(raw) format]]>
  53022. </doc>
  53023. </class>
  53024. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  53025. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  53026. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  53027. abstract="false"
  53028. static="true" final="false" visibility="protected"
  53029. deprecated="not deprecated">
  53030. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  53031. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  53032. static="false" final="false" visibility="public"
  53033. deprecated="not deprecated">
  53034. </constructor>
  53035. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  53036. static="false" final="false" visibility="public"
  53037. deprecated="not deprecated">
  53038. </constructor>
  53039. <method name="reset"
  53040. abstract="false" native="false" synchronized="false"
  53041. static="false" final="false" visibility="public"
  53042. deprecated="not deprecated">
  53043. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  53044. </method>
  53045. <method name="writeUncompressedBytes"
  53046. abstract="false" native="false" synchronized="false"
  53047. static="false" final="false" visibility="public"
  53048. deprecated="not deprecated">
  53049. <param name="outStream" type="java.io.DataOutputStream"/>
  53050. <exception name="IOException" type="java.io.IOException"/>
  53051. </method>
  53052. <method name="writeCompressedBytes"
  53053. abstract="false" native="false" synchronized="false"
  53054. static="false" final="false" visibility="public"
  53055. deprecated="not deprecated">
  53056. <param name="outStream" type="java.io.DataOutputStream"/>
  53057. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  53058. <exception name="IOException" type="java.io.IOException"/>
  53059. </method>
  53060. <method name="getSize" return="int"
  53061. abstract="false" native="false" synchronized="false"
  53062. static="false" final="false" visibility="public"
  53063. deprecated="not deprecated">
  53064. </method>
  53065. <doc>
  53066. <![CDATA[Inner class used for appendRaw]]>
  53067. </doc>
  53068. </class>
  53069. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  53070. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  53071. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  53072. abstract="false"
  53073. static="false" final="false" visibility="public"
  53074. deprecated="not deprecated">
  53075. <constructor name="SequenceFileAsTextInputFormat"
  53076. static="false" final="false" visibility="public"
  53077. deprecated="not deprecated">
  53078. </constructor>
  53079. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53080. abstract="false" native="false" synchronized="false"
  53081. static="false" final="false" visibility="public"
  53082. deprecated="not deprecated">
  53083. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53084. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53085. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53086. <exception name="IOException" type="java.io.IOException"/>
  53087. </method>
  53088. <doc>
  53089. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  53090. which converts the input keys and values to their String forms by calling toString() method.]]>
  53091. </doc>
  53092. </class>
  53093. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  53094. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  53095. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  53096. abstract="false"
  53097. static="false" final="false" visibility="public"
  53098. deprecated="not deprecated">
  53099. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53100. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53101. static="false" final="false" visibility="public"
  53102. deprecated="not deprecated">
  53103. <exception name="IOException" type="java.io.IOException"/>
  53104. </constructor>
  53105. <method name="createKey" return="org.apache.hadoop.io.Text"
  53106. abstract="false" native="false" synchronized="false"
  53107. static="false" final="false" visibility="public"
  53108. deprecated="not deprecated">
  53109. </method>
  53110. <method name="createValue" return="org.apache.hadoop.io.Text"
  53111. abstract="false" native="false" synchronized="false"
  53112. static="false" final="false" visibility="public"
  53113. deprecated="not deprecated">
  53114. </method>
  53115. <method name="next" return="boolean"
  53116. abstract="false" native="false" synchronized="true"
  53117. static="false" final="false" visibility="public"
  53118. deprecated="not deprecated">
  53119. <param name="key" type="org.apache.hadoop.io.Text"/>
  53120. <param name="value" type="org.apache.hadoop.io.Text"/>
  53121. <exception name="IOException" type="java.io.IOException"/>
  53122. <doc>
  53123. <![CDATA[Read key/value pair in a line.]]>
  53124. </doc>
  53125. </method>
  53126. <method name="getProgress" return="float"
  53127. abstract="false" native="false" synchronized="false"
  53128. static="false" final="false" visibility="public"
  53129. deprecated="not deprecated">
  53130. <exception name="IOException" type="java.io.IOException"/>
  53131. </method>
  53132. <method name="getPos" return="long"
  53133. abstract="false" native="false" synchronized="true"
  53134. static="false" final="false" visibility="public"
  53135. deprecated="not deprecated">
  53136. <exception name="IOException" type="java.io.IOException"/>
  53137. </method>
  53138. <method name="close"
  53139. abstract="false" native="false" synchronized="true"
  53140. static="false" final="false" visibility="public"
  53141. deprecated="not deprecated">
  53142. <exception name="IOException" type="java.io.IOException"/>
  53143. </method>
  53144. <doc>
  53145. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  53146. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  53147. class to TextInputFormat class.]]>
  53148. </doc>
  53149. </class>
  53150. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  53151. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  53152. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  53153. abstract="false"
  53154. static="false" final="false" visibility="public"
  53155. deprecated="not deprecated">
  53156. <constructor name="SequenceFileInputFilter"
  53157. static="false" final="false" visibility="public"
  53158. deprecated="not deprecated">
  53159. </constructor>
  53160. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53161. abstract="false" native="false" synchronized="false"
  53162. static="false" final="false" visibility="public"
  53163. deprecated="not deprecated">
  53164. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53165. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53166. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53167. <exception name="IOException" type="java.io.IOException"/>
  53168. <doc>
  53169. <![CDATA[Create a record reader for the given split
  53170. @param split file split
  53171. @param job job configuration
  53172. @param reporter reporter who sends report to task tracker
  53173. @return RecordReader]]>
  53174. </doc>
  53175. </method>
  53176. <method name="setFilterClass"
  53177. abstract="false" native="false" synchronized="false"
  53178. static="true" final="false" visibility="public"
  53179. deprecated="not deprecated">
  53180. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53181. <param name="filterClass" type="java.lang.Class"/>
  53182. <doc>
  53183. <![CDATA[set the filter class
  53184. @param conf application configuration
  53185. @param filterClass filter class]]>
  53186. </doc>
  53187. </method>
  53188. <doc>
  53189. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  53190. The sample is decided by the filter class set by the job.]]>
  53191. </doc>
  53192. </class>
  53193. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  53194. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  53195. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  53196. static="true" final="false" visibility="public"
  53197. deprecated="not deprecated">
  53198. <implements name="org.apache.hadoop.conf.Configurable"/>
  53199. <method name="accept" return="boolean"
  53200. abstract="false" native="false" synchronized="false"
  53201. static="false" final="false" visibility="public"
  53202. deprecated="not deprecated">
  53203. <param name="key" type="java.lang.Object"/>
  53204. <doc>
  53205. <![CDATA[filter function
  53206. Decide if a record should be filtered or not
  53207. @param key record key
  53208. @return true if a record is accepted; return false otherwise]]>
  53209. </doc>
  53210. </method>
  53211. <doc>
  53212. <![CDATA[filter interface]]>
  53213. </doc>
  53214. </interface>
  53215. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  53216. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53217. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  53218. abstract="true"
  53219. static="true" final="false" visibility="public"
  53220. deprecated="not deprecated">
  53221. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  53222. <constructor name="SequenceFileInputFilter.FilterBase"
  53223. static="false" final="false" visibility="public"
  53224. deprecated="not deprecated">
  53225. </constructor>
  53226. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  53227. abstract="false" native="false" synchronized="false"
  53228. static="false" final="false" visibility="public"
  53229. deprecated="not deprecated">
  53230. </method>
  53231. <doc>
  53232. <![CDATA[base class for Filters]]>
  53233. </doc>
  53234. </class>
  53235. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53236. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53237. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53238. abstract="false"
  53239. static="true" final="false" visibility="public"
  53240. deprecated="not deprecated">
  53241. <constructor name="SequenceFileInputFilter.MD5Filter"
  53242. static="false" final="false" visibility="public"
  53243. deprecated="not deprecated">
  53244. </constructor>
  53245. <method name="setFrequency"
  53246. abstract="false" native="false" synchronized="false"
  53247. static="true" final="false" visibility="public"
  53248. deprecated="not deprecated">
  53249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53250. <param name="frequency" type="int"/>
  53251. <doc>
  53252. <![CDATA[set the filtering frequency in configuration
  53253. @param conf configuration
  53254. @param frequency filtering frequency]]>
  53255. </doc>
  53256. </method>
  53257. <method name="setConf"
  53258. abstract="false" native="false" synchronized="false"
  53259. static="false" final="false" visibility="public"
  53260. deprecated="not deprecated">
  53261. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53262. <doc>
  53263. <![CDATA[configure the filter according to configuration
  53264. @param conf configuration]]>
  53265. </doc>
  53266. </method>
  53267. <method name="accept" return="boolean"
  53268. abstract="false" native="false" synchronized="false"
  53269. static="false" final="false" visibility="public"
  53270. deprecated="not deprecated">
  53271. <param name="key" type="java.lang.Object"/>
  53272. <doc>
  53273. <![CDATA[Filtering method
  53274. If MD5(key) % frequency==0, return true; otherwise return false
  53275. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53276. </doc>
  53277. </method>
  53278. <field name="MD5_LEN" type="int"
  53279. transient="false" volatile="false"
  53280. static="true" final="true" visibility="public"
  53281. deprecated="not deprecated">
  53282. </field>
  53283. <doc>
  53284. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  53285. key against a filtering frequency <i>f</i>. The filtering criteria is
  53286. MD5(key) % f == 0.]]>
  53287. </doc>
  53288. </class>
  53289. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53290. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53291. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53292. abstract="false"
  53293. static="true" final="false" visibility="public"
  53294. deprecated="not deprecated">
  53295. <constructor name="SequenceFileInputFilter.PercentFilter"
  53296. static="false" final="false" visibility="public"
  53297. deprecated="not deprecated">
  53298. </constructor>
  53299. <method name="setFrequency"
  53300. abstract="false" native="false" synchronized="false"
  53301. static="true" final="false" visibility="public"
  53302. deprecated="not deprecated">
  53303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53304. <param name="frequency" type="int"/>
  53305. <doc>
  53306. <![CDATA[set the frequency and stores it in conf
  53307. @param conf configuration
  53308. @param frequency filtering frequencey]]>
  53309. </doc>
  53310. </method>
  53311. <method name="setConf"
  53312. abstract="false" native="false" synchronized="false"
  53313. static="false" final="false" visibility="public"
  53314. deprecated="not deprecated">
  53315. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53316. <doc>
  53317. <![CDATA[configure the filter by checking the configuration
  53318. @param conf configuration]]>
  53319. </doc>
  53320. </method>
  53321. <method name="accept" return="boolean"
  53322. abstract="false" native="false" synchronized="false"
  53323. static="false" final="false" visibility="public"
  53324. deprecated="not deprecated">
  53325. <param name="key" type="java.lang.Object"/>
  53326. <doc>
  53327. <![CDATA[Filtering method
  53328. If record# % frequency==0, return true; otherwise return false
  53329. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53330. </doc>
  53331. </method>
  53332. <doc>
  53333. <![CDATA[This class returns a percentage of records
  53334. The percentage is determined by a filtering frequency <i>f</i> using
  53335. the criteria record# % f == 0.
  53336. For example, if the frequency is 10, one out of 10 records is returned.]]>
  53337. </doc>
  53338. </class>
  53339. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53340. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53341. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53342. abstract="false"
  53343. static="true" final="false" visibility="public"
  53344. deprecated="not deprecated">
  53345. <constructor name="SequenceFileInputFilter.RegexFilter"
  53346. static="false" final="false" visibility="public"
  53347. deprecated="not deprecated">
  53348. </constructor>
  53349. <method name="setPattern"
  53350. abstract="false" native="false" synchronized="false"
  53351. static="true" final="false" visibility="public"
  53352. deprecated="not deprecated">
  53353. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53354. <param name="regex" type="java.lang.String"/>
  53355. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  53356. <doc>
  53357. <![CDATA[Define the filtering regex and stores it in conf
  53358. @param conf where the regex is set
  53359. @param regex regex used as a filter]]>
  53360. </doc>
  53361. </method>
  53362. <method name="setConf"
  53363. abstract="false" native="false" synchronized="false"
  53364. static="false" final="false" visibility="public"
  53365. deprecated="not deprecated">
  53366. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53367. <doc>
  53368. <![CDATA[configure the Filter by checking the configuration]]>
  53369. </doc>
  53370. </method>
  53371. <method name="accept" return="boolean"
  53372. abstract="false" native="false" synchronized="false"
  53373. static="false" final="false" visibility="public"
  53374. deprecated="not deprecated">
  53375. <param name="key" type="java.lang.Object"/>
  53376. <doc>
  53377. <![CDATA[Filtering method
  53378. If key matches the regex, return true; otherwise return false
  53379. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53380. </doc>
  53381. </method>
  53382. <doc>
  53383. <![CDATA[Records filter by matching key to regex]]>
  53384. </doc>
  53385. </class>
  53386. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53387. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53388. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53389. abstract="false"
  53390. static="false" final="false" visibility="public"
  53391. deprecated="not deprecated">
  53392. <constructor name="SequenceFileInputFormat"
  53393. static="false" final="false" visibility="public"
  53394. deprecated="not deprecated">
  53395. </constructor>
  53396. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  53397. abstract="false" native="false" synchronized="false"
  53398. static="false" final="false" visibility="protected"
  53399. deprecated="not deprecated">
  53400. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53401. <exception name="IOException" type="java.io.IOException"/>
  53402. </method>
  53403. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53404. abstract="false" native="false" synchronized="false"
  53405. static="false" final="false" visibility="public"
  53406. deprecated="not deprecated">
  53407. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53408. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53409. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53410. <exception name="IOException" type="java.io.IOException"/>
  53411. </method>
  53412. <doc>
  53413. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  53414. </doc>
  53415. </class>
  53416. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53417. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  53418. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  53419. abstract="false"
  53420. static="false" final="false" visibility="public"
  53421. deprecated="not deprecated">
  53422. <constructor name="SequenceFileOutputFormat"
  53423. static="false" final="false" visibility="public"
  53424. deprecated="not deprecated">
  53425. </constructor>
  53426. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53427. abstract="false" native="false" synchronized="false"
  53428. static="false" final="false" visibility="public"
  53429. deprecated="not deprecated">
  53430. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53431. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53432. <param name="name" type="java.lang.String"/>
  53433. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53434. <exception name="IOException" type="java.io.IOException"/>
  53435. </method>
  53436. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  53437. abstract="false" native="false" synchronized="false"
  53438. static="true" final="false" visibility="public"
  53439. deprecated="not deprecated">
  53440. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53441. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  53442. <exception name="IOException" type="java.io.IOException"/>
  53443. <doc>
  53444. <![CDATA[Open the output generated by this format.]]>
  53445. </doc>
  53446. </method>
  53447. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  53448. abstract="false" native="false" synchronized="false"
  53449. static="true" final="false" visibility="public"
  53450. deprecated="not deprecated">
  53451. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53452. <doc>
  53453. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  53454. @param conf the {@link JobConf}
  53455. @return the {@link CompressionType} for the output {@link SequenceFile},
  53456. defaulting to {@link CompressionType#RECORD}]]>
  53457. </doc>
  53458. </method>
  53459. <method name="setOutputCompressionType"
  53460. abstract="false" native="false" synchronized="false"
  53461. static="true" final="false" visibility="public"
  53462. deprecated="not deprecated">
  53463. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53464. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  53465. <doc>
  53466. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  53467. @param conf the {@link JobConf} to modify
  53468. @param style the {@link CompressionType} for the output
  53469. {@link SequenceFile}]]>
  53470. </doc>
  53471. </method>
  53472. <doc>
  53473. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  53474. </doc>
  53475. </class>
  53476. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  53477. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  53478. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  53479. abstract="false"
  53480. static="false" final="false" visibility="public"
  53481. deprecated="not deprecated">
  53482. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53483. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53484. static="false" final="false" visibility="public"
  53485. deprecated="not deprecated">
  53486. <exception name="IOException" type="java.io.IOException"/>
  53487. </constructor>
  53488. <method name="getKeyClass" return="java.lang.Class"
  53489. abstract="false" native="false" synchronized="false"
  53490. static="false" final="false" visibility="public"
  53491. deprecated="not deprecated">
  53492. <doc>
  53493. <![CDATA[The class of key that must be passed to {@link
  53494. #next(Object, Object)}..]]>
  53495. </doc>
  53496. </method>
  53497. <method name="getValueClass" return="java.lang.Class"
  53498. abstract="false" native="false" synchronized="false"
  53499. static="false" final="false" visibility="public"
  53500. deprecated="not deprecated">
  53501. <doc>
  53502. <![CDATA[The class of value that must be passed to {@link
  53503. #next(Object, Object)}..]]>
  53504. </doc>
  53505. </method>
  53506. <method name="createKey" return="java.lang.Object"
  53507. abstract="false" native="false" synchronized="false"
  53508. static="false" final="false" visibility="public"
  53509. deprecated="not deprecated">
  53510. </method>
  53511. <method name="createValue" return="java.lang.Object"
  53512. abstract="false" native="false" synchronized="false"
  53513. static="false" final="false" visibility="public"
  53514. deprecated="not deprecated">
  53515. </method>
  53516. <method name="next" return="boolean"
  53517. abstract="false" native="false" synchronized="true"
  53518. static="false" final="false" visibility="public"
  53519. deprecated="not deprecated">
  53520. <param name="key" type="java.lang.Object"/>
  53521. <param name="value" type="java.lang.Object"/>
  53522. <exception name="IOException" type="java.io.IOException"/>
  53523. </method>
  53524. <method name="next" return="boolean"
  53525. abstract="false" native="false" synchronized="true"
  53526. static="false" final="false" visibility="protected"
  53527. deprecated="not deprecated">
  53528. <param name="key" type="java.lang.Object"/>
  53529. <exception name="IOException" type="java.io.IOException"/>
  53530. </method>
  53531. <method name="getCurrentValue"
  53532. abstract="false" native="false" synchronized="true"
  53533. static="false" final="false" visibility="protected"
  53534. deprecated="not deprecated">
  53535. <param name="value" type="java.lang.Object"/>
  53536. <exception name="IOException" type="java.io.IOException"/>
  53537. </method>
  53538. <method name="getProgress" return="float"
  53539. abstract="false" native="false" synchronized="false"
  53540. static="false" final="false" visibility="public"
  53541. deprecated="not deprecated">
  53542. <exception name="IOException" type="java.io.IOException"/>
  53543. <doc>
  53544. <![CDATA[Return the progress within the input split
  53545. @return 0.0 to 1.0 of the input byte range]]>
  53546. </doc>
  53547. </method>
  53548. <method name="getPos" return="long"
  53549. abstract="false" native="false" synchronized="true"
  53550. static="false" final="false" visibility="public"
  53551. deprecated="not deprecated">
  53552. <exception name="IOException" type="java.io.IOException"/>
  53553. </method>
  53554. <method name="seek"
  53555. abstract="false" native="false" synchronized="true"
  53556. static="false" final="false" visibility="protected"
  53557. deprecated="not deprecated">
  53558. <param name="pos" type="long"/>
  53559. <exception name="IOException" type="java.io.IOException"/>
  53560. </method>
  53561. <method name="close"
  53562. abstract="false" native="false" synchronized="true"
  53563. static="false" final="false" visibility="public"
  53564. deprecated="not deprecated">
  53565. <exception name="IOException" type="java.io.IOException"/>
  53566. </method>
  53567. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  53568. transient="false" volatile="false"
  53569. static="false" final="false" visibility="protected"
  53570. deprecated="not deprecated">
  53571. </field>
  53572. <doc>
  53573. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  53574. </doc>
  53575. </class>
  53576. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  53577. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  53578. <class name="SkipBadRecords" extends="java.lang.Object"
  53579. abstract="false"
  53580. static="false" final="false" visibility="public"
  53581. deprecated="not deprecated">
  53582. <constructor name="SkipBadRecords"
  53583. static="false" final="false" visibility="public"
  53584. deprecated="not deprecated">
  53585. </constructor>
  53586. <method name="getAttemptsToStartSkipping" return="int"
  53587. abstract="false" native="false" synchronized="false"
  53588. static="true" final="false" visibility="public"
  53589. deprecated="not deprecated">
  53590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53591. <doc>
  53592. <![CDATA[Get the number of Task attempts AFTER which skip mode
  53593. will be kicked off. When skip mode is kicked off, the
  53594. tasks reports the range of records which it will process
  53595. next to the TaskTracker. So that on failures, TT knows which
  53596. ones are possibly the bad records. On further executions,
  53597. those are skipped.
  53598. Default value is 2.
  53599. @param conf the configuration
  53600. @return attemptsToStartSkipping no of task attempts]]>
  53601. </doc>
  53602. </method>
  53603. <method name="setAttemptsToStartSkipping"
  53604. abstract="false" native="false" synchronized="false"
  53605. static="true" final="false" visibility="public"
  53606. deprecated="not deprecated">
  53607. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53608. <param name="attemptsToStartSkipping" type="int"/>
  53609. <doc>
  53610. <![CDATA[Set the number of Task attempts AFTER which skip mode
  53611. will be kicked off. When skip mode is kicked off, the
  53612. tasks reports the range of records which it will process
  53613. next to the TaskTracker. So that on failures, TT knows which
  53614. ones are possibly the bad records. On further executions,
  53615. those are skipped.
  53616. Default value is 2.
  53617. @param conf the configuration
  53618. @param attemptsToStartSkipping no of task attempts]]>
  53619. </doc>
  53620. </method>
  53621. <method name="getAutoIncrMapperProcCount" return="boolean"
  53622. abstract="false" native="false" synchronized="false"
  53623. static="true" final="false" visibility="public"
  53624. deprecated="not deprecated">
  53625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53626. <doc>
  53627. <![CDATA[Get the flag which if set to true,
  53628. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  53629. by MapRunner after invoking the map function. This value must be set to
  53630. false for applications which process the records asynchronously
  53631. or buffer the input records. For example streaming.
  53632. In such cases applications should increment this counter on their own.
  53633. Default value is true.
  53634. @param conf the configuration
  53635. @return <code>true</code> if auto increment
  53636. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  53637. <code>false</code> otherwise.]]>
  53638. </doc>
  53639. </method>
  53640. <method name="setAutoIncrMapperProcCount"
  53641. abstract="false" native="false" synchronized="false"
  53642. static="true" final="false" visibility="public"
  53643. deprecated="not deprecated">
  53644. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53645. <param name="autoIncr" type="boolean"/>
  53646. <doc>
  53647. <![CDATA[Set the flag which if set to true,
  53648. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  53649. by MapRunner after invoking the map function. This value must be set to
  53650. false for applications which process the records asynchronously
  53651. or buffer the input records. For example streaming.
  53652. In such cases applications should increment this counter on their own.
  53653. Default value is true.
  53654. @param conf the configuration
  53655. @param autoIncr whether to auto increment
  53656. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  53657. </doc>
  53658. </method>
  53659. <method name="getAutoIncrReducerProcCount" return="boolean"
  53660. abstract="false" native="false" synchronized="false"
  53661. static="true" final="false" visibility="public"
  53662. deprecated="not deprecated">
  53663. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53664. <doc>
  53665. <![CDATA[Get the flag which if set to true,
  53666. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  53667. by framework after invoking the reduce function. This value must be set to
  53668. false for applications which process the records asynchronously
  53669. or buffer the input records. For example streaming.
  53670. In such cases applications should increment this counter on their own.
  53671. Default value is true.
  53672. @param conf the configuration
  53673. @return <code>true</code> if auto increment
  53674. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  53675. <code>false</code> otherwise.]]>
  53676. </doc>
  53677. </method>
  53678. <method name="setAutoIncrReducerProcCount"
  53679. abstract="false" native="false" synchronized="false"
  53680. static="true" final="false" visibility="public"
  53681. deprecated="not deprecated">
  53682. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53683. <param name="autoIncr" type="boolean"/>
  53684. <doc>
  53685. <![CDATA[Set the flag which if set to true,
  53686. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  53687. by framework after invoking the reduce function. This value must be set to
  53688. false for applications which process the records asynchronously
  53689. or buffer the input records. For example streaming.
  53690. In such cases applications should increment this counter on their own.
  53691. Default value is true.
  53692. @param conf the configuration
  53693. @param autoIncr whether to auto increment
  53694. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  53695. </doc>
  53696. </method>
  53697. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  53698. abstract="false" native="false" synchronized="false"
  53699. static="true" final="false" visibility="public"
  53700. deprecated="not deprecated">
  53701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53702. <doc>
  53703. <![CDATA[Get the directory to which skipped records are written. By default it is
  53704. the sub directory of the output _logs directory.
  53705. User can stop writing skipped records by setting the value null.
  53706. @param conf the configuration.
  53707. @return path skip output directory. Null is returned if this is not set
  53708. and output directory is also not set.]]>
  53709. </doc>
  53710. </method>
  53711. <method name="setSkipOutputPath"
  53712. abstract="false" native="false" synchronized="false"
  53713. static="true" final="false" visibility="public"
  53714. deprecated="not deprecated">
  53715. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  53717. <doc>
  53718. <![CDATA[Set the directory to which skipped records are written. By default it is
  53719. the sub directory of the output _logs directory.
  53720. User can stop writing skipped records by setting the value null.
  53721. @param conf the configuration.
  53722. @param path skip output directory path]]>
  53723. </doc>
  53724. </method>
  53725. <method name="getMapperMaxSkipRecords" return="long"
  53726. abstract="false" native="false" synchronized="false"
  53727. static="true" final="false" visibility="public"
  53728. deprecated="not deprecated">
  53729. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53730. <doc>
  53731. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  53732. bad record in mapper. The number includes the bad record as well.
  53733. To turn the feature of detection/skipping of bad records off, set the
  53734. value to 0.
  53735. The framework tries to narrow down the skipped range by retrying
  53736. until this threshold is met OR all attempts get exhausted for this task.
  53737. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53738. narrow down. Whatever records(depends on application) get skipped are
  53739. acceptable.
  53740. Default value is 0.
  53741. @param conf the configuration
  53742. @return maxSkipRecs acceptable skip records.]]>
  53743. </doc>
  53744. </method>
  53745. <method name="setMapperMaxSkipRecords"
  53746. abstract="false" native="false" synchronized="false"
  53747. static="true" final="false" visibility="public"
  53748. deprecated="not deprecated">
  53749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53750. <param name="maxSkipRecs" type="long"/>
  53751. <doc>
  53752. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  53753. bad record in mapper. The number includes the bad record as well.
  53754. To turn the feature of detection/skipping of bad records off, set the
  53755. value to 0.
  53756. The framework tries to narrow down the skipped range by retrying
  53757. until this threshold is met OR all attempts get exhausted for this task.
  53758. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53759. narrow down. Whatever records(depends on application) get skipped are
  53760. acceptable.
  53761. Default value is 0.
  53762. @param conf the configuration
  53763. @param maxSkipRecs acceptable skip records.]]>
  53764. </doc>
  53765. </method>
  53766. <method name="getReducerMaxSkipGroups" return="long"
  53767. abstract="false" native="false" synchronized="false"
  53768. static="true" final="false" visibility="public"
  53769. deprecated="not deprecated">
  53770. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53771. <doc>
  53772. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  53773. bad group in reducer. The number includes the bad group as well.
  53774. To turn the feature of detection/skipping of bad groups off, set the
  53775. value to 0.
  53776. The framework tries to narrow down the skipped range by retrying
  53777. until this threshold is met OR all attempts get exhausted for this task.
  53778. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53779. narrow down. Whatever groups(depends on application) get skipped are
  53780. acceptable.
  53781. Default value is 0.
  53782. @param conf the configuration
  53783. @return maxSkipGrps acceptable skip groups.]]>
  53784. </doc>
  53785. </method>
  53786. <method name="setReducerMaxSkipGroups"
  53787. abstract="false" native="false" synchronized="false"
  53788. static="true" final="false" visibility="public"
  53789. deprecated="not deprecated">
  53790. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53791. <param name="maxSkipGrps" type="long"/>
  53792. <doc>
  53793. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  53794. bad group in reducer. The number includes the bad group as well.
  53795. To turn the feature of detection/skipping of bad groups off, set the
  53796. value to 0.
  53797. The framework tries to narrow down the skipped range by retrying
  53798. until this threshold is met OR all attempts get exhausted for this task.
  53799. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53800. narrow down. Whatever groups(depends on application) get skipped are
  53801. acceptable.
  53802. Default value is 0.
  53803. @param conf the configuration
  53804. @param maxSkipGrps acceptable skip groups.]]>
  53805. </doc>
  53806. </method>
  53807. <field name="COUNTER_GROUP" type="java.lang.String"
  53808. transient="false" volatile="false"
  53809. static="true" final="true" visibility="public"
  53810. deprecated="not deprecated">
  53811. <doc>
  53812. <![CDATA[Special counters which are written by the application and are
  53813. used by the framework for detecting bad records. For detecting bad records
  53814. these counters must be incremented by the application.]]>
  53815. </doc>
  53816. </field>
  53817. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  53818. transient="false" volatile="false"
  53819. static="true" final="true" visibility="public"
  53820. deprecated="not deprecated">
  53821. <doc>
  53822. <![CDATA[Number of processed map records.
  53823. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  53824. </doc>
  53825. </field>
  53826. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  53827. transient="false" volatile="false"
  53828. static="true" final="true" visibility="public"
  53829. deprecated="not deprecated">
  53830. <doc>
  53831. <![CDATA[Number of processed reduce groups.
  53832. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  53833. </doc>
  53834. </field>
  53835. <doc>
  53836. <![CDATA[Utility class for skip bad records functionality. It contains various
  53837. settings related to skipping of bad records.
  53838. <p>Hadoop provides an optional mode of execution in which the bad records
  53839. are detected and skipped in further attempts.
  53840. <p>This feature can be used when map/reduce tasks crashes deterministically on
  53841. certain input. This happens due to bugs in the map/reduce function. The usual
  53842. course would be to fix these bugs. But sometimes this is not possible;
  53843. perhaps the bug is in third party libraries for which the source code is
  53844. not available. Due to this, the task never reaches to completion even with
  53845. multiple attempts and complete data for that task is lost.</p>
  53846. <p>With this feature, only a small portion of data is lost surrounding
  53847. the bad record, which may be acceptable for some user applications.
  53848. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  53849. <p>The skipping mode gets kicked off after certain no of failures
  53850. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  53851. <p>In the skipping mode, the map/reduce task maintains the record range which
  53852. is getting processed at all times. Before giving the input to the
  53853. map/reduce function, it sends this record range to the Task tracker.
  53854. If task crashes, the Task tracker knows which one was the last reported
  53855. range. On further attempts that range get skipped.</p>]]>
  53856. </doc>
  53857. </class>
  53858. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  53859. <!-- start class org.apache.hadoop.mapred.Task -->
  53860. <class name="Task" extends="java.lang.Object"
  53861. abstract="true"
  53862. static="false" final="false" visibility="public"
  53863. deprecated="not deprecated">
  53864. <implements name="org.apache.hadoop.io.Writable"/>
  53865. <implements name="org.apache.hadoop.conf.Configurable"/>
  53866. <constructor name="Task"
  53867. static="false" final="false" visibility="public"
  53868. deprecated="not deprecated">
  53869. </constructor>
  53870. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  53871. static="false" final="false" visibility="public"
  53872. deprecated="not deprecated">
  53873. </constructor>
  53874. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  53875. abstract="false" native="false" synchronized="false"
  53876. static="true" final="false" visibility="protected"
  53877. deprecated="not deprecated">
  53878. <param name="uriScheme" type="java.lang.String"/>
  53879. <doc>
  53880. <![CDATA[Counters to measure the usage of the different file systems.
  53881. Always return the String array with two elements. First one is the name of
  53882. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  53883. </doc>
  53884. </method>
  53885. <method name="setJobFile"
  53886. abstract="false" native="false" synchronized="false"
  53887. static="false" final="false" visibility="public"
  53888. deprecated="not deprecated">
  53889. <param name="jobFile" type="java.lang.String"/>
  53890. </method>
  53891. <method name="getJobFile" return="java.lang.String"
  53892. abstract="false" native="false" synchronized="false"
  53893. static="false" final="false" visibility="public"
  53894. deprecated="not deprecated">
  53895. </method>
  53896. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  53897. abstract="false" native="false" synchronized="false"
  53898. static="false" final="false" visibility="public"
  53899. deprecated="not deprecated">
  53900. </method>
  53901. <method name="getNumSlotsRequired" return="int"
  53902. abstract="false" native="false" synchronized="false"
  53903. static="false" final="false" visibility="public"
  53904. deprecated="not deprecated">
  53905. </method>
  53906. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  53907. abstract="false" native="false" synchronized="false"
  53908. static="false" final="false" visibility="public"
  53909. deprecated="not deprecated">
  53910. <doc>
  53911. <![CDATA[Get the job name for this task.
  53912. @return the job name]]>
  53913. </doc>
  53914. </method>
  53915. <method name="setJobTokenSecret"
  53916. abstract="false" native="false" synchronized="false"
  53917. static="false" final="false" visibility="public"
  53918. deprecated="not deprecated">
  53919. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  53920. <doc>
  53921. <![CDATA[Set the job token secret
  53922. @param tokenSecret the secret]]>
  53923. </doc>
  53924. </method>
  53925. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  53926. abstract="false" native="false" synchronized="false"
  53927. static="false" final="false" visibility="public"
  53928. deprecated="not deprecated">
  53929. <doc>
  53930. <![CDATA[Get the job token secret
  53931. @return the token secret]]>
  53932. </doc>
  53933. </method>
  53934. <method name="setJvmContext"
  53935. abstract="false" native="false" synchronized="false"
  53936. static="false" final="false" visibility="public"
  53937. deprecated="not deprecated">
  53938. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  53939. <doc>
  53940. <![CDATA[Set the task JvmContext
  53941. @param jvmContext]]>
  53942. </doc>
  53943. </method>
  53944. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  53945. abstract="false" native="false" synchronized="false"
  53946. static="false" final="false" visibility="public"
  53947. deprecated="not deprecated">
  53948. <doc>
  53949. <![CDATA[Gets the task JvmContext
  53950. @return the jvm context]]>
  53951. </doc>
  53952. </method>
  53953. <method name="getPartition" return="int"
  53954. abstract="false" native="false" synchronized="false"
  53955. static="false" final="false" visibility="public"
  53956. deprecated="not deprecated">
  53957. <doc>
  53958. <![CDATA[Get the index of this task within the job.
  53959. @return the integer part of the task id]]>
  53960. </doc>
  53961. </method>
  53962. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  53963. abstract="false" native="false" synchronized="true"
  53964. static="false" final="false" visibility="public"
  53965. deprecated="not deprecated">
  53966. <doc>
  53967. <![CDATA[Return current phase of the task.
  53968. needs to be synchronized as communication thread sends the phase every second
  53969. @return the curent phase of the task]]>
  53970. </doc>
  53971. </method>
  53972. <method name="setPhase"
  53973. abstract="false" native="false" synchronized="true"
  53974. static="false" final="false" visibility="protected"
  53975. deprecated="not deprecated">
  53976. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  53977. <doc>
  53978. <![CDATA[Set current phase of the task.
  53979. @param phase task phase]]>
  53980. </doc>
  53981. </method>
  53982. <method name="toWriteSkipRecs" return="boolean"
  53983. abstract="false" native="false" synchronized="false"
  53984. static="false" final="false" visibility="protected"
  53985. deprecated="not deprecated">
  53986. <doc>
  53987. <![CDATA[Get whether to write skip records.]]>
  53988. </doc>
  53989. </method>
  53990. <method name="setWriteSkipRecs"
  53991. abstract="false" native="false" synchronized="false"
  53992. static="false" final="false" visibility="protected"
  53993. deprecated="not deprecated">
  53994. <param name="writeSkipRecs" type="boolean"/>
  53995. <doc>
  53996. <![CDATA[Set whether to write skip records.]]>
  53997. </doc>
  53998. </method>
  53999. <method name="reportFatalError"
  54000. abstract="false" native="false" synchronized="false"
  54001. static="false" final="false" visibility="protected"
  54002. deprecated="not deprecated">
  54003. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54004. <param name="throwable" type="java.lang.Throwable"/>
  54005. <param name="logMsg" type="java.lang.String"/>
  54006. <doc>
  54007. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  54008. </doc>
  54009. </method>
  54010. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  54011. abstract="false" native="false" synchronized="false"
  54012. static="false" final="false" visibility="public"
  54013. deprecated="not deprecated">
  54014. <doc>
  54015. <![CDATA[Get skipRanges.]]>
  54016. </doc>
  54017. </method>
  54018. <method name="setSkipRanges"
  54019. abstract="false" native="false" synchronized="false"
  54020. static="false" final="false" visibility="public"
  54021. deprecated="not deprecated">
  54022. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  54023. <doc>
  54024. <![CDATA[Set skipRanges.]]>
  54025. </doc>
  54026. </method>
  54027. <method name="isSkipping" return="boolean"
  54028. abstract="false" native="false" synchronized="false"
  54029. static="false" final="false" visibility="public"
  54030. deprecated="not deprecated">
  54031. <doc>
  54032. <![CDATA[Is Task in skipping mode.]]>
  54033. </doc>
  54034. </method>
  54035. <method name="setSkipping"
  54036. abstract="false" native="false" synchronized="false"
  54037. static="false" final="false" visibility="public"
  54038. deprecated="not deprecated">
  54039. <param name="skipping" type="boolean"/>
  54040. <doc>
  54041. <![CDATA[Sets whether to run Task in skipping mode.
  54042. @param skipping]]>
  54043. </doc>
  54044. </method>
  54045. <method name="getUser" return="java.lang.String"
  54046. abstract="false" native="false" synchronized="false"
  54047. static="false" final="false" visibility="public"
  54048. deprecated="not deprecated">
  54049. <doc>
  54050. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  54051. user name even before it's JobConf is localized. So we explicitly serialize
  54052. the user name.
  54053. @return user]]>
  54054. </doc>
  54055. </method>
  54056. <method name="write"
  54057. abstract="false" native="false" synchronized="false"
  54058. static="false" final="false" visibility="public"
  54059. deprecated="not deprecated">
  54060. <param name="out" type="java.io.DataOutput"/>
  54061. <exception name="IOException" type="java.io.IOException"/>
  54062. </method>
  54063. <method name="readFields"
  54064. abstract="false" native="false" synchronized="false"
  54065. static="false" final="false" visibility="public"
  54066. deprecated="not deprecated">
  54067. <param name="in" type="java.io.DataInput"/>
  54068. <exception name="IOException" type="java.io.IOException"/>
  54069. </method>
  54070. <method name="toString" return="java.lang.String"
  54071. abstract="false" native="false" synchronized="false"
  54072. static="false" final="false" visibility="public"
  54073. deprecated="not deprecated">
  54074. </method>
  54075. <method name="localizeConfiguration"
  54076. abstract="false" native="false" synchronized="false"
  54077. static="false" final="false" visibility="public"
  54078. deprecated="not deprecated">
  54079. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54080. <exception name="IOException" type="java.io.IOException"/>
  54081. <doc>
  54082. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  54083. </doc>
  54084. </method>
  54085. <method name="run"
  54086. abstract="true" native="false" synchronized="false"
  54087. static="false" final="false" visibility="public"
  54088. deprecated="not deprecated">
  54089. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54090. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54091. <exception name="IOException" type="java.io.IOException"/>
  54092. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54093. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54094. <doc>
  54095. <![CDATA[Run this task as a part of the named job. This method is executed in the
  54096. child process and is what invokes user-supplied map, reduce, etc. methods.
  54097. @param umbilical for progress reports]]>
  54098. </doc>
  54099. </method>
  54100. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  54101. abstract="true" native="false" synchronized="false"
  54102. static="false" final="false" visibility="public"
  54103. deprecated="not deprecated">
  54104. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  54105. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  54106. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  54107. <exception name="IOException" type="java.io.IOException"/>
  54108. <doc>
  54109. <![CDATA[Return an approprate thread runner for this task.
  54110. @param tip TODO]]>
  54111. </doc>
  54112. </method>
  54113. <method name="isMapTask" return="boolean"
  54114. abstract="true" native="false" synchronized="false"
  54115. static="false" final="false" visibility="public"
  54116. deprecated="not deprecated">
  54117. </method>
  54118. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  54119. abstract="false" native="false" synchronized="false"
  54120. static="false" final="false" visibility="public"
  54121. deprecated="not deprecated">
  54122. </method>
  54123. <method name="initialize"
  54124. abstract="false" native="false" synchronized="false"
  54125. static="false" final="false" visibility="public"
  54126. deprecated="not deprecated">
  54127. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54128. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54129. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54130. <param name="useNewApi" type="boolean"/>
  54131. <exception name="IOException" type="java.io.IOException"/>
  54132. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54133. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54134. </method>
  54135. <method name="reportNextRecordRange"
  54136. abstract="false" native="false" synchronized="false"
  54137. static="false" final="false" visibility="protected"
  54138. deprecated="not deprecated">
  54139. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54140. <param name="nextRecIndex" type="long"/>
  54141. <exception name="IOException" type="java.io.IOException"/>
  54142. <doc>
  54143. <![CDATA[Reports the next executing record range to TaskTracker.
  54144. @param umbilical
  54145. @param nextRecIndex the record index which would be fed next.
  54146. @throws IOException]]>
  54147. </doc>
  54148. </method>
  54149. <method name="done"
  54150. abstract="false" native="false" synchronized="false"
  54151. static="false" final="false" visibility="public"
  54152. deprecated="not deprecated">
  54153. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54154. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54155. <exception name="IOException" type="java.io.IOException"/>
  54156. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54157. </method>
  54158. <method name="statusUpdate"
  54159. abstract="false" native="false" synchronized="false"
  54160. static="false" final="false" visibility="protected"
  54161. deprecated="not deprecated">
  54162. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54163. <exception name="IOException" type="java.io.IOException"/>
  54164. </method>
  54165. <method name="runTaskCleanupTask"
  54166. abstract="false" native="false" synchronized="false"
  54167. static="false" final="false" visibility="protected"
  54168. deprecated="not deprecated">
  54169. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54170. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54171. <exception name="IOException" type="java.io.IOException"/>
  54172. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54173. </method>
  54174. <method name="runJobCleanupTask"
  54175. abstract="false" native="false" synchronized="false"
  54176. static="false" final="false" visibility="protected"
  54177. deprecated="not deprecated">
  54178. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54179. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54180. <exception name="IOException" type="java.io.IOException"/>
  54181. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54182. </method>
  54183. <method name="supportIsolationRunner" return="boolean"
  54184. abstract="false" native="false" synchronized="false"
  54185. static="false" final="false" visibility="protected"
  54186. deprecated="not deprecated">
  54187. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54188. </method>
  54189. <method name="runJobSetupTask"
  54190. abstract="false" native="false" synchronized="false"
  54191. static="false" final="false" visibility="protected"
  54192. deprecated="not deprecated">
  54193. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54194. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54195. <exception name="IOException" type="java.io.IOException"/>
  54196. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54197. </method>
  54198. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  54199. abstract="false" native="false" synchronized="false"
  54200. static="true" final="false" visibility="protected"
  54201. deprecated="not deprecated">
  54202. <param name="path" type="org.apache.hadoop.fs.Path"/>
  54203. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54204. <exception name="IOException" type="java.io.IOException"/>
  54205. <doc>
  54206. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  54207. with path.
  54208. @param path
  54209. the path.
  54210. @return a Statistics instance, or null if none is found for the scheme.]]>
  54211. </doc>
  54212. </method>
  54213. <method name="setConf"
  54214. abstract="false" native="false" synchronized="false"
  54215. static="false" final="false" visibility="public"
  54216. deprecated="not deprecated">
  54217. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54218. </method>
  54219. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  54220. abstract="false" native="false" synchronized="false"
  54221. static="false" final="false" visibility="public"
  54222. deprecated="not deprecated">
  54223. </method>
  54224. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  54225. abstract="false" native="false" synchronized="false"
  54226. static="true" final="false" visibility="protected"
  54227. deprecated="not deprecated">
  54228. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  54229. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  54230. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  54231. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  54232. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54233. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54234. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  54235. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  54236. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  54237. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  54238. <param name="keyClass" type="java.lang.Class"/>
  54239. <param name="valueClass" type="java.lang.Class"/>
  54240. <exception name="IOException" type="java.io.IOException"/>
  54241. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54242. </method>
  54243. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  54244. transient="false" volatile="false"
  54245. static="true" final="true" visibility="public"
  54246. deprecated="not deprecated">
  54247. </field>
  54248. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  54249. transient="false" volatile="false"
  54250. static="true" final="true" visibility="public"
  54251. deprecated="not deprecated">
  54252. </field>
  54253. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  54254. transient="false" volatile="false"
  54255. static="true" final="true" visibility="protected"
  54256. deprecated="not deprecated">
  54257. <doc>
  54258. <![CDATA[Name of the FileSystem counters' group]]>
  54259. </doc>
  54260. </field>
  54261. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  54262. transient="false" volatile="false"
  54263. static="false" final="false" visibility="protected"
  54264. deprecated="not deprecated">
  54265. </field>
  54266. <field name="jobCleanup" type="boolean"
  54267. transient="false" volatile="false"
  54268. static="false" final="false" visibility="protected"
  54269. deprecated="not deprecated">
  54270. </field>
  54271. <field name="jobSetup" type="boolean"
  54272. transient="false" volatile="false"
  54273. static="false" final="false" visibility="protected"
  54274. deprecated="not deprecated">
  54275. </field>
  54276. <field name="taskCleanup" type="boolean"
  54277. transient="false" volatile="false"
  54278. static="false" final="false" visibility="protected"
  54279. deprecated="not deprecated">
  54280. </field>
  54281. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  54282. transient="false" volatile="false"
  54283. static="false" final="false" visibility="protected"
  54284. deprecated="not deprecated">
  54285. </field>
  54286. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  54287. transient="false" volatile="false"
  54288. static="false" final="false" visibility="protected"
  54289. deprecated="not deprecated">
  54290. </field>
  54291. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  54292. transient="false" volatile="false"
  54293. static="false" final="false" visibility="protected"
  54294. deprecated="not deprecated">
  54295. </field>
  54296. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  54297. transient="false" volatile="false"
  54298. static="false" final="false" visibility="protected"
  54299. deprecated="not deprecated">
  54300. </field>
  54301. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  54302. transient="false" volatile="false"
  54303. static="false" final="false" visibility="protected"
  54304. deprecated="not deprecated">
  54305. </field>
  54306. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  54307. transient="false" volatile="false"
  54308. static="false" final="false" visibility="protected"
  54309. deprecated="not deprecated">
  54310. </field>
  54311. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  54312. transient="false" volatile="false"
  54313. static="false" final="false" visibility="protected"
  54314. deprecated="not deprecated">
  54315. </field>
  54316. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54317. transient="false" volatile="false"
  54318. static="false" final="true" visibility="protected"
  54319. deprecated="not deprecated">
  54320. </field>
  54321. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  54322. transient="false" volatile="false"
  54323. static="false" final="false" visibility="protected"
  54324. deprecated="not deprecated">
  54325. </field>
  54326. <field name="tokenSecret" type="javax.crypto.SecretKey"
  54327. transient="false" volatile="false"
  54328. static="false" final="false" visibility="protected"
  54329. deprecated="not deprecated">
  54330. </field>
  54331. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  54332. transient="false" volatile="false"
  54333. static="false" final="false" visibility="protected"
  54334. deprecated="not deprecated">
  54335. </field>
  54336. <field name="PROGRESS_INTERVAL" type="int"
  54337. transient="false" volatile="false"
  54338. static="true" final="true" visibility="public"
  54339. deprecated="not deprecated">
  54340. <doc>
  54341. <![CDATA[The number of milliseconds between progress reports.]]>
  54342. </doc>
  54343. </field>
  54344. <doc>
  54345. <![CDATA[Base class for tasks.
  54346. This is NOT a public interface.]]>
  54347. </doc>
  54348. </class>
  54349. <!-- end class org.apache.hadoop.mapred.Task -->
  54350. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54351. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  54352. abstract="false"
  54353. static="true" final="false" visibility="protected"
  54354. deprecated="not deprecated">
  54355. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  54356. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  54357. static="false" final="false" visibility="public"
  54358. deprecated="not deprecated">
  54359. </constructor>
  54360. <method name="setWriter"
  54361. abstract="false" native="false" synchronized="true"
  54362. static="false" final="false" visibility="public"
  54363. deprecated="not deprecated">
  54364. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  54365. </method>
  54366. <method name="collect"
  54367. abstract="false" native="false" synchronized="true"
  54368. static="false" final="false" visibility="public"
  54369. deprecated="not deprecated">
  54370. <param name="key" type="java.lang.Object"/>
  54371. <param name="value" type="java.lang.Object"/>
  54372. <exception name="IOException" type="java.io.IOException"/>
  54373. </method>
  54374. <doc>
  54375. <![CDATA[OutputCollector for the combiner.]]>
  54376. </doc>
  54377. </class>
  54378. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54379. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  54380. <class name="Task.CombinerRunner" extends="java.lang.Object"
  54381. abstract="true"
  54382. static="true" final="false" visibility="protected"
  54383. deprecated="not deprecated">
  54384. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54385. transient="false" volatile="false"
  54386. static="false" final="true" visibility="protected"
  54387. deprecated="not deprecated">
  54388. </field>
  54389. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  54390. transient="false" volatile="false"
  54391. static="false" final="true" visibility="protected"
  54392. deprecated="not deprecated">
  54393. </field>
  54394. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  54395. transient="false" volatile="false"
  54396. static="false" final="true" visibility="protected"
  54397. deprecated="not deprecated">
  54398. </field>
  54399. </class>
  54400. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  54401. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  54402. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  54403. abstract="false"
  54404. static="true" final="false" visibility="protected"
  54405. deprecated="not deprecated">
  54406. <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"
  54407. static="false" final="false" visibility="public"
  54408. deprecated="not deprecated">
  54409. <exception name="IOException" type="java.io.IOException"/>
  54410. </constructor>
  54411. <method name="next" return="java.lang.Object"
  54412. abstract="false" native="false" synchronized="false"
  54413. static="false" final="false" visibility="public"
  54414. deprecated="not deprecated">
  54415. </method>
  54416. </class>
  54417. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  54418. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  54419. <class name="Task.Counter" extends="java.lang.Enum"
  54420. abstract="false"
  54421. static="true" final="true" visibility="public"
  54422. deprecated="not deprecated">
  54423. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  54424. abstract="false" native="false" synchronized="false"
  54425. static="true" final="false" visibility="public"
  54426. deprecated="not deprecated">
  54427. </method>
  54428. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  54429. abstract="false" native="false" synchronized="false"
  54430. static="true" final="false" visibility="public"
  54431. deprecated="not deprecated">
  54432. <param name="name" type="java.lang.String"/>
  54433. </method>
  54434. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54435. transient="false" volatile="false"
  54436. static="true" final="true" visibility="public"
  54437. deprecated="not deprecated">
  54438. </field>
  54439. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54440. transient="false" volatile="false"
  54441. static="true" final="true" visibility="public"
  54442. deprecated="not deprecated">
  54443. </field>
  54444. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54445. transient="false" volatile="false"
  54446. static="true" final="true" visibility="public"
  54447. deprecated="not deprecated">
  54448. </field>
  54449. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54450. transient="false" volatile="false"
  54451. static="true" final="true" visibility="public"
  54452. deprecated="not deprecated">
  54453. </field>
  54454. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54455. transient="false" volatile="false"
  54456. static="true" final="true" visibility="public"
  54457. deprecated="not deprecated">
  54458. </field>
  54459. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54460. transient="false" volatile="false"
  54461. static="true" final="true" visibility="public"
  54462. deprecated="not deprecated">
  54463. </field>
  54464. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54465. transient="false" volatile="false"
  54466. static="true" final="true" visibility="public"
  54467. deprecated="not deprecated">
  54468. </field>
  54469. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54470. transient="false" volatile="false"
  54471. static="true" final="true" visibility="public"
  54472. deprecated="not deprecated">
  54473. </field>
  54474. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  54475. transient="false" volatile="false"
  54476. static="true" final="true" visibility="public"
  54477. deprecated="not deprecated">
  54478. </field>
  54479. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54480. transient="false" volatile="false"
  54481. static="true" final="true" visibility="public"
  54482. deprecated="not deprecated">
  54483. </field>
  54484. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54485. transient="false" volatile="false"
  54486. static="true" final="true" visibility="public"
  54487. deprecated="not deprecated">
  54488. </field>
  54489. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54490. transient="false" volatile="false"
  54491. static="true" final="true" visibility="public"
  54492. deprecated="not deprecated">
  54493. </field>
  54494. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  54495. transient="false" volatile="false"
  54496. static="true" final="true" visibility="public"
  54497. deprecated="not deprecated">
  54498. </field>
  54499. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54500. transient="false" volatile="false"
  54501. static="true" final="true" visibility="public"
  54502. deprecated="not deprecated">
  54503. </field>
  54504. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54505. transient="false" volatile="false"
  54506. static="true" final="true" visibility="public"
  54507. deprecated="not deprecated">
  54508. </field>
  54509. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54510. transient="false" volatile="false"
  54511. static="true" final="true" visibility="public"
  54512. deprecated="not deprecated">
  54513. </field>
  54514. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  54515. transient="false" volatile="false"
  54516. static="true" final="true" visibility="public"
  54517. deprecated="not deprecated">
  54518. </field>
  54519. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54520. transient="false" volatile="false"
  54521. static="true" final="true" visibility="public"
  54522. deprecated="not deprecated">
  54523. </field>
  54524. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54525. transient="false" volatile="false"
  54526. static="true" final="true" visibility="public"
  54527. deprecated="not deprecated">
  54528. </field>
  54529. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54530. transient="false" volatile="false"
  54531. static="true" final="true" visibility="public"
  54532. deprecated="not deprecated">
  54533. </field>
  54534. </class>
  54535. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  54536. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  54537. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  54538. abstract="false"
  54539. static="true" final="false" visibility="protected"
  54540. deprecated="not deprecated">
  54541. </class>
  54542. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  54543. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  54544. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  54545. abstract="false"
  54546. static="true" final="false" visibility="protected"
  54547. deprecated="not deprecated">
  54548. <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"
  54549. static="false" final="false" visibility="protected"
  54550. deprecated="not deprecated">
  54551. </constructor>
  54552. <method name="combine"
  54553. abstract="false" native="false" synchronized="false"
  54554. static="false" final="false" visibility="protected"
  54555. deprecated="not deprecated">
  54556. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  54557. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  54558. <exception name="IOException" type="java.io.IOException"/>
  54559. </method>
  54560. </class>
  54561. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  54562. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  54563. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  54564. abstract="false"
  54565. static="false" final="false" visibility="protected"
  54566. deprecated="not deprecated">
  54567. <implements name="java.lang.Runnable"/>
  54568. <implements name="org.apache.hadoop.mapred.Reporter"/>
  54569. <method name="setStatus"
  54570. abstract="false" native="false" synchronized="false"
  54571. static="false" final="false" visibility="public"
  54572. deprecated="not deprecated">
  54573. <param name="status" type="java.lang.String"/>
  54574. </method>
  54575. <method name="setProgress"
  54576. abstract="false" native="false" synchronized="false"
  54577. static="false" final="false" visibility="public"
  54578. deprecated="not deprecated">
  54579. <param name="progress" type="float"/>
  54580. </method>
  54581. <method name="progress"
  54582. abstract="false" native="false" synchronized="false"
  54583. static="false" final="false" visibility="public"
  54584. deprecated="not deprecated">
  54585. </method>
  54586. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54587. abstract="false" native="false" synchronized="false"
  54588. static="false" final="false" visibility="public"
  54589. deprecated="not deprecated">
  54590. <param name="group" type="java.lang.String"/>
  54591. <param name="name" type="java.lang.String"/>
  54592. </method>
  54593. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54594. abstract="false" native="false" synchronized="false"
  54595. static="false" final="false" visibility="public"
  54596. deprecated="not deprecated">
  54597. <param name="name" type="java.lang.Enum"/>
  54598. </method>
  54599. <method name="incrCounter"
  54600. abstract="false" native="false" synchronized="false"
  54601. static="false" final="false" visibility="public"
  54602. deprecated="not deprecated">
  54603. <param name="key" type="java.lang.Enum"/>
  54604. <param name="amount" type="long"/>
  54605. </method>
  54606. <method name="incrCounter"
  54607. abstract="false" native="false" synchronized="false"
  54608. static="false" final="false" visibility="public"
  54609. deprecated="not deprecated">
  54610. <param name="group" type="java.lang.String"/>
  54611. <param name="counter" type="java.lang.String"/>
  54612. <param name="amount" type="long"/>
  54613. </method>
  54614. <method name="setInputSplit"
  54615. abstract="false" native="false" synchronized="false"
  54616. static="false" final="false" visibility="public"
  54617. deprecated="not deprecated">
  54618. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54619. </method>
  54620. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  54621. abstract="false" native="false" synchronized="false"
  54622. static="false" final="false" visibility="public"
  54623. deprecated="not deprecated">
  54624. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  54625. </method>
  54626. <method name="run"
  54627. abstract="false" native="false" synchronized="false"
  54628. static="false" final="false" visibility="public"
  54629. deprecated="not deprecated">
  54630. <doc>
  54631. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  54632. It sends progress updates if progress has been made or if the task needs to
  54633. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  54634. </doc>
  54635. </method>
  54636. <method name="startCommunicationThread"
  54637. abstract="false" native="false" synchronized="false"
  54638. static="false" final="false" visibility="public"
  54639. deprecated="not deprecated">
  54640. </method>
  54641. <method name="stopCommunicationThread"
  54642. abstract="false" native="false" synchronized="false"
  54643. static="false" final="false" visibility="public"
  54644. deprecated="not deprecated">
  54645. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54646. </method>
  54647. </class>
  54648. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  54649. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  54650. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  54651. abstract="false"
  54652. static="false" final="false" visibility="public"
  54653. deprecated="not deprecated">
  54654. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  54655. abstract="false" native="false" synchronized="false"
  54656. static="false" final="false" visibility="public"
  54657. deprecated="not deprecated">
  54658. <doc>
  54659. <![CDATA[Get the taskAttemptID.
  54660. @return TaskAttemptID]]>
  54661. </doc>
  54662. </method>
  54663. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  54664. abstract="false" native="false" synchronized="false"
  54665. static="false" final="false" visibility="public"
  54666. deprecated="not deprecated">
  54667. </method>
  54668. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  54669. abstract="false" native="false" synchronized="false"
  54670. static="false" final="false" visibility="public"
  54671. deprecated="not deprecated">
  54672. </method>
  54673. <method name="progress"
  54674. abstract="false" native="false" synchronized="false"
  54675. static="false" final="false" visibility="public"
  54676. deprecated="not deprecated">
  54677. </method>
  54678. </class>
  54679. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  54680. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  54681. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  54682. abstract="false"
  54683. static="false" final="false" visibility="public"
  54684. deprecated="not deprecated">
  54685. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  54686. static="false" final="false" visibility="public"
  54687. deprecated="not deprecated">
  54688. <doc>
  54689. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  54690. @param taskId TaskID that this task belongs to
  54691. @param id the task attempt number]]>
  54692. </doc>
  54693. </constructor>
  54694. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  54695. static="false" final="false" visibility="public"
  54696. deprecated="not deprecated">
  54697. <doc>
  54698. <![CDATA[Constructs a TaskId object from given parts.
  54699. @param jtIdentifier jobTracker identifier
  54700. @param jobId job number
  54701. @param isMap whether the tip is a map
  54702. @param taskId taskId number
  54703. @param id the task attempt number]]>
  54704. </doc>
  54705. </constructor>
  54706. <constructor name="TaskAttemptID"
  54707. static="false" final="false" visibility="public"
  54708. deprecated="not deprecated">
  54709. </constructor>
  54710. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  54711. abstract="false" native="false" synchronized="false"
  54712. static="true" final="false" visibility="public"
  54713. deprecated="not deprecated">
  54714. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  54715. <doc>
  54716. <![CDATA[Downgrade a new TaskAttemptID to an old one
  54717. @param old the new id
  54718. @return either old or a new TaskAttemptID constructed to match old]]>
  54719. </doc>
  54720. </method>
  54721. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  54722. abstract="false" native="false" synchronized="false"
  54723. static="false" final="false" visibility="public"
  54724. deprecated="not deprecated">
  54725. </method>
  54726. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  54727. abstract="false" native="false" synchronized="false"
  54728. static="false" final="false" visibility="public"
  54729. deprecated="not deprecated">
  54730. </method>
  54731. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  54732. abstract="false" native="false" synchronized="false"
  54733. static="true" final="false" visibility="public"
  54734. deprecated="not deprecated">
  54735. <param name="in" type="java.io.DataInput"/>
  54736. <exception name="IOException" type="java.io.IOException"/>
  54737. </method>
  54738. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  54739. abstract="false" native="false" synchronized="false"
  54740. static="true" final="false" visibility="public"
  54741. deprecated="not deprecated">
  54742. <param name="str" type="java.lang.String"/>
  54743. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  54744. <doc>
  54745. <![CDATA[Construct a TaskAttemptID object from given string
  54746. @return constructed TaskAttemptID object or null if the given String is null
  54747. @throws IllegalArgumentException if the given string is malformed]]>
  54748. </doc>
  54749. </method>
  54750. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  54751. abstract="false" native="false" synchronized="false"
  54752. static="true" final="false" visibility="public"
  54753. deprecated="not deprecated">
  54754. <param name="jtIdentifier" type="java.lang.String"/>
  54755. <param name="jobId" type="java.lang.Integer"/>
  54756. <param name="isMap" type="java.lang.Boolean"/>
  54757. <param name="taskId" type="java.lang.Integer"/>
  54758. <param name="attemptId" type="java.lang.Integer"/>
  54759. <doc>
  54760. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  54761. be given null, in which case that part of the regex will be generic.
  54762. For example to obtain a regex matching <i>all task attempt IDs</i>
  54763. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  54764. map task</i>, we would use :
  54765. <pre>
  54766. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  54767. </pre>
  54768. which will return :
  54769. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  54770. @param jtIdentifier jobTracker identifier, or null
  54771. @param jobId job number, or null
  54772. @param isMap whether the tip is a map, or null
  54773. @param taskId taskId number, or null
  54774. @param attemptId the task attempt number, or null
  54775. @return a regex pattern matching TaskAttemptIDs]]>
  54776. </doc>
  54777. </method>
  54778. <doc>
  54779. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  54780. a task attempt. Each task attempt is one particular instance of a Map or
  54781. Reduce Task identified by its TaskID.
  54782. TaskAttemptID consists of 2 parts. First part is the
  54783. {@link TaskID}, that this TaskAttemptID belongs to.
  54784. Second part is the task attempt number. <br>
  54785. An example TaskAttemptID is :
  54786. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  54787. zeroth task attempt for the fifth map task in the third job
  54788. running at the jobtracker started at <code>200707121733</code>.
  54789. <p>
  54790. Applications should never construct or parse TaskAttemptID strings
  54791. , but rather use appropriate constructors or {@link #forName(String)}
  54792. method.
  54793. @see JobID
  54794. @see TaskID]]>
  54795. </doc>
  54796. </class>
  54797. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  54798. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  54799. <class name="TaskCompletionEvent" extends="java.lang.Object"
  54800. abstract="false"
  54801. static="false" final="false" visibility="public"
  54802. deprecated="not deprecated">
  54803. <implements name="org.apache.hadoop.io.Writable"/>
  54804. <constructor name="TaskCompletionEvent"
  54805. static="false" final="false" visibility="public"
  54806. deprecated="not deprecated">
  54807. <doc>
  54808. <![CDATA[Default constructor for Writable.]]>
  54809. </doc>
  54810. </constructor>
  54811. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  54812. static="false" final="false" visibility="public"
  54813. deprecated="not deprecated">
  54814. <doc>
  54815. <![CDATA[Constructor. eventId should be created externally and incremented
  54816. per event for each job.
  54817. @param eventId event id, event id should be unique and assigned in
  54818. incrementally, starting from 0.
  54819. @param taskId task id
  54820. @param status task's status
  54821. @param taskTrackerHttp task tracker's host:port for http.]]>
  54822. </doc>
  54823. </constructor>
  54824. <method name="getEventId" return="int"
  54825. abstract="false" native="false" synchronized="false"
  54826. static="false" final="false" visibility="public"
  54827. deprecated="not deprecated">
  54828. <doc>
  54829. <![CDATA[Returns event Id.
  54830. @return event id]]>
  54831. </doc>
  54832. </method>
  54833. <method name="getTaskId" return="java.lang.String"
  54834. abstract="false" native="false" synchronized="false"
  54835. static="false" final="false" visibility="public"
  54836. deprecated="use {@link #getTaskAttemptId()} instead.">
  54837. <doc>
  54838. <![CDATA[Returns task id.
  54839. @return task id
  54840. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  54841. </doc>
  54842. </method>
  54843. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  54844. abstract="false" native="false" synchronized="false"
  54845. static="false" final="false" visibility="public"
  54846. deprecated="not deprecated">
  54847. <doc>
  54848. <![CDATA[Returns task id.
  54849. @return task id]]>
  54850. </doc>
  54851. </method>
  54852. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54853. abstract="false" native="false" synchronized="false"
  54854. static="false" final="false" visibility="public"
  54855. deprecated="not deprecated">
  54856. <doc>
  54857. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  54858. @return task tracker status]]>
  54859. </doc>
  54860. </method>
  54861. <method name="getTaskTrackerHttp" return="java.lang.String"
  54862. abstract="false" native="false" synchronized="false"
  54863. static="false" final="false" visibility="public"
  54864. deprecated="not deprecated">
  54865. <doc>
  54866. <![CDATA[http location of the tasktracker where this task ran.
  54867. @return http location of tasktracker user logs]]>
  54868. </doc>
  54869. </method>
  54870. <method name="getTaskRunTime" return="int"
  54871. abstract="false" native="false" synchronized="false"
  54872. static="false" final="false" visibility="public"
  54873. deprecated="not deprecated">
  54874. <doc>
  54875. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  54876. </doc>
  54877. </method>
  54878. <method name="setTaskRunTime"
  54879. abstract="false" native="false" synchronized="false"
  54880. static="false" final="false" visibility="public"
  54881. deprecated="not deprecated">
  54882. <param name="taskCompletionTime" type="int"/>
  54883. <doc>
  54884. <![CDATA[Set the task completion time
  54885. @param taskCompletionTime time (in millisec) the task took to complete]]>
  54886. </doc>
  54887. </method>
  54888. <method name="setEventId"
  54889. abstract="false" native="false" synchronized="false"
  54890. static="false" final="false" visibility="public"
  54891. deprecated="not deprecated">
  54892. <param name="eventId" type="int"/>
  54893. <doc>
  54894. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  54895. @param eventId]]>
  54896. </doc>
  54897. </method>
  54898. <method name="setTaskId"
  54899. abstract="false" native="false" synchronized="false"
  54900. static="false" final="false" visibility="public"
  54901. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  54902. <param name="taskId" type="java.lang.String"/>
  54903. <doc>
  54904. <![CDATA[Sets task id.
  54905. @param taskId
  54906. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  54907. </doc>
  54908. </method>
  54909. <method name="setTaskID"
  54910. abstract="false" native="false" synchronized="false"
  54911. static="false" final="false" visibility="public"
  54912. deprecated="not deprecated">
  54913. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54914. <doc>
  54915. <![CDATA[Sets task id.
  54916. @param taskId]]>
  54917. </doc>
  54918. </method>
  54919. <method name="setTaskStatus"
  54920. abstract="false" native="false" synchronized="false"
  54921. static="false" final="false" visibility="public"
  54922. deprecated="not deprecated">
  54923. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  54924. <doc>
  54925. <![CDATA[Set task status.
  54926. @param status]]>
  54927. </doc>
  54928. </method>
  54929. <method name="setTaskTrackerHttp"
  54930. abstract="false" native="false" synchronized="false"
  54931. static="false" final="false" visibility="public"
  54932. deprecated="not deprecated">
  54933. <param name="taskTrackerHttp" type="java.lang.String"/>
  54934. <doc>
  54935. <![CDATA[Set task tracker http location.
  54936. @param taskTrackerHttp]]>
  54937. </doc>
  54938. </method>
  54939. <method name="toString" return="java.lang.String"
  54940. abstract="false" native="false" synchronized="false"
  54941. static="false" final="false" visibility="public"
  54942. deprecated="not deprecated">
  54943. </method>
  54944. <method name="equals" return="boolean"
  54945. abstract="false" native="false" synchronized="false"
  54946. static="false" final="false" visibility="public"
  54947. deprecated="not deprecated">
  54948. <param name="o" type="java.lang.Object"/>
  54949. </method>
  54950. <method name="hashCode" return="int"
  54951. abstract="false" native="false" synchronized="false"
  54952. static="false" final="false" visibility="public"
  54953. deprecated="not deprecated">
  54954. </method>
  54955. <method name="isMapTask" return="boolean"
  54956. abstract="false" native="false" synchronized="false"
  54957. static="false" final="false" visibility="public"
  54958. deprecated="not deprecated">
  54959. </method>
  54960. <method name="idWithinJob" return="int"
  54961. abstract="false" native="false" synchronized="false"
  54962. static="false" final="false" visibility="public"
  54963. deprecated="not deprecated">
  54964. </method>
  54965. <method name="write"
  54966. abstract="false" native="false" synchronized="false"
  54967. static="false" final="false" visibility="public"
  54968. deprecated="not deprecated">
  54969. <param name="out" type="java.io.DataOutput"/>
  54970. <exception name="IOException" type="java.io.IOException"/>
  54971. </method>
  54972. <method name="readFields"
  54973. abstract="false" native="false" synchronized="false"
  54974. static="false" final="false" visibility="public"
  54975. deprecated="not deprecated">
  54976. <param name="in" type="java.io.DataInput"/>
  54977. <exception name="IOException" type="java.io.IOException"/>
  54978. </method>
  54979. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54980. transient="false" volatile="false"
  54981. static="true" final="true" visibility="public"
  54982. deprecated="not deprecated">
  54983. </field>
  54984. <doc>
  54985. <![CDATA[This is used to track task completion events on
  54986. job tracker.]]>
  54987. </doc>
  54988. </class>
  54989. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  54990. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  54991. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  54992. abstract="false"
  54993. static="true" final="true" visibility="public"
  54994. deprecated="not deprecated">
  54995. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  54996. abstract="false" native="false" synchronized="false"
  54997. static="true" final="false" visibility="public"
  54998. deprecated="not deprecated">
  54999. </method>
  55000. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55001. abstract="false" native="false" synchronized="false"
  55002. static="true" final="false" visibility="public"
  55003. deprecated="not deprecated">
  55004. <param name="name" type="java.lang.String"/>
  55005. </method>
  55006. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55007. transient="false" volatile="false"
  55008. static="true" final="true" visibility="public"
  55009. deprecated="not deprecated">
  55010. </field>
  55011. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55012. transient="false" volatile="false"
  55013. static="true" final="true" visibility="public"
  55014. deprecated="not deprecated">
  55015. </field>
  55016. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55017. transient="false" volatile="false"
  55018. static="true" final="true" visibility="public"
  55019. deprecated="not deprecated">
  55020. </field>
  55021. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55022. transient="false" volatile="false"
  55023. static="true" final="true" visibility="public"
  55024. deprecated="not deprecated">
  55025. </field>
  55026. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55027. transient="false" volatile="false"
  55028. static="true" final="true" visibility="public"
  55029. deprecated="not deprecated">
  55030. </field>
  55031. </class>
  55032. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  55033. <!-- start class org.apache.hadoop.mapred.TaskController -->
  55034. <class name="TaskController" extends="java.lang.Object"
  55035. abstract="true"
  55036. static="false" final="false" visibility="public"
  55037. deprecated="not deprecated">
  55038. <implements name="org.apache.hadoop.conf.Configurable"/>
  55039. <constructor name="TaskController"
  55040. static="false" final="false" visibility="public"
  55041. deprecated="not deprecated">
  55042. </constructor>
  55043. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  55044. abstract="false" native="false" synchronized="false"
  55045. static="false" final="false" visibility="public"
  55046. deprecated="not deprecated">
  55047. </method>
  55048. <method name="getLocalDirs" return="java.lang.String[]"
  55049. abstract="false" native="false" synchronized="false"
  55050. static="false" final="false" visibility="public"
  55051. deprecated="not deprecated">
  55052. </method>
  55053. <method name="setConf"
  55054. abstract="false" native="false" synchronized="false"
  55055. static="false" final="false" visibility="public"
  55056. deprecated="not deprecated">
  55057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55058. </method>
  55059. <method name="setup"
  55060. abstract="true" native="false" synchronized="false"
  55061. static="false" final="false" visibility="public"
  55062. deprecated="not deprecated">
  55063. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  55064. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  55065. <exception name="IOException" type="java.io.IOException"/>
  55066. <doc>
  55067. <![CDATA[Does initialization and setup.
  55068. @param allocator the local dir allocator to use
  55069. @param localStorage local storage to obtain dirs from]]>
  55070. </doc>
  55071. </method>
  55072. <method name="initializeJob"
  55073. abstract="true" native="false" synchronized="false"
  55074. static="false" final="false" visibility="public"
  55075. deprecated="not deprecated">
  55076. <param name="user" type="java.lang.String"/>
  55077. <param name="jobid" type="java.lang.String"/>
  55078. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  55079. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  55080. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55081. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  55082. <exception name="IOException" type="java.io.IOException"/>
  55083. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55084. <doc>
  55085. <![CDATA[Create all of the directories necessary for the job to start and download
  55086. all of the job and private distributed cache files.
  55087. Creates both the user directories and the job log directory.
  55088. @param user the user name
  55089. @param jobid the job
  55090. @param credentials a filename containing the job secrets
  55091. @param jobConf the path to the localized configuration file
  55092. @param taskTracker the connection the task tracker
  55093. @param ttAddr the tasktracker's RPC address
  55094. @throws IOException
  55095. @throws InterruptedException]]>
  55096. </doc>
  55097. </method>
  55098. <method name="launchTask" return="int"
  55099. abstract="true" native="false" synchronized="false"
  55100. static="false" final="false" visibility="public"
  55101. deprecated="not deprecated">
  55102. <param name="user" type="java.lang.String"/>
  55103. <param name="jobId" type="java.lang.String"/>
  55104. <param name="attemptId" type="java.lang.String"/>
  55105. <param name="setup" type="java.util.List"/>
  55106. <param name="jvmArguments" type="java.util.List"/>
  55107. <param name="currentWorkDirectory" type="java.io.File"/>
  55108. <param name="stdout" type="java.lang.String"/>
  55109. <param name="stderr" type="java.lang.String"/>
  55110. <exception name="IOException" type="java.io.IOException"/>
  55111. <doc>
  55112. <![CDATA[Create all of the directories for the task and launches the child jvm.
  55113. @param user the user name
  55114. @param jobId the jobId in question
  55115. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  55116. @param setup list of shell commands to execute before the jvm
  55117. @param jvmArguments list of jvm arguments
  55118. @param currentWorkDirectory the full path of the cwd for the task
  55119. @param stdout the file to redirect stdout to
  55120. @param stderr the file to redirect stderr to
  55121. @return the exit code for the task
  55122. @throws IOException]]>
  55123. </doc>
  55124. </method>
  55125. <method name="signalTask"
  55126. abstract="true" native="false" synchronized="false"
  55127. static="false" final="false" visibility="public"
  55128. deprecated="not deprecated">
  55129. <param name="user" type="java.lang.String"/>
  55130. <param name="taskPid" type="int"/>
  55131. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  55132. <exception name="IOException" type="java.io.IOException"/>
  55133. <doc>
  55134. <![CDATA[Send a signal to a task pid as the user.
  55135. @param user the user name
  55136. @param taskPid the pid of the task
  55137. @param signal the id of the signal to send]]>
  55138. </doc>
  55139. </method>
  55140. <method name="deleteAsUser"
  55141. abstract="true" native="false" synchronized="false"
  55142. static="false" final="false" visibility="public"
  55143. deprecated="not deprecated">
  55144. <param name="user" type="java.lang.String"/>
  55145. <param name="subDir" type="java.lang.String"/>
  55146. <exception name="IOException" type="java.io.IOException"/>
  55147. <doc>
  55148. <![CDATA[Delete the user's files under all of the task tracker root directories.
  55149. @param user the user name
  55150. @param subDir the path relative to the user's subdirectory under
  55151. the task tracker root directories.
  55152. @throws IOException]]>
  55153. </doc>
  55154. </method>
  55155. <method name="createLogDir"
  55156. abstract="false" native="false" synchronized="false"
  55157. static="false" final="false" visibility="public"
  55158. deprecated="not deprecated">
  55159. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55160. <param name="isCleanup" type="boolean"/>
  55161. <exception name="IOException" type="java.io.IOException"/>
  55162. <doc>
  55163. <![CDATA[Creates task log dir
  55164. @param taskID ID of the task
  55165. @param isCleanup If the task is cleanup task or not
  55166. @throws IOException]]>
  55167. </doc>
  55168. </method>
  55169. <method name="deleteLogAsUser"
  55170. abstract="true" native="false" synchronized="false"
  55171. static="false" final="false" visibility="public"
  55172. deprecated="not deprecated">
  55173. <param name="user" type="java.lang.String"/>
  55174. <param name="subDir" type="java.lang.String"/>
  55175. <exception name="IOException" type="java.io.IOException"/>
  55176. <doc>
  55177. <![CDATA[Delete the user's files under the userlogs directory.
  55178. @param user the user to work as
  55179. @param subDir the path under the userlogs directory.
  55180. @throws IOException]]>
  55181. </doc>
  55182. </method>
  55183. <method name="truncateLogsAsUser"
  55184. abstract="true" native="false" synchronized="false"
  55185. static="false" final="false" visibility="public"
  55186. deprecated="not deprecated">
  55187. <param name="user" type="java.lang.String"/>
  55188. <param name="allAttempts" type="java.util.List"/>
  55189. <exception name="IOException" type="java.io.IOException"/>
  55190. <doc>
  55191. <![CDATA[Run the passed command as the user
  55192. @param user
  55193. @param allAttempts the list of attempts that the JVM ran
  55194. @throws IOException]]>
  55195. </doc>
  55196. </method>
  55197. <method name="getRunAsUser" return="java.lang.String"
  55198. abstract="false" native="false" synchronized="false"
  55199. static="false" final="false" visibility="public"
  55200. deprecated="not deprecated">
  55201. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55202. <doc>
  55203. <![CDATA[Returns the local unix user that a given job will run as.]]>
  55204. </doc>
  55205. </method>
  55206. <method name="writeCommand" return="java.lang.String"
  55207. abstract="false" native="false" synchronized="false"
  55208. static="true" final="false" visibility="protected"
  55209. deprecated="not deprecated">
  55210. <param name="cmdLine" type="java.lang.String"/>
  55211. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  55212. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  55213. <exception name="IOException" type="java.io.IOException"/>
  55214. </method>
  55215. <method name="logOutput"
  55216. abstract="false" native="false" synchronized="false"
  55217. static="false" final="false" visibility="protected"
  55218. deprecated="not deprecated">
  55219. <param name="output" type="java.lang.String"/>
  55220. </method>
  55221. <field name="LOG" type="org.apache.commons.logging.Log"
  55222. transient="false" volatile="false"
  55223. static="true" final="true" visibility="public"
  55224. deprecated="not deprecated">
  55225. </field>
  55226. <field name="COMMAND_FILE" type="java.lang.String"
  55227. transient="false" volatile="false"
  55228. static="true" final="true" visibility="protected"
  55229. deprecated="not deprecated">
  55230. </field>
  55231. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  55232. transient="false" volatile="false"
  55233. static="false" final="false" visibility="protected"
  55234. deprecated="not deprecated">
  55235. </field>
  55236. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  55237. transient="false" volatile="false"
  55238. static="false" final="false" visibility="protected"
  55239. deprecated="not deprecated">
  55240. </field>
  55241. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  55242. transient="false" volatile="false"
  55243. static="true" final="true" visibility="public"
  55244. deprecated="not deprecated">
  55245. </field>
  55246. <doc>
  55247. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  55248. also the launching and killing of task JVMs.
  55249. This class defines the API for initializing, finalizing and cleaning
  55250. up of tasks, as also the launching and killing task JVMs.
  55251. Subclasses of this class will implement the logic required for
  55252. performing the actual actions.
  55253. <br/>
  55254. NOTE: This class is internal only class and not intended for users!!]]>
  55255. </doc>
  55256. </class>
  55257. <!-- end class org.apache.hadoop.mapred.TaskController -->
  55258. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  55259. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  55260. abstract="false"
  55261. static="false" final="false" visibility="public"
  55262. deprecated="not deprecated">
  55263. <constructor name="TaskGraphServlet"
  55264. static="false" final="false" visibility="public"
  55265. deprecated="not deprecated">
  55266. </constructor>
  55267. <method name="doGet"
  55268. abstract="false" native="false" synchronized="false"
  55269. static="false" final="false" visibility="public"
  55270. deprecated="not deprecated">
  55271. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55272. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55273. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55274. <exception name="IOException" type="java.io.IOException"/>
  55275. </method>
  55276. <field name="width" type="int"
  55277. transient="false" volatile="false"
  55278. static="true" final="true" visibility="public"
  55279. deprecated="not deprecated">
  55280. <doc>
  55281. <![CDATA[height of the graph w/o margins]]>
  55282. </doc>
  55283. </field>
  55284. <field name="height" type="int"
  55285. transient="false" volatile="false"
  55286. static="true" final="true" visibility="public"
  55287. deprecated="not deprecated">
  55288. <doc>
  55289. <![CDATA[height of the graph w/o margins]]>
  55290. </doc>
  55291. </field>
  55292. <field name="ymargin" type="int"
  55293. transient="false" volatile="false"
  55294. static="true" final="true" visibility="public"
  55295. deprecated="not deprecated">
  55296. <doc>
  55297. <![CDATA[margin space on y axis]]>
  55298. </doc>
  55299. </field>
  55300. <field name="xmargin" type="int"
  55301. transient="false" volatile="false"
  55302. static="true" final="true" visibility="public"
  55303. deprecated="not deprecated">
  55304. <doc>
  55305. <![CDATA[margin space on x axis]]>
  55306. </doc>
  55307. </field>
  55308. <doc>
  55309. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  55310. statuses]]>
  55311. </doc>
  55312. </class>
  55313. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  55314. <!-- start class org.apache.hadoop.mapred.TaskID -->
  55315. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  55316. abstract="false"
  55317. static="false" final="false" visibility="public"
  55318. deprecated="not deprecated">
  55319. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  55320. static="false" final="false" visibility="public"
  55321. deprecated="not deprecated">
  55322. <doc>
  55323. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  55324. @param jobId JobID that this tip belongs to
  55325. @param isMap whether the tip is a map
  55326. @param id the tip number]]>
  55327. </doc>
  55328. </constructor>
  55329. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  55330. static="false" final="false" visibility="public"
  55331. deprecated="not deprecated">
  55332. <doc>
  55333. <![CDATA[Constructs a TaskInProgressId object from given parts.
  55334. @param jtIdentifier jobTracker identifier
  55335. @param jobId job number
  55336. @param isMap whether the tip is a map
  55337. @param id the tip number]]>
  55338. </doc>
  55339. </constructor>
  55340. <constructor name="TaskID"
  55341. static="false" final="false" visibility="public"
  55342. deprecated="not deprecated">
  55343. </constructor>
  55344. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  55345. abstract="false" native="false" synchronized="false"
  55346. static="true" final="false" visibility="public"
  55347. deprecated="not deprecated">
  55348. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  55349. <doc>
  55350. <![CDATA[Downgrade a new TaskID to an old one
  55351. @param old a new or old TaskID
  55352. @return either old or a new TaskID build to match old]]>
  55353. </doc>
  55354. </method>
  55355. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  55356. abstract="false" native="false" synchronized="false"
  55357. static="true" final="false" visibility="public"
  55358. deprecated="not deprecated">
  55359. <param name="in" type="java.io.DataInput"/>
  55360. <exception name="IOException" type="java.io.IOException"/>
  55361. </method>
  55362. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55363. abstract="false" native="false" synchronized="false"
  55364. static="false" final="false" visibility="public"
  55365. deprecated="not deprecated">
  55366. </method>
  55367. <method name="getTaskIDsPattern" return="java.lang.String"
  55368. abstract="false" native="false" synchronized="false"
  55369. static="true" final="false" visibility="public"
  55370. deprecated="not deprecated">
  55371. <param name="jtIdentifier" type="java.lang.String"/>
  55372. <param name="jobId" type="java.lang.Integer"/>
  55373. <param name="isMap" type="java.lang.Boolean"/>
  55374. <param name="taskId" type="java.lang.Integer"/>
  55375. <doc>
  55376. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  55377. be given null, in which case that part of the regex will be generic.
  55378. For example to obtain a regex matching <i>the first map task</i>
  55379. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  55380. <pre>
  55381. TaskID.getTaskIDsPattern(null, null, true, 1);
  55382. </pre>
  55383. which will return :
  55384. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  55385. @param jtIdentifier jobTracker identifier, or null
  55386. @param jobId job number, or null
  55387. @param isMap whether the tip is a map, or null
  55388. @param taskId taskId number, or null
  55389. @return a regex pattern matching TaskIDs]]>
  55390. </doc>
  55391. </method>
  55392. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  55393. abstract="false" native="false" synchronized="false"
  55394. static="true" final="false" visibility="public"
  55395. deprecated="not deprecated">
  55396. <param name="str" type="java.lang.String"/>
  55397. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  55398. </method>
  55399. <doc>
  55400. <![CDATA[TaskID represents the immutable and unique identifier for
  55401. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  55402. execute the Map or Reduce Task, each of which are uniquely indentified by
  55403. their TaskAttemptID.
  55404. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  55405. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  55406. representing whether the task is a map task or a reduce task.
  55407. And the third part is the task number. <br>
  55408. An example TaskID is :
  55409. <code>task_200707121733_0003_m_000005</code> , which represents the
  55410. fifth map task in the third job running at the jobtracker
  55411. started at <code>200707121733</code>.
  55412. <p>
  55413. Applications should never construct or parse TaskID strings
  55414. , but rather use appropriate constructors or {@link #forName(String)}
  55415. method.
  55416. @see JobID
  55417. @see TaskAttemptID]]>
  55418. </doc>
  55419. </class>
  55420. <!-- end class org.apache.hadoop.mapred.TaskID -->
  55421. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  55422. <class name="TaskLog" extends="java.lang.Object"
  55423. abstract="false"
  55424. static="false" final="false" visibility="public"
  55425. deprecated="not deprecated">
  55426. <constructor name="TaskLog"
  55427. static="false" final="false" visibility="public"
  55428. deprecated="not deprecated">
  55429. </constructor>
  55430. <method name="createTaskAttemptLogDir"
  55431. abstract="false" native="false" synchronized="false"
  55432. static="true" final="false" visibility="public"
  55433. deprecated="not deprecated">
  55434. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55435. <param name="isCleanup" type="boolean"/>
  55436. <param name="localDirs" type="java.lang.String[]"/>
  55437. <exception name="IOException" type="java.io.IOException"/>
  55438. <doc>
  55439. <![CDATA[Create log directory for the given attempt. This involves creating the
  55440. following and setting proper permissions for the new directories
  55441. <br>{hadoop.log.dir}/userlogs/<jobid>
  55442. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  55443. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  55444. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  55445. @param taskID attempt-id for which log dir is to be created
  55446. @param isCleanup Is this attempt a cleanup attempt ?
  55447. @param localDirs mapred local directories
  55448. @throws IOException]]>
  55449. </doc>
  55450. </method>
  55451. <method name="getTaskAttemptLogDir" return="java.lang.String"
  55452. abstract="false" native="false" synchronized="false"
  55453. static="true" final="false" visibility="public"
  55454. deprecated="not deprecated">
  55455. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55456. <param name="cleanupSuffix" type="java.lang.String"/>
  55457. <param name="localDirs" type="java.lang.String[]"/>
  55458. <exception name="IOException" type="java.io.IOException"/>
  55459. <doc>
  55460. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  55461. selected mapred local directory.
  55462. @param taskID attempt-id for which log dir path is needed
  55463. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  55464. @param localDirs mapred local directories
  55465. @return target task attempt log directory
  55466. @throws IOException]]>
  55467. </doc>
  55468. </method>
  55469. <method name="getTaskLogFile" return="java.io.File"
  55470. abstract="false" native="false" synchronized="false"
  55471. static="true" final="false" visibility="public"
  55472. deprecated="not deprecated">
  55473. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55474. <param name="isCleanup" type="boolean"/>
  55475. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  55476. </method>
  55477. <method name="getBaseLogDir" return="java.lang.String"
  55478. abstract="false" native="false" synchronized="false"
  55479. static="true" final="false" visibility="public"
  55480. deprecated="not deprecated">
  55481. </method>
  55482. <method name="syncLogs"
  55483. abstract="false" native="false" synchronized="true"
  55484. static="true" final="false" visibility="public"
  55485. deprecated="not deprecated">
  55486. <param name="logLocation" type="java.lang.String"/>
  55487. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55488. <param name="isCleanup" type="boolean"/>
  55489. <param name="segmented" type="boolean"/>
  55490. <exception name="IOException" type="java.io.IOException"/>
  55491. </method>
  55492. <method name="getTaskLogLength" return="long"
  55493. abstract="false" native="false" synchronized="false"
  55494. static="true" final="false" visibility="public"
  55495. deprecated="not deprecated">
  55496. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55497. <doc>
  55498. <![CDATA[Get the desired maximum length of task's logs.
  55499. @param conf the job to look in
  55500. @return the number of bytes to cap the log files at]]>
  55501. </doc>
  55502. </method>
  55503. <method name="captureOutAndError" return="java.util.List"
  55504. abstract="false" native="false" synchronized="false"
  55505. static="true" final="false" visibility="public"
  55506. deprecated="not deprecated">
  55507. <param name="cmd" type="java.util.List"/>
  55508. <param name="stdoutFilename" type="java.io.File"/>
  55509. <param name="stderrFilename" type="java.io.File"/>
  55510. <param name="tailLength" type="long"/>
  55511. <exception name="IOException" type="java.io.IOException"/>
  55512. <doc>
  55513. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55514. If the tailLength is 0, the entire output will be saved.
  55515. @param cmd The command and the arguments that should be run
  55516. @param stdoutFilename The filename that stdout should be saved to
  55517. @param stderrFilename The filename that stderr should be saved to
  55518. @param tailLength The length of the tail to be saved.
  55519. @return the modified command that should be run]]>
  55520. </doc>
  55521. </method>
  55522. <method name="captureOutAndError" return="java.util.List"
  55523. abstract="false" native="false" synchronized="false"
  55524. static="true" final="false" visibility="public"
  55525. deprecated="not deprecated">
  55526. <param name="setup" type="java.util.List"/>
  55527. <param name="cmd" type="java.util.List"/>
  55528. <param name="stdoutFilename" type="java.io.File"/>
  55529. <param name="stderrFilename" type="java.io.File"/>
  55530. <param name="tailLength" type="long"/>
  55531. <exception name="IOException" type="java.io.IOException"/>
  55532. <doc>
  55533. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55534. Setup commands such as setting memory limit can be passed which
  55535. will be executed before exec.
  55536. If the tailLength is 0, the entire output will be saved.
  55537. @param setup The setup commands for the execed process.
  55538. @param cmd The command and the arguments that should be run
  55539. @param stdoutFilename The filename that stdout should be saved to
  55540. @param stderrFilename The filename that stderr should be saved to
  55541. @param tailLength The length of the tail to be saved.
  55542. @return the modified command that should be run]]>
  55543. </doc>
  55544. </method>
  55545. <method name="captureOutAndError" return="java.util.List"
  55546. abstract="false" native="false" synchronized="false"
  55547. static="true" final="false" visibility="public"
  55548. deprecated="pidFiles are no more used. Instead pid is exported to
  55549. env variable JVM_PID.">
  55550. <param name="setup" type="java.util.List"/>
  55551. <param name="cmd" type="java.util.List"/>
  55552. <param name="stdoutFilename" type="java.io.File"/>
  55553. <param name="stderrFilename" type="java.io.File"/>
  55554. <param name="tailLength" type="long"/>
  55555. <param name="pidFileName" type="java.lang.String"/>
  55556. <exception name="IOException" type="java.io.IOException"/>
  55557. <doc>
  55558. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55559. Setup commands such as setting memory limit can be passed which
  55560. will be executed before exec.
  55561. If the tailLength is 0, the entire output will be saved.
  55562. @param setup The setup commands for the execed process.
  55563. @param cmd The command and the arguments that should be run
  55564. @param stdoutFilename The filename that stdout should be saved to
  55565. @param stderrFilename The filename that stderr should be saved to
  55566. @param tailLength The length of the tail to be saved.
  55567. @deprecated pidFiles are no more used. Instead pid is exported to
  55568. env variable JVM_PID.
  55569. @return the modified command that should be run]]>
  55570. </doc>
  55571. </method>
  55572. <method name="captureOutAndError" return="java.util.List"
  55573. abstract="false" native="false" synchronized="false"
  55574. static="true" final="false" visibility="public"
  55575. deprecated="pidFiles are no more used. Instead pid is exported to
  55576. env variable JVM_PID.">
  55577. <param name="setup" type="java.util.List"/>
  55578. <param name="cmd" type="java.util.List"/>
  55579. <param name="stdoutFilename" type="java.io.File"/>
  55580. <param name="stderrFilename" type="java.io.File"/>
  55581. <param name="tailLength" type="long"/>
  55582. <param name="useSetsid" type="boolean"/>
  55583. <param name="pidFileName" type="java.lang.String"/>
  55584. <exception name="IOException" type="java.io.IOException"/>
  55585. <doc>
  55586. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55587. Setup commands such as setting memory limit can be passed which
  55588. will be executed before exec.
  55589. If the tailLength is 0, the entire output will be saved.
  55590. @param setup The setup commands for the execed process.
  55591. @param cmd The command and the arguments that should be run
  55592. @param stdoutFilename The filename that stdout should be saved to
  55593. @param stderrFilename The filename that stderr should be saved to
  55594. @param tailLength The length of the tail to be saved.
  55595. @param useSetsid Should setsid be used in the command or not.
  55596. @deprecated pidFiles are no more used. Instead pid is exported to
  55597. env variable JVM_PID.
  55598. @return the modified command that should be run]]>
  55599. </doc>
  55600. </method>
  55601. <method name="captureOutAndError" return="java.util.List"
  55602. abstract="false" native="false" synchronized="false"
  55603. static="true" final="false" visibility="public"
  55604. deprecated="not deprecated">
  55605. <param name="setup" type="java.util.List"/>
  55606. <param name="cmd" type="java.util.List"/>
  55607. <param name="stdoutFilename" type="java.io.File"/>
  55608. <param name="stderrFilename" type="java.io.File"/>
  55609. <param name="tailLength" type="long"/>
  55610. <param name="useSetsid" type="boolean"/>
  55611. <exception name="IOException" type="java.io.IOException"/>
  55612. <doc>
  55613. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55614. Setup commands such as setting memory limit can be passed which
  55615. will be executed before exec.
  55616. If the tailLength is 0, the entire output will be saved.
  55617. @param setup The setup commands for the execed process.
  55618. @param cmd The command and the arguments that should be run
  55619. @param stdoutFilename The filename that stdout should be saved to
  55620. @param stderrFilename The filename that stderr should be saved to
  55621. @param tailLength The length of the tail to be saved.
  55622. @param useSetsid Should setsid be used in the command or not.
  55623. @return the modified command that should be run]]>
  55624. </doc>
  55625. </method>
  55626. <method name="addCommand" return="java.lang.String"
  55627. abstract="false" native="false" synchronized="false"
  55628. static="true" final="false" visibility="public"
  55629. deprecated="not deprecated">
  55630. <param name="cmd" type="java.util.List"/>
  55631. <param name="isExecutable" type="boolean"/>
  55632. <exception name="IOException" type="java.io.IOException"/>
  55633. <doc>
  55634. <![CDATA[Add quotes to each of the command strings and
  55635. return as a single string
  55636. @param cmd The command to be quoted
  55637. @param isExecutable makes shell path if the first
  55638. argument is executable
  55639. @return returns The quoted string.
  55640. @throws IOException]]>
  55641. </doc>
  55642. </method>
  55643. <method name="captureDebugOut" return="java.util.List"
  55644. abstract="false" native="false" synchronized="false"
  55645. static="true" final="false" visibility="public"
  55646. deprecated="not deprecated">
  55647. <param name="cmd" type="java.util.List"/>
  55648. <param name="debugoutFilename" type="java.io.File"/>
  55649. <exception name="IOException" type="java.io.IOException"/>
  55650. <doc>
  55651. <![CDATA[Wrap a command in a shell to capture debug script's
  55652. stdout and stderr to debugout.
  55653. @param cmd The command and the arguments that should be run
  55654. @param debugoutFilename The filename that stdout and stderr
  55655. should be saved to.
  55656. @return the modified command that should be run
  55657. @throws IOException]]>
  55658. </doc>
  55659. </method>
  55660. <method name="getUserLogDir" return="java.io.File"
  55661. abstract="false" native="false" synchronized="false"
  55662. static="true" final="false" visibility="public"
  55663. deprecated="not deprecated">
  55664. </method>
  55665. <method name="getJobDir" return="java.io.File"
  55666. abstract="false" native="false" synchronized="false"
  55667. static="true" final="false" visibility="public"
  55668. deprecated="not deprecated">
  55669. <param name="jobid" type="java.lang.String"/>
  55670. <doc>
  55671. <![CDATA[Get the user log directory for the job jobid.
  55672. @param jobid string representation of the jobid
  55673. @return user log directory for the job]]>
  55674. </doc>
  55675. </method>
  55676. <method name="getJobDir" return="java.io.File"
  55677. abstract="false" native="false" synchronized="false"
  55678. static="true" final="false" visibility="public"
  55679. deprecated="not deprecated">
  55680. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  55681. <doc>
  55682. <![CDATA[Get the user log directory for the job jobid.
  55683. @param jobid the jobid object
  55684. @return user log directory for the job]]>
  55685. </doc>
  55686. </method>
  55687. <doc>
  55688. <![CDATA[A simple logger to handle the task-specific user logs.
  55689. This class uses the system property <code>hadoop.log.dir</code>.
  55690. This class is for Map/Reduce internal use only.]]>
  55691. </doc>
  55692. </class>
  55693. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  55694. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  55695. <class name="TaskLog.LogName" extends="java.lang.Enum"
  55696. abstract="false"
  55697. static="true" final="true" visibility="public"
  55698. deprecated="not deprecated">
  55699. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  55700. abstract="false" native="false" synchronized="false"
  55701. static="true" final="false" visibility="public"
  55702. deprecated="not deprecated">
  55703. </method>
  55704. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  55705. abstract="false" native="false" synchronized="false"
  55706. static="true" final="false" visibility="public"
  55707. deprecated="not deprecated">
  55708. <param name="name" type="java.lang.String"/>
  55709. </method>
  55710. <method name="toString" return="java.lang.String"
  55711. abstract="false" native="false" synchronized="false"
  55712. static="false" final="false" visibility="public"
  55713. deprecated="not deprecated">
  55714. </method>
  55715. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55716. transient="false" volatile="false"
  55717. static="true" final="true" visibility="public"
  55718. deprecated="not deprecated">
  55719. <doc>
  55720. <![CDATA[Log on the stdout of the task.]]>
  55721. </doc>
  55722. </field>
  55723. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55724. transient="false" volatile="false"
  55725. static="true" final="true" visibility="public"
  55726. deprecated="not deprecated">
  55727. <doc>
  55728. <![CDATA[Log on the stderr of the task.]]>
  55729. </doc>
  55730. </field>
  55731. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55732. transient="false" volatile="false"
  55733. static="true" final="true" visibility="public"
  55734. deprecated="not deprecated">
  55735. <doc>
  55736. <![CDATA[Log on the map-reduce system logs of the task.]]>
  55737. </doc>
  55738. </field>
  55739. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55740. transient="false" volatile="false"
  55741. static="true" final="true" visibility="public"
  55742. deprecated="not deprecated">
  55743. <doc>
  55744. <![CDATA[The java profiler information.]]>
  55745. </doc>
  55746. </field>
  55747. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55748. transient="false" volatile="false"
  55749. static="true" final="true" visibility="public"
  55750. deprecated="not deprecated">
  55751. <doc>
  55752. <![CDATA[Log the debug script's stdout]]>
  55753. </doc>
  55754. </field>
  55755. <doc>
  55756. <![CDATA[The filter for userlogs.]]>
  55757. </doc>
  55758. </class>
  55759. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  55760. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  55761. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  55762. abstract="false"
  55763. static="false" final="false" visibility="public"
  55764. deprecated="not deprecated">
  55765. <constructor name="TaskLogAppender"
  55766. static="false" final="false" visibility="public"
  55767. deprecated="not deprecated">
  55768. </constructor>
  55769. <method name="activateOptions"
  55770. abstract="false" native="false" synchronized="false"
  55771. static="false" final="false" visibility="public"
  55772. deprecated="not deprecated">
  55773. </method>
  55774. <method name="append"
  55775. abstract="false" native="false" synchronized="false"
  55776. static="false" final="false" visibility="public"
  55777. deprecated="not deprecated">
  55778. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  55779. </method>
  55780. <method name="flush"
  55781. abstract="false" native="false" synchronized="false"
  55782. static="false" final="false" visibility="public"
  55783. deprecated="not deprecated">
  55784. </method>
  55785. <method name="close"
  55786. abstract="false" native="false" synchronized="true"
  55787. static="false" final="false" visibility="public"
  55788. deprecated="not deprecated">
  55789. </method>
  55790. <method name="getTaskId" return="java.lang.String"
  55791. abstract="false" native="false" synchronized="false"
  55792. static="false" final="false" visibility="public"
  55793. deprecated="not deprecated">
  55794. <doc>
  55795. <![CDATA[Getter/Setter methods for log4j.]]>
  55796. </doc>
  55797. </method>
  55798. <method name="setTaskId"
  55799. abstract="false" native="false" synchronized="false"
  55800. static="false" final="false" visibility="public"
  55801. deprecated="not deprecated">
  55802. <param name="taskId" type="java.lang.String"/>
  55803. </method>
  55804. <method name="getTotalLogFileSize" return="long"
  55805. abstract="false" native="false" synchronized="false"
  55806. static="false" final="false" visibility="public"
  55807. deprecated="not deprecated">
  55808. </method>
  55809. <method name="setTotalLogFileSize"
  55810. abstract="false" native="false" synchronized="false"
  55811. static="false" final="false" visibility="public"
  55812. deprecated="not deprecated">
  55813. <param name="logSize" type="long"/>
  55814. </method>
  55815. <method name="setIsCleanup"
  55816. abstract="false" native="false" synchronized="false"
  55817. static="false" final="false" visibility="public"
  55818. deprecated="not deprecated">
  55819. <param name="isCleanup" type="boolean"/>
  55820. <doc>
  55821. <![CDATA[Set whether the task is a cleanup attempt or not.
  55822. @param isCleanup
  55823. true if the task is cleanup attempt, false otherwise.]]>
  55824. </doc>
  55825. </method>
  55826. <method name="getIsCleanup" return="boolean"
  55827. abstract="false" native="false" synchronized="false"
  55828. static="false" final="false" visibility="public"
  55829. deprecated="not deprecated">
  55830. <doc>
  55831. <![CDATA[Get whether task is cleanup attempt or not.
  55832. @return true if the task is cleanup attempt, false otherwise.]]>
  55833. </doc>
  55834. </method>
  55835. <doc>
  55836. <![CDATA[A simple log4j-appender for the task child's
  55837. map-reduce system logs.]]>
  55838. </doc>
  55839. </class>
  55840. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  55841. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  55842. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  55843. abstract="false"
  55844. static="false" final="false" visibility="public"
  55845. deprecated="not deprecated">
  55846. <constructor name="TaskLogServlet"
  55847. static="false" final="false" visibility="public"
  55848. deprecated="not deprecated">
  55849. </constructor>
  55850. <method name="getTaskLogUrl" return="java.lang.String"
  55851. abstract="false" native="false" synchronized="false"
  55852. static="true" final="false" visibility="public"
  55853. deprecated="not deprecated">
  55854. <param name="taskTrackerHostName" type="java.lang.String"/>
  55855. <param name="httpPort" type="java.lang.String"/>
  55856. <param name="taskAttemptID" type="java.lang.String"/>
  55857. <doc>
  55858. <![CDATA[Construct the taskLogUrl
  55859. @param taskTrackerHostName
  55860. @param httpPort
  55861. @param taskAttemptID
  55862. @return the taskLogUrl]]>
  55863. </doc>
  55864. </method>
  55865. <method name="doGet"
  55866. abstract="false" native="false" synchronized="false"
  55867. static="false" final="false" visibility="public"
  55868. deprecated="not deprecated">
  55869. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55870. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55871. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55872. <exception name="IOException" type="java.io.IOException"/>
  55873. <doc>
  55874. <![CDATA[Get the logs via http.]]>
  55875. </doc>
  55876. </method>
  55877. <doc>
  55878. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  55879. </doc>
  55880. </class>
  55881. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  55882. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  55883. <class name="TaskLogsTruncater" extends="java.lang.Object"
  55884. abstract="false"
  55885. static="false" final="false" visibility="public"
  55886. deprecated="not deprecated">
  55887. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  55888. static="false" final="false" visibility="public"
  55889. deprecated="not deprecated">
  55890. </constructor>
  55891. <method name="shouldTruncateLogs" return="boolean"
  55892. abstract="false" native="false" synchronized="false"
  55893. static="false" final="false" visibility="public"
  55894. deprecated="not deprecated">
  55895. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  55896. <exception name="IOException" type="java.io.IOException"/>
  55897. <doc>
  55898. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  55899. particular JVM
  55900. @param lInfo
  55901. @return is truncation required?
  55902. @throws IOException]]>
  55903. </doc>
  55904. </method>
  55905. <method name="truncateLogs"
  55906. abstract="false" native="false" synchronized="false"
  55907. static="false" final="false" visibility="public"
  55908. deprecated="not deprecated">
  55909. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  55910. <doc>
  55911. <![CDATA[Process the removed task's logs. This involves truncating them to
  55912. retainSize.]]>
  55913. </doc>
  55914. </method>
  55915. <method name="main"
  55916. abstract="false" native="false" synchronized="false"
  55917. static="true" final="false" visibility="public"
  55918. deprecated="not deprecated">
  55919. <param name="args" type="java.lang.String[]"/>
  55920. <exception name="IOException" type="java.io.IOException"/>
  55921. </method>
  55922. <doc>
  55923. <![CDATA[The class for truncating the user logs.
  55924. Should be used only by {@link UserLogManager}.]]>
  55925. </doc>
  55926. </class>
  55927. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  55928. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  55929. <class name="TaskReport" extends="java.lang.Object"
  55930. abstract="false"
  55931. static="false" final="false" visibility="public"
  55932. deprecated="not deprecated">
  55933. <implements name="org.apache.hadoop.io.Writable"/>
  55934. <constructor name="TaskReport"
  55935. static="false" final="false" visibility="public"
  55936. deprecated="not deprecated">
  55937. </constructor>
  55938. <method name="getTaskId" return="java.lang.String"
  55939. abstract="false" native="false" synchronized="false"
  55940. static="false" final="false" visibility="public"
  55941. deprecated="use {@link #getTaskID()} instead">
  55942. <doc>
  55943. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  55944. </doc>
  55945. </method>
  55946. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  55947. abstract="false" native="false" synchronized="false"
  55948. static="false" final="false" visibility="public"
  55949. deprecated="not deprecated">
  55950. <doc>
  55951. <![CDATA[The id of the task.]]>
  55952. </doc>
  55953. </method>
  55954. <method name="getProgress" return="float"
  55955. abstract="false" native="false" synchronized="false"
  55956. static="false" final="false" visibility="public"
  55957. deprecated="not deprecated">
  55958. <doc>
  55959. <![CDATA[The amount completed, between zero and one.]]>
  55960. </doc>
  55961. </method>
  55962. <method name="getState" return="java.lang.String"
  55963. abstract="false" native="false" synchronized="false"
  55964. static="false" final="false" visibility="public"
  55965. deprecated="not deprecated">
  55966. <doc>
  55967. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  55968. </doc>
  55969. </method>
  55970. <method name="getDiagnostics" return="java.lang.String[]"
  55971. abstract="false" native="false" synchronized="false"
  55972. static="false" final="false" visibility="public"
  55973. deprecated="not deprecated">
  55974. <doc>
  55975. <![CDATA[A list of error messages.]]>
  55976. </doc>
  55977. </method>
  55978. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  55979. abstract="false" native="false" synchronized="false"
  55980. static="false" final="false" visibility="public"
  55981. deprecated="not deprecated">
  55982. <doc>
  55983. <![CDATA[A table of counters.]]>
  55984. </doc>
  55985. </method>
  55986. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  55987. abstract="false" native="false" synchronized="false"
  55988. static="false" final="false" visibility="public"
  55989. deprecated="not deprecated">
  55990. <doc>
  55991. <![CDATA[The current status]]>
  55992. </doc>
  55993. </method>
  55994. <method name="getFinishTime" return="long"
  55995. abstract="false" native="false" synchronized="false"
  55996. static="false" final="false" visibility="public"
  55997. deprecated="not deprecated">
  55998. <doc>
  55999. <![CDATA[Get finish time of task.
  56000. @return 0, if finish time was not set else returns finish time.]]>
  56001. </doc>
  56002. </method>
  56003. <method name="getStartTime" return="long"
  56004. abstract="false" native="false" synchronized="false"
  56005. static="false" final="false" visibility="public"
  56006. deprecated="not deprecated">
  56007. <doc>
  56008. <![CDATA[Get start time of task.
  56009. @return 0 if start time was not set, else start time.]]>
  56010. </doc>
  56011. </method>
  56012. <method name="setSuccessfulAttempt"
  56013. abstract="false" native="false" synchronized="false"
  56014. static="false" final="false" visibility="public"
  56015. deprecated="not deprecated">
  56016. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56017. <doc>
  56018. <![CDATA[set successful attempt ID of the task.]]>
  56019. </doc>
  56020. </method>
  56021. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  56022. abstract="false" native="false" synchronized="false"
  56023. static="false" final="false" visibility="public"
  56024. deprecated="not deprecated">
  56025. <doc>
  56026. <![CDATA[Get the attempt ID that took this task to completion]]>
  56027. </doc>
  56028. </method>
  56029. <method name="setRunningTaskAttempts"
  56030. abstract="false" native="false" synchronized="false"
  56031. static="false" final="false" visibility="public"
  56032. deprecated="not deprecated">
  56033. <param name="runningAttempts" type="java.util.Collection"/>
  56034. <doc>
  56035. <![CDATA[set running attempt(s) of the task.]]>
  56036. </doc>
  56037. </method>
  56038. <method name="getRunningTaskAttempts" return="java.util.Collection"
  56039. abstract="false" native="false" synchronized="false"
  56040. static="false" final="false" visibility="public"
  56041. deprecated="not deprecated">
  56042. <doc>
  56043. <![CDATA[Get the running task attempt IDs for this task]]>
  56044. </doc>
  56045. </method>
  56046. <method name="equals" return="boolean"
  56047. abstract="false" native="false" synchronized="false"
  56048. static="false" final="false" visibility="public"
  56049. deprecated="not deprecated">
  56050. <param name="o" type="java.lang.Object"/>
  56051. </method>
  56052. <method name="hashCode" return="int"
  56053. abstract="false" native="false" synchronized="false"
  56054. static="false" final="false" visibility="public"
  56055. deprecated="not deprecated">
  56056. </method>
  56057. <method name="write"
  56058. abstract="false" native="false" synchronized="false"
  56059. static="false" final="false" visibility="public"
  56060. deprecated="not deprecated">
  56061. <param name="out" type="java.io.DataOutput"/>
  56062. <exception name="IOException" type="java.io.IOException"/>
  56063. </method>
  56064. <method name="readFields"
  56065. abstract="false" native="false" synchronized="false"
  56066. static="false" final="false" visibility="public"
  56067. deprecated="not deprecated">
  56068. <param name="in" type="java.io.DataInput"/>
  56069. <exception name="IOException" type="java.io.IOException"/>
  56070. </method>
  56071. <doc>
  56072. <![CDATA[A report on the state of a task.]]>
  56073. </doc>
  56074. </class>
  56075. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  56076. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  56077. <class name="TaskStatus" extends="java.lang.Object"
  56078. abstract="true"
  56079. static="false" final="false" visibility="public"
  56080. deprecated="not deprecated">
  56081. <implements name="org.apache.hadoop.io.Writable"/>
  56082. <implements name="java.lang.Cloneable"/>
  56083. <constructor name="TaskStatus"
  56084. static="false" final="false" visibility="public"
  56085. deprecated="not deprecated">
  56086. </constructor>
  56087. <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"
  56088. static="false" final="false" visibility="public"
  56089. deprecated="not deprecated">
  56090. </constructor>
  56091. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  56092. abstract="false" native="false" synchronized="false"
  56093. static="false" final="false" visibility="public"
  56094. deprecated="not deprecated">
  56095. </method>
  56096. <method name="getIsMap" return="boolean"
  56097. abstract="true" native="false" synchronized="false"
  56098. static="false" final="false" visibility="public"
  56099. deprecated="not deprecated">
  56100. </method>
  56101. <method name="getNumSlots" return="int"
  56102. abstract="false" native="false" synchronized="false"
  56103. static="false" final="false" visibility="public"
  56104. deprecated="not deprecated">
  56105. </method>
  56106. <method name="getProgress" return="float"
  56107. abstract="false" native="false" synchronized="false"
  56108. static="false" final="false" visibility="public"
  56109. deprecated="not deprecated">
  56110. </method>
  56111. <method name="setProgress"
  56112. abstract="false" native="false" synchronized="false"
  56113. static="false" final="false" visibility="public"
  56114. deprecated="not deprecated">
  56115. <param name="progress" type="float"/>
  56116. </method>
  56117. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  56118. abstract="false" native="false" synchronized="false"
  56119. static="false" final="false" visibility="public"
  56120. deprecated="not deprecated">
  56121. </method>
  56122. <method name="getTaskTracker" return="java.lang.String"
  56123. abstract="false" native="false" synchronized="false"
  56124. static="false" final="false" visibility="public"
  56125. deprecated="not deprecated">
  56126. </method>
  56127. <method name="setTaskTracker"
  56128. abstract="false" native="false" synchronized="false"
  56129. static="false" final="false" visibility="public"
  56130. deprecated="not deprecated">
  56131. <param name="tracker" type="java.lang.String"/>
  56132. </method>
  56133. <method name="setRunState"
  56134. abstract="false" native="false" synchronized="false"
  56135. static="false" final="false" visibility="public"
  56136. deprecated="not deprecated">
  56137. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  56138. </method>
  56139. <method name="getDiagnosticInfo" return="java.lang.String"
  56140. abstract="false" native="false" synchronized="false"
  56141. static="false" final="false" visibility="public"
  56142. deprecated="not deprecated">
  56143. </method>
  56144. <method name="setDiagnosticInfo"
  56145. abstract="false" native="false" synchronized="false"
  56146. static="false" final="false" visibility="public"
  56147. deprecated="not deprecated">
  56148. <param name="info" type="java.lang.String"/>
  56149. </method>
  56150. <method name="getStateString" return="java.lang.String"
  56151. abstract="false" native="false" synchronized="false"
  56152. static="false" final="false" visibility="public"
  56153. deprecated="not deprecated">
  56154. </method>
  56155. <method name="setStateString"
  56156. abstract="false" native="false" synchronized="false"
  56157. static="false" final="false" visibility="public"
  56158. deprecated="not deprecated">
  56159. <param name="stateString" type="java.lang.String"/>
  56160. </method>
  56161. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  56162. abstract="false" native="false" synchronized="false"
  56163. static="false" final="false" visibility="public"
  56164. deprecated="not deprecated">
  56165. <doc>
  56166. <![CDATA[Get the next record range which is going to be processed by Task.
  56167. @return nextRecordRange]]>
  56168. </doc>
  56169. </method>
  56170. <method name="setNextRecordRange"
  56171. abstract="false" native="false" synchronized="false"
  56172. static="false" final="false" visibility="public"
  56173. deprecated="not deprecated">
  56174. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  56175. <doc>
  56176. <![CDATA[Set the next record range which is going to be processed by Task.
  56177. @param nextRecordRange]]>
  56178. </doc>
  56179. </method>
  56180. <method name="getFinishTime" return="long"
  56181. abstract="false" native="false" synchronized="false"
  56182. static="false" final="false" visibility="public"
  56183. deprecated="not deprecated">
  56184. <doc>
  56185. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  56186. are not set before, these are set to finishTime. It takes care of
  56187. the case when shuffle, sort and finish are completed with in the
  56188. heartbeat interval and are not reported separately. if task state is
  56189. TaskStatus.FAILED then finish time represents when the task failed.
  56190. @return finish time of the task.]]>
  56191. </doc>
  56192. </method>
  56193. <method name="getShuffleFinishTime" return="long"
  56194. abstract="false" native="false" synchronized="false"
  56195. static="false" final="false" visibility="public"
  56196. deprecated="not deprecated">
  56197. <doc>
  56198. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  56199. not set due to shuffle/sort/finish phases ending within same
  56200. heartbeat interval, it is set to finish time of next phase i.e. sort
  56201. or task finish when these are set.
  56202. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  56203. it returns approximate shuffle finish time.]]>
  56204. </doc>
  56205. </method>
  56206. <method name="getSortFinishTime" return="long"
  56207. abstract="false" native="false" synchronized="false"
  56208. static="false" final="false" visibility="public"
  56209. deprecated="not deprecated">
  56210. <doc>
  56211. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  56212. due to sort and reduce phase finishing in same heartebat interval, it is
  56213. set to finish time, when finish time is set.
  56214. @return 0 if sort finish time and finish time are not set, else returns sort
  56215. finish time if that is set, else it returns finish time.]]>
  56216. </doc>
  56217. </method>
  56218. <method name="getStartTime" return="long"
  56219. abstract="false" native="false" synchronized="false"
  56220. static="false" final="false" visibility="public"
  56221. deprecated="not deprecated">
  56222. <doc>
  56223. <![CDATA[Get start time of the task.
  56224. @return 0 is start time is not set, else returns start time.]]>
  56225. </doc>
  56226. </method>
  56227. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56228. abstract="false" native="false" synchronized="false"
  56229. static="false" final="false" visibility="public"
  56230. deprecated="not deprecated">
  56231. <doc>
  56232. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  56233. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  56234. @return .]]>
  56235. </doc>
  56236. </method>
  56237. <method name="getIncludeCounters" return="boolean"
  56238. abstract="false" native="false" synchronized="false"
  56239. static="false" final="false" visibility="public"
  56240. deprecated="not deprecated">
  56241. </method>
  56242. <method name="setIncludeCounters"
  56243. abstract="false" native="false" synchronized="false"
  56244. static="false" final="false" visibility="public"
  56245. deprecated="not deprecated">
  56246. <param name="send" type="boolean"/>
  56247. </method>
  56248. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  56249. abstract="false" native="false" synchronized="false"
  56250. static="false" final="false" visibility="public"
  56251. deprecated="not deprecated">
  56252. <doc>
  56253. <![CDATA[Get task's counters.]]>
  56254. </doc>
  56255. </method>
  56256. <method name="setCounters"
  56257. abstract="false" native="false" synchronized="false"
  56258. static="false" final="false" visibility="public"
  56259. deprecated="not deprecated">
  56260. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  56261. <doc>
  56262. <![CDATA[Set the task's counters.
  56263. @param counters]]>
  56264. </doc>
  56265. </method>
  56266. <method name="getOutputSize" return="long"
  56267. abstract="false" native="false" synchronized="false"
  56268. static="false" final="false" visibility="public"
  56269. deprecated="not deprecated">
  56270. <doc>
  56271. <![CDATA[Returns the number of bytes of output from this map.]]>
  56272. </doc>
  56273. </method>
  56274. <method name="getFetchFailedMaps" return="java.util.List"
  56275. abstract="false" native="false" synchronized="false"
  56276. static="false" final="false" visibility="public"
  56277. deprecated="not deprecated">
  56278. <doc>
  56279. <![CDATA[Get the list of maps from which output-fetches failed.
  56280. @return the list of maps from which output-fetches failed.]]>
  56281. </doc>
  56282. </method>
  56283. <method name="clone" return="java.lang.Object"
  56284. abstract="false" native="false" synchronized="false"
  56285. static="false" final="false" visibility="public"
  56286. deprecated="not deprecated">
  56287. </method>
  56288. <method name="write"
  56289. abstract="false" native="false" synchronized="false"
  56290. static="false" final="false" visibility="public"
  56291. deprecated="not deprecated">
  56292. <param name="out" type="java.io.DataOutput"/>
  56293. <exception name="IOException" type="java.io.IOException"/>
  56294. </method>
  56295. <method name="readFields"
  56296. abstract="false" native="false" synchronized="false"
  56297. static="false" final="false" visibility="public"
  56298. deprecated="not deprecated">
  56299. <param name="in" type="java.io.DataInput"/>
  56300. <exception name="IOException" type="java.io.IOException"/>
  56301. </method>
  56302. <doc>
  56303. <![CDATA[Describes the current status of a task. This is
  56304. not intended to be a comprehensive piece of data.]]>
  56305. </doc>
  56306. </class>
  56307. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  56308. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56309. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  56310. abstract="false"
  56311. static="true" final="true" visibility="public"
  56312. deprecated="not deprecated">
  56313. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  56314. abstract="false" native="false" synchronized="false"
  56315. static="true" final="false" visibility="public"
  56316. deprecated="not deprecated">
  56317. </method>
  56318. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56319. abstract="false" native="false" synchronized="false"
  56320. static="true" final="false" visibility="public"
  56321. deprecated="not deprecated">
  56322. <param name="name" type="java.lang.String"/>
  56323. </method>
  56324. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56325. transient="false" volatile="false"
  56326. static="true" final="true" visibility="public"
  56327. deprecated="not deprecated">
  56328. </field>
  56329. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56330. transient="false" volatile="false"
  56331. static="true" final="true" visibility="public"
  56332. deprecated="not deprecated">
  56333. </field>
  56334. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56335. transient="false" volatile="false"
  56336. static="true" final="true" visibility="public"
  56337. deprecated="not deprecated">
  56338. </field>
  56339. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56340. transient="false" volatile="false"
  56341. static="true" final="true" visibility="public"
  56342. deprecated="not deprecated">
  56343. </field>
  56344. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56345. transient="false" volatile="false"
  56346. static="true" final="true" visibility="public"
  56347. deprecated="not deprecated">
  56348. </field>
  56349. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56350. transient="false" volatile="false"
  56351. static="true" final="true" visibility="public"
  56352. deprecated="not deprecated">
  56353. </field>
  56354. </class>
  56355. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56356. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  56357. <class name="TaskStatus.State" extends="java.lang.Enum"
  56358. abstract="false"
  56359. static="true" final="true" visibility="public"
  56360. deprecated="not deprecated">
  56361. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  56362. abstract="false" native="false" synchronized="false"
  56363. static="true" final="false" visibility="public"
  56364. deprecated="not deprecated">
  56365. </method>
  56366. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  56367. abstract="false" native="false" synchronized="false"
  56368. static="true" final="false" visibility="public"
  56369. deprecated="not deprecated">
  56370. <param name="name" type="java.lang.String"/>
  56371. </method>
  56372. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  56373. transient="false" volatile="false"
  56374. static="true" final="true" visibility="public"
  56375. deprecated="not deprecated">
  56376. </field>
  56377. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56378. transient="false" volatile="false"
  56379. static="true" final="true" visibility="public"
  56380. deprecated="not deprecated">
  56381. </field>
  56382. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56383. transient="false" volatile="false"
  56384. static="true" final="true" visibility="public"
  56385. deprecated="not deprecated">
  56386. </field>
  56387. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56388. transient="false" volatile="false"
  56389. static="true" final="true" visibility="public"
  56390. deprecated="not deprecated">
  56391. </field>
  56392. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56393. transient="false" volatile="false"
  56394. static="true" final="true" visibility="public"
  56395. deprecated="not deprecated">
  56396. </field>
  56397. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  56398. transient="false" volatile="false"
  56399. static="true" final="true" visibility="public"
  56400. deprecated="not deprecated">
  56401. </field>
  56402. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  56403. transient="false" volatile="false"
  56404. static="true" final="true" visibility="public"
  56405. deprecated="not deprecated">
  56406. </field>
  56407. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  56408. transient="false" volatile="false"
  56409. static="true" final="true" visibility="public"
  56410. deprecated="not deprecated">
  56411. </field>
  56412. </class>
  56413. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  56414. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  56415. <class name="TaskTracker" extends="java.lang.Object"
  56416. abstract="false"
  56417. static="false" final="false" visibility="public"
  56418. deprecated="not deprecated">
  56419. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  56420. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56421. <implements name="java.lang.Runnable"/>
  56422. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  56423. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  56424. static="false" final="false" visibility="public"
  56425. deprecated="not deprecated">
  56426. <exception name="IOException" type="java.io.IOException"/>
  56427. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56428. <doc>
  56429. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  56430. </doc>
  56431. </constructor>
  56432. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  56433. abstract="false" native="false" synchronized="false"
  56434. static="false" final="false" visibility="public"
  56435. deprecated="not deprecated">
  56436. </method>
  56437. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  56438. abstract="false" native="false" synchronized="false"
  56439. static="false" final="false" visibility="public"
  56440. deprecated="not deprecated">
  56441. </method>
  56442. <method name="getUserDir" return="java.lang.String"
  56443. abstract="false" native="false" synchronized="false"
  56444. static="true" final="false" visibility="public"
  56445. deprecated="not deprecated">
  56446. <param name="user" type="java.lang.String"/>
  56447. </method>
  56448. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  56449. abstract="false" native="false" synchronized="false"
  56450. static="true" final="false" visibility="public"
  56451. deprecated="not deprecated">
  56452. <param name="user" type="java.lang.String"/>
  56453. </method>
  56454. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  56455. abstract="false" native="false" synchronized="false"
  56456. static="true" final="false" visibility="public"
  56457. deprecated="not deprecated">
  56458. </method>
  56459. <method name="getJobCacheSubdir" return="java.lang.String"
  56460. abstract="false" native="false" synchronized="false"
  56461. static="true" final="false" visibility="public"
  56462. deprecated="not deprecated">
  56463. <param name="user" type="java.lang.String"/>
  56464. </method>
  56465. <method name="getLocalJobDir" return="java.lang.String"
  56466. abstract="false" native="false" synchronized="false"
  56467. static="true" final="false" visibility="public"
  56468. deprecated="not deprecated">
  56469. <param name="user" type="java.lang.String"/>
  56470. <param name="jobid" type="java.lang.String"/>
  56471. </method>
  56472. <method name="getJobJarFile" return="java.lang.String"
  56473. abstract="false" native="false" synchronized="false"
  56474. static="true" final="false" visibility="public"
  56475. deprecated="not deprecated">
  56476. <param name="user" type="java.lang.String"/>
  56477. <param name="jobid" type="java.lang.String"/>
  56478. </method>
  56479. <method name="getLocalTaskDir" return="java.lang.String"
  56480. abstract="false" native="false" synchronized="false"
  56481. static="true" final="false" visibility="public"
  56482. deprecated="not deprecated">
  56483. <param name="user" type="java.lang.String"/>
  56484. <param name="jobid" type="java.lang.String"/>
  56485. <param name="taskid" type="java.lang.String"/>
  56486. </method>
  56487. <method name="getLocalTaskDir" return="java.lang.String"
  56488. abstract="false" native="false" synchronized="false"
  56489. static="true" final="false" visibility="public"
  56490. deprecated="not deprecated">
  56491. <param name="user" type="java.lang.String"/>
  56492. <param name="jobid" type="java.lang.String"/>
  56493. <param name="taskid" type="java.lang.String"/>
  56494. <param name="isCleanupAttempt" type="boolean"/>
  56495. </method>
  56496. <method name="getProtocolVersion" return="long"
  56497. abstract="false" native="false" synchronized="false"
  56498. static="false" final="false" visibility="public"
  56499. deprecated="not deprecated">
  56500. <param name="protocol" type="java.lang.String"/>
  56501. <param name="clientVersion" type="long"/>
  56502. <exception name="IOException" type="java.io.IOException"/>
  56503. </method>
  56504. <method name="cleanupStorage"
  56505. abstract="false" native="false" synchronized="false"
  56506. static="false" final="false" visibility="public"
  56507. deprecated="not deprecated">
  56508. <exception name="IOException" type="java.io.IOException"/>
  56509. <doc>
  56510. <![CDATA[Removes all contents of temporary storage. Called upon
  56511. startup, to remove any leftovers from previous run.]]>
  56512. </doc>
  56513. </method>
  56514. <method name="launchTaskForJob"
  56515. abstract="false" native="false" synchronized="false"
  56516. static="false" final="false" visibility="protected"
  56517. deprecated="not deprecated">
  56518. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  56519. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  56520. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  56521. <exception name="IOException" type="java.io.IOException"/>
  56522. </method>
  56523. <method name="shutdown"
  56524. abstract="false" native="false" synchronized="true"
  56525. static="false" final="false" visibility="public"
  56526. deprecated="not deprecated">
  56527. <exception name="IOException" type="java.io.IOException"/>
  56528. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56529. </method>
  56530. <method name="close"
  56531. abstract="false" native="false" synchronized="true"
  56532. static="false" final="false" visibility="public"
  56533. deprecated="not deprecated">
  56534. <exception name="IOException" type="java.io.IOException"/>
  56535. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56536. <doc>
  56537. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  56538. any running tasks or threads, and cleanup disk space. A new TaskTracker
  56539. within the same process space might be restarted, so everything must be
  56540. clean.
  56541. @throws InterruptedException]]>
  56542. </doc>
  56543. </method>
  56544. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  56545. abstract="false" native="false" synchronized="false"
  56546. static="false" final="false" visibility="public"
  56547. deprecated="not deprecated">
  56548. <doc>
  56549. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  56550. for locating remote files.]]>
  56551. </doc>
  56552. </method>
  56553. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  56554. abstract="false" native="false" synchronized="true"
  56555. static="false" final="false" visibility="public"
  56556. deprecated="not deprecated">
  56557. <doc>
  56558. <![CDATA[Return the port at which the tasktracker bound to]]>
  56559. </doc>
  56560. </method>
  56561. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  56562. abstract="false" native="false" synchronized="false"
  56563. static="false" final="false" visibility="public"
  56564. deprecated="not deprecated">
  56565. </method>
  56566. <method name="run"
  56567. abstract="false" native="false" synchronized="false"
  56568. static="false" final="false" visibility="public"
  56569. deprecated="not deprecated">
  56570. <doc>
  56571. <![CDATA[The server retry loop.
  56572. This while-loop attempts to connect to the JobTracker. It only
  56573. loops when the old TaskTracker has gone bad (its state is
  56574. stale somehow) and we need to reinitialize everything.]]>
  56575. </doc>
  56576. </method>
  56577. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  56578. abstract="false" native="false" synchronized="true"
  56579. static="false" final="false" visibility="public"
  56580. deprecated="not deprecated">
  56581. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  56582. <exception name="IOException" type="java.io.IOException"/>
  56583. <doc>
  56584. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  56585. </doc>
  56586. </method>
  56587. <method name="statusUpdate" return="boolean"
  56588. abstract="false" native="false" synchronized="true"
  56589. static="false" final="false" visibility="public"
  56590. deprecated="not deprecated">
  56591. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56592. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  56593. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56594. <exception name="IOException" type="java.io.IOException"/>
  56595. <doc>
  56596. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  56597. </doc>
  56598. </method>
  56599. <method name="reportDiagnosticInfo"
  56600. abstract="false" native="false" synchronized="true"
  56601. static="false" final="false" visibility="public"
  56602. deprecated="not deprecated">
  56603. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56604. <param name="info" type="java.lang.String"/>
  56605. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56606. <exception name="IOException" type="java.io.IOException"/>
  56607. <doc>
  56608. <![CDATA[Called when the task dies before completion, and we want to report back
  56609. diagnostic info]]>
  56610. </doc>
  56611. </method>
  56612. <method name="reportNextRecordRange"
  56613. abstract="false" native="false" synchronized="true"
  56614. static="false" final="false" visibility="public"
  56615. deprecated="not deprecated">
  56616. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56617. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  56618. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56619. <exception name="IOException" type="java.io.IOException"/>
  56620. </method>
  56621. <method name="ping" return="boolean"
  56622. abstract="false" native="false" synchronized="true"
  56623. static="false" final="false" visibility="public"
  56624. deprecated="not deprecated">
  56625. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56626. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56627. <exception name="IOException" type="java.io.IOException"/>
  56628. <doc>
  56629. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  56630. </doc>
  56631. </method>
  56632. <method name="commitPending"
  56633. abstract="false" native="false" synchronized="true"
  56634. static="false" final="false" visibility="public"
  56635. deprecated="not deprecated">
  56636. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56637. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  56638. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56639. <exception name="IOException" type="java.io.IOException"/>
  56640. <doc>
  56641. <![CDATA[Task is reporting that it is in commit_pending
  56642. and it is waiting for the commit Response]]>
  56643. </doc>
  56644. </method>
  56645. <method name="canCommit" return="boolean"
  56646. abstract="false" native="false" synchronized="true"
  56647. static="false" final="false" visibility="public"
  56648. deprecated="not deprecated">
  56649. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56650. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56651. <exception name="IOException" type="java.io.IOException"/>
  56652. <doc>
  56653. <![CDATA[Child checking whether it can commit]]>
  56654. </doc>
  56655. </method>
  56656. <method name="done"
  56657. abstract="false" native="false" synchronized="true"
  56658. static="false" final="false" visibility="public"
  56659. deprecated="not deprecated">
  56660. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56661. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56662. <exception name="IOException" type="java.io.IOException"/>
  56663. <doc>
  56664. <![CDATA[The task is done.]]>
  56665. </doc>
  56666. </method>
  56667. <method name="shuffleError"
  56668. abstract="false" native="false" synchronized="true"
  56669. static="false" final="false" visibility="public"
  56670. deprecated="not deprecated">
  56671. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56672. <param name="message" type="java.lang.String"/>
  56673. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56674. <exception name="IOException" type="java.io.IOException"/>
  56675. <doc>
  56676. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  56677. </doc>
  56678. </method>
  56679. <method name="fsError"
  56680. abstract="false" native="false" synchronized="true"
  56681. static="false" final="false" visibility="public"
  56682. deprecated="not deprecated">
  56683. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56684. <param name="message" type="java.lang.String"/>
  56685. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56686. <exception name="IOException" type="java.io.IOException"/>
  56687. <doc>
  56688. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  56689. </doc>
  56690. </method>
  56691. <method name="fatalError"
  56692. abstract="false" native="false" synchronized="true"
  56693. static="false" final="false" visibility="public"
  56694. deprecated="not deprecated">
  56695. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56696. <param name="msg" type="java.lang.String"/>
  56697. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56698. <exception name="IOException" type="java.io.IOException"/>
  56699. <doc>
  56700. <![CDATA[A child task had a fatal error. Kill the task.]]>
  56701. </doc>
  56702. </method>
  56703. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  56704. abstract="false" native="false" synchronized="true"
  56705. static="false" final="false" visibility="public"
  56706. deprecated="not deprecated">
  56707. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  56708. <param name="fromEventId" type="int"/>
  56709. <param name="maxLocs" type="int"/>
  56710. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56711. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56712. <exception name="IOException" type="java.io.IOException"/>
  56713. </method>
  56714. <method name="mapOutputLost"
  56715. abstract="false" native="false" synchronized="true"
  56716. static="false" final="false" visibility="public"
  56717. deprecated="not deprecated">
  56718. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56719. <param name="errorMsg" type="java.lang.String"/>
  56720. <exception name="IOException" type="java.io.IOException"/>
  56721. <doc>
  56722. <![CDATA[A completed map task's output has been lost.]]>
  56723. </doc>
  56724. </method>
  56725. <method name="isIdle" return="boolean"
  56726. abstract="false" native="false" synchronized="true"
  56727. static="false" final="false" visibility="public"
  56728. deprecated="not deprecated">
  56729. <doc>
  56730. <![CDATA[Is this task tracker idle?
  56731. @return has this task tracker finished and cleaned up all of its tasks?]]>
  56732. </doc>
  56733. </method>
  56734. <method name="main"
  56735. abstract="false" native="false" synchronized="false"
  56736. static="true" final="false" visibility="public"
  56737. deprecated="not deprecated">
  56738. <param name="argv" type="java.lang.String[]"/>
  56739. <exception name="Exception" type="java.lang.Exception"/>
  56740. <doc>
  56741. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  56742. </doc>
  56743. </method>
  56744. <method name="isTaskMemoryManagerEnabled" return="boolean"
  56745. abstract="false" native="false" synchronized="false"
  56746. static="false" final="false" visibility="public"
  56747. deprecated="not deprecated">
  56748. <doc>
  56749. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  56750. @return true if enabled, false otherwise.]]>
  56751. </doc>
  56752. </method>
  56753. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  56754. abstract="false" native="false" synchronized="false"
  56755. static="false" final="false" visibility="public"
  56756. deprecated="not deprecated">
  56757. </method>
  56758. <method name="getHostname" return="java.lang.String"
  56759. abstract="false" native="false" synchronized="false"
  56760. static="false" final="false" visibility="public"
  56761. deprecated="not deprecated">
  56762. </method>
  56763. <method name="getVersion" return="java.lang.String"
  56764. abstract="false" native="false" synchronized="false"
  56765. static="false" final="false" visibility="public"
  56766. deprecated="not deprecated">
  56767. </method>
  56768. <method name="getConfigVersion" return="java.lang.String"
  56769. abstract="false" native="false" synchronized="false"
  56770. static="false" final="false" visibility="public"
  56771. deprecated="not deprecated">
  56772. </method>
  56773. <method name="getJobTrackerUrl" return="java.lang.String"
  56774. abstract="false" native="false" synchronized="false"
  56775. static="false" final="false" visibility="public"
  56776. deprecated="not deprecated">
  56777. </method>
  56778. <method name="getRpcPort" return="int"
  56779. abstract="false" native="false" synchronized="false"
  56780. static="false" final="false" visibility="public"
  56781. deprecated="not deprecated">
  56782. </method>
  56783. <method name="getHttpPort" return="int"
  56784. abstract="false" native="false" synchronized="false"
  56785. static="false" final="false" visibility="public"
  56786. deprecated="not deprecated">
  56787. </method>
  56788. <method name="isHealthy" return="boolean"
  56789. abstract="false" native="false" synchronized="false"
  56790. static="false" final="false" visibility="public"
  56791. deprecated="not deprecated">
  56792. </method>
  56793. <method name="getTasksInfoJson" return="java.lang.String"
  56794. abstract="false" native="false" synchronized="false"
  56795. static="false" final="false" visibility="public"
  56796. deprecated="not deprecated">
  56797. </method>
  56798. <method name="updatePrivateDistributedCacheSizes"
  56799. abstract="false" native="false" synchronized="false"
  56800. static="false" final="false" visibility="public"
  56801. deprecated="not deprecated">
  56802. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  56803. <param name="sizes" type="long[]"/>
  56804. <exception name="IOException" type="java.io.IOException"/>
  56805. </method>
  56806. <field name="LOG" type="org.apache.commons.logging.Log"
  56807. transient="false" volatile="false"
  56808. static="true" final="true" visibility="public"
  56809. deprecated="not deprecated">
  56810. </field>
  56811. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  56812. transient="false" volatile="false"
  56813. static="true" final="true" visibility="public"
  56814. deprecated="not deprecated">
  56815. </field>
  56816. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  56817. transient="false" volatile="false"
  56818. static="true" final="true" visibility="public"
  56819. deprecated="not deprecated">
  56820. </field>
  56821. <field name="SUBDIR" type="java.lang.String"
  56822. transient="false" volatile="false"
  56823. static="true" final="true" visibility="public"
  56824. deprecated="not deprecated">
  56825. </field>
  56826. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  56827. transient="false" volatile="false"
  56828. static="true" final="true" visibility="public"
  56829. deprecated="not deprecated">
  56830. </field>
  56831. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  56832. transient="false" volatile="false"
  56833. static="true" final="true" visibility="public"
  56834. deprecated="not deprecated">
  56835. </field>
  56836. <field name="TT_USER_NAME" type="java.lang.String"
  56837. transient="false" volatile="false"
  56838. static="true" final="true" visibility="public"
  56839. deprecated="not deprecated">
  56840. </field>
  56841. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  56842. transient="false" volatile="false"
  56843. static="true" final="true" visibility="public"
  56844. deprecated="not deprecated">
  56845. </field>
  56846. <doc>
  56847. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  56848. in a networked environment. It contacts the JobTracker
  56849. for Task assignments and reporting results.]]>
  56850. </doc>
  56851. </class>
  56852. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  56853. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  56854. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  56855. abstract="false"
  56856. static="true" final="false" visibility="public"
  56857. deprecated="not deprecated">
  56858. <constructor name="TaskTracker.MapOutputServlet"
  56859. static="false" final="false" visibility="public"
  56860. deprecated="not deprecated">
  56861. </constructor>
  56862. <method name="doGet"
  56863. abstract="false" native="false" synchronized="false"
  56864. static="false" final="false" visibility="public"
  56865. deprecated="not deprecated">
  56866. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  56867. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  56868. <exception name="ServletException" type="javax.servlet.ServletException"/>
  56869. <exception name="IOException" type="java.io.IOException"/>
  56870. </method>
  56871. <method name="checkException"
  56872. abstract="false" native="false" synchronized="false"
  56873. static="false" final="false" visibility="protected"
  56874. deprecated="not deprecated">
  56875. <param name="ie" type="java.io.IOException"/>
  56876. <param name="exceptionMsgRegex" type="java.lang.String"/>
  56877. <param name="exceptionStackRegex" type="java.lang.String"/>
  56878. <param name="shuffleMetrics" type="org.apache.hadoop.mapred.ShuffleServerInstrumentation"/>
  56879. </method>
  56880. <doc>
  56881. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  56882. to other nodes.]]>
  56883. </doc>
  56884. </class>
  56885. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  56886. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  56887. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  56888. abstract="false"
  56889. static="false" final="false" visibility="public"
  56890. deprecated="not deprecated">
  56891. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  56892. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  56893. static="false" final="false" visibility="public"
  56894. deprecated="not deprecated">
  56895. </constructor>
  56896. <method name="getMetrics"
  56897. abstract="false" native="false" synchronized="false"
  56898. static="false" final="false" visibility="public"
  56899. deprecated="not deprecated">
  56900. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  56901. <param name="all" type="boolean"/>
  56902. </method>
  56903. <method name="completeTask"
  56904. abstract="false" native="false" synchronized="false"
  56905. static="false" final="false" visibility="public"
  56906. deprecated="not deprecated">
  56907. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56908. </method>
  56909. <method name="timedoutTask"
  56910. abstract="false" native="false" synchronized="false"
  56911. static="false" final="false" visibility="public"
  56912. deprecated="not deprecated">
  56913. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56914. </method>
  56915. <method name="taskFailedPing"
  56916. abstract="false" native="false" synchronized="false"
  56917. static="false" final="false" visibility="public"
  56918. deprecated="not deprecated">
  56919. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56920. </method>
  56921. <doc>
  56922. <![CDATA[Instrumentation for metrics v2]]>
  56923. </doc>
  56924. </class>
  56925. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  56926. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  56927. <interface name="TaskTrackerMXBean" abstract="true"
  56928. static="false" final="false" visibility="public"
  56929. deprecated="not deprecated">
  56930. <method name="getHostname" return="java.lang.String"
  56931. abstract="false" native="false" synchronized="false"
  56932. static="false" final="false" visibility="public"
  56933. deprecated="not deprecated">
  56934. <doc>
  56935. <![CDATA[@return the hostname of the tasktracker]]>
  56936. </doc>
  56937. </method>
  56938. <method name="getVersion" return="java.lang.String"
  56939. abstract="false" native="false" synchronized="false"
  56940. static="false" final="false" visibility="public"
  56941. deprecated="not deprecated">
  56942. <doc>
  56943. <![CDATA[@return the version of the code base]]>
  56944. </doc>
  56945. </method>
  56946. <method name="getConfigVersion" return="java.lang.String"
  56947. abstract="false" native="false" synchronized="false"
  56948. static="false" final="false" visibility="public"
  56949. deprecated="not deprecated">
  56950. <doc>
  56951. <![CDATA[@return the config version (from a config properties)]]>
  56952. </doc>
  56953. </method>
  56954. <method name="getJobTrackerUrl" return="java.lang.String"
  56955. abstract="false" native="false" synchronized="false"
  56956. static="false" final="false" visibility="public"
  56957. deprecated="not deprecated">
  56958. <doc>
  56959. <![CDATA[@return the URL of the jobtracker]]>
  56960. </doc>
  56961. </method>
  56962. <method name="getRpcPort" return="int"
  56963. abstract="false" native="false" synchronized="false"
  56964. static="false" final="false" visibility="public"
  56965. deprecated="not deprecated">
  56966. <doc>
  56967. <![CDATA[@return the RPC port of the tasktracker]]>
  56968. </doc>
  56969. </method>
  56970. <method name="getHttpPort" return="int"
  56971. abstract="false" native="false" synchronized="false"
  56972. static="false" final="false" visibility="public"
  56973. deprecated="not deprecated">
  56974. <doc>
  56975. <![CDATA[@return the HTTP port of the tasktracker]]>
  56976. </doc>
  56977. </method>
  56978. <method name="isHealthy" return="boolean"
  56979. abstract="false" native="false" synchronized="false"
  56980. static="false" final="false" visibility="public"
  56981. deprecated="not deprecated">
  56982. <doc>
  56983. <![CDATA[@return the health status of the tasktracker]]>
  56984. </doc>
  56985. </method>
  56986. <method name="getTasksInfoJson" return="java.lang.String"
  56987. abstract="false" native="false" synchronized="false"
  56988. static="false" final="false" visibility="public"
  56989. deprecated="not deprecated">
  56990. <doc>
  56991. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  56992. </doc>
  56993. </method>
  56994. <doc>
  56995. <![CDATA[MXBean interface for TaskTracker]]>
  56996. </doc>
  56997. </interface>
  56998. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  56999. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  57000. <class name="TaskTrackerStatus" extends="java.lang.Object"
  57001. abstract="false"
  57002. static="false" final="false" visibility="public"
  57003. deprecated="not deprecated">
  57004. <implements name="org.apache.hadoop.io.Writable"/>
  57005. <constructor name="TaskTrackerStatus"
  57006. static="false" final="false" visibility="public"
  57007. deprecated="not deprecated">
  57008. </constructor>
  57009. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int"
  57010. static="false" final="false" visibility="public"
  57011. deprecated="not deprecated">
  57012. </constructor>
  57013. <method name="getTrackerName" return="java.lang.String"
  57014. abstract="false" native="false" synchronized="false"
  57015. static="false" final="false" visibility="public"
  57016. deprecated="not deprecated">
  57017. </method>
  57018. <method name="getHost" return="java.lang.String"
  57019. abstract="false" native="false" synchronized="false"
  57020. static="false" final="false" visibility="public"
  57021. deprecated="not deprecated">
  57022. </method>
  57023. <method name="getHttpPort" return="int"
  57024. abstract="false" native="false" synchronized="false"
  57025. static="false" final="false" visibility="public"
  57026. deprecated="not deprecated">
  57027. <doc>
  57028. <![CDATA[Get the port that this task tracker is serving http requests on.
  57029. @return the http port]]>
  57030. </doc>
  57031. </method>
  57032. <method name="getFailures" return="int"
  57033. abstract="false" native="false" synchronized="false"
  57034. static="false" final="false" visibility="public"
  57035. deprecated="not deprecated">
  57036. <doc>
  57037. <![CDATA[Get the number of tasks that have failed on this tracker.
  57038. @return The number of failed tasks]]>
  57039. </doc>
  57040. </method>
  57041. <method name="getTaskReports" return="java.util.List"
  57042. abstract="false" native="false" synchronized="false"
  57043. static="false" final="false" visibility="public"
  57044. deprecated="not deprecated">
  57045. <doc>
  57046. <![CDATA[Get the current tasks at the TaskTracker.
  57047. Tasks are tracked by a {@link TaskStatus} object.
  57048. @return a list of {@link TaskStatus} representing
  57049. the current tasks at the TaskTracker.]]>
  57050. </doc>
  57051. </method>
  57052. <method name="countMapTasks" return="int"
  57053. abstract="false" native="false" synchronized="false"
  57054. static="false" final="false" visibility="public"
  57055. deprecated="not deprecated">
  57056. <doc>
  57057. <![CDATA[Get the number of running map tasks.
  57058. @return the number of running map tasks]]>
  57059. </doc>
  57060. </method>
  57061. <method name="countOccupiedMapSlots" return="int"
  57062. abstract="false" native="false" synchronized="false"
  57063. static="false" final="false" visibility="public"
  57064. deprecated="not deprecated">
  57065. <doc>
  57066. <![CDATA[Get the number of occupied map slots.
  57067. @return the number of occupied map slots]]>
  57068. </doc>
  57069. </method>
  57070. <method name="getAvailableMapSlots" return="int"
  57071. abstract="false" native="false" synchronized="false"
  57072. static="false" final="false" visibility="public"
  57073. deprecated="not deprecated">
  57074. <doc>
  57075. <![CDATA[Get available map slots.
  57076. @return available map slots]]>
  57077. </doc>
  57078. </method>
  57079. <method name="countReduceTasks" return="int"
  57080. abstract="false" native="false" synchronized="false"
  57081. static="false" final="false" visibility="public"
  57082. deprecated="not deprecated">
  57083. <doc>
  57084. <![CDATA[Get the number of running reduce tasks.
  57085. @return the number of running reduce tasks]]>
  57086. </doc>
  57087. </method>
  57088. <method name="countOccupiedReduceSlots" return="int"
  57089. abstract="false" native="false" synchronized="false"
  57090. static="false" final="false" visibility="public"
  57091. deprecated="not deprecated">
  57092. <doc>
  57093. <![CDATA[Get the number of occupied reduce slots.
  57094. @return the number of occupied reduce slots]]>
  57095. </doc>
  57096. </method>
  57097. <method name="getAvailableReduceSlots" return="int"
  57098. abstract="false" native="false" synchronized="false"
  57099. static="false" final="false" visibility="public"
  57100. deprecated="not deprecated">
  57101. <doc>
  57102. <![CDATA[Get available reduce slots.
  57103. @return available reduce slots]]>
  57104. </doc>
  57105. </method>
  57106. <method name="getLastSeen" return="long"
  57107. abstract="false" native="false" synchronized="false"
  57108. static="false" final="false" visibility="public"
  57109. deprecated="not deprecated">
  57110. </method>
  57111. <method name="setLastSeen"
  57112. abstract="false" native="false" synchronized="false"
  57113. static="false" final="false" visibility="public"
  57114. deprecated="not deprecated">
  57115. <param name="lastSeen" type="long"/>
  57116. </method>
  57117. <method name="getMaxMapSlots" return="int"
  57118. abstract="false" native="false" synchronized="false"
  57119. static="false" final="false" visibility="public"
  57120. deprecated="not deprecated">
  57121. <doc>
  57122. <![CDATA[Get the maximum map slots for this node.
  57123. @return the maximum map slots for this node]]>
  57124. </doc>
  57125. </method>
  57126. <method name="getMaxReduceSlots" return="int"
  57127. abstract="false" native="false" synchronized="false"
  57128. static="false" final="false" visibility="public"
  57129. deprecated="not deprecated">
  57130. <doc>
  57131. <![CDATA[Get the maximum reduce slots for this node.
  57132. @return the maximum reduce slots for this node]]>
  57133. </doc>
  57134. </method>
  57135. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  57136. abstract="false" native="false" synchronized="false"
  57137. static="false" final="false" visibility="public"
  57138. deprecated="not deprecated">
  57139. <doc>
  57140. <![CDATA[Returns health status of the task tracker.
  57141. @return health status of Task Tracker]]>
  57142. </doc>
  57143. </method>
  57144. <method name="write"
  57145. abstract="false" native="false" synchronized="false"
  57146. static="false" final="false" visibility="public"
  57147. deprecated="not deprecated">
  57148. <param name="out" type="java.io.DataOutput"/>
  57149. <exception name="IOException" type="java.io.IOException"/>
  57150. </method>
  57151. <method name="readFields"
  57152. abstract="false" native="false" synchronized="false"
  57153. static="false" final="false" visibility="public"
  57154. deprecated="not deprecated">
  57155. <param name="in" type="java.io.DataInput"/>
  57156. <exception name="IOException" type="java.io.IOException"/>
  57157. </method>
  57158. <field name="LOG" type="org.apache.commons.logging.Log"
  57159. transient="false" volatile="false"
  57160. static="true" final="true" visibility="public"
  57161. deprecated="not deprecated">
  57162. </field>
  57163. <field name="UNAVAILABLE" type="int"
  57164. transient="false" volatile="false"
  57165. static="true" final="true" visibility="public"
  57166. deprecated="not deprecated">
  57167. </field>
  57168. <doc>
  57169. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  57170. info on a TaskTracker. The JobTracker maintains a set
  57171. of the most recent TaskTrackerStatus objects for each
  57172. unique TaskTracker it knows about.
  57173. This is NOT a public interface!]]>
  57174. </doc>
  57175. </class>
  57176. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  57177. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  57178. <interface name="TaskUmbilicalProtocol" abstract="true"
  57179. static="false" final="false" visibility="public"
  57180. deprecated="not deprecated">
  57181. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  57182. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  57183. abstract="false" native="false" synchronized="false"
  57184. static="false" final="false" visibility="public"
  57185. deprecated="not deprecated">
  57186. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  57187. <exception name="IOException" type="java.io.IOException"/>
  57188. <doc>
  57189. <![CDATA[Called when a child task process starts, to get its task.
  57190. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  57191. launched it
  57192. @return Task object
  57193. @throws IOException]]>
  57194. </doc>
  57195. </method>
  57196. <method name="statusUpdate" return="boolean"
  57197. abstract="false" native="false" synchronized="false"
  57198. static="false" final="false" visibility="public"
  57199. deprecated="not deprecated">
  57200. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57201. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57202. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57203. <exception name="IOException" type="java.io.IOException"/>
  57204. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57205. <doc>
  57206. <![CDATA[Report child's progress to parent.
  57207. @param taskId task-id of the child
  57208. @param taskStatus status of the child
  57209. @param jvmContext context the jvmContext running the task.
  57210. @throws IOException
  57211. @throws InterruptedException
  57212. @return True if the task is known]]>
  57213. </doc>
  57214. </method>
  57215. <method name="reportDiagnosticInfo"
  57216. abstract="false" native="false" synchronized="false"
  57217. static="false" final="false" visibility="public"
  57218. deprecated="not deprecated">
  57219. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57220. <param name="trace" type="java.lang.String"/>
  57221. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57222. <exception name="IOException" type="java.io.IOException"/>
  57223. <doc>
  57224. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  57225. such messages are held in the job tracker.
  57226. @param taskid the id of the task involved
  57227. @param trace the text to report
  57228. @param jvmContext context the jvmContext running the task.]]>
  57229. </doc>
  57230. </method>
  57231. <method name="reportNextRecordRange"
  57232. abstract="false" native="false" synchronized="false"
  57233. static="false" final="false" visibility="public"
  57234. deprecated="not deprecated">
  57235. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57236. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  57237. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57238. <exception name="IOException" type="java.io.IOException"/>
  57239. <doc>
  57240. <![CDATA[Report the record range which is going to process next by the Task.
  57241. @param taskid the id of the task involved
  57242. @param range the range of record sequence nos
  57243. @param jvmContext context the jvmContext running the task.
  57244. @throws IOException]]>
  57245. </doc>
  57246. </method>
  57247. <method name="ping" return="boolean"
  57248. abstract="false" native="false" synchronized="false"
  57249. static="false" final="false" visibility="public"
  57250. deprecated="not deprecated">
  57251. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57252. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57253. <exception name="IOException" type="java.io.IOException"/>
  57254. <doc>
  57255. <![CDATA[Periodically called by child to check if parent is still alive.
  57256. @param taskid the id of the task involved
  57257. @param jvmContext context the jvmContext running the task.
  57258. @return True if the task is known]]>
  57259. </doc>
  57260. </method>
  57261. <method name="done"
  57262. abstract="false" native="false" synchronized="false"
  57263. static="false" final="false" visibility="public"
  57264. deprecated="not deprecated">
  57265. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57266. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57267. <exception name="IOException" type="java.io.IOException"/>
  57268. <doc>
  57269. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  57270. the task process exits without calling this.
  57271. @param taskid task's id
  57272. @param jvmContext context the jvmContext running the task.]]>
  57273. </doc>
  57274. </method>
  57275. <method name="commitPending"
  57276. abstract="false" native="false" synchronized="false"
  57277. static="false" final="false" visibility="public"
  57278. deprecated="not deprecated">
  57279. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57280. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57281. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57282. <exception name="IOException" type="java.io.IOException"/>
  57283. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57284. <doc>
  57285. <![CDATA[Report that the task is complete, but its commit is pending.
  57286. @param taskId task's id
  57287. @param taskStatus status of the child
  57288. @param jvmContext context the jvmContext running the task.
  57289. @throws IOException]]>
  57290. </doc>
  57291. </method>
  57292. <method name="canCommit" return="boolean"
  57293. abstract="false" native="false" synchronized="false"
  57294. static="false" final="false" visibility="public"
  57295. deprecated="not deprecated">
  57296. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57297. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57298. <exception name="IOException" type="java.io.IOException"/>
  57299. <doc>
  57300. <![CDATA[Polling to know whether the task can go-ahead with commit
  57301. @param taskid
  57302. @param jvmContext context the jvmContext running the task.
  57303. @return true/false
  57304. @throws IOException]]>
  57305. </doc>
  57306. </method>
  57307. <method name="shuffleError"
  57308. abstract="false" native="false" synchronized="false"
  57309. static="false" final="false" visibility="public"
  57310. deprecated="not deprecated">
  57311. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57312. <param name="message" type="java.lang.String"/>
  57313. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57314. <exception name="IOException" type="java.io.IOException"/>
  57315. <doc>
  57316. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  57317. </doc>
  57318. </method>
  57319. <method name="fsError"
  57320. abstract="false" native="false" synchronized="false"
  57321. static="false" final="false" visibility="public"
  57322. deprecated="not deprecated">
  57323. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57324. <param name="message" type="java.lang.String"/>
  57325. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57326. <exception name="IOException" type="java.io.IOException"/>
  57327. <doc>
  57328. <![CDATA[Report that the task encounted a local filesystem error.]]>
  57329. </doc>
  57330. </method>
  57331. <method name="fatalError"
  57332. abstract="false" native="false" synchronized="false"
  57333. static="false" final="false" visibility="public"
  57334. deprecated="not deprecated">
  57335. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57336. <param name="message" type="java.lang.String"/>
  57337. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57338. <exception name="IOException" type="java.io.IOException"/>
  57339. <doc>
  57340. <![CDATA[Report that the task encounted a fatal error.]]>
  57341. </doc>
  57342. </method>
  57343. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  57344. abstract="false" native="false" synchronized="false"
  57345. static="false" final="false" visibility="public"
  57346. deprecated="not deprecated">
  57347. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  57348. <param name="fromIndex" type="int"/>
  57349. <param name="maxLocs" type="int"/>
  57350. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57351. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57352. <exception name="IOException" type="java.io.IOException"/>
  57353. <doc>
  57354. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  57355. Returns an update centered around the map-task-completion-events.
  57356. The update also piggybacks the information whether the events copy at the
  57357. task-tracker has changed or not. This will trigger some action at the
  57358. child-process.
  57359. @param jobId the reducer job id
  57360. @param fromIndex the index starting from which the locations should be
  57361. fetched
  57362. @param maxLocs the max number of locations to fetch
  57363. @param id The attempt id of the task that is trying to communicate
  57364. @return A {@link MapTaskCompletionEventsUpdate}]]>
  57365. </doc>
  57366. </method>
  57367. <method name="updatePrivateDistributedCacheSizes"
  57368. abstract="false" native="false" synchronized="false"
  57369. static="false" final="false" visibility="public"
  57370. deprecated="not deprecated">
  57371. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  57372. <param name="sizes" type="long[]"/>
  57373. <exception name="IOException" type="java.io.IOException"/>
  57374. <doc>
  57375. <![CDATA[The job initializer needs to report the sizes of the archive
  57376. objects in the private distributed cache.
  57377. @param jobId the job to update
  57378. @param sizes the array of sizes that were computed
  57379. @throws IOException]]>
  57380. </doc>
  57381. </method>
  57382. <field name="versionID" type="long"
  57383. transient="false" volatile="false"
  57384. static="true" final="true" visibility="public"
  57385. deprecated="not deprecated">
  57386. <doc>
  57387. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  57388. Changed version to 3 to have progress() return a boolean
  57389. Changed the version to 4, since we have replaced
  57390. TaskUmbilicalProtocol.progress(String, float, String,
  57391. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  57392. with statusUpdate(String, TaskStatus)
  57393. Version 5 changed counters representation for HADOOP-2248
  57394. Version 6 changes the TaskStatus representation for HADOOP-2208
  57395. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  57396. or not the task's output needs to be promoted.
  57397. Version 8 changes {job|tip|task}id's to use their corresponding
  57398. objects rather than strings.
  57399. Version 9 changes the counter representation for HADOOP-1915
  57400. Version 10 changed the TaskStatus format and added reportNextRecordRange
  57401. for HADOOP-153
  57402. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  57403. Version 12 getMapCompletionEvents() now also indicates if the events are
  57404. stale or not. Hence the return type is a class that
  57405. encapsulates the events and whether to reset events index.
  57406. Version 13 changed the getTask method signature for HADOOP-249
  57407. Version 14 changed the getTask method signature for HADOOP-4232
  57408. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  57409. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  57410. Version 17 Change in signature of getTask() for HADOOP-5488
  57411. Version 18 Added fatalError for child to communicate fatal errors to TT
  57412. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  57413. </doc>
  57414. </field>
  57415. <doc>
  57416. <![CDATA[Protocol that task child process uses to contact its parent process. The
  57417. parent is a daemon which which polls the central master for a new map or
  57418. reduce task and runs it as a child process. All communication between child
  57419. and parent is via this protocol.]]>
  57420. </doc>
  57421. </interface>
  57422. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  57423. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  57424. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  57425. abstract="false"
  57426. static="false" final="false" visibility="public"
  57427. deprecated="not deprecated">
  57428. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  57429. <constructor name="TextInputFormat"
  57430. static="false" final="false" visibility="public"
  57431. deprecated="not deprecated">
  57432. </constructor>
  57433. <method name="configure"
  57434. abstract="false" native="false" synchronized="false"
  57435. static="false" final="false" visibility="public"
  57436. deprecated="not deprecated">
  57437. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57438. </method>
  57439. <method name="isSplitable" return="boolean"
  57440. abstract="false" native="false" synchronized="false"
  57441. static="false" final="false" visibility="protected"
  57442. deprecated="not deprecated">
  57443. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  57444. <param name="file" type="org.apache.hadoop.fs.Path"/>
  57445. </method>
  57446. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  57447. abstract="false" native="false" synchronized="false"
  57448. static="false" final="false" visibility="public"
  57449. deprecated="not deprecated">
  57450. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  57451. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57452. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57453. <exception name="IOException" type="java.io.IOException"/>
  57454. </method>
  57455. <doc>
  57456. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  57457. Either linefeed or carriage-return are used to signal end of line. Keys are
  57458. the position in the file, and values are the line of text..]]>
  57459. </doc>
  57460. </class>
  57461. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  57462. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  57463. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  57464. abstract="false"
  57465. static="false" final="false" visibility="public"
  57466. deprecated="not deprecated">
  57467. <constructor name="TextOutputFormat"
  57468. static="false" final="false" visibility="public"
  57469. deprecated="not deprecated">
  57470. </constructor>
  57471. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  57472. abstract="false" native="false" synchronized="false"
  57473. static="false" final="false" visibility="public"
  57474. deprecated="not deprecated">
  57475. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  57476. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57477. <param name="name" type="java.lang.String"/>
  57478. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  57479. <exception name="IOException" type="java.io.IOException"/>
  57480. </method>
  57481. <doc>
  57482. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  57483. </doc>
  57484. </class>
  57485. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  57486. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  57487. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  57488. abstract="false"
  57489. static="true" final="false" visibility="protected"
  57490. deprecated="not deprecated">
  57491. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  57492. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  57493. static="false" final="false" visibility="public"
  57494. deprecated="not deprecated">
  57495. </constructor>
  57496. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  57497. static="false" final="false" visibility="public"
  57498. deprecated="not deprecated">
  57499. </constructor>
  57500. <method name="write"
  57501. abstract="false" native="false" synchronized="true"
  57502. static="false" final="false" visibility="public"
  57503. deprecated="not deprecated">
  57504. <param name="key" type="java.lang.Object"/>
  57505. <param name="value" type="java.lang.Object"/>
  57506. <exception name="IOException" type="java.io.IOException"/>
  57507. </method>
  57508. <method name="close"
  57509. abstract="false" native="false" synchronized="true"
  57510. static="false" final="false" visibility="public"
  57511. deprecated="not deprecated">
  57512. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57513. <exception name="IOException" type="java.io.IOException"/>
  57514. </method>
  57515. <field name="out" type="java.io.DataOutputStream"
  57516. transient="false" volatile="false"
  57517. static="false" final="false" visibility="protected"
  57518. deprecated="not deprecated">
  57519. </field>
  57520. </class>
  57521. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  57522. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  57523. <class name="TIPStatus" extends="java.lang.Enum"
  57524. abstract="false"
  57525. static="false" final="true" visibility="public"
  57526. deprecated="not deprecated">
  57527. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  57528. abstract="false" native="false" synchronized="false"
  57529. static="true" final="false" visibility="public"
  57530. deprecated="not deprecated">
  57531. </method>
  57532. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  57533. abstract="false" native="false" synchronized="false"
  57534. static="true" final="false" visibility="public"
  57535. deprecated="not deprecated">
  57536. <param name="name" type="java.lang.String"/>
  57537. </method>
  57538. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  57539. transient="false" volatile="false"
  57540. static="true" final="true" visibility="public"
  57541. deprecated="not deprecated">
  57542. </field>
  57543. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  57544. transient="false" volatile="false"
  57545. static="true" final="true" visibility="public"
  57546. deprecated="not deprecated">
  57547. </field>
  57548. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  57549. transient="false" volatile="false"
  57550. static="true" final="true" visibility="public"
  57551. deprecated="not deprecated">
  57552. </field>
  57553. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  57554. transient="false" volatile="false"
  57555. static="true" final="true" visibility="public"
  57556. deprecated="not deprecated">
  57557. </field>
  57558. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  57559. transient="false" volatile="false"
  57560. static="true" final="true" visibility="public"
  57561. deprecated="not deprecated">
  57562. </field>
  57563. <doc>
  57564. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  57565. </doc>
  57566. </class>
  57567. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  57568. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  57569. <class name="UserLogCleaner" extends="java.lang.Thread"
  57570. abstract="false"
  57571. static="false" final="false" visibility="public"
  57572. deprecated="not deprecated">
  57573. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  57574. static="false" final="false" visibility="public"
  57575. deprecated="not deprecated">
  57576. <exception name="IOException" type="java.io.IOException"/>
  57577. </constructor>
  57578. <method name="run"
  57579. abstract="false" native="false" synchronized="false"
  57580. static="false" final="false" visibility="public"
  57581. deprecated="not deprecated">
  57582. </method>
  57583. <method name="deleteJobLogs"
  57584. abstract="false" native="false" synchronized="false"
  57585. static="false" final="false" visibility="public"
  57586. deprecated="not deprecated">
  57587. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57588. <exception name="IOException" type="java.io.IOException"/>
  57589. </method>
  57590. <method name="addOldUserLogsForDeletion"
  57591. abstract="false" native="false" synchronized="false"
  57592. static="false" final="false" visibility="public"
  57593. deprecated="not deprecated">
  57594. <param name="loc" type="java.io.File"/>
  57595. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57596. <exception name="IOException" type="java.io.IOException"/>
  57597. <doc>
  57598. <![CDATA[Adds the job log directories for deletion with default retain hours.
  57599. Deletes all other directories, if any.
  57600. @param loc location of log directory
  57601. @param conf
  57602. @throws IOException]]>
  57603. </doc>
  57604. </method>
  57605. <method name="clearOldUserLogs"
  57606. abstract="false" native="false" synchronized="false"
  57607. static="false" final="false" visibility="public"
  57608. deprecated="not deprecated">
  57609. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57610. <exception name="IOException" type="java.io.IOException"/>
  57611. <doc>
  57612. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  57613. reinit/restart of the TaskTracker.
  57614. @param conf
  57615. @throws IOException]]>
  57616. </doc>
  57617. </method>
  57618. <method name="markJobLogsForDeletion"
  57619. abstract="false" native="false" synchronized="false"
  57620. static="false" final="false" visibility="public"
  57621. deprecated="not deprecated">
  57622. <param name="jobCompletionTime" type="long"/>
  57623. <param name="retainHours" type="int"/>
  57624. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57625. <doc>
  57626. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  57627. retain hours.
  57628. @param jobCompletionTime
  57629. job completion time in millis
  57630. @param retainHours
  57631. the user-log retain hours for the job
  57632. @param jobid
  57633. JobID for which user logs should be deleted]]>
  57634. </doc>
  57635. </method>
  57636. <method name="unmarkJobFromLogDeletion"
  57637. abstract="false" native="false" synchronized="false"
  57638. static="false" final="false" visibility="public"
  57639. deprecated="not deprecated">
  57640. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57641. <doc>
  57642. <![CDATA[Remove job from user log deletion.
  57643. @param jobid]]>
  57644. </doc>
  57645. </method>
  57646. <doc>
  57647. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  57648. </doc>
  57649. </class>
  57650. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  57651. <!-- start class org.apache.hadoop.mapred.Utils -->
  57652. <class name="Utils" extends="java.lang.Object"
  57653. abstract="false"
  57654. static="false" final="false" visibility="public"
  57655. deprecated="not deprecated">
  57656. <constructor name="Utils"
  57657. static="false" final="false" visibility="public"
  57658. deprecated="not deprecated">
  57659. </constructor>
  57660. <doc>
  57661. <![CDATA[A utility class. It provides
  57662. - file-util
  57663. - A path filter utility to filter out output/part files in the output dir]]>
  57664. </doc>
  57665. </class>
  57666. <!-- end class org.apache.hadoop.mapred.Utils -->
  57667. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  57668. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  57669. abstract="false"
  57670. static="true" final="false" visibility="public"
  57671. deprecated="not deprecated">
  57672. <constructor name="Utils.OutputFileUtils"
  57673. static="false" final="false" visibility="public"
  57674. deprecated="not deprecated">
  57675. </constructor>
  57676. </class>
  57677. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  57678. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  57679. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  57680. abstract="false"
  57681. static="true" final="false" visibility="public"
  57682. deprecated="not deprecated">
  57683. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  57684. static="false" final="false" visibility="public"
  57685. deprecated="not deprecated">
  57686. </constructor>
  57687. <method name="accept" return="boolean"
  57688. abstract="false" native="false" synchronized="false"
  57689. static="false" final="false" visibility="public"
  57690. deprecated="not deprecated">
  57691. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57692. </method>
  57693. <doc>
  57694. <![CDATA[This class filters output(part) files from the given directory
  57695. It does not accept files with filenames _logs and _SUCCESS.
  57696. This can be used to list paths of output directory as follows:
  57697. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  57698. new OutputFilesFilter()));]]>
  57699. </doc>
  57700. </class>
  57701. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  57702. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  57703. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  57704. abstract="false"
  57705. static="true" final="false" visibility="public"
  57706. deprecated="not deprecated">
  57707. <implements name="org.apache.hadoop.fs.PathFilter"/>
  57708. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  57709. static="false" final="false" visibility="public"
  57710. deprecated="not deprecated">
  57711. </constructor>
  57712. <method name="accept" return="boolean"
  57713. abstract="false" native="false" synchronized="false"
  57714. static="false" final="false" visibility="public"
  57715. deprecated="not deprecated">
  57716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57717. </method>
  57718. <doc>
  57719. <![CDATA[This class filters log files from directory given
  57720. It doesnt accept paths having _logs.
  57721. This can be used to list paths of output directory as follows:
  57722. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  57723. new OutputLogFilter()));]]>
  57724. </doc>
  57725. </class>
  57726. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  57727. </package>
  57728. <package name="org.apache.hadoop.mapred.jobcontrol">
  57729. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  57730. <class name="Job" extends="java.lang.Object"
  57731. abstract="false"
  57732. static="false" final="false" visibility="public"
  57733. deprecated="not deprecated">
  57734. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  57735. static="false" final="false" visibility="public"
  57736. deprecated="not deprecated">
  57737. <exception name="IOException" type="java.io.IOException"/>
  57738. <doc>
  57739. <![CDATA[Construct a job.
  57740. @param jobConf a mapred job configuration representing a job to be executed.
  57741. @param dependingJobs an array of jobs the current job depends on]]>
  57742. </doc>
  57743. </constructor>
  57744. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  57745. static="false" final="false" visibility="public"
  57746. deprecated="not deprecated">
  57747. <exception name="IOException" type="java.io.IOException"/>
  57748. <doc>
  57749. <![CDATA[Construct a job.
  57750. @param jobConf mapred job configuration representing a job to be executed.
  57751. @throws IOException]]>
  57752. </doc>
  57753. </constructor>
  57754. <method name="toString" return="java.lang.String"
  57755. abstract="false" native="false" synchronized="false"
  57756. static="false" final="false" visibility="public"
  57757. deprecated="not deprecated">
  57758. </method>
  57759. <method name="getJobName" return="java.lang.String"
  57760. abstract="false" native="false" synchronized="false"
  57761. static="false" final="false" visibility="public"
  57762. deprecated="not deprecated">
  57763. <doc>
  57764. <![CDATA[@return the job name of this job]]>
  57765. </doc>
  57766. </method>
  57767. <method name="setJobName"
  57768. abstract="false" native="false" synchronized="false"
  57769. static="false" final="false" visibility="public"
  57770. deprecated="not deprecated">
  57771. <param name="jobName" type="java.lang.String"/>
  57772. <doc>
  57773. <![CDATA[Set the job name for this job.
  57774. @param jobName the job name]]>
  57775. </doc>
  57776. </method>
  57777. <method name="getJobID" return="java.lang.String"
  57778. abstract="false" native="false" synchronized="false"
  57779. static="false" final="false" visibility="public"
  57780. deprecated="not deprecated">
  57781. <doc>
  57782. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  57783. </doc>
  57784. </method>
  57785. <method name="setJobID"
  57786. abstract="false" native="false" synchronized="false"
  57787. static="false" final="false" visibility="public"
  57788. deprecated="not deprecated">
  57789. <param name="id" type="java.lang.String"/>
  57790. <doc>
  57791. <![CDATA[Set the job ID for this job.
  57792. @param id the job ID]]>
  57793. </doc>
  57794. </method>
  57795. <method name="getMapredJobID" return="java.lang.String"
  57796. abstract="false" native="false" synchronized="false"
  57797. static="false" final="false" visibility="public"
  57798. deprecated="use {@link #getAssignedJobID()} instead">
  57799. <doc>
  57800. <![CDATA[@return the mapred ID of this job
  57801. @deprecated use {@link #getAssignedJobID()} instead]]>
  57802. </doc>
  57803. </method>
  57804. <method name="setMapredJobID"
  57805. abstract="false" native="false" synchronized="false"
  57806. static="false" final="false" visibility="public"
  57807. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  57808. <param name="mapredJobID" type="java.lang.String"/>
  57809. <doc>
  57810. <![CDATA[Set the mapred ID for this job.
  57811. @param mapredJobID the mapred job ID for this job.
  57812. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  57813. </doc>
  57814. </method>
  57815. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  57816. abstract="false" native="false" synchronized="false"
  57817. static="false" final="false" visibility="public"
  57818. deprecated="not deprecated">
  57819. <doc>
  57820. <![CDATA[@return the mapred ID of this job as assigned by the
  57821. mapred framework.]]>
  57822. </doc>
  57823. </method>
  57824. <method name="setAssignedJobID"
  57825. abstract="false" native="false" synchronized="false"
  57826. static="false" final="false" visibility="public"
  57827. deprecated="not deprecated">
  57828. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  57829. <doc>
  57830. <![CDATA[Set the mapred ID for this job as assigned by the
  57831. mapred framework.
  57832. @param mapredJobID the mapred job ID for this job.]]>
  57833. </doc>
  57834. </method>
  57835. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  57836. abstract="false" native="false" synchronized="false"
  57837. static="false" final="false" visibility="public"
  57838. deprecated="not deprecated">
  57839. <doc>
  57840. <![CDATA[@return the mapred job conf of this job]]>
  57841. </doc>
  57842. </method>
  57843. <method name="setJobConf"
  57844. abstract="false" native="false" synchronized="false"
  57845. static="false" final="false" visibility="public"
  57846. deprecated="not deprecated">
  57847. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  57848. <doc>
  57849. <![CDATA[Set the mapred job conf for this job.
  57850. @param jobConf the mapred job conf for this job.]]>
  57851. </doc>
  57852. </method>
  57853. <method name="getState" return="int"
  57854. abstract="false" native="false" synchronized="true"
  57855. static="false" final="false" visibility="public"
  57856. deprecated="not deprecated">
  57857. <doc>
  57858. <![CDATA[@return the state of this job]]>
  57859. </doc>
  57860. </method>
  57861. <method name="setState"
  57862. abstract="false" native="false" synchronized="true"
  57863. static="false" final="false" visibility="protected"
  57864. deprecated="not deprecated">
  57865. <param name="state" type="int"/>
  57866. <doc>
  57867. <![CDATA[Set the state for this job.
  57868. @param state the new state for this job.]]>
  57869. </doc>
  57870. </method>
  57871. <method name="getMessage" return="java.lang.String"
  57872. abstract="false" native="false" synchronized="false"
  57873. static="false" final="false" visibility="public"
  57874. deprecated="not deprecated">
  57875. <doc>
  57876. <![CDATA[@return the message of this job]]>
  57877. </doc>
  57878. </method>
  57879. <method name="setMessage"
  57880. abstract="false" native="false" synchronized="false"
  57881. static="false" final="false" visibility="public"
  57882. deprecated="not deprecated">
  57883. <param name="message" type="java.lang.String"/>
  57884. <doc>
  57885. <![CDATA[Set the message for this job.
  57886. @param message the message for this job.]]>
  57887. </doc>
  57888. </method>
  57889. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  57890. abstract="false" native="false" synchronized="false"
  57891. static="false" final="false" visibility="public"
  57892. deprecated="not deprecated">
  57893. <doc>
  57894. <![CDATA[@return the job client of this job]]>
  57895. </doc>
  57896. </method>
  57897. <method name="getDependingJobs" return="java.util.ArrayList"
  57898. abstract="false" native="false" synchronized="false"
  57899. static="false" final="false" visibility="public"
  57900. deprecated="not deprecated">
  57901. <doc>
  57902. <![CDATA[@return the depending jobs of this job]]>
  57903. </doc>
  57904. </method>
  57905. <method name="addDependingJob" return="boolean"
  57906. abstract="false" native="false" synchronized="true"
  57907. static="false" final="false" visibility="public"
  57908. deprecated="not deprecated">
  57909. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  57910. <doc>
  57911. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  57912. is waiting to run, not during or afterwards.
  57913. @param dependingJob Job that this Job depends on.
  57914. @return <tt>true</tt> if the Job was added.]]>
  57915. </doc>
  57916. </method>
  57917. <method name="isCompleted" return="boolean"
  57918. abstract="false" native="false" synchronized="false"
  57919. static="false" final="false" visibility="public"
  57920. deprecated="not deprecated">
  57921. <doc>
  57922. <![CDATA[@return true if this job is in a complete state]]>
  57923. </doc>
  57924. </method>
  57925. <method name="isReady" return="boolean"
  57926. abstract="false" native="false" synchronized="false"
  57927. static="false" final="false" visibility="public"
  57928. deprecated="not deprecated">
  57929. <doc>
  57930. <![CDATA[@return true if this job is in READY state]]>
  57931. </doc>
  57932. </method>
  57933. <method name="submit"
  57934. abstract="false" native="false" synchronized="true"
  57935. static="false" final="false" visibility="protected"
  57936. deprecated="not deprecated">
  57937. <doc>
  57938. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  57939. is successful, FAILED otherwise.]]>
  57940. </doc>
  57941. </method>
  57942. <field name="SUCCESS" type="int"
  57943. transient="false" volatile="false"
  57944. static="true" final="true" visibility="public"
  57945. deprecated="not deprecated">
  57946. </field>
  57947. <field name="WAITING" type="int"
  57948. transient="false" volatile="false"
  57949. static="true" final="true" visibility="public"
  57950. deprecated="not deprecated">
  57951. </field>
  57952. <field name="RUNNING" type="int"
  57953. transient="false" volatile="false"
  57954. static="true" final="true" visibility="public"
  57955. deprecated="not deprecated">
  57956. </field>
  57957. <field name="READY" type="int"
  57958. transient="false" volatile="false"
  57959. static="true" final="true" visibility="public"
  57960. deprecated="not deprecated">
  57961. </field>
  57962. <field name="FAILED" type="int"
  57963. transient="false" volatile="false"
  57964. static="true" final="true" visibility="public"
  57965. deprecated="not deprecated">
  57966. </field>
  57967. <field name="DEPENDENT_FAILED" type="int"
  57968. transient="false" volatile="false"
  57969. static="true" final="true" visibility="public"
  57970. deprecated="not deprecated">
  57971. </field>
  57972. <doc>
  57973. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  57974. the states of the depending jobs and updates the state of this job.
  57975. A job starts in the WAITING state. If it does not have any depending jobs, or
  57976. all of the depending jobs are in SUCCESS state, then the job state will become
  57977. READY. If any depending jobs fail, the job will fail too.
  57978. When in READY state, the job can be submitted to Hadoop for execution, with
  57979. the state changing into RUNNING state. From RUNNING state, the job can get into
  57980. SUCCESS or FAILED state, depending the status of the job execution.]]>
  57981. </doc>
  57982. </class>
  57983. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  57984. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  57985. <class name="JobControl" extends="java.lang.Object"
  57986. abstract="false"
  57987. static="false" final="false" visibility="public"
  57988. deprecated="not deprecated">
  57989. <implements name="java.lang.Runnable"/>
  57990. <constructor name="JobControl" type="java.lang.String"
  57991. static="false" final="false" visibility="public"
  57992. deprecated="not deprecated">
  57993. <doc>
  57994. <![CDATA[Construct a job control for a group of jobs.
  57995. @param groupName a name identifying this group]]>
  57996. </doc>
  57997. </constructor>
  57998. <method name="getWaitingJobs" return="java.util.ArrayList"
  57999. abstract="false" native="false" synchronized="false"
  58000. static="false" final="false" visibility="public"
  58001. deprecated="not deprecated">
  58002. <doc>
  58003. <![CDATA[@return the jobs in the waiting state]]>
  58004. </doc>
  58005. </method>
  58006. <method name="getRunningJobs" return="java.util.ArrayList"
  58007. abstract="false" native="false" synchronized="false"
  58008. static="false" final="false" visibility="public"
  58009. deprecated="not deprecated">
  58010. <doc>
  58011. <![CDATA[@return the jobs in the running state]]>
  58012. </doc>
  58013. </method>
  58014. <method name="getReadyJobs" return="java.util.ArrayList"
  58015. abstract="false" native="false" synchronized="false"
  58016. static="false" final="false" visibility="public"
  58017. deprecated="not deprecated">
  58018. <doc>
  58019. <![CDATA[@return the jobs in the ready state]]>
  58020. </doc>
  58021. </method>
  58022. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  58023. abstract="false" native="false" synchronized="false"
  58024. static="false" final="false" visibility="public"
  58025. deprecated="not deprecated">
  58026. <doc>
  58027. <![CDATA[@return the jobs in the success state]]>
  58028. </doc>
  58029. </method>
  58030. <method name="getFailedJobs" return="java.util.ArrayList"
  58031. abstract="false" native="false" synchronized="false"
  58032. static="false" final="false" visibility="public"
  58033. deprecated="not deprecated">
  58034. </method>
  58035. <method name="addJob" return="java.lang.String"
  58036. abstract="false" native="false" synchronized="true"
  58037. static="false" final="false" visibility="public"
  58038. deprecated="not deprecated">
  58039. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  58040. <doc>
  58041. <![CDATA[Add a new job.
  58042. @param aJob the new job]]>
  58043. </doc>
  58044. </method>
  58045. <method name="addJobs"
  58046. abstract="false" native="false" synchronized="false"
  58047. static="false" final="false" visibility="public"
  58048. deprecated="not deprecated">
  58049. <param name="jobs" type="java.util.Collection"/>
  58050. <doc>
  58051. <![CDATA[Add a collection of jobs
  58052. @param jobs]]>
  58053. </doc>
  58054. </method>
  58055. <method name="getState" return="int"
  58056. abstract="false" native="false" synchronized="false"
  58057. static="false" final="false" visibility="public"
  58058. deprecated="not deprecated">
  58059. <doc>
  58060. <![CDATA[@return the thread state]]>
  58061. </doc>
  58062. </method>
  58063. <method name="stop"
  58064. abstract="false" native="false" synchronized="false"
  58065. static="false" final="false" visibility="public"
  58066. deprecated="not deprecated">
  58067. <doc>
  58068. <![CDATA[set the thread state to STOPPING so that the
  58069. thread will stop when it wakes up.]]>
  58070. </doc>
  58071. </method>
  58072. <method name="suspend"
  58073. abstract="false" native="false" synchronized="false"
  58074. static="false" final="false" visibility="public"
  58075. deprecated="not deprecated">
  58076. <doc>
  58077. <![CDATA[suspend the running thread]]>
  58078. </doc>
  58079. </method>
  58080. <method name="resume"
  58081. abstract="false" native="false" synchronized="false"
  58082. static="false" final="false" visibility="public"
  58083. deprecated="not deprecated">
  58084. <doc>
  58085. <![CDATA[resume the suspended thread]]>
  58086. </doc>
  58087. </method>
  58088. <method name="allFinished" return="boolean"
  58089. abstract="false" native="false" synchronized="true"
  58090. static="false" final="false" visibility="public"
  58091. deprecated="not deprecated">
  58092. </method>
  58093. <method name="run"
  58094. abstract="false" native="false" synchronized="false"
  58095. static="false" final="false" visibility="public"
  58096. deprecated="not deprecated">
  58097. <doc>
  58098. <![CDATA[The main loop for the thread.
  58099. The loop does the following:
  58100. Check the states of the running jobs
  58101. Update the states of waiting jobs
  58102. Submit the jobs in ready state]]>
  58103. </doc>
  58104. </method>
  58105. <doc>
  58106. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  58107. the states of the jobs by placing them into different tables according to their
  58108. states.
  58109. This class provides APIs for the client app to add a job to the group and to get
  58110. the jobs in the group in different states. When a
  58111. job is added, an ID unique to the group is assigned to the job.
  58112. This class has a thread that submits jobs when they become ready, monitors the
  58113. states of the running jobs, and updates the states of jobs based on the state changes
  58114. of their depending jobs states. The class provides APIs for suspending/resuming
  58115. the thread,and for stopping the thread.]]>
  58116. </doc>
  58117. </class>
  58118. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  58119. </package>
  58120. <package name="org.apache.hadoop.mapred.join">
  58121. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  58122. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  58123. abstract="false"
  58124. static="false" final="false" visibility="public"
  58125. deprecated="not deprecated">
  58126. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58127. <constructor name="ArrayListBackedIterator"
  58128. static="false" final="false" visibility="public"
  58129. deprecated="not deprecated">
  58130. </constructor>
  58131. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  58132. static="false" final="false" visibility="public"
  58133. deprecated="not deprecated">
  58134. </constructor>
  58135. <method name="hasNext" return="boolean"
  58136. abstract="false" native="false" synchronized="false"
  58137. static="false" final="false" visibility="public"
  58138. deprecated="not deprecated">
  58139. </method>
  58140. <method name="next" return="boolean"
  58141. abstract="false" native="false" synchronized="false"
  58142. static="false" final="false" visibility="public"
  58143. deprecated="not deprecated">
  58144. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58145. <exception name="IOException" type="java.io.IOException"/>
  58146. </method>
  58147. <method name="replay" return="boolean"
  58148. abstract="false" native="false" synchronized="false"
  58149. static="false" final="false" visibility="public"
  58150. deprecated="not deprecated">
  58151. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58152. <exception name="IOException" type="java.io.IOException"/>
  58153. </method>
  58154. <method name="reset"
  58155. abstract="false" native="false" synchronized="false"
  58156. static="false" final="false" visibility="public"
  58157. deprecated="not deprecated">
  58158. </method>
  58159. <method name="add"
  58160. abstract="false" native="false" synchronized="false"
  58161. static="false" final="false" visibility="public"
  58162. deprecated="not deprecated">
  58163. <param name="item" type="org.apache.hadoop.io.Writable"/>
  58164. <exception name="IOException" type="java.io.IOException"/>
  58165. </method>
  58166. <method name="close"
  58167. abstract="false" native="false" synchronized="false"
  58168. static="false" final="false" visibility="public"
  58169. deprecated="not deprecated">
  58170. <exception name="IOException" type="java.io.IOException"/>
  58171. </method>
  58172. <method name="clear"
  58173. abstract="false" native="false" synchronized="false"
  58174. static="false" final="false" visibility="public"
  58175. deprecated="not deprecated">
  58176. </method>
  58177. <doc>
  58178. <![CDATA[This class provides an implementation of ResetableIterator. The
  58179. implementation uses an {@link java.util.ArrayList} to store elements
  58180. added to it, replaying them as requested.
  58181. Prefer {@link StreamBackedIterator}.]]>
  58182. </doc>
  58183. </class>
  58184. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  58185. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  58186. <interface name="ComposableInputFormat" abstract="true"
  58187. static="false" final="false" visibility="public"
  58188. deprecated="not deprecated">
  58189. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  58190. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  58191. abstract="false" native="false" synchronized="false"
  58192. static="false" final="false" visibility="public"
  58193. deprecated="not deprecated">
  58194. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  58195. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58196. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58197. <exception name="IOException" type="java.io.IOException"/>
  58198. </method>
  58199. <doc>
  58200. <![CDATA[Refinement of InputFormat requiring implementors to provide
  58201. ComposableRecordReader instead of RecordReader.]]>
  58202. </doc>
  58203. </interface>
  58204. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  58205. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58206. <interface name="ComposableRecordReader" abstract="true"
  58207. static="false" final="false" visibility="public"
  58208. deprecated="not deprecated">
  58209. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  58210. <implements name="java.lang.Comparable"/>
  58211. <method name="id" return="int"
  58212. abstract="false" native="false" synchronized="false"
  58213. static="false" final="false" visibility="public"
  58214. deprecated="not deprecated">
  58215. <doc>
  58216. <![CDATA[Return the position in the collector this class occupies.]]>
  58217. </doc>
  58218. </method>
  58219. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  58220. abstract="false" native="false" synchronized="false"
  58221. static="false" final="false" visibility="public"
  58222. deprecated="not deprecated">
  58223. <doc>
  58224. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  58225. </doc>
  58226. </method>
  58227. <method name="key"
  58228. abstract="false" native="false" synchronized="false"
  58229. static="false" final="false" visibility="public"
  58230. deprecated="not deprecated">
  58231. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58232. <exception name="IOException" type="java.io.IOException"/>
  58233. <doc>
  58234. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  58235. </doc>
  58236. </method>
  58237. <method name="hasNext" return="boolean"
  58238. abstract="false" native="false" synchronized="false"
  58239. static="false" final="false" visibility="public"
  58240. deprecated="not deprecated">
  58241. <doc>
  58242. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  58243. a call to next(K,V) will succeed.]]>
  58244. </doc>
  58245. </method>
  58246. <method name="skip"
  58247. abstract="false" native="false" synchronized="false"
  58248. static="false" final="false" visibility="public"
  58249. deprecated="not deprecated">
  58250. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58251. <exception name="IOException" type="java.io.IOException"/>
  58252. <doc>
  58253. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  58254. </doc>
  58255. </method>
  58256. <method name="accept"
  58257. abstract="false" native="false" synchronized="false"
  58258. static="false" final="false" visibility="public"
  58259. deprecated="not deprecated">
  58260. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  58261. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58262. <exception name="IOException" type="java.io.IOException"/>
  58263. <doc>
  58264. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  58265. them with the JoinCollector provided.]]>
  58266. </doc>
  58267. </method>
  58268. <doc>
  58269. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  58270. </doc>
  58271. </interface>
  58272. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58273. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58274. <class name="CompositeInputFormat" extends="java.lang.Object"
  58275. abstract="false"
  58276. static="false" final="false" visibility="public"
  58277. deprecated="not deprecated">
  58278. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  58279. <constructor name="CompositeInputFormat"
  58280. static="false" final="false" visibility="public"
  58281. deprecated="not deprecated">
  58282. </constructor>
  58283. <method name="setFormat"
  58284. abstract="false" native="false" synchronized="false"
  58285. static="false" final="false" visibility="public"
  58286. deprecated="not deprecated">
  58287. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58288. <exception name="IOException" type="java.io.IOException"/>
  58289. <doc>
  58290. <![CDATA[Interpret a given string as a composite expression.
  58291. {@code
  58292. func ::= <ident>([<func>,]*<func>)
  58293. func ::= tbl(<class>,"<path>")
  58294. class ::= @see java.lang.Class#forName(java.lang.String)
  58295. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  58296. }
  58297. Reads expression from the <tt>mapred.join.expr</tt> property and
  58298. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  58299. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  58300. InputFormat class listed.
  58301. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  58302. </doc>
  58303. </method>
  58304. <method name="addDefaults"
  58305. abstract="false" native="false" synchronized="false"
  58306. static="false" final="false" visibility="protected"
  58307. deprecated="not deprecated">
  58308. <doc>
  58309. <![CDATA[Adds the default set of identifiers to the parser.]]>
  58310. </doc>
  58311. </method>
  58312. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  58313. abstract="false" native="false" synchronized="false"
  58314. static="false" final="false" visibility="public"
  58315. deprecated="not deprecated">
  58316. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58317. <param name="numSplits" type="int"/>
  58318. <exception name="IOException" type="java.io.IOException"/>
  58319. <doc>
  58320. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  58321. ith split from each child to the ith composite split.]]>
  58322. </doc>
  58323. </method>
  58324. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  58325. abstract="false" native="false" synchronized="false"
  58326. static="false" final="false" visibility="public"
  58327. deprecated="not deprecated">
  58328. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  58329. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58330. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58331. <exception name="IOException" type="java.io.IOException"/>
  58332. <doc>
  58333. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  58334. as defined in the init expression.
  58335. The outermost join need only be composable, not necessarily a composite.
  58336. Mandating TupleWritable isn't strictly correct.]]>
  58337. </doc>
  58338. </method>
  58339. <method name="compose" 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="inf" type="java.lang.Class"/>
  58344. <param name="path" type="java.lang.String"/>
  58345. <doc>
  58346. <![CDATA[Convenience method for constructing composite formats.
  58347. Given InputFormat class (inf), path (p) return:
  58348. {@code tbl(<inf>, <p>) }]]>
  58349. </doc>
  58350. </method>
  58351. <method name="compose" return="java.lang.String"
  58352. abstract="false" native="false" synchronized="false"
  58353. static="true" final="false" visibility="public"
  58354. deprecated="not deprecated">
  58355. <param name="op" type="java.lang.String"/>
  58356. <param name="inf" type="java.lang.Class"/>
  58357. <param name="path" type="java.lang.String[]"/>
  58358. <doc>
  58359. <![CDATA[Convenience method for constructing composite formats.
  58360. Given operation (op), Object class (inf), set of paths (p) return:
  58361. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58362. </doc>
  58363. </method>
  58364. <method name="compose" return="java.lang.String"
  58365. abstract="false" native="false" synchronized="false"
  58366. static="true" final="false" visibility="public"
  58367. deprecated="not deprecated">
  58368. <param name="op" type="java.lang.String"/>
  58369. <param name="inf" type="java.lang.Class"/>
  58370. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  58371. <doc>
  58372. <![CDATA[Convenience method for constructing composite formats.
  58373. Given operation (op), Object class (inf), set of paths (p) return:
  58374. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58375. </doc>
  58376. </method>
  58377. <doc>
  58378. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  58379. and partitioned the same way.
  58380. @see #setFormat
  58381. A user may define new join types by setting the property
  58382. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  58383. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  58384. ComposableRecordReader.
  58385. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  58386. in the join.
  58387. @see JoinRecordReader
  58388. @see MultiFilterRecordReader]]>
  58389. </doc>
  58390. </class>
  58391. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58392. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  58393. <class name="CompositeInputSplit" extends="java.lang.Object"
  58394. abstract="false"
  58395. static="false" final="false" visibility="public"
  58396. deprecated="not deprecated">
  58397. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  58398. <constructor name="CompositeInputSplit"
  58399. static="false" final="false" visibility="public"
  58400. deprecated="not deprecated">
  58401. </constructor>
  58402. <constructor name="CompositeInputSplit" type="int"
  58403. static="false" final="false" visibility="public"
  58404. deprecated="not deprecated">
  58405. </constructor>
  58406. <method name="add"
  58407. abstract="false" native="false" synchronized="false"
  58408. static="false" final="false" visibility="public"
  58409. deprecated="not deprecated">
  58410. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  58411. <exception name="IOException" type="java.io.IOException"/>
  58412. <doc>
  58413. <![CDATA[Add an InputSplit to this collection.
  58414. @throws IOException If capacity was not specified during construction
  58415. or if capacity has been reached.]]>
  58416. </doc>
  58417. </method>
  58418. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  58419. abstract="false" native="false" synchronized="false"
  58420. static="false" final="false" visibility="public"
  58421. deprecated="not deprecated">
  58422. <param name="i" type="int"/>
  58423. <doc>
  58424. <![CDATA[Get ith child InputSplit.]]>
  58425. </doc>
  58426. </method>
  58427. <method name="getLength" return="long"
  58428. abstract="false" native="false" synchronized="false"
  58429. static="false" final="false" visibility="public"
  58430. deprecated="not deprecated">
  58431. <exception name="IOException" type="java.io.IOException"/>
  58432. <doc>
  58433. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  58434. </doc>
  58435. </method>
  58436. <method name="getLength" return="long"
  58437. abstract="false" native="false" synchronized="false"
  58438. static="false" final="false" visibility="public"
  58439. deprecated="not deprecated">
  58440. <param name="i" type="int"/>
  58441. <exception name="IOException" type="java.io.IOException"/>
  58442. <doc>
  58443. <![CDATA[Get the length of ith child InputSplit.]]>
  58444. </doc>
  58445. </method>
  58446. <method name="getLocations" return="java.lang.String[]"
  58447. abstract="false" native="false" synchronized="false"
  58448. static="false" final="false" visibility="public"
  58449. deprecated="not deprecated">
  58450. <exception name="IOException" type="java.io.IOException"/>
  58451. <doc>
  58452. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  58453. </doc>
  58454. </method>
  58455. <method name="getLocation" return="java.lang.String[]"
  58456. abstract="false" native="false" synchronized="false"
  58457. static="false" final="false" visibility="public"
  58458. deprecated="not deprecated">
  58459. <param name="i" type="int"/>
  58460. <exception name="IOException" type="java.io.IOException"/>
  58461. <doc>
  58462. <![CDATA[getLocations from ith InputSplit.]]>
  58463. </doc>
  58464. </method>
  58465. <method name="write"
  58466. abstract="false" native="false" synchronized="false"
  58467. static="false" final="false" visibility="public"
  58468. deprecated="not deprecated">
  58469. <param name="out" type="java.io.DataOutput"/>
  58470. <exception name="IOException" type="java.io.IOException"/>
  58471. <doc>
  58472. <![CDATA[Write splits in the following format.
  58473. {@code
  58474. <count><class1><class2>...<classn><split1><split2>...<splitn>
  58475. }]]>
  58476. </doc>
  58477. </method>
  58478. <method name="readFields"
  58479. abstract="false" native="false" synchronized="false"
  58480. static="false" final="false" visibility="public"
  58481. deprecated="not deprecated">
  58482. <param name="in" type="java.io.DataInput"/>
  58483. <exception name="IOException" type="java.io.IOException"/>
  58484. <doc>
  58485. <![CDATA[{@inheritDoc}
  58486. @throws IOException If the child InputSplit cannot be read, typically
  58487. for faliing access checks.]]>
  58488. </doc>
  58489. </method>
  58490. <doc>
  58491. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  58492. into this collection must have a public default constructor.]]>
  58493. </doc>
  58494. </class>
  58495. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  58496. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  58497. <class name="CompositeRecordReader" extends="java.lang.Object"
  58498. abstract="true"
  58499. static="false" final="false" visibility="public"
  58500. deprecated="not deprecated">
  58501. <implements name="org.apache.hadoop.conf.Configurable"/>
  58502. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  58503. static="false" final="false" visibility="public"
  58504. deprecated="not deprecated">
  58505. <exception name="IOException" type="java.io.IOException"/>
  58506. <doc>
  58507. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  58508. <tt>id</tt> in the parent reader.
  58509. The id of a root CompositeRecordReader is -1 by convention, but relying
  58510. on this is not recommended.]]>
  58511. </doc>
  58512. </constructor>
  58513. <method name="combine" return="boolean"
  58514. abstract="true" native="false" synchronized="false"
  58515. static="false" final="false" visibility="protected"
  58516. deprecated="not deprecated">
  58517. <param name="srcs" type="java.lang.Object[]"/>
  58518. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58519. </method>
  58520. <method name="id" return="int"
  58521. abstract="false" native="false" synchronized="false"
  58522. static="false" final="false" visibility="public"
  58523. deprecated="not deprecated">
  58524. <doc>
  58525. <![CDATA[Return the position in the collector this class occupies.]]>
  58526. </doc>
  58527. </method>
  58528. <method name="setConf"
  58529. abstract="false" native="false" synchronized="false"
  58530. static="false" final="false" visibility="public"
  58531. deprecated="not deprecated">
  58532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  58533. <doc>
  58534. <![CDATA[{@inheritDoc}]]>
  58535. </doc>
  58536. </method>
  58537. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  58538. abstract="false" native="false" synchronized="false"
  58539. static="false" final="false" visibility="public"
  58540. deprecated="not deprecated">
  58541. <doc>
  58542. <![CDATA[{@inheritDoc}]]>
  58543. </doc>
  58544. </method>
  58545. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  58546. abstract="false" native="false" synchronized="false"
  58547. static="false" final="false" visibility="protected"
  58548. deprecated="not deprecated">
  58549. <doc>
  58550. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  58551. </doc>
  58552. </method>
  58553. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  58554. abstract="false" native="false" synchronized="false"
  58555. static="false" final="false" visibility="protected"
  58556. deprecated="not deprecated">
  58557. <doc>
  58558. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  58559. composite.]]>
  58560. </doc>
  58561. </method>
  58562. <method name="add"
  58563. abstract="false" native="false" synchronized="false"
  58564. static="false" final="false" visibility="public"
  58565. deprecated="not deprecated">
  58566. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58567. <exception name="IOException" type="java.io.IOException"/>
  58568. <doc>
  58569. <![CDATA[Add a RecordReader to this collection.
  58570. The id() of a RecordReader determines where in the Tuple its
  58571. entry will appear. Adding RecordReaders with the same id has
  58572. undefined behavior.]]>
  58573. </doc>
  58574. </method>
  58575. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  58576. abstract="false" native="false" synchronized="false"
  58577. static="false" final="false" visibility="public"
  58578. deprecated="not deprecated">
  58579. <doc>
  58580. <![CDATA[Return the key for the current join or the value at the top of the
  58581. RecordReader heap.]]>
  58582. </doc>
  58583. </method>
  58584. <method name="key"
  58585. abstract="false" native="false" synchronized="false"
  58586. static="false" final="false" visibility="public"
  58587. deprecated="not deprecated">
  58588. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58589. <exception name="IOException" type="java.io.IOException"/>
  58590. <doc>
  58591. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  58592. </doc>
  58593. </method>
  58594. <method name="hasNext" return="boolean"
  58595. abstract="false" native="false" synchronized="false"
  58596. static="false" final="false" visibility="public"
  58597. deprecated="not deprecated">
  58598. <doc>
  58599. <![CDATA[Return true if it is possible that this could emit more values.]]>
  58600. </doc>
  58601. </method>
  58602. <method name="skip"
  58603. abstract="false" native="false" synchronized="false"
  58604. static="false" final="false" visibility="public"
  58605. deprecated="not deprecated">
  58606. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58607. <exception name="IOException" type="java.io.IOException"/>
  58608. <doc>
  58609. <![CDATA[Pass skip key to child RRs.]]>
  58610. </doc>
  58611. </method>
  58612. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58613. abstract="true" native="false" synchronized="false"
  58614. static="false" final="false" visibility="protected"
  58615. deprecated="not deprecated">
  58616. <doc>
  58617. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  58618. ultimately emitted from this join.]]>
  58619. </doc>
  58620. </method>
  58621. <method name="accept"
  58622. abstract="false" native="false" synchronized="false"
  58623. static="false" final="false" visibility="public"
  58624. deprecated="not deprecated">
  58625. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  58626. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58627. <exception name="IOException" type="java.io.IOException"/>
  58628. <doc>
  58629. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  58630. iterator over values it may emit.]]>
  58631. </doc>
  58632. </method>
  58633. <method name="fillJoinCollector"
  58634. abstract="false" native="false" synchronized="false"
  58635. static="false" final="false" visibility="protected"
  58636. deprecated="not deprecated">
  58637. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  58638. <exception name="IOException" type="java.io.IOException"/>
  58639. <doc>
  58640. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  58641. at that position in the JoinCollector.]]>
  58642. </doc>
  58643. </method>
  58644. <method name="compareTo" return="int"
  58645. abstract="false" native="false" synchronized="false"
  58646. static="false" final="false" visibility="public"
  58647. deprecated="not deprecated">
  58648. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58649. <doc>
  58650. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  58651. with that of another).]]>
  58652. </doc>
  58653. </method>
  58654. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  58655. abstract="false" native="false" synchronized="false"
  58656. static="false" final="false" visibility="public"
  58657. deprecated="not deprecated">
  58658. <doc>
  58659. <![CDATA[Create a new key value common to all child RRs.
  58660. @throws ClassCastException if key classes differ.]]>
  58661. </doc>
  58662. </method>
  58663. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  58664. abstract="false" native="false" synchronized="false"
  58665. static="false" final="false" visibility="protected"
  58666. deprecated="not deprecated">
  58667. <doc>
  58668. <![CDATA[Create a value to be used internally for joins.]]>
  58669. </doc>
  58670. </method>
  58671. <method name="getPos" return="long"
  58672. abstract="false" native="false" synchronized="false"
  58673. static="false" final="false" visibility="public"
  58674. deprecated="not deprecated">
  58675. <exception name="IOException" type="java.io.IOException"/>
  58676. <doc>
  58677. <![CDATA[Unsupported (returns zero in all cases).]]>
  58678. </doc>
  58679. </method>
  58680. <method name="close"
  58681. abstract="false" native="false" synchronized="false"
  58682. static="false" final="false" visibility="public"
  58683. deprecated="not deprecated">
  58684. <exception name="IOException" type="java.io.IOException"/>
  58685. <doc>
  58686. <![CDATA[Close all child RRs.]]>
  58687. </doc>
  58688. </method>
  58689. <method name="getProgress" return="float"
  58690. abstract="false" native="false" synchronized="false"
  58691. static="false" final="false" visibility="public"
  58692. deprecated="not deprecated">
  58693. <exception name="IOException" type="java.io.IOException"/>
  58694. <doc>
  58695. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  58696. </doc>
  58697. </method>
  58698. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  58699. transient="false" volatile="false"
  58700. static="false" final="true" visibility="protected"
  58701. deprecated="not deprecated">
  58702. </field>
  58703. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  58704. transient="false" volatile="false"
  58705. static="false" final="true" visibility="protected"
  58706. deprecated="not deprecated">
  58707. </field>
  58708. <doc>
  58709. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  58710. type and partitioning.]]>
  58711. </doc>
  58712. </class>
  58713. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  58714. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  58715. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  58716. abstract="false"
  58717. static="false" final="false" visibility="public"
  58718. deprecated="not deprecated">
  58719. <method name="combine" return="boolean"
  58720. abstract="false" native="false" synchronized="false"
  58721. static="false" final="false" visibility="protected"
  58722. deprecated="not deprecated">
  58723. <param name="srcs" type="java.lang.Object[]"/>
  58724. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58725. <doc>
  58726. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  58727. </doc>
  58728. </method>
  58729. <doc>
  58730. <![CDATA[Full inner join.]]>
  58731. </doc>
  58732. </class>
  58733. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  58734. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  58735. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  58736. abstract="true"
  58737. static="false" final="false" visibility="public"
  58738. deprecated="not deprecated">
  58739. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58740. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  58741. static="false" final="false" visibility="public"
  58742. deprecated="not deprecated">
  58743. <exception name="IOException" type="java.io.IOException"/>
  58744. </constructor>
  58745. <method name="next" return="boolean"
  58746. abstract="false" native="false" synchronized="false"
  58747. static="false" final="false" visibility="public"
  58748. deprecated="not deprecated">
  58749. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58750. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58751. <exception name="IOException" type="java.io.IOException"/>
  58752. <doc>
  58753. <![CDATA[Emit the next set of key, value pairs as defined by the child
  58754. RecordReaders and operation associated with this composite RR.]]>
  58755. </doc>
  58756. </method>
  58757. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  58758. abstract="false" native="false" synchronized="false"
  58759. static="false" final="false" visibility="public"
  58760. deprecated="not deprecated">
  58761. <doc>
  58762. <![CDATA[{@inheritDoc}]]>
  58763. </doc>
  58764. </method>
  58765. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58766. abstract="false" native="false" synchronized="false"
  58767. static="false" final="false" visibility="protected"
  58768. deprecated="not deprecated">
  58769. <doc>
  58770. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  58771. </doc>
  58772. </method>
  58773. <doc>
  58774. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  58775. </doc>
  58776. </class>
  58777. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  58778. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  58779. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  58780. abstract="false"
  58781. static="false" final="false" visibility="protected"
  58782. deprecated="not deprecated">
  58783. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58784. <constructor name="JoinRecordReader.JoinDelegationIterator"
  58785. static="false" final="false" visibility="protected"
  58786. deprecated="not deprecated">
  58787. </constructor>
  58788. <method name="hasNext" return="boolean"
  58789. abstract="false" native="false" synchronized="false"
  58790. static="false" final="false" visibility="public"
  58791. deprecated="not deprecated">
  58792. </method>
  58793. <method name="next" return="boolean"
  58794. abstract="false" native="false" synchronized="false"
  58795. static="false" final="false" visibility="public"
  58796. deprecated="not deprecated">
  58797. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58798. <exception name="IOException" type="java.io.IOException"/>
  58799. </method>
  58800. <method name="replay" return="boolean"
  58801. abstract="false" native="false" synchronized="false"
  58802. static="false" final="false" visibility="public"
  58803. deprecated="not deprecated">
  58804. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58805. <exception name="IOException" type="java.io.IOException"/>
  58806. </method>
  58807. <method name="reset"
  58808. abstract="false" native="false" synchronized="false"
  58809. static="false" final="false" visibility="public"
  58810. deprecated="not deprecated">
  58811. </method>
  58812. <method name="add"
  58813. abstract="false" native="false" synchronized="false"
  58814. static="false" final="false" visibility="public"
  58815. deprecated="not deprecated">
  58816. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58817. <exception name="IOException" type="java.io.IOException"/>
  58818. </method>
  58819. <method name="close"
  58820. abstract="false" native="false" synchronized="false"
  58821. static="false" final="false" visibility="public"
  58822. deprecated="not deprecated">
  58823. <exception name="IOException" type="java.io.IOException"/>
  58824. </method>
  58825. <method name="clear"
  58826. abstract="false" native="false" synchronized="false"
  58827. static="false" final="false" visibility="public"
  58828. deprecated="not deprecated">
  58829. </method>
  58830. <doc>
  58831. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  58832. provide an iterator proxy wrapping its operation.]]>
  58833. </doc>
  58834. </class>
  58835. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  58836. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  58837. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  58838. abstract="true"
  58839. static="false" final="false" visibility="public"
  58840. deprecated="not deprecated">
  58841. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58842. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  58843. static="false" final="false" visibility="public"
  58844. deprecated="not deprecated">
  58845. <exception name="IOException" type="java.io.IOException"/>
  58846. </constructor>
  58847. <method name="emit" return="org.apache.hadoop.io.Writable"
  58848. abstract="true" native="false" synchronized="false"
  58849. static="false" final="false" visibility="protected"
  58850. deprecated="not deprecated">
  58851. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58852. <exception name="IOException" type="java.io.IOException"/>
  58853. <doc>
  58854. <![CDATA[For each tuple emitted, return a value (typically one of the values
  58855. in the tuple).
  58856. Modifying the Writables in the tuple is permitted and unlikely to affect
  58857. join behavior in most cases, but it is not recommended. It's safer to
  58858. clone first.]]>
  58859. </doc>
  58860. </method>
  58861. <method name="combine" return="boolean"
  58862. abstract="false" native="false" synchronized="false"
  58863. static="false" final="false" visibility="protected"
  58864. deprecated="not deprecated">
  58865. <param name="srcs" type="java.lang.Object[]"/>
  58866. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58867. <doc>
  58868. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  58869. collector (the outer join of child RRs).]]>
  58870. </doc>
  58871. </method>
  58872. <method name="next" return="boolean"
  58873. abstract="false" native="false" synchronized="false"
  58874. static="false" final="false" visibility="public"
  58875. deprecated="not deprecated">
  58876. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58877. <param name="value" type="org.apache.hadoop.io.Writable"/>
  58878. <exception name="IOException" type="java.io.IOException"/>
  58879. <doc>
  58880. <![CDATA[{@inheritDoc}]]>
  58881. </doc>
  58882. </method>
  58883. <method name="createValue" return="org.apache.hadoop.io.Writable"
  58884. abstract="false" native="false" synchronized="false"
  58885. static="false" final="false" visibility="public"
  58886. deprecated="not deprecated">
  58887. <doc>
  58888. <![CDATA[{@inheritDoc}]]>
  58889. </doc>
  58890. </method>
  58891. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58892. abstract="false" native="false" synchronized="false"
  58893. static="false" final="false" visibility="protected"
  58894. deprecated="not deprecated">
  58895. <doc>
  58896. <![CDATA[Return an iterator returning a single value from the tuple.
  58897. @see MultiFilterDelegationIterator]]>
  58898. </doc>
  58899. </method>
  58900. <doc>
  58901. <![CDATA[Base class for Composite join returning values derived from multiple
  58902. sources, but generally not tuples.]]>
  58903. </doc>
  58904. </class>
  58905. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  58906. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  58907. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  58908. abstract="false"
  58909. static="false" final="false" visibility="protected"
  58910. deprecated="not deprecated">
  58911. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58912. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  58913. static="false" final="false" visibility="protected"
  58914. deprecated="not deprecated">
  58915. </constructor>
  58916. <method name="hasNext" return="boolean"
  58917. abstract="false" native="false" synchronized="false"
  58918. static="false" final="false" visibility="public"
  58919. deprecated="not deprecated">
  58920. </method>
  58921. <method name="next" return="boolean"
  58922. abstract="false" native="false" synchronized="false"
  58923. static="false" final="false" visibility="public"
  58924. deprecated="not deprecated">
  58925. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58926. <exception name="IOException" type="java.io.IOException"/>
  58927. </method>
  58928. <method name="replay" return="boolean"
  58929. abstract="false" native="false" synchronized="false"
  58930. static="false" final="false" visibility="public"
  58931. deprecated="not deprecated">
  58932. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58933. <exception name="IOException" type="java.io.IOException"/>
  58934. </method>
  58935. <method name="reset"
  58936. abstract="false" native="false" synchronized="false"
  58937. static="false" final="false" visibility="public"
  58938. deprecated="not deprecated">
  58939. </method>
  58940. <method name="add"
  58941. abstract="false" native="false" synchronized="false"
  58942. static="false" final="false" visibility="public"
  58943. deprecated="not deprecated">
  58944. <param name="item" type="org.apache.hadoop.io.Writable"/>
  58945. <exception name="IOException" type="java.io.IOException"/>
  58946. </method>
  58947. <method name="close"
  58948. abstract="false" native="false" synchronized="false"
  58949. static="false" final="false" visibility="public"
  58950. deprecated="not deprecated">
  58951. <exception name="IOException" type="java.io.IOException"/>
  58952. </method>
  58953. <method name="clear"
  58954. abstract="false" native="false" synchronized="false"
  58955. static="false" final="false" visibility="public"
  58956. deprecated="not deprecated">
  58957. </method>
  58958. <doc>
  58959. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  58960. </doc>
  58961. </class>
  58962. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  58963. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  58964. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  58965. abstract="false"
  58966. static="false" final="false" visibility="public"
  58967. deprecated="not deprecated">
  58968. <method name="combine" return="boolean"
  58969. abstract="false" native="false" synchronized="false"
  58970. static="false" final="false" visibility="protected"
  58971. deprecated="not deprecated">
  58972. <param name="srcs" type="java.lang.Object[]"/>
  58973. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58974. <doc>
  58975. <![CDATA[Emit everything from the collector.]]>
  58976. </doc>
  58977. </method>
  58978. <doc>
  58979. <![CDATA[Full outer join.]]>
  58980. </doc>
  58981. </class>
  58982. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  58983. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  58984. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  58985. abstract="false"
  58986. static="false" final="false" visibility="public"
  58987. deprecated="not deprecated">
  58988. <method name="emit" return="org.apache.hadoop.io.Writable"
  58989. abstract="false" native="false" synchronized="false"
  58990. static="false" final="false" visibility="protected"
  58991. deprecated="not deprecated">
  58992. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58993. <doc>
  58994. <![CDATA[Emit the value with the highest position in the tuple.]]>
  58995. </doc>
  58996. </method>
  58997. <method name="fillJoinCollector"
  58998. abstract="false" native="false" synchronized="false"
  58999. static="false" final="false" visibility="protected"
  59000. deprecated="not deprecated">
  59001. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  59002. <exception name="IOException" type="java.io.IOException"/>
  59003. <doc>
  59004. <![CDATA[Instead of filling the JoinCollector with iterators from all
  59005. data sources, fill only the rightmost for this key.
  59006. This not only saves space by discarding the other sources, but
  59007. it also emits the number of key-value pairs in the preferred
  59008. RecordReader instead of repeating that stream n times, where
  59009. n is the cardinality of the cross product of the discarded
  59010. streams for the given key.]]>
  59011. </doc>
  59012. </method>
  59013. <doc>
  59014. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  59015. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  59016. from S3 over S2, and values from S2 over S1 for all keys
  59017. emitted from all sources.]]>
  59018. </doc>
  59019. </class>
  59020. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  59021. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  59022. <class name="Parser" extends="java.lang.Object"
  59023. abstract="false"
  59024. static="false" final="false" visibility="public"
  59025. deprecated="not deprecated">
  59026. <constructor name="Parser"
  59027. static="false" final="false" visibility="public"
  59028. deprecated="not deprecated">
  59029. </constructor>
  59030. <doc>
  59031. <![CDATA[Very simple shift-reduce parser for join expressions.
  59032. This should be sufficient for the user extension permitted now, but ought to
  59033. be replaced with a parser generator if more complex grammars are supported.
  59034. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  59035. of formals requires a different internal node type, which is responsible for
  59036. interpreting the list of tokens it receives. This is sufficient for the
  59037. current grammar, but it has several annoying properties that might inhibit
  59038. extension. In particular, parenthesis are always function calls; an
  59039. algebraic or filter grammar would not only require a node type, but must
  59040. also work around the internals of this parser.
  59041. For most other cases, adding classes to the hierarchy- particularly by
  59042. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  59043. straightforward. One need only override the relevant method(s) (usually only
  59044. {@link CompositeRecordReader#combine}) and include a property to map its
  59045. value to an identifier in the parser.]]>
  59046. </doc>
  59047. </class>
  59048. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  59049. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  59050. <class name="Parser.Node" extends="java.lang.Object"
  59051. abstract="true"
  59052. static="true" final="false" visibility="public"
  59053. deprecated="not deprecated">
  59054. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  59055. <constructor name="Parser.Node" type="java.lang.String"
  59056. static="false" final="false" visibility="protected"
  59057. deprecated="not deprecated">
  59058. </constructor>
  59059. <method name="addIdentifier"
  59060. abstract="false" native="false" synchronized="false"
  59061. static="true" final="false" visibility="protected"
  59062. deprecated="not deprecated">
  59063. <param name="ident" type="java.lang.String"/>
  59064. <param name="mcstrSig" type="java.lang.Class[]"/>
  59065. <param name="nodetype" type="java.lang.Class"/>
  59066. <param name="cl" type="java.lang.Class"/>
  59067. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  59068. <doc>
  59069. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  59070. tree and to the ComposableRecordReader to be created, including the
  59071. formals required to invoke the constructor.
  59072. The nodetype and constructor signature should be filled in from the
  59073. child node.]]>
  59074. </doc>
  59075. </method>
  59076. <method name="setID"
  59077. abstract="false" native="false" synchronized="false"
  59078. static="false" final="false" visibility="protected"
  59079. deprecated="not deprecated">
  59080. <param name="id" type="int"/>
  59081. </method>
  59082. <method name="setKeyComparator"
  59083. abstract="false" native="false" synchronized="false"
  59084. static="false" final="false" visibility="protected"
  59085. deprecated="not deprecated">
  59086. <param name="cmpcl" type="java.lang.Class"/>
  59087. </method>
  59088. <field name="rrCstrMap" type="java.util.Map"
  59089. transient="false" volatile="false"
  59090. static="true" final="true" visibility="protected"
  59091. deprecated="not deprecated">
  59092. </field>
  59093. <field name="id" type="int"
  59094. transient="false" volatile="false"
  59095. static="false" final="false" visibility="protected"
  59096. deprecated="not deprecated">
  59097. </field>
  59098. <field name="ident" type="java.lang.String"
  59099. transient="false" volatile="false"
  59100. static="false" final="false" visibility="protected"
  59101. deprecated="not deprecated">
  59102. </field>
  59103. <field name="cmpcl" type="java.lang.Class"
  59104. transient="false" volatile="false"
  59105. static="false" final="false" visibility="protected"
  59106. deprecated="not deprecated">
  59107. </field>
  59108. </class>
  59109. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  59110. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  59111. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59112. abstract="false"
  59113. static="true" final="false" visibility="public"
  59114. deprecated="not deprecated">
  59115. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  59116. abstract="false" native="false" synchronized="false"
  59117. static="false" final="false" visibility="public"
  59118. deprecated="not deprecated">
  59119. </method>
  59120. </class>
  59121. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  59122. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  59123. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59124. abstract="false"
  59125. static="true" final="false" visibility="public"
  59126. deprecated="not deprecated">
  59127. <constructor name="Parser.NumToken" type="double"
  59128. static="false" final="false" visibility="public"
  59129. deprecated="not deprecated">
  59130. </constructor>
  59131. <method name="getNum" return="double"
  59132. abstract="false" native="false" synchronized="false"
  59133. static="false" final="false" visibility="public"
  59134. deprecated="not deprecated">
  59135. </method>
  59136. </class>
  59137. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  59138. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  59139. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59140. abstract="false"
  59141. static="true" final="false" visibility="public"
  59142. deprecated="not deprecated">
  59143. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  59144. static="false" final="false" visibility="public"
  59145. deprecated="not deprecated">
  59146. </constructor>
  59147. <method name="getStr" return="java.lang.String"
  59148. abstract="false" native="false" synchronized="false"
  59149. static="false" final="false" visibility="public"
  59150. deprecated="not deprecated">
  59151. </method>
  59152. </class>
  59153. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  59154. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  59155. <class name="Parser.Token" extends="java.lang.Object"
  59156. abstract="false"
  59157. static="true" final="false" visibility="public"
  59158. deprecated="not deprecated">
  59159. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  59160. abstract="false" native="false" synchronized="false"
  59161. static="false" final="false" visibility="public"
  59162. deprecated="not deprecated">
  59163. </method>
  59164. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  59165. abstract="false" native="false" synchronized="false"
  59166. static="false" final="false" visibility="public"
  59167. deprecated="not deprecated">
  59168. <exception name="IOException" type="java.io.IOException"/>
  59169. </method>
  59170. <method name="getNum" return="double"
  59171. abstract="false" native="false" synchronized="false"
  59172. static="false" final="false" visibility="public"
  59173. deprecated="not deprecated">
  59174. <exception name="IOException" type="java.io.IOException"/>
  59175. </method>
  59176. <method name="getStr" return="java.lang.String"
  59177. abstract="false" native="false" synchronized="false"
  59178. static="false" final="false" visibility="public"
  59179. deprecated="not deprecated">
  59180. <exception name="IOException" type="java.io.IOException"/>
  59181. </method>
  59182. <doc>
  59183. <![CDATA[Tagged-union type for tokens from the join expression.
  59184. @see Parser.TType]]>
  59185. </doc>
  59186. </class>
  59187. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  59188. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  59189. <class name="Parser.TType" extends="java.lang.Enum"
  59190. abstract="false"
  59191. static="true" final="true" visibility="public"
  59192. deprecated="not deprecated">
  59193. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  59194. abstract="false" native="false" synchronized="false"
  59195. static="true" final="false" visibility="public"
  59196. deprecated="not deprecated">
  59197. </method>
  59198. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  59199. abstract="false" native="false" synchronized="false"
  59200. static="true" final="false" visibility="public"
  59201. deprecated="not deprecated">
  59202. <param name="name" type="java.lang.String"/>
  59203. </method>
  59204. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  59205. transient="false" volatile="false"
  59206. static="true" final="true" visibility="public"
  59207. deprecated="not deprecated">
  59208. </field>
  59209. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59210. transient="false" volatile="false"
  59211. static="true" final="true" visibility="public"
  59212. deprecated="not deprecated">
  59213. </field>
  59214. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  59215. transient="false" volatile="false"
  59216. static="true" final="true" visibility="public"
  59217. deprecated="not deprecated">
  59218. </field>
  59219. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59220. transient="false" volatile="false"
  59221. static="true" final="true" visibility="public"
  59222. deprecated="not deprecated">
  59223. </field>
  59224. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59225. transient="false" volatile="false"
  59226. static="true" final="true" visibility="public"
  59227. deprecated="not deprecated">
  59228. </field>
  59229. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59230. transient="false" volatile="false"
  59231. static="true" final="true" visibility="public"
  59232. deprecated="not deprecated">
  59233. </field>
  59234. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  59235. transient="false" volatile="false"
  59236. static="true" final="true" visibility="public"
  59237. deprecated="not deprecated">
  59238. </field>
  59239. </class>
  59240. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  59241. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59242. <interface name="ResetableIterator" abstract="true"
  59243. static="false" final="false" visibility="public"
  59244. deprecated="not deprecated">
  59245. <method name="hasNext" return="boolean"
  59246. abstract="false" native="false" synchronized="false"
  59247. static="false" final="false" visibility="public"
  59248. deprecated="not deprecated">
  59249. <doc>
  59250. <![CDATA[True if a call to next may return a value. This is permitted false
  59251. positives, but not false negatives.]]>
  59252. </doc>
  59253. </method>
  59254. <method name="next" return="boolean"
  59255. abstract="false" native="false" synchronized="false"
  59256. static="false" final="false" visibility="public"
  59257. deprecated="not deprecated">
  59258. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59259. <exception name="IOException" type="java.io.IOException"/>
  59260. <doc>
  59261. <![CDATA[Assign next value to actual.
  59262. It is required that elements added to a ResetableIterator be returned in
  59263. the same order after a call to {@link #reset} (FIFO).
  59264. Note that a call to this may fail for nested joins (i.e. more elements
  59265. available, but none satisfying the constraints of the join)]]>
  59266. </doc>
  59267. </method>
  59268. <method name="replay" return="boolean"
  59269. abstract="false" native="false" synchronized="false"
  59270. static="false" final="false" visibility="public"
  59271. deprecated="not deprecated">
  59272. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59273. <exception name="IOException" type="java.io.IOException"/>
  59274. <doc>
  59275. <![CDATA[Assign last value returned to actual.]]>
  59276. </doc>
  59277. </method>
  59278. <method name="reset"
  59279. abstract="false" native="false" synchronized="false"
  59280. static="false" final="false" visibility="public"
  59281. deprecated="not deprecated">
  59282. <doc>
  59283. <![CDATA[Set iterator to return to the start of its range. Must be called after
  59284. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  59285. </doc>
  59286. </method>
  59287. <method name="add"
  59288. abstract="false" native="false" synchronized="false"
  59289. static="false" final="false" visibility="public"
  59290. deprecated="not deprecated">
  59291. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59292. <exception name="IOException" type="java.io.IOException"/>
  59293. <doc>
  59294. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  59295. </doc>
  59296. </method>
  59297. <method name="close"
  59298. abstract="false" native="false" synchronized="false"
  59299. static="false" final="false" visibility="public"
  59300. deprecated="not deprecated">
  59301. <exception name="IOException" type="java.io.IOException"/>
  59302. <doc>
  59303. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  59304. after calling close has undefined behavior.]]>
  59305. </doc>
  59306. </method>
  59307. <method name="clear"
  59308. abstract="false" native="false" synchronized="false"
  59309. static="false" final="false" visibility="public"
  59310. deprecated="not deprecated">
  59311. <doc>
  59312. <![CDATA[Close datasources, but do not release internal resources. Calling this
  59313. method should permit the object to be reused with a different datasource.]]>
  59314. </doc>
  59315. </method>
  59316. <doc>
  59317. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  59318. added to it directly.
  59319. Note that this does not extend {@link java.util.Iterator}.]]>
  59320. </doc>
  59321. </interface>
  59322. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59323. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59324. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  59325. abstract="false"
  59326. static="true" final="false" visibility="public"
  59327. deprecated="not deprecated">
  59328. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59329. <constructor name="ResetableIterator.EMPTY"
  59330. static="false" final="false" visibility="public"
  59331. deprecated="not deprecated">
  59332. </constructor>
  59333. <method name="hasNext" return="boolean"
  59334. abstract="false" native="false" synchronized="false"
  59335. static="false" final="false" visibility="public"
  59336. deprecated="not deprecated">
  59337. </method>
  59338. <method name="reset"
  59339. abstract="false" native="false" synchronized="false"
  59340. static="false" final="false" visibility="public"
  59341. deprecated="not deprecated">
  59342. </method>
  59343. <method name="close"
  59344. abstract="false" native="false" synchronized="false"
  59345. static="false" final="false" visibility="public"
  59346. deprecated="not deprecated">
  59347. <exception name="IOException" type="java.io.IOException"/>
  59348. </method>
  59349. <method name="clear"
  59350. abstract="false" native="false" synchronized="false"
  59351. static="false" final="false" visibility="public"
  59352. deprecated="not deprecated">
  59353. </method>
  59354. <method name="next" return="boolean"
  59355. abstract="false" native="false" synchronized="false"
  59356. static="false" final="false" visibility="public"
  59357. deprecated="not deprecated">
  59358. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59359. <exception name="IOException" type="java.io.IOException"/>
  59360. </method>
  59361. <method name="replay" return="boolean"
  59362. abstract="false" native="false" synchronized="false"
  59363. static="false" final="false" visibility="public"
  59364. deprecated="not deprecated">
  59365. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59366. <exception name="IOException" type="java.io.IOException"/>
  59367. </method>
  59368. <method name="add"
  59369. abstract="false" native="false" synchronized="false"
  59370. static="false" final="false" visibility="public"
  59371. deprecated="not deprecated">
  59372. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59373. <exception name="IOException" type="java.io.IOException"/>
  59374. </method>
  59375. </class>
  59376. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59377. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  59378. <class name="StreamBackedIterator" extends="java.lang.Object"
  59379. abstract="false"
  59380. static="false" final="false" visibility="public"
  59381. deprecated="not deprecated">
  59382. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59383. <constructor name="StreamBackedIterator"
  59384. static="false" final="false" visibility="public"
  59385. deprecated="not deprecated">
  59386. </constructor>
  59387. <method name="hasNext" return="boolean"
  59388. abstract="false" native="false" synchronized="false"
  59389. static="false" final="false" visibility="public"
  59390. deprecated="not deprecated">
  59391. </method>
  59392. <method name="next" return="boolean"
  59393. abstract="false" native="false" synchronized="false"
  59394. static="false" final="false" visibility="public"
  59395. deprecated="not deprecated">
  59396. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59397. <exception name="IOException" type="java.io.IOException"/>
  59398. </method>
  59399. <method name="replay" return="boolean"
  59400. abstract="false" native="false" synchronized="false"
  59401. static="false" final="false" visibility="public"
  59402. deprecated="not deprecated">
  59403. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59404. <exception name="IOException" type="java.io.IOException"/>
  59405. </method>
  59406. <method name="reset"
  59407. abstract="false" native="false" synchronized="false"
  59408. static="false" final="false" visibility="public"
  59409. deprecated="not deprecated">
  59410. </method>
  59411. <method name="add"
  59412. abstract="false" native="false" synchronized="false"
  59413. static="false" final="false" visibility="public"
  59414. deprecated="not deprecated">
  59415. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59416. <exception name="IOException" type="java.io.IOException"/>
  59417. </method>
  59418. <method name="close"
  59419. abstract="false" native="false" synchronized="false"
  59420. static="false" final="false" visibility="public"
  59421. deprecated="not deprecated">
  59422. <exception name="IOException" type="java.io.IOException"/>
  59423. </method>
  59424. <method name="clear"
  59425. abstract="false" native="false" synchronized="false"
  59426. static="false" final="false" visibility="public"
  59427. deprecated="not deprecated">
  59428. </method>
  59429. <doc>
  59430. <![CDATA[This class provides an implementation of ResetableIterator. This
  59431. implementation uses a byte array to store elements added to it.]]>
  59432. </doc>
  59433. </class>
  59434. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  59435. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  59436. <class name="TupleWritable" extends="java.lang.Object"
  59437. abstract="false"
  59438. static="false" final="false" visibility="public"
  59439. deprecated="not deprecated">
  59440. <implements name="org.apache.hadoop.io.Writable"/>
  59441. <implements name="java.lang.Iterable"/>
  59442. <constructor name="TupleWritable"
  59443. static="false" final="false" visibility="public"
  59444. deprecated="not deprecated">
  59445. <doc>
  59446. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  59447. </doc>
  59448. </constructor>
  59449. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  59450. static="false" final="false" visibility="public"
  59451. deprecated="not deprecated">
  59452. <doc>
  59453. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  59454. &quot;written&quot; values.]]>
  59455. </doc>
  59456. </constructor>
  59457. <method name="has" return="boolean"
  59458. abstract="false" native="false" synchronized="false"
  59459. static="false" final="false" visibility="public"
  59460. deprecated="not deprecated">
  59461. <param name="i" type="int"/>
  59462. <doc>
  59463. <![CDATA[Return true if tuple has an element at the position provided.]]>
  59464. </doc>
  59465. </method>
  59466. <method name="get" return="org.apache.hadoop.io.Writable"
  59467. abstract="false" native="false" synchronized="false"
  59468. static="false" final="false" visibility="public"
  59469. deprecated="not deprecated">
  59470. <param name="i" type="int"/>
  59471. <doc>
  59472. <![CDATA[Get ith Writable from Tuple.]]>
  59473. </doc>
  59474. </method>
  59475. <method name="size" return="int"
  59476. abstract="false" native="false" synchronized="false"
  59477. static="false" final="false" visibility="public"
  59478. deprecated="not deprecated">
  59479. <doc>
  59480. <![CDATA[The number of children in this Tuple.]]>
  59481. </doc>
  59482. </method>
  59483. <method name="equals" return="boolean"
  59484. abstract="false" native="false" synchronized="false"
  59485. static="false" final="false" visibility="public"
  59486. deprecated="not deprecated">
  59487. <param name="other" type="java.lang.Object"/>
  59488. <doc>
  59489. <![CDATA[{@inheritDoc}]]>
  59490. </doc>
  59491. </method>
  59492. <method name="hashCode" return="int"
  59493. abstract="false" native="false" synchronized="false"
  59494. static="false" final="false" visibility="public"
  59495. deprecated="not deprecated">
  59496. </method>
  59497. <method name="iterator" return="java.util.Iterator"
  59498. abstract="false" native="false" synchronized="false"
  59499. static="false" final="false" visibility="public"
  59500. deprecated="not deprecated">
  59501. <doc>
  59502. <![CDATA[Return an iterator over the elements in this tuple.
  59503. Note that this doesn't flatten the tuple; one may receive tuples
  59504. from this iterator.]]>
  59505. </doc>
  59506. </method>
  59507. <method name="toString" return="java.lang.String"
  59508. abstract="false" native="false" synchronized="false"
  59509. static="false" final="false" visibility="public"
  59510. deprecated="not deprecated">
  59511. <doc>
  59512. <![CDATA[Convert Tuple to String as in the following.
  59513. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  59514. </doc>
  59515. </method>
  59516. <method name="write"
  59517. abstract="false" native="false" synchronized="false"
  59518. static="false" final="false" visibility="public"
  59519. deprecated="not deprecated">
  59520. <param name="out" type="java.io.DataOutput"/>
  59521. <exception name="IOException" type="java.io.IOException"/>
  59522. <doc>
  59523. <![CDATA[Writes each Writable to <code>out</code>.
  59524. TupleWritable format:
  59525. {@code
  59526. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  59527. }]]>
  59528. </doc>
  59529. </method>
  59530. <method name="readFields"
  59531. abstract="false" native="false" synchronized="false"
  59532. static="false" final="false" visibility="public"
  59533. deprecated="not deprecated">
  59534. <param name="in" type="java.io.DataInput"/>
  59535. <exception name="IOException" type="java.io.IOException"/>
  59536. <doc>
  59537. <![CDATA[{@inheritDoc}]]>
  59538. </doc>
  59539. </method>
  59540. <doc>
  59541. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  59542. This is *not* a general-purpose tuple type. In almost all cases, users are
  59543. encouraged to implement their own serializable types, which can perform
  59544. better validation and provide more efficient encodings than this class is
  59545. capable. TupleWritable relies on the join framework for type safety and
  59546. assumes its instances will rarely be persisted, assumptions not only
  59547. incompatible with, but contrary to the general case.
  59548. @see org.apache.hadoop.io.Writable]]>
  59549. </doc>
  59550. </class>
  59551. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  59552. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  59553. <class name="WrappedRecordReader" extends="java.lang.Object"
  59554. abstract="false"
  59555. static="false" final="false" visibility="public"
  59556. deprecated="not deprecated">
  59557. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59558. <method name="id" return="int"
  59559. abstract="false" native="false" synchronized="false"
  59560. static="false" final="false" visibility="public"
  59561. deprecated="not deprecated">
  59562. <doc>
  59563. <![CDATA[{@inheritDoc}]]>
  59564. </doc>
  59565. </method>
  59566. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  59567. abstract="false" native="false" synchronized="false"
  59568. static="false" final="false" visibility="public"
  59569. deprecated="not deprecated">
  59570. <doc>
  59571. <![CDATA[Return the key at the head of this RR.]]>
  59572. </doc>
  59573. </method>
  59574. <method name="key"
  59575. abstract="false" native="false" synchronized="false"
  59576. static="false" final="false" visibility="public"
  59577. deprecated="not deprecated">
  59578. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  59579. <exception name="IOException" type="java.io.IOException"/>
  59580. <doc>
  59581. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  59582. </doc>
  59583. </method>
  59584. <method name="hasNext" return="boolean"
  59585. abstract="false" native="false" synchronized="false"
  59586. static="false" final="false" visibility="public"
  59587. deprecated="not deprecated">
  59588. <doc>
  59589. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  59590. is exhausted.]]>
  59591. </doc>
  59592. </method>
  59593. <method name="skip"
  59594. abstract="false" native="false" synchronized="false"
  59595. static="false" final="false" visibility="public"
  59596. deprecated="not deprecated">
  59597. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59598. <exception name="IOException" type="java.io.IOException"/>
  59599. <doc>
  59600. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  59601. </doc>
  59602. </method>
  59603. <method name="next" return="boolean"
  59604. abstract="false" native="false" synchronized="false"
  59605. static="false" final="false" visibility="protected"
  59606. deprecated="not deprecated">
  59607. <exception name="IOException" type="java.io.IOException"/>
  59608. <doc>
  59609. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  59610. the RR and this are exhausted.]]>
  59611. </doc>
  59612. </method>
  59613. <method name="accept"
  59614. abstract="false" native="false" synchronized="false"
  59615. static="false" final="false" visibility="public"
  59616. deprecated="not deprecated">
  59617. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  59618. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59619. <exception name="IOException" type="java.io.IOException"/>
  59620. <doc>
  59621. <![CDATA[Add an iterator to the collector at the position occupied by this
  59622. RecordReader over the values in this stream paired with the key
  59623. provided (ie register a stream of values from this source matching K
  59624. with a collector).]]>
  59625. </doc>
  59626. </method>
  59627. <method name="next" return="boolean"
  59628. abstract="false" native="false" synchronized="false"
  59629. static="false" final="false" visibility="public"
  59630. deprecated="not deprecated">
  59631. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59632. <param name="value" type="org.apache.hadoop.io.Writable"/>
  59633. <exception name="IOException" type="java.io.IOException"/>
  59634. <doc>
  59635. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  59636. get next key-value pair from proxied RR.]]>
  59637. </doc>
  59638. </method>
  59639. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  59640. abstract="false" native="false" synchronized="false"
  59641. static="false" final="false" visibility="public"
  59642. deprecated="not deprecated">
  59643. <doc>
  59644. <![CDATA[Request new key from proxied RR.]]>
  59645. </doc>
  59646. </method>
  59647. <method name="createValue" return="org.apache.hadoop.io.Writable"
  59648. abstract="false" native="false" synchronized="false"
  59649. static="false" final="false" visibility="public"
  59650. deprecated="not deprecated">
  59651. <doc>
  59652. <![CDATA[Request new value from proxied RR.]]>
  59653. </doc>
  59654. </method>
  59655. <method name="getProgress" return="float"
  59656. abstract="false" native="false" synchronized="false"
  59657. static="false" final="false" visibility="public"
  59658. deprecated="not deprecated">
  59659. <exception name="IOException" type="java.io.IOException"/>
  59660. <doc>
  59661. <![CDATA[Request progress from proxied RR.]]>
  59662. </doc>
  59663. </method>
  59664. <method name="getPos" return="long"
  59665. abstract="false" native="false" synchronized="false"
  59666. static="false" final="false" visibility="public"
  59667. deprecated="not deprecated">
  59668. <exception name="IOException" type="java.io.IOException"/>
  59669. <doc>
  59670. <![CDATA[Request position from proxied RR.]]>
  59671. </doc>
  59672. </method>
  59673. <method name="close"
  59674. abstract="false" native="false" synchronized="false"
  59675. static="false" final="false" visibility="public"
  59676. deprecated="not deprecated">
  59677. <exception name="IOException" type="java.io.IOException"/>
  59678. <doc>
  59679. <![CDATA[Forward close request to proxied RR.]]>
  59680. </doc>
  59681. </method>
  59682. <method name="compareTo" return="int"
  59683. abstract="false" native="false" synchronized="false"
  59684. static="false" final="false" visibility="public"
  59685. deprecated="not deprecated">
  59686. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59687. <doc>
  59688. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  59689. with that of another).]]>
  59690. </doc>
  59691. </method>
  59692. <method name="equals" return="boolean"
  59693. abstract="false" native="false" synchronized="false"
  59694. static="false" final="false" visibility="public"
  59695. deprecated="not deprecated">
  59696. <param name="other" type="java.lang.Object"/>
  59697. <doc>
  59698. <![CDATA[Return true iff compareTo(other) retn true.]]>
  59699. </doc>
  59700. </method>
  59701. <method name="hashCode" return="int"
  59702. abstract="false" native="false" synchronized="false"
  59703. static="false" final="false" visibility="public"
  59704. deprecated="not deprecated">
  59705. </method>
  59706. <doc>
  59707. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  59708. This class keeps track of the &quot;head&quot; key-value pair for the
  59709. provided RecordReader and keeps a store of values matching a key when
  59710. this source is participating in a join.]]>
  59711. </doc>
  59712. </class>
  59713. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  59714. </package>
  59715. <package name="org.apache.hadoop.mapred.lib">
  59716. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  59717. <class name="ChainMapper" extends="java.lang.Object"
  59718. abstract="false"
  59719. static="false" final="false" visibility="public"
  59720. deprecated="not deprecated">
  59721. <implements name="org.apache.hadoop.mapred.Mapper"/>
  59722. <constructor name="ChainMapper"
  59723. static="false" final="false" visibility="public"
  59724. deprecated="not deprecated">
  59725. <doc>
  59726. <![CDATA[Constructor.]]>
  59727. </doc>
  59728. </constructor>
  59729. <method name="addMapper"
  59730. abstract="false" native="false" synchronized="false"
  59731. static="true" final="false" visibility="public"
  59732. deprecated="not deprecated">
  59733. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59734. <param name="klass" type="java.lang.Class"/>
  59735. <param name="inputKeyClass" type="java.lang.Class"/>
  59736. <param name="inputValueClass" type="java.lang.Class"/>
  59737. <param name="outputKeyClass" type="java.lang.Class"/>
  59738. <param name="outputValueClass" type="java.lang.Class"/>
  59739. <param name="byValue" type="boolean"/>
  59740. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  59741. <doc>
  59742. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  59743. <p/>
  59744. It has to be specified how key and values are passed from one element of
  59745. the chain to the next, by value or by reference. If a Mapper leverages the
  59746. assumed semantics that the key and values are not modified by the collector
  59747. 'by value' must be used. If the Mapper does not expect this semantics, as
  59748. an optimization to avoid serialization and deserialization 'by reference'
  59749. can be used.
  59750. <p/>
  59751. For the added Mapper the configuration given for it,
  59752. <code>mapperConf</code>, have precedence over the job's JobConf. This
  59753. precedence is in effect when the task is running.
  59754. <p/>
  59755. IMPORTANT: There is no need to specify the output key/value classes for the
  59756. ChainMapper, this is done by the addMapper for the last mapper in the chain
  59757. <p/>
  59758. @param job job's JobConf to add the Mapper class.
  59759. @param klass the Mapper class to add.
  59760. @param inputKeyClass mapper input key class.
  59761. @param inputValueClass mapper input value class.
  59762. @param outputKeyClass mapper output key class.
  59763. @param outputValueClass mapper output value class.
  59764. @param byValue indicates if key/values should be passed by value
  59765. to the next Mapper in the chain, if any.
  59766. @param mapperConf a JobConf with the configuration for the Mapper
  59767. class. It is recommended to use a JobConf without default values using the
  59768. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59769. </doc>
  59770. </method>
  59771. <method name="configure"
  59772. abstract="false" native="false" synchronized="false"
  59773. static="false" final="false" visibility="public"
  59774. deprecated="not deprecated">
  59775. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59776. <doc>
  59777. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  59778. <p/>
  59779. If this method is overriden <code>super.configure(...)</code> should be
  59780. invoked at the beginning of the overwriter method.]]>
  59781. </doc>
  59782. </method>
  59783. <method name="map"
  59784. abstract="false" native="false" synchronized="false"
  59785. static="false" final="false" visibility="public"
  59786. deprecated="not deprecated">
  59787. <param name="key" type="java.lang.Object"/>
  59788. <param name="value" type="java.lang.Object"/>
  59789. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  59790. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59791. <exception name="IOException" type="java.io.IOException"/>
  59792. <doc>
  59793. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  59794. </doc>
  59795. </method>
  59796. <method name="close"
  59797. abstract="false" native="false" synchronized="false"
  59798. static="false" final="false" visibility="public"
  59799. deprecated="not deprecated">
  59800. <exception name="IOException" type="java.io.IOException"/>
  59801. <doc>
  59802. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  59803. <p/>
  59804. If this method is overriden <code>super.close()</code> should be
  59805. invoked at the end of the overwriter method.]]>
  59806. </doc>
  59807. </method>
  59808. <doc>
  59809. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  59810. Map task.
  59811. <p/>
  59812. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  59813. the first becomes the input of the second, and so on until the last Mapper,
  59814. the output of the last Mapper will be written to the task's output.
  59815. <p/>
  59816. The key functionality of this feature is that the Mappers in the chain do not
  59817. need to be aware that they are executed in a chain. This enables having
  59818. reusable specialized Mappers that can be combined to perform composite
  59819. operations within a single task.
  59820. <p/>
  59821. Special care has to be taken when creating chains that the key/values output
  59822. by a Mapper are valid for the following Mapper in the chain. It is assumed
  59823. all Mappers and the Reduce in the chain use maching output and input key and
  59824. value classes as no conversion is done by the chaining code.
  59825. <p/>
  59826. Using the ChainMapper and the ChainReducer classes is possible to compose
  59827. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  59828. immediate benefit of this pattern is a dramatic reduction in disk IO.
  59829. <p/>
  59830. IMPORTANT: There is no need to specify the output key/value classes for the
  59831. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  59832. <p/>
  59833. ChainMapper usage pattern:
  59834. <p/>
  59835. <pre>
  59836. ...
  59837. conf.setJobName("chain");
  59838. conf.setInputFormat(TextInputFormat.class);
  59839. conf.setOutputFormat(TextOutputFormat.class);
  59840. <p/>
  59841. JobConf mapAConf = new JobConf(false);
  59842. ...
  59843. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  59844. Text.class, Text.class, true, mapAConf);
  59845. <p/>
  59846. JobConf mapBConf = new JobConf(false);
  59847. ...
  59848. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  59849. LongWritable.class, Text.class, false, mapBConf);
  59850. <p/>
  59851. JobConf reduceConf = new JobConf(false);
  59852. ...
  59853. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  59854. Text.class, Text.class, true, reduceConf);
  59855. <p/>
  59856. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  59857. LongWritable.class, Text.class, false, null);
  59858. <p/>
  59859. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  59860. LongWritable.class, LongWritable.class, true, null);
  59861. <p/>
  59862. FileInputFormat.setInputPaths(conf, inDir);
  59863. FileOutputFormat.setOutputPath(conf, outDir);
  59864. ...
  59865. <p/>
  59866. JobClient jc = new JobClient(conf);
  59867. RunningJob job = jc.submitJob(conf);
  59868. ...
  59869. </pre>]]>
  59870. </doc>
  59871. </class>
  59872. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  59873. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  59874. <class name="ChainReducer" extends="java.lang.Object"
  59875. abstract="false"
  59876. static="false" final="false" visibility="public"
  59877. deprecated="not deprecated">
  59878. <implements name="org.apache.hadoop.mapred.Reducer"/>
  59879. <constructor name="ChainReducer"
  59880. static="false" final="false" visibility="public"
  59881. deprecated="not deprecated">
  59882. <doc>
  59883. <![CDATA[Constructor.]]>
  59884. </doc>
  59885. </constructor>
  59886. <method name="setReducer"
  59887. abstract="false" native="false" synchronized="false"
  59888. static="true" final="false" visibility="public"
  59889. deprecated="not deprecated">
  59890. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59891. <param name="klass" type="java.lang.Class"/>
  59892. <param name="inputKeyClass" type="java.lang.Class"/>
  59893. <param name="inputValueClass" type="java.lang.Class"/>
  59894. <param name="outputKeyClass" type="java.lang.Class"/>
  59895. <param name="outputValueClass" type="java.lang.Class"/>
  59896. <param name="byValue" type="boolean"/>
  59897. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  59898. <doc>
  59899. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  59900. <p/>
  59901. It has to be specified how key and values are passed from one element of
  59902. the chain to the next, by value or by reference. If a Reducer leverages the
  59903. assumed semantics that the key and values are not modified by the collector
  59904. 'by value' must be used. If the Reducer does not expect this semantics, as
  59905. an optimization to avoid serialization and deserialization 'by reference'
  59906. can be used.
  59907. <p/>
  59908. For the added Reducer the configuration given for it,
  59909. <code>reducerConf</code>, have precedence over the job's JobConf. This
  59910. precedence is in effect when the task is running.
  59911. <p/>
  59912. IMPORTANT: There is no need to specify the output key/value classes for the
  59913. ChainReducer, this is done by the setReducer or the addMapper for the last
  59914. element in the chain.
  59915. @param job job's JobConf to add the Reducer class.
  59916. @param klass the Reducer class to add.
  59917. @param inputKeyClass reducer input key class.
  59918. @param inputValueClass reducer input value class.
  59919. @param outputKeyClass reducer output key class.
  59920. @param outputValueClass reducer output value class.
  59921. @param byValue indicates if key/values should be passed by value
  59922. to the next Mapper in the chain, if any.
  59923. @param reducerConf a JobConf with the configuration for the Reducer
  59924. class. It is recommended to use a JobConf without default values using the
  59925. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59926. </doc>
  59927. </method>
  59928. <method name="addMapper"
  59929. abstract="false" native="false" synchronized="false"
  59930. static="true" final="false" visibility="public"
  59931. deprecated="not deprecated">
  59932. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59933. <param name="klass" type="java.lang.Class"/>
  59934. <param name="inputKeyClass" type="java.lang.Class"/>
  59935. <param name="inputValueClass" type="java.lang.Class"/>
  59936. <param name="outputKeyClass" type="java.lang.Class"/>
  59937. <param name="outputValueClass" type="java.lang.Class"/>
  59938. <param name="byValue" type="boolean"/>
  59939. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  59940. <doc>
  59941. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  59942. <p/>
  59943. It has to be specified how key and values are passed from one element of
  59944. the chain to the next, by value or by reference. If a Mapper leverages the
  59945. assumed semantics that the key and values are not modified by the collector
  59946. 'by value' must be used. If the Mapper does not expect this semantics, as
  59947. an optimization to avoid serialization and deserialization 'by reference'
  59948. can be used.
  59949. <p/>
  59950. For the added Mapper the configuration given for it,
  59951. <code>mapperConf</code>, have precedence over the job's JobConf. This
  59952. precedence is in effect when the task is running.
  59953. <p/>
  59954. IMPORTANT: There is no need to specify the output key/value classes for the
  59955. ChainMapper, this is done by the addMapper for the last mapper in the chain
  59956. .
  59957. @param job chain job's JobConf to add the Mapper class.
  59958. @param klass the Mapper class to add.
  59959. @param inputKeyClass mapper input key class.
  59960. @param inputValueClass mapper input value class.
  59961. @param outputKeyClass mapper output key class.
  59962. @param outputValueClass mapper output value class.
  59963. @param byValue indicates if key/values should be passed by value
  59964. to the next Mapper in the chain, if any.
  59965. @param mapperConf a JobConf with the configuration for the Mapper
  59966. class. It is recommended to use a JobConf without default values using the
  59967. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59968. </doc>
  59969. </method>
  59970. <method name="configure"
  59971. abstract="false" native="false" synchronized="false"
  59972. static="false" final="false" visibility="public"
  59973. deprecated="not deprecated">
  59974. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59975. <doc>
  59976. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  59977. <p/>
  59978. If this method is overriden <code>super.configure(...)</code> should be
  59979. invoked at the beginning of the overwriter method.]]>
  59980. </doc>
  59981. </method>
  59982. <method name="reduce"
  59983. abstract="false" native="false" synchronized="false"
  59984. static="false" final="false" visibility="public"
  59985. deprecated="not deprecated">
  59986. <param name="key" type="java.lang.Object"/>
  59987. <param name="values" type="java.util.Iterator"/>
  59988. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  59989. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59990. <exception name="IOException" type="java.io.IOException"/>
  59991. <doc>
  59992. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  59993. <code>map(...) </code> methods of the Mappers in the chain.]]>
  59994. </doc>
  59995. </method>
  59996. <method name="close"
  59997. abstract="false" native="false" synchronized="false"
  59998. static="false" final="false" visibility="public"
  59999. deprecated="not deprecated">
  60000. <exception name="IOException" type="java.io.IOException"/>
  60001. <doc>
  60002. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  60003. <p/>
  60004. If this method is overriden <code>super.close()</code> should be
  60005. invoked at the end of the overwriter method.]]>
  60006. </doc>
  60007. </method>
  60008. <doc>
  60009. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  60010. Reducer within the Reducer task.
  60011. <p/>
  60012. For each record output by the Reducer, the Mapper classes are invoked in a
  60013. chained (or piped) fashion, the output of the first becomes the input of the
  60014. second, and so on until the last Mapper, the output of the last Mapper will
  60015. be written to the task's output.
  60016. <p/>
  60017. The key functionality of this feature is that the Mappers in the chain do not
  60018. need to be aware that they are executed after the Reducer or in a chain.
  60019. This enables having reusable specialized Mappers that can be combined to
  60020. perform composite operations within a single task.
  60021. <p/>
  60022. Special care has to be taken when creating chains that the key/values output
  60023. by a Mapper are valid for the following Mapper in the chain. It is assumed
  60024. all Mappers and the Reduce in the chain use maching output and input key and
  60025. value classes as no conversion is done by the chaining code.
  60026. <p/>
  60027. Using the ChainMapper and the ChainReducer classes is possible to compose
  60028. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  60029. immediate benefit of this pattern is a dramatic reduction in disk IO.
  60030. <p/>
  60031. IMPORTANT: There is no need to specify the output key/value classes for the
  60032. ChainReducer, this is done by the setReducer or the addMapper for the last
  60033. element in the chain.
  60034. <p/>
  60035. ChainReducer usage pattern:
  60036. <p/>
  60037. <pre>
  60038. ...
  60039. conf.setJobName("chain");
  60040. conf.setInputFormat(TextInputFormat.class);
  60041. conf.setOutputFormat(TextOutputFormat.class);
  60042. <p/>
  60043. JobConf mapAConf = new JobConf(false);
  60044. ...
  60045. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  60046. Text.class, Text.class, true, mapAConf);
  60047. <p/>
  60048. JobConf mapBConf = new JobConf(false);
  60049. ...
  60050. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  60051. LongWritable.class, Text.class, false, mapBConf);
  60052. <p/>
  60053. JobConf reduceConf = new JobConf(false);
  60054. ...
  60055. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  60056. Text.class, Text.class, true, reduceConf);
  60057. <p/>
  60058. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  60059. LongWritable.class, Text.class, false, null);
  60060. <p/>
  60061. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  60062. LongWritable.class, LongWritable.class, true, null);
  60063. <p/>
  60064. FileInputFormat.setInputPaths(conf, inDir);
  60065. FileOutputFormat.setOutputPath(conf, outDir);
  60066. ...
  60067. <p/>
  60068. JobClient jc = new JobClient(conf);
  60069. RunningJob job = jc.submitJob(conf);
  60070. ...
  60071. </pre>]]>
  60072. </doc>
  60073. </class>
  60074. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  60075. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  60076. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  60077. abstract="true"
  60078. static="false" final="false" visibility="public"
  60079. deprecated="not deprecated">
  60080. <constructor name="CombineFileInputFormat"
  60081. static="false" final="false" visibility="public"
  60082. deprecated="not deprecated">
  60083. <doc>
  60084. <![CDATA[default constructor]]>
  60085. </doc>
  60086. </constructor>
  60087. <method name="setMaxSplitSize"
  60088. abstract="false" native="false" synchronized="false"
  60089. static="false" final="false" visibility="protected"
  60090. deprecated="not deprecated">
  60091. <param name="maxSplitSize" type="long"/>
  60092. <doc>
  60093. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  60094. approximately equal to the specified size.]]>
  60095. </doc>
  60096. </method>
  60097. <method name="setMinSplitSizeNode"
  60098. abstract="false" native="false" synchronized="false"
  60099. static="false" final="false" visibility="protected"
  60100. deprecated="not deprecated">
  60101. <param name="minSplitSizeNode" type="long"/>
  60102. <doc>
  60103. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  60104. This applies to data that is left over after combining data on a single
  60105. node into splits that are of maximum size specified by maxSplitSize.
  60106. This leftover data will be combined into its own split if its size
  60107. exceeds minSplitSizeNode.]]>
  60108. </doc>
  60109. </method>
  60110. <method name="setMinSplitSizeRack"
  60111. abstract="false" native="false" synchronized="false"
  60112. static="false" final="false" visibility="protected"
  60113. deprecated="not deprecated">
  60114. <param name="minSplitSizeRack" type="long"/>
  60115. <doc>
  60116. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  60117. This applies to data that is left over after combining data on a single
  60118. rack into splits that are of maximum size specified by maxSplitSize.
  60119. This leftover data will be combined into its own split if its size
  60120. exceeds minSplitSizeRack.]]>
  60121. </doc>
  60122. </method>
  60123. <method name="createPool"
  60124. abstract="false" native="false" synchronized="false"
  60125. static="false" final="false" visibility="protected"
  60126. deprecated="not deprecated">
  60127. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60128. <param name="filters" type="java.util.List"/>
  60129. <doc>
  60130. <![CDATA[Create a new pool and add the filters to it.
  60131. A split cannot have files from different pools.]]>
  60132. </doc>
  60133. </method>
  60134. <method name="createPool"
  60135. abstract="false" native="false" synchronized="false"
  60136. static="false" final="false" visibility="protected"
  60137. deprecated="not deprecated">
  60138. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60139. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  60140. <doc>
  60141. <![CDATA[Create a new pool and add the filters to it.
  60142. A pathname can satisfy any one of the specified filters.
  60143. A split cannot have files from different pools.]]>
  60144. </doc>
  60145. </method>
  60146. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60147. abstract="false" native="false" synchronized="false"
  60148. static="false" final="false" visibility="public"
  60149. deprecated="not deprecated">
  60150. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60151. <param name="numSplits" type="int"/>
  60152. <exception name="IOException" type="java.io.IOException"/>
  60153. </method>
  60154. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60155. abstract="true" native="false" synchronized="false"
  60156. static="false" final="false" visibility="public"
  60157. deprecated="not deprecated">
  60158. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60159. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60160. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60161. <exception name="IOException" type="java.io.IOException"/>
  60162. <doc>
  60163. <![CDATA[This is not implemented yet.]]>
  60164. </doc>
  60165. </method>
  60166. <doc>
  60167. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  60168. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  60169. Splits are constructed from the files under the input paths.
  60170. A split cannot have files from different pools.
  60171. Each split returned may contain blocks from different files.
  60172. If a maxSplitSize is specified, then blocks on the same node are
  60173. combined to form a single split. Blocks that are left over are
  60174. then combined with other blocks in the same rack.
  60175. If maxSplitSize is not specified, then blocks from the same rack
  60176. are combined in a single split; no attempt is made to create
  60177. node-local splits.
  60178. If the maxSplitSize is equal to the block size, then this class
  60179. is similar to the default spliting behaviour in Hadoop: each
  60180. block is a locally processed split.
  60181. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  60182. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  60183. @see CombineFileSplit]]>
  60184. </doc>
  60185. </class>
  60186. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  60187. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  60188. <class name="CombineFileRecordReader" extends="java.lang.Object"
  60189. abstract="false"
  60190. static="false" final="false" visibility="public"
  60191. deprecated="not deprecated">
  60192. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  60193. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  60194. static="false" final="false" visibility="public"
  60195. deprecated="not deprecated">
  60196. <exception name="IOException" type="java.io.IOException"/>
  60197. <doc>
  60198. <![CDATA[A generic RecordReader that can hand out different recordReaders
  60199. for each chunk in the CombineFileSplit.]]>
  60200. </doc>
  60201. </constructor>
  60202. <method name="next" return="boolean"
  60203. abstract="false" native="false" synchronized="false"
  60204. static="false" final="false" visibility="public"
  60205. deprecated="not deprecated">
  60206. <param name="key" type="java.lang.Object"/>
  60207. <param name="value" type="java.lang.Object"/>
  60208. <exception name="IOException" type="java.io.IOException"/>
  60209. </method>
  60210. <method name="createKey" return="java.lang.Object"
  60211. abstract="false" native="false" synchronized="false"
  60212. static="false" final="false" visibility="public"
  60213. deprecated="not deprecated">
  60214. </method>
  60215. <method name="createValue" return="java.lang.Object"
  60216. abstract="false" native="false" synchronized="false"
  60217. static="false" final="false" visibility="public"
  60218. deprecated="not deprecated">
  60219. </method>
  60220. <method name="getPos" return="long"
  60221. abstract="false" native="false" synchronized="false"
  60222. static="false" final="false" visibility="public"
  60223. deprecated="not deprecated">
  60224. <exception name="IOException" type="java.io.IOException"/>
  60225. <doc>
  60226. <![CDATA[return the amount of data processed]]>
  60227. </doc>
  60228. </method>
  60229. <method name="close"
  60230. abstract="false" native="false" synchronized="false"
  60231. static="false" final="false" visibility="public"
  60232. deprecated="not deprecated">
  60233. <exception name="IOException" type="java.io.IOException"/>
  60234. </method>
  60235. <method name="getProgress" return="float"
  60236. abstract="false" native="false" synchronized="false"
  60237. static="false" final="false" visibility="public"
  60238. deprecated="not deprecated">
  60239. <exception name="IOException" type="java.io.IOException"/>
  60240. <doc>
  60241. <![CDATA[return progress based on the amount of data processed so far.]]>
  60242. </doc>
  60243. </method>
  60244. <method name="initNextRecordReader" return="boolean"
  60245. abstract="false" native="false" synchronized="false"
  60246. static="false" final="false" visibility="protected"
  60247. deprecated="not deprecated">
  60248. <exception name="IOException" type="java.io.IOException"/>
  60249. <doc>
  60250. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  60251. </doc>
  60252. </method>
  60253. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60254. transient="false" volatile="false"
  60255. static="false" final="false" visibility="protected"
  60256. deprecated="not deprecated">
  60257. </field>
  60258. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  60259. transient="false" volatile="false"
  60260. static="false" final="false" visibility="protected"
  60261. deprecated="not deprecated">
  60262. </field>
  60263. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  60264. transient="false" volatile="false"
  60265. static="false" final="false" visibility="protected"
  60266. deprecated="not deprecated">
  60267. </field>
  60268. <field name="rrClass" type="java.lang.Class"
  60269. transient="false" volatile="false"
  60270. static="false" final="false" visibility="protected"
  60271. deprecated="not deprecated">
  60272. </field>
  60273. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  60274. transient="false" volatile="false"
  60275. static="false" final="false" visibility="protected"
  60276. deprecated="not deprecated">
  60277. </field>
  60278. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  60279. transient="false" volatile="false"
  60280. static="false" final="false" visibility="protected"
  60281. deprecated="not deprecated">
  60282. </field>
  60283. <field name="idx" type="int"
  60284. transient="false" volatile="false"
  60285. static="false" final="false" visibility="protected"
  60286. deprecated="not deprecated">
  60287. </field>
  60288. <field name="progress" type="long"
  60289. transient="false" volatile="false"
  60290. static="false" final="false" visibility="protected"
  60291. deprecated="not deprecated">
  60292. </field>
  60293. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  60294. transient="false" volatile="false"
  60295. static="false" final="false" visibility="protected"
  60296. deprecated="not deprecated">
  60297. </field>
  60298. <doc>
  60299. <![CDATA[A generic RecordReader that can hand out different recordReaders
  60300. for each chunk in a {@link CombineFileSplit}.
  60301. A CombineFileSplit can combine data chunks from multiple files.
  60302. This class allows using different RecordReaders for processing
  60303. these data chunks from different files.
  60304. @see CombineFileSplit]]>
  60305. </doc>
  60306. </class>
  60307. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  60308. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  60309. <class name="CombineFileSplit" extends="java.lang.Object"
  60310. abstract="false"
  60311. static="false" final="false" visibility="public"
  60312. deprecated="not deprecated">
  60313. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  60314. <constructor name="CombineFileSplit"
  60315. static="false" final="false" visibility="public"
  60316. deprecated="not deprecated">
  60317. <doc>
  60318. <![CDATA[default constructor]]>
  60319. </doc>
  60320. </constructor>
  60321. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  60322. static="false" final="false" visibility="public"
  60323. deprecated="not deprecated">
  60324. </constructor>
  60325. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  60326. static="false" final="false" visibility="public"
  60327. deprecated="not deprecated">
  60328. </constructor>
  60329. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60330. static="false" final="false" visibility="public"
  60331. deprecated="not deprecated">
  60332. <exception name="IOException" type="java.io.IOException"/>
  60333. <doc>
  60334. <![CDATA[Copy constructor]]>
  60335. </doc>
  60336. </constructor>
  60337. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  60338. abstract="false" native="false" synchronized="false"
  60339. static="false" final="false" visibility="public"
  60340. deprecated="not deprecated">
  60341. </method>
  60342. <method name="getLength" return="long"
  60343. abstract="false" native="false" synchronized="false"
  60344. static="false" final="false" visibility="public"
  60345. deprecated="not deprecated">
  60346. </method>
  60347. <method name="getStartOffsets" return="long[]"
  60348. abstract="false" native="false" synchronized="false"
  60349. static="false" final="false" visibility="public"
  60350. deprecated="not deprecated">
  60351. <doc>
  60352. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  60353. </doc>
  60354. </method>
  60355. <method name="getLengths" return="long[]"
  60356. abstract="false" native="false" synchronized="false"
  60357. static="false" final="false" visibility="public"
  60358. deprecated="not deprecated">
  60359. <doc>
  60360. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  60361. </doc>
  60362. </method>
  60363. <method name="getOffset" return="long"
  60364. abstract="false" native="false" synchronized="false"
  60365. static="false" final="false" visibility="public"
  60366. deprecated="not deprecated">
  60367. <param name="i" type="int"/>
  60368. <doc>
  60369. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  60370. </doc>
  60371. </method>
  60372. <method name="getLength" return="long"
  60373. abstract="false" native="false" synchronized="false"
  60374. static="false" final="false" visibility="public"
  60375. deprecated="not deprecated">
  60376. <param name="i" type="int"/>
  60377. <doc>
  60378. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  60379. </doc>
  60380. </method>
  60381. <method name="getNumPaths" return="int"
  60382. abstract="false" native="false" synchronized="false"
  60383. static="false" final="false" visibility="public"
  60384. deprecated="not deprecated">
  60385. <doc>
  60386. <![CDATA[Returns the number of Paths in the split]]>
  60387. </doc>
  60388. </method>
  60389. <method name="getPath" return="org.apache.hadoop.fs.Path"
  60390. abstract="false" native="false" synchronized="false"
  60391. static="false" final="false" visibility="public"
  60392. deprecated="not deprecated">
  60393. <param name="i" type="int"/>
  60394. <doc>
  60395. <![CDATA[Returns the i<sup>th</sup> Path]]>
  60396. </doc>
  60397. </method>
  60398. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  60399. abstract="false" native="false" synchronized="false"
  60400. static="false" final="false" visibility="public"
  60401. deprecated="not deprecated">
  60402. <doc>
  60403. <![CDATA[Returns all the Paths in the split]]>
  60404. </doc>
  60405. </method>
  60406. <method name="getLocations" return="java.lang.String[]"
  60407. abstract="false" native="false" synchronized="false"
  60408. static="false" final="false" visibility="public"
  60409. deprecated="not deprecated">
  60410. <exception name="IOException" type="java.io.IOException"/>
  60411. <doc>
  60412. <![CDATA[Returns all the Paths where this input-split resides]]>
  60413. </doc>
  60414. </method>
  60415. <method name="readFields"
  60416. abstract="false" native="false" synchronized="false"
  60417. static="false" final="false" visibility="public"
  60418. deprecated="not deprecated">
  60419. <param name="in" type="java.io.DataInput"/>
  60420. <exception name="IOException" type="java.io.IOException"/>
  60421. </method>
  60422. <method name="write"
  60423. abstract="false" native="false" synchronized="false"
  60424. static="false" final="false" visibility="public"
  60425. deprecated="not deprecated">
  60426. <param name="out" type="java.io.DataOutput"/>
  60427. <exception name="IOException" type="java.io.IOException"/>
  60428. </method>
  60429. <method name="toString" return="java.lang.String"
  60430. abstract="false" native="false" synchronized="false"
  60431. static="false" final="false" visibility="public"
  60432. deprecated="not deprecated">
  60433. </method>
  60434. <doc>
  60435. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  60436. CombineFileSplit * class does not represent a split of a file, but a split of input files
  60437. into smaller sets. A split may contain blocks from different file but all
  60438. the blocks in the same split are probably local to some rack <br>
  60439. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  60440. with reading one record per file.
  60441. @see org.apache.hadoop.mapred.FileSplit
  60442. @see CombineFileInputFormat]]>
  60443. </doc>
  60444. </class>
  60445. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  60446. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  60447. <class name="DelegatingInputFormat" extends="java.lang.Object"
  60448. abstract="false"
  60449. static="false" final="false" visibility="public"
  60450. deprecated="not deprecated">
  60451. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  60452. <constructor name="DelegatingInputFormat"
  60453. static="false" final="false" visibility="public"
  60454. deprecated="not deprecated">
  60455. </constructor>
  60456. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60457. abstract="false" native="false" synchronized="false"
  60458. static="false" final="false" visibility="public"
  60459. deprecated="not deprecated">
  60460. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60461. <param name="numSplits" type="int"/>
  60462. <exception name="IOException" type="java.io.IOException"/>
  60463. </method>
  60464. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60465. abstract="false" native="false" synchronized="false"
  60466. static="false" final="false" visibility="public"
  60467. deprecated="not deprecated">
  60468. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60469. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60470. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60471. <exception name="IOException" type="java.io.IOException"/>
  60472. </method>
  60473. <doc>
  60474. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  60475. InputFormats.
  60476. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  60477. </doc>
  60478. </class>
  60479. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  60480. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  60481. <class name="DelegatingMapper" extends="java.lang.Object"
  60482. abstract="false"
  60483. static="false" final="false" visibility="public"
  60484. deprecated="not deprecated">
  60485. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60486. <constructor name="DelegatingMapper"
  60487. static="false" final="false" visibility="public"
  60488. deprecated="not deprecated">
  60489. </constructor>
  60490. <method name="map"
  60491. abstract="false" native="false" synchronized="false"
  60492. static="false" final="false" visibility="public"
  60493. deprecated="not deprecated">
  60494. <param name="key" type="java.lang.Object"/>
  60495. <param name="value" type="java.lang.Object"/>
  60496. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  60497. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60498. <exception name="IOException" type="java.io.IOException"/>
  60499. </method>
  60500. <method name="configure"
  60501. abstract="false" native="false" synchronized="false"
  60502. static="false" final="false" visibility="public"
  60503. deprecated="not deprecated">
  60504. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60505. </method>
  60506. <method name="close"
  60507. abstract="false" native="false" synchronized="false"
  60508. static="false" final="false" visibility="public"
  60509. deprecated="not deprecated">
  60510. <exception name="IOException" type="java.io.IOException"/>
  60511. </method>
  60512. <doc>
  60513. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  60514. mappers.
  60515. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  60516. </doc>
  60517. </class>
  60518. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  60519. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  60520. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  60521. abstract="false"
  60522. static="false" final="false" visibility="public"
  60523. deprecated="not deprecated">
  60524. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60525. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60526. <constructor name="FieldSelectionMapReduce"
  60527. static="false" final="false" visibility="public"
  60528. deprecated="not deprecated">
  60529. </constructor>
  60530. <method name="map"
  60531. abstract="false" native="false" synchronized="false"
  60532. static="false" final="false" visibility="public"
  60533. deprecated="not deprecated">
  60534. <param name="key" type="java.lang.Object"/>
  60535. <param name="val" type="java.lang.Object"/>
  60536. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60537. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60538. <exception name="IOException" type="java.io.IOException"/>
  60539. <doc>
  60540. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  60541. </doc>
  60542. </method>
  60543. <method name="configure"
  60544. abstract="false" native="false" synchronized="false"
  60545. static="false" final="false" visibility="public"
  60546. deprecated="not deprecated">
  60547. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60548. </method>
  60549. <method name="close"
  60550. abstract="false" native="false" synchronized="false"
  60551. static="false" final="false" visibility="public"
  60552. deprecated="not deprecated">
  60553. <exception name="IOException" type="java.io.IOException"/>
  60554. </method>
  60555. <method name="reduce"
  60556. abstract="false" native="false" synchronized="false"
  60557. static="false" final="false" visibility="public"
  60558. deprecated="not deprecated">
  60559. <param name="key" type="org.apache.hadoop.io.Text"/>
  60560. <param name="values" type="java.util.Iterator"/>
  60561. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60562. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60563. <exception name="IOException" type="java.io.IOException"/>
  60564. </method>
  60565. <field name="LOG" type="org.apache.commons.logging.Log"
  60566. transient="false" volatile="false"
  60567. static="true" final="true" visibility="public"
  60568. deprecated="not deprecated">
  60569. </field>
  60570. <doc>
  60571. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  60572. field selections in a manner similar to unix cut. The input data is treated
  60573. as fields separated by a user specified separator (the default value is
  60574. "\t"). The user can specify a list of fields that form the map output keys,
  60575. and a list of fields that form the map output values. If the inputformat is
  60576. TextInputFormat, the mapper will ignore the key to the map function. and the
  60577. fields are from the value only. Otherwise, the fields are the union of those
  60578. from the key and those from the value.
  60579. The field separator is under attribute "mapred.data.field.separator"
  60580. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  60581. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  60582. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  60583. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  60584. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  60585. the fields starting from field 3. The open range field spec applies value fields only.
  60586. They have no effect on the key fields.
  60587. 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,
  60588. and use fields 6,5,1,2,3,7 and above for values.
  60589. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  60590. The reducer extracts output key/value pairs in a similar manner, except that
  60591. the key is never ignored.]]>
  60592. </doc>
  60593. </class>
  60594. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  60595. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  60596. <class name="HashPartitioner" extends="java.lang.Object"
  60597. abstract="false"
  60598. static="false" final="false" visibility="public"
  60599. deprecated="not deprecated">
  60600. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  60601. <constructor name="HashPartitioner"
  60602. static="false" final="false" visibility="public"
  60603. deprecated="not deprecated">
  60604. </constructor>
  60605. <method name="configure"
  60606. abstract="false" native="false" synchronized="false"
  60607. static="false" final="false" visibility="public"
  60608. deprecated="not deprecated">
  60609. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60610. </method>
  60611. <method name="getPartition" return="int"
  60612. abstract="false" native="false" synchronized="false"
  60613. static="false" final="false" visibility="public"
  60614. deprecated="not deprecated">
  60615. <param name="key" type="java.lang.Object"/>
  60616. <param name="value" type="java.lang.Object"/>
  60617. <param name="numReduceTasks" type="int"/>
  60618. <doc>
  60619. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  60620. </doc>
  60621. </method>
  60622. <doc>
  60623. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  60624. </doc>
  60625. </class>
  60626. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  60627. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  60628. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  60629. abstract="false"
  60630. static="false" final="false" visibility="public"
  60631. deprecated="not deprecated">
  60632. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60633. <constructor name="IdentityMapper"
  60634. static="false" final="false" visibility="public"
  60635. deprecated="not deprecated">
  60636. </constructor>
  60637. <method name="map"
  60638. abstract="false" native="false" synchronized="false"
  60639. static="false" final="false" visibility="public"
  60640. deprecated="not deprecated">
  60641. <param name="key" type="java.lang.Object"/>
  60642. <param name="val" type="java.lang.Object"/>
  60643. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60644. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60645. <exception name="IOException" type="java.io.IOException"/>
  60646. <doc>
  60647. <![CDATA[The identify function. Input key/value pair is written directly to
  60648. output.]]>
  60649. </doc>
  60650. </method>
  60651. <doc>
  60652. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  60653. </doc>
  60654. </class>
  60655. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  60656. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  60657. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  60658. abstract="false"
  60659. static="false" final="false" visibility="public"
  60660. deprecated="not deprecated">
  60661. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60662. <constructor name="IdentityReducer"
  60663. static="false" final="false" visibility="public"
  60664. deprecated="not deprecated">
  60665. </constructor>
  60666. <method name="reduce"
  60667. abstract="false" native="false" synchronized="false"
  60668. static="false" final="false" visibility="public"
  60669. deprecated="not deprecated">
  60670. <param name="key" type="java.lang.Object"/>
  60671. <param name="values" type="java.util.Iterator"/>
  60672. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60673. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60674. <exception name="IOException" type="java.io.IOException"/>
  60675. <doc>
  60676. <![CDATA[Writes all keys and values directly to output.]]>
  60677. </doc>
  60678. </method>
  60679. <doc>
  60680. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  60681. </doc>
  60682. </class>
  60683. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  60684. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  60685. <class name="InputSampler" extends="java.lang.Object"
  60686. abstract="false"
  60687. static="false" final="false" visibility="public"
  60688. deprecated="not deprecated">
  60689. <implements name="org.apache.hadoop.util.Tool"/>
  60690. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  60691. static="false" final="false" visibility="public"
  60692. deprecated="not deprecated">
  60693. </constructor>
  60694. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  60695. abstract="false" native="false" synchronized="false"
  60696. static="false" final="false" visibility="public"
  60697. deprecated="not deprecated">
  60698. </method>
  60699. <method name="setConf"
  60700. abstract="false" native="false" synchronized="false"
  60701. static="false" final="false" visibility="public"
  60702. deprecated="not deprecated">
  60703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60704. </method>
  60705. <method name="writePartitionFile"
  60706. abstract="false" native="false" synchronized="false"
  60707. static="true" final="false" visibility="public"
  60708. deprecated="not deprecated">
  60709. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60710. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60711. <exception name="IOException" type="java.io.IOException"/>
  60712. <doc>
  60713. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  60714. Queries the sampler for a sample keyset, sorts by the output key
  60715. comparator, selects the keys for each rank, and writes to the destination
  60716. returned from {@link
  60717. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  60718. </doc>
  60719. </method>
  60720. <method name="run" return="int"
  60721. abstract="false" native="false" synchronized="false"
  60722. static="false" final="false" visibility="public"
  60723. deprecated="not deprecated">
  60724. <param name="args" type="java.lang.String[]"/>
  60725. <exception name="Exception" type="java.lang.Exception"/>
  60726. <doc>
  60727. <![CDATA[Driver for InputSampler from the command line.
  60728. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  60729. </doc>
  60730. </method>
  60731. <method name="main"
  60732. abstract="false" native="false" synchronized="false"
  60733. static="true" final="false" visibility="public"
  60734. deprecated="not deprecated">
  60735. <param name="args" type="java.lang.String[]"/>
  60736. <exception name="Exception" type="java.lang.Exception"/>
  60737. </method>
  60738. <doc>
  60739. <![CDATA[Utility for collecting samples and writing a partition file for
  60740. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  60741. </doc>
  60742. </class>
  60743. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  60744. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  60745. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  60746. abstract="false"
  60747. static="true" final="false" visibility="public"
  60748. deprecated="not deprecated">
  60749. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60750. <constructor name="InputSampler.IntervalSampler" type="double"
  60751. static="false" final="false" visibility="public"
  60752. deprecated="not deprecated">
  60753. <doc>
  60754. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  60755. @param freq The frequency with which records will be emitted.]]>
  60756. </doc>
  60757. </constructor>
  60758. <constructor name="InputSampler.IntervalSampler" type="double, int"
  60759. static="false" final="false" visibility="public"
  60760. deprecated="not deprecated">
  60761. <doc>
  60762. <![CDATA[Create a new IntervalSampler.
  60763. @param freq The frequency with which records will be emitted.
  60764. @param maxSplitsSampled The maximum number of splits to examine.
  60765. @see #getSample]]>
  60766. </doc>
  60767. </constructor>
  60768. <method name="getSample" return="java.lang.Object[]"
  60769. abstract="false" native="false" synchronized="false"
  60770. static="false" final="false" visibility="public"
  60771. deprecated="not deprecated">
  60772. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60773. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60774. <exception name="IOException" type="java.io.IOException"/>
  60775. <doc>
  60776. <![CDATA[For each split sampled, emit when the ratio of the number of records
  60777. retained to the total record count is less than the specified
  60778. frequency.]]>
  60779. </doc>
  60780. </method>
  60781. <doc>
  60782. <![CDATA[Sample from s splits at regular intervals.
  60783. Useful for sorted data.]]>
  60784. </doc>
  60785. </class>
  60786. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  60787. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  60788. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  60789. abstract="false"
  60790. static="true" final="false" visibility="public"
  60791. deprecated="not deprecated">
  60792. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60793. <constructor name="InputSampler.RandomSampler" type="double, int"
  60794. static="false" final="false" visibility="public"
  60795. deprecated="not deprecated">
  60796. <doc>
  60797. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  60798. This will read every split at the client, which is very expensive.
  60799. @param freq Probability with which a key will be chosen.
  60800. @param numSamples Total number of samples to obtain from all selected
  60801. splits.]]>
  60802. </doc>
  60803. </constructor>
  60804. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  60805. static="false" final="false" visibility="public"
  60806. deprecated="not deprecated">
  60807. <doc>
  60808. <![CDATA[Create a new RandomSampler.
  60809. @param freq Probability with which a key will be chosen.
  60810. @param numSamples Total number of samples to obtain from all selected
  60811. splits.
  60812. @param maxSplitsSampled The maximum number of splits to examine.]]>
  60813. </doc>
  60814. </constructor>
  60815. <method name="getSample" return="java.lang.Object[]"
  60816. abstract="false" native="false" synchronized="false"
  60817. static="false" final="false" visibility="public"
  60818. deprecated="not deprecated">
  60819. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60820. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60821. <exception name="IOException" type="java.io.IOException"/>
  60822. <doc>
  60823. <![CDATA[Randomize the split order, then take the specified number of keys from
  60824. each split sampled, where each key is selected with the specified
  60825. probability and possibly replaced by a subsequently selected key when
  60826. the quota of keys from that split is satisfied.]]>
  60827. </doc>
  60828. </method>
  60829. <doc>
  60830. <![CDATA[Sample from random points in the input.
  60831. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  60832. each split.]]>
  60833. </doc>
  60834. </class>
  60835. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  60836. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  60837. <interface name="InputSampler.Sampler" abstract="true"
  60838. static="true" final="false" visibility="public"
  60839. deprecated="not deprecated">
  60840. <method name="getSample" return="java.lang.Object[]"
  60841. abstract="false" native="false" synchronized="false"
  60842. static="false" final="false" visibility="public"
  60843. deprecated="not deprecated">
  60844. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60845. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60846. <exception name="IOException" type="java.io.IOException"/>
  60847. <doc>
  60848. <![CDATA[For a given job, collect and return a subset of the keys from the
  60849. input data.]]>
  60850. </doc>
  60851. </method>
  60852. <doc>
  60853. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  60854. </doc>
  60855. </interface>
  60856. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  60857. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  60858. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  60859. abstract="false"
  60860. static="true" final="false" visibility="public"
  60861. deprecated="not deprecated">
  60862. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60863. <constructor name="InputSampler.SplitSampler" type="int"
  60864. static="false" final="false" visibility="public"
  60865. deprecated="not deprecated">
  60866. <doc>
  60867. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  60868. Takes the first numSamples / numSplits records from each split.
  60869. @param numSamples Total number of samples to obtain from all selected
  60870. splits.]]>
  60871. </doc>
  60872. </constructor>
  60873. <constructor name="InputSampler.SplitSampler" type="int, int"
  60874. static="false" final="false" visibility="public"
  60875. deprecated="not deprecated">
  60876. <doc>
  60877. <![CDATA[Create a new SplitSampler.
  60878. @param numSamples Total number of samples to obtain from all selected
  60879. splits.
  60880. @param maxSplitsSampled The maximum number of splits to examine.]]>
  60881. </doc>
  60882. </constructor>
  60883. <method name="getSample" return="java.lang.Object[]"
  60884. abstract="false" native="false" synchronized="false"
  60885. static="false" final="false" visibility="public"
  60886. deprecated="not deprecated">
  60887. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60888. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60889. <exception name="IOException" type="java.io.IOException"/>
  60890. <doc>
  60891. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  60892. </doc>
  60893. </method>
  60894. <doc>
  60895. <![CDATA[Samples the first n records from s splits.
  60896. Inexpensive way to sample random data.]]>
  60897. </doc>
  60898. </class>
  60899. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  60900. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  60901. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  60902. abstract="false"
  60903. static="false" final="false" visibility="public"
  60904. deprecated="not deprecated">
  60905. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60906. <constructor name="InverseMapper"
  60907. static="false" final="false" visibility="public"
  60908. deprecated="not deprecated">
  60909. </constructor>
  60910. <method name="map"
  60911. abstract="false" native="false" synchronized="false"
  60912. static="false" final="false" visibility="public"
  60913. deprecated="not deprecated">
  60914. <param name="key" type="java.lang.Object"/>
  60915. <param name="value" type="java.lang.Object"/>
  60916. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60917. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60918. <exception name="IOException" type="java.io.IOException"/>
  60919. <doc>
  60920. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  60921. </doc>
  60922. </method>
  60923. <doc>
  60924. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  60925. </doc>
  60926. </class>
  60927. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  60928. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  60929. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  60930. abstract="false"
  60931. static="false" final="false" visibility="public"
  60932. deprecated="not deprecated">
  60933. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  60934. <constructor name="KeyFieldBasedComparator"
  60935. static="false" final="false" visibility="public"
  60936. deprecated="not deprecated">
  60937. </constructor>
  60938. <method name="configure"
  60939. abstract="false" native="false" synchronized="false"
  60940. static="false" final="false" visibility="public"
  60941. deprecated="not deprecated">
  60942. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60943. </method>
  60944. <method name="compare" return="int"
  60945. abstract="false" native="false" synchronized="false"
  60946. static="false" final="false" visibility="public"
  60947. deprecated="not deprecated">
  60948. <param name="b1" type="byte[]"/>
  60949. <param name="s1" type="int"/>
  60950. <param name="l1" type="int"/>
  60951. <param name="b2" type="byte[]"/>
  60952. <param name="s2" type="int"/>
  60953. <param name="l2" type="int"/>
  60954. </method>
  60955. <doc>
  60956. <![CDATA[This comparator implementation provides a subset of the features provided
  60957. by the Unix/GNU Sort. In particular, the supported features are:
  60958. -n, (Sort numerically)
  60959. -r, (Reverse the result of comparison)
  60960. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  60961. of the field to use, and c is the number of the first character from the
  60962. beginning of the field. Fields and character posns are numbered starting
  60963. with 1; a character position of zero in pos2 indicates the field's last
  60964. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  60965. of the field); if omitted from pos2, it defaults to 0 (the end of the
  60966. field). opts are ordering options (any of 'nr' as described above).
  60967. We assume that the fields in the key are separated by
  60968. map.output.key.field.separator.]]>
  60969. </doc>
  60970. </class>
  60971. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  60972. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  60973. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  60974. abstract="false"
  60975. static="false" final="false" visibility="public"
  60976. deprecated="not deprecated">
  60977. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  60978. <constructor name="KeyFieldBasedPartitioner"
  60979. static="false" final="false" visibility="public"
  60980. deprecated="not deprecated">
  60981. </constructor>
  60982. <method name="configure"
  60983. abstract="false" native="false" synchronized="false"
  60984. static="false" final="false" visibility="public"
  60985. deprecated="not deprecated">
  60986. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60987. </method>
  60988. <method name="getPartition" return="int"
  60989. abstract="false" native="false" synchronized="false"
  60990. static="false" final="false" visibility="public"
  60991. deprecated="not deprecated">
  60992. <param name="key" type="java.lang.Object"/>
  60993. <param name="value" type="java.lang.Object"/>
  60994. <param name="numReduceTasks" type="int"/>
  60995. </method>
  60996. <method name="hashCode" return="int"
  60997. abstract="false" native="false" synchronized="false"
  60998. static="false" final="false" visibility="protected"
  60999. deprecated="not deprecated">
  61000. <param name="b" type="byte[]"/>
  61001. <param name="start" type="int"/>
  61002. <param name="end" type="int"/>
  61003. <param name="currentHash" type="int"/>
  61004. </method>
  61005. <method name="getPartition" return="int"
  61006. abstract="false" native="false" synchronized="false"
  61007. static="false" final="false" visibility="protected"
  61008. deprecated="not deprecated">
  61009. <param name="hash" type="int"/>
  61010. <param name="numReduceTasks" type="int"/>
  61011. </method>
  61012. <doc>
  61013. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  61014. {@link KeyFieldBasedComparator}.
  61015. The key specification supported is of the form -k pos1[,pos2], where,
  61016. pos is of the form f[.c][opts], where f is the number
  61017. of the key field to use, and c is the number of the first character from
  61018. the beginning of the field. Fields and character posns are numbered
  61019. starting with 1; a character position of zero in pos2 indicates the
  61020. field's last character. If '.c' is omitted from pos1, it defaults to 1
  61021. (the beginning of the field); if omitted from pos2, it defaults to 0
  61022. (the end of the field).]]>
  61023. </doc>
  61024. </class>
  61025. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  61026. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  61027. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  61028. abstract="false"
  61029. static="false" final="false" visibility="public"
  61030. deprecated="not deprecated">
  61031. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61032. <constructor name="LongSumReducer"
  61033. static="false" final="false" visibility="public"
  61034. deprecated="not deprecated">
  61035. </constructor>
  61036. <method name="reduce"
  61037. abstract="false" native="false" synchronized="false"
  61038. static="false" final="false" visibility="public"
  61039. deprecated="not deprecated">
  61040. <param name="key" type="java.lang.Object"/>
  61041. <param name="values" type="java.util.Iterator"/>
  61042. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61043. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61044. <exception name="IOException" type="java.io.IOException"/>
  61045. </method>
  61046. <doc>
  61047. <![CDATA[A {@link Reducer} that sums long values.]]>
  61048. </doc>
  61049. </class>
  61050. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  61051. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  61052. <class name="MultipleInputs" extends="java.lang.Object"
  61053. abstract="false"
  61054. static="false" final="false" visibility="public"
  61055. deprecated="not deprecated">
  61056. <constructor name="MultipleInputs"
  61057. static="false" final="false" visibility="public"
  61058. deprecated="not deprecated">
  61059. </constructor>
  61060. <method name="addInputPath"
  61061. abstract="false" native="false" synchronized="false"
  61062. static="true" final="false" visibility="public"
  61063. deprecated="not deprecated">
  61064. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61065. <param name="path" type="org.apache.hadoop.fs.Path"/>
  61066. <param name="inputFormatClass" type="java.lang.Class"/>
  61067. <doc>
  61068. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  61069. inputs for the map-reduce job.
  61070. @param conf The configuration of the job
  61071. @param path {@link Path} to be added to the list of inputs for the job
  61072. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  61073. </doc>
  61074. </method>
  61075. <method name="addInputPath"
  61076. abstract="false" native="false" synchronized="false"
  61077. static="true" final="false" visibility="public"
  61078. deprecated="not deprecated">
  61079. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61080. <param name="path" type="org.apache.hadoop.fs.Path"/>
  61081. <param name="inputFormatClass" type="java.lang.Class"/>
  61082. <param name="mapperClass" type="java.lang.Class"/>
  61083. <doc>
  61084. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  61085. {@link Mapper} to the list of inputs for the map-reduce job.
  61086. @param conf The configuration of the job
  61087. @param path {@link Path} to be added to the list of inputs for the job
  61088. @param inputFormatClass {@link InputFormat} class to use for this path
  61089. @param mapperClass {@link Mapper} class to use for this path]]>
  61090. </doc>
  61091. </method>
  61092. <doc>
  61093. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  61094. a different {@link InputFormat} and {@link Mapper} for each path]]>
  61095. </doc>
  61096. </class>
  61097. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  61098. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  61099. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  61100. abstract="true"
  61101. static="false" final="false" visibility="public"
  61102. deprecated="not deprecated">
  61103. <constructor name="MultipleOutputFormat"
  61104. static="false" final="false" visibility="public"
  61105. deprecated="not deprecated">
  61106. </constructor>
  61107. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61108. abstract="false" native="false" synchronized="false"
  61109. static="false" final="false" visibility="public"
  61110. deprecated="not deprecated">
  61111. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61112. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61113. <param name="name" type="java.lang.String"/>
  61114. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61115. <exception name="IOException" type="java.io.IOException"/>
  61116. <doc>
  61117. <![CDATA[Create a composite record writer that can write key/value data to different
  61118. output files
  61119. @param fs
  61120. the file system to use
  61121. @param job
  61122. the job conf for the job
  61123. @param name
  61124. the leaf file name for the output file (such as part-00000")
  61125. @param arg3
  61126. a progressable for reporting progress.
  61127. @return a composite record writer
  61128. @throws IOException]]>
  61129. </doc>
  61130. </method>
  61131. <method name="generateLeafFileName" return="java.lang.String"
  61132. abstract="false" native="false" synchronized="false"
  61133. static="false" final="false" visibility="protected"
  61134. deprecated="not deprecated">
  61135. <param name="name" type="java.lang.String"/>
  61136. <doc>
  61137. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  61138. not change the leaf file name (such as part-00000)
  61139. @param name
  61140. the leaf file name for the output file
  61141. @return the given leaf file name]]>
  61142. </doc>
  61143. </method>
  61144. <method name="generateFileNameForKeyValue" return="java.lang.String"
  61145. abstract="false" native="false" synchronized="false"
  61146. static="false" final="false" visibility="protected"
  61147. deprecated="not deprecated">
  61148. <param name="key" type="java.lang.Object"/>
  61149. <param name="value" type="java.lang.Object"/>
  61150. <param name="name" type="java.lang.String"/>
  61151. <doc>
  61152. <![CDATA[Generate the file output file name based on the given key and the leaf file
  61153. name. The default behavior is that the file name does not depend on the
  61154. key.
  61155. @param key
  61156. the key of the output data
  61157. @param name
  61158. the leaf file name
  61159. @return generated file name]]>
  61160. </doc>
  61161. </method>
  61162. <method name="generateActualKey" return="java.lang.Object"
  61163. abstract="false" native="false" synchronized="false"
  61164. static="false" final="false" visibility="protected"
  61165. deprecated="not deprecated">
  61166. <param name="key" type="java.lang.Object"/>
  61167. <param name="value" type="java.lang.Object"/>
  61168. <doc>
  61169. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  61170. the actual key is equal to the given key
  61171. @param key
  61172. the key of the output data
  61173. @param value
  61174. the value of the output data
  61175. @return the actual key derived from the given key/value]]>
  61176. </doc>
  61177. </method>
  61178. <method name="generateActualValue" return="java.lang.Object"
  61179. abstract="false" native="false" synchronized="false"
  61180. static="false" final="false" visibility="protected"
  61181. deprecated="not deprecated">
  61182. <param name="key" type="java.lang.Object"/>
  61183. <param name="value" type="java.lang.Object"/>
  61184. <doc>
  61185. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  61186. the actual value is equal to the given value
  61187. @param key
  61188. the key of the output data
  61189. @param value
  61190. the value of the output data
  61191. @return the actual value derived from the given key/value]]>
  61192. </doc>
  61193. </method>
  61194. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  61195. abstract="false" native="false" synchronized="false"
  61196. static="false" final="false" visibility="protected"
  61197. deprecated="not deprecated">
  61198. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61199. <param name="name" type="java.lang.String"/>
  61200. <doc>
  61201. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  61202. the map input file does not exists (i.e. this is not for a map only job),
  61203. the given name is returned unchanged. If the config value for
  61204. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  61205. name is returned unchanged. Otherwise, return a file name consisting of the
  61206. N trailing legs of the input file name where N is the config value for
  61207. "num.of.trailing.legs.to.use".
  61208. @param job
  61209. the job config
  61210. @param name
  61211. the output file name
  61212. @return the outfile name based on a given anme and the input file name.]]>
  61213. </doc>
  61214. </method>
  61215. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61216. abstract="true" native="false" synchronized="false"
  61217. static="false" final="false" visibility="protected"
  61218. deprecated="not deprecated">
  61219. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61220. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61221. <param name="name" type="java.lang.String"/>
  61222. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61223. <exception name="IOException" type="java.io.IOException"/>
  61224. <doc>
  61225. <![CDATA[@param fs
  61226. the file system to use
  61227. @param job
  61228. a job conf object
  61229. @param name
  61230. the name of the file over which a record writer object will be
  61231. constructed
  61232. @param arg3
  61233. a progressable object
  61234. @return A RecordWriter object over the given file
  61235. @throws IOException]]>
  61236. </doc>
  61237. </method>
  61238. <doc>
  61239. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  61240. output data to different output files. There are three basic use cases for
  61241. this class.
  61242. Case one: This class is used for a map reduce job with at least one reducer.
  61243. The reducer wants to write data to different files depending on the actual
  61244. keys. It is assumed that a key (or value) encodes the actual key (value)
  61245. and the desired location for the actual key (value).
  61246. Case two: This class is used for a map only job. The job wants to use an
  61247. output file name that is either a part of the input file name of the input
  61248. data, or some derivation of it.
  61249. Case three: This class is used for a map only job. The job wants to use an
  61250. output file name that depends on both the keys and the input file name,]]>
  61251. </doc>
  61252. </class>
  61253. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  61254. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  61255. <class name="MultipleOutputs" extends="java.lang.Object"
  61256. abstract="false"
  61257. static="false" final="false" visibility="public"
  61258. deprecated="not deprecated">
  61259. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  61260. static="false" final="false" visibility="public"
  61261. deprecated="not deprecated">
  61262. <doc>
  61263. <![CDATA[Creates and initializes multiple named outputs support, it should be
  61264. instantiated in the Mapper/Reducer configure method.
  61265. @param job the job configuration object]]>
  61266. </doc>
  61267. </constructor>
  61268. <method name="getNamedOutputsList" return="java.util.List"
  61269. abstract="false" native="false" synchronized="false"
  61270. static="true" final="false" visibility="public"
  61271. deprecated="not deprecated">
  61272. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61273. <doc>
  61274. <![CDATA[Returns list of channel names.
  61275. @param conf job conf
  61276. @return List of channel Names]]>
  61277. </doc>
  61278. </method>
  61279. <method name="isMultiNamedOutput" return="boolean"
  61280. abstract="false" native="false" synchronized="false"
  61281. static="true" final="false" visibility="public"
  61282. deprecated="not deprecated">
  61283. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61284. <param name="namedOutput" type="java.lang.String"/>
  61285. <doc>
  61286. <![CDATA[Returns if a named output is multiple.
  61287. @param conf job conf
  61288. @param namedOutput named output
  61289. @return <code>true</code> if the name output is multi, <code>false</code>
  61290. if it is single. If the name output is not defined it returns
  61291. <code>false</code>]]>
  61292. </doc>
  61293. </method>
  61294. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  61295. abstract="false" native="false" synchronized="false"
  61296. static="true" final="false" visibility="public"
  61297. deprecated="not deprecated">
  61298. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61299. <param name="namedOutput" type="java.lang.String"/>
  61300. <doc>
  61301. <![CDATA[Returns the named output OutputFormat.
  61302. @param conf job conf
  61303. @param namedOutput named output
  61304. @return namedOutput OutputFormat]]>
  61305. </doc>
  61306. </method>
  61307. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  61308. abstract="false" native="false" synchronized="false"
  61309. static="true" final="false" visibility="public"
  61310. deprecated="not deprecated">
  61311. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61312. <param name="namedOutput" type="java.lang.String"/>
  61313. <doc>
  61314. <![CDATA[Returns the key class for a named output.
  61315. @param conf job conf
  61316. @param namedOutput named output
  61317. @return class for the named output key]]>
  61318. </doc>
  61319. </method>
  61320. <method name="getNamedOutputValueClass" return="java.lang.Class"
  61321. abstract="false" native="false" synchronized="false"
  61322. static="true" final="false" visibility="public"
  61323. deprecated="not deprecated">
  61324. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61325. <param name="namedOutput" type="java.lang.String"/>
  61326. <doc>
  61327. <![CDATA[Returns the value class for a named output.
  61328. @param conf job conf
  61329. @param namedOutput named output
  61330. @return class of named output value]]>
  61331. </doc>
  61332. </method>
  61333. <method name="addNamedOutput"
  61334. abstract="false" native="false" synchronized="false"
  61335. static="true" final="false" visibility="public"
  61336. deprecated="not deprecated">
  61337. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61338. <param name="namedOutput" type="java.lang.String"/>
  61339. <param name="outputFormatClass" type="java.lang.Class"/>
  61340. <param name="keyClass" type="java.lang.Class"/>
  61341. <param name="valueClass" type="java.lang.Class"/>
  61342. <doc>
  61343. <![CDATA[Adds a named output for the job.
  61344. <p/>
  61345. @param conf job conf to add the named output
  61346. @param namedOutput named output name, it has to be a word, letters
  61347. and numbers only, cannot be the word 'part' as
  61348. that is reserved for the
  61349. default output.
  61350. @param outputFormatClass OutputFormat class.
  61351. @param keyClass key class
  61352. @param valueClass value class]]>
  61353. </doc>
  61354. </method>
  61355. <method name="addMultiNamedOutput"
  61356. abstract="false" native="false" synchronized="false"
  61357. static="true" final="false" visibility="public"
  61358. deprecated="not deprecated">
  61359. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61360. <param name="namedOutput" type="java.lang.String"/>
  61361. <param name="outputFormatClass" type="java.lang.Class"/>
  61362. <param name="keyClass" type="java.lang.Class"/>
  61363. <param name="valueClass" type="java.lang.Class"/>
  61364. <doc>
  61365. <![CDATA[Adds a multi named output for the job.
  61366. <p/>
  61367. @param conf job conf to add the named output
  61368. @param namedOutput named output name, it has to be a word, letters
  61369. and numbers only, cannot be the word 'part' as
  61370. that is reserved for the
  61371. default output.
  61372. @param outputFormatClass OutputFormat class.
  61373. @param keyClass key class
  61374. @param valueClass value class]]>
  61375. </doc>
  61376. </method>
  61377. <method name="setCountersEnabled"
  61378. abstract="false" native="false" synchronized="false"
  61379. static="true" final="false" visibility="public"
  61380. deprecated="not deprecated">
  61381. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61382. <param name="enabled" type="boolean"/>
  61383. <doc>
  61384. <![CDATA[Enables or disables counters for the named outputs.
  61385. <p/>
  61386. By default these counters are disabled.
  61387. <p/>
  61388. MultipleOutputs supports counters, by default the are disabled.
  61389. The counters group is the {@link MultipleOutputs} class name.
  61390. </p>
  61391. The names of the counters are the same as the named outputs. For multi
  61392. named outputs the name of the counter is the concatenation of the named
  61393. output, and underscore '_' and the multiname.
  61394. @param conf job conf to enableadd the named output.
  61395. @param enabled indicates if the counters will be enabled or not.]]>
  61396. </doc>
  61397. </method>
  61398. <method name="getCountersEnabled" return="boolean"
  61399. abstract="false" native="false" synchronized="false"
  61400. static="true" final="false" visibility="public"
  61401. deprecated="not deprecated">
  61402. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61403. <doc>
  61404. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  61405. <p/>
  61406. By default these counters are disabled.
  61407. <p/>
  61408. MultipleOutputs supports counters, by default the are disabled.
  61409. The counters group is the {@link MultipleOutputs} class name.
  61410. </p>
  61411. The names of the counters are the same as the named outputs. For multi
  61412. named outputs the name of the counter is the concatenation of the named
  61413. output, and underscore '_' and the multiname.
  61414. @param conf job conf to enableadd the named output.
  61415. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  61416. </doc>
  61417. </method>
  61418. <method name="getNamedOutputs" return="java.util.Iterator"
  61419. abstract="false" native="false" synchronized="false"
  61420. static="false" final="false" visibility="public"
  61421. deprecated="not deprecated">
  61422. <doc>
  61423. <![CDATA[Returns iterator with the defined name outputs.
  61424. @return iterator with the defined named outputs]]>
  61425. </doc>
  61426. </method>
  61427. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  61428. abstract="false" native="false" synchronized="false"
  61429. static="false" final="false" visibility="public"
  61430. deprecated="not deprecated">
  61431. <param name="namedOutput" type="java.lang.String"/>
  61432. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61433. <exception name="IOException" type="java.io.IOException"/>
  61434. <doc>
  61435. <![CDATA[Gets the output collector for a named output.
  61436. <p/>
  61437. @param namedOutput the named output name
  61438. @param reporter the reporter
  61439. @return the output collector for the given named output
  61440. @throws IOException thrown if output collector could not be created]]>
  61441. </doc>
  61442. </method>
  61443. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  61444. abstract="false" native="false" synchronized="false"
  61445. static="false" final="false" visibility="public"
  61446. deprecated="not deprecated">
  61447. <param name="namedOutput" type="java.lang.String"/>
  61448. <param name="multiName" type="java.lang.String"/>
  61449. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61450. <exception name="IOException" type="java.io.IOException"/>
  61451. <doc>
  61452. <![CDATA[Gets the output collector for a multi named output.
  61453. <p/>
  61454. @param namedOutput the named output name
  61455. @param multiName the multi name part
  61456. @param reporter the reporter
  61457. @return the output collector for the given named output
  61458. @throws IOException thrown if output collector could not be created]]>
  61459. </doc>
  61460. </method>
  61461. <method name="close"
  61462. abstract="false" native="false" synchronized="false"
  61463. static="false" final="false" visibility="public"
  61464. deprecated="not deprecated">
  61465. <exception name="IOException" type="java.io.IOException"/>
  61466. <doc>
  61467. <![CDATA[Closes all the opened named outputs.
  61468. <p/>
  61469. If overriden subclasses must invoke <code>super.close()</code> at the
  61470. end of their <code>close()</code>
  61471. @throws java.io.IOException thrown if any of the MultipleOutput files
  61472. could not be closed properly.]]>
  61473. </doc>
  61474. </method>
  61475. <doc>
  61476. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  61477. than the job default output via the <code>OutputCollector</code> passed to
  61478. the <code>map()</code> and <code>reduce()</code> methods of the
  61479. <code>Mapper</code> and <code>Reducer</code> implementations.
  61480. <p/>
  61481. Each additional output, or named output, may be configured with its own
  61482. <code>OutputFormat</code>, with its own key class and with its own value
  61483. class.
  61484. <p/>
  61485. A named output can be a single file or a multi file. The later is refered as
  61486. a multi named output.
  61487. <p/>
  61488. A multi named output is an unbound set of files all sharing the same
  61489. <code>OutputFormat</code>, key class and value class configuration.
  61490. <p/>
  61491. When named outputs are used within a <code>Mapper</code> implementation,
  61492. key/values written to a name output are not part of the reduce phase, only
  61493. key/values written to the job <code>OutputCollector</code> are part of the
  61494. reduce phase.
  61495. <p/>
  61496. MultipleOutputs supports counters, by default the are disabled. The counters
  61497. group is the {@link MultipleOutputs} class name.
  61498. </p>
  61499. The names of the counters are the same as the named outputs. For multi
  61500. named outputs the name of the counter is the concatenation of the named
  61501. output, and underscore '_' and the multiname.
  61502. <p/>
  61503. Job configuration usage pattern is:
  61504. <pre>
  61505. JobConf conf = new JobConf();
  61506. conf.setInputPath(inDir);
  61507. FileOutputFormat.setOutputPath(conf, outDir);
  61508. conf.setMapperClass(MOMap.class);
  61509. conf.setReducerClass(MOReduce.class);
  61510. ...
  61511. // Defines additional single text based output 'text' for the job
  61512. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  61513. LongWritable.class, Text.class);
  61514. // Defines additional multi sequencefile based output 'sequence' for the
  61515. // job
  61516. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  61517. SequenceFileOutputFormat.class,
  61518. LongWritable.class, Text.class);
  61519. ...
  61520. JobClient jc = new JobClient();
  61521. RunningJob job = jc.submitJob(conf);
  61522. ...
  61523. </pre>
  61524. <p/>
  61525. Job configuration usage pattern is:
  61526. <pre>
  61527. public class MOReduce implements
  61528. Reducer&lt;WritableComparable, Writable&gt; {
  61529. private MultipleOutputs mos;
  61530. public void configure(JobConf conf) {
  61531. ...
  61532. mos = new MultipleOutputs(conf);
  61533. }
  61534. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  61535. OutputCollector output, Reporter reporter)
  61536. throws IOException {
  61537. ...
  61538. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  61539. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  61540. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  61541. ...
  61542. }
  61543. public void close() throws IOException {
  61544. mos.close();
  61545. ...
  61546. }
  61547. }
  61548. </pre>]]>
  61549. </doc>
  61550. </class>
  61551. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  61552. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  61553. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  61554. abstract="false"
  61555. static="false" final="false" visibility="public"
  61556. deprecated="not deprecated">
  61557. <constructor name="MultipleSequenceFileOutputFormat"
  61558. static="false" final="false" visibility="public"
  61559. deprecated="not deprecated">
  61560. </constructor>
  61561. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61562. abstract="false" native="false" synchronized="false"
  61563. static="false" final="false" visibility="protected"
  61564. deprecated="not deprecated">
  61565. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61566. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61567. <param name="name" type="java.lang.String"/>
  61568. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61569. <exception name="IOException" type="java.io.IOException"/>
  61570. </method>
  61571. <doc>
  61572. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  61573. to different output files in sequence file output format.]]>
  61574. </doc>
  61575. </class>
  61576. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  61577. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  61578. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  61579. abstract="false"
  61580. static="false" final="false" visibility="public"
  61581. deprecated="not deprecated">
  61582. <constructor name="MultipleTextOutputFormat"
  61583. static="false" final="false" visibility="public"
  61584. deprecated="not deprecated">
  61585. </constructor>
  61586. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61587. abstract="false" native="false" synchronized="false"
  61588. static="false" final="false" visibility="protected"
  61589. deprecated="not deprecated">
  61590. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61591. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61592. <param name="name" type="java.lang.String"/>
  61593. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61594. <exception name="IOException" type="java.io.IOException"/>
  61595. </method>
  61596. <doc>
  61597. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  61598. data to different output files in Text output format.]]>
  61599. </doc>
  61600. </class>
  61601. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  61602. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  61603. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  61604. abstract="false"
  61605. static="false" final="false" visibility="public"
  61606. deprecated="not deprecated">
  61607. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  61608. <constructor name="MultithreadedMapRunner"
  61609. static="false" final="false" visibility="public"
  61610. deprecated="not deprecated">
  61611. </constructor>
  61612. <method name="configure"
  61613. abstract="false" native="false" synchronized="false"
  61614. static="false" final="false" visibility="public"
  61615. deprecated="not deprecated">
  61616. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  61617. </method>
  61618. <method name="run"
  61619. abstract="false" native="false" synchronized="false"
  61620. static="false" final="false" visibility="public"
  61621. deprecated="not deprecated">
  61622. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  61623. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61624. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61625. <exception name="IOException" type="java.io.IOException"/>
  61626. </method>
  61627. <doc>
  61628. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  61629. <p>
  61630. It can be used instead of the default implementation,
  61631. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  61632. bound in order to improve throughput.
  61633. <p>
  61634. Map implementations using this MapRunnable must be thread-safe.
  61635. <p>
  61636. The Map-Reduce job has to be configured to use this MapRunnable class (using
  61637. the JobConf.setMapRunnerClass method) and
  61638. the number of thread the thread-pool can use with the
  61639. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  61640. value is 10 threads.
  61641. <p>]]>
  61642. </doc>
  61643. </class>
  61644. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  61645. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  61646. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  61647. abstract="false"
  61648. static="false" final="false" visibility="public"
  61649. deprecated="not deprecated">
  61650. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  61651. <constructor name="NLineInputFormat"
  61652. static="false" final="false" visibility="public"
  61653. deprecated="not deprecated">
  61654. </constructor>
  61655. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  61656. abstract="false" native="false" synchronized="false"
  61657. static="false" final="false" visibility="public"
  61658. deprecated="not deprecated">
  61659. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  61660. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61661. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61662. <exception name="IOException" type="java.io.IOException"/>
  61663. </method>
  61664. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  61665. abstract="false" native="false" synchronized="false"
  61666. static="false" final="false" visibility="public"
  61667. deprecated="not deprecated">
  61668. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61669. <param name="numSplits" type="int"/>
  61670. <exception name="IOException" type="java.io.IOException"/>
  61671. <doc>
  61672. <![CDATA[Logically splits the set of input files for the job, splits N lines
  61673. of the input as one split.
  61674. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  61675. </doc>
  61676. </method>
  61677. <method name="configure"
  61678. abstract="false" native="false" synchronized="false"
  61679. static="false" final="false" visibility="public"
  61680. deprecated="not deprecated">
  61681. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61682. </method>
  61683. <doc>
  61684. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  61685. In many "pleasantly" parallel applications, each process/mapper
  61686. processes the same input file (s), but with computations are
  61687. controlled by different parameters.(Referred to as "parameter sweeps").
  61688. One way to achieve this, is to specify a set of parameters
  61689. (one set per line) as input in a control file
  61690. (which is the input path to the map-reduce application,
  61691. where as the input dataset is specified
  61692. via a config variable in JobConf.).
  61693. The NLineInputFormat can be used in such applications, that splits
  61694. the input file such that by default, one line is fed as
  61695. a value to one map task, and key is the offset.
  61696. i.e. (k,v) is (LongWritable, Text).
  61697. The location hints will span the whole mapred cluster.]]>
  61698. </doc>
  61699. </class>
  61700. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  61701. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  61702. <class name="NullOutputFormat" extends="java.lang.Object"
  61703. abstract="false"
  61704. static="false" final="false" visibility="public"
  61705. deprecated="not deprecated">
  61706. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  61707. <constructor name="NullOutputFormat"
  61708. static="false" final="false" visibility="public"
  61709. deprecated="not deprecated">
  61710. </constructor>
  61711. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61712. abstract="false" native="false" synchronized="false"
  61713. static="false" final="false" visibility="public"
  61714. deprecated="not deprecated">
  61715. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  61716. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61717. <param name="name" type="java.lang.String"/>
  61718. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  61719. </method>
  61720. <method name="checkOutputSpecs"
  61721. abstract="false" native="false" synchronized="false"
  61722. static="false" final="false" visibility="public"
  61723. deprecated="not deprecated">
  61724. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  61725. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61726. </method>
  61727. <doc>
  61728. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  61729. </doc>
  61730. </class>
  61731. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  61732. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  61733. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61734. abstract="false"
  61735. static="false" final="false" visibility="public"
  61736. deprecated="not deprecated">
  61737. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61738. <constructor name="RegexMapper"
  61739. static="false" final="false" visibility="public"
  61740. deprecated="not deprecated">
  61741. </constructor>
  61742. <method name="configure"
  61743. abstract="false" native="false" synchronized="false"
  61744. static="false" final="false" visibility="public"
  61745. deprecated="not deprecated">
  61746. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61747. </method>
  61748. <method name="map"
  61749. abstract="false" native="false" synchronized="false"
  61750. static="false" final="false" visibility="public"
  61751. deprecated="not deprecated">
  61752. <param name="key" type="java.lang.Object"/>
  61753. <param name="value" type="org.apache.hadoop.io.Text"/>
  61754. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61755. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61756. <exception name="IOException" type="java.io.IOException"/>
  61757. </method>
  61758. <doc>
  61759. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  61760. </doc>
  61761. </class>
  61762. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  61763. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  61764. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61765. abstract="false"
  61766. static="false" final="false" visibility="public"
  61767. deprecated="not deprecated">
  61768. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61769. <constructor name="TokenCountMapper"
  61770. static="false" final="false" visibility="public"
  61771. deprecated="not deprecated">
  61772. </constructor>
  61773. <method name="map"
  61774. abstract="false" native="false" synchronized="false"
  61775. static="false" final="false" visibility="public"
  61776. deprecated="not deprecated">
  61777. <param name="key" type="java.lang.Object"/>
  61778. <param name="value" type="org.apache.hadoop.io.Text"/>
  61779. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61780. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61781. <exception name="IOException" type="java.io.IOException"/>
  61782. </method>
  61783. <doc>
  61784. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  61785. {@link StringTokenizer} to break text into tokens.]]>
  61786. </doc>
  61787. </class>
  61788. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  61789. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  61790. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  61791. abstract="false"
  61792. static="false" final="false" visibility="public"
  61793. deprecated="not deprecated">
  61794. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61795. <constructor name="TotalOrderPartitioner"
  61796. static="false" final="false" visibility="public"
  61797. deprecated="not deprecated">
  61798. </constructor>
  61799. <method name="configure"
  61800. abstract="false" native="false" synchronized="false"
  61801. static="false" final="false" visibility="public"
  61802. deprecated="not deprecated">
  61803. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61804. <doc>
  61805. <![CDATA[Read in the partition file and build indexing data structures.
  61806. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  61807. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  61808. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  61809. will be built. Otherwise, keys will be located using a binary search of
  61810. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  61811. defined for this job. The input file must be sorted with the same
  61812. comparator and contain {@link
  61813. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  61814. </doc>
  61815. </method>
  61816. <method name="getPartition" return="int"
  61817. abstract="false" native="false" synchronized="false"
  61818. static="false" final="false" visibility="public"
  61819. deprecated="not deprecated">
  61820. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61821. <param name="value" type="java.lang.Object"/>
  61822. <param name="numPartitions" type="int"/>
  61823. </method>
  61824. <method name="setPartitionFile"
  61825. abstract="false" native="false" synchronized="false"
  61826. static="true" final="false" visibility="public"
  61827. deprecated="not deprecated">
  61828. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61829. <param name="p" type="org.apache.hadoop.fs.Path"/>
  61830. <doc>
  61831. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  61832. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  61833. keys in the SequenceFile.]]>
  61834. </doc>
  61835. </method>
  61836. <method name="getPartitionFile" return="java.lang.String"
  61837. abstract="false" native="false" synchronized="false"
  61838. static="true" final="false" visibility="public"
  61839. deprecated="not deprecated">
  61840. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61841. <doc>
  61842. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  61843. @see #setPartitionFile(JobConf,Path)]]>
  61844. </doc>
  61845. </method>
  61846. <field name="DEFAULT_PATH" type="java.lang.String"
  61847. transient="false" volatile="false"
  61848. static="true" final="true" visibility="public"
  61849. deprecated="not deprecated">
  61850. </field>
  61851. <doc>
  61852. <![CDATA[Partitioner effecting a total order by reading split points from
  61853. an externally generated source.]]>
  61854. </doc>
  61855. </class>
  61856. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  61857. </package>
  61858. <package name="org.apache.hadoop.mapred.lib.aggregate">
  61859. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  61860. <class name="DoubleValueSum" extends="java.lang.Object"
  61861. abstract="false"
  61862. static="false" final="false" visibility="public"
  61863. deprecated="not deprecated">
  61864. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61865. <constructor name="DoubleValueSum"
  61866. static="false" final="false" visibility="public"
  61867. deprecated="not deprecated">
  61868. <doc>
  61869. <![CDATA[The default constructor]]>
  61870. </doc>
  61871. </constructor>
  61872. <method name="addNextValue"
  61873. abstract="false" native="false" synchronized="false"
  61874. static="false" final="false" visibility="public"
  61875. deprecated="not deprecated">
  61876. <param name="val" type="java.lang.Object"/>
  61877. <doc>
  61878. <![CDATA[add a value to the aggregator
  61879. @param val
  61880. an object whose string representation represents a double value.]]>
  61881. </doc>
  61882. </method>
  61883. <method name="addNextValue"
  61884. abstract="false" native="false" synchronized="false"
  61885. static="false" final="false" visibility="public"
  61886. deprecated="not deprecated">
  61887. <param name="val" type="double"/>
  61888. <doc>
  61889. <![CDATA[add a value to the aggregator
  61890. @param val
  61891. a double value.]]>
  61892. </doc>
  61893. </method>
  61894. <method name="getReport" return="java.lang.String"
  61895. abstract="false" native="false" synchronized="false"
  61896. static="false" final="false" visibility="public"
  61897. deprecated="not deprecated">
  61898. <doc>
  61899. <![CDATA[@return the string representation of the aggregated value]]>
  61900. </doc>
  61901. </method>
  61902. <method name="getSum" return="double"
  61903. abstract="false" native="false" synchronized="false"
  61904. static="false" final="false" visibility="public"
  61905. deprecated="not deprecated">
  61906. <doc>
  61907. <![CDATA[@return the aggregated value]]>
  61908. </doc>
  61909. </method>
  61910. <method name="reset"
  61911. abstract="false" native="false" synchronized="false"
  61912. static="false" final="false" visibility="public"
  61913. deprecated="not deprecated">
  61914. <doc>
  61915. <![CDATA[reset the aggregator]]>
  61916. </doc>
  61917. </method>
  61918. <method name="getCombinerOutput" return="java.util.ArrayList"
  61919. abstract="false" native="false" synchronized="false"
  61920. static="false" final="false" visibility="public"
  61921. deprecated="not deprecated">
  61922. <doc>
  61923. <![CDATA[@return return an array of one element. The element is a string
  61924. representation of the aggregated value. The return value is
  61925. expected to be used by the a combiner.]]>
  61926. </doc>
  61927. </method>
  61928. <doc>
  61929. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  61930. values.]]>
  61931. </doc>
  61932. </class>
  61933. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  61934. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  61935. <class name="LongValueMax" extends="java.lang.Object"
  61936. abstract="false"
  61937. static="false" final="false" visibility="public"
  61938. deprecated="not deprecated">
  61939. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61940. <constructor name="LongValueMax"
  61941. static="false" final="false" visibility="public"
  61942. deprecated="not deprecated">
  61943. <doc>
  61944. <![CDATA[the default constructor]]>
  61945. </doc>
  61946. </constructor>
  61947. <method name="addNextValue"
  61948. abstract="false" native="false" synchronized="false"
  61949. static="false" final="false" visibility="public"
  61950. deprecated="not deprecated">
  61951. <param name="val" type="java.lang.Object"/>
  61952. <doc>
  61953. <![CDATA[add a value to the aggregator
  61954. @param val
  61955. an object whose string representation represents a long value.]]>
  61956. </doc>
  61957. </method>
  61958. <method name="addNextValue"
  61959. abstract="false" native="false" synchronized="false"
  61960. static="false" final="false" visibility="public"
  61961. deprecated="not deprecated">
  61962. <param name="newVal" type="long"/>
  61963. <doc>
  61964. <![CDATA[add a value to the aggregator
  61965. @param newVal
  61966. a long value.]]>
  61967. </doc>
  61968. </method>
  61969. <method name="getVal" return="long"
  61970. abstract="false" native="false" synchronized="false"
  61971. static="false" final="false" visibility="public"
  61972. deprecated="not deprecated">
  61973. <doc>
  61974. <![CDATA[@return the aggregated value]]>
  61975. </doc>
  61976. </method>
  61977. <method name="getReport" return="java.lang.String"
  61978. abstract="false" native="false" synchronized="false"
  61979. static="false" final="false" visibility="public"
  61980. deprecated="not deprecated">
  61981. <doc>
  61982. <![CDATA[@return the string representation of the aggregated value]]>
  61983. </doc>
  61984. </method>
  61985. <method name="reset"
  61986. abstract="false" native="false" synchronized="false"
  61987. static="false" final="false" visibility="public"
  61988. deprecated="not deprecated">
  61989. <doc>
  61990. <![CDATA[reset the aggregator]]>
  61991. </doc>
  61992. </method>
  61993. <method name="getCombinerOutput" return="java.util.ArrayList"
  61994. abstract="false" native="false" synchronized="false"
  61995. static="false" final="false" visibility="public"
  61996. deprecated="not deprecated">
  61997. <doc>
  61998. <![CDATA[@return return an array of one element. The element is a string
  61999. representation of the aggregated value. The return value is
  62000. expected to be used by the a combiner.]]>
  62001. </doc>
  62002. </method>
  62003. <doc>
  62004. <![CDATA[This class implements a value aggregator that maintain the maximum of
  62005. a sequence of long values.]]>
  62006. </doc>
  62007. </class>
  62008. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  62009. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  62010. <class name="LongValueMin" extends="java.lang.Object"
  62011. abstract="false"
  62012. static="false" final="false" visibility="public"
  62013. deprecated="not deprecated">
  62014. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62015. <constructor name="LongValueMin"
  62016. static="false" final="false" visibility="public"
  62017. deprecated="not deprecated">
  62018. <doc>
  62019. <![CDATA[the default constructor]]>
  62020. </doc>
  62021. </constructor>
  62022. <method name="addNextValue"
  62023. abstract="false" native="false" synchronized="false"
  62024. static="false" final="false" visibility="public"
  62025. deprecated="not deprecated">
  62026. <param name="val" type="java.lang.Object"/>
  62027. <doc>
  62028. <![CDATA[add a value to the aggregator
  62029. @param val
  62030. an object whose string representation represents a long value.]]>
  62031. </doc>
  62032. </method>
  62033. <method name="addNextValue"
  62034. abstract="false" native="false" synchronized="false"
  62035. static="false" final="false" visibility="public"
  62036. deprecated="not deprecated">
  62037. <param name="newVal" type="long"/>
  62038. <doc>
  62039. <![CDATA[add a value to the aggregator
  62040. @param newVal
  62041. a long value.]]>
  62042. </doc>
  62043. </method>
  62044. <method name="getVal" return="long"
  62045. abstract="false" native="false" synchronized="false"
  62046. static="false" final="false" visibility="public"
  62047. deprecated="not deprecated">
  62048. <doc>
  62049. <![CDATA[@return the aggregated value]]>
  62050. </doc>
  62051. </method>
  62052. <method name="getReport" return="java.lang.String"
  62053. abstract="false" native="false" synchronized="false"
  62054. static="false" final="false" visibility="public"
  62055. deprecated="not deprecated">
  62056. <doc>
  62057. <![CDATA[@return the string representation of the aggregated value]]>
  62058. </doc>
  62059. </method>
  62060. <method name="reset"
  62061. abstract="false" native="false" synchronized="false"
  62062. static="false" final="false" visibility="public"
  62063. deprecated="not deprecated">
  62064. <doc>
  62065. <![CDATA[reset the aggregator]]>
  62066. </doc>
  62067. </method>
  62068. <method name="getCombinerOutput" return="java.util.ArrayList"
  62069. abstract="false" native="false" synchronized="false"
  62070. static="false" final="false" visibility="public"
  62071. deprecated="not deprecated">
  62072. <doc>
  62073. <![CDATA[@return return an array of one element. The element is a string
  62074. representation of the aggregated value. The return value is
  62075. expected to be used by the a combiner.]]>
  62076. </doc>
  62077. </method>
  62078. <doc>
  62079. <![CDATA[This class implements a value aggregator that maintain the minimum of
  62080. a sequence of long values.]]>
  62081. </doc>
  62082. </class>
  62083. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  62084. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  62085. <class name="LongValueSum" extends="java.lang.Object"
  62086. abstract="false"
  62087. static="false" final="false" visibility="public"
  62088. deprecated="not deprecated">
  62089. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62090. <constructor name="LongValueSum"
  62091. static="false" final="false" visibility="public"
  62092. deprecated="not deprecated">
  62093. <doc>
  62094. <![CDATA[the default constructor]]>
  62095. </doc>
  62096. </constructor>
  62097. <method name="addNextValue"
  62098. abstract="false" native="false" synchronized="false"
  62099. static="false" final="false" visibility="public"
  62100. deprecated="not deprecated">
  62101. <param name="val" type="java.lang.Object"/>
  62102. <doc>
  62103. <![CDATA[add a value to the aggregator
  62104. @param val
  62105. an object whose string representation represents a long value.]]>
  62106. </doc>
  62107. </method>
  62108. <method name="addNextValue"
  62109. abstract="false" native="false" synchronized="false"
  62110. static="false" final="false" visibility="public"
  62111. deprecated="not deprecated">
  62112. <param name="val" type="long"/>
  62113. <doc>
  62114. <![CDATA[add a value to the aggregator
  62115. @param val
  62116. a long value.]]>
  62117. </doc>
  62118. </method>
  62119. <method name="getSum" return="long"
  62120. abstract="false" native="false" synchronized="false"
  62121. static="false" final="false" visibility="public"
  62122. deprecated="not deprecated">
  62123. <doc>
  62124. <![CDATA[@return the aggregated value]]>
  62125. </doc>
  62126. </method>
  62127. <method name="getReport" return="java.lang.String"
  62128. abstract="false" native="false" synchronized="false"
  62129. static="false" final="false" visibility="public"
  62130. deprecated="not deprecated">
  62131. <doc>
  62132. <![CDATA[@return the string representation of the aggregated value]]>
  62133. </doc>
  62134. </method>
  62135. <method name="reset"
  62136. abstract="false" native="false" synchronized="false"
  62137. static="false" final="false" visibility="public"
  62138. deprecated="not deprecated">
  62139. <doc>
  62140. <![CDATA[reset the aggregator]]>
  62141. </doc>
  62142. </method>
  62143. <method name="getCombinerOutput" return="java.util.ArrayList"
  62144. abstract="false" native="false" synchronized="false"
  62145. static="false" final="false" visibility="public"
  62146. deprecated="not deprecated">
  62147. <doc>
  62148. <![CDATA[@return return an array of one element. The element is a string
  62149. representation of the aggregated value. The return value is
  62150. expected to be used by the a combiner.]]>
  62151. </doc>
  62152. </method>
  62153. <doc>
  62154. <![CDATA[This class implements a value aggregator that sums up
  62155. a sequence of long values.]]>
  62156. </doc>
  62157. </class>
  62158. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  62159. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  62160. <class name="StringValueMax" extends="java.lang.Object"
  62161. abstract="false"
  62162. static="false" final="false" visibility="public"
  62163. deprecated="not deprecated">
  62164. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62165. <constructor name="StringValueMax"
  62166. static="false" final="false" visibility="public"
  62167. deprecated="not deprecated">
  62168. <doc>
  62169. <![CDATA[the default constructor]]>
  62170. </doc>
  62171. </constructor>
  62172. <method name="addNextValue"
  62173. abstract="false" native="false" synchronized="false"
  62174. static="false" final="false" visibility="public"
  62175. deprecated="not deprecated">
  62176. <param name="val" type="java.lang.Object"/>
  62177. <doc>
  62178. <![CDATA[add a value to the aggregator
  62179. @param val
  62180. a string.]]>
  62181. </doc>
  62182. </method>
  62183. <method name="getVal" return="java.lang.String"
  62184. abstract="false" native="false" synchronized="false"
  62185. static="false" final="false" visibility="public"
  62186. deprecated="not deprecated">
  62187. <doc>
  62188. <![CDATA[@return the aggregated value]]>
  62189. </doc>
  62190. </method>
  62191. <method name="getReport" return="java.lang.String"
  62192. abstract="false" native="false" synchronized="false"
  62193. static="false" final="false" visibility="public"
  62194. deprecated="not deprecated">
  62195. <doc>
  62196. <![CDATA[@return the string representation of the aggregated value]]>
  62197. </doc>
  62198. </method>
  62199. <method name="reset"
  62200. abstract="false" native="false" synchronized="false"
  62201. static="false" final="false" visibility="public"
  62202. deprecated="not deprecated">
  62203. <doc>
  62204. <![CDATA[reset the aggregator]]>
  62205. </doc>
  62206. </method>
  62207. <method name="getCombinerOutput" return="java.util.ArrayList"
  62208. abstract="false" native="false" synchronized="false"
  62209. static="false" final="false" visibility="public"
  62210. deprecated="not deprecated">
  62211. <doc>
  62212. <![CDATA[@return return an array of one element. The element is a string
  62213. representation of the aggregated value. The return value is
  62214. expected to be used by the a combiner.]]>
  62215. </doc>
  62216. </method>
  62217. <doc>
  62218. <![CDATA[This class implements a value aggregator that maintain the biggest of
  62219. a sequence of strings.]]>
  62220. </doc>
  62221. </class>
  62222. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  62223. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62224. <class name="StringValueMin" extends="java.lang.Object"
  62225. abstract="false"
  62226. static="false" final="false" visibility="public"
  62227. deprecated="not deprecated">
  62228. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62229. <constructor name="StringValueMin"
  62230. static="false" final="false" visibility="public"
  62231. deprecated="not deprecated">
  62232. <doc>
  62233. <![CDATA[the default constructor]]>
  62234. </doc>
  62235. </constructor>
  62236. <method name="addNextValue"
  62237. abstract="false" native="false" synchronized="false"
  62238. static="false" final="false" visibility="public"
  62239. deprecated="not deprecated">
  62240. <param name="val" type="java.lang.Object"/>
  62241. <doc>
  62242. <![CDATA[add a value to the aggregator
  62243. @param val
  62244. a string.]]>
  62245. </doc>
  62246. </method>
  62247. <method name="getVal" return="java.lang.String"
  62248. abstract="false" native="false" synchronized="false"
  62249. static="false" final="false" visibility="public"
  62250. deprecated="not deprecated">
  62251. <doc>
  62252. <![CDATA[@return the aggregated value]]>
  62253. </doc>
  62254. </method>
  62255. <method name="getReport" return="java.lang.String"
  62256. abstract="false" native="false" synchronized="false"
  62257. static="false" final="false" visibility="public"
  62258. deprecated="not deprecated">
  62259. <doc>
  62260. <![CDATA[@return the string representation of the aggregated value]]>
  62261. </doc>
  62262. </method>
  62263. <method name="reset"
  62264. abstract="false" native="false" synchronized="false"
  62265. static="false" final="false" visibility="public"
  62266. deprecated="not deprecated">
  62267. <doc>
  62268. <![CDATA[reset the aggregator]]>
  62269. </doc>
  62270. </method>
  62271. <method name="getCombinerOutput" return="java.util.ArrayList"
  62272. abstract="false" native="false" synchronized="false"
  62273. static="false" final="false" visibility="public"
  62274. deprecated="not deprecated">
  62275. <doc>
  62276. <![CDATA[@return return an array of one element. The element is a string
  62277. representation of the aggregated value. The return value is
  62278. expected to be used by the a combiner.]]>
  62279. </doc>
  62280. </method>
  62281. <doc>
  62282. <![CDATA[This class implements a value aggregator that maintain the smallest of
  62283. a sequence of strings.]]>
  62284. </doc>
  62285. </class>
  62286. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62287. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62288. <class name="UniqValueCount" extends="java.lang.Object"
  62289. abstract="false"
  62290. static="false" final="false" visibility="public"
  62291. deprecated="not deprecated">
  62292. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62293. <constructor name="UniqValueCount"
  62294. static="false" final="false" visibility="public"
  62295. deprecated="not deprecated">
  62296. <doc>
  62297. <![CDATA[the default constructor]]>
  62298. </doc>
  62299. </constructor>
  62300. <constructor name="UniqValueCount" type="long"
  62301. static="false" final="false" visibility="public"
  62302. deprecated="not deprecated">
  62303. <doc>
  62304. <![CDATA[constructor
  62305. @param maxNum the limit in the number of unique values to keep.]]>
  62306. </doc>
  62307. </constructor>
  62308. <method name="setMaxItems" return="long"
  62309. abstract="false" native="false" synchronized="false"
  62310. static="false" final="false" visibility="public"
  62311. deprecated="not deprecated">
  62312. <param name="n" type="long"/>
  62313. <doc>
  62314. <![CDATA[Set the limit on the number of unique values
  62315. @param n the desired limit on the number of unique values
  62316. @return the new limit on the number of unique values]]>
  62317. </doc>
  62318. </method>
  62319. <method name="addNextValue"
  62320. abstract="false" native="false" synchronized="false"
  62321. static="false" final="false" visibility="public"
  62322. deprecated="not deprecated">
  62323. <param name="val" type="java.lang.Object"/>
  62324. <doc>
  62325. <![CDATA[add a value to the aggregator
  62326. @param val
  62327. an object.]]>
  62328. </doc>
  62329. </method>
  62330. <method name="getReport" return="java.lang.String"
  62331. abstract="false" native="false" synchronized="false"
  62332. static="false" final="false" visibility="public"
  62333. deprecated="not deprecated">
  62334. <doc>
  62335. <![CDATA[@return return the number of unique objects aggregated]]>
  62336. </doc>
  62337. </method>
  62338. <method name="getUniqueItems" return="java.util.Set"
  62339. abstract="false" native="false" synchronized="false"
  62340. static="false" final="false" visibility="public"
  62341. deprecated="not deprecated">
  62342. <doc>
  62343. <![CDATA[@return the set of the unique objects]]>
  62344. </doc>
  62345. </method>
  62346. <method name="reset"
  62347. abstract="false" native="false" synchronized="false"
  62348. static="false" final="false" visibility="public"
  62349. deprecated="not deprecated">
  62350. <doc>
  62351. <![CDATA[reset the aggregator]]>
  62352. </doc>
  62353. </method>
  62354. <method name="getCombinerOutput" return="java.util.ArrayList"
  62355. abstract="false" native="false" synchronized="false"
  62356. static="false" final="false" visibility="public"
  62357. deprecated="not deprecated">
  62358. <doc>
  62359. <![CDATA[@return return an array of the unique objects. The return value is
  62360. expected to be used by the a combiner.]]>
  62361. </doc>
  62362. </method>
  62363. <doc>
  62364. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  62365. </doc>
  62366. </class>
  62367. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62368. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  62369. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  62370. abstract="false"
  62371. static="false" final="false" visibility="public"
  62372. deprecated="not deprecated">
  62373. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  62374. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  62375. static="false" final="false" visibility="public"
  62376. deprecated="not deprecated">
  62377. <doc>
  62378. <![CDATA[@param className the class name of the user defined descriptor class
  62379. @param job a configure object used for decriptor configuration]]>
  62380. </doc>
  62381. </constructor>
  62382. <method name="createInstance" return="java.lang.Object"
  62383. abstract="false" native="false" synchronized="false"
  62384. static="true" final="false" visibility="public"
  62385. deprecated="not deprecated">
  62386. <param name="className" type="java.lang.String"/>
  62387. <doc>
  62388. <![CDATA[Create an instance of the given class
  62389. @param className the name of the class
  62390. @return a dynamically created instance of the given class]]>
  62391. </doc>
  62392. </method>
  62393. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62394. abstract="false" native="false" synchronized="false"
  62395. static="false" final="false" visibility="public"
  62396. deprecated="not deprecated">
  62397. <param name="key" type="java.lang.Object"/>
  62398. <param name="val" type="java.lang.Object"/>
  62399. <doc>
  62400. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  62401. by delegating the invocation to the real object.
  62402. @param key
  62403. input key
  62404. @param val
  62405. input value
  62406. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62407. aggregation type which is used to guide the way to aggregate the
  62408. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62409. </doc>
  62410. </method>
  62411. <method name="toString" return="java.lang.String"
  62412. abstract="false" native="false" synchronized="false"
  62413. static="false" final="false" visibility="public"
  62414. deprecated="not deprecated">
  62415. <doc>
  62416. <![CDATA[@return the string representation of this object.]]>
  62417. </doc>
  62418. </method>
  62419. <method name="configure"
  62420. abstract="false" native="false" synchronized="false"
  62421. static="false" final="false" visibility="public"
  62422. deprecated="not deprecated">
  62423. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62424. <doc>
  62425. <![CDATA[Do nothing.]]>
  62426. </doc>
  62427. </method>
  62428. <doc>
  62429. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  62430. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  62431. name of a user defined class that may be dynamically loaded. The other is to
  62432. deligate inviokations of generateKeyValPairs function to the created object.]]>
  62433. </doc>
  62434. </class>
  62435. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  62436. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  62437. <interface name="ValueAggregator" abstract="true"
  62438. static="false" final="false" visibility="public"
  62439. deprecated="not deprecated">
  62440. <method name="addNextValue"
  62441. abstract="false" native="false" synchronized="false"
  62442. static="false" final="false" visibility="public"
  62443. deprecated="not deprecated">
  62444. <param name="val" type="java.lang.Object"/>
  62445. <doc>
  62446. <![CDATA[add a value to the aggregator
  62447. @param val the value to be added]]>
  62448. </doc>
  62449. </method>
  62450. <method name="reset"
  62451. abstract="false" native="false" synchronized="false"
  62452. static="false" final="false" visibility="public"
  62453. deprecated="not deprecated">
  62454. <doc>
  62455. <![CDATA[reset the aggregator]]>
  62456. </doc>
  62457. </method>
  62458. <method name="getReport" return="java.lang.String"
  62459. abstract="false" native="false" synchronized="false"
  62460. static="false" final="false" visibility="public"
  62461. deprecated="not deprecated">
  62462. <doc>
  62463. <![CDATA[@return the string representation of the agregator]]>
  62464. </doc>
  62465. </method>
  62466. <method name="getCombinerOutput" return="java.util.ArrayList"
  62467. abstract="false" native="false" synchronized="false"
  62468. static="false" final="false" visibility="public"
  62469. deprecated="not deprecated">
  62470. <doc>
  62471. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  62472. </doc>
  62473. </method>
  62474. <doc>
  62475. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  62476. </doc>
  62477. </interface>
  62478. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  62479. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  62480. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  62481. abstract="false"
  62482. static="false" final="false" visibility="public"
  62483. deprecated="not deprecated">
  62484. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  62485. <constructor name="ValueAggregatorBaseDescriptor"
  62486. static="false" final="false" visibility="public"
  62487. deprecated="not deprecated">
  62488. </constructor>
  62489. <method name="generateEntry" return="java.util.Map.Entry"
  62490. abstract="false" native="false" synchronized="false"
  62491. static="true" final="false" visibility="public"
  62492. deprecated="not deprecated">
  62493. <param name="type" type="java.lang.String"/>
  62494. <param name="id" type="java.lang.String"/>
  62495. <param name="val" type="org.apache.hadoop.io.Text"/>
  62496. <doc>
  62497. <![CDATA[@param type the aggregation type
  62498. @param id the aggregation id
  62499. @param val the val associated with the id to be aggregated
  62500. @return an Entry whose key is the aggregation id prefixed with
  62501. the aggregation type.]]>
  62502. </doc>
  62503. </method>
  62504. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  62505. abstract="false" native="false" synchronized="false"
  62506. static="true" final="false" visibility="public"
  62507. deprecated="not deprecated">
  62508. <param name="type" type="java.lang.String"/>
  62509. <doc>
  62510. <![CDATA[@param type the aggregation type
  62511. @return a value aggregator of the given type.]]>
  62512. </doc>
  62513. </method>
  62514. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62515. abstract="false" native="false" synchronized="false"
  62516. static="false" final="false" visibility="public"
  62517. deprecated="not deprecated">
  62518. <param name="key" type="java.lang.Object"/>
  62519. <param name="val" type="java.lang.Object"/>
  62520. <doc>
  62521. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  62522. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  62523. its aggregation id. If the input is a file split,
  62524. the second id of the same type will be generated too, with the file name
  62525. as its aggregation id. This achieves the behavior of counting the total number
  62526. of records in the input data, and the number of records in each input file.
  62527. @param key
  62528. input key
  62529. @param val
  62530. input value
  62531. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62532. aggregation type which is used to guide the way to aggregate the
  62533. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62534. </doc>
  62535. </method>
  62536. <method name="configure"
  62537. abstract="false" native="false" synchronized="false"
  62538. static="false" final="false" visibility="public"
  62539. deprecated="not deprecated">
  62540. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62541. <doc>
  62542. <![CDATA[get the input file name.
  62543. @param job a job configuration object]]>
  62544. </doc>
  62545. </method>
  62546. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  62547. transient="false" volatile="false"
  62548. static="true" final="true" visibility="public"
  62549. deprecated="not deprecated">
  62550. </field>
  62551. <field name="LONG_VALUE_SUM" type="java.lang.String"
  62552. transient="false" volatile="false"
  62553. static="true" final="true" visibility="public"
  62554. deprecated="not deprecated">
  62555. </field>
  62556. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  62557. transient="false" volatile="false"
  62558. static="true" final="true" visibility="public"
  62559. deprecated="not deprecated">
  62560. </field>
  62561. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  62562. transient="false" volatile="false"
  62563. static="true" final="true" visibility="public"
  62564. deprecated="not deprecated">
  62565. </field>
  62566. <field name="LONG_VALUE_MAX" type="java.lang.String"
  62567. transient="false" volatile="false"
  62568. static="true" final="true" visibility="public"
  62569. deprecated="not deprecated">
  62570. </field>
  62571. <field name="LONG_VALUE_MIN" type="java.lang.String"
  62572. transient="false" volatile="false"
  62573. static="true" final="true" visibility="public"
  62574. deprecated="not deprecated">
  62575. </field>
  62576. <field name="STRING_VALUE_MAX" type="java.lang.String"
  62577. transient="false" volatile="false"
  62578. static="true" final="true" visibility="public"
  62579. deprecated="not deprecated">
  62580. </field>
  62581. <field name="STRING_VALUE_MIN" type="java.lang.String"
  62582. transient="false" volatile="false"
  62583. static="true" final="true" visibility="public"
  62584. deprecated="not deprecated">
  62585. </field>
  62586. <field name="inputFile" type="java.lang.String"
  62587. transient="false" volatile="false"
  62588. static="false" final="false" visibility="public"
  62589. deprecated="not deprecated">
  62590. </field>
  62591. <doc>
  62592. <![CDATA[This class implements the common functionalities of
  62593. the subclasses of ValueAggregatorDescriptor class.]]>
  62594. </doc>
  62595. </class>
  62596. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  62597. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  62598. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62599. abstract="false"
  62600. static="false" final="false" visibility="public"
  62601. deprecated="not deprecated">
  62602. <constructor name="ValueAggregatorCombiner"
  62603. static="false" final="false" visibility="public"
  62604. deprecated="not deprecated">
  62605. </constructor>
  62606. <method name="configure"
  62607. abstract="false" native="false" synchronized="false"
  62608. static="false" final="false" visibility="public"
  62609. deprecated="not deprecated">
  62610. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62611. <doc>
  62612. <![CDATA[Combiner does not need to configure.]]>
  62613. </doc>
  62614. </method>
  62615. <method name="reduce"
  62616. abstract="false" native="false" synchronized="false"
  62617. static="false" final="false" visibility="public"
  62618. deprecated="not deprecated">
  62619. <param name="key" type="org.apache.hadoop.io.Text"/>
  62620. <param name="values" type="java.util.Iterator"/>
  62621. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62622. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62623. <exception name="IOException" type="java.io.IOException"/>
  62624. <doc>
  62625. <![CDATA[Combines values for a given key.
  62626. @param key the key is expected to be a Text object, whose prefix indicates
  62627. the type of aggregation to aggregate the values.
  62628. @param values the values to combine
  62629. @param output to collect combined values]]>
  62630. </doc>
  62631. </method>
  62632. <method name="close"
  62633. abstract="false" native="false" synchronized="false"
  62634. static="false" final="false" visibility="public"
  62635. deprecated="not deprecated">
  62636. <exception name="IOException" type="java.io.IOException"/>
  62637. <doc>
  62638. <![CDATA[Do nothing.]]>
  62639. </doc>
  62640. </method>
  62641. <method name="map"
  62642. abstract="false" native="false" synchronized="false"
  62643. static="false" final="false" visibility="public"
  62644. deprecated="not deprecated">
  62645. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  62646. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  62647. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62648. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62649. <exception name="IOException" type="java.io.IOException"/>
  62650. <doc>
  62651. <![CDATA[Do nothing. Should not be called.]]>
  62652. </doc>
  62653. </method>
  62654. <doc>
  62655. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  62656. </doc>
  62657. </class>
  62658. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  62659. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  62660. <interface name="ValueAggregatorDescriptor" abstract="true"
  62661. static="false" final="false" visibility="public"
  62662. deprecated="not deprecated">
  62663. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62664. abstract="false" native="false" synchronized="false"
  62665. static="false" final="false" visibility="public"
  62666. deprecated="not deprecated">
  62667. <param name="key" type="java.lang.Object"/>
  62668. <param name="val" type="java.lang.Object"/>
  62669. <doc>
  62670. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  62671. This function is usually called by the mapper of an Aggregate based job.
  62672. @param key
  62673. input key
  62674. @param val
  62675. input value
  62676. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62677. aggregation type which is used to guide the way to aggregate the
  62678. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62679. </doc>
  62680. </method>
  62681. <method name="configure"
  62682. abstract="false" native="false" synchronized="false"
  62683. static="false" final="false" visibility="public"
  62684. deprecated="not deprecated">
  62685. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62686. <doc>
  62687. <![CDATA[Configure the object
  62688. @param job
  62689. a JobConf object that may contain the information that can be used
  62690. to configure the object.]]>
  62691. </doc>
  62692. </method>
  62693. <field name="TYPE_SEPARATOR" type="java.lang.String"
  62694. transient="false" volatile="false"
  62695. static="true" final="true" visibility="public"
  62696. deprecated="not deprecated">
  62697. </field>
  62698. <field name="ONE" type="org.apache.hadoop.io.Text"
  62699. transient="false" volatile="false"
  62700. static="true" final="true" visibility="public"
  62701. deprecated="not deprecated">
  62702. </field>
  62703. <doc>
  62704. <![CDATA[This interface defines the contract a value aggregator descriptor must
  62705. support. Such a descriptor can be configured with a JobConf object. Its main
  62706. function is to generate a list of aggregation-id/value pairs. An aggregation
  62707. id encodes an aggregation type which is used to guide the way to aggregate
  62708. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  62709. an Aggregate based map/reduce job may create one or more of
  62710. ValueAggregatorDescriptor objects at configuration time. For each input
  62711. key/value pair, the mapper will use those objects to create aggregation
  62712. id/value pairs.]]>
  62713. </doc>
  62714. </interface>
  62715. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  62716. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  62717. <class name="ValueAggregatorJob" extends="java.lang.Object"
  62718. abstract="false"
  62719. static="false" final="false" visibility="public"
  62720. deprecated="not deprecated">
  62721. <constructor name="ValueAggregatorJob"
  62722. static="false" final="false" visibility="public"
  62723. deprecated="not deprecated">
  62724. </constructor>
  62725. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  62726. abstract="false" native="false" synchronized="false"
  62727. static="true" final="false" visibility="public"
  62728. deprecated="not deprecated">
  62729. <param name="args" type="java.lang.String[]"/>
  62730. <param name="descriptors" type="java.lang.Class[]"/>
  62731. <exception name="IOException" type="java.io.IOException"/>
  62732. </method>
  62733. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  62734. abstract="false" native="false" synchronized="false"
  62735. static="true" final="false" visibility="public"
  62736. deprecated="not deprecated">
  62737. <param name="args" type="java.lang.String[]"/>
  62738. <exception name="IOException" type="java.io.IOException"/>
  62739. </method>
  62740. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  62741. abstract="false" native="false" synchronized="false"
  62742. static="true" final="false" visibility="public"
  62743. deprecated="not deprecated">
  62744. <param name="args" type="java.lang.String[]"/>
  62745. <exception name="IOException" type="java.io.IOException"/>
  62746. <doc>
  62747. <![CDATA[Create an Aggregate based map/reduce job.
  62748. @param args the arguments used for job creation. Generic hadoop
  62749. arguments are accepted.
  62750. @return a JobConf object ready for submission.
  62751. @throws IOException
  62752. @see GenericOptionsParser]]>
  62753. </doc>
  62754. </method>
  62755. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  62756. abstract="false" native="false" synchronized="false"
  62757. static="true" final="false" visibility="public"
  62758. deprecated="not deprecated">
  62759. <param name="args" type="java.lang.String[]"/>
  62760. <param name="descriptors" type="java.lang.Class[]"/>
  62761. <exception name="IOException" type="java.io.IOException"/>
  62762. </method>
  62763. <method name="setAggregatorDescriptors"
  62764. abstract="false" native="false" synchronized="false"
  62765. static="true" final="false" visibility="public"
  62766. deprecated="not deprecated">
  62767. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62768. <param name="descriptors" type="java.lang.Class[]"/>
  62769. </method>
  62770. <method name="main"
  62771. abstract="false" native="false" synchronized="false"
  62772. static="true" final="false" visibility="public"
  62773. deprecated="not deprecated">
  62774. <param name="args" type="java.lang.String[]"/>
  62775. <exception name="IOException" type="java.io.IOException"/>
  62776. <doc>
  62777. <![CDATA[create and run an Aggregate based map/reduce job.
  62778. @param args the arguments used for job creation
  62779. @throws IOException]]>
  62780. </doc>
  62781. </method>
  62782. <doc>
  62783. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  62784. framework. The Aggregate is a specialization of map/reduce framework,
  62785. specilizing for performing various simple aggregations.
  62786. Generally speaking, in order to implement an application using Map/Reduce
  62787. model, the developer is to implement Map and Reduce functions (and possibly
  62788. combine function). However, a lot of applications related to counting and
  62789. statistics computing have very similar characteristics. Aggregate abstracts
  62790. out the general patterns of these functions and implementing those patterns.
  62791. In particular, the package provides generic mapper/redducer/combiner classes,
  62792. and a set of built-in value aggregators, and a generic utility class that
  62793. helps user create map/reduce jobs using the generic class. The built-in
  62794. aggregators include:
  62795. sum over numeric values count the number of distinct values compute the
  62796. histogram of values compute the minimum, maximum, media,average, standard
  62797. deviation of numeric values
  62798. The developer using Aggregate will need only to provide a plugin class
  62799. conforming to the following interface:
  62800. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  62801. generateKeyValPairs(Object key, Object value); public void
  62802. configure(JobConfjob); }
  62803. The package also provides a base class, ValueAggregatorBaseDescriptor,
  62804. implementing the above interface. The user can extend the base class and
  62805. implement generateKeyValPairs accordingly.
  62806. The primary work of generateKeyValPairs is to emit one or more key/value
  62807. pairs based on the input key/value pair. The key in an output key/value pair
  62808. encode two pieces of information: aggregation type and aggregation id. The
  62809. value will be aggregated onto the aggregation id according the aggregation
  62810. type.
  62811. This class offers a function to generate a map/reduce job using Aggregate
  62812. framework. The function takes the following parameters: input directory spec
  62813. input format (text or sequence file) output directory a file specifying the
  62814. user plugin class]]>
  62815. </doc>
  62816. </class>
  62817. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  62818. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  62819. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  62820. abstract="true"
  62821. static="false" final="false" visibility="public"
  62822. deprecated="not deprecated">
  62823. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62824. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62825. <constructor name="ValueAggregatorJobBase"
  62826. static="false" final="false" visibility="public"
  62827. deprecated="not deprecated">
  62828. </constructor>
  62829. <method name="configure"
  62830. abstract="false" native="false" synchronized="false"
  62831. static="false" final="false" visibility="public"
  62832. deprecated="not deprecated">
  62833. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62834. </method>
  62835. <method name="logSpec"
  62836. abstract="false" native="false" synchronized="false"
  62837. static="false" final="false" visibility="protected"
  62838. deprecated="not deprecated">
  62839. </method>
  62840. <method name="close"
  62841. abstract="false" native="false" synchronized="false"
  62842. static="false" final="false" visibility="public"
  62843. deprecated="not deprecated">
  62844. <exception name="IOException" type="java.io.IOException"/>
  62845. </method>
  62846. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  62847. transient="false" volatile="false"
  62848. static="false" final="false" visibility="protected"
  62849. deprecated="not deprecated">
  62850. </field>
  62851. <doc>
  62852. <![CDATA[This abstract class implements some common functionalities of the
  62853. the generic mapper, reducer and combiner classes of Aggregate.]]>
  62854. </doc>
  62855. </class>
  62856. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  62857. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  62858. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62859. abstract="false"
  62860. static="false" final="false" visibility="public"
  62861. deprecated="not deprecated">
  62862. <constructor name="ValueAggregatorMapper"
  62863. static="false" final="false" visibility="public"
  62864. deprecated="not deprecated">
  62865. </constructor>
  62866. <method name="map"
  62867. abstract="false" native="false" synchronized="false"
  62868. static="false" final="false" visibility="public"
  62869. deprecated="not deprecated">
  62870. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62871. <param name="value" type="org.apache.hadoop.io.Writable"/>
  62872. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62873. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62874. <exception name="IOException" type="java.io.IOException"/>
  62875. <doc>
  62876. <![CDATA[the map function. It iterates through the value aggregator descriptor
  62877. list to generate aggregation id/value pairs and emit them.]]>
  62878. </doc>
  62879. </method>
  62880. <method name="reduce"
  62881. abstract="false" native="false" synchronized="false"
  62882. static="false" final="false" visibility="public"
  62883. deprecated="not deprecated">
  62884. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  62885. <param name="arg1" type="java.util.Iterator"/>
  62886. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62887. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62888. <exception name="IOException" type="java.io.IOException"/>
  62889. <doc>
  62890. <![CDATA[Do nothing. Should not be called.]]>
  62891. </doc>
  62892. </method>
  62893. <doc>
  62894. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  62895. </doc>
  62896. </class>
  62897. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  62898. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  62899. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62900. abstract="false"
  62901. static="false" final="false" visibility="public"
  62902. deprecated="not deprecated">
  62903. <constructor name="ValueAggregatorReducer"
  62904. static="false" final="false" visibility="public"
  62905. deprecated="not deprecated">
  62906. </constructor>
  62907. <method name="reduce"
  62908. abstract="false" native="false" synchronized="false"
  62909. static="false" final="false" visibility="public"
  62910. deprecated="not deprecated">
  62911. <param name="key" type="org.apache.hadoop.io.Text"/>
  62912. <param name="values" type="java.util.Iterator"/>
  62913. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62914. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62915. <exception name="IOException" type="java.io.IOException"/>
  62916. <doc>
  62917. <![CDATA[@param key
  62918. the key is expected to be a Text object, whose prefix indicates
  62919. the type of aggregation to aggregate the values. In effect, data
  62920. driven computing is achieved. It is assumed that each aggregator's
  62921. getReport method emits appropriate output for the aggregator. This
  62922. may be further customiized.
  62923. @value the values to be aggregated]]>
  62924. </doc>
  62925. </method>
  62926. <method name="map"
  62927. abstract="false" native="false" synchronized="false"
  62928. static="false" final="false" visibility="public"
  62929. deprecated="not deprecated">
  62930. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  62931. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  62932. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62933. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62934. <exception name="IOException" type="java.io.IOException"/>
  62935. <doc>
  62936. <![CDATA[Do nothing. Should not be called]]>
  62937. </doc>
  62938. </method>
  62939. <doc>
  62940. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  62941. </doc>
  62942. </class>
  62943. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  62944. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  62945. <class name="ValueHistogram" extends="java.lang.Object"
  62946. abstract="false"
  62947. static="false" final="false" visibility="public"
  62948. deprecated="not deprecated">
  62949. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62950. <constructor name="ValueHistogram"
  62951. static="false" final="false" visibility="public"
  62952. deprecated="not deprecated">
  62953. </constructor>
  62954. <method name="addNextValue"
  62955. abstract="false" native="false" synchronized="false"
  62956. static="false" final="false" visibility="public"
  62957. deprecated="not deprecated">
  62958. <param name="val" type="java.lang.Object"/>
  62959. <doc>
  62960. <![CDATA[add the given val to the aggregator.
  62961. @param val the value to be added. It is expected to be a string
  62962. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  62963. </doc>
  62964. </method>
  62965. <method name="getReport" return="java.lang.String"
  62966. abstract="false" native="false" synchronized="false"
  62967. static="false" final="false" visibility="public"
  62968. deprecated="not deprecated">
  62969. <doc>
  62970. <![CDATA[@return the string representation of this aggregator.
  62971. It includes the following basic statistics of the histogram:
  62972. the number of unique values
  62973. the minimum value
  62974. the media value
  62975. the maximum value
  62976. the average value
  62977. the standard deviation]]>
  62978. </doc>
  62979. </method>
  62980. <method name="getReportDetails" return="java.lang.String"
  62981. abstract="false" native="false" synchronized="false"
  62982. static="false" final="false" visibility="public"
  62983. deprecated="not deprecated">
  62984. <doc>
  62985. <![CDATA[@return a string representation of the list of value/frequence pairs of
  62986. the histogram]]>
  62987. </doc>
  62988. </method>
  62989. <method name="getCombinerOutput" return="java.util.ArrayList"
  62990. abstract="false" native="false" synchronized="false"
  62991. static="false" final="false" visibility="public"
  62992. deprecated="not deprecated">
  62993. <doc>
  62994. <![CDATA[@return a list value/frequence pairs.
  62995. The return value is expected to be used by the reducer.]]>
  62996. </doc>
  62997. </method>
  62998. <method name="getReportItems" return="java.util.TreeMap"
  62999. abstract="false" native="false" synchronized="false"
  63000. static="false" final="false" visibility="public"
  63001. deprecated="not deprecated">
  63002. <doc>
  63003. <![CDATA[@return a TreeMap representation of the histogram]]>
  63004. </doc>
  63005. </method>
  63006. <method name="reset"
  63007. abstract="false" native="false" synchronized="false"
  63008. static="false" final="false" visibility="public"
  63009. deprecated="not deprecated">
  63010. <doc>
  63011. <![CDATA[reset the aggregator]]>
  63012. </doc>
  63013. </method>
  63014. <doc>
  63015. <![CDATA[This class implements a value aggregator that computes the
  63016. histogram of a sequence of strings.]]>
  63017. </doc>
  63018. </class>
  63019. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  63020. </package>
  63021. <package name="org.apache.hadoop.mapred.lib.db">
  63022. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  63023. <class name="DBConfiguration" extends="java.lang.Object"
  63024. abstract="false"
  63025. static="false" final="false" visibility="public"
  63026. deprecated="not deprecated">
  63027. <method name="configureDB"
  63028. abstract="false" native="false" synchronized="false"
  63029. static="true" final="false" visibility="public"
  63030. deprecated="not deprecated">
  63031. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63032. <param name="driverClass" type="java.lang.String"/>
  63033. <param name="dbUrl" type="java.lang.String"/>
  63034. <param name="userName" type="java.lang.String"/>
  63035. <param name="passwd" type="java.lang.String"/>
  63036. <doc>
  63037. <![CDATA[Sets the DB access related fields in the JobConf.
  63038. @param job the job
  63039. @param driverClass JDBC Driver class name
  63040. @param dbUrl JDBC DB access URL.
  63041. @param userName DB access username
  63042. @param passwd DB access passwd]]>
  63043. </doc>
  63044. </method>
  63045. <method name="configureDB"
  63046. abstract="false" native="false" synchronized="false"
  63047. static="true" final="false" visibility="public"
  63048. deprecated="not deprecated">
  63049. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63050. <param name="driverClass" type="java.lang.String"/>
  63051. <param name="dbUrl" type="java.lang.String"/>
  63052. <doc>
  63053. <![CDATA[Sets the DB access related fields in the JobConf.
  63054. @param job the job
  63055. @param driverClass JDBC Driver class name
  63056. @param dbUrl JDBC DB access URL.]]>
  63057. </doc>
  63058. </method>
  63059. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  63060. transient="false" volatile="false"
  63061. static="true" final="true" visibility="public"
  63062. deprecated="not deprecated">
  63063. <doc>
  63064. <![CDATA[The JDBC Driver class name]]>
  63065. </doc>
  63066. </field>
  63067. <field name="URL_PROPERTY" type="java.lang.String"
  63068. transient="false" volatile="false"
  63069. static="true" final="true" visibility="public"
  63070. deprecated="not deprecated">
  63071. <doc>
  63072. <![CDATA[JDBC Database access URL]]>
  63073. </doc>
  63074. </field>
  63075. <field name="USERNAME_PROPERTY" type="java.lang.String"
  63076. transient="false" volatile="false"
  63077. static="true" final="true" visibility="public"
  63078. deprecated="not deprecated">
  63079. <doc>
  63080. <![CDATA[User name to access the database]]>
  63081. </doc>
  63082. </field>
  63083. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  63084. transient="false" volatile="false"
  63085. static="true" final="true" visibility="public"
  63086. deprecated="not deprecated">
  63087. <doc>
  63088. <![CDATA[Password to access the database]]>
  63089. </doc>
  63090. </field>
  63091. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  63092. transient="false" volatile="false"
  63093. static="true" final="true" visibility="public"
  63094. deprecated="not deprecated">
  63095. <doc>
  63096. <![CDATA[Input table name]]>
  63097. </doc>
  63098. </field>
  63099. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  63100. transient="false" volatile="false"
  63101. static="true" final="true" visibility="public"
  63102. deprecated="not deprecated">
  63103. <doc>
  63104. <![CDATA[Field names in the Input table]]>
  63105. </doc>
  63106. </field>
  63107. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  63108. transient="false" volatile="false"
  63109. static="true" final="true" visibility="public"
  63110. deprecated="not deprecated">
  63111. <doc>
  63112. <![CDATA[WHERE clause in the input SELECT statement]]>
  63113. </doc>
  63114. </field>
  63115. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  63116. transient="false" volatile="false"
  63117. static="true" final="true" visibility="public"
  63118. deprecated="not deprecated">
  63119. <doc>
  63120. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  63121. </doc>
  63122. </field>
  63123. <field name="INPUT_QUERY" type="java.lang.String"
  63124. transient="false" volatile="false"
  63125. static="true" final="true" visibility="public"
  63126. deprecated="not deprecated">
  63127. <doc>
  63128. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  63129. </doc>
  63130. </field>
  63131. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  63132. transient="false" volatile="false"
  63133. static="true" final="true" visibility="public"
  63134. deprecated="not deprecated">
  63135. <doc>
  63136. <![CDATA[Input query to get the count of records]]>
  63137. </doc>
  63138. </field>
  63139. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  63140. transient="false" volatile="false"
  63141. static="true" final="true" visibility="public"
  63142. deprecated="not deprecated">
  63143. <doc>
  63144. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  63145. </doc>
  63146. </field>
  63147. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  63148. transient="false" volatile="false"
  63149. static="true" final="true" visibility="public"
  63150. deprecated="not deprecated">
  63151. <doc>
  63152. <![CDATA[Output table name]]>
  63153. </doc>
  63154. </field>
  63155. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  63156. transient="false" volatile="false"
  63157. static="true" final="true" visibility="public"
  63158. deprecated="not deprecated">
  63159. <doc>
  63160. <![CDATA[Field names in the Output table]]>
  63161. </doc>
  63162. </field>
  63163. <doc>
  63164. <![CDATA[A container for configuration property names for jobs with DB input/output.
  63165. <br>
  63166. The job can be configured using the static methods in this class,
  63167. {@link DBInputFormat}, and {@link DBOutputFormat}.
  63168. <p>
  63169. Alternatively, the properties can be set in the configuration with proper
  63170. values.
  63171. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  63172. @see DBInputFormat#setInput(JobConf, Class, String, String)
  63173. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  63174. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  63175. </doc>
  63176. </class>
  63177. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  63178. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  63179. <class name="DBInputFormat" extends="java.lang.Object"
  63180. abstract="false"
  63181. static="false" final="false" visibility="public"
  63182. deprecated="not deprecated">
  63183. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  63184. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  63185. <constructor name="DBInputFormat"
  63186. static="false" final="false" visibility="public"
  63187. deprecated="not deprecated">
  63188. </constructor>
  63189. <method name="configure"
  63190. abstract="false" native="false" synchronized="false"
  63191. static="false" final="false" visibility="public"
  63192. deprecated="not deprecated">
  63193. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63194. <doc>
  63195. <![CDATA[{@inheritDoc}]]>
  63196. </doc>
  63197. </method>
  63198. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63199. abstract="false" native="false" synchronized="false"
  63200. static="false" final="false" visibility="public"
  63201. deprecated="not deprecated">
  63202. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63203. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63204. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63205. <exception name="IOException" type="java.io.IOException"/>
  63206. <doc>
  63207. <![CDATA[{@inheritDoc}]]>
  63208. </doc>
  63209. </method>
  63210. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63211. abstract="false" native="false" synchronized="false"
  63212. static="false" final="false" visibility="public"
  63213. deprecated="not deprecated">
  63214. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63215. <param name="chunks" type="int"/>
  63216. <exception name="IOException" type="java.io.IOException"/>
  63217. <doc>
  63218. <![CDATA[{@inheritDoc}]]>
  63219. </doc>
  63220. </method>
  63221. <method name="getCountQuery" return="java.lang.String"
  63222. abstract="false" native="false" synchronized="false"
  63223. static="false" final="false" visibility="protected"
  63224. deprecated="not deprecated">
  63225. <doc>
  63226. <![CDATA[Returns the query for getting the total number of rows,
  63227. subclasses can override this for custom behaviour.]]>
  63228. </doc>
  63229. </method>
  63230. <method name="setInput"
  63231. abstract="false" native="false" synchronized="false"
  63232. static="true" final="false" visibility="public"
  63233. deprecated="not deprecated">
  63234. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63235. <param name="inputClass" type="java.lang.Class"/>
  63236. <param name="tableName" type="java.lang.String"/>
  63237. <param name="conditions" type="java.lang.String"/>
  63238. <param name="orderBy" type="java.lang.String"/>
  63239. <param name="fieldNames" type="java.lang.String[]"/>
  63240. <doc>
  63241. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63242. @param job The job
  63243. @param inputClass the class object implementing DBWritable, which is the
  63244. Java object holding tuple fields.
  63245. @param tableName The table to read data from
  63246. @param conditions The condition which to select data with, eg. '(updated >
  63247. 20070101 AND length > 0)'
  63248. @param orderBy the fieldNames in the orderBy clause.
  63249. @param fieldNames The field names in the table
  63250. @see #setInput(JobConf, Class, String, String)]]>
  63251. </doc>
  63252. </method>
  63253. <method name="setInput"
  63254. abstract="false" native="false" synchronized="false"
  63255. static="true" final="false" visibility="public"
  63256. deprecated="not deprecated">
  63257. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63258. <param name="inputClass" type="java.lang.Class"/>
  63259. <param name="inputQuery" type="java.lang.String"/>
  63260. <param name="inputCountQuery" type="java.lang.String"/>
  63261. <doc>
  63262. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63263. @param job The job
  63264. @param inputClass the class object implementing DBWritable, which is the
  63265. Java object holding tuple fields.
  63266. @param inputQuery the input query to select fields. Example :
  63267. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  63268. @param inputCountQuery the input query that returns the number of records in
  63269. the table.
  63270. Example : "SELECT COUNT(f1) FROM Mytable"
  63271. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  63272. </doc>
  63273. </method>
  63274. <doc>
  63275. <![CDATA[A InputFormat that reads input data from an SQL table.
  63276. <p>
  63277. DBInputFormat emits LongWritables containing the record number as
  63278. key and DBWritables as value.
  63279. The SQL query, and input class can be using one of the two
  63280. setInput methods.]]>
  63281. </doc>
  63282. </class>
  63283. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  63284. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63285. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  63286. abstract="false"
  63287. static="true" final="false" visibility="protected"
  63288. deprecated="not deprecated">
  63289. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  63290. <constructor name="DBInputFormat.DBInputSplit"
  63291. static="false" final="false" visibility="public"
  63292. deprecated="not deprecated">
  63293. <doc>
  63294. <![CDATA[Default Constructor]]>
  63295. </doc>
  63296. </constructor>
  63297. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  63298. static="false" final="false" visibility="public"
  63299. deprecated="not deprecated">
  63300. <doc>
  63301. <![CDATA[Convenience Constructor
  63302. @param start the index of the first row to select
  63303. @param end the index of the last row to select]]>
  63304. </doc>
  63305. </constructor>
  63306. <method name="getLocations" return="java.lang.String[]"
  63307. abstract="false" native="false" synchronized="false"
  63308. static="false" final="false" visibility="public"
  63309. deprecated="not deprecated">
  63310. <exception name="IOException" type="java.io.IOException"/>
  63311. <doc>
  63312. <![CDATA[{@inheritDoc}]]>
  63313. </doc>
  63314. </method>
  63315. <method name="getStart" return="long"
  63316. abstract="false" native="false" synchronized="false"
  63317. static="false" final="false" visibility="public"
  63318. deprecated="not deprecated">
  63319. <doc>
  63320. <![CDATA[@return The index of the first row to select]]>
  63321. </doc>
  63322. </method>
  63323. <method name="getEnd" return="long"
  63324. abstract="false" native="false" synchronized="false"
  63325. static="false" final="false" visibility="public"
  63326. deprecated="not deprecated">
  63327. <doc>
  63328. <![CDATA[@return The index of the last row to select]]>
  63329. </doc>
  63330. </method>
  63331. <method name="getLength" return="long"
  63332. abstract="false" native="false" synchronized="false"
  63333. static="false" final="false" visibility="public"
  63334. deprecated="not deprecated">
  63335. <exception name="IOException" type="java.io.IOException"/>
  63336. <doc>
  63337. <![CDATA[@return The total row count in this split]]>
  63338. </doc>
  63339. </method>
  63340. <method name="readFields"
  63341. abstract="false" native="false" synchronized="false"
  63342. static="false" final="false" visibility="public"
  63343. deprecated="not deprecated">
  63344. <param name="input" type="java.io.DataInput"/>
  63345. <exception name="IOException" type="java.io.IOException"/>
  63346. <doc>
  63347. <![CDATA[{@inheritDoc}]]>
  63348. </doc>
  63349. </method>
  63350. <method name="write"
  63351. abstract="false" native="false" synchronized="false"
  63352. static="false" final="false" visibility="public"
  63353. deprecated="not deprecated">
  63354. <param name="output" type="java.io.DataOutput"/>
  63355. <exception name="IOException" type="java.io.IOException"/>
  63356. <doc>
  63357. <![CDATA[{@inheritDoc}]]>
  63358. </doc>
  63359. </method>
  63360. <doc>
  63361. <![CDATA[A InputSplit that spans a set of rows]]>
  63362. </doc>
  63363. </class>
  63364. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63365. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  63366. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  63367. abstract="false"
  63368. static="false" final="false" visibility="protected"
  63369. deprecated="not deprecated">
  63370. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  63371. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  63372. static="false" final="false" visibility="protected"
  63373. deprecated="not deprecated">
  63374. <exception name="SQLException" type="java.sql.SQLException"/>
  63375. <doc>
  63376. <![CDATA[@param split The InputSplit to read data for
  63377. @throws SQLException]]>
  63378. </doc>
  63379. </constructor>
  63380. <method name="getSelectQuery" return="java.lang.String"
  63381. abstract="false" native="false" synchronized="false"
  63382. static="false" final="false" visibility="protected"
  63383. deprecated="not deprecated">
  63384. <doc>
  63385. <![CDATA[Returns the query for selecting the records,
  63386. subclasses can override this for custom behaviour.]]>
  63387. </doc>
  63388. </method>
  63389. <method name="close"
  63390. abstract="false" native="false" synchronized="false"
  63391. static="false" final="false" visibility="public"
  63392. deprecated="not deprecated">
  63393. <exception name="IOException" type="java.io.IOException"/>
  63394. <doc>
  63395. <![CDATA[{@inheritDoc}]]>
  63396. </doc>
  63397. </method>
  63398. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  63399. abstract="false" native="false" synchronized="false"
  63400. static="false" final="false" visibility="public"
  63401. deprecated="not deprecated">
  63402. <doc>
  63403. <![CDATA[{@inheritDoc}]]>
  63404. </doc>
  63405. </method>
  63406. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  63407. abstract="false" native="false" synchronized="false"
  63408. static="false" final="false" visibility="public"
  63409. deprecated="not deprecated">
  63410. <doc>
  63411. <![CDATA[{@inheritDoc}]]>
  63412. </doc>
  63413. </method>
  63414. <method name="getPos" return="long"
  63415. abstract="false" native="false" synchronized="false"
  63416. static="false" final="false" visibility="public"
  63417. deprecated="not deprecated">
  63418. <exception name="IOException" type="java.io.IOException"/>
  63419. <doc>
  63420. <![CDATA[{@inheritDoc}]]>
  63421. </doc>
  63422. </method>
  63423. <method name="getProgress" return="float"
  63424. abstract="false" native="false" synchronized="false"
  63425. static="false" final="false" visibility="public"
  63426. deprecated="not deprecated">
  63427. <exception name="IOException" type="java.io.IOException"/>
  63428. <doc>
  63429. <![CDATA[{@inheritDoc}]]>
  63430. </doc>
  63431. </method>
  63432. <method name="next" return="boolean"
  63433. abstract="false" native="false" synchronized="false"
  63434. static="false" final="false" visibility="public"
  63435. deprecated="not deprecated">
  63436. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  63437. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63438. <exception name="IOException" type="java.io.IOException"/>
  63439. <doc>
  63440. <![CDATA[{@inheritDoc}]]>
  63441. </doc>
  63442. </method>
  63443. <doc>
  63444. <![CDATA[A RecordReader that reads records from a SQL table.
  63445. Emits LongWritables containing the record number as
  63446. key and DBWritables as value.]]>
  63447. </doc>
  63448. </class>
  63449. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  63450. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  63451. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  63452. abstract="false"
  63453. static="true" final="false" visibility="public"
  63454. deprecated="not deprecated">
  63455. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63456. <implements name="org.apache.hadoop.io.Writable"/>
  63457. <constructor name="DBInputFormat.NullDBWritable"
  63458. static="false" final="false" visibility="public"
  63459. deprecated="not deprecated">
  63460. </constructor>
  63461. <method name="readFields"
  63462. abstract="false" native="false" synchronized="false"
  63463. static="false" final="false" visibility="public"
  63464. deprecated="not deprecated">
  63465. <param name="in" type="java.io.DataInput"/>
  63466. <exception name="IOException" type="java.io.IOException"/>
  63467. </method>
  63468. <method name="readFields"
  63469. abstract="false" native="false" synchronized="false"
  63470. static="false" final="false" visibility="public"
  63471. deprecated="not deprecated">
  63472. <param name="arg0" type="java.sql.ResultSet"/>
  63473. <exception name="SQLException" type="java.sql.SQLException"/>
  63474. </method>
  63475. <method name="write"
  63476. abstract="false" native="false" synchronized="false"
  63477. static="false" final="false" visibility="public"
  63478. deprecated="not deprecated">
  63479. <param name="out" type="java.io.DataOutput"/>
  63480. <exception name="IOException" type="java.io.IOException"/>
  63481. </method>
  63482. <method name="write"
  63483. abstract="false" native="false" synchronized="false"
  63484. static="false" final="false" visibility="public"
  63485. deprecated="not deprecated">
  63486. <param name="arg0" type="java.sql.PreparedStatement"/>
  63487. <exception name="SQLException" type="java.sql.SQLException"/>
  63488. </method>
  63489. <doc>
  63490. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  63491. </doc>
  63492. </class>
  63493. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  63494. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  63495. <class name="DBOutputFormat" extends="java.lang.Object"
  63496. abstract="false"
  63497. static="false" final="false" visibility="public"
  63498. deprecated="not deprecated">
  63499. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  63500. <constructor name="DBOutputFormat"
  63501. static="false" final="false" visibility="public"
  63502. deprecated="not deprecated">
  63503. </constructor>
  63504. <method name="constructQuery" return="java.lang.String"
  63505. abstract="false" native="false" synchronized="false"
  63506. static="false" final="false" visibility="protected"
  63507. deprecated="not deprecated">
  63508. <param name="table" type="java.lang.String"/>
  63509. <param name="fieldNames" type="java.lang.String[]"/>
  63510. <doc>
  63511. <![CDATA[Constructs the query used as the prepared statement to insert data.
  63512. @param table
  63513. the table to insert into
  63514. @param fieldNames
  63515. the fields to insert into. If field names are unknown, supply an
  63516. array of nulls.]]>
  63517. </doc>
  63518. </method>
  63519. <method name="checkOutputSpecs"
  63520. abstract="false" native="false" synchronized="false"
  63521. static="false" final="false" visibility="public"
  63522. deprecated="not deprecated">
  63523. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  63524. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63525. <exception name="IOException" type="java.io.IOException"/>
  63526. <doc>
  63527. <![CDATA[{@inheritDoc}]]>
  63528. </doc>
  63529. </method>
  63530. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63531. abstract="false" native="false" synchronized="false"
  63532. static="false" final="false" visibility="public"
  63533. deprecated="not deprecated">
  63534. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  63535. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63536. <param name="name" type="java.lang.String"/>
  63537. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  63538. <exception name="IOException" type="java.io.IOException"/>
  63539. <doc>
  63540. <![CDATA[{@inheritDoc}]]>
  63541. </doc>
  63542. </method>
  63543. <method name="setOutput"
  63544. abstract="false" native="false" synchronized="false"
  63545. static="true" final="false" visibility="public"
  63546. deprecated="not deprecated">
  63547. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63548. <param name="tableName" type="java.lang.String"/>
  63549. <param name="fieldNames" type="java.lang.String[]"/>
  63550. <doc>
  63551. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  63552. @param job
  63553. The job
  63554. @param tableName
  63555. The table to insert data into
  63556. @param fieldNames
  63557. The field names in the table. If unknown, supply the appropriate
  63558. number of nulls.]]>
  63559. </doc>
  63560. </method>
  63561. <doc>
  63562. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  63563. <p>
  63564. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  63565. key has a type extending DBWritable. Returned {@link RecordWriter}
  63566. writes <b>only the key</b> to the database with a batch SQL query.]]>
  63567. </doc>
  63568. </class>
  63569. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  63570. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  63571. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  63572. abstract="false"
  63573. static="false" final="false" visibility="protected"
  63574. deprecated="not deprecated">
  63575. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  63576. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  63577. static="false" final="false" visibility="protected"
  63578. deprecated="not deprecated">
  63579. <exception name="SQLException" type="java.sql.SQLException"/>
  63580. </constructor>
  63581. <method name="close"
  63582. abstract="false" native="false" synchronized="false"
  63583. static="false" final="false" visibility="public"
  63584. deprecated="not deprecated">
  63585. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63586. <exception name="IOException" type="java.io.IOException"/>
  63587. <doc>
  63588. <![CDATA[{@inheritDoc}]]>
  63589. </doc>
  63590. </method>
  63591. <method name="write"
  63592. abstract="false" native="false" synchronized="false"
  63593. static="false" final="false" visibility="public"
  63594. deprecated="not deprecated">
  63595. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63596. <param name="value" type="java.lang.Object"/>
  63597. <exception name="IOException" type="java.io.IOException"/>
  63598. <doc>
  63599. <![CDATA[{@inheritDoc}]]>
  63600. </doc>
  63601. </method>
  63602. <doc>
  63603. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  63604. </doc>
  63605. </class>
  63606. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  63607. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  63608. <interface name="DBWritable" abstract="true"
  63609. static="false" final="false" visibility="public"
  63610. deprecated="not deprecated">
  63611. <method name="write"
  63612. abstract="false" native="false" synchronized="false"
  63613. static="false" final="false" visibility="public"
  63614. deprecated="not deprecated">
  63615. <param name="statement" type="java.sql.PreparedStatement"/>
  63616. <exception name="SQLException" type="java.sql.SQLException"/>
  63617. <doc>
  63618. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  63619. @param statement the statement that the fields are put into.
  63620. @throws SQLException]]>
  63621. </doc>
  63622. </method>
  63623. <method name="readFields"
  63624. abstract="false" native="false" synchronized="false"
  63625. static="false" final="false" visibility="public"
  63626. deprecated="not deprecated">
  63627. <param name="resultSet" type="java.sql.ResultSet"/>
  63628. <exception name="SQLException" type="java.sql.SQLException"/>
  63629. <doc>
  63630. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  63631. @param resultSet the {@link ResultSet} to get the fields from.
  63632. @throws SQLException]]>
  63633. </doc>
  63634. </method>
  63635. <doc>
  63636. <![CDATA[Objects that are read from/written to a database should implement
  63637. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  63638. except that the {@link #write(PreparedStatement)} method takes a
  63639. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  63640. takes a {@link ResultSet}.
  63641. <p>
  63642. Implementations are responsible for writing the fields of the object
  63643. to PreparedStatement, and reading the fields of the object from the
  63644. ResultSet.
  63645. <p>Example:</p>
  63646. If we have the following table in the database :
  63647. <pre>
  63648. CREATE TABLE MyTable (
  63649. counter INTEGER NOT NULL,
  63650. timestamp BIGINT NOT NULL,
  63651. );
  63652. </pre>
  63653. then we can read/write the tuples from/to the table with :
  63654. <p><pre>
  63655. public class MyWritable implements Writable, DBWritable {
  63656. // Some data
  63657. private int counter;
  63658. private long timestamp;
  63659. //Writable#write() implementation
  63660. public void write(DataOutput out) throws IOException {
  63661. out.writeInt(counter);
  63662. out.writeLong(timestamp);
  63663. }
  63664. //Writable#readFields() implementation
  63665. public void readFields(DataInput in) throws IOException {
  63666. counter = in.readInt();
  63667. timestamp = in.readLong();
  63668. }
  63669. public void write(PreparedStatement statement) throws SQLException {
  63670. statement.setInt(1, counter);
  63671. statement.setLong(2, timestamp);
  63672. }
  63673. public void readFields(ResultSet resultSet) throws SQLException {
  63674. counter = resultSet.getInt(1);
  63675. timestamp = resultSet.getLong(2);
  63676. }
  63677. }
  63678. </pre></p>]]>
  63679. </doc>
  63680. </interface>
  63681. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  63682. </package>
  63683. <package name="org.apache.hadoop.mapred.pipes">
  63684. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  63685. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  63686. abstract="false"
  63687. static="false" final="false" visibility="public"
  63688. deprecated="not deprecated">
  63689. <implements name="org.apache.hadoop.util.Tool"/>
  63690. <constructor name="Submitter"
  63691. static="false" final="false" visibility="public"
  63692. deprecated="not deprecated">
  63693. </constructor>
  63694. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  63695. static="false" final="false" visibility="public"
  63696. deprecated="not deprecated">
  63697. </constructor>
  63698. <method name="getExecutable" return="java.lang.String"
  63699. abstract="false" native="false" synchronized="false"
  63700. static="true" final="false" visibility="public"
  63701. deprecated="not deprecated">
  63702. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63703. <doc>
  63704. <![CDATA[Get the URI of the application's executable.
  63705. @param conf
  63706. @return the URI where the application's executable is located]]>
  63707. </doc>
  63708. </method>
  63709. <method name="setExecutable"
  63710. abstract="false" native="false" synchronized="false"
  63711. static="true" final="false" visibility="public"
  63712. deprecated="not deprecated">
  63713. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63714. <param name="executable" type="java.lang.String"/>
  63715. <doc>
  63716. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  63717. location.
  63718. @param conf
  63719. @param executable The URI of the application's executable.]]>
  63720. </doc>
  63721. </method>
  63722. <method name="setIsJavaRecordReader"
  63723. abstract="false" native="false" synchronized="false"
  63724. static="true" final="false" visibility="public"
  63725. deprecated="not deprecated">
  63726. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63727. <param name="value" type="boolean"/>
  63728. <doc>
  63729. <![CDATA[Set whether the job is using a Java RecordReader.
  63730. @param conf the configuration to modify
  63731. @param value the new value]]>
  63732. </doc>
  63733. </method>
  63734. <method name="getIsJavaRecordReader" return="boolean"
  63735. abstract="false" native="false" synchronized="false"
  63736. static="true" final="false" visibility="public"
  63737. deprecated="not deprecated">
  63738. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63739. <doc>
  63740. <![CDATA[Check whether the job is using a Java RecordReader
  63741. @param conf the configuration to check
  63742. @return is it a Java RecordReader?]]>
  63743. </doc>
  63744. </method>
  63745. <method name="setIsJavaMapper"
  63746. abstract="false" native="false" synchronized="false"
  63747. static="true" final="false" visibility="public"
  63748. deprecated="not deprecated">
  63749. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63750. <param name="value" type="boolean"/>
  63751. <doc>
  63752. <![CDATA[Set whether the Mapper is written in Java.
  63753. @param conf the configuration to modify
  63754. @param value the new value]]>
  63755. </doc>
  63756. </method>
  63757. <method name="getIsJavaMapper" return="boolean"
  63758. abstract="false" native="false" synchronized="false"
  63759. static="true" final="false" visibility="public"
  63760. deprecated="not deprecated">
  63761. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63762. <doc>
  63763. <![CDATA[Check whether the job is using a Java Mapper.
  63764. @param conf the configuration to check
  63765. @return is it a Java Mapper?]]>
  63766. </doc>
  63767. </method>
  63768. <method name="setIsJavaReducer"
  63769. abstract="false" native="false" synchronized="false"
  63770. static="true" final="false" visibility="public"
  63771. deprecated="not deprecated">
  63772. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63773. <param name="value" type="boolean"/>
  63774. <doc>
  63775. <![CDATA[Set whether the Reducer is written in Java.
  63776. @param conf the configuration to modify
  63777. @param value the new value]]>
  63778. </doc>
  63779. </method>
  63780. <method name="getIsJavaReducer" return="boolean"
  63781. abstract="false" native="false" synchronized="false"
  63782. static="true" final="false" visibility="public"
  63783. deprecated="not deprecated">
  63784. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63785. <doc>
  63786. <![CDATA[Check whether the job is using a Java Reducer.
  63787. @param conf the configuration to check
  63788. @return is it a Java Reducer?]]>
  63789. </doc>
  63790. </method>
  63791. <method name="setIsJavaRecordWriter"
  63792. abstract="false" native="false" synchronized="false"
  63793. static="true" final="false" visibility="public"
  63794. deprecated="not deprecated">
  63795. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63796. <param name="value" type="boolean"/>
  63797. <doc>
  63798. <![CDATA[Set whether the job will use a Java RecordWriter.
  63799. @param conf the configuration to modify
  63800. @param value the new value to set]]>
  63801. </doc>
  63802. </method>
  63803. <method name="getIsJavaRecordWriter" return="boolean"
  63804. abstract="false" native="false" synchronized="false"
  63805. static="true" final="false" visibility="public"
  63806. deprecated="not deprecated">
  63807. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63808. <doc>
  63809. <![CDATA[Will the reduce use a Java RecordWriter?
  63810. @param conf the configuration to check
  63811. @return true, if the output of the job will be written by Java]]>
  63812. </doc>
  63813. </method>
  63814. <method name="getKeepCommandFile" return="boolean"
  63815. abstract="false" native="false" synchronized="false"
  63816. static="true" final="false" visibility="public"
  63817. deprecated="not deprecated">
  63818. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63819. <doc>
  63820. <![CDATA[Does the user want to keep the command file for debugging? If this is
  63821. true, pipes will write a copy of the command data to a file in the
  63822. task directory named "downlink.data", which may be used to run the C++
  63823. program under the debugger. You probably also want to set
  63824. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  63825. being deleted.
  63826. To run using the data file, set the environment variable
  63827. "hadoop.pipes.command.file" to point to the file.
  63828. @param conf the configuration to check
  63829. @return will the framework save the command file?]]>
  63830. </doc>
  63831. </method>
  63832. <method name="setKeepCommandFile"
  63833. abstract="false" native="false" synchronized="false"
  63834. static="true" final="false" visibility="public"
  63835. deprecated="not deprecated">
  63836. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63837. <param name="keep" type="boolean"/>
  63838. <doc>
  63839. <![CDATA[Set whether to keep the command file for debugging
  63840. @param conf the configuration to modify
  63841. @param keep the new value]]>
  63842. </doc>
  63843. </method>
  63844. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  63845. abstract="false" native="false" synchronized="false"
  63846. static="true" final="false" visibility="public"
  63847. deprecated="Use {@link Submitter#runJob(JobConf)}">
  63848. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63849. <exception name="IOException" type="java.io.IOException"/>
  63850. <doc>
  63851. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  63852. to the job to run under pipes are made to the configuration.
  63853. @param conf the job to submit to the cluster (MODIFIED)
  63854. @throws IOException
  63855. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  63856. </doc>
  63857. </method>
  63858. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  63859. abstract="false" native="false" synchronized="false"
  63860. static="true" final="false" visibility="public"
  63861. deprecated="not deprecated">
  63862. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63863. <exception name="IOException" type="java.io.IOException"/>
  63864. <doc>
  63865. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  63866. to the job to run under pipes are made to the configuration.
  63867. @param conf the job to submit to the cluster (MODIFIED)
  63868. @throws IOException]]>
  63869. </doc>
  63870. </method>
  63871. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  63872. abstract="false" native="false" synchronized="false"
  63873. static="true" final="false" visibility="public"
  63874. deprecated="not deprecated">
  63875. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63876. <exception name="IOException" type="java.io.IOException"/>
  63877. <doc>
  63878. <![CDATA[Submit a job to the Map-Reduce framework.
  63879. This returns a handle to the {@link RunningJob} which can be used to track
  63880. the running-job.
  63881. @param conf the job configuration.
  63882. @return a handle to the {@link RunningJob} which can be used to track the
  63883. running-job.
  63884. @throws IOException]]>
  63885. </doc>
  63886. </method>
  63887. <method name="run" return="int"
  63888. abstract="false" native="false" synchronized="false"
  63889. static="false" final="false" visibility="public"
  63890. deprecated="not deprecated">
  63891. <param name="args" type="java.lang.String[]"/>
  63892. <exception name="Exception" type="java.lang.Exception"/>
  63893. </method>
  63894. <method name="main"
  63895. abstract="false" native="false" synchronized="false"
  63896. static="true" final="false" visibility="public"
  63897. deprecated="not deprecated">
  63898. <param name="args" type="java.lang.String[]"/>
  63899. <exception name="Exception" type="java.lang.Exception"/>
  63900. <doc>
  63901. <![CDATA[Submit a pipes job based on the command line arguments.
  63902. @param args]]>
  63903. </doc>
  63904. </method>
  63905. <field name="LOG" type="org.apache.commons.logging.Log"
  63906. transient="false" volatile="false"
  63907. static="true" final="true" visibility="protected"
  63908. deprecated="not deprecated">
  63909. </field>
  63910. <doc>
  63911. <![CDATA[The main entry point and job submitter. It may either be used as a command
  63912. line-based or API-based method to launch Pipes jobs.]]>
  63913. </doc>
  63914. </class>
  63915. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  63916. </package>
  63917. <package name="org.apache.hadoop.mapred.tools">
  63918. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  63919. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  63920. abstract="false"
  63921. static="false" final="false" visibility="public"
  63922. deprecated="not deprecated">
  63923. <implements name="org.apache.hadoop.util.Tool"/>
  63924. <constructor name="MRAdmin"
  63925. static="false" final="false" visibility="public"
  63926. deprecated="not deprecated">
  63927. </constructor>
  63928. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  63929. static="false" final="false" visibility="public"
  63930. deprecated="not deprecated">
  63931. </constructor>
  63932. <method name="refreshSuperUserGroupsConfiguration" return="int"
  63933. abstract="false" native="false" synchronized="false"
  63934. static="false" final="false" visibility="public"
  63935. deprecated="not deprecated">
  63936. <exception name="IOException" type="java.io.IOException"/>
  63937. <doc>
  63938. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  63939. @return exitcode 0 on success, non-zero on failure
  63940. @throws IOException]]>
  63941. </doc>
  63942. </method>
  63943. <method name="run" return="int"
  63944. abstract="false" native="false" synchronized="false"
  63945. static="false" final="false" visibility="public"
  63946. deprecated="not deprecated">
  63947. <param name="args" type="java.lang.String[]"/>
  63948. <exception name="Exception" type="java.lang.Exception"/>
  63949. </method>
  63950. <method name="main"
  63951. abstract="false" native="false" synchronized="false"
  63952. static="true" final="false" visibility="public"
  63953. deprecated="not deprecated">
  63954. <param name="args" type="java.lang.String[]"/>
  63955. <exception name="Exception" type="java.lang.Exception"/>
  63956. </method>
  63957. <doc>
  63958. <![CDATA[Administrative access to Hadoop Map-Reduce.
  63959. Currently it only provides the ability to connect to the {@link JobTracker}
  63960. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  63961. properties.]]>
  63962. </doc>
  63963. </class>
  63964. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  63965. </package>
  63966. <package name="org.apache.hadoop.mapreduce">
  63967. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  63968. <class name="ClusterMetrics" extends="java.lang.Object"
  63969. abstract="false"
  63970. static="false" final="false" visibility="public"
  63971. deprecated="not deprecated">
  63972. <implements name="org.apache.hadoop.io.Writable"/>
  63973. <constructor name="ClusterMetrics"
  63974. static="false" final="false" visibility="public"
  63975. deprecated="not deprecated">
  63976. </constructor>
  63977. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  63978. static="false" final="false" visibility="public"
  63979. deprecated="not deprecated">
  63980. </constructor>
  63981. <method name="getRunningMaps" return="int"
  63982. abstract="false" native="false" synchronized="false"
  63983. static="false" final="false" visibility="public"
  63984. deprecated="not deprecated">
  63985. <doc>
  63986. <![CDATA[Get the number of running map tasks in the cluster.
  63987. @return running maps]]>
  63988. </doc>
  63989. </method>
  63990. <method name="getRunningReduces" return="int"
  63991. abstract="false" native="false" synchronized="false"
  63992. static="false" final="false" visibility="public"
  63993. deprecated="not deprecated">
  63994. <doc>
  63995. <![CDATA[Get the number of running reduce tasks in the cluster.
  63996. @return running reduces]]>
  63997. </doc>
  63998. </method>
  63999. <method name="getOccupiedMapSlots" return="int"
  64000. abstract="false" native="false" synchronized="false"
  64001. static="false" final="false" visibility="public"
  64002. deprecated="not deprecated">
  64003. <doc>
  64004. <![CDATA[Get number of occupied map slots in the cluster.
  64005. @return occupied map slot count]]>
  64006. </doc>
  64007. </method>
  64008. <method name="getOccupiedReduceSlots" return="int"
  64009. abstract="false" native="false" synchronized="false"
  64010. static="false" final="false" visibility="public"
  64011. deprecated="not deprecated">
  64012. <doc>
  64013. <![CDATA[Get the number of occupied reduce slots in the cluster.
  64014. @return occupied reduce slot count]]>
  64015. </doc>
  64016. </method>
  64017. <method name="getReservedMapSlots" return="int"
  64018. abstract="false" native="false" synchronized="false"
  64019. static="false" final="false" visibility="public"
  64020. deprecated="not deprecated">
  64021. <doc>
  64022. <![CDATA[Get number of reserved map slots in the cluster.
  64023. @return reserved map slot count]]>
  64024. </doc>
  64025. </method>
  64026. <method name="getReservedReduceSlots" return="int"
  64027. abstract="false" native="false" synchronized="false"
  64028. static="false" final="false" visibility="public"
  64029. deprecated="not deprecated">
  64030. <doc>
  64031. <![CDATA[Get the number of reserved reduce slots in the cluster.
  64032. @return reserved reduce slot count]]>
  64033. </doc>
  64034. </method>
  64035. <method name="getMapSlotCapacity" return="int"
  64036. abstract="false" native="false" synchronized="false"
  64037. static="false" final="false" visibility="public"
  64038. deprecated="not deprecated">
  64039. <doc>
  64040. <![CDATA[Get the total number of map slots in the cluster.
  64041. @return map slot capacity]]>
  64042. </doc>
  64043. </method>
  64044. <method name="getReduceSlotCapacity" return="int"
  64045. abstract="false" native="false" synchronized="false"
  64046. static="false" final="false" visibility="public"
  64047. deprecated="not deprecated">
  64048. <doc>
  64049. <![CDATA[Get the total number of reduce slots in the cluster.
  64050. @return reduce slot capacity]]>
  64051. </doc>
  64052. </method>
  64053. <method name="getTotalJobSubmissions" return="int"
  64054. abstract="false" native="false" synchronized="false"
  64055. static="false" final="false" visibility="public"
  64056. deprecated="not deprecated">
  64057. <doc>
  64058. <![CDATA[Get the total number of job submissions in the cluster.
  64059. @return total number of job submissions]]>
  64060. </doc>
  64061. </method>
  64062. <method name="getTaskTrackerCount" return="int"
  64063. abstract="false" native="false" synchronized="false"
  64064. static="false" final="false" visibility="public"
  64065. deprecated="not deprecated">
  64066. <doc>
  64067. <![CDATA[Get the number of active trackers in the cluster.
  64068. @return active tracker count.]]>
  64069. </doc>
  64070. </method>
  64071. <method name="getBlackListedTaskTrackerCount" return="int"
  64072. abstract="false" native="false" synchronized="false"
  64073. static="false" final="false" visibility="public"
  64074. deprecated="not deprecated">
  64075. <doc>
  64076. <![CDATA[Get the number of blacklisted trackers in the cluster.
  64077. @return blacklisted tracker count]]>
  64078. </doc>
  64079. </method>
  64080. <method name="getGrayListedTaskTrackerCount" return="int"
  64081. abstract="false" native="false" synchronized="false"
  64082. static="false" final="false" visibility="public"
  64083. deprecated="not deprecated">
  64084. <doc>
  64085. <![CDATA[Get the number of graylisted trackers in the cluster.
  64086. @return graylisted tracker count]]>
  64087. </doc>
  64088. </method>
  64089. <method name="getDecommissionedTaskTrackerCount" return="int"
  64090. abstract="false" native="false" synchronized="false"
  64091. static="false" final="false" visibility="public"
  64092. deprecated="not deprecated">
  64093. <doc>
  64094. <![CDATA[Get the number of decommissioned trackers in the cluster.
  64095. @return decommissioned tracker count]]>
  64096. </doc>
  64097. </method>
  64098. <method name="readFields"
  64099. abstract="false" native="false" synchronized="false"
  64100. static="false" final="false" visibility="public"
  64101. deprecated="not deprecated">
  64102. <param name="in" type="java.io.DataInput"/>
  64103. <exception name="IOException" type="java.io.IOException"/>
  64104. </method>
  64105. <method name="write"
  64106. abstract="false" native="false" synchronized="false"
  64107. static="false" final="false" visibility="public"
  64108. deprecated="not deprecated">
  64109. <param name="out" type="java.io.DataOutput"/>
  64110. <exception name="IOException" type="java.io.IOException"/>
  64111. </method>
  64112. <doc>
  64113. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  64114. <p><code>ClusterMetrics</code> provides clients with information such as:
  64115. <ol>
  64116. <li>
  64117. Size of the cluster.
  64118. </li>
  64119. <li>
  64120. Number of blacklisted and decommissioned trackers.
  64121. </li>
  64122. <li>
  64123. Slot capacity of the cluster.
  64124. </li>
  64125. <li>
  64126. The number of currently occupied/reserved map & reduce slots.
  64127. </li>
  64128. <li>
  64129. The number of currently running map & reduce tasks.
  64130. </li>
  64131. <li>
  64132. The number of job submissions.
  64133. </li>
  64134. </ol></p>]]>
  64135. </doc>
  64136. </class>
  64137. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  64138. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  64139. <class name="Counter" extends="java.lang.Object"
  64140. abstract="false"
  64141. static="false" final="false" visibility="public"
  64142. deprecated="not deprecated">
  64143. <implements name="org.apache.hadoop.io.Writable"/>
  64144. <constructor name="Counter"
  64145. static="false" final="false" visibility="protected"
  64146. deprecated="not deprecated">
  64147. </constructor>
  64148. <constructor name="Counter" type="java.lang.String, java.lang.String"
  64149. static="false" final="false" visibility="protected"
  64150. deprecated="not deprecated">
  64151. </constructor>
  64152. <method name="setDisplayName"
  64153. abstract="false" native="false" synchronized="true"
  64154. static="false" final="false" visibility="protected"
  64155. deprecated="not deprecated">
  64156. <param name="displayName" type="java.lang.String"/>
  64157. </method>
  64158. <method name="readFields"
  64159. abstract="false" native="false" synchronized="true"
  64160. static="false" final="false" visibility="public"
  64161. deprecated="not deprecated">
  64162. <param name="in" type="java.io.DataInput"/>
  64163. <exception name="IOException" type="java.io.IOException"/>
  64164. <doc>
  64165. <![CDATA[Read the binary representation of the counter]]>
  64166. </doc>
  64167. </method>
  64168. <method name="write"
  64169. abstract="false" native="false" synchronized="true"
  64170. static="false" final="false" visibility="public"
  64171. deprecated="not deprecated">
  64172. <param name="out" type="java.io.DataOutput"/>
  64173. <exception name="IOException" type="java.io.IOException"/>
  64174. <doc>
  64175. <![CDATA[Write the binary representation of the counter]]>
  64176. </doc>
  64177. </method>
  64178. <method name="getName" return="java.lang.String"
  64179. abstract="false" native="false" synchronized="true"
  64180. static="false" final="false" visibility="public"
  64181. deprecated="not deprecated">
  64182. </method>
  64183. <method name="getDisplayName" return="java.lang.String"
  64184. abstract="false" native="false" synchronized="true"
  64185. static="false" final="false" visibility="public"
  64186. deprecated="not deprecated">
  64187. <doc>
  64188. <![CDATA[Get the name of the counter.
  64189. @return the user facing name of the counter]]>
  64190. </doc>
  64191. </method>
  64192. <method name="getValue" return="long"
  64193. abstract="false" native="false" synchronized="true"
  64194. static="false" final="false" visibility="public"
  64195. deprecated="not deprecated">
  64196. <doc>
  64197. <![CDATA[What is the current value of this counter?
  64198. @return the current value]]>
  64199. </doc>
  64200. </method>
  64201. <method name="setValue"
  64202. abstract="false" native="false" synchronized="true"
  64203. static="false" final="false" visibility="public"
  64204. deprecated="not deprecated">
  64205. <param name="value" type="long"/>
  64206. <doc>
  64207. <![CDATA[Set this counter by the given value
  64208. @param value the value to set]]>
  64209. </doc>
  64210. </method>
  64211. <method name="increment"
  64212. abstract="false" native="false" synchronized="true"
  64213. static="false" final="false" visibility="public"
  64214. deprecated="not deprecated">
  64215. <param name="incr" type="long"/>
  64216. <doc>
  64217. <![CDATA[Increment this counter by the given value
  64218. @param incr the value to increase this counter by]]>
  64219. </doc>
  64220. </method>
  64221. <method name="equals" return="boolean"
  64222. abstract="false" native="false" synchronized="true"
  64223. static="false" final="false" visibility="public"
  64224. deprecated="not deprecated">
  64225. <param name="genericRight" type="java.lang.Object"/>
  64226. </method>
  64227. <method name="hashCode" return="int"
  64228. abstract="false" native="false" synchronized="true"
  64229. static="false" final="false" visibility="public"
  64230. deprecated="not deprecated">
  64231. </method>
  64232. <doc>
  64233. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  64234. <p><code>Counters</code> represent global counters, defined either by the
  64235. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  64236. an {@link Enum} and has a long for the value.</p>
  64237. <p><code>Counters</code> are bunched into Groups, each comprising of
  64238. counters from a particular <code>Enum</code> class.]]>
  64239. </doc>
  64240. </class>
  64241. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  64242. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  64243. <class name="CounterGroup" extends="java.lang.Object"
  64244. abstract="false"
  64245. static="false" final="false" visibility="public"
  64246. deprecated="not deprecated">
  64247. <implements name="org.apache.hadoop.io.Writable"/>
  64248. <implements name="java.lang.Iterable"/>
  64249. <constructor name="CounterGroup" type="java.lang.String"
  64250. static="false" final="false" visibility="protected"
  64251. deprecated="not deprecated">
  64252. </constructor>
  64253. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  64254. static="false" final="false" visibility="protected"
  64255. deprecated="not deprecated">
  64256. </constructor>
  64257. <method name="getName" return="java.lang.String"
  64258. abstract="false" native="false" synchronized="true"
  64259. static="false" final="false" visibility="public"
  64260. deprecated="not deprecated">
  64261. <doc>
  64262. <![CDATA[Get the internal name of the group
  64263. @return the internal name]]>
  64264. </doc>
  64265. </method>
  64266. <method name="getDisplayName" return="java.lang.String"
  64267. abstract="false" native="false" synchronized="true"
  64268. static="false" final="false" visibility="public"
  64269. deprecated="not deprecated">
  64270. <doc>
  64271. <![CDATA[Get the display name of the group.
  64272. @return the human readable name]]>
  64273. </doc>
  64274. </method>
  64275. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64276. abstract="false" native="false" synchronized="false"
  64277. static="false" final="false" visibility="protected"
  64278. deprecated="not deprecated">
  64279. <param name="counterName" type="java.lang.String"/>
  64280. <param name="displayName" type="java.lang.String"/>
  64281. <doc>
  64282. <![CDATA[Internal to find a counter in a group.
  64283. @param counterName the name of the counter
  64284. @param displayName the display name of the counter
  64285. @return the counter that was found or added]]>
  64286. </doc>
  64287. </method>
  64288. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64289. abstract="false" native="false" synchronized="true"
  64290. static="false" final="false" visibility="public"
  64291. deprecated="not deprecated">
  64292. <param name="counterName" type="java.lang.String"/>
  64293. </method>
  64294. <method name="iterator" return="java.util.Iterator"
  64295. abstract="false" native="false" synchronized="true"
  64296. static="false" final="false" visibility="public"
  64297. deprecated="not deprecated">
  64298. </method>
  64299. <method name="write"
  64300. abstract="false" native="false" synchronized="true"
  64301. static="false" final="false" visibility="public"
  64302. deprecated="not deprecated">
  64303. <param name="out" type="java.io.DataOutput"/>
  64304. <exception name="IOException" type="java.io.IOException"/>
  64305. </method>
  64306. <method name="readFields"
  64307. abstract="false" native="false" synchronized="true"
  64308. static="false" final="false" visibility="public"
  64309. deprecated="not deprecated">
  64310. <param name="in" type="java.io.DataInput"/>
  64311. <exception name="IOException" type="java.io.IOException"/>
  64312. </method>
  64313. <method name="size" return="int"
  64314. abstract="false" native="false" synchronized="true"
  64315. static="false" final="false" visibility="public"
  64316. deprecated="not deprecated">
  64317. <doc>
  64318. <![CDATA[Returns the number of counters in this group.]]>
  64319. </doc>
  64320. </method>
  64321. <method name="equals" return="boolean"
  64322. abstract="false" native="false" synchronized="true"
  64323. static="false" final="false" visibility="public"
  64324. deprecated="not deprecated">
  64325. <param name="genericRight" type="java.lang.Object"/>
  64326. </method>
  64327. <method name="hashCode" return="int"
  64328. abstract="false" native="false" synchronized="true"
  64329. static="false" final="false" visibility="public"
  64330. deprecated="not deprecated">
  64331. </method>
  64332. <method name="incrAllCounters"
  64333. abstract="false" native="false" synchronized="true"
  64334. static="false" final="false" visibility="public"
  64335. deprecated="not deprecated">
  64336. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  64337. </method>
  64338. <doc>
  64339. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  64340. it is an {@link Enum} subclass and the counters are the values.]]>
  64341. </doc>
  64342. </class>
  64343. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  64344. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  64345. <class name="Counters" extends="java.lang.Object"
  64346. abstract="false"
  64347. static="false" final="false" visibility="public"
  64348. deprecated="not deprecated">
  64349. <implements name="org.apache.hadoop.io.Writable"/>
  64350. <implements name="java.lang.Iterable"/>
  64351. <constructor name="Counters"
  64352. static="false" final="false" visibility="public"
  64353. deprecated="not deprecated">
  64354. </constructor>
  64355. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  64356. static="false" final="false" visibility="public"
  64357. deprecated="not deprecated">
  64358. </constructor>
  64359. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64360. abstract="false" native="false" synchronized="false"
  64361. static="false" final="false" visibility="public"
  64362. deprecated="not deprecated">
  64363. <param name="groupName" type="java.lang.String"/>
  64364. <param name="counterName" type="java.lang.String"/>
  64365. </method>
  64366. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64367. abstract="false" native="false" synchronized="true"
  64368. static="false" final="false" visibility="public"
  64369. deprecated="not deprecated">
  64370. <param name="key" type="java.lang.Enum"/>
  64371. <doc>
  64372. <![CDATA[Find the counter for the given enum. The same enum will always return the
  64373. same counter.
  64374. @param key the counter key
  64375. @return the matching counter object]]>
  64376. </doc>
  64377. </method>
  64378. <method name="getGroupNames" return="java.util.Collection"
  64379. abstract="false" native="false" synchronized="true"
  64380. static="false" final="false" visibility="public"
  64381. deprecated="not deprecated">
  64382. <doc>
  64383. <![CDATA[Returns the names of all counter classes.
  64384. @return Set of counter names.]]>
  64385. </doc>
  64386. </method>
  64387. <method name="iterator" return="java.util.Iterator"
  64388. abstract="false" native="false" synchronized="false"
  64389. static="false" final="false" visibility="public"
  64390. deprecated="not deprecated">
  64391. </method>
  64392. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  64393. abstract="false" native="false" synchronized="true"
  64394. static="false" final="false" visibility="public"
  64395. deprecated="not deprecated">
  64396. <param name="groupName" type="java.lang.String"/>
  64397. <doc>
  64398. <![CDATA[Returns the named counter group, or an empty group if there is none
  64399. with the specified name.]]>
  64400. </doc>
  64401. </method>
  64402. <method name="countCounters" return="int"
  64403. abstract="false" native="false" synchronized="true"
  64404. static="false" final="false" visibility="public"
  64405. deprecated="not deprecated">
  64406. <doc>
  64407. <![CDATA[Returns the total number of counters, by summing the number of counters
  64408. in each group.]]>
  64409. </doc>
  64410. </method>
  64411. <method name="write"
  64412. abstract="false" native="false" synchronized="true"
  64413. static="false" final="false" visibility="public"
  64414. deprecated="not deprecated">
  64415. <param name="out" type="java.io.DataOutput"/>
  64416. <exception name="IOException" type="java.io.IOException"/>
  64417. <doc>
  64418. <![CDATA[Write the set of groups.
  64419. The external format is:
  64420. #groups (groupName group)*
  64421. i.e. the number of groups followed by 0 or more groups, where each
  64422. group is of the form:
  64423. groupDisplayName #counters (false | true counter)*
  64424. where each counter is of the form:
  64425. name (false | true displayName) value]]>
  64426. </doc>
  64427. </method>
  64428. <method name="readFields"
  64429. abstract="false" native="false" synchronized="true"
  64430. static="false" final="false" visibility="public"
  64431. deprecated="not deprecated">
  64432. <param name="in" type="java.io.DataInput"/>
  64433. <exception name="IOException" type="java.io.IOException"/>
  64434. <doc>
  64435. <![CDATA[Read a set of groups.]]>
  64436. </doc>
  64437. </method>
  64438. <method name="toString" return="java.lang.String"
  64439. abstract="false" native="false" synchronized="true"
  64440. static="false" final="false" visibility="public"
  64441. deprecated="not deprecated">
  64442. <doc>
  64443. <![CDATA[Return textual representation of the counter values.]]>
  64444. </doc>
  64445. </method>
  64446. <method name="incrAllCounters"
  64447. abstract="false" native="false" synchronized="true"
  64448. static="false" final="false" visibility="public"
  64449. deprecated="not deprecated">
  64450. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  64451. <doc>
  64452. <![CDATA[Increments multiple counters by their amounts in another Counters
  64453. instance.
  64454. @param other the other Counters instance]]>
  64455. </doc>
  64456. </method>
  64457. <method name="equals" return="boolean"
  64458. abstract="false" native="false" synchronized="false"
  64459. static="false" final="false" visibility="public"
  64460. deprecated="not deprecated">
  64461. <param name="genericRight" type="java.lang.Object"/>
  64462. </method>
  64463. <method name="hashCode" return="int"
  64464. abstract="false" native="false" synchronized="false"
  64465. static="false" final="false" visibility="public"
  64466. deprecated="not deprecated">
  64467. </method>
  64468. </class>
  64469. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  64470. <!-- start class org.apache.hadoop.mapreduce.ID -->
  64471. <class name="ID" extends="java.lang.Object"
  64472. abstract="true"
  64473. static="false" final="false" visibility="public"
  64474. deprecated="not deprecated">
  64475. <implements name="org.apache.hadoop.io.WritableComparable"/>
  64476. <constructor name="ID" type="int"
  64477. static="false" final="false" visibility="public"
  64478. deprecated="not deprecated">
  64479. <doc>
  64480. <![CDATA[constructs an ID object from the given int]]>
  64481. </doc>
  64482. </constructor>
  64483. <constructor name="ID"
  64484. static="false" final="false" visibility="protected"
  64485. deprecated="not deprecated">
  64486. </constructor>
  64487. <method name="getId" return="int"
  64488. abstract="false" native="false" synchronized="false"
  64489. static="false" final="false" visibility="public"
  64490. deprecated="not deprecated">
  64491. <doc>
  64492. <![CDATA[returns the int which represents the identifier]]>
  64493. </doc>
  64494. </method>
  64495. <method name="toString" return="java.lang.String"
  64496. abstract="false" native="false" synchronized="false"
  64497. static="false" final="false" visibility="public"
  64498. deprecated="not deprecated">
  64499. </method>
  64500. <method name="hashCode" return="int"
  64501. abstract="false" native="false" synchronized="false"
  64502. static="false" final="false" visibility="public"
  64503. deprecated="not deprecated">
  64504. </method>
  64505. <method name="equals" return="boolean"
  64506. abstract="false" native="false" synchronized="false"
  64507. static="false" final="false" visibility="public"
  64508. deprecated="not deprecated">
  64509. <param name="o" type="java.lang.Object"/>
  64510. </method>
  64511. <method name="compareTo" return="int"
  64512. abstract="false" native="false" synchronized="false"
  64513. static="false" final="false" visibility="public"
  64514. deprecated="not deprecated">
  64515. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  64516. <doc>
  64517. <![CDATA[Compare IDs by associated numbers]]>
  64518. </doc>
  64519. </method>
  64520. <method name="readFields"
  64521. abstract="false" native="false" synchronized="false"
  64522. static="false" final="false" visibility="public"
  64523. deprecated="not deprecated">
  64524. <param name="in" type="java.io.DataInput"/>
  64525. <exception name="IOException" type="java.io.IOException"/>
  64526. </method>
  64527. <method name="write"
  64528. abstract="false" native="false" synchronized="false"
  64529. static="false" final="false" visibility="public"
  64530. deprecated="not deprecated">
  64531. <param name="out" type="java.io.DataOutput"/>
  64532. <exception name="IOException" type="java.io.IOException"/>
  64533. </method>
  64534. <field name="SEPARATOR" type="char"
  64535. transient="false" volatile="false"
  64536. static="true" final="true" visibility="protected"
  64537. deprecated="not deprecated">
  64538. </field>
  64539. <field name="id" type="int"
  64540. transient="false" volatile="false"
  64541. static="false" final="false" visibility="protected"
  64542. deprecated="not deprecated">
  64543. </field>
  64544. <doc>
  64545. <![CDATA[A general identifier, which internally stores the id
  64546. as an integer. This is the super class of {@link JobID},
  64547. {@link TaskID} and {@link TaskAttemptID}.
  64548. @see JobID
  64549. @see TaskID
  64550. @see TaskAttemptID]]>
  64551. </doc>
  64552. </class>
  64553. <!-- end class org.apache.hadoop.mapreduce.ID -->
  64554. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  64555. <class name="InputFormat" extends="java.lang.Object"
  64556. abstract="true"
  64557. static="false" final="false" visibility="public"
  64558. deprecated="not deprecated">
  64559. <constructor name="InputFormat"
  64560. static="false" final="false" visibility="public"
  64561. deprecated="not deprecated">
  64562. </constructor>
  64563. <method name="getSplits" return="java.util.List"
  64564. abstract="true" native="false" synchronized="false"
  64565. static="false" final="false" visibility="public"
  64566. deprecated="not deprecated">
  64567. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  64568. <exception name="IOException" type="java.io.IOException"/>
  64569. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64570. <doc>
  64571. <![CDATA[Logically split the set of input files for the job.
  64572. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  64573. for processing.</p>
  64574. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  64575. input files are not physically split into chunks. For e.g. a split could
  64576. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  64577. also creates the {@link RecordReader} to read the {@link InputSplit}.
  64578. @param context job configuration.
  64579. @return an array of {@link InputSplit}s for the job.]]>
  64580. </doc>
  64581. </method>
  64582. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  64583. abstract="true" native="false" synchronized="false"
  64584. static="false" final="false" visibility="public"
  64585. deprecated="not deprecated">
  64586. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  64587. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  64588. <exception name="IOException" type="java.io.IOException"/>
  64589. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64590. <doc>
  64591. <![CDATA[Create a record reader for a given split. The framework will call
  64592. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  64593. the split is used.
  64594. @param split the split to be read
  64595. @param context the information about the task
  64596. @return a new record reader
  64597. @throws IOException
  64598. @throws InterruptedException]]>
  64599. </doc>
  64600. </method>
  64601. <doc>
  64602. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  64603. Map-Reduce job.
  64604. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  64605. job to:<p>
  64606. <ol>
  64607. <li>
  64608. Validate the input-specification of the job.
  64609. <li>
  64610. Split-up the input file(s) into logical {@link InputSplit}s, each of
  64611. which is then assigned to an individual {@link Mapper}.
  64612. </li>
  64613. <li>
  64614. Provide the {@link RecordReader} implementation to be used to glean
  64615. input records from the logical <code>InputSplit</code> for processing by
  64616. the {@link Mapper}.
  64617. </li>
  64618. </ol>
  64619. <p>The default behavior of file-based {@link InputFormat}s, typically
  64620. sub-classes of {@link FileInputFormat}, is to split the
  64621. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  64622. bytes, of the input files. However, the {@link FileSystem} blocksize of
  64623. the input files is treated as an upper bound for input splits. A lower bound
  64624. on the split size can be set via
  64625. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  64626. mapred.min.split.size</a>.</p>
  64627. <p>Clearly, logical splits based on input-size is insufficient for many
  64628. applications since record boundaries are to respected. In such cases, the
  64629. application has to also implement a {@link RecordReader} on whom lies the
  64630. responsibility to respect record-boundaries and present a record-oriented
  64631. view of the logical <code>InputSplit</code> to the individual task.
  64632. @see InputSplit
  64633. @see RecordReader
  64634. @see FileInputFormat]]>
  64635. </doc>
  64636. </class>
  64637. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  64638. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  64639. <class name="InputSplit" extends="java.lang.Object"
  64640. abstract="true"
  64641. static="false" final="false" visibility="public"
  64642. deprecated="not deprecated">
  64643. <constructor name="InputSplit"
  64644. static="false" final="false" visibility="public"
  64645. deprecated="not deprecated">
  64646. </constructor>
  64647. <method name="getLength" return="long"
  64648. abstract="true" native="false" synchronized="false"
  64649. static="false" final="false" visibility="public"
  64650. deprecated="not deprecated">
  64651. <exception name="IOException" type="java.io.IOException"/>
  64652. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64653. <doc>
  64654. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  64655. @return the number of bytes in the split
  64656. @throws IOException
  64657. @throws InterruptedException]]>
  64658. </doc>
  64659. </method>
  64660. <method name="getLocations" return="java.lang.String[]"
  64661. abstract="true" native="false" synchronized="false"
  64662. static="false" final="false" visibility="public"
  64663. deprecated="not deprecated">
  64664. <exception name="IOException" type="java.io.IOException"/>
  64665. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64666. <doc>
  64667. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  64668. The locations do not need to be serialized.
  64669. @return a new array of the node nodes.
  64670. @throws IOException
  64671. @throws InterruptedException]]>
  64672. </doc>
  64673. </method>
  64674. <doc>
  64675. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  64676. individual {@link Mapper}.
  64677. <p>Typically, it presents a byte-oriented view on the input and is the
  64678. responsibility of {@link RecordReader} of the job to process this and present
  64679. a record-oriented view.
  64680. @see InputFormat
  64681. @see RecordReader]]>
  64682. </doc>
  64683. </class>
  64684. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  64685. <!-- start class org.apache.hadoop.mapreduce.Job -->
  64686. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  64687. abstract="false"
  64688. static="false" final="false" visibility="public"
  64689. deprecated="not deprecated">
  64690. <constructor name="Job"
  64691. static="false" final="false" visibility="public"
  64692. deprecated="not deprecated">
  64693. <exception name="IOException" type="java.io.IOException"/>
  64694. </constructor>
  64695. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  64696. static="false" final="false" visibility="public"
  64697. deprecated="not deprecated">
  64698. <exception name="IOException" type="java.io.IOException"/>
  64699. </constructor>
  64700. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  64701. static="false" final="false" visibility="public"
  64702. deprecated="not deprecated">
  64703. <exception name="IOException" type="java.io.IOException"/>
  64704. </constructor>
  64705. <method name="setNumReduceTasks"
  64706. abstract="false" native="false" synchronized="false"
  64707. static="false" final="false" visibility="public"
  64708. deprecated="not deprecated">
  64709. <param name="tasks" type="int"/>
  64710. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64711. <doc>
  64712. <![CDATA[Set the number of reduce tasks for the job.
  64713. @param tasks the number of reduce tasks
  64714. @throws IllegalStateException if the job is submitted]]>
  64715. </doc>
  64716. </method>
  64717. <method name="setWorkingDirectory"
  64718. abstract="false" native="false" synchronized="false"
  64719. static="false" final="false" visibility="public"
  64720. deprecated="not deprecated">
  64721. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  64722. <exception name="IOException" type="java.io.IOException"/>
  64723. <doc>
  64724. <![CDATA[Set the current working directory for the default file system.
  64725. @param dir the new current working directory.
  64726. @throws IllegalStateException if the job is submitted]]>
  64727. </doc>
  64728. </method>
  64729. <method name="setInputFormatClass"
  64730. abstract="false" native="false" synchronized="false"
  64731. static="false" final="false" visibility="public"
  64732. deprecated="not deprecated">
  64733. <param name="cls" type="java.lang.Class"/>
  64734. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64735. <doc>
  64736. <![CDATA[Set the {@link InputFormat} for the job.
  64737. @param cls the <code>InputFormat</code> to use
  64738. @throws IllegalStateException if the job is submitted]]>
  64739. </doc>
  64740. </method>
  64741. <method name="setOutputFormatClass"
  64742. abstract="false" native="false" synchronized="false"
  64743. static="false" final="false" visibility="public"
  64744. deprecated="not deprecated">
  64745. <param name="cls" type="java.lang.Class"/>
  64746. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64747. <doc>
  64748. <![CDATA[Set the {@link OutputFormat} for the job.
  64749. @param cls the <code>OutputFormat</code> to use
  64750. @throws IllegalStateException if the job is submitted]]>
  64751. </doc>
  64752. </method>
  64753. <method name="setMapperClass"
  64754. abstract="false" native="false" synchronized="false"
  64755. static="false" final="false" visibility="public"
  64756. deprecated="not deprecated">
  64757. <param name="cls" type="java.lang.Class"/>
  64758. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64759. <doc>
  64760. <![CDATA[Set the {@link Mapper} for the job.
  64761. @param cls the <code>Mapper</code> to use
  64762. @throws IllegalStateException if the job is submitted]]>
  64763. </doc>
  64764. </method>
  64765. <method name="setJarByClass"
  64766. abstract="false" native="false" synchronized="false"
  64767. static="false" final="false" visibility="public"
  64768. deprecated="not deprecated">
  64769. <param name="cls" type="java.lang.Class"/>
  64770. <doc>
  64771. <![CDATA[Set the Jar by finding where a given class came from.
  64772. @param cls the example class]]>
  64773. </doc>
  64774. </method>
  64775. <method name="getJar" return="java.lang.String"
  64776. abstract="false" native="false" synchronized="false"
  64777. static="false" final="false" visibility="public"
  64778. deprecated="not deprecated">
  64779. <doc>
  64780. <![CDATA[Get the pathname of the job's jar.
  64781. @return the pathname]]>
  64782. </doc>
  64783. </method>
  64784. <method name="setCombinerClass"
  64785. abstract="false" native="false" synchronized="false"
  64786. static="false" final="false" visibility="public"
  64787. deprecated="not deprecated">
  64788. <param name="cls" type="java.lang.Class"/>
  64789. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64790. <doc>
  64791. <![CDATA[Set the combiner class for the job.
  64792. @param cls the combiner to use
  64793. @throws IllegalStateException if the job is submitted]]>
  64794. </doc>
  64795. </method>
  64796. <method name="setReducerClass"
  64797. abstract="false" native="false" synchronized="false"
  64798. static="false" final="false" visibility="public"
  64799. deprecated="not deprecated">
  64800. <param name="cls" type="java.lang.Class"/>
  64801. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64802. <doc>
  64803. <![CDATA[Set the {@link Reducer} for the job.
  64804. @param cls the <code>Reducer</code> to use
  64805. @throws IllegalStateException if the job is submitted]]>
  64806. </doc>
  64807. </method>
  64808. <method name="setPartitionerClass"
  64809. abstract="false" native="false" synchronized="false"
  64810. static="false" final="false" visibility="public"
  64811. deprecated="not deprecated">
  64812. <param name="cls" type="java.lang.Class"/>
  64813. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64814. <doc>
  64815. <![CDATA[Set the {@link Partitioner} for the job.
  64816. @param cls the <code>Partitioner</code> to use
  64817. @throws IllegalStateException if the job is submitted]]>
  64818. </doc>
  64819. </method>
  64820. <method name="setMapOutputKeyClass"
  64821. abstract="false" native="false" synchronized="false"
  64822. static="false" final="false" visibility="public"
  64823. deprecated="not deprecated">
  64824. <param name="theClass" type="java.lang.Class"/>
  64825. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64826. <doc>
  64827. <![CDATA[Set the key class for the map output data. This allows the user to
  64828. specify the map output key class to be different than the final output
  64829. value class.
  64830. @param theClass the map output key class.
  64831. @throws IllegalStateException if the job is submitted]]>
  64832. </doc>
  64833. </method>
  64834. <method name="setMapOutputValueClass"
  64835. abstract="false" native="false" synchronized="false"
  64836. static="false" final="false" visibility="public"
  64837. deprecated="not deprecated">
  64838. <param name="theClass" type="java.lang.Class"/>
  64839. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64840. <doc>
  64841. <![CDATA[Set the value class for the map output data. This allows the user to
  64842. specify the map output value class to be different than the final output
  64843. value class.
  64844. @param theClass the map output value class.
  64845. @throws IllegalStateException if the job is submitted]]>
  64846. </doc>
  64847. </method>
  64848. <method name="setOutputKeyClass"
  64849. abstract="false" native="false" synchronized="false"
  64850. static="false" final="false" visibility="public"
  64851. deprecated="not deprecated">
  64852. <param name="theClass" type="java.lang.Class"/>
  64853. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64854. <doc>
  64855. <![CDATA[Set the key class for the job output data.
  64856. @param theClass the key class for the job output data.
  64857. @throws IllegalStateException if the job is submitted]]>
  64858. </doc>
  64859. </method>
  64860. <method name="setOutputValueClass"
  64861. abstract="false" native="false" synchronized="false"
  64862. static="false" final="false" visibility="public"
  64863. deprecated="not deprecated">
  64864. <param name="theClass" type="java.lang.Class"/>
  64865. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64866. <doc>
  64867. <![CDATA[Set the value class for job outputs.
  64868. @param theClass the value class for job outputs.
  64869. @throws IllegalStateException if the job is submitted]]>
  64870. </doc>
  64871. </method>
  64872. <method name="setSortComparatorClass"
  64873. abstract="false" native="false" synchronized="false"
  64874. static="false" final="false" visibility="public"
  64875. deprecated="not deprecated">
  64876. <param name="cls" type="java.lang.Class"/>
  64877. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64878. <doc>
  64879. <![CDATA[Define the comparator that controls how the keys are sorted before they
  64880. are passed to the {@link Reducer}.
  64881. @param cls the raw comparator
  64882. @throws IllegalStateException if the job is submitted]]>
  64883. </doc>
  64884. </method>
  64885. <method name="setGroupingComparatorClass"
  64886. abstract="false" native="false" synchronized="false"
  64887. static="false" final="false" visibility="public"
  64888. deprecated="not deprecated">
  64889. <param name="cls" type="java.lang.Class"/>
  64890. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64891. <doc>
  64892. <![CDATA[Define the comparator that controls which keys are grouped together
  64893. for a single call to
  64894. {@link Reducer#reduce(Object, Iterable,
  64895. org.apache.hadoop.mapreduce.Reducer.Context)}
  64896. @param cls the raw comparator to use
  64897. @throws IllegalStateException if the job is submitted]]>
  64898. </doc>
  64899. </method>
  64900. <method name="setJobName"
  64901. abstract="false" native="false" synchronized="false"
  64902. static="false" final="false" visibility="public"
  64903. deprecated="not deprecated">
  64904. <param name="name" type="java.lang.String"/>
  64905. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64906. <doc>
  64907. <![CDATA[Set the user-specified job name.
  64908. @param name the job's new name.
  64909. @throws IllegalStateException if the job is submitted]]>
  64910. </doc>
  64911. </method>
  64912. <method name="setSpeculativeExecution"
  64913. abstract="false" native="false" synchronized="false"
  64914. static="false" final="false" visibility="public"
  64915. deprecated="not deprecated">
  64916. <param name="speculativeExecution" type="boolean"/>
  64917. <doc>
  64918. <![CDATA[Turn speculative execution on or off for this job.
  64919. @param speculativeExecution <code>true</code> if speculative execution
  64920. should be turned on, else <code>false</code>.]]>
  64921. </doc>
  64922. </method>
  64923. <method name="setMapSpeculativeExecution"
  64924. abstract="false" native="false" synchronized="false"
  64925. static="false" final="false" visibility="public"
  64926. deprecated="not deprecated">
  64927. <param name="speculativeExecution" type="boolean"/>
  64928. <doc>
  64929. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  64930. @param speculativeExecution <code>true</code> if speculative execution
  64931. should be turned on for map tasks,
  64932. else <code>false</code>.]]>
  64933. </doc>
  64934. </method>
  64935. <method name="setReduceSpeculativeExecution"
  64936. abstract="false" native="false" synchronized="false"
  64937. static="false" final="false" visibility="public"
  64938. deprecated="not deprecated">
  64939. <param name="speculativeExecution" type="boolean"/>
  64940. <doc>
  64941. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  64942. @param speculativeExecution <code>true</code> if speculative execution
  64943. should be turned on for reduce tasks,
  64944. else <code>false</code>.]]>
  64945. </doc>
  64946. </method>
  64947. <method name="getTrackingURL" return="java.lang.String"
  64948. abstract="false" native="false" synchronized="false"
  64949. static="false" final="false" visibility="public"
  64950. deprecated="not deprecated">
  64951. <doc>
  64952. <![CDATA[Get the URL where some job progress information will be displayed.
  64953. @return the URL where some job progress information will be displayed.]]>
  64954. </doc>
  64955. </method>
  64956. <method name="setupProgress" return="float"
  64957. abstract="false" native="false" synchronized="false"
  64958. static="false" final="false" visibility="public"
  64959. deprecated="not deprecated">
  64960. <exception name="IOException" type="java.io.IOException"/>
  64961. <doc>
  64962. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  64963. and 1.0. When the job setup is completed, the function returns 1.0.
  64964. @return the progress of the job's setup.
  64965. @throws IOException]]>
  64966. </doc>
  64967. </method>
  64968. <method name="mapProgress" return="float"
  64969. abstract="false" native="false" synchronized="false"
  64970. static="false" final="false" visibility="public"
  64971. deprecated="not deprecated">
  64972. <exception name="IOException" type="java.io.IOException"/>
  64973. <doc>
  64974. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  64975. and 1.0. When all map tasks have completed, the function returns 1.0.
  64976. @return the progress of the job's map-tasks.
  64977. @throws IOException]]>
  64978. </doc>
  64979. </method>
  64980. <method name="reduceProgress" return="float"
  64981. abstract="false" native="false" synchronized="false"
  64982. static="false" final="false" visibility="public"
  64983. deprecated="not deprecated">
  64984. <exception name="IOException" type="java.io.IOException"/>
  64985. <doc>
  64986. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  64987. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  64988. @return the progress of the job's reduce-tasks.
  64989. @throws IOException]]>
  64990. </doc>
  64991. </method>
  64992. <method name="isComplete" return="boolean"
  64993. abstract="false" native="false" synchronized="false"
  64994. static="false" final="false" visibility="public"
  64995. deprecated="not deprecated">
  64996. <exception name="IOException" type="java.io.IOException"/>
  64997. <doc>
  64998. <![CDATA[Check if the job is finished or not.
  64999. This is a non-blocking call.
  65000. @return <code>true</code> if the job is complete, else <code>false</code>.
  65001. @throws IOException]]>
  65002. </doc>
  65003. </method>
  65004. <method name="isSuccessful" return="boolean"
  65005. abstract="false" native="false" synchronized="false"
  65006. static="false" final="false" visibility="public"
  65007. deprecated="not deprecated">
  65008. <exception name="IOException" type="java.io.IOException"/>
  65009. <doc>
  65010. <![CDATA[Check if the job completed successfully.
  65011. @return <code>true</code> if the job succeeded, else <code>false</code>.
  65012. @throws IOException]]>
  65013. </doc>
  65014. </method>
  65015. <method name="killJob"
  65016. abstract="false" native="false" synchronized="false"
  65017. static="false" final="false" visibility="public"
  65018. deprecated="not deprecated">
  65019. <exception name="IOException" type="java.io.IOException"/>
  65020. <doc>
  65021. <![CDATA[Kill the running job. Blocks until all job tasks have been
  65022. killed as well. If the job is no longer running, it simply returns.
  65023. @throws IOException]]>
  65024. </doc>
  65025. </method>
  65026. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  65027. abstract="false" native="false" synchronized="false"
  65028. static="false" final="false" visibility="public"
  65029. deprecated="not deprecated">
  65030. <param name="startFrom" type="int"/>
  65031. <exception name="IOException" type="java.io.IOException"/>
  65032. <doc>
  65033. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  65034. @param startFrom index to start fetching events from
  65035. @return an array of {@link TaskCompletionEvent}s
  65036. @throws IOException]]>
  65037. </doc>
  65038. </method>
  65039. <method name="killTask"
  65040. abstract="false" native="false" synchronized="false"
  65041. static="false" final="false" visibility="public"
  65042. deprecated="not deprecated">
  65043. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  65044. <exception name="IOException" type="java.io.IOException"/>
  65045. <doc>
  65046. <![CDATA[Kill indicated task attempt.
  65047. @param taskId the id of the task to be terminated.
  65048. @throws IOException]]>
  65049. </doc>
  65050. </method>
  65051. <method name="failTask"
  65052. abstract="false" native="false" synchronized="false"
  65053. static="false" final="false" visibility="public"
  65054. deprecated="not deprecated">
  65055. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  65056. <exception name="IOException" type="java.io.IOException"/>
  65057. <doc>
  65058. <![CDATA[Fail indicated task attempt.
  65059. @param taskId the id of the task to be terminated.
  65060. @throws IOException]]>
  65061. </doc>
  65062. </method>
  65063. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  65064. abstract="false" native="false" synchronized="false"
  65065. static="false" final="false" visibility="public"
  65066. deprecated="not deprecated">
  65067. <exception name="IOException" type="java.io.IOException"/>
  65068. <doc>
  65069. <![CDATA[Gets the counters for this job.
  65070. @return the counters for this job.
  65071. @throws IOException]]>
  65072. </doc>
  65073. </method>
  65074. <method name="setCancelDelegationTokenUponJobCompletion"
  65075. abstract="false" native="false" synchronized="false"
  65076. static="false" final="false" visibility="public"
  65077. deprecated="not deprecated">
  65078. <param name="value" type="boolean"/>
  65079. <doc>
  65080. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  65081. tokens upon job completion. Defaults to true.]]>
  65082. </doc>
  65083. </method>
  65084. <method name="submit"
  65085. abstract="false" native="false" synchronized="false"
  65086. static="false" final="false" visibility="public"
  65087. deprecated="not deprecated">
  65088. <exception name="IOException" type="java.io.IOException"/>
  65089. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65090. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65091. <doc>
  65092. <![CDATA[Submit the job to the cluster and return immediately.
  65093. @throws IOException]]>
  65094. </doc>
  65095. </method>
  65096. <method name="waitForCompletion" return="boolean"
  65097. abstract="false" native="false" synchronized="false"
  65098. static="false" final="false" visibility="public"
  65099. deprecated="not deprecated">
  65100. <param name="verbose" type="boolean"/>
  65101. <exception name="IOException" type="java.io.IOException"/>
  65102. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65103. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65104. <doc>
  65105. <![CDATA[Submit the job to the cluster and wait for it to finish.
  65106. @param verbose print the progress to the user
  65107. @return true if the job succeeded
  65108. @throws IOException thrown if the communication with the
  65109. <code>JobTracker</code> is lost]]>
  65110. </doc>
  65111. </method>
  65112. <doc>
  65113. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  65114. job, submit it, control its execution, and query the state. The set methods
  65115. only work until the job is submitted, afterwards they will throw an
  65116. IllegalStateException.]]>
  65117. </doc>
  65118. </class>
  65119. <!-- end class org.apache.hadoop.mapreduce.Job -->
  65120. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  65121. <class name="Job.JobState" extends="java.lang.Enum"
  65122. abstract="false"
  65123. static="true" final="true" visibility="public"
  65124. deprecated="not deprecated">
  65125. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  65126. abstract="false" native="false" synchronized="false"
  65127. static="true" final="false" visibility="public"
  65128. deprecated="not deprecated">
  65129. </method>
  65130. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  65131. abstract="false" native="false" synchronized="false"
  65132. static="true" final="false" visibility="public"
  65133. deprecated="not deprecated">
  65134. <param name="name" type="java.lang.String"/>
  65135. </method>
  65136. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  65137. transient="false" volatile="false"
  65138. static="true" final="true" visibility="public"
  65139. deprecated="not deprecated">
  65140. </field>
  65141. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  65142. transient="false" volatile="false"
  65143. static="true" final="true" visibility="public"
  65144. deprecated="not deprecated">
  65145. </field>
  65146. </class>
  65147. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  65148. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  65149. <class name="JobACL" extends="java.lang.Enum"
  65150. abstract="false"
  65151. static="false" final="true" visibility="public"
  65152. deprecated="not deprecated">
  65153. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  65154. abstract="false" native="false" synchronized="false"
  65155. static="true" final="false" visibility="public"
  65156. deprecated="not deprecated">
  65157. </method>
  65158. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  65159. abstract="false" native="false" synchronized="false"
  65160. static="true" final="false" visibility="public"
  65161. deprecated="not deprecated">
  65162. <param name="name" type="java.lang.String"/>
  65163. </method>
  65164. <method name="getAclName" return="java.lang.String"
  65165. abstract="false" native="false" synchronized="false"
  65166. static="false" final="false" visibility="public"
  65167. deprecated="not deprecated">
  65168. <doc>
  65169. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  65170. property for specifying the ACL for the job.
  65171. @return aclName]]>
  65172. </doc>
  65173. </method>
  65174. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  65175. transient="false" volatile="false"
  65176. static="true" final="true" visibility="public"
  65177. deprecated="not deprecated">
  65178. <doc>
  65179. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  65180. related details.]]>
  65181. </doc>
  65182. </field>
  65183. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  65184. transient="false" volatile="false"
  65185. static="true" final="true" visibility="public"
  65186. deprecated="not deprecated">
  65187. <doc>
  65188. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  65189. killing the job, killing/failing a task of the job or setting priority of
  65190. the job.]]>
  65191. </doc>
  65192. </field>
  65193. <doc>
  65194. <![CDATA[Job related ACLs]]>
  65195. </doc>
  65196. </class>
  65197. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  65198. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  65199. <class name="JobContext" extends="java.lang.Object"
  65200. abstract="false"
  65201. static="false" final="false" visibility="public"
  65202. deprecated="not deprecated">
  65203. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  65204. static="false" final="false" visibility="public"
  65205. deprecated="not deprecated">
  65206. </constructor>
  65207. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  65208. abstract="false" native="false" synchronized="false"
  65209. static="false" final="false" visibility="public"
  65210. deprecated="not deprecated">
  65211. <doc>
  65212. <![CDATA[Return the configuration for the job.
  65213. @return the shared configuration object]]>
  65214. </doc>
  65215. </method>
  65216. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  65217. abstract="false" native="false" synchronized="false"
  65218. static="false" final="false" visibility="public"
  65219. deprecated="not deprecated">
  65220. <doc>
  65221. <![CDATA[Get credentials for the job.
  65222. @return credentials for the job]]>
  65223. </doc>
  65224. </method>
  65225. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  65226. abstract="false" native="false" synchronized="false"
  65227. static="false" final="false" visibility="public"
  65228. deprecated="not deprecated">
  65229. <doc>
  65230. <![CDATA[Get the unique ID for the job.
  65231. @return the object with the job id]]>
  65232. </doc>
  65233. </method>
  65234. <method name="getNumReduceTasks" return="int"
  65235. abstract="false" native="false" synchronized="false"
  65236. static="false" final="false" visibility="public"
  65237. deprecated="not deprecated">
  65238. <doc>
  65239. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  65240. <code>1</code>.
  65241. @return the number of reduce tasks for this job.]]>
  65242. </doc>
  65243. </method>
  65244. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  65245. abstract="false" native="false" synchronized="false"
  65246. static="false" final="false" visibility="public"
  65247. deprecated="not deprecated">
  65248. <exception name="IOException" type="java.io.IOException"/>
  65249. <doc>
  65250. <![CDATA[Get the current working directory for the default file system.
  65251. @return the directory name.]]>
  65252. </doc>
  65253. </method>
  65254. <method name="getOutputKeyClass" return="java.lang.Class"
  65255. abstract="false" native="false" synchronized="false"
  65256. static="false" final="false" visibility="public"
  65257. deprecated="not deprecated">
  65258. <doc>
  65259. <![CDATA[Get the key class for the job output data.
  65260. @return the key class for the job output data.]]>
  65261. </doc>
  65262. </method>
  65263. <method name="getOutputValueClass" return="java.lang.Class"
  65264. abstract="false" native="false" synchronized="false"
  65265. static="false" final="false" visibility="public"
  65266. deprecated="not deprecated">
  65267. <doc>
  65268. <![CDATA[Get the value class for job outputs.
  65269. @return the value class for job outputs.]]>
  65270. </doc>
  65271. </method>
  65272. <method name="getMapOutputKeyClass" return="java.lang.Class"
  65273. abstract="false" native="false" synchronized="false"
  65274. static="false" final="false" visibility="public"
  65275. deprecated="not deprecated">
  65276. <doc>
  65277. <![CDATA[Get the key class for the map output data. If it is not set, use the
  65278. (final) output key class. This allows the map output key class to be
  65279. different than the final output key class.
  65280. @return the map output key class.]]>
  65281. </doc>
  65282. </method>
  65283. <method name="getMapOutputValueClass" return="java.lang.Class"
  65284. abstract="false" native="false" synchronized="false"
  65285. static="false" final="false" visibility="public"
  65286. deprecated="not deprecated">
  65287. <doc>
  65288. <![CDATA[Get the value class for the map output data. If it is not set, use the
  65289. (final) output value class This allows the map output value class to be
  65290. different than the final output value class.
  65291. @return the map output value class.]]>
  65292. </doc>
  65293. </method>
  65294. <method name="getJobName" return="java.lang.String"
  65295. abstract="false" native="false" synchronized="false"
  65296. static="false" final="false" visibility="public"
  65297. deprecated="not deprecated">
  65298. <doc>
  65299. <![CDATA[Get the user-specified job name. This is only used to identify the
  65300. job to the user.
  65301. @return the job's name, defaulting to "".]]>
  65302. </doc>
  65303. </method>
  65304. <method name="getInputFormatClass" return="java.lang.Class"
  65305. abstract="false" native="false" synchronized="false"
  65306. static="false" final="false" visibility="public"
  65307. deprecated="not deprecated">
  65308. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65309. <doc>
  65310. <![CDATA[Get the {@link InputFormat} class for the job.
  65311. @return the {@link InputFormat} class for the job.]]>
  65312. </doc>
  65313. </method>
  65314. <method name="getMapperClass" return="java.lang.Class"
  65315. abstract="false" native="false" synchronized="false"
  65316. static="false" final="false" visibility="public"
  65317. deprecated="not deprecated">
  65318. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65319. <doc>
  65320. <![CDATA[Get the {@link Mapper} class for the job.
  65321. @return the {@link Mapper} class for the job.]]>
  65322. </doc>
  65323. </method>
  65324. <method name="getCombinerClass" return="java.lang.Class"
  65325. abstract="false" native="false" synchronized="false"
  65326. static="false" final="false" visibility="public"
  65327. deprecated="not deprecated">
  65328. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65329. <doc>
  65330. <![CDATA[Get the combiner class for the job.
  65331. @return the combiner class for the job.]]>
  65332. </doc>
  65333. </method>
  65334. <method name="getReducerClass" return="java.lang.Class"
  65335. abstract="false" native="false" synchronized="false"
  65336. static="false" final="false" visibility="public"
  65337. deprecated="not deprecated">
  65338. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65339. <doc>
  65340. <![CDATA[Get the {@link Reducer} class for the job.
  65341. @return the {@link Reducer} class for the job.]]>
  65342. </doc>
  65343. </method>
  65344. <method name="getOutputFormatClass" return="java.lang.Class"
  65345. abstract="false" native="false" synchronized="false"
  65346. static="false" final="false" visibility="public"
  65347. deprecated="not deprecated">
  65348. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65349. <doc>
  65350. <![CDATA[Get the {@link OutputFormat} class for the job.
  65351. @return the {@link OutputFormat} class for the job.]]>
  65352. </doc>
  65353. </method>
  65354. <method name="getPartitionerClass" return="java.lang.Class"
  65355. abstract="false" native="false" synchronized="false"
  65356. static="false" final="false" visibility="public"
  65357. deprecated="not deprecated">
  65358. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65359. <doc>
  65360. <![CDATA[Get the {@link Partitioner} class for the job.
  65361. @return the {@link Partitioner} class for the job.]]>
  65362. </doc>
  65363. </method>
  65364. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  65365. abstract="false" native="false" synchronized="false"
  65366. static="false" final="false" visibility="public"
  65367. deprecated="not deprecated">
  65368. <doc>
  65369. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  65370. @return the {@link RawComparator} comparator used to compare keys.]]>
  65371. </doc>
  65372. </method>
  65373. <method name="getJar" return="java.lang.String"
  65374. abstract="false" native="false" synchronized="false"
  65375. static="false" final="false" visibility="public"
  65376. deprecated="not deprecated">
  65377. <doc>
  65378. <![CDATA[Get the pathname of the job's jar.
  65379. @return the pathname]]>
  65380. </doc>
  65381. </method>
  65382. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  65383. abstract="false" native="false" synchronized="false"
  65384. static="false" final="false" visibility="public"
  65385. deprecated="not deprecated">
  65386. <doc>
  65387. <![CDATA[Get the user defined {@link RawComparator} comparator for
  65388. grouping keys of inputs to the reduce.
  65389. @return comparator set by the user for grouping values.
  65390. @see Job#setGroupingComparatorClass(Class) for details.]]>
  65391. </doc>
  65392. </method>
  65393. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  65394. transient="false" volatile="false"
  65395. static="true" final="true" visibility="protected"
  65396. deprecated="not deprecated">
  65397. </field>
  65398. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  65399. transient="false" volatile="false"
  65400. static="true" final="true" visibility="protected"
  65401. deprecated="not deprecated">
  65402. </field>
  65403. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  65404. transient="false" volatile="false"
  65405. static="true" final="true" visibility="protected"
  65406. deprecated="not deprecated">
  65407. </field>
  65408. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  65409. transient="false" volatile="false"
  65410. static="true" final="true" visibility="protected"
  65411. deprecated="not deprecated">
  65412. </field>
  65413. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  65414. transient="false" volatile="false"
  65415. static="true" final="true" visibility="protected"
  65416. deprecated="not deprecated">
  65417. </field>
  65418. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  65419. transient="false" volatile="false"
  65420. static="true" final="true" visibility="protected"
  65421. deprecated="not deprecated">
  65422. </field>
  65423. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  65424. transient="false" volatile="false"
  65425. static="false" final="true" visibility="protected"
  65426. deprecated="not deprecated">
  65427. </field>
  65428. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  65429. transient="false" volatile="false"
  65430. static="false" final="true" visibility="protected"
  65431. deprecated="not deprecated">
  65432. </field>
  65433. <field name="JOB_NAMENODES" type="java.lang.String"
  65434. transient="false" volatile="false"
  65435. static="true" final="true" visibility="public"
  65436. deprecated="not deprecated">
  65437. </field>
  65438. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  65439. transient="false" volatile="false"
  65440. static="true" final="true" visibility="public"
  65441. deprecated="not deprecated">
  65442. </field>
  65443. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  65444. transient="false" volatile="false"
  65445. static="true" final="true" visibility="public"
  65446. deprecated="not deprecated">
  65447. </field>
  65448. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  65449. transient="false" volatile="false"
  65450. static="true" final="true" visibility="public"
  65451. deprecated="not deprecated">
  65452. </field>
  65453. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  65454. transient="false" volatile="false"
  65455. static="true" final="true" visibility="public"
  65456. deprecated="not deprecated">
  65457. </field>
  65458. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  65459. transient="false" volatile="false"
  65460. static="true" final="true" visibility="public"
  65461. deprecated="not deprecated">
  65462. </field>
  65463. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  65464. transient="false" volatile="false"
  65465. static="true" final="true" visibility="public"
  65466. deprecated="not deprecated">
  65467. </field>
  65468. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  65469. transient="false" volatile="false"
  65470. static="false" final="false" visibility="protected"
  65471. deprecated="not deprecated">
  65472. <doc>
  65473. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  65474. </doc>
  65475. </field>
  65476. <doc>
  65477. <![CDATA[A read-only view of the job that is provided to the tasks while they
  65478. are running.]]>
  65479. </doc>
  65480. </class>
  65481. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  65482. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  65483. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  65484. abstract="false"
  65485. static="false" final="false" visibility="public"
  65486. deprecated="not deprecated">
  65487. <implements name="java.lang.Comparable"/>
  65488. <constructor name="JobID" type="java.lang.String, int"
  65489. static="false" final="false" visibility="public"
  65490. deprecated="not deprecated">
  65491. <doc>
  65492. <![CDATA[Constructs a JobID object
  65493. @param jtIdentifier jobTracker identifier
  65494. @param id job number]]>
  65495. </doc>
  65496. </constructor>
  65497. <constructor name="JobID"
  65498. static="false" final="false" visibility="public"
  65499. deprecated="not deprecated">
  65500. </constructor>
  65501. <method name="getJtIdentifier" return="java.lang.String"
  65502. abstract="false" native="false" synchronized="false"
  65503. static="false" final="false" visibility="public"
  65504. deprecated="not deprecated">
  65505. </method>
  65506. <method name="equals" return="boolean"
  65507. abstract="false" native="false" synchronized="false"
  65508. static="false" final="false" visibility="public"
  65509. deprecated="not deprecated">
  65510. <param name="o" type="java.lang.Object"/>
  65511. </method>
  65512. <method name="compareTo" return="int"
  65513. abstract="false" native="false" synchronized="false"
  65514. static="false" final="false" visibility="public"
  65515. deprecated="not deprecated">
  65516. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  65517. <doc>
  65518. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  65519. </doc>
  65520. </method>
  65521. <method name="appendTo" return="java.lang.StringBuilder"
  65522. abstract="false" native="false" synchronized="false"
  65523. static="false" final="false" visibility="public"
  65524. deprecated="not deprecated">
  65525. <param name="builder" type="java.lang.StringBuilder"/>
  65526. <doc>
  65527. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  65528. because the sub-ids use this substring at the start of their string.
  65529. @param builder the builder to append to
  65530. @return the builder that was passed in]]>
  65531. </doc>
  65532. </method>
  65533. <method name="hashCode" return="int"
  65534. abstract="false" native="false" synchronized="false"
  65535. static="false" final="false" visibility="public"
  65536. deprecated="not deprecated">
  65537. </method>
  65538. <method name="toString" return="java.lang.String"
  65539. abstract="false" native="false" synchronized="false"
  65540. static="false" final="false" visibility="public"
  65541. deprecated="not deprecated">
  65542. </method>
  65543. <method name="readFields"
  65544. abstract="false" native="false" synchronized="false"
  65545. static="false" final="false" visibility="public"
  65546. deprecated="not deprecated">
  65547. <param name="in" type="java.io.DataInput"/>
  65548. <exception name="IOException" type="java.io.IOException"/>
  65549. </method>
  65550. <method name="write"
  65551. abstract="false" native="false" synchronized="false"
  65552. static="false" final="false" visibility="public"
  65553. deprecated="not deprecated">
  65554. <param name="out" type="java.io.DataOutput"/>
  65555. <exception name="IOException" type="java.io.IOException"/>
  65556. </method>
  65557. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  65558. abstract="false" native="false" synchronized="false"
  65559. static="true" final="false" visibility="public"
  65560. deprecated="not deprecated">
  65561. <param name="str" type="java.lang.String"/>
  65562. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  65563. <doc>
  65564. <![CDATA[Construct a JobId object from given string
  65565. @return constructed JobId object or null if the given String is null
  65566. @throws IllegalArgumentException if the given string is malformed]]>
  65567. </doc>
  65568. </method>
  65569. <field name="JOB" type="java.lang.String"
  65570. transient="false" volatile="false"
  65571. static="true" final="true" visibility="protected"
  65572. deprecated="not deprecated">
  65573. </field>
  65574. <field name="JOBID_REGEX" type="java.lang.String"
  65575. transient="false" volatile="false"
  65576. static="true" final="true" visibility="public"
  65577. deprecated="not deprecated">
  65578. </field>
  65579. <field name="idFormat" type="java.text.NumberFormat"
  65580. transient="false" volatile="false"
  65581. static="true" final="true" visibility="protected"
  65582. deprecated="not deprecated">
  65583. </field>
  65584. <doc>
  65585. <![CDATA[JobID represents the immutable and unique identifier for
  65586. the job. JobID consists of two parts. First part
  65587. represents the jobtracker identifier, so that jobID to jobtracker map
  65588. is defined. For cluster setup this string is the jobtracker
  65589. start time, for local setting, it is "local".
  65590. Second part of the JobID is the job number. <br>
  65591. An example JobID is :
  65592. <code>job_200707121733_0003</code> , which represents the third job
  65593. running at the jobtracker started at <code>200707121733</code>.
  65594. <p>
  65595. Applications should never construct or parse JobID strings, but rather
  65596. use appropriate constructors or {@link #forName(String)} method.
  65597. @see TaskID
  65598. @see TaskAttemptID
  65599. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  65600. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  65601. </doc>
  65602. </class>
  65603. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  65604. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  65605. <class name="JobStatus" extends="java.lang.Object"
  65606. abstract="false"
  65607. static="false" final="false" visibility="public"
  65608. deprecated="not deprecated">
  65609. <constructor name="JobStatus"
  65610. static="false" final="false" visibility="public"
  65611. deprecated="not deprecated">
  65612. </constructor>
  65613. <doc>
  65614. <![CDATA[Describes the current status of a job.]]>
  65615. </doc>
  65616. </class>
  65617. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  65618. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  65619. <class name="JobStatus.State" extends="java.lang.Enum"
  65620. abstract="false"
  65621. static="true" final="true" visibility="public"
  65622. deprecated="not deprecated">
  65623. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  65624. abstract="false" native="false" synchronized="false"
  65625. static="true" final="false" visibility="public"
  65626. deprecated="not deprecated">
  65627. </method>
  65628. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  65629. abstract="false" native="false" synchronized="false"
  65630. static="true" final="false" visibility="public"
  65631. deprecated="not deprecated">
  65632. <param name="name" type="java.lang.String"/>
  65633. </method>
  65634. <method name="getValue" return="int"
  65635. abstract="false" native="false" synchronized="false"
  65636. static="false" final="false" visibility="public"
  65637. deprecated="not deprecated">
  65638. </method>
  65639. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65640. transient="false" volatile="false"
  65641. static="true" final="true" visibility="public"
  65642. deprecated="not deprecated">
  65643. </field>
  65644. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65645. transient="false" volatile="false"
  65646. static="true" final="true" visibility="public"
  65647. deprecated="not deprecated">
  65648. </field>
  65649. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65650. transient="false" volatile="false"
  65651. static="true" final="true" visibility="public"
  65652. deprecated="not deprecated">
  65653. </field>
  65654. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65655. transient="false" volatile="false"
  65656. static="true" final="true" visibility="public"
  65657. deprecated="not deprecated">
  65658. </field>
  65659. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65660. transient="false" volatile="false"
  65661. static="true" final="true" visibility="public"
  65662. deprecated="not deprecated">
  65663. </field>
  65664. <doc>
  65665. <![CDATA[Current state of the job]]>
  65666. </doc>
  65667. </class>
  65668. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  65669. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  65670. <class name="JobSubmissionFiles" extends="java.lang.Object"
  65671. abstract="false"
  65672. static="false" final="false" visibility="public"
  65673. deprecated="not deprecated">
  65674. <constructor name="JobSubmissionFiles"
  65675. static="false" final="false" visibility="public"
  65676. deprecated="not deprecated">
  65677. </constructor>
  65678. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  65679. abstract="false" native="false" synchronized="false"
  65680. static="true" final="false" visibility="public"
  65681. deprecated="not deprecated">
  65682. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  65683. </method>
  65684. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  65685. abstract="false" native="false" synchronized="false"
  65686. static="true" final="false" visibility="public"
  65687. deprecated="not deprecated">
  65688. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  65689. </method>
  65690. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  65691. abstract="false" native="false" synchronized="false"
  65692. static="true" final="false" visibility="public"
  65693. deprecated="not deprecated">
  65694. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65695. <doc>
  65696. <![CDATA[Get the job conf path.]]>
  65697. </doc>
  65698. </method>
  65699. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  65700. abstract="false" native="false" synchronized="false"
  65701. static="true" final="false" visibility="public"
  65702. deprecated="not deprecated">
  65703. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65704. <doc>
  65705. <![CDATA[Get the job jar path.]]>
  65706. </doc>
  65707. </method>
  65708. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  65709. abstract="false" native="false" synchronized="false"
  65710. static="true" final="false" visibility="public"
  65711. deprecated="not deprecated">
  65712. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65713. <doc>
  65714. <![CDATA[Get the job distributed cache files path.
  65715. @param jobSubmitDir]]>
  65716. </doc>
  65717. </method>
  65718. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  65719. abstract="false" native="false" synchronized="false"
  65720. static="true" final="false" visibility="public"
  65721. deprecated="not deprecated">
  65722. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65723. <doc>
  65724. <![CDATA[Get the job distributed cache archives path.
  65725. @param jobSubmitDir]]>
  65726. </doc>
  65727. </method>
  65728. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  65729. abstract="false" native="false" synchronized="false"
  65730. static="true" final="false" visibility="public"
  65731. deprecated="not deprecated">
  65732. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65733. <doc>
  65734. <![CDATA[Get the job distributed cache libjars path.
  65735. @param jobSubmitDir]]>
  65736. </doc>
  65737. </method>
  65738. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  65739. abstract="false" native="false" synchronized="false"
  65740. static="true" final="false" visibility="public"
  65741. deprecated="not deprecated">
  65742. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  65743. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  65744. <exception name="IOException" type="java.io.IOException"/>
  65745. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65746. <doc>
  65747. <![CDATA[Initializes the staging directory and returns the path. It also
  65748. keeps track of all necessary ownership & permissions
  65749. @param client
  65750. @param conf]]>
  65751. </doc>
  65752. </method>
  65753. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  65754. transient="false" volatile="false"
  65755. static="true" final="true" visibility="public"
  65756. deprecated="not deprecated">
  65757. </field>
  65758. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  65759. transient="false" volatile="false"
  65760. static="true" final="true" visibility="public"
  65761. deprecated="not deprecated">
  65762. </field>
  65763. <doc>
  65764. <![CDATA[A utility to manage job submission files.<br/>
  65765. <b><i>Note that this class is for framework internal usage only and is
  65766. not to be used by users directly.</i></b>]]>
  65767. </doc>
  65768. </class>
  65769. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  65770. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  65771. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  65772. abstract="false"
  65773. static="false" final="false" visibility="public"
  65774. deprecated="not deprecated">
  65775. <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"
  65776. static="false" final="false" visibility="public"
  65777. deprecated="not deprecated">
  65778. </constructor>
  65779. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  65780. abstract="false" native="false" synchronized="false"
  65781. static="false" final="false" visibility="public"
  65782. deprecated="not deprecated">
  65783. <doc>
  65784. <![CDATA[Get the input split for this map.]]>
  65785. </doc>
  65786. </method>
  65787. <method name="getCurrentKey" return="java.lang.Object"
  65788. abstract="false" native="false" synchronized="false"
  65789. static="false" final="false" visibility="public"
  65790. deprecated="not deprecated">
  65791. <exception name="IOException" type="java.io.IOException"/>
  65792. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65793. </method>
  65794. <method name="getCurrentValue" return="java.lang.Object"
  65795. abstract="false" native="false" synchronized="false"
  65796. static="false" final="false" visibility="public"
  65797. deprecated="not deprecated">
  65798. <exception name="IOException" type="java.io.IOException"/>
  65799. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65800. </method>
  65801. <method name="nextKeyValue" return="boolean"
  65802. abstract="false" native="false" synchronized="false"
  65803. static="false" final="false" visibility="public"
  65804. deprecated="not deprecated">
  65805. <exception name="IOException" type="java.io.IOException"/>
  65806. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65807. </method>
  65808. <doc>
  65809. <![CDATA[The context that is given to the {@link Mapper}.
  65810. @param <KEYIN> the key input type to the Mapper
  65811. @param <VALUEIN> the value input type to the Mapper
  65812. @param <KEYOUT> the key output type from the Mapper
  65813. @param <VALUEOUT> the value output type from the Mapper]]>
  65814. </doc>
  65815. </class>
  65816. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  65817. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  65818. <class name="Mapper" extends="java.lang.Object"
  65819. abstract="false"
  65820. static="false" final="false" visibility="public"
  65821. deprecated="not deprecated">
  65822. <constructor name="Mapper"
  65823. static="false" final="false" visibility="public"
  65824. deprecated="not deprecated">
  65825. </constructor>
  65826. <method name="setup"
  65827. abstract="false" native="false" synchronized="false"
  65828. static="false" final="false" visibility="protected"
  65829. deprecated="not deprecated">
  65830. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65831. <exception name="IOException" type="java.io.IOException"/>
  65832. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65833. <doc>
  65834. <![CDATA[Called once at the beginning of the task.]]>
  65835. </doc>
  65836. </method>
  65837. <method name="map"
  65838. abstract="false" native="false" synchronized="false"
  65839. static="false" final="false" visibility="protected"
  65840. deprecated="not deprecated">
  65841. <param name="key" type="java.lang.Object"/>
  65842. <param name="value" type="java.lang.Object"/>
  65843. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65844. <exception name="IOException" type="java.io.IOException"/>
  65845. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65846. <doc>
  65847. <![CDATA[Called once for each key/value pair in the input split. Most applications
  65848. should override this, but the default is the identity function.]]>
  65849. </doc>
  65850. </method>
  65851. <method name="cleanup"
  65852. abstract="false" native="false" synchronized="false"
  65853. static="false" final="false" visibility="protected"
  65854. deprecated="not deprecated">
  65855. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65856. <exception name="IOException" type="java.io.IOException"/>
  65857. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65858. <doc>
  65859. <![CDATA[Called once at the end of the task.]]>
  65860. </doc>
  65861. </method>
  65862. <method name="run"
  65863. abstract="false" native="false" synchronized="false"
  65864. static="false" final="false" visibility="public"
  65865. deprecated="not deprecated">
  65866. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65867. <exception name="IOException" type="java.io.IOException"/>
  65868. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65869. <doc>
  65870. <![CDATA[Expert users can override this method for more complete control over the
  65871. execution of the Mapper.
  65872. @param context
  65873. @throws IOException]]>
  65874. </doc>
  65875. </method>
  65876. <doc>
  65877. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  65878. <p>Maps are the individual tasks which transform input records into a
  65879. intermediate records. The transformed intermediate records need not be of
  65880. the same type as the input records. A given input pair may map to zero or
  65881. many output pairs.</p>
  65882. <p>The Hadoop Map-Reduce framework spawns one map task for each
  65883. {@link InputSplit} generated by the {@link InputFormat} for the job.
  65884. <code>Mapper</code> implementations can access the {@link Configuration} for
  65885. the job via the {@link JobContext#getConfiguration()}.
  65886. <p>The framework first calls
  65887. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  65888. {@link #map(Object, Object, Context)}
  65889. for each key/value pair in the <code>InputSplit</code>. Finally
  65890. {@link #cleanup(Context)} is called.</p>
  65891. <p>All intermediate values associated with a given output key are
  65892. subsequently grouped by the framework, and passed to a {@link Reducer} to
  65893. determine the final output. Users can control the sorting and grouping by
  65894. specifying two key {@link RawComparator} classes.</p>
  65895. <p>The <code>Mapper</code> outputs are partitioned per
  65896. <code>Reducer</code>. Users can control which keys (and hence records) go to
  65897. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  65898. <p>Users can optionally specify a <code>combiner</code>, via
  65899. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  65900. intermediate outputs, which helps to cut down the amount of data transferred
  65901. from the <code>Mapper</code> to the <code>Reducer</code>.
  65902. <p>Applications can specify if and how the intermediate
  65903. outputs are to be compressed and which {@link CompressionCodec}s are to be
  65904. used via the <code>Configuration</code>.</p>
  65905. <p>If the job has zero
  65906. reduces then the output of the <code>Mapper</code> is directly written
  65907. to the {@link OutputFormat} without sorting by keys.</p>
  65908. <p>Example:</p>
  65909. <p><blockquote><pre>
  65910. public class TokenCounterMapper
  65911. extends Mapper<Object, Text, Text, IntWritable>{
  65912. private final static IntWritable one = new IntWritable(1);
  65913. private Text word = new Text();
  65914. public void map(Object key, Text value, Context context) throws IOException {
  65915. StringTokenizer itr = new StringTokenizer(value.toString());
  65916. while (itr.hasMoreTokens()) {
  65917. word.set(itr.nextToken());
  65918. context.collect(word, one);
  65919. }
  65920. }
  65921. }
  65922. </pre></blockquote></p>
  65923. <p>Applications may override the {@link #run(Context)} method to exert
  65924. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  65925. etc.</p>
  65926. @see InputFormat
  65927. @see JobContext
  65928. @see Partitioner
  65929. @see Reducer]]>
  65930. </doc>
  65931. </class>
  65932. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  65933. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  65934. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  65935. abstract="false"
  65936. static="false" final="false" visibility="public"
  65937. deprecated="not deprecated">
  65938. <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"
  65939. static="false" final="false" visibility="public"
  65940. deprecated="not deprecated">
  65941. <exception name="IOException" type="java.io.IOException"/>
  65942. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65943. </constructor>
  65944. </class>
  65945. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  65946. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  65947. <class name="OutputCommitter" extends="java.lang.Object"
  65948. abstract="true"
  65949. static="false" final="false" visibility="public"
  65950. deprecated="not deprecated">
  65951. <constructor name="OutputCommitter"
  65952. static="false" final="false" visibility="public"
  65953. deprecated="not deprecated">
  65954. </constructor>
  65955. <method name="setupJob"
  65956. abstract="true" native="false" synchronized="false"
  65957. static="false" final="false" visibility="public"
  65958. deprecated="not deprecated">
  65959. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65960. <exception name="IOException" type="java.io.IOException"/>
  65961. <doc>
  65962. <![CDATA[For the framework to setup the job output during initialization
  65963. @param jobContext Context of the job whose output is being written.
  65964. @throws IOException if temporary output could not be created]]>
  65965. </doc>
  65966. </method>
  65967. <method name="commitJob"
  65968. abstract="false" native="false" synchronized="false"
  65969. static="false" final="false" visibility="public"
  65970. deprecated="not deprecated">
  65971. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65972. <exception name="IOException" type="java.io.IOException"/>
  65973. <doc>
  65974. <![CDATA[For cleaning up the job's output after job completion. Note that this
  65975. is invoked for jobs with final run state as
  65976. {@link JobStatus.State#SUCCEEDED}
  65977. @param jobContext Context of the job whose output is being written.
  65978. @throws IOException]]>
  65979. </doc>
  65980. </method>
  65981. <method name="cleanupJob"
  65982. abstract="false" native="false" synchronized="false"
  65983. static="false" final="false" visibility="public"
  65984. deprecated="use {@link #commitJob(JobContext)} or
  65985. {@link #abortJob(JobContext, JobStatus.State)} instead">
  65986. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  65987. <exception name="IOException" type="java.io.IOException"/>
  65988. <doc>
  65989. <![CDATA[For cleaning up the job's output after job completion
  65990. @deprecated use {@link #commitJob(JobContext)} or
  65991. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  65992. </doc>
  65993. </method>
  65994. <method name="abortJob"
  65995. abstract="false" native="false" synchronized="false"
  65996. static="false" final="false" visibility="public"
  65997. deprecated="not deprecated">
  65998. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65999. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  66000. <exception name="IOException" type="java.io.IOException"/>
  66001. <doc>
  66002. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  66003. jobs with final run state as {@link JobStatus.State#FAILED} or
  66004. {@link JobStatus.State#KILLED}.
  66005. @param jobContext Context of the job whose output is being written.
  66006. @param state final run state of the job, should be either
  66007. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  66008. @throws IOException]]>
  66009. </doc>
  66010. </method>
  66011. <method name="setupTask"
  66012. abstract="true" native="false" synchronized="false"
  66013. static="false" final="false" visibility="public"
  66014. deprecated="not deprecated">
  66015. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66016. <exception name="IOException" type="java.io.IOException"/>
  66017. <doc>
  66018. <![CDATA[Sets up output for the task.
  66019. @param taskContext Context of the task whose output is being written.
  66020. @throws IOException]]>
  66021. </doc>
  66022. </method>
  66023. <method name="needsTaskCommit" return="boolean"
  66024. abstract="true" native="false" synchronized="false"
  66025. static="false" final="false" visibility="public"
  66026. deprecated="not deprecated">
  66027. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66028. <exception name="IOException" type="java.io.IOException"/>
  66029. <doc>
  66030. <![CDATA[Check whether task needs a commit
  66031. @param taskContext
  66032. @return true/false
  66033. @throws IOException]]>
  66034. </doc>
  66035. </method>
  66036. <method name="commitTask"
  66037. abstract="true" native="false" synchronized="false"
  66038. static="false" final="false" visibility="public"
  66039. deprecated="not deprecated">
  66040. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66041. <exception name="IOException" type="java.io.IOException"/>
  66042. <doc>
  66043. <![CDATA[To promote the task's temporary output to final output location
  66044. The task's output is moved to the job's output directory.
  66045. @param taskContext Context of the task whose output is being written.
  66046. @throws IOException if commit is not]]>
  66047. </doc>
  66048. </method>
  66049. <method name="abortTask"
  66050. abstract="true" native="false" synchronized="false"
  66051. static="false" final="false" visibility="public"
  66052. deprecated="not deprecated">
  66053. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66054. <exception name="IOException" type="java.io.IOException"/>
  66055. <doc>
  66056. <![CDATA[Discard the task output
  66057. @param taskContext
  66058. @throws IOException]]>
  66059. </doc>
  66060. </method>
  66061. <doc>
  66062. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  66063. Map-Reduce job.
  66064. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  66065. the job to:<p>
  66066. <ol>
  66067. <li>
  66068. Setup the job during initialization. For example, create the temporary
  66069. output directory for the job during the initialization of the job.
  66070. </li>
  66071. <li>
  66072. Cleanup the job after the job completion. For example, remove the
  66073. temporary output directory after the job completion.
  66074. </li>
  66075. <li>
  66076. Setup the task temporary output.
  66077. </li>
  66078. <li>
  66079. Check whether a task needs a commit. This is to avoid the commit
  66080. procedure if a task does not need commit.
  66081. </li>
  66082. <li>
  66083. Commit of the task output.
  66084. </li>
  66085. <li>
  66086. Discard the task commit.
  66087. </li>
  66088. </ol>
  66089. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  66090. @see JobContext
  66091. @see TaskAttemptContext]]>
  66092. </doc>
  66093. </class>
  66094. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  66095. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  66096. <class name="OutputFormat" extends="java.lang.Object"
  66097. abstract="true"
  66098. static="false" final="false" visibility="public"
  66099. deprecated="not deprecated">
  66100. <constructor name="OutputFormat"
  66101. static="false" final="false" visibility="public"
  66102. deprecated="not deprecated">
  66103. </constructor>
  66104. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  66105. abstract="true" native="false" synchronized="false"
  66106. static="false" final="false" visibility="public"
  66107. deprecated="not deprecated">
  66108. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66109. <exception name="IOException" type="java.io.IOException"/>
  66110. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66111. <doc>
  66112. <![CDATA[Get the {@link RecordWriter} for the given task.
  66113. @param context the information about the current task.
  66114. @return a {@link RecordWriter} to write the output for the job.
  66115. @throws IOException]]>
  66116. </doc>
  66117. </method>
  66118. <method name="checkOutputSpecs"
  66119. abstract="true" native="false" synchronized="false"
  66120. static="false" final="false" visibility="public"
  66121. deprecated="not deprecated">
  66122. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66123. <exception name="IOException" type="java.io.IOException"/>
  66124. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66125. <doc>
  66126. <![CDATA[Check for validity of the output-specification for the job.
  66127. <p>This is to validate the output specification for the job when it is
  66128. a job is submitted. Typically checks that it does not already exist,
  66129. throwing an exception when it already exists, so that output is not
  66130. overwritten.</p>
  66131. @param context information about the job
  66132. @throws IOException when output should not be attempted]]>
  66133. </doc>
  66134. </method>
  66135. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  66136. abstract="true" native="false" synchronized="false"
  66137. static="false" final="false" visibility="public"
  66138. deprecated="not deprecated">
  66139. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66140. <exception name="IOException" type="java.io.IOException"/>
  66141. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66142. <doc>
  66143. <![CDATA[Get the output committer for this output format. This is responsible
  66144. for ensuring the output is committed correctly.
  66145. @param context the task context
  66146. @return an output committer
  66147. @throws IOException
  66148. @throws InterruptedException]]>
  66149. </doc>
  66150. </method>
  66151. <doc>
  66152. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  66153. Map-Reduce job.
  66154. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  66155. job to:<p>
  66156. <ol>
  66157. <li>
  66158. Validate the output-specification of the job. For e.g. check that the
  66159. output directory doesn't already exist.
  66160. <li>
  66161. Provide the {@link RecordWriter} implementation to be used to write out
  66162. the output files of the job. Output files are stored in a
  66163. {@link FileSystem}.
  66164. </li>
  66165. </ol>
  66166. @see RecordWriter]]>
  66167. </doc>
  66168. </class>
  66169. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  66170. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  66171. <class name="Partitioner" extends="java.lang.Object"
  66172. abstract="true"
  66173. static="false" final="false" visibility="public"
  66174. deprecated="not deprecated">
  66175. <constructor name="Partitioner"
  66176. static="false" final="false" visibility="public"
  66177. deprecated="not deprecated">
  66178. </constructor>
  66179. <method name="getPartition" return="int"
  66180. abstract="true" native="false" synchronized="false"
  66181. static="false" final="false" visibility="public"
  66182. deprecated="not deprecated">
  66183. <param name="key" type="java.lang.Object"/>
  66184. <param name="value" type="java.lang.Object"/>
  66185. <param name="numPartitions" type="int"/>
  66186. <doc>
  66187. <![CDATA[Get the partition number for a given key (hence record) given the total
  66188. number of partitions i.e. number of reduce-tasks for the job.
  66189. <p>Typically a hash function on a all or a subset of the key.</p>
  66190. @param key the key to be partioned.
  66191. @param value the entry value.
  66192. @param numPartitions the total number of partitions.
  66193. @return the partition number for the <code>key</code>.]]>
  66194. </doc>
  66195. </method>
  66196. <doc>
  66197. <![CDATA[Partitions the key space.
  66198. <p><code>Partitioner</code> controls the partitioning of the keys of the
  66199. intermediate map-outputs. The key (or a subset of the key) is used to derive
  66200. the partition, typically by a hash function. The total number of partitions
  66201. is the same as the number of reduce tasks for the job. Hence this controls
  66202. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  66203. record) is sent for reduction.</p>
  66204. @see Reducer]]>
  66205. </doc>
  66206. </class>
  66207. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  66208. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  66209. <class name="RecordReader" extends="java.lang.Object"
  66210. abstract="true"
  66211. static="false" final="false" visibility="public"
  66212. deprecated="not deprecated">
  66213. <implements name="java.io.Closeable"/>
  66214. <constructor name="RecordReader"
  66215. static="false" final="false" visibility="public"
  66216. deprecated="not deprecated">
  66217. </constructor>
  66218. <method name="initialize"
  66219. abstract="true" native="false" synchronized="false"
  66220. static="false" final="false" visibility="public"
  66221. deprecated="not deprecated">
  66222. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  66223. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66224. <exception name="IOException" type="java.io.IOException"/>
  66225. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66226. <doc>
  66227. <![CDATA[Called once at initialization.
  66228. @param split the split that defines the range of records to read
  66229. @param context the information about the task
  66230. @throws IOException
  66231. @throws InterruptedException]]>
  66232. </doc>
  66233. </method>
  66234. <method name="nextKeyValue" return="boolean"
  66235. abstract="true" native="false" synchronized="false"
  66236. static="false" final="false" visibility="public"
  66237. deprecated="not deprecated">
  66238. <exception name="IOException" type="java.io.IOException"/>
  66239. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66240. <doc>
  66241. <![CDATA[Read the next key, value pair.
  66242. @return true if a key/value pair was read
  66243. @throws IOException
  66244. @throws InterruptedException]]>
  66245. </doc>
  66246. </method>
  66247. <method name="getCurrentKey" return="java.lang.Object"
  66248. abstract="true" native="false" synchronized="false"
  66249. static="false" final="false" visibility="public"
  66250. deprecated="not deprecated">
  66251. <exception name="IOException" type="java.io.IOException"/>
  66252. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66253. <doc>
  66254. <![CDATA[Get the current key
  66255. @return the current key or null if there is no current key
  66256. @throws IOException
  66257. @throws InterruptedException]]>
  66258. </doc>
  66259. </method>
  66260. <method name="getCurrentValue" return="java.lang.Object"
  66261. abstract="true" native="false" synchronized="false"
  66262. static="false" final="false" visibility="public"
  66263. deprecated="not deprecated">
  66264. <exception name="IOException" type="java.io.IOException"/>
  66265. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66266. <doc>
  66267. <![CDATA[Get the current value.
  66268. @return the object that was read
  66269. @throws IOException
  66270. @throws InterruptedException]]>
  66271. </doc>
  66272. </method>
  66273. <method name="getProgress" return="float"
  66274. abstract="true" native="false" synchronized="false"
  66275. static="false" final="false" visibility="public"
  66276. deprecated="not deprecated">
  66277. <exception name="IOException" type="java.io.IOException"/>
  66278. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66279. <doc>
  66280. <![CDATA[The current progress of the record reader through its data.
  66281. @return a number between 0.0 and 1.0 that is the fraction of the data read
  66282. @throws IOException
  66283. @throws InterruptedException]]>
  66284. </doc>
  66285. </method>
  66286. <method name="close"
  66287. abstract="true" native="false" synchronized="false"
  66288. static="false" final="false" visibility="public"
  66289. deprecated="not deprecated">
  66290. <exception name="IOException" type="java.io.IOException"/>
  66291. <doc>
  66292. <![CDATA[Close the record reader.]]>
  66293. </doc>
  66294. </method>
  66295. <doc>
  66296. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  66297. {@link Mapper}.
  66298. @param <KEYIN>
  66299. @param <VALUEIN>]]>
  66300. </doc>
  66301. </class>
  66302. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  66303. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  66304. <class name="RecordWriter" extends="java.lang.Object"
  66305. abstract="true"
  66306. static="false" final="false" visibility="public"
  66307. deprecated="not deprecated">
  66308. <constructor name="RecordWriter"
  66309. static="false" final="false" visibility="public"
  66310. deprecated="not deprecated">
  66311. </constructor>
  66312. <method name="write"
  66313. abstract="true" native="false" synchronized="false"
  66314. static="false" final="false" visibility="public"
  66315. deprecated="not deprecated">
  66316. <param name="key" type="java.lang.Object"/>
  66317. <param name="value" type="java.lang.Object"/>
  66318. <exception name="IOException" type="java.io.IOException"/>
  66319. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66320. <doc>
  66321. <![CDATA[Writes a key/value pair.
  66322. @param key the key to write.
  66323. @param value the value to write.
  66324. @throws IOException]]>
  66325. </doc>
  66326. </method>
  66327. <method name="close"
  66328. abstract="true" native="false" synchronized="false"
  66329. static="false" final="false" visibility="public"
  66330. deprecated="not deprecated">
  66331. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66332. <exception name="IOException" type="java.io.IOException"/>
  66333. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66334. <doc>
  66335. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  66336. @param context the context of the task
  66337. @throws IOException]]>
  66338. </doc>
  66339. </method>
  66340. <doc>
  66341. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  66342. to an output file.
  66343. <p><code>RecordWriter</code> implementations write the job outputs to the
  66344. {@link FileSystem}.
  66345. @see OutputFormat]]>
  66346. </doc>
  66347. </class>
  66348. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  66349. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  66350. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  66351. abstract="false"
  66352. static="false" final="false" visibility="public"
  66353. deprecated="not deprecated">
  66354. <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"
  66355. static="false" final="false" visibility="public"
  66356. deprecated="not deprecated">
  66357. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66358. <exception name="IOException" type="java.io.IOException"/>
  66359. </constructor>
  66360. <method name="nextKey" return="boolean"
  66361. abstract="false" native="false" synchronized="false"
  66362. static="false" final="false" visibility="public"
  66363. deprecated="not deprecated">
  66364. <exception name="IOException" type="java.io.IOException"/>
  66365. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66366. <doc>
  66367. <![CDATA[Start processing next unique key.]]>
  66368. </doc>
  66369. </method>
  66370. <method name="nextKeyValue" return="boolean"
  66371. abstract="false" native="false" synchronized="false"
  66372. static="false" final="false" visibility="public"
  66373. deprecated="not deprecated">
  66374. <exception name="IOException" type="java.io.IOException"/>
  66375. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66376. <doc>
  66377. <![CDATA[Advance to the next key/value pair.]]>
  66378. </doc>
  66379. </method>
  66380. <method name="getCurrentKey" return="java.lang.Object"
  66381. abstract="false" native="false" synchronized="false"
  66382. static="false" final="false" visibility="public"
  66383. deprecated="not deprecated">
  66384. </method>
  66385. <method name="getCurrentValue" return="java.lang.Object"
  66386. abstract="false" native="false" synchronized="false"
  66387. static="false" final="false" visibility="public"
  66388. deprecated="not deprecated">
  66389. </method>
  66390. <method name="getValues" return="java.lang.Iterable"
  66391. abstract="false" native="false" synchronized="false"
  66392. static="false" final="false" visibility="public"
  66393. deprecated="not deprecated">
  66394. <exception name="IOException" type="java.io.IOException"/>
  66395. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66396. <doc>
  66397. <![CDATA[Iterate through the values for the current key, reusing the same value
  66398. object, which is stored in the context.
  66399. @return the series of values associated with the current key. All of the
  66400. objects returned directly and indirectly from this method are reused.]]>
  66401. </doc>
  66402. </method>
  66403. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  66404. transient="false" volatile="false"
  66405. static="false" final="false" visibility="protected"
  66406. deprecated="not deprecated">
  66407. </field>
  66408. <doc>
  66409. <![CDATA[The context passed to the {@link Reducer}.
  66410. @param <KEYIN> the class of the input keys
  66411. @param <VALUEIN> the class of the input values
  66412. @param <KEYOUT> the class of the output keys
  66413. @param <VALUEOUT> the class of the output values]]>
  66414. </doc>
  66415. </class>
  66416. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  66417. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  66418. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  66419. abstract="false"
  66420. static="false" final="false" visibility="protected"
  66421. deprecated="not deprecated">
  66422. <implements name="java.lang.Iterable"/>
  66423. <constructor name="ReduceContext.ValueIterable"
  66424. static="false" final="false" visibility="protected"
  66425. deprecated="not deprecated">
  66426. </constructor>
  66427. <method name="iterator" return="java.util.Iterator"
  66428. abstract="false" native="false" synchronized="false"
  66429. static="false" final="false" visibility="public"
  66430. deprecated="not deprecated">
  66431. </method>
  66432. </class>
  66433. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  66434. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  66435. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  66436. abstract="false"
  66437. static="false" final="false" visibility="protected"
  66438. deprecated="not deprecated">
  66439. <implements name="java.util.Iterator"/>
  66440. <constructor name="ReduceContext.ValueIterator"
  66441. static="false" final="false" visibility="protected"
  66442. deprecated="not deprecated">
  66443. </constructor>
  66444. <method name="hasNext" return="boolean"
  66445. abstract="false" native="false" synchronized="false"
  66446. static="false" final="false" visibility="public"
  66447. deprecated="not deprecated">
  66448. </method>
  66449. <method name="next" return="java.lang.Object"
  66450. abstract="false" native="false" synchronized="false"
  66451. static="false" final="false" visibility="public"
  66452. deprecated="not deprecated">
  66453. </method>
  66454. <method name="remove"
  66455. abstract="false" native="false" synchronized="false"
  66456. static="false" final="false" visibility="public"
  66457. deprecated="not deprecated">
  66458. </method>
  66459. </class>
  66460. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  66461. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  66462. <class name="Reducer" extends="java.lang.Object"
  66463. abstract="false"
  66464. static="false" final="false" visibility="public"
  66465. deprecated="not deprecated">
  66466. <constructor name="Reducer"
  66467. static="false" final="false" visibility="public"
  66468. deprecated="not deprecated">
  66469. </constructor>
  66470. <method name="setup"
  66471. abstract="false" native="false" synchronized="false"
  66472. static="false" final="false" visibility="protected"
  66473. deprecated="not deprecated">
  66474. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66475. <exception name="IOException" type="java.io.IOException"/>
  66476. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66477. <doc>
  66478. <![CDATA[Called once at the start of the task.]]>
  66479. </doc>
  66480. </method>
  66481. <method name="reduce"
  66482. abstract="false" native="false" synchronized="false"
  66483. static="false" final="false" visibility="protected"
  66484. deprecated="not deprecated">
  66485. <param name="key" type="java.lang.Object"/>
  66486. <param name="values" type="java.lang.Iterable"/>
  66487. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66488. <exception name="IOException" type="java.io.IOException"/>
  66489. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66490. <doc>
  66491. <![CDATA[This method is called once for each key. Most applications will define
  66492. their reduce class by overriding this method. The default implementation
  66493. is an identity function.]]>
  66494. </doc>
  66495. </method>
  66496. <method name="cleanup"
  66497. abstract="false" native="false" synchronized="false"
  66498. static="false" final="false" visibility="protected"
  66499. deprecated="not deprecated">
  66500. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66501. <exception name="IOException" type="java.io.IOException"/>
  66502. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66503. <doc>
  66504. <![CDATA[Called once at the end of the task.]]>
  66505. </doc>
  66506. </method>
  66507. <method name="run"
  66508. abstract="false" native="false" synchronized="false"
  66509. static="false" final="false" visibility="public"
  66510. deprecated="not deprecated">
  66511. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66512. <exception name="IOException" type="java.io.IOException"/>
  66513. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66514. <doc>
  66515. <![CDATA[Advanced application writers can use the
  66516. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  66517. control how the reduce task works.]]>
  66518. </doc>
  66519. </method>
  66520. <doc>
  66521. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  66522. values.
  66523. <p><code>Reducer</code> implementations
  66524. can access the {@link Configuration} for the job via the
  66525. {@link JobContext#getConfiguration()} method.</p>
  66526. <p><code>Reducer</code> has 3 primary phases:</p>
  66527. <ol>
  66528. <li>
  66529. <h4 id="Shuffle">Shuffle</h4>
  66530. <p>The <code>Reducer</code> copies the sorted output from each
  66531. {@link Mapper} using HTTP across the network.</p>
  66532. </li>
  66533. <li>
  66534. <h4 id="Sort">Sort</h4>
  66535. <p>The framework merge sorts <code>Reducer</code> inputs by
  66536. <code>key</code>s
  66537. (since different <code>Mapper</code>s may have output the same key).</p>
  66538. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  66539. being fetched they are merged.</p>
  66540. <h5 id="SecondarySort">SecondarySort</h5>
  66541. <p>To achieve a secondary sort on the values returned by the value
  66542. iterator, the application should extend the key with the secondary
  66543. key and define a grouping comparator. The keys will be sorted using the
  66544. entire key, but will be grouped using the grouping comparator to decide
  66545. which keys and values are sent in the same call to reduce.The grouping
  66546. comparator is specified via
  66547. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  66548. controlled by
  66549. {@link Job#setSortComparatorClass(Class)}.</p>
  66550. For example, say that you want to find duplicate web pages and tag them
  66551. all with the url of the "best" known example. You would set up the job
  66552. like:
  66553. <ul>
  66554. <li>Map Input Key: url</li>
  66555. <li>Map Input Value: document</li>
  66556. <li>Map Output Key: document checksum, url pagerank</li>
  66557. <li>Map Output Value: url</li>
  66558. <li>Partitioner: by checksum</li>
  66559. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  66560. <li>OutputValueGroupingComparator: by checksum</li>
  66561. </ul>
  66562. </li>
  66563. <li>
  66564. <h4 id="Reduce">Reduce</h4>
  66565. <p>In this phase the
  66566. {@link #reduce(Object, Iterable, Context)}
  66567. method is called for each <code>&lt;key, (collection of values)></code> in
  66568. the sorted inputs.</p>
  66569. <p>The output of the reduce task is typically written to a
  66570. {@link RecordWriter} via
  66571. {@link Context#write(Object, Object)}.</p>
  66572. </li>
  66573. </ol>
  66574. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  66575. <p>Example:</p>
  66576. <p><blockquote><pre>
  66577. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  66578. Key,IntWritable> {
  66579. private IntWritable result = new IntWritable();
  66580. public void reduce(Key key, Iterable<IntWritable> values,
  66581. Context context) throws IOException {
  66582. int sum = 0;
  66583. for (IntWritable val : values) {
  66584. sum += val.get();
  66585. }
  66586. result.set(sum);
  66587. context.collect(key, result);
  66588. }
  66589. }
  66590. </pre></blockquote></p>
  66591. @see Mapper
  66592. @see Partitioner]]>
  66593. </doc>
  66594. </class>
  66595. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  66596. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  66597. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  66598. abstract="false"
  66599. static="false" final="false" visibility="public"
  66600. deprecated="not deprecated">
  66601. <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"
  66602. static="false" final="false" visibility="public"
  66603. deprecated="not deprecated">
  66604. <exception name="IOException" type="java.io.IOException"/>
  66605. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66606. </constructor>
  66607. </class>
  66608. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  66609. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  66610. <class name="StatusReporter" extends="java.lang.Object"
  66611. abstract="true"
  66612. static="false" final="false" visibility="public"
  66613. deprecated="not deprecated">
  66614. <constructor name="StatusReporter"
  66615. static="false" final="false" visibility="public"
  66616. deprecated="not deprecated">
  66617. </constructor>
  66618. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66619. abstract="true" native="false" synchronized="false"
  66620. static="false" final="false" visibility="public"
  66621. deprecated="not deprecated">
  66622. <param name="name" type="java.lang.Enum"/>
  66623. </method>
  66624. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66625. abstract="true" native="false" synchronized="false"
  66626. static="false" final="false" visibility="public"
  66627. deprecated="not deprecated">
  66628. <param name="group" type="java.lang.String"/>
  66629. <param name="name" type="java.lang.String"/>
  66630. </method>
  66631. <method name="progress"
  66632. abstract="true" native="false" synchronized="false"
  66633. static="false" final="false" visibility="public"
  66634. deprecated="not deprecated">
  66635. </method>
  66636. <method name="setStatus"
  66637. abstract="true" native="false" synchronized="false"
  66638. static="false" final="false" visibility="public"
  66639. deprecated="not deprecated">
  66640. <param name="status" type="java.lang.String"/>
  66641. </method>
  66642. </class>
  66643. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  66644. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  66645. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  66646. abstract="false"
  66647. static="false" final="false" visibility="public"
  66648. deprecated="not deprecated">
  66649. <implements name="org.apache.hadoop.util.Progressable"/>
  66650. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  66651. static="false" final="false" visibility="public"
  66652. deprecated="not deprecated">
  66653. </constructor>
  66654. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  66655. abstract="false" native="false" synchronized="false"
  66656. static="false" final="false" visibility="public"
  66657. deprecated="not deprecated">
  66658. <doc>
  66659. <![CDATA[Get the unique name for this task attempt.]]>
  66660. </doc>
  66661. </method>
  66662. <method name="setStatus"
  66663. abstract="false" native="false" synchronized="false"
  66664. static="false" final="false" visibility="public"
  66665. deprecated="not deprecated">
  66666. <param name="msg" type="java.lang.String"/>
  66667. <exception name="IOException" type="java.io.IOException"/>
  66668. <doc>
  66669. <![CDATA[Set the current status of the task to the given string.]]>
  66670. </doc>
  66671. </method>
  66672. <method name="getStatus" return="java.lang.String"
  66673. abstract="false" native="false" synchronized="false"
  66674. static="false" final="false" visibility="public"
  66675. deprecated="not deprecated">
  66676. <doc>
  66677. <![CDATA[Get the last set status message.
  66678. @return the current status message]]>
  66679. </doc>
  66680. </method>
  66681. <method name="progress"
  66682. abstract="false" native="false" synchronized="false"
  66683. static="false" final="false" visibility="public"
  66684. deprecated="not deprecated">
  66685. <doc>
  66686. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  66687. </doc>
  66688. </method>
  66689. <doc>
  66690. <![CDATA[The context for task attempts.]]>
  66691. </doc>
  66692. </class>
  66693. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  66694. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  66695. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  66696. abstract="false"
  66697. static="false" final="false" visibility="public"
  66698. deprecated="not deprecated">
  66699. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  66700. static="false" final="false" visibility="public"
  66701. deprecated="not deprecated">
  66702. <doc>
  66703. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  66704. @param taskId TaskID that this task belongs to
  66705. @param id the task attempt number]]>
  66706. </doc>
  66707. </constructor>
  66708. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  66709. static="false" final="false" visibility="public"
  66710. deprecated="not deprecated">
  66711. <doc>
  66712. <![CDATA[Constructs a TaskId object from given parts.
  66713. @param jtIdentifier jobTracker identifier
  66714. @param jobId job number
  66715. @param isMap whether the tip is a map
  66716. @param taskId taskId number
  66717. @param id the task attempt number]]>
  66718. </doc>
  66719. </constructor>
  66720. <constructor name="TaskAttemptID"
  66721. static="false" final="false" visibility="public"
  66722. deprecated="not deprecated">
  66723. </constructor>
  66724. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  66725. abstract="false" native="false" synchronized="false"
  66726. static="false" final="false" visibility="public"
  66727. deprecated="not deprecated">
  66728. <doc>
  66729. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  66730. </doc>
  66731. </method>
  66732. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  66733. abstract="false" native="false" synchronized="false"
  66734. static="false" final="false" visibility="public"
  66735. deprecated="not deprecated">
  66736. <doc>
  66737. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  66738. </doc>
  66739. </method>
  66740. <method name="isMap" return="boolean"
  66741. abstract="false" native="false" synchronized="false"
  66742. static="false" final="false" visibility="public"
  66743. deprecated="not deprecated">
  66744. <doc>
  66745. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  66746. </doc>
  66747. </method>
  66748. <method name="equals" return="boolean"
  66749. abstract="false" native="false" synchronized="false"
  66750. static="false" final="false" visibility="public"
  66751. deprecated="not deprecated">
  66752. <param name="o" type="java.lang.Object"/>
  66753. </method>
  66754. <method name="appendTo" return="java.lang.StringBuilder"
  66755. abstract="false" native="false" synchronized="false"
  66756. static="false" final="false" visibility="protected"
  66757. deprecated="not deprecated">
  66758. <param name="builder" type="java.lang.StringBuilder"/>
  66759. <doc>
  66760. <![CDATA[Add the unique string to the StringBuilder
  66761. @param builder the builder to append ot
  66762. @return the builder that was passed in.]]>
  66763. </doc>
  66764. </method>
  66765. <method name="readFields"
  66766. abstract="false" native="false" synchronized="false"
  66767. static="false" final="false" visibility="public"
  66768. deprecated="not deprecated">
  66769. <param name="in" type="java.io.DataInput"/>
  66770. <exception name="IOException" type="java.io.IOException"/>
  66771. </method>
  66772. <method name="write"
  66773. abstract="false" native="false" synchronized="false"
  66774. static="false" final="false" visibility="public"
  66775. deprecated="not deprecated">
  66776. <param name="out" type="java.io.DataOutput"/>
  66777. <exception name="IOException" type="java.io.IOException"/>
  66778. </method>
  66779. <method name="hashCode" return="int"
  66780. abstract="false" native="false" synchronized="false"
  66781. static="false" final="false" visibility="public"
  66782. deprecated="not deprecated">
  66783. </method>
  66784. <method name="compareTo" return="int"
  66785. abstract="false" native="false" synchronized="false"
  66786. static="false" final="false" visibility="public"
  66787. deprecated="not deprecated">
  66788. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  66789. <doc>
  66790. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  66791. </doc>
  66792. </method>
  66793. <method name="toString" return="java.lang.String"
  66794. abstract="false" native="false" synchronized="false"
  66795. static="false" final="false" visibility="public"
  66796. deprecated="not deprecated">
  66797. </method>
  66798. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  66799. abstract="false" native="false" synchronized="false"
  66800. static="true" final="false" visibility="public"
  66801. deprecated="not deprecated">
  66802. <param name="str" type="java.lang.String"/>
  66803. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  66804. <doc>
  66805. <![CDATA[Construct a TaskAttemptID object from given string
  66806. @return constructed TaskAttemptID object or null if the given String is null
  66807. @throws IllegalArgumentException if the given string is malformed]]>
  66808. </doc>
  66809. </method>
  66810. <field name="ATTEMPT" type="java.lang.String"
  66811. transient="false" volatile="false"
  66812. static="true" final="true" visibility="protected"
  66813. deprecated="not deprecated">
  66814. </field>
  66815. <doc>
  66816. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  66817. a task attempt. Each task attempt is one particular instance of a Map or
  66818. Reduce Task identified by its TaskID.
  66819. TaskAttemptID consists of 2 parts. First part is the
  66820. {@link TaskID}, that this TaskAttemptID belongs to.
  66821. Second part is the task attempt number. <br>
  66822. An example TaskAttemptID is :
  66823. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  66824. zeroth task attempt for the fifth map task in the third job
  66825. running at the jobtracker started at <code>200707121733</code>.
  66826. <p>
  66827. Applications should never construct or parse TaskAttemptID strings
  66828. , but rather use appropriate constructors or {@link #forName(String)}
  66829. method.
  66830. @see JobID
  66831. @see TaskID]]>
  66832. </doc>
  66833. </class>
  66834. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  66835. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  66836. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  66837. abstract="false"
  66838. static="false" final="false" visibility="public"
  66839. deprecated="not deprecated">
  66840. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  66841. static="false" final="false" visibility="public"
  66842. deprecated="not deprecated">
  66843. <doc>
  66844. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  66845. @param jobId JobID that this tip belongs to
  66846. @param isMap whether the tip is a map
  66847. @param id the tip number]]>
  66848. </doc>
  66849. </constructor>
  66850. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  66851. static="false" final="false" visibility="public"
  66852. deprecated="not deprecated">
  66853. <doc>
  66854. <![CDATA[Constructs a TaskInProgressId object from given parts.
  66855. @param jtIdentifier jobTracker identifier
  66856. @param jobId job number
  66857. @param isMap whether the tip is a map
  66858. @param id the tip number]]>
  66859. </doc>
  66860. </constructor>
  66861. <constructor name="TaskID"
  66862. static="false" final="false" visibility="public"
  66863. deprecated="not deprecated">
  66864. </constructor>
  66865. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  66866. abstract="false" native="false" synchronized="false"
  66867. static="false" final="false" visibility="public"
  66868. deprecated="not deprecated">
  66869. <doc>
  66870. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  66871. </doc>
  66872. </method>
  66873. <method name="isMap" return="boolean"
  66874. abstract="false" native="false" synchronized="false"
  66875. static="false" final="false" visibility="public"
  66876. deprecated="not deprecated">
  66877. <doc>
  66878. <![CDATA[Returns whether this TaskID is a map ID]]>
  66879. </doc>
  66880. </method>
  66881. <method name="equals" return="boolean"
  66882. abstract="false" native="false" synchronized="false"
  66883. static="false" final="false" visibility="public"
  66884. deprecated="not deprecated">
  66885. <param name="o" type="java.lang.Object"/>
  66886. </method>
  66887. <method name="compareTo" return="int"
  66888. abstract="false" native="false" synchronized="false"
  66889. static="false" final="false" visibility="public"
  66890. deprecated="not deprecated">
  66891. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  66892. <doc>
  66893. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  66894. defined as greater then maps.]]>
  66895. </doc>
  66896. </method>
  66897. <method name="toString" return="java.lang.String"
  66898. abstract="false" native="false" synchronized="false"
  66899. static="false" final="false" visibility="public"
  66900. deprecated="not deprecated">
  66901. </method>
  66902. <method name="appendTo" return="java.lang.StringBuilder"
  66903. abstract="false" native="false" synchronized="false"
  66904. static="false" final="false" visibility="protected"
  66905. deprecated="not deprecated">
  66906. <param name="builder" type="java.lang.StringBuilder"/>
  66907. <doc>
  66908. <![CDATA[Add the unique string to the given builder.
  66909. @param builder the builder to append to
  66910. @return the builder that was passed in]]>
  66911. </doc>
  66912. </method>
  66913. <method name="hashCode" return="int"
  66914. abstract="false" native="false" synchronized="false"
  66915. static="false" final="false" visibility="public"
  66916. deprecated="not deprecated">
  66917. </method>
  66918. <method name="readFields"
  66919. abstract="false" native="false" synchronized="false"
  66920. static="false" final="false" visibility="public"
  66921. deprecated="not deprecated">
  66922. <param name="in" type="java.io.DataInput"/>
  66923. <exception name="IOException" type="java.io.IOException"/>
  66924. </method>
  66925. <method name="write"
  66926. abstract="false" native="false" synchronized="false"
  66927. static="false" final="false" visibility="public"
  66928. deprecated="not deprecated">
  66929. <param name="out" type="java.io.DataOutput"/>
  66930. <exception name="IOException" type="java.io.IOException"/>
  66931. </method>
  66932. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  66933. abstract="false" native="false" synchronized="false"
  66934. static="true" final="false" visibility="public"
  66935. deprecated="not deprecated">
  66936. <param name="str" type="java.lang.String"/>
  66937. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  66938. <doc>
  66939. <![CDATA[Construct a TaskID object from given string
  66940. @return constructed TaskID object or null if the given String is null
  66941. @throws IllegalArgumentException if the given string is malformed]]>
  66942. </doc>
  66943. </method>
  66944. <field name="TASK" type="java.lang.String"
  66945. transient="false" volatile="false"
  66946. static="true" final="true" visibility="protected"
  66947. deprecated="not deprecated">
  66948. </field>
  66949. <field name="idFormat" type="java.text.NumberFormat"
  66950. transient="false" volatile="false"
  66951. static="true" final="true" visibility="protected"
  66952. deprecated="not deprecated">
  66953. </field>
  66954. <doc>
  66955. <![CDATA[TaskID represents the immutable and unique identifier for
  66956. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  66957. execute the Map or Reduce Task, each of which are uniquely indentified by
  66958. their TaskAttemptID.
  66959. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  66960. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  66961. representing whether the task is a map task or a reduce task.
  66962. And the third part is the task number. <br>
  66963. An example TaskID is :
  66964. <code>task_200707121733_0003_m_000005</code> , which represents the
  66965. fifth map task in the third job running at the jobtracker
  66966. started at <code>200707121733</code>.
  66967. <p>
  66968. Applications should never construct or parse TaskID strings
  66969. , but rather use appropriate constructors or {@link #forName(String)}
  66970. method.
  66971. @see JobID
  66972. @see TaskAttemptID]]>
  66973. </doc>
  66974. </class>
  66975. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  66976. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  66977. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  66978. abstract="true"
  66979. static="false" final="false" visibility="public"
  66980. deprecated="not deprecated">
  66981. <implements name="org.apache.hadoop.util.Progressable"/>
  66982. <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"
  66983. static="false" final="false" visibility="public"
  66984. deprecated="not deprecated">
  66985. </constructor>
  66986. <method name="nextKeyValue" return="boolean"
  66987. abstract="true" native="false" synchronized="false"
  66988. static="false" final="false" visibility="public"
  66989. deprecated="not deprecated">
  66990. <exception name="IOException" type="java.io.IOException"/>
  66991. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66992. <doc>
  66993. <![CDATA[Advance to the next key, value pair, returning null if at end.
  66994. @return the key object that was read into, or null if no more]]>
  66995. </doc>
  66996. </method>
  66997. <method name="getCurrentKey" return="java.lang.Object"
  66998. abstract="true" native="false" synchronized="false"
  66999. static="false" final="false" visibility="public"
  67000. deprecated="not deprecated">
  67001. <exception name="IOException" type="java.io.IOException"/>
  67002. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67003. <doc>
  67004. <![CDATA[Get the current key.
  67005. @return the current key object or null if there isn't one
  67006. @throws IOException
  67007. @throws InterruptedException]]>
  67008. </doc>
  67009. </method>
  67010. <method name="getCurrentValue" return="java.lang.Object"
  67011. abstract="true" native="false" synchronized="false"
  67012. static="false" final="false" visibility="public"
  67013. deprecated="not deprecated">
  67014. <exception name="IOException" type="java.io.IOException"/>
  67015. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67016. <doc>
  67017. <![CDATA[Get the current value.
  67018. @return the value object that was read into
  67019. @throws IOException
  67020. @throws InterruptedException]]>
  67021. </doc>
  67022. </method>
  67023. <method name="write"
  67024. abstract="false" native="false" synchronized="false"
  67025. static="false" final="false" visibility="public"
  67026. deprecated="not deprecated">
  67027. <param name="key" type="java.lang.Object"/>
  67028. <param name="value" type="java.lang.Object"/>
  67029. <exception name="IOException" type="java.io.IOException"/>
  67030. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67031. <doc>
  67032. <![CDATA[Generate an output key/value pair.]]>
  67033. </doc>
  67034. </method>
  67035. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  67036. abstract="false" native="false" synchronized="false"
  67037. static="false" final="false" visibility="public"
  67038. deprecated="not deprecated">
  67039. <param name="counterName" type="java.lang.Enum"/>
  67040. </method>
  67041. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  67042. abstract="false" native="false" synchronized="false"
  67043. static="false" final="false" visibility="public"
  67044. deprecated="not deprecated">
  67045. <param name="groupName" type="java.lang.String"/>
  67046. <param name="counterName" type="java.lang.String"/>
  67047. </method>
  67048. <method name="progress"
  67049. abstract="false" native="false" synchronized="false"
  67050. static="false" final="false" visibility="public"
  67051. deprecated="not deprecated">
  67052. </method>
  67053. <method name="setStatus"
  67054. abstract="false" native="false" synchronized="false"
  67055. static="false" final="false" visibility="public"
  67056. deprecated="not deprecated">
  67057. <param name="status" type="java.lang.String"/>
  67058. </method>
  67059. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  67060. abstract="false" native="false" synchronized="false"
  67061. static="false" final="false" visibility="public"
  67062. deprecated="not deprecated">
  67063. </method>
  67064. <doc>
  67065. <![CDATA[A context object that allows input and output from the task. It is only
  67066. supplied to the {@link Mapper} or {@link Reducer}.
  67067. @param <KEYIN> the input key type for the task
  67068. @param <VALUEIN> the input value type for the task
  67069. @param <KEYOUT> the output key type for the task
  67070. @param <VALUEOUT> the output value type for the task]]>
  67071. </doc>
  67072. </class>
  67073. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  67074. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  67075. <class name="TaskType" extends="java.lang.Enum"
  67076. abstract="false"
  67077. static="false" final="true" visibility="public"
  67078. deprecated="not deprecated">
  67079. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  67080. abstract="false" native="false" synchronized="false"
  67081. static="true" final="false" visibility="public"
  67082. deprecated="not deprecated">
  67083. </method>
  67084. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  67085. abstract="false" native="false" synchronized="false"
  67086. static="true" final="false" visibility="public"
  67087. deprecated="not deprecated">
  67088. <param name="name" type="java.lang.String"/>
  67089. </method>
  67090. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  67091. transient="false" volatile="false"
  67092. static="true" final="true" visibility="public"
  67093. deprecated="not deprecated">
  67094. </field>
  67095. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  67096. transient="false" volatile="false"
  67097. static="true" final="true" visibility="public"
  67098. deprecated="not deprecated">
  67099. </field>
  67100. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  67101. transient="false" volatile="false"
  67102. static="true" final="true" visibility="public"
  67103. deprecated="not deprecated">
  67104. </field>
  67105. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  67106. transient="false" volatile="false"
  67107. static="true" final="true" visibility="public"
  67108. deprecated="not deprecated">
  67109. </field>
  67110. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  67111. transient="false" volatile="false"
  67112. static="true" final="true" visibility="public"
  67113. deprecated="not deprecated">
  67114. </field>
  67115. <doc>
  67116. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  67117. </doc>
  67118. </class>
  67119. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  67120. </package>
  67121. <package name="org.apache.hadoop.mapreduce.lib.db">
  67122. <!-- start class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  67123. <class name="BigDecimalSplitter" extends="java.lang.Object"
  67124. abstract="false"
  67125. static="false" final="false" visibility="public"
  67126. deprecated="not deprecated">
  67127. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  67128. <constructor name="BigDecimalSplitter"
  67129. static="false" final="false" visibility="public"
  67130. deprecated="not deprecated">
  67131. </constructor>
  67132. <method name="split" return="java.util.List"
  67133. abstract="false" native="false" synchronized="false"
  67134. static="false" final="false" visibility="public"
  67135. deprecated="not deprecated">
  67136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67137. <param name="results" type="java.sql.ResultSet"/>
  67138. <param name="colName" type="java.lang.String"/>
  67139. <exception name="SQLException" type="java.sql.SQLException"/>
  67140. </method>
  67141. <method name="tryDivide" return="java.math.BigDecimal"
  67142. abstract="false" native="false" synchronized="false"
  67143. static="false" final="false" visibility="protected"
  67144. deprecated="not deprecated">
  67145. <param name="numerator" type="java.math.BigDecimal"/>
  67146. <param name="denominator" type="java.math.BigDecimal"/>
  67147. <doc>
  67148. <![CDATA[Divide numerator by denominator. If impossible in exact mode, use rounding.]]>
  67149. </doc>
  67150. </method>
  67151. <doc>
  67152. <![CDATA[Implement DBSplitter over BigDecimal values.]]>
  67153. </doc>
  67154. </class>
  67155. <!-- end class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  67156. <!-- start class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  67157. <class name="BooleanSplitter" extends="java.lang.Object"
  67158. abstract="false"
  67159. static="false" final="false" visibility="public"
  67160. deprecated="not deprecated">
  67161. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  67162. <constructor name="BooleanSplitter"
  67163. static="false" final="false" visibility="public"
  67164. deprecated="not deprecated">
  67165. </constructor>
  67166. <method name="split" return="java.util.List"
  67167. abstract="false" native="false" synchronized="false"
  67168. static="false" final="false" visibility="public"
  67169. deprecated="not deprecated">
  67170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67171. <param name="results" type="java.sql.ResultSet"/>
  67172. <param name="colName" type="java.lang.String"/>
  67173. <exception name="SQLException" type="java.sql.SQLException"/>
  67174. </method>
  67175. <doc>
  67176. <![CDATA[Implement DBSplitter over boolean values.]]>
  67177. </doc>
  67178. </class>
  67179. <!-- end class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  67180. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  67181. <class name="DataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat"
  67182. abstract="false"
  67183. static="false" final="false" visibility="public"
  67184. deprecated="not deprecated">
  67185. <implements name="org.apache.hadoop.conf.Configurable"/>
  67186. <constructor name="DataDrivenDBInputFormat"
  67187. static="false" final="false" visibility="public"
  67188. deprecated="not deprecated">
  67189. </constructor>
  67190. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  67191. abstract="false" native="false" synchronized="false"
  67192. static="false" final="false" visibility="protected"
  67193. deprecated="not deprecated">
  67194. <param name="sqlDataType" type="int"/>
  67195. <doc>
  67196. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  67197. </doc>
  67198. </method>
  67199. <method name="getSplits" return="java.util.List"
  67200. abstract="false" native="false" synchronized="false"
  67201. static="false" final="false" visibility="public"
  67202. deprecated="not deprecated">
  67203. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67204. <exception name="IOException" type="java.io.IOException"/>
  67205. <doc>
  67206. <![CDATA[{@inheritDoc}]]>
  67207. </doc>
  67208. </method>
  67209. <method name="getBoundingValsQuery" return="java.lang.String"
  67210. abstract="false" native="false" synchronized="false"
  67211. static="false" final="false" visibility="protected"
  67212. deprecated="not deprecated">
  67213. <doc>
  67214. <![CDATA[@return a query which returns the minimum and maximum values for
  67215. the order-by column.
  67216. The min value should be in the first column, and the
  67217. max value should be in the second column of the results.]]>
  67218. </doc>
  67219. </method>
  67220. <method name="setBoundingQuery"
  67221. abstract="false" native="false" synchronized="false"
  67222. static="true" final="false" visibility="public"
  67223. deprecated="not deprecated">
  67224. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67225. <param name="query" type="java.lang.String"/>
  67226. <doc>
  67227. <![CDATA[Set the user-defined bounding query to use with a user-defined query.
  67228. This *must* include the substring "$CONDITIONS"
  67229. (DataDrivenDBInputFormat.SUBSTITUTE_TOKEN) inside the WHERE clause,
  67230. so that DataDrivenDBInputFormat knows where to insert split clauses.
  67231. e.g., "SELECT foo FROM mytable WHERE $CONDITIONS"
  67232. This will be expanded to something like:
  67233. SELECT foo FROM mytable WHERE (id &gt; 100) AND (id &lt; 250)
  67234. inside each split.]]>
  67235. </doc>
  67236. </method>
  67237. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67238. abstract="false" native="false" synchronized="false"
  67239. static="false" final="false" visibility="protected"
  67240. deprecated="not deprecated">
  67241. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  67242. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67243. <exception name="IOException" type="java.io.IOException"/>
  67244. </method>
  67245. <method name="setInput"
  67246. abstract="false" native="false" synchronized="false"
  67247. static="true" final="false" visibility="public"
  67248. deprecated="not deprecated">
  67249. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67250. <param name="inputClass" type="java.lang.Class"/>
  67251. <param name="tableName" type="java.lang.String"/>
  67252. <param name="conditions" type="java.lang.String"/>
  67253. <param name="splitBy" type="java.lang.String"/>
  67254. <param name="fieldNames" type="java.lang.String[]"/>
  67255. <doc>
  67256. <![CDATA[Note that the "orderBy" column is called the "splitBy" in this version.
  67257. We reuse the same field, but it's not strictly ordering it -- just partitioning
  67258. the results.]]>
  67259. </doc>
  67260. </method>
  67261. <method name="setInput"
  67262. abstract="false" native="false" synchronized="false"
  67263. static="true" final="false" visibility="public"
  67264. deprecated="not deprecated">
  67265. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67266. <param name="inputClass" type="java.lang.Class"/>
  67267. <param name="inputQuery" type="java.lang.String"/>
  67268. <param name="inputBoundingQuery" type="java.lang.String"/>
  67269. <doc>
  67270. <![CDATA[setInput() takes a custom query and a separate "bounding query" to use
  67271. instead of the custom "count query" used by DBInputFormat.]]>
  67272. </doc>
  67273. </method>
  67274. <field name="SUBSTITUTE_TOKEN" type="java.lang.String"
  67275. transient="false" volatile="false"
  67276. static="true" final="true" visibility="public"
  67277. deprecated="not deprecated">
  67278. <doc>
  67279. <![CDATA[If users are providing their own query, the following string is expected to
  67280. appear in the WHERE clause, which will be substituted with a pair of conditions
  67281. on the input to allow input splits to parallelise the import.]]>
  67282. </doc>
  67283. </field>
  67284. <doc>
  67285. <![CDATA[A InputFormat that reads input data from an SQL table.
  67286. Operates like DBInputFormat, but instead of using LIMIT and OFFSET to demarcate
  67287. splits, it tries to generate WHERE clauses which separate the data into roughly
  67288. equivalent shards.]]>
  67289. </doc>
  67290. </class>
  67291. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  67292. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  67293. <class name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  67294. abstract="false"
  67295. static="true" final="false" visibility="public"
  67296. deprecated="not deprecated">
  67297. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit"
  67298. static="false" final="false" visibility="public"
  67299. deprecated="not deprecated">
  67300. <doc>
  67301. <![CDATA[Default Constructor]]>
  67302. </doc>
  67303. </constructor>
  67304. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" type="java.lang.String, java.lang.String"
  67305. static="false" final="false" visibility="public"
  67306. deprecated="not deprecated">
  67307. <doc>
  67308. <![CDATA[Convenience Constructor
  67309. @param lower the string to be put in the WHERE clause to guard on the 'lower' end
  67310. @param upper the string to be put in the WHERE clause to guard on the 'upper' end]]>
  67311. </doc>
  67312. </constructor>
  67313. <method name="getLength" return="long"
  67314. abstract="false" native="false" synchronized="false"
  67315. static="false" final="false" visibility="public"
  67316. deprecated="not deprecated">
  67317. <exception name="IOException" type="java.io.IOException"/>
  67318. <doc>
  67319. <![CDATA[@return The total row count in this split]]>
  67320. </doc>
  67321. </method>
  67322. <method name="readFields"
  67323. abstract="false" native="false" synchronized="false"
  67324. static="false" final="false" visibility="public"
  67325. deprecated="not deprecated">
  67326. <param name="input" type="java.io.DataInput"/>
  67327. <exception name="IOException" type="java.io.IOException"/>
  67328. <doc>
  67329. <![CDATA[{@inheritDoc}]]>
  67330. </doc>
  67331. </method>
  67332. <method name="write"
  67333. abstract="false" native="false" synchronized="false"
  67334. static="false" final="false" visibility="public"
  67335. deprecated="not deprecated">
  67336. <param name="output" type="java.io.DataOutput"/>
  67337. <exception name="IOException" type="java.io.IOException"/>
  67338. <doc>
  67339. <![CDATA[{@inheritDoc}]]>
  67340. </doc>
  67341. </method>
  67342. <method name="getLowerClause" return="java.lang.String"
  67343. abstract="false" native="false" synchronized="false"
  67344. static="false" final="false" visibility="public"
  67345. deprecated="not deprecated">
  67346. </method>
  67347. <method name="getUpperClause" return="java.lang.String"
  67348. abstract="false" native="false" synchronized="false"
  67349. static="false" final="false" visibility="public"
  67350. deprecated="not deprecated">
  67351. </method>
  67352. <doc>
  67353. <![CDATA[A InputSplit that spans a set of rows]]>
  67354. </doc>
  67355. </class>
  67356. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  67357. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  67358. <class name="DataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  67359. abstract="false"
  67360. static="false" final="false" visibility="public"
  67361. deprecated="not deprecated">
  67362. <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"
  67363. static="false" final="false" visibility="public"
  67364. deprecated="not deprecated">
  67365. <exception name="SQLException" type="java.sql.SQLException"/>
  67366. <doc>
  67367. <![CDATA[@param split The InputSplit to read data for
  67368. @throws SQLException]]>
  67369. </doc>
  67370. </constructor>
  67371. <method name="getSelectQuery" return="java.lang.String"
  67372. abstract="false" native="false" synchronized="false"
  67373. static="false" final="false" visibility="protected"
  67374. deprecated="not deprecated">
  67375. <doc>
  67376. <![CDATA[Returns the query for selecting the records,
  67377. subclasses can override this for custom behaviour.]]>
  67378. </doc>
  67379. </method>
  67380. <doc>
  67381. <![CDATA[A RecordReader that reads records from a SQL table,
  67382. using data-driven WHERE clause splits.
  67383. Emits LongWritables containing the record number as
  67384. key and DBWritables as value.]]>
  67385. </doc>
  67386. </class>
  67387. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  67388. <!-- start class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  67389. <class name="DateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.IntegerSplitter"
  67390. abstract="false"
  67391. static="false" final="false" visibility="public"
  67392. deprecated="not deprecated">
  67393. <constructor name="DateSplitter"
  67394. static="false" final="false" visibility="public"
  67395. deprecated="not deprecated">
  67396. </constructor>
  67397. <method name="split" return="java.util.List"
  67398. abstract="false" native="false" synchronized="false"
  67399. static="false" final="false" visibility="public"
  67400. deprecated="not deprecated">
  67401. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67402. <param name="results" type="java.sql.ResultSet"/>
  67403. <param name="colName" type="java.lang.String"/>
  67404. <exception name="SQLException" type="java.sql.SQLException"/>
  67405. </method>
  67406. <method name="dateToString" return="java.lang.String"
  67407. abstract="false" native="false" synchronized="false"
  67408. static="false" final="false" visibility="protected"
  67409. deprecated="not deprecated">
  67410. <param name="d" type="java.util.Date"/>
  67411. <doc>
  67412. <![CDATA[Given a Date 'd', format it as a string for use in a SQL date
  67413. comparison operation.
  67414. @param d the date to format.
  67415. @return the string representing this date in SQL with any appropriate
  67416. quotation characters, etc.]]>
  67417. </doc>
  67418. </method>
  67419. <doc>
  67420. <![CDATA[Implement DBSplitter over date/time values.
  67421. Make use of logic from IntegerSplitter, since date/time are just longs
  67422. in Java.]]>
  67423. </doc>
  67424. </class>
  67425. <!-- end class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  67426. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  67427. <class name="DBConfiguration" extends="java.lang.Object"
  67428. abstract="false"
  67429. static="false" final="false" visibility="public"
  67430. deprecated="not deprecated">
  67431. <constructor name="DBConfiguration" type="org.apache.hadoop.conf.Configuration"
  67432. static="false" final="false" visibility="public"
  67433. deprecated="not deprecated">
  67434. </constructor>
  67435. <method name="configureDB"
  67436. abstract="false" native="false" synchronized="false"
  67437. static="true" final="false" visibility="public"
  67438. deprecated="not deprecated">
  67439. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67440. <param name="driverClass" type="java.lang.String"/>
  67441. <param name="dbUrl" type="java.lang.String"/>
  67442. <param name="userName" type="java.lang.String"/>
  67443. <param name="passwd" type="java.lang.String"/>
  67444. <doc>
  67445. <![CDATA[Sets the DB access related fields in the {@link Configuration}.
  67446. @param conf the configuration
  67447. @param driverClass JDBC Driver class name
  67448. @param dbUrl JDBC DB access URL.
  67449. @param userName DB access username
  67450. @param passwd DB access passwd]]>
  67451. </doc>
  67452. </method>
  67453. <method name="configureDB"
  67454. abstract="false" native="false" synchronized="false"
  67455. static="true" final="false" visibility="public"
  67456. deprecated="not deprecated">
  67457. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  67458. <param name="driverClass" type="java.lang.String"/>
  67459. <param name="dbUrl" type="java.lang.String"/>
  67460. <doc>
  67461. <![CDATA[Sets the DB access related fields in the JobConf.
  67462. @param job the job
  67463. @param driverClass JDBC Driver class name
  67464. @param dbUrl JDBC DB access URL.]]>
  67465. </doc>
  67466. </method>
  67467. <method name="getConnection" return="java.sql.Connection"
  67468. abstract="false" native="false" synchronized="false"
  67469. static="false" final="false" visibility="public"
  67470. deprecated="not deprecated">
  67471. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67472. <exception name="SQLException" type="java.sql.SQLException"/>
  67473. <doc>
  67474. <![CDATA[Returns a connection object o the DB
  67475. @throws ClassNotFoundException
  67476. @throws SQLException]]>
  67477. </doc>
  67478. </method>
  67479. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  67480. abstract="false" native="false" synchronized="false"
  67481. static="false" final="false" visibility="public"
  67482. deprecated="not deprecated">
  67483. </method>
  67484. <method name="getInputTableName" return="java.lang.String"
  67485. abstract="false" native="false" synchronized="false"
  67486. static="false" final="false" visibility="public"
  67487. deprecated="not deprecated">
  67488. </method>
  67489. <method name="setInputTableName"
  67490. abstract="false" native="false" synchronized="false"
  67491. static="false" final="false" visibility="public"
  67492. deprecated="not deprecated">
  67493. <param name="tableName" type="java.lang.String"/>
  67494. </method>
  67495. <method name="getInputFieldNames" return="java.lang.String[]"
  67496. abstract="false" native="false" synchronized="false"
  67497. static="false" final="false" visibility="public"
  67498. deprecated="not deprecated">
  67499. </method>
  67500. <method name="setInputFieldNames"
  67501. abstract="false" native="false" synchronized="false"
  67502. static="false" final="false" visibility="public"
  67503. deprecated="not deprecated">
  67504. <param name="fieldNames" type="java.lang.String[]"/>
  67505. </method>
  67506. <method name="getInputConditions" return="java.lang.String"
  67507. abstract="false" native="false" synchronized="false"
  67508. static="false" final="false" visibility="public"
  67509. deprecated="not deprecated">
  67510. </method>
  67511. <method name="setInputConditions"
  67512. abstract="false" native="false" synchronized="false"
  67513. static="false" final="false" visibility="public"
  67514. deprecated="not deprecated">
  67515. <param name="conditions" type="java.lang.String"/>
  67516. </method>
  67517. <method name="getInputOrderBy" return="java.lang.String"
  67518. abstract="false" native="false" synchronized="false"
  67519. static="false" final="false" visibility="public"
  67520. deprecated="not deprecated">
  67521. </method>
  67522. <method name="setInputOrderBy"
  67523. abstract="false" native="false" synchronized="false"
  67524. static="false" final="false" visibility="public"
  67525. deprecated="not deprecated">
  67526. <param name="orderby" type="java.lang.String"/>
  67527. </method>
  67528. <method name="getInputQuery" return="java.lang.String"
  67529. abstract="false" native="false" synchronized="false"
  67530. static="false" final="false" visibility="public"
  67531. deprecated="not deprecated">
  67532. </method>
  67533. <method name="setInputQuery"
  67534. abstract="false" native="false" synchronized="false"
  67535. static="false" final="false" visibility="public"
  67536. deprecated="not deprecated">
  67537. <param name="query" type="java.lang.String"/>
  67538. </method>
  67539. <method name="getInputCountQuery" return="java.lang.String"
  67540. abstract="false" native="false" synchronized="false"
  67541. static="false" final="false" visibility="public"
  67542. deprecated="not deprecated">
  67543. </method>
  67544. <method name="setInputCountQuery"
  67545. abstract="false" native="false" synchronized="false"
  67546. static="false" final="false" visibility="public"
  67547. deprecated="not deprecated">
  67548. <param name="query" type="java.lang.String"/>
  67549. </method>
  67550. <method name="setInputBoundingQuery"
  67551. abstract="false" native="false" synchronized="false"
  67552. static="false" final="false" visibility="public"
  67553. deprecated="not deprecated">
  67554. <param name="query" type="java.lang.String"/>
  67555. </method>
  67556. <method name="getInputBoundingQuery" return="java.lang.String"
  67557. abstract="false" native="false" synchronized="false"
  67558. static="false" final="false" visibility="public"
  67559. deprecated="not deprecated">
  67560. </method>
  67561. <method name="getInputClass" return="java.lang.Class"
  67562. abstract="false" native="false" synchronized="false"
  67563. static="false" final="false" visibility="public"
  67564. deprecated="not deprecated">
  67565. </method>
  67566. <method name="setInputClass"
  67567. abstract="false" native="false" synchronized="false"
  67568. static="false" final="false" visibility="public"
  67569. deprecated="not deprecated">
  67570. <param name="inputClass" type="java.lang.Class"/>
  67571. </method>
  67572. <method name="getOutputTableName" return="java.lang.String"
  67573. abstract="false" native="false" synchronized="false"
  67574. static="false" final="false" visibility="public"
  67575. deprecated="not deprecated">
  67576. </method>
  67577. <method name="setOutputTableName"
  67578. abstract="false" native="false" synchronized="false"
  67579. static="false" final="false" visibility="public"
  67580. deprecated="not deprecated">
  67581. <param name="tableName" type="java.lang.String"/>
  67582. </method>
  67583. <method name="getOutputFieldNames" return="java.lang.String[]"
  67584. abstract="false" native="false" synchronized="false"
  67585. static="false" final="false" visibility="public"
  67586. deprecated="not deprecated">
  67587. </method>
  67588. <method name="setOutputFieldNames"
  67589. abstract="false" native="false" synchronized="false"
  67590. static="false" final="false" visibility="public"
  67591. deprecated="not deprecated">
  67592. <param name="fieldNames" type="java.lang.String[]"/>
  67593. </method>
  67594. <method name="setOutputFieldCount"
  67595. abstract="false" native="false" synchronized="false"
  67596. static="false" final="false" visibility="public"
  67597. deprecated="not deprecated">
  67598. <param name="fieldCount" type="int"/>
  67599. </method>
  67600. <method name="getOutputFieldCount" return="int"
  67601. abstract="false" native="false" synchronized="false"
  67602. static="false" final="false" visibility="public"
  67603. deprecated="not deprecated">
  67604. </method>
  67605. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  67606. transient="false" volatile="false"
  67607. static="true" final="true" visibility="public"
  67608. deprecated="not deprecated">
  67609. <doc>
  67610. <![CDATA[The JDBC Driver class name]]>
  67611. </doc>
  67612. </field>
  67613. <field name="URL_PROPERTY" type="java.lang.String"
  67614. transient="false" volatile="false"
  67615. static="true" final="true" visibility="public"
  67616. deprecated="not deprecated">
  67617. <doc>
  67618. <![CDATA[JDBC Database access URL]]>
  67619. </doc>
  67620. </field>
  67621. <field name="USERNAME_PROPERTY" type="java.lang.String"
  67622. transient="false" volatile="false"
  67623. static="true" final="true" visibility="public"
  67624. deprecated="not deprecated">
  67625. <doc>
  67626. <![CDATA[User name to access the database]]>
  67627. </doc>
  67628. </field>
  67629. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  67630. transient="false" volatile="false"
  67631. static="true" final="true" visibility="public"
  67632. deprecated="not deprecated">
  67633. <doc>
  67634. <![CDATA[Password to access the database]]>
  67635. </doc>
  67636. </field>
  67637. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  67638. transient="false" volatile="false"
  67639. static="true" final="true" visibility="public"
  67640. deprecated="not deprecated">
  67641. <doc>
  67642. <![CDATA[Input table name]]>
  67643. </doc>
  67644. </field>
  67645. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  67646. transient="false" volatile="false"
  67647. static="true" final="true" visibility="public"
  67648. deprecated="not deprecated">
  67649. <doc>
  67650. <![CDATA[Field names in the Input table]]>
  67651. </doc>
  67652. </field>
  67653. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  67654. transient="false" volatile="false"
  67655. static="true" final="true" visibility="public"
  67656. deprecated="not deprecated">
  67657. <doc>
  67658. <![CDATA[WHERE clause in the input SELECT statement]]>
  67659. </doc>
  67660. </field>
  67661. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  67662. transient="false" volatile="false"
  67663. static="true" final="true" visibility="public"
  67664. deprecated="not deprecated">
  67665. <doc>
  67666. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  67667. </doc>
  67668. </field>
  67669. <field name="INPUT_QUERY" type="java.lang.String"
  67670. transient="false" volatile="false"
  67671. static="true" final="true" visibility="public"
  67672. deprecated="not deprecated">
  67673. <doc>
  67674. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  67675. </doc>
  67676. </field>
  67677. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  67678. transient="false" volatile="false"
  67679. static="true" final="true" visibility="public"
  67680. deprecated="not deprecated">
  67681. <doc>
  67682. <![CDATA[Input query to get the count of records]]>
  67683. </doc>
  67684. </field>
  67685. <field name="INPUT_BOUNDING_QUERY" type="java.lang.String"
  67686. transient="false" volatile="false"
  67687. static="true" final="true" visibility="public"
  67688. deprecated="not deprecated">
  67689. <doc>
  67690. <![CDATA[Input query to get the max and min values of the jdbc.input.query]]>
  67691. </doc>
  67692. </field>
  67693. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  67694. transient="false" volatile="false"
  67695. static="true" final="true" visibility="public"
  67696. deprecated="not deprecated">
  67697. <doc>
  67698. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  67699. </doc>
  67700. </field>
  67701. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  67702. transient="false" volatile="false"
  67703. static="true" final="true" visibility="public"
  67704. deprecated="not deprecated">
  67705. <doc>
  67706. <![CDATA[Output table name]]>
  67707. </doc>
  67708. </field>
  67709. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  67710. transient="false" volatile="false"
  67711. static="true" final="true" visibility="public"
  67712. deprecated="not deprecated">
  67713. <doc>
  67714. <![CDATA[Field names in the Output table]]>
  67715. </doc>
  67716. </field>
  67717. <field name="OUTPUT_FIELD_COUNT_PROPERTY" type="java.lang.String"
  67718. transient="false" volatile="false"
  67719. static="true" final="true" visibility="public"
  67720. deprecated="not deprecated">
  67721. <doc>
  67722. <![CDATA[Number of fields in the Output table]]>
  67723. </doc>
  67724. </field>
  67725. <doc>
  67726. <![CDATA[A container for configuration property names for jobs with DB input/output.
  67727. The job can be configured using the static methods in this class,
  67728. {@link DBInputFormat}, and {@link DBOutputFormat}.
  67729. Alternatively, the properties can be set in the configuration with proper
  67730. values.
  67731. @see DBConfiguration#configureDB(Configuration, String, String, String, String)
  67732. @see DBInputFormat#setInput(Job, Class, String, String)
  67733. @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
  67734. @see DBOutputFormat#setOutput(Job, String, String...)]]>
  67735. </doc>
  67736. </class>
  67737. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  67738. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  67739. <class name="DBInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  67740. abstract="false"
  67741. static="false" final="false" visibility="public"
  67742. deprecated="not deprecated">
  67743. <implements name="org.apache.hadoop.conf.Configurable"/>
  67744. <constructor name="DBInputFormat"
  67745. static="false" final="false" visibility="public"
  67746. deprecated="not deprecated">
  67747. </constructor>
  67748. <method name="setConf"
  67749. abstract="false" native="false" synchronized="false"
  67750. static="false" final="false" visibility="public"
  67751. deprecated="not deprecated">
  67752. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67753. <doc>
  67754. <![CDATA[{@inheritDoc}]]>
  67755. </doc>
  67756. </method>
  67757. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  67758. abstract="false" native="false" synchronized="false"
  67759. static="false" final="false" visibility="public"
  67760. deprecated="not deprecated">
  67761. </method>
  67762. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  67763. abstract="false" native="false" synchronized="false"
  67764. static="false" final="false" visibility="public"
  67765. deprecated="not deprecated">
  67766. </method>
  67767. <method name="getConnection" return="java.sql.Connection"
  67768. abstract="false" native="false" synchronized="false"
  67769. static="false" final="false" visibility="public"
  67770. deprecated="not deprecated">
  67771. </method>
  67772. <method name="getDBProductName" return="java.lang.String"
  67773. abstract="false" native="false" synchronized="false"
  67774. static="false" final="false" visibility="public"
  67775. deprecated="not deprecated">
  67776. </method>
  67777. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67778. abstract="false" native="false" synchronized="false"
  67779. static="false" final="false" visibility="protected"
  67780. deprecated="not deprecated">
  67781. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  67782. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67783. <exception name="IOException" type="java.io.IOException"/>
  67784. </method>
  67785. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67786. abstract="false" native="false" synchronized="false"
  67787. static="false" final="false" visibility="public"
  67788. deprecated="not deprecated">
  67789. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67790. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67791. <exception name="IOException" type="java.io.IOException"/>
  67792. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67793. <doc>
  67794. <![CDATA[{@inheritDoc}]]>
  67795. </doc>
  67796. </method>
  67797. <method name="getSplits" return="java.util.List"
  67798. abstract="false" native="false" synchronized="false"
  67799. static="false" final="false" visibility="public"
  67800. deprecated="not deprecated">
  67801. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67802. <exception name="IOException" type="java.io.IOException"/>
  67803. <doc>
  67804. <![CDATA[{@inheritDoc}]]>
  67805. </doc>
  67806. </method>
  67807. <method name="getCountQuery" return="java.lang.String"
  67808. abstract="false" native="false" synchronized="false"
  67809. static="false" final="false" visibility="protected"
  67810. deprecated="not deprecated">
  67811. <doc>
  67812. <![CDATA[Returns the query for getting the total number of rows,
  67813. subclasses can override this for custom behaviour.]]>
  67814. </doc>
  67815. </method>
  67816. <method name="setInput"
  67817. abstract="false" native="false" synchronized="false"
  67818. static="true" final="false" visibility="public"
  67819. deprecated="not deprecated">
  67820. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67821. <param name="inputClass" type="java.lang.Class"/>
  67822. <param name="tableName" type="java.lang.String"/>
  67823. <param name="conditions" type="java.lang.String"/>
  67824. <param name="orderBy" type="java.lang.String"/>
  67825. <param name="fieldNames" type="java.lang.String[]"/>
  67826. <doc>
  67827. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  67828. @param job The map-reduce job
  67829. @param inputClass the class object implementing DBWritable, which is the
  67830. Java object holding tuple fields.
  67831. @param tableName The table to read data from
  67832. @param conditions The condition which to select data with,
  67833. eg. '(updated > 20070101 AND length > 0)'
  67834. @param orderBy the fieldNames in the orderBy clause.
  67835. @param fieldNames The field names in the table
  67836. @see #setInput(Job, Class, String, String)]]>
  67837. </doc>
  67838. </method>
  67839. <method name="setInput"
  67840. abstract="false" native="false" synchronized="false"
  67841. static="true" final="false" visibility="public"
  67842. deprecated="not deprecated">
  67843. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67844. <param name="inputClass" type="java.lang.Class"/>
  67845. <param name="inputQuery" type="java.lang.String"/>
  67846. <param name="inputCountQuery" type="java.lang.String"/>
  67847. <doc>
  67848. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  67849. @param job The map-reduce job
  67850. @param inputClass the class object implementing DBWritable, which is the
  67851. Java object holding tuple fields.
  67852. @param inputQuery the input query to select fields. Example :
  67853. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  67854. @param inputCountQuery the input query that returns
  67855. the number of records in the table.
  67856. Example : "SELECT COUNT(f1) FROM Mytable"
  67857. @see #setInput(Job, Class, String, String, String, String...)]]>
  67858. </doc>
  67859. </method>
  67860. <method name="closeConnection"
  67861. abstract="false" native="false" synchronized="false"
  67862. static="false" final="false" visibility="protected"
  67863. deprecated="not deprecated">
  67864. </method>
  67865. <doc>
  67866. <![CDATA[A InputFormat that reads input data from an SQL table.
  67867. <p>
  67868. DBInputFormat emits LongWritables containing the record number as
  67869. key and DBWritables as value.
  67870. The SQL query, and input class can be using one of the two
  67871. setInput methods.]]>
  67872. </doc>
  67873. </class>
  67874. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  67875. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  67876. <class name="DBInputFormat.DBInputSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  67877. abstract="false"
  67878. static="true" final="false" visibility="public"
  67879. deprecated="not deprecated">
  67880. <implements name="org.apache.hadoop.io.Writable"/>
  67881. <constructor name="DBInputFormat.DBInputSplit"
  67882. static="false" final="false" visibility="public"
  67883. deprecated="not deprecated">
  67884. <doc>
  67885. <![CDATA[Default Constructor]]>
  67886. </doc>
  67887. </constructor>
  67888. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  67889. static="false" final="false" visibility="public"
  67890. deprecated="not deprecated">
  67891. <doc>
  67892. <![CDATA[Convenience Constructor
  67893. @param start the index of the first row to select
  67894. @param end the index of the last row to select]]>
  67895. </doc>
  67896. </constructor>
  67897. <method name="getLocations" return="java.lang.String[]"
  67898. abstract="false" native="false" synchronized="false"
  67899. static="false" final="false" visibility="public"
  67900. deprecated="not deprecated">
  67901. <exception name="IOException" type="java.io.IOException"/>
  67902. <doc>
  67903. <![CDATA[{@inheritDoc}]]>
  67904. </doc>
  67905. </method>
  67906. <method name="getStart" return="long"
  67907. abstract="false" native="false" synchronized="false"
  67908. static="false" final="false" visibility="public"
  67909. deprecated="not deprecated">
  67910. <doc>
  67911. <![CDATA[@return The index of the first row to select]]>
  67912. </doc>
  67913. </method>
  67914. <method name="getEnd" return="long"
  67915. abstract="false" native="false" synchronized="false"
  67916. static="false" final="false" visibility="public"
  67917. deprecated="not deprecated">
  67918. <doc>
  67919. <![CDATA[@return The index of the last row to select]]>
  67920. </doc>
  67921. </method>
  67922. <method name="getLength" return="long"
  67923. abstract="false" native="false" synchronized="false"
  67924. static="false" final="false" visibility="public"
  67925. deprecated="not deprecated">
  67926. <exception name="IOException" type="java.io.IOException"/>
  67927. <doc>
  67928. <![CDATA[@return The total row count in this split]]>
  67929. </doc>
  67930. </method>
  67931. <method name="readFields"
  67932. abstract="false" native="false" synchronized="false"
  67933. static="false" final="false" visibility="public"
  67934. deprecated="not deprecated">
  67935. <param name="input" type="java.io.DataInput"/>
  67936. <exception name="IOException" type="java.io.IOException"/>
  67937. <doc>
  67938. <![CDATA[{@inheritDoc}]]>
  67939. </doc>
  67940. </method>
  67941. <method name="write"
  67942. abstract="false" native="false" synchronized="false"
  67943. static="false" final="false" visibility="public"
  67944. deprecated="not deprecated">
  67945. <param name="output" type="java.io.DataOutput"/>
  67946. <exception name="IOException" type="java.io.IOException"/>
  67947. <doc>
  67948. <![CDATA[{@inheritDoc}]]>
  67949. </doc>
  67950. </method>
  67951. <doc>
  67952. <![CDATA[A InputSplit that spans a set of rows]]>
  67953. </doc>
  67954. </class>
  67955. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  67956. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  67957. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  67958. abstract="false"
  67959. static="true" final="false" visibility="public"
  67960. deprecated="not deprecated">
  67961. <implements name="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  67962. <implements name="org.apache.hadoop.io.Writable"/>
  67963. <constructor name="DBInputFormat.NullDBWritable"
  67964. static="false" final="false" visibility="public"
  67965. deprecated="not deprecated">
  67966. </constructor>
  67967. <method name="readFields"
  67968. abstract="false" native="false" synchronized="false"
  67969. static="false" final="false" visibility="public"
  67970. deprecated="not deprecated">
  67971. <param name="in" type="java.io.DataInput"/>
  67972. <exception name="IOException" type="java.io.IOException"/>
  67973. </method>
  67974. <method name="readFields"
  67975. abstract="false" native="false" synchronized="false"
  67976. static="false" final="false" visibility="public"
  67977. deprecated="not deprecated">
  67978. <param name="arg0" type="java.sql.ResultSet"/>
  67979. <exception name="SQLException" type="java.sql.SQLException"/>
  67980. </method>
  67981. <method name="write"
  67982. abstract="false" native="false" synchronized="false"
  67983. static="false" final="false" visibility="public"
  67984. deprecated="not deprecated">
  67985. <param name="out" type="java.io.DataOutput"/>
  67986. <exception name="IOException" type="java.io.IOException"/>
  67987. </method>
  67988. <method name="write"
  67989. abstract="false" native="false" synchronized="false"
  67990. static="false" final="false" visibility="public"
  67991. deprecated="not deprecated">
  67992. <param name="arg0" type="java.sql.PreparedStatement"/>
  67993. <exception name="SQLException" type="java.sql.SQLException"/>
  67994. </method>
  67995. <doc>
  67996. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  67997. </doc>
  67998. </class>
  67999. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  68000. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  68001. <class name="DBOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  68002. abstract="false"
  68003. static="false" final="false" visibility="public"
  68004. deprecated="not deprecated">
  68005. <constructor name="DBOutputFormat"
  68006. static="false" final="false" visibility="public"
  68007. deprecated="not deprecated">
  68008. </constructor>
  68009. <method name="checkOutputSpecs"
  68010. abstract="false" native="false" synchronized="false"
  68011. static="false" final="false" visibility="public"
  68012. deprecated="not deprecated">
  68013. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  68014. <exception name="IOException" type="java.io.IOException"/>
  68015. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68016. </method>
  68017. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68018. abstract="false" native="false" synchronized="false"
  68019. static="false" final="false" visibility="public"
  68020. deprecated="not deprecated">
  68021. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68022. <exception name="IOException" type="java.io.IOException"/>
  68023. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68024. </method>
  68025. <method name="constructQuery" return="java.lang.String"
  68026. abstract="false" native="false" synchronized="false"
  68027. static="false" final="false" visibility="public"
  68028. deprecated="not deprecated">
  68029. <param name="table" type="java.lang.String"/>
  68030. <param name="fieldNames" type="java.lang.String[]"/>
  68031. <doc>
  68032. <![CDATA[Constructs the query used as the prepared statement to insert data.
  68033. @param table
  68034. the table to insert into
  68035. @param fieldNames
  68036. the fields to insert into. If field names are unknown, supply an
  68037. array of nulls.]]>
  68038. </doc>
  68039. </method>
  68040. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68041. abstract="false" native="false" synchronized="false"
  68042. static="false" final="false" visibility="public"
  68043. deprecated="not deprecated">
  68044. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68045. <exception name="IOException" type="java.io.IOException"/>
  68046. <doc>
  68047. <![CDATA[{@inheritDoc}]]>
  68048. </doc>
  68049. </method>
  68050. <method name="setOutput"
  68051. abstract="false" native="false" synchronized="false"
  68052. static="true" final="false" visibility="public"
  68053. deprecated="not deprecated">
  68054. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  68055. <param name="tableName" type="java.lang.String"/>
  68056. <param name="fieldNames" type="java.lang.String[]"/>
  68057. <exception name="IOException" type="java.io.IOException"/>
  68058. <doc>
  68059. <![CDATA[Initializes the reduce-part of the job with
  68060. the appropriate output settings
  68061. @param job The job
  68062. @param tableName The table to insert data into
  68063. @param fieldNames The field names in the table.]]>
  68064. </doc>
  68065. </method>
  68066. <method name="setOutput"
  68067. abstract="false" native="false" synchronized="false"
  68068. static="true" final="false" visibility="public"
  68069. deprecated="not deprecated">
  68070. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  68071. <param name="tableName" type="java.lang.String"/>
  68072. <param name="fieldCount" type="int"/>
  68073. <exception name="IOException" type="java.io.IOException"/>
  68074. <doc>
  68075. <![CDATA[Initializes the reduce-part of the job
  68076. with the appropriate output settings
  68077. @param job The job
  68078. @param tableName The table to insert data into
  68079. @param fieldCount the number of fields in the table.]]>
  68080. </doc>
  68081. </method>
  68082. <doc>
  68083. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  68084. <p>
  68085. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  68086. key has a type extending DBWritable. Returned {@link RecordWriter}
  68087. writes <b>only the key</b> to the database with a batch SQL query.]]>
  68088. </doc>
  68089. </class>
  68090. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  68091. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  68092. <class name="DBOutputFormat.DBRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  68093. abstract="false"
  68094. static="false" final="false" visibility="public"
  68095. deprecated="not deprecated">
  68096. <constructor name="DBOutputFormat.DBRecordWriter"
  68097. static="false" final="false" visibility="public"
  68098. deprecated="not deprecated">
  68099. <exception name="SQLException" type="java.sql.SQLException"/>
  68100. </constructor>
  68101. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  68102. static="false" final="false" visibility="public"
  68103. deprecated="not deprecated">
  68104. <exception name="SQLException" type="java.sql.SQLException"/>
  68105. </constructor>
  68106. <method name="getConnection" return="java.sql.Connection"
  68107. abstract="false" native="false" synchronized="false"
  68108. static="false" final="false" visibility="public"
  68109. deprecated="not deprecated">
  68110. </method>
  68111. <method name="getStatement" return="java.sql.PreparedStatement"
  68112. abstract="false" native="false" synchronized="false"
  68113. static="false" final="false" visibility="public"
  68114. deprecated="not deprecated">
  68115. </method>
  68116. <method name="close"
  68117. abstract="false" native="false" synchronized="false"
  68118. static="false" final="false" visibility="public"
  68119. deprecated="not deprecated">
  68120. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68121. <exception name="IOException" type="java.io.IOException"/>
  68122. <doc>
  68123. <![CDATA[{@inheritDoc}]]>
  68124. </doc>
  68125. </method>
  68126. <method name="write"
  68127. abstract="false" native="false" synchronized="false"
  68128. static="false" final="false" visibility="public"
  68129. deprecated="not deprecated">
  68130. <param name="key" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  68131. <param name="value" type="java.lang.Object"/>
  68132. <exception name="IOException" type="java.io.IOException"/>
  68133. <doc>
  68134. <![CDATA[{@inheritDoc}]]>
  68135. </doc>
  68136. </method>
  68137. <doc>
  68138. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  68139. </doc>
  68140. </class>
  68141. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  68142. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  68143. <class name="DBRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  68144. abstract="false"
  68145. static="false" final="false" visibility="public"
  68146. deprecated="not deprecated">
  68147. <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"
  68148. static="false" final="false" visibility="public"
  68149. deprecated="not deprecated">
  68150. <exception name="SQLException" type="java.sql.SQLException"/>
  68151. <doc>
  68152. <![CDATA[@param split The InputSplit to read data for
  68153. @throws SQLException]]>
  68154. </doc>
  68155. </constructor>
  68156. <method name="executeQuery" return="java.sql.ResultSet"
  68157. abstract="false" native="false" synchronized="false"
  68158. static="false" final="false" visibility="protected"
  68159. deprecated="not deprecated">
  68160. <param name="query" type="java.lang.String"/>
  68161. <exception name="SQLException" type="java.sql.SQLException"/>
  68162. </method>
  68163. <method name="getSelectQuery" return="java.lang.String"
  68164. abstract="false" native="false" synchronized="false"
  68165. static="false" final="false" visibility="protected"
  68166. deprecated="not deprecated">
  68167. <doc>
  68168. <![CDATA[Returns the query for selecting the records,
  68169. subclasses can override this for custom behaviour.]]>
  68170. </doc>
  68171. </method>
  68172. <method name="close"
  68173. abstract="false" native="false" synchronized="false"
  68174. static="false" final="false" visibility="public"
  68175. deprecated="not deprecated">
  68176. <exception name="IOException" type="java.io.IOException"/>
  68177. <doc>
  68178. <![CDATA[{@inheritDoc}]]>
  68179. </doc>
  68180. </method>
  68181. <method name="initialize"
  68182. abstract="false" native="false" synchronized="false"
  68183. static="false" final="false" visibility="public"
  68184. deprecated="not deprecated">
  68185. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  68186. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68187. <exception name="IOException" type="java.io.IOException"/>
  68188. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68189. </method>
  68190. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  68191. abstract="false" native="false" synchronized="false"
  68192. static="false" final="false" visibility="public"
  68193. deprecated="not deprecated">
  68194. <doc>
  68195. <![CDATA[{@inheritDoc}]]>
  68196. </doc>
  68197. </method>
  68198. <method name="getCurrentValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  68199. abstract="false" native="false" synchronized="false"
  68200. static="false" final="false" visibility="public"
  68201. deprecated="not deprecated">
  68202. <doc>
  68203. <![CDATA[{@inheritDoc}]]>
  68204. </doc>
  68205. </method>
  68206. <method name="createValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  68207. abstract="false" native="false" synchronized="false"
  68208. static="false" final="false" visibility="public"
  68209. deprecated="deprecated, no comment">
  68210. <doc>
  68211. <![CDATA[@deprecated]]>
  68212. </doc>
  68213. </method>
  68214. <method name="getPos" return="long"
  68215. abstract="false" native="false" synchronized="false"
  68216. static="false" final="false" visibility="public"
  68217. deprecated="deprecated, no comment">
  68218. <exception name="IOException" type="java.io.IOException"/>
  68219. <doc>
  68220. <![CDATA[@deprecated]]>
  68221. </doc>
  68222. </method>
  68223. <method name="next" return="boolean"
  68224. abstract="false" native="false" synchronized="false"
  68225. static="false" final="false" visibility="public"
  68226. deprecated="Use {@link #nextKeyValue()}">
  68227. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  68228. <param name="value" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  68229. <exception name="IOException" type="java.io.IOException"/>
  68230. <doc>
  68231. <![CDATA[@deprecated Use {@link #nextKeyValue()}]]>
  68232. </doc>
  68233. </method>
  68234. <method name="getProgress" return="float"
  68235. abstract="false" native="false" synchronized="false"
  68236. static="false" final="false" visibility="public"
  68237. deprecated="not deprecated">
  68238. <exception name="IOException" type="java.io.IOException"/>
  68239. <doc>
  68240. <![CDATA[{@inheritDoc}]]>
  68241. </doc>
  68242. </method>
  68243. <method name="nextKeyValue" return="boolean"
  68244. abstract="false" native="false" synchronized="false"
  68245. static="false" final="false" visibility="public"
  68246. deprecated="not deprecated">
  68247. <exception name="IOException" type="java.io.IOException"/>
  68248. <doc>
  68249. <![CDATA[{@inheritDoc}]]>
  68250. </doc>
  68251. </method>
  68252. <method name="getSplit" return="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  68253. abstract="false" native="false" synchronized="false"
  68254. static="false" final="false" visibility="protected"
  68255. deprecated="not deprecated">
  68256. </method>
  68257. <method name="getFieldNames" return="java.lang.String[]"
  68258. abstract="false" native="false" synchronized="false"
  68259. static="false" final="false" visibility="protected"
  68260. deprecated="not deprecated">
  68261. </method>
  68262. <method name="getTableName" return="java.lang.String"
  68263. abstract="false" native="false" synchronized="false"
  68264. static="false" final="false" visibility="protected"
  68265. deprecated="not deprecated">
  68266. </method>
  68267. <method name="getConditions" return="java.lang.String"
  68268. abstract="false" native="false" synchronized="false"
  68269. static="false" final="false" visibility="protected"
  68270. deprecated="not deprecated">
  68271. </method>
  68272. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  68273. abstract="false" native="false" synchronized="false"
  68274. static="false" final="false" visibility="protected"
  68275. deprecated="not deprecated">
  68276. </method>
  68277. <method name="getConnection" return="java.sql.Connection"
  68278. abstract="false" native="false" synchronized="false"
  68279. static="false" final="false" visibility="protected"
  68280. deprecated="not deprecated">
  68281. </method>
  68282. <method name="getStatement" return="java.sql.PreparedStatement"
  68283. abstract="false" native="false" synchronized="false"
  68284. static="false" final="false" visibility="protected"
  68285. deprecated="not deprecated">
  68286. </method>
  68287. <method name="setStatement"
  68288. abstract="false" native="false" synchronized="false"
  68289. static="false" final="false" visibility="protected"
  68290. deprecated="not deprecated">
  68291. <param name="stmt" type="java.sql.PreparedStatement"/>
  68292. </method>
  68293. <field name="statement" type="java.sql.PreparedStatement"
  68294. transient="false" volatile="false"
  68295. static="false" final="false" visibility="protected"
  68296. deprecated="not deprecated">
  68297. </field>
  68298. <doc>
  68299. <![CDATA[A RecordReader that reads records from a SQL table.
  68300. Emits LongWritables containing the record number as
  68301. key and DBWritables as value.]]>
  68302. </doc>
  68303. </class>
  68304. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  68305. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  68306. <interface name="DBSplitter" abstract="true"
  68307. static="false" final="false" visibility="public"
  68308. deprecated="not deprecated">
  68309. <method name="split" return="java.util.List"
  68310. abstract="false" native="false" synchronized="false"
  68311. static="false" final="false" visibility="public"
  68312. deprecated="not deprecated">
  68313. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68314. <param name="results" type="java.sql.ResultSet"/>
  68315. <param name="colName" type="java.lang.String"/>
  68316. <exception name="SQLException" type="java.sql.SQLException"/>
  68317. <doc>
  68318. <![CDATA[Given a ResultSet containing one record (and already advanced to that record)
  68319. with two columns (a low value, and a high value, both of the same type), determine
  68320. a set of splits that span the given values.]]>
  68321. </doc>
  68322. </method>
  68323. <doc>
  68324. <![CDATA[DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat.
  68325. DataDrivenDBInputFormat needs to interpolate between two values that
  68326. represent the lowest and highest valued records to import. Depending
  68327. on the data-type of the column, this requires different behavior.
  68328. DBSplitter implementations should perform this for a data type or family
  68329. of data types.]]>
  68330. </doc>
  68331. </interface>
  68332. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  68333. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  68334. <interface name="DBWritable" abstract="true"
  68335. static="false" final="false" visibility="public"
  68336. deprecated="not deprecated">
  68337. <method name="write"
  68338. abstract="false" native="false" synchronized="false"
  68339. static="false" final="false" visibility="public"
  68340. deprecated="not deprecated">
  68341. <param name="statement" type="java.sql.PreparedStatement"/>
  68342. <exception name="SQLException" type="java.sql.SQLException"/>
  68343. <doc>
  68344. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  68345. @param statement the statement that the fields are put into.
  68346. @throws SQLException]]>
  68347. </doc>
  68348. </method>
  68349. <method name="readFields"
  68350. abstract="false" native="false" synchronized="false"
  68351. static="false" final="false" visibility="public"
  68352. deprecated="not deprecated">
  68353. <param name="resultSet" type="java.sql.ResultSet"/>
  68354. <exception name="SQLException" type="java.sql.SQLException"/>
  68355. <doc>
  68356. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  68357. @param resultSet the {@link ResultSet} to get the fields from.
  68358. @throws SQLException]]>
  68359. </doc>
  68360. </method>
  68361. <doc>
  68362. <![CDATA[Objects that are read from/written to a database should implement
  68363. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  68364. except that the {@link #write(PreparedStatement)} method takes a
  68365. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  68366. takes a {@link ResultSet}.
  68367. <p>
  68368. Implementations are responsible for writing the fields of the object
  68369. to PreparedStatement, and reading the fields of the object from the
  68370. ResultSet.
  68371. <p>Example:</p>
  68372. If we have the following table in the database :
  68373. <pre>
  68374. CREATE TABLE MyTable (
  68375. counter INTEGER NOT NULL,
  68376. timestamp BIGINT NOT NULL,
  68377. );
  68378. </pre>
  68379. then we can read/write the tuples from/to the table with :
  68380. <p><pre>
  68381. public class MyWritable implements Writable, DBWritable {
  68382. // Some data
  68383. private int counter;
  68384. private long timestamp;
  68385. //Writable#write() implementation
  68386. public void write(DataOutput out) throws IOException {
  68387. out.writeInt(counter);
  68388. out.writeLong(timestamp);
  68389. }
  68390. //Writable#readFields() implementation
  68391. public void readFields(DataInput in) throws IOException {
  68392. counter = in.readInt();
  68393. timestamp = in.readLong();
  68394. }
  68395. public void write(PreparedStatement statement) throws SQLException {
  68396. statement.setInt(1, counter);
  68397. statement.setLong(2, timestamp);
  68398. }
  68399. public void readFields(ResultSet resultSet) throws SQLException {
  68400. counter = resultSet.getInt(1);
  68401. timestamp = resultSet.getLong(2);
  68402. }
  68403. }
  68404. </pre></p>]]>
  68405. </doc>
  68406. </interface>
  68407. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  68408. <!-- start class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  68409. <class name="FloatSplitter" extends="java.lang.Object"
  68410. abstract="false"
  68411. static="false" final="false" visibility="public"
  68412. deprecated="not deprecated">
  68413. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  68414. <constructor name="FloatSplitter"
  68415. static="false" final="false" visibility="public"
  68416. deprecated="not deprecated">
  68417. </constructor>
  68418. <method name="split" return="java.util.List"
  68419. abstract="false" native="false" synchronized="false"
  68420. static="false" final="false" visibility="public"
  68421. deprecated="not deprecated">
  68422. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68423. <param name="results" type="java.sql.ResultSet"/>
  68424. <param name="colName" type="java.lang.String"/>
  68425. <exception name="SQLException" type="java.sql.SQLException"/>
  68426. </method>
  68427. <doc>
  68428. <![CDATA[Implement DBSplitter over floating-point values.]]>
  68429. </doc>
  68430. </class>
  68431. <!-- end class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  68432. <!-- start class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  68433. <class name="IntegerSplitter" extends="java.lang.Object"
  68434. abstract="false"
  68435. static="false" final="false" visibility="public"
  68436. deprecated="not deprecated">
  68437. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  68438. <constructor name="IntegerSplitter"
  68439. static="false" final="false" visibility="public"
  68440. deprecated="not deprecated">
  68441. </constructor>
  68442. <method name="split" return="java.util.List"
  68443. abstract="false" native="false" synchronized="false"
  68444. static="false" final="false" visibility="public"
  68445. deprecated="not deprecated">
  68446. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68447. <param name="results" type="java.sql.ResultSet"/>
  68448. <param name="colName" type="java.lang.String"/>
  68449. <exception name="SQLException" type="java.sql.SQLException"/>
  68450. </method>
  68451. <doc>
  68452. <![CDATA[Implement DBSplitter over integer values.]]>
  68453. </doc>
  68454. </class>
  68455. <!-- end class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  68456. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  68457. <class name="MySQLDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  68458. abstract="false"
  68459. static="false" final="false" visibility="public"
  68460. deprecated="not deprecated">
  68461. <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"
  68462. static="false" final="false" visibility="public"
  68463. deprecated="not deprecated">
  68464. <exception name="SQLException" type="java.sql.SQLException"/>
  68465. </constructor>
  68466. <method name="executeQuery" return="java.sql.ResultSet"
  68467. abstract="false" native="false" synchronized="false"
  68468. static="false" final="false" visibility="protected"
  68469. deprecated="not deprecated">
  68470. <param name="query" type="java.lang.String"/>
  68471. <exception name="SQLException" type="java.sql.SQLException"/>
  68472. </method>
  68473. <doc>
  68474. <![CDATA[A RecordReader that reads records from a MySQL table via DataDrivenDBRecordReader]]>
  68475. </doc>
  68476. </class>
  68477. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  68478. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  68479. <class name="MySQLDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  68480. abstract="false"
  68481. static="false" final="false" visibility="public"
  68482. deprecated="not deprecated">
  68483. <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"
  68484. static="false" final="false" visibility="public"
  68485. deprecated="not deprecated">
  68486. <exception name="SQLException" type="java.sql.SQLException"/>
  68487. </constructor>
  68488. <method name="executeQuery" return="java.sql.ResultSet"
  68489. abstract="false" native="false" synchronized="false"
  68490. static="false" final="false" visibility="protected"
  68491. deprecated="not deprecated">
  68492. <param name="query" type="java.lang.String"/>
  68493. <exception name="SQLException" type="java.sql.SQLException"/>
  68494. </method>
  68495. <doc>
  68496. <![CDATA[A RecordReader that reads records from a MySQL table.]]>
  68497. </doc>
  68498. </class>
  68499. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  68500. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  68501. <class name="OracleDataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat"
  68502. abstract="false"
  68503. static="false" final="false" visibility="public"
  68504. deprecated="not deprecated">
  68505. <implements name="org.apache.hadoop.conf.Configurable"/>
  68506. <constructor name="OracleDataDrivenDBInputFormat"
  68507. static="false" final="false" visibility="public"
  68508. deprecated="not deprecated">
  68509. </constructor>
  68510. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  68511. abstract="false" native="false" synchronized="false"
  68512. static="false" final="false" visibility="protected"
  68513. deprecated="not deprecated">
  68514. <param name="sqlDataType" type="int"/>
  68515. <doc>
  68516. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  68517. </doc>
  68518. </method>
  68519. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  68520. abstract="false" native="false" synchronized="false"
  68521. static="false" final="false" visibility="protected"
  68522. deprecated="not deprecated">
  68523. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  68524. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68525. <exception name="IOException" type="java.io.IOException"/>
  68526. </method>
  68527. <doc>
  68528. <![CDATA[A InputFormat that reads input data from an SQL table in an Oracle db.]]>
  68529. </doc>
  68530. </class>
  68531. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  68532. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  68533. <class name="OracleDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  68534. abstract="false"
  68535. static="false" final="false" visibility="public"
  68536. deprecated="not deprecated">
  68537. <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"
  68538. static="false" final="false" visibility="public"
  68539. deprecated="not deprecated">
  68540. <exception name="SQLException" type="java.sql.SQLException"/>
  68541. </constructor>
  68542. <doc>
  68543. <![CDATA[A RecordReader that reads records from a Oracle table via DataDrivenDBRecordReader]]>
  68544. </doc>
  68545. </class>
  68546. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  68547. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  68548. <class name="OracleDateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.DateSplitter"
  68549. abstract="false"
  68550. static="false" final="false" visibility="public"
  68551. deprecated="not deprecated">
  68552. <constructor name="OracleDateSplitter"
  68553. static="false" final="false" visibility="public"
  68554. deprecated="not deprecated">
  68555. </constructor>
  68556. <method name="dateToString" return="java.lang.String"
  68557. abstract="false" native="false" synchronized="false"
  68558. static="false" final="false" visibility="protected"
  68559. deprecated="not deprecated">
  68560. <param name="d" type="java.util.Date"/>
  68561. </method>
  68562. <doc>
  68563. <![CDATA[Implement DBSplitter over date/time values returned by an Oracle db.
  68564. Make use of logic from DateSplitter, since this just needs to use
  68565. some Oracle-specific functions on the formatting end when generating
  68566. InputSplits.]]>
  68567. </doc>
  68568. </class>
  68569. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  68570. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  68571. <class name="OracleDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  68572. abstract="false"
  68573. static="false" final="false" visibility="public"
  68574. deprecated="not deprecated">
  68575. <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"
  68576. static="false" final="false" visibility="public"
  68577. deprecated="not deprecated">
  68578. <exception name="SQLException" type="java.sql.SQLException"/>
  68579. </constructor>
  68580. <method name="getSelectQuery" return="java.lang.String"
  68581. abstract="false" native="false" synchronized="false"
  68582. static="false" final="false" visibility="protected"
  68583. deprecated="not deprecated">
  68584. <doc>
  68585. <![CDATA[Returns the query for selecting the records from an Oracle DB.]]>
  68586. </doc>
  68587. </method>
  68588. <method name="setSessionTimeZone"
  68589. abstract="false" native="false" synchronized="false"
  68590. static="true" final="false" visibility="public"
  68591. deprecated="not deprecated">
  68592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68593. <param name="conn" type="java.sql.Connection"/>
  68594. <exception name="SQLException" type="java.sql.SQLException"/>
  68595. <doc>
  68596. <![CDATA[Set session time zone
  68597. @param conf The current configuration.
  68598. We read the 'oracle.sessionTimeZone' property from here.
  68599. @param conn The connection to alter the timezone properties of.]]>
  68600. </doc>
  68601. </method>
  68602. <field name="SESSION_TIMEZONE_KEY" type="java.lang.String"
  68603. transient="false" volatile="false"
  68604. static="true" final="true" visibility="public"
  68605. deprecated="not deprecated">
  68606. <doc>
  68607. <![CDATA[Configuration key to set to a timezone string.]]>
  68608. </doc>
  68609. </field>
  68610. <doc>
  68611. <![CDATA[A RecordReader that reads records from an Oracle SQL table.]]>
  68612. </doc>
  68613. </class>
  68614. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  68615. <!-- start class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  68616. <class name="TextSplitter" extends="org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter"
  68617. abstract="false"
  68618. static="false" final="false" visibility="public"
  68619. deprecated="not deprecated">
  68620. <constructor name="TextSplitter"
  68621. static="false" final="false" visibility="public"
  68622. deprecated="not deprecated">
  68623. </constructor>
  68624. <method name="split" return="java.util.List"
  68625. abstract="false" native="false" synchronized="false"
  68626. static="false" final="false" visibility="public"
  68627. deprecated="not deprecated">
  68628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68629. <param name="results" type="java.sql.ResultSet"/>
  68630. <param name="colName" type="java.lang.String"/>
  68631. <exception name="SQLException" type="java.sql.SQLException"/>
  68632. <doc>
  68633. <![CDATA[This method needs to determine the splits between two user-provided strings.
  68634. In the case where the user's strings are 'A' and 'Z', this is not hard; we
  68635. could create two splits from ['A', 'M') and ['M', 'Z'], 26 splits for strings
  68636. beginning with each letter, etc.
  68637. If a user has provided us with the strings "Ham" and "Haze", however, we need
  68638. to create splits that differ in the third letter.
  68639. The algorithm used is as follows:
  68640. Since there are 2**16 unicode characters, we interpret characters as digits in
  68641. base 65536. Given a string 's' containing characters s_0, s_1 .. s_n, we interpret
  68642. the string as the number: 0.s_0 s_1 s_2.. s_n in base 65536. Having mapped the
  68643. low and high strings into floating-point values, we then use the BigDecimalSplitter
  68644. to establish the even split points, then map the resulting floating point values
  68645. back into strings.]]>
  68646. </doc>
  68647. </method>
  68648. <doc>
  68649. <![CDATA[Implement DBSplitter over text strings.]]>
  68650. </doc>
  68651. </class>
  68652. <!-- end class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  68653. </package>
  68654. <package name="org.apache.hadoop.mapreduce.lib.fieldsel">
  68655. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  68656. <class name="FieldSelectionHelper" extends="java.lang.Object"
  68657. abstract="false"
  68658. static="false" final="false" visibility="public"
  68659. deprecated="not deprecated">
  68660. <constructor name="FieldSelectionHelper"
  68661. static="false" final="false" visibility="public"
  68662. deprecated="not deprecated">
  68663. </constructor>
  68664. <constructor name="FieldSelectionHelper" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  68665. static="false" final="false" visibility="public"
  68666. deprecated="not deprecated">
  68667. </constructor>
  68668. <method name="parseOutputKeyValueSpec" return="int"
  68669. abstract="false" native="false" synchronized="false"
  68670. static="true" final="false" visibility="public"
  68671. deprecated="not deprecated">
  68672. <param name="keyValueSpec" type="java.lang.String"/>
  68673. <param name="keyFieldList" type="java.util.List"/>
  68674. <param name="valueFieldList" type="java.util.List"/>
  68675. </method>
  68676. <method name="specToString" return="java.lang.String"
  68677. abstract="false" native="false" synchronized="false"
  68678. static="true" final="false" visibility="public"
  68679. deprecated="not deprecated">
  68680. <param name="fieldSeparator" type="java.lang.String"/>
  68681. <param name="keyValueSpec" type="java.lang.String"/>
  68682. <param name="allValueFieldsFrom" type="int"/>
  68683. <param name="keyFieldList" type="java.util.List"/>
  68684. <param name="valueFieldList" type="java.util.List"/>
  68685. </method>
  68686. <method name="getKey" return="org.apache.hadoop.io.Text"
  68687. abstract="false" native="false" synchronized="false"
  68688. static="false" final="false" visibility="public"
  68689. deprecated="not deprecated">
  68690. </method>
  68691. <method name="getValue" return="org.apache.hadoop.io.Text"
  68692. abstract="false" native="false" synchronized="false"
  68693. static="false" final="false" visibility="public"
  68694. deprecated="not deprecated">
  68695. </method>
  68696. <method name="extractOutputKeyValue"
  68697. abstract="false" native="false" synchronized="false"
  68698. static="false" final="false" visibility="public"
  68699. deprecated="not deprecated">
  68700. <param name="key" type="java.lang.String"/>
  68701. <param name="val" type="java.lang.String"/>
  68702. <param name="fieldSep" type="java.lang.String"/>
  68703. <param name="keyFieldList" type="java.util.List"/>
  68704. <param name="valFieldList" type="java.util.List"/>
  68705. <param name="allValueFieldsFrom" type="int"/>
  68706. <param name="ignoreKey" type="boolean"/>
  68707. <param name="isMap" type="boolean"/>
  68708. </method>
  68709. <field name="emptyText" type="org.apache.hadoop.io.Text"
  68710. transient="false" volatile="false"
  68711. static="true" final="false" visibility="public"
  68712. deprecated="not deprecated">
  68713. </field>
  68714. <field name="DATA_FIELD_SEPERATOR" type="java.lang.String"
  68715. transient="false" volatile="false"
  68716. static="true" final="true" visibility="public"
  68717. deprecated="not deprecated">
  68718. </field>
  68719. <field name="MAP_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  68720. transient="false" volatile="false"
  68721. static="true" final="true" visibility="public"
  68722. deprecated="not deprecated">
  68723. </field>
  68724. <field name="REDUCE_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  68725. transient="false" volatile="false"
  68726. static="true" final="true" visibility="public"
  68727. deprecated="not deprecated">
  68728. </field>
  68729. <doc>
  68730. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  68731. field selections in a manner similar to unix cut. The input data is treated
  68732. as fields separated by a user specified separator (the default value is
  68733. "\t"). The user can specify a list of fields that form the map output keys,
  68734. and a list of fields that form the map output values. If the inputformat is
  68735. TextInputFormat, the mapper will ignore the key to the map function. and the
  68736. fields are from the value only. Otherwise, the fields are the union of those
  68737. from the key and those from the value.
  68738. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  68739. The map output field list spec is under attribute
  68740. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  68741. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  68742. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  68743. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  68744. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  68745. the fields starting from field 3. The open range field spec applies value fields only.
  68746. They have no effect on the key fields.
  68747. 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,
  68748. and use fields 6,5,1,2,3,7 and above for values.
  68749. The reduce output field list spec is under attribute
  68750. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  68751. The reducer extracts output key/value pairs in a similar manner, except that
  68752. the key is never ignored.]]>
  68753. </doc>
  68754. </class>
  68755. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  68756. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  68757. <class name="FieldSelectionMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  68758. abstract="false"
  68759. static="false" final="false" visibility="public"
  68760. deprecated="not deprecated">
  68761. <constructor name="FieldSelectionMapper"
  68762. static="false" final="false" visibility="public"
  68763. deprecated="not deprecated">
  68764. </constructor>
  68765. <method name="setup"
  68766. abstract="false" native="false" synchronized="false"
  68767. static="false" final="false" visibility="public"
  68768. deprecated="not deprecated">
  68769. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  68770. <exception name="IOException" type="java.io.IOException"/>
  68771. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68772. </method>
  68773. <method name="map"
  68774. abstract="false" native="false" synchronized="false"
  68775. static="false" final="false" visibility="public"
  68776. deprecated="not deprecated">
  68777. <param name="key" type="java.lang.Object"/>
  68778. <param name="val" type="java.lang.Object"/>
  68779. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  68780. <exception name="IOException" type="java.io.IOException"/>
  68781. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68782. <doc>
  68783. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  68784. </doc>
  68785. </method>
  68786. <field name="LOG" type="org.apache.commons.logging.Log"
  68787. transient="false" volatile="false"
  68788. static="true" final="true" visibility="public"
  68789. deprecated="not deprecated">
  68790. </field>
  68791. <doc>
  68792. <![CDATA[This class implements a mapper class that can be used to perform
  68793. field selections in a manner similar to unix cut. The input data is treated
  68794. as fields separated by a user specified separator (the default value is
  68795. "\t"). The user can specify a list of fields that form the map output keys,
  68796. and a list of fields that form the map output values. If the inputformat is
  68797. TextInputFormat, the mapper will ignore the key to the map function. and the
  68798. fields are from the value only. Otherwise, the fields are the union of those
  68799. from the key and those from the value.
  68800. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  68801. The map output field list spec is under attribute
  68802. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  68803. The value is expected to be like
  68804. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,) separated
  68805. field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec can be a
  68806. simple number (e.g. 5) specifying a specific field, or a range (like 2-5)
  68807. to specify a range of fields, or an open range (like 3-) specifying all
  68808. the fields starting from field 3. The open range field spec applies value
  68809. fields only. They have no effect on the key fields.
  68810. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  68811. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  68812. </doc>
  68813. </class>
  68814. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  68815. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  68816. <class name="FieldSelectionReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  68817. abstract="false"
  68818. static="false" final="false" visibility="public"
  68819. deprecated="not deprecated">
  68820. <constructor name="FieldSelectionReducer"
  68821. static="false" final="false" visibility="public"
  68822. deprecated="not deprecated">
  68823. </constructor>
  68824. <method name="setup"
  68825. abstract="false" native="false" synchronized="false"
  68826. static="false" final="false" visibility="public"
  68827. deprecated="not deprecated">
  68828. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68829. <exception name="IOException" type="java.io.IOException"/>
  68830. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68831. </method>
  68832. <method name="reduce"
  68833. abstract="false" native="false" synchronized="false"
  68834. static="false" final="false" visibility="public"
  68835. deprecated="not deprecated">
  68836. <param name="key" type="org.apache.hadoop.io.Text"/>
  68837. <param name="values" type="java.lang.Iterable"/>
  68838. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68839. <exception name="IOException" type="java.io.IOException"/>
  68840. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68841. </method>
  68842. <field name="LOG" type="org.apache.commons.logging.Log"
  68843. transient="false" volatile="false"
  68844. static="true" final="true" visibility="public"
  68845. deprecated="not deprecated">
  68846. </field>
  68847. <doc>
  68848. <![CDATA[This class implements a reducer class that can be used to perform field
  68849. selections in a manner similar to unix cut.
  68850. The input data is treated as fields separated by a user specified
  68851. separator (the default value is "\t"). The user can specify a list of
  68852. fields that form the reduce output keys, and a list of fields that form
  68853. the reduce output values. The fields are the union of those from the key
  68854. and those from the value.
  68855. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  68856. The reduce output field list spec is under attribute
  68857. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  68858. The value is expected to be like
  68859. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,)
  68860. separated field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec
  68861. can be a simple number (e.g. 5) specifying a specific field, or a range
  68862. (like 2-5) to specify a range of fields, or an open range (like 3-)
  68863. specifying all the fields starting from field 3. The open range field
  68864. spec applies value fields only. They have no effect on the key fields.
  68865. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  68866. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  68867. </doc>
  68868. </class>
  68869. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  68870. </package>
  68871. <package name="org.apache.hadoop.mapreduce.lib.input">
  68872. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  68873. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  68874. abstract="true"
  68875. static="false" final="false" visibility="public"
  68876. deprecated="not deprecated">
  68877. <constructor name="CombineFileInputFormat"
  68878. static="false" final="false" visibility="public"
  68879. deprecated="not deprecated">
  68880. <doc>
  68881. <![CDATA[default constructor]]>
  68882. </doc>
  68883. </constructor>
  68884. <method name="setMaxSplitSize"
  68885. abstract="false" native="false" synchronized="false"
  68886. static="false" final="false" visibility="protected"
  68887. deprecated="not deprecated">
  68888. <param name="maxSplitSize" type="long"/>
  68889. <doc>
  68890. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  68891. approximately equal to the specified size.]]>
  68892. </doc>
  68893. </method>
  68894. <method name="setMinSplitSizeNode"
  68895. abstract="false" native="false" synchronized="false"
  68896. static="false" final="false" visibility="protected"
  68897. deprecated="not deprecated">
  68898. <param name="minSplitSizeNode" type="long"/>
  68899. <doc>
  68900. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  68901. This applies to data that is left over after combining data on a single
  68902. node into splits that are of maximum size specified by maxSplitSize.
  68903. This leftover data will be combined into its own split if its size
  68904. exceeds minSplitSizeNode.]]>
  68905. </doc>
  68906. </method>
  68907. <method name="setMinSplitSizeRack"
  68908. abstract="false" native="false" synchronized="false"
  68909. static="false" final="false" visibility="protected"
  68910. deprecated="not deprecated">
  68911. <param name="minSplitSizeRack" type="long"/>
  68912. <doc>
  68913. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  68914. This applies to data that is left over after combining data on a single
  68915. rack into splits that are of maximum size specified by maxSplitSize.
  68916. This leftover data will be combined into its own split if its size
  68917. exceeds minSplitSizeRack.]]>
  68918. </doc>
  68919. </method>
  68920. <method name="createPool"
  68921. abstract="false" native="false" synchronized="false"
  68922. static="false" final="false" visibility="protected"
  68923. deprecated="not deprecated">
  68924. <param name="filters" type="java.util.List"/>
  68925. <doc>
  68926. <![CDATA[Create a new pool and add the filters to it.
  68927. A split cannot have files from different pools.]]>
  68928. </doc>
  68929. </method>
  68930. <method name="createPool"
  68931. abstract="false" native="false" synchronized="false"
  68932. static="false" final="false" visibility="protected"
  68933. deprecated="not deprecated">
  68934. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  68935. <doc>
  68936. <![CDATA[Create a new pool and add the filters to it.
  68937. A pathname can satisfy any one of the specified filters.
  68938. A split cannot have files from different pools.]]>
  68939. </doc>
  68940. </method>
  68941. <method name="isSplitable" return="boolean"
  68942. abstract="false" native="false" synchronized="false"
  68943. static="false" final="false" visibility="protected"
  68944. deprecated="not deprecated">
  68945. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  68946. <param name="file" type="org.apache.hadoop.fs.Path"/>
  68947. </method>
  68948. <method name="getSplits" return="java.util.List"
  68949. abstract="false" native="false" synchronized="false"
  68950. static="false" final="false" visibility="public"
  68951. deprecated="not deprecated">
  68952. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  68953. <exception name="IOException" type="java.io.IOException"/>
  68954. </method>
  68955. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  68956. abstract="true" native="false" synchronized="false"
  68957. static="false" final="false" visibility="public"
  68958. deprecated="not deprecated">
  68959. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  68960. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68961. <exception name="IOException" type="java.io.IOException"/>
  68962. <doc>
  68963. <![CDATA[This is not implemented yet.]]>
  68964. </doc>
  68965. </method>
  68966. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  68967. abstract="false" native="false" synchronized="false"
  68968. static="false" final="false" visibility="protected"
  68969. deprecated="not deprecated">
  68970. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  68971. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  68972. <exception name="IOException" type="java.io.IOException"/>
  68973. </method>
  68974. <field name="SPLIT_MINSIZE_PERNODE" type="java.lang.String"
  68975. transient="false" volatile="false"
  68976. static="true" final="true" visibility="public"
  68977. deprecated="not deprecated">
  68978. </field>
  68979. <field name="SPLIT_MINSIZE_PERRACK" type="java.lang.String"
  68980. transient="false" volatile="false"
  68981. static="true" final="true" visibility="public"
  68982. deprecated="not deprecated">
  68983. </field>
  68984. <doc>
  68985. <![CDATA[An abstract {@link InputFormat} that returns {@link CombineFileSplit}'s in
  68986. {@link InputFormat#getSplits(JobContext)} method.
  68987. Splits are constructed from the files under the input paths.
  68988. A split cannot have files from different pools.
  68989. Each split returned may contain blocks from different files.
  68990. If a maxSplitSize is specified, then blocks on the same node are
  68991. combined to form a single split. Blocks that are left over are
  68992. then combined with other blocks in the same rack.
  68993. If maxSplitSize is not specified, then blocks from the same rack
  68994. are combined in a single split; no attempt is made to create
  68995. node-local splits.
  68996. If the maxSplitSize is equal to the block size, then this class
  68997. is similar to the default splitting behavior in Hadoop: each
  68998. block is a locally processed split.
  68999. Subclasses implement
  69000. {@link InputFormat#createRecordReader(InputSplit, TaskAttemptContext)}
  69001. to construct <code>RecordReader</code>'s for
  69002. <code>CombineFileSplit</code>'s.
  69003. @see CombineFileSplit]]>
  69004. </doc>
  69005. </class>
  69006. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  69007. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  69008. <class name="CombineFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  69009. abstract="false"
  69010. static="false" final="false" visibility="public"
  69011. deprecated="not deprecated">
  69012. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit, org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.Class"
  69013. static="false" final="false" visibility="public"
  69014. deprecated="not deprecated">
  69015. <exception name="IOException" type="java.io.IOException"/>
  69016. <doc>
  69017. <![CDATA[A generic RecordReader that can hand out different recordReaders
  69018. for each chunk in the CombineFileSplit.]]>
  69019. </doc>
  69020. </constructor>
  69021. <method name="initialize"
  69022. abstract="false" native="false" synchronized="false"
  69023. static="false" final="false" visibility="public"
  69024. deprecated="not deprecated">
  69025. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69026. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69027. <exception name="IOException" type="java.io.IOException"/>
  69028. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69029. </method>
  69030. <method name="nextKeyValue" return="boolean"
  69031. abstract="false" native="false" synchronized="false"
  69032. static="false" final="false" visibility="public"
  69033. deprecated="not deprecated">
  69034. <exception name="IOException" type="java.io.IOException"/>
  69035. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69036. </method>
  69037. <method name="getCurrentKey" return="java.lang.Object"
  69038. abstract="false" native="false" synchronized="false"
  69039. static="false" final="false" visibility="public"
  69040. deprecated="not deprecated">
  69041. <exception name="IOException" type="java.io.IOException"/>
  69042. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69043. </method>
  69044. <method name="getCurrentValue" return="java.lang.Object"
  69045. abstract="false" native="false" synchronized="false"
  69046. static="false" final="false" visibility="public"
  69047. deprecated="not deprecated">
  69048. <exception name="IOException" type="java.io.IOException"/>
  69049. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69050. </method>
  69051. <method name="close"
  69052. abstract="false" native="false" synchronized="false"
  69053. static="false" final="false" visibility="public"
  69054. deprecated="not deprecated">
  69055. <exception name="IOException" type="java.io.IOException"/>
  69056. </method>
  69057. <method name="getProgress" return="float"
  69058. abstract="false" native="false" synchronized="false"
  69059. static="false" final="false" visibility="public"
  69060. deprecated="not deprecated">
  69061. <exception name="IOException" type="java.io.IOException"/>
  69062. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69063. <doc>
  69064. <![CDATA[return progress based on the amount of data processed so far.]]>
  69065. </doc>
  69066. </method>
  69067. <method name="initNextRecordReader" return="boolean"
  69068. abstract="false" native="false" synchronized="false"
  69069. static="false" final="false" visibility="protected"
  69070. deprecated="not deprecated">
  69071. <exception name="IOException" type="java.io.IOException"/>
  69072. <doc>
  69073. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  69074. </doc>
  69075. </method>
  69076. <field name="split" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  69077. transient="false" volatile="false"
  69078. static="false" final="false" visibility="protected"
  69079. deprecated="not deprecated">
  69080. </field>
  69081. <field name="rrClass" type="java.lang.Class"
  69082. transient="false" volatile="false"
  69083. static="false" final="false" visibility="protected"
  69084. deprecated="not deprecated">
  69085. </field>
  69086. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  69087. transient="false" volatile="false"
  69088. static="false" final="false" visibility="protected"
  69089. deprecated="not deprecated">
  69090. </field>
  69091. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  69092. transient="false" volatile="false"
  69093. static="false" final="false" visibility="protected"
  69094. deprecated="not deprecated">
  69095. </field>
  69096. <field name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"
  69097. transient="false" volatile="false"
  69098. static="false" final="false" visibility="protected"
  69099. deprecated="not deprecated">
  69100. </field>
  69101. <field name="idx" type="int"
  69102. transient="false" volatile="false"
  69103. static="false" final="false" visibility="protected"
  69104. deprecated="not deprecated">
  69105. </field>
  69106. <field name="progress" type="long"
  69107. transient="false" volatile="false"
  69108. static="false" final="false" visibility="protected"
  69109. deprecated="not deprecated">
  69110. </field>
  69111. <field name="curReader" type="org.apache.hadoop.mapreduce.RecordReader"
  69112. transient="false" volatile="false"
  69113. static="false" final="false" visibility="protected"
  69114. deprecated="not deprecated">
  69115. </field>
  69116. <doc>
  69117. <![CDATA[A generic RecordReader that can hand out different recordReaders
  69118. for each chunk in a {@link CombineFileSplit}.
  69119. A CombineFileSplit can combine data chunks from multiple files.
  69120. This class allows using different RecordReaders for processing
  69121. these data chunks from different files.
  69122. @see CombineFileSplit]]>
  69123. </doc>
  69124. </class>
  69125. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  69126. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  69127. <class name="CombineFileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  69128. abstract="false"
  69129. static="false" final="false" visibility="public"
  69130. deprecated="not deprecated">
  69131. <implements name="org.apache.hadoop.io.Writable"/>
  69132. <constructor name="CombineFileSplit"
  69133. static="false" final="false" visibility="public"
  69134. deprecated="not deprecated">
  69135. <doc>
  69136. <![CDATA[default constructor]]>
  69137. </doc>
  69138. </constructor>
  69139. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  69140. static="false" final="false" visibility="public"
  69141. deprecated="not deprecated">
  69142. </constructor>
  69143. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[]"
  69144. static="false" final="false" visibility="public"
  69145. deprecated="not deprecated">
  69146. </constructor>
  69147. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  69148. static="false" final="false" visibility="public"
  69149. deprecated="not deprecated">
  69150. <exception name="IOException" type="java.io.IOException"/>
  69151. <doc>
  69152. <![CDATA[Copy constructor]]>
  69153. </doc>
  69154. </constructor>
  69155. <method name="getLength" return="long"
  69156. abstract="false" native="false" synchronized="false"
  69157. static="false" final="false" visibility="public"
  69158. deprecated="not deprecated">
  69159. </method>
  69160. <method name="getStartOffsets" return="long[]"
  69161. abstract="false" native="false" synchronized="false"
  69162. static="false" final="false" visibility="public"
  69163. deprecated="not deprecated">
  69164. <doc>
  69165. <![CDATA[Returns an array containing the start offsets of the files in the split]]>
  69166. </doc>
  69167. </method>
  69168. <method name="getLengths" return="long[]"
  69169. abstract="false" native="false" synchronized="false"
  69170. static="false" final="false" visibility="public"
  69171. deprecated="not deprecated">
  69172. <doc>
  69173. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  69174. </doc>
  69175. </method>
  69176. <method name="getOffset" return="long"
  69177. abstract="false" native="false" synchronized="false"
  69178. static="false" final="false" visibility="public"
  69179. deprecated="not deprecated">
  69180. <param name="i" type="int"/>
  69181. <doc>
  69182. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  69183. </doc>
  69184. </method>
  69185. <method name="getLength" return="long"
  69186. abstract="false" native="false" synchronized="false"
  69187. static="false" final="false" visibility="public"
  69188. deprecated="not deprecated">
  69189. <param name="i" type="int"/>
  69190. <doc>
  69191. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  69192. </doc>
  69193. </method>
  69194. <method name="getNumPaths" return="int"
  69195. abstract="false" native="false" synchronized="false"
  69196. static="false" final="false" visibility="public"
  69197. deprecated="not deprecated">
  69198. <doc>
  69199. <![CDATA[Returns the number of Paths in the split]]>
  69200. </doc>
  69201. </method>
  69202. <method name="getPath" return="org.apache.hadoop.fs.Path"
  69203. abstract="false" native="false" synchronized="false"
  69204. static="false" final="false" visibility="public"
  69205. deprecated="not deprecated">
  69206. <param name="i" type="int"/>
  69207. <doc>
  69208. <![CDATA[Returns the i<sup>th</sup> Path]]>
  69209. </doc>
  69210. </method>
  69211. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  69212. abstract="false" native="false" synchronized="false"
  69213. static="false" final="false" visibility="public"
  69214. deprecated="not deprecated">
  69215. <doc>
  69216. <![CDATA[Returns all the Paths in the split]]>
  69217. </doc>
  69218. </method>
  69219. <method name="getLocations" return="java.lang.String[]"
  69220. abstract="false" native="false" synchronized="false"
  69221. static="false" final="false" visibility="public"
  69222. deprecated="not deprecated">
  69223. <exception name="IOException" type="java.io.IOException"/>
  69224. <doc>
  69225. <![CDATA[Returns all the Paths where this input-split resides]]>
  69226. </doc>
  69227. </method>
  69228. <method name="readFields"
  69229. abstract="false" native="false" synchronized="false"
  69230. static="false" final="false" visibility="public"
  69231. deprecated="not deprecated">
  69232. <param name="in" type="java.io.DataInput"/>
  69233. <exception name="IOException" type="java.io.IOException"/>
  69234. </method>
  69235. <method name="write"
  69236. abstract="false" native="false" synchronized="false"
  69237. static="false" final="false" visibility="public"
  69238. deprecated="not deprecated">
  69239. <param name="out" type="java.io.DataOutput"/>
  69240. <exception name="IOException" type="java.io.IOException"/>
  69241. </method>
  69242. <method name="toString" return="java.lang.String"
  69243. abstract="false" native="false" synchronized="false"
  69244. static="false" final="false" visibility="public"
  69245. deprecated="not deprecated">
  69246. </method>
  69247. <doc>
  69248. <![CDATA[A sub-collection of input files.
  69249. Unlike {@link FileSplit}, CombineFileSplit class does not represent
  69250. a split of a file, but a split of input files into smaller sets.
  69251. A split may contain blocks from different file but all
  69252. the blocks in the same split are probably local to some rack <br>
  69253. CombineFileSplit can be used to implement {@link RecordReader}'s,
  69254. with reading one record per file.
  69255. @see FileSplit
  69256. @see CombineFileInputFormat]]>
  69257. </doc>
  69258. </class>
  69259. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  69260. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  69261. <class name="DelegatingInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  69262. abstract="false"
  69263. static="false" final="false" visibility="public"
  69264. deprecated="not deprecated">
  69265. <constructor name="DelegatingInputFormat"
  69266. static="false" final="false" visibility="public"
  69267. deprecated="not deprecated">
  69268. </constructor>
  69269. <method name="getSplits" return="java.util.List"
  69270. abstract="false" native="false" synchronized="false"
  69271. static="false" final="false" visibility="public"
  69272. deprecated="not deprecated">
  69273. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69274. <exception name="IOException" type="java.io.IOException"/>
  69275. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69276. </method>
  69277. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69278. abstract="false" native="false" synchronized="false"
  69279. static="false" final="false" visibility="public"
  69280. deprecated="not deprecated">
  69281. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69282. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69283. <exception name="IOException" type="java.io.IOException"/>
  69284. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69285. </method>
  69286. <doc>
  69287. <![CDATA[An {@link InputFormat} that delegates behavior of paths to multiple other
  69288. InputFormats.
  69289. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  69290. </doc>
  69291. </class>
  69292. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  69293. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  69294. <class name="DelegatingMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  69295. abstract="false"
  69296. static="false" final="false" visibility="public"
  69297. deprecated="not deprecated">
  69298. <constructor name="DelegatingMapper"
  69299. static="false" final="false" visibility="public"
  69300. deprecated="not deprecated">
  69301. </constructor>
  69302. <method name="setup"
  69303. abstract="false" native="false" synchronized="false"
  69304. static="false" final="false" visibility="protected"
  69305. deprecated="not deprecated">
  69306. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69307. <exception name="IOException" type="java.io.IOException"/>
  69308. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69309. </method>
  69310. <method name="run"
  69311. abstract="false" native="false" synchronized="false"
  69312. static="false" final="false" visibility="public"
  69313. deprecated="not deprecated">
  69314. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69315. <exception name="IOException" type="java.io.IOException"/>
  69316. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69317. </method>
  69318. <doc>
  69319. <![CDATA[An {@link Mapper} that delegates behavior of paths to multiple other
  69320. mappers.
  69321. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  69322. </doc>
  69323. </class>
  69324. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  69325. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  69326. <class name="DelegatingRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  69327. abstract="false"
  69328. static="false" final="false" visibility="public"
  69329. deprecated="not deprecated">
  69330. <constructor name="DelegatingRecordReader" type="org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext"
  69331. static="false" final="false" visibility="public"
  69332. deprecated="not deprecated">
  69333. <exception name="IOException" type="java.io.IOException"/>
  69334. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69335. <doc>
  69336. <![CDATA[Constructs the DelegatingRecordReader.
  69337. @param split TaggegInputSplit object
  69338. @param context TaskAttemptContext object
  69339. @throws IOException
  69340. @throws InterruptedException]]>
  69341. </doc>
  69342. </constructor>
  69343. <method name="close"
  69344. abstract="false" native="false" synchronized="false"
  69345. static="false" final="false" visibility="public"
  69346. deprecated="not deprecated">
  69347. <exception name="IOException" type="java.io.IOException"/>
  69348. </method>
  69349. <method name="getCurrentKey" return="java.lang.Object"
  69350. abstract="false" native="false" synchronized="false"
  69351. static="false" final="false" visibility="public"
  69352. deprecated="not deprecated">
  69353. <exception name="IOException" type="java.io.IOException"/>
  69354. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69355. </method>
  69356. <method name="getCurrentValue" return="java.lang.Object"
  69357. abstract="false" native="false" synchronized="false"
  69358. static="false" final="false" visibility="public"
  69359. deprecated="not deprecated">
  69360. <exception name="IOException" type="java.io.IOException"/>
  69361. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69362. </method>
  69363. <method name="getProgress" return="float"
  69364. abstract="false" native="false" synchronized="false"
  69365. static="false" final="false" visibility="public"
  69366. deprecated="not deprecated">
  69367. <exception name="IOException" type="java.io.IOException"/>
  69368. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69369. </method>
  69370. <method name="initialize"
  69371. abstract="false" native="false" synchronized="false"
  69372. static="false" final="false" visibility="public"
  69373. deprecated="not deprecated">
  69374. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69375. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69376. <exception name="IOException" type="java.io.IOException"/>
  69377. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69378. </method>
  69379. <method name="nextKeyValue" return="boolean"
  69380. abstract="false" native="false" synchronized="false"
  69381. static="false" final="false" visibility="public"
  69382. deprecated="not deprecated">
  69383. <exception name="IOException" type="java.io.IOException"/>
  69384. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69385. </method>
  69386. <doc>
  69387. <![CDATA[This is a delegating RecordReader, which delegates the functionality to the
  69388. underlying record reader in {@link TaggedInputSplit}]]>
  69389. </doc>
  69390. </class>
  69391. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  69392. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  69393. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  69394. abstract="true"
  69395. static="false" final="false" visibility="public"
  69396. deprecated="not deprecated">
  69397. <constructor name="FileInputFormat"
  69398. static="false" final="false" visibility="public"
  69399. deprecated="not deprecated">
  69400. </constructor>
  69401. <method name="getFormatMinSplitSize" return="long"
  69402. abstract="false" native="false" synchronized="false"
  69403. static="false" final="false" visibility="protected"
  69404. deprecated="not deprecated">
  69405. <doc>
  69406. <![CDATA[Get the lower bound on split size imposed by the format.
  69407. @return the number of bytes of the minimal split for this format]]>
  69408. </doc>
  69409. </method>
  69410. <method name="isSplitable" return="boolean"
  69411. abstract="false" native="false" synchronized="false"
  69412. static="false" final="false" visibility="protected"
  69413. deprecated="not deprecated">
  69414. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69415. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  69416. <doc>
  69417. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  69418. stream compressed, it will not be.
  69419. <code>FileInputFormat</code> implementations can override this and return
  69420. <code>false</code> to ensure that individual input files are never split-up
  69421. so that {@link Mapper}s process entire files.
  69422. @param context the job context
  69423. @param filename the file name to check
  69424. @return is this file splitable?]]>
  69425. </doc>
  69426. </method>
  69427. <method name="setInputPathFilter"
  69428. abstract="false" native="false" synchronized="false"
  69429. static="true" final="false" visibility="public"
  69430. deprecated="not deprecated">
  69431. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69432. <param name="filter" type="java.lang.Class"/>
  69433. <doc>
  69434. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  69435. @param job the job to modify
  69436. @param filter the PathFilter class use for filtering the input paths.]]>
  69437. </doc>
  69438. </method>
  69439. <method name="setMinInputSplitSize"
  69440. abstract="false" native="false" synchronized="false"
  69441. static="true" final="false" visibility="public"
  69442. deprecated="not deprecated">
  69443. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69444. <param name="size" type="long"/>
  69445. <doc>
  69446. <![CDATA[Set the minimum input split size
  69447. @param job the job to modify
  69448. @param size the minimum size]]>
  69449. </doc>
  69450. </method>
  69451. <method name="getMinSplitSize" return="long"
  69452. abstract="false" native="false" synchronized="false"
  69453. static="true" final="false" visibility="public"
  69454. deprecated="not deprecated">
  69455. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69456. <doc>
  69457. <![CDATA[Get the minimum split size
  69458. @param job the job
  69459. @return the minimum number of bytes that can be in a split]]>
  69460. </doc>
  69461. </method>
  69462. <method name="setMaxInputSplitSize"
  69463. abstract="false" native="false" synchronized="false"
  69464. static="true" final="false" visibility="public"
  69465. deprecated="not deprecated">
  69466. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69467. <param name="size" type="long"/>
  69468. <doc>
  69469. <![CDATA[Set the maximum split size
  69470. @param job the job to modify
  69471. @param size the maximum split size]]>
  69472. </doc>
  69473. </method>
  69474. <method name="getMaxSplitSize" return="long"
  69475. abstract="false" native="false" synchronized="false"
  69476. static="true" final="false" visibility="public"
  69477. deprecated="not deprecated">
  69478. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69479. <doc>
  69480. <![CDATA[Get the maximum split size.
  69481. @param context the job to look at.
  69482. @return the maximum number of bytes a split can include]]>
  69483. </doc>
  69484. </method>
  69485. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  69486. abstract="false" native="false" synchronized="false"
  69487. static="true" final="false" visibility="public"
  69488. deprecated="not deprecated">
  69489. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69490. <doc>
  69491. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  69492. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  69493. </doc>
  69494. </method>
  69495. <method name="listStatus" return="java.util.List"
  69496. abstract="false" native="false" synchronized="false"
  69497. static="false" final="false" visibility="protected"
  69498. deprecated="not deprecated">
  69499. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69500. <exception name="IOException" type="java.io.IOException"/>
  69501. <doc>
  69502. <![CDATA[List input directories.
  69503. Subclasses may override to, e.g., select only files matching a regular
  69504. expression.
  69505. @param job the job to list input paths for
  69506. @return array of FileStatus objects
  69507. @throws IOException if zero items.]]>
  69508. </doc>
  69509. </method>
  69510. <method name="getSplits" return="java.util.List"
  69511. abstract="false" native="false" synchronized="false"
  69512. static="false" final="false" visibility="public"
  69513. deprecated="not deprecated">
  69514. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69515. <exception name="IOException" type="java.io.IOException"/>
  69516. <doc>
  69517. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  69518. </doc>
  69519. </method>
  69520. <method name="computeSplitSize" return="long"
  69521. abstract="false" native="false" synchronized="false"
  69522. static="false" final="false" visibility="protected"
  69523. deprecated="not deprecated">
  69524. <param name="blockSize" type="long"/>
  69525. <param name="minSize" type="long"/>
  69526. <param name="maxSize" type="long"/>
  69527. </method>
  69528. <method name="getBlockIndex" return="int"
  69529. abstract="false" native="false" synchronized="false"
  69530. static="false" final="false" visibility="protected"
  69531. deprecated="not deprecated">
  69532. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  69533. <param name="offset" type="long"/>
  69534. </method>
  69535. <method name="setInputPaths"
  69536. abstract="false" native="false" synchronized="false"
  69537. static="true" final="false" visibility="public"
  69538. deprecated="not deprecated">
  69539. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69540. <param name="commaSeparatedPaths" type="java.lang.String"/>
  69541. <exception name="IOException" type="java.io.IOException"/>
  69542. <doc>
  69543. <![CDATA[Sets the given comma separated paths as the list of inputs
  69544. for the map-reduce job.
  69545. @param job the job
  69546. @param commaSeparatedPaths Comma separated paths to be set as
  69547. the list of inputs for the map-reduce job.]]>
  69548. </doc>
  69549. </method>
  69550. <method name="addInputPaths"
  69551. abstract="false" native="false" synchronized="false"
  69552. static="true" final="false" visibility="public"
  69553. deprecated="not deprecated">
  69554. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69555. <param name="commaSeparatedPaths" type="java.lang.String"/>
  69556. <exception name="IOException" type="java.io.IOException"/>
  69557. <doc>
  69558. <![CDATA[Add the given comma separated paths to the list of inputs for
  69559. the map-reduce job.
  69560. @param job The job to modify
  69561. @param commaSeparatedPaths Comma separated paths to be added to
  69562. the list of inputs for the map-reduce job.]]>
  69563. </doc>
  69564. </method>
  69565. <method name="setInputPaths"
  69566. abstract="false" native="false" synchronized="false"
  69567. static="true" final="false" visibility="public"
  69568. deprecated="not deprecated">
  69569. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69570. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  69571. <exception name="IOException" type="java.io.IOException"/>
  69572. <doc>
  69573. <![CDATA[Set the array of {@link Path}s as the list of inputs
  69574. for the map-reduce job.
  69575. @param job The job to modify
  69576. @param inputPaths the {@link Path}s of the input directories/files
  69577. for the map-reduce job.]]>
  69578. </doc>
  69579. </method>
  69580. <method name="addInputPath"
  69581. abstract="false" native="false" synchronized="false"
  69582. static="true" final="false" visibility="public"
  69583. deprecated="not deprecated">
  69584. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69585. <param name="path" type="org.apache.hadoop.fs.Path"/>
  69586. <exception name="IOException" type="java.io.IOException"/>
  69587. <doc>
  69588. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  69589. @param job The {@link Job} to modify
  69590. @param path {@link Path} to be added to the list of inputs for
  69591. the map-reduce job.]]>
  69592. </doc>
  69593. </method>
  69594. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  69595. abstract="false" native="false" synchronized="false"
  69596. static="true" final="false" visibility="public"
  69597. deprecated="not deprecated">
  69598. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69599. <doc>
  69600. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  69601. @param context The job
  69602. @return the list of input {@link Path}s for the map-reduce job.]]>
  69603. </doc>
  69604. </method>
  69605. <doc>
  69606. <![CDATA[A base class for file-based {@link InputFormat}s.
  69607. <p><code>FileInputFormat</code> is the base class for all file-based
  69608. <code>InputFormat</code>s. This provides a generic implementation of
  69609. {@link #getSplits(JobContext)}.
  69610. Subclasses of <code>FileInputFormat</code> can also override the
  69611. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  69612. not split-up and are processed as a whole by {@link Mapper}s.]]>
  69613. </doc>
  69614. </class>
  69615. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  69616. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  69617. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  69618. abstract="false"
  69619. static="true" final="true" visibility="public"
  69620. deprecated="not deprecated">
  69621. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  69622. abstract="false" native="false" synchronized="false"
  69623. static="true" final="false" visibility="public"
  69624. deprecated="not deprecated">
  69625. </method>
  69626. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  69627. abstract="false" native="false" synchronized="false"
  69628. static="true" final="false" visibility="public"
  69629. deprecated="not deprecated">
  69630. <param name="name" type="java.lang.String"/>
  69631. </method>
  69632. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  69633. transient="false" volatile="false"
  69634. static="true" final="true" visibility="public"
  69635. deprecated="not deprecated">
  69636. </field>
  69637. </class>
  69638. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  69639. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  69640. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  69641. abstract="false"
  69642. static="false" final="false" visibility="public"
  69643. deprecated="not deprecated">
  69644. <implements name="org.apache.hadoop.io.Writable"/>
  69645. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  69646. static="false" final="false" visibility="public"
  69647. deprecated="not deprecated">
  69648. <doc>
  69649. <![CDATA[Constructs a split with host information
  69650. @param file the file name
  69651. @param start the position of the first byte in the file to process
  69652. @param length the number of bytes in the file to process
  69653. @param hosts the list of hosts containing the block, possibly null]]>
  69654. </doc>
  69655. </constructor>
  69656. <method name="getPath" return="org.apache.hadoop.fs.Path"
  69657. abstract="false" native="false" synchronized="false"
  69658. static="false" final="false" visibility="public"
  69659. deprecated="not deprecated">
  69660. <doc>
  69661. <![CDATA[The file containing this split's data.]]>
  69662. </doc>
  69663. </method>
  69664. <method name="getStart" return="long"
  69665. abstract="false" native="false" synchronized="false"
  69666. static="false" final="false" visibility="public"
  69667. deprecated="not deprecated">
  69668. <doc>
  69669. <![CDATA[The position of the first byte in the file to process.]]>
  69670. </doc>
  69671. </method>
  69672. <method name="getLength" return="long"
  69673. abstract="false" native="false" synchronized="false"
  69674. static="false" final="false" visibility="public"
  69675. deprecated="not deprecated">
  69676. <doc>
  69677. <![CDATA[The number of bytes in the file to process.]]>
  69678. </doc>
  69679. </method>
  69680. <method name="toString" return="java.lang.String"
  69681. abstract="false" native="false" synchronized="false"
  69682. static="false" final="false" visibility="public"
  69683. deprecated="not deprecated">
  69684. </method>
  69685. <method name="write"
  69686. abstract="false" native="false" synchronized="false"
  69687. static="false" final="false" visibility="public"
  69688. deprecated="not deprecated">
  69689. <param name="out" type="java.io.DataOutput"/>
  69690. <exception name="IOException" type="java.io.IOException"/>
  69691. </method>
  69692. <method name="readFields"
  69693. abstract="false" native="false" synchronized="false"
  69694. static="false" final="false" visibility="public"
  69695. deprecated="not deprecated">
  69696. <param name="in" type="java.io.DataInput"/>
  69697. <exception name="IOException" type="java.io.IOException"/>
  69698. </method>
  69699. <method name="getLocations" return="java.lang.String[]"
  69700. abstract="false" native="false" synchronized="false"
  69701. static="false" final="false" visibility="public"
  69702. deprecated="not deprecated">
  69703. <exception name="IOException" type="java.io.IOException"/>
  69704. </method>
  69705. <doc>
  69706. <![CDATA[A section of an input file. Returned by {@link
  69707. InputFormat#getSplits(JobContext)} and passed to
  69708. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  69709. </doc>
  69710. </class>
  69711. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  69712. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  69713. <class name="InvalidInputException" extends="java.io.IOException"
  69714. abstract="false"
  69715. static="false" final="false" visibility="public"
  69716. deprecated="not deprecated">
  69717. <constructor name="InvalidInputException" type="java.util.List"
  69718. static="false" final="false" visibility="public"
  69719. deprecated="not deprecated">
  69720. <doc>
  69721. <![CDATA[Create the exception with the given list.
  69722. @param probs the list of problems to report. this list is not copied.]]>
  69723. </doc>
  69724. </constructor>
  69725. <method name="getProblems" return="java.util.List"
  69726. abstract="false" native="false" synchronized="false"
  69727. static="false" final="false" visibility="public"
  69728. deprecated="not deprecated">
  69729. <doc>
  69730. <![CDATA[Get the complete list of the problems reported.
  69731. @return the list of problems, which must not be modified]]>
  69732. </doc>
  69733. </method>
  69734. <method name="getMessage" return="java.lang.String"
  69735. abstract="false" native="false" synchronized="false"
  69736. static="false" final="false" visibility="public"
  69737. deprecated="not deprecated">
  69738. <doc>
  69739. <![CDATA[Get a summary message of the problems found.
  69740. @return the concatenated messages from all of the problems.]]>
  69741. </doc>
  69742. </method>
  69743. <doc>
  69744. <![CDATA[This class wraps a list of problems with the input, so that the user
  69745. can get a list of problems together instead of finding and fixing them one
  69746. by one.]]>
  69747. </doc>
  69748. </class>
  69749. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  69750. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  69751. <class name="KeyValueLineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  69752. abstract="false"
  69753. static="false" final="false" visibility="public"
  69754. deprecated="not deprecated">
  69755. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration"
  69756. static="false" final="false" visibility="public"
  69757. deprecated="not deprecated">
  69758. <exception name="IOException" type="java.io.IOException"/>
  69759. </constructor>
  69760. <method name="getKeyClass" return="java.lang.Class"
  69761. abstract="false" native="false" synchronized="false"
  69762. static="false" final="false" visibility="public"
  69763. deprecated="not deprecated">
  69764. </method>
  69765. <method name="initialize"
  69766. abstract="false" native="false" synchronized="false"
  69767. static="false" final="false" visibility="public"
  69768. deprecated="not deprecated">
  69769. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69770. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69771. <exception name="IOException" type="java.io.IOException"/>
  69772. </method>
  69773. <method name="findSeparator" return="int"
  69774. abstract="false" native="false" synchronized="false"
  69775. static="true" final="false" visibility="public"
  69776. deprecated="not deprecated">
  69777. <param name="utf" type="byte[]"/>
  69778. <param name="start" type="int"/>
  69779. <param name="length" type="int"/>
  69780. <param name="sep" type="byte"/>
  69781. </method>
  69782. <method name="setKeyValue"
  69783. abstract="false" native="false" synchronized="false"
  69784. static="true" final="false" visibility="public"
  69785. deprecated="not deprecated">
  69786. <param name="key" type="org.apache.hadoop.io.Text"/>
  69787. <param name="value" type="org.apache.hadoop.io.Text"/>
  69788. <param name="line" type="byte[]"/>
  69789. <param name="lineLen" type="int"/>
  69790. <param name="pos" type="int"/>
  69791. </method>
  69792. <method name="nextKeyValue" return="boolean"
  69793. abstract="false" native="false" synchronized="true"
  69794. static="false" final="false" visibility="public"
  69795. deprecated="not deprecated">
  69796. <exception name="IOException" type="java.io.IOException"/>
  69797. <doc>
  69798. <![CDATA[Read key/value pair in a line.]]>
  69799. </doc>
  69800. </method>
  69801. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  69802. abstract="false" native="false" synchronized="false"
  69803. static="false" final="false" visibility="public"
  69804. deprecated="not deprecated">
  69805. </method>
  69806. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  69807. abstract="false" native="false" synchronized="false"
  69808. static="false" final="false" visibility="public"
  69809. deprecated="not deprecated">
  69810. </method>
  69811. <method name="getProgress" return="float"
  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. </method>
  69817. <method name="close"
  69818. abstract="false" native="false" synchronized="true"
  69819. static="false" final="false" visibility="public"
  69820. deprecated="not deprecated">
  69821. <exception name="IOException" type="java.io.IOException"/>
  69822. </method>
  69823. <field name="KEY_VALUE_SEPERATOR" type="java.lang.String"
  69824. transient="false" volatile="false"
  69825. static="true" final="true" visibility="public"
  69826. deprecated="not deprecated">
  69827. </field>
  69828. <doc>
  69829. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  69830. separator character. The separator can be specified in config file
  69831. under the attribute name mapreduce.input.keyvaluelinerecordreader.key.value.separator. The default
  69832. separator is the tab character ('\t').]]>
  69833. </doc>
  69834. </class>
  69835. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  69836. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  69837. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  69838. abstract="false"
  69839. static="false" final="false" visibility="public"
  69840. deprecated="not deprecated">
  69841. <constructor name="KeyValueTextInputFormat"
  69842. static="false" final="false" visibility="public"
  69843. deprecated="not deprecated">
  69844. </constructor>
  69845. <method name="isSplitable" return="boolean"
  69846. abstract="false" native="false" synchronized="false"
  69847. static="false" final="false" visibility="protected"
  69848. deprecated="not deprecated">
  69849. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69850. <param name="file" type="org.apache.hadoop.fs.Path"/>
  69851. </method>
  69852. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69853. abstract="false" native="false" synchronized="false"
  69854. static="false" final="false" visibility="public"
  69855. deprecated="not deprecated">
  69856. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69857. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69858. <exception name="IOException" type="java.io.IOException"/>
  69859. </method>
  69860. <doc>
  69861. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  69862. Either line feed or carriage-return are used to signal end of line.
  69863. Each line is divided into key and value parts by a separator byte. If no
  69864. such a byte exists, the key will be the entire line and value will be empty.]]>
  69865. </doc>
  69866. </class>
  69867. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  69868. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  69869. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  69870. abstract="false"
  69871. static="false" final="false" visibility="public"
  69872. deprecated="not deprecated">
  69873. <constructor name="LineRecordReader"
  69874. static="false" final="false" visibility="public"
  69875. deprecated="not deprecated">
  69876. </constructor>
  69877. <method name="initialize"
  69878. abstract="false" native="false" synchronized="false"
  69879. static="false" final="false" visibility="public"
  69880. deprecated="not deprecated">
  69881. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69882. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69883. <exception name="IOException" type="java.io.IOException"/>
  69884. </method>
  69885. <method name="nextKeyValue" return="boolean"
  69886. abstract="false" native="false" synchronized="false"
  69887. static="false" final="false" visibility="public"
  69888. deprecated="not deprecated">
  69889. <exception name="IOException" type="java.io.IOException"/>
  69890. </method>
  69891. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  69892. abstract="false" native="false" synchronized="false"
  69893. static="false" final="false" visibility="public"
  69894. deprecated="not deprecated">
  69895. </method>
  69896. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  69897. abstract="false" native="false" synchronized="false"
  69898. static="false" final="false" visibility="public"
  69899. deprecated="not deprecated">
  69900. </method>
  69901. <method name="getProgress" return="float"
  69902. abstract="false" native="false" synchronized="false"
  69903. static="false" final="false" visibility="public"
  69904. deprecated="not deprecated">
  69905. <doc>
  69906. <![CDATA[Get the progress within the split]]>
  69907. </doc>
  69908. </method>
  69909. <method name="close"
  69910. abstract="false" native="false" synchronized="true"
  69911. static="false" final="false" visibility="public"
  69912. deprecated="not deprecated">
  69913. <exception name="IOException" type="java.io.IOException"/>
  69914. </method>
  69915. <doc>
  69916. <![CDATA[Treats keys as offset in file and value as line.]]>
  69917. </doc>
  69918. </class>
  69919. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  69920. <!-- start class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  69921. <class name="MultipleInputs" extends="java.lang.Object"
  69922. abstract="false"
  69923. static="false" final="false" visibility="public"
  69924. deprecated="not deprecated">
  69925. <constructor name="MultipleInputs"
  69926. static="false" final="false" visibility="public"
  69927. deprecated="not deprecated">
  69928. </constructor>
  69929. <method name="addInputPath"
  69930. abstract="false" native="false" synchronized="false"
  69931. static="true" final="false" visibility="public"
  69932. deprecated="not deprecated">
  69933. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69934. <param name="path" type="org.apache.hadoop.fs.Path"/>
  69935. <param name="inputFormatClass" type="java.lang.Class"/>
  69936. <doc>
  69937. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  69938. inputs for the map-reduce job.
  69939. @param job The {@link Job}
  69940. @param path {@link Path} to be added to the list of inputs for the job
  69941. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  69942. </doc>
  69943. </method>
  69944. <method name="addInputPath"
  69945. abstract="false" native="false" synchronized="false"
  69946. static="true" final="false" visibility="public"
  69947. deprecated="not deprecated">
  69948. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69949. <param name="path" type="org.apache.hadoop.fs.Path"/>
  69950. <param name="inputFormatClass" type="java.lang.Class"/>
  69951. <param name="mapperClass" type="java.lang.Class"/>
  69952. <doc>
  69953. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  69954. {@link Mapper} to the list of inputs for the map-reduce job.
  69955. @param job The {@link Job}
  69956. @param path {@link Path} to be added to the list of inputs for the job
  69957. @param inputFormatClass {@link InputFormat} class to use for this path
  69958. @param mapperClass {@link Mapper} class to use for this path]]>
  69959. </doc>
  69960. </method>
  69961. <field name="DIR_FORMATS" type="java.lang.String"
  69962. transient="false" volatile="false"
  69963. static="true" final="true" visibility="public"
  69964. deprecated="not deprecated">
  69965. </field>
  69966. <field name="DIR_MAPPERS" type="java.lang.String"
  69967. transient="false" volatile="false"
  69968. static="true" final="true" visibility="public"
  69969. deprecated="not deprecated">
  69970. </field>
  69971. <doc>
  69972. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  69973. a different {@link InputFormat} and {@link Mapper} for each path]]>
  69974. </doc>
  69975. </class>
  69976. <!-- end class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  69977. <!-- start class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  69978. <class name="NLineInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  69979. abstract="false"
  69980. static="false" final="false" visibility="public"
  69981. deprecated="not deprecated">
  69982. <constructor name="NLineInputFormat"
  69983. static="false" final="false" visibility="public"
  69984. deprecated="not deprecated">
  69985. </constructor>
  69986. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69987. abstract="false" native="false" synchronized="false"
  69988. static="false" final="false" visibility="public"
  69989. deprecated="not deprecated">
  69990. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69991. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69992. <exception name="IOException" type="java.io.IOException"/>
  69993. </method>
  69994. <method name="getSplits" return="java.util.List"
  69995. abstract="false" native="false" synchronized="false"
  69996. static="false" final="false" visibility="public"
  69997. deprecated="not deprecated">
  69998. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69999. <exception name="IOException" type="java.io.IOException"/>
  70000. <doc>
  70001. <![CDATA[Logically splits the set of input files for the job, splits N lines
  70002. of the input as one split.
  70003. @see FileInputFormat#getSplits(JobContext)]]>
  70004. </doc>
  70005. </method>
  70006. <method name="getSplitsForFile" return="java.util.List"
  70007. abstract="false" native="false" synchronized="false"
  70008. static="true" final="false" visibility="public"
  70009. deprecated="not deprecated">
  70010. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  70011. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70012. <param name="numLinesPerSplit" type="int"/>
  70013. <exception name="IOException" type="java.io.IOException"/>
  70014. </method>
  70015. <method name="setNumLinesPerSplit"
  70016. abstract="false" native="false" synchronized="false"
  70017. static="true" final="false" visibility="public"
  70018. deprecated="not deprecated">
  70019. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70020. <param name="numLines" type="int"/>
  70021. <doc>
  70022. <![CDATA[Set the number of lines per split
  70023. @param job the job to modify
  70024. @param numLines the number of lines per split]]>
  70025. </doc>
  70026. </method>
  70027. <method name="getNumLinesPerSplit" return="int"
  70028. abstract="false" native="false" synchronized="false"
  70029. static="true" final="false" visibility="public"
  70030. deprecated="not deprecated">
  70031. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70032. <doc>
  70033. <![CDATA[Get the number of lines per split
  70034. @param job the job
  70035. @return the number of lines per split]]>
  70036. </doc>
  70037. </method>
  70038. <field name="LINES_PER_MAP" type="java.lang.String"
  70039. transient="false" volatile="false"
  70040. static="true" final="true" visibility="public"
  70041. deprecated="not deprecated">
  70042. </field>
  70043. <doc>
  70044. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  70045. In many "pleasantly" parallel applications, each process/mapper
  70046. processes the same input file (s), but with computations are
  70047. controlled by different parameters.(Referred to as "parameter sweeps").
  70048. One way to achieve this, is to specify a set of parameters
  70049. (one set per line) as input in a control file
  70050. (which is the input path to the map-reduce application,
  70051. where as the input dataset is specified
  70052. via a config variable in JobConf.).
  70053. The NLineInputFormat can be used in such applications, that splits
  70054. the input file such that by default, one line is fed as
  70055. a value to one map task, and key is the offset.
  70056. i.e. (k,v) is (LongWritable, Text).
  70057. The location hints will span the whole mapred cluster.]]>
  70058. </doc>
  70059. </class>
  70060. <!-- end class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  70061. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  70062. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  70063. abstract="false"
  70064. static="false" final="false" visibility="public"
  70065. deprecated="not deprecated">
  70066. <constructor name="SequenceFileAsBinaryInputFormat"
  70067. static="false" final="false" visibility="public"
  70068. deprecated="not deprecated">
  70069. </constructor>
  70070. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70071. abstract="false" native="false" synchronized="false"
  70072. static="false" final="false" visibility="public"
  70073. deprecated="not deprecated">
  70074. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70075. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70076. <exception name="IOException" type="java.io.IOException"/>
  70077. </method>
  70078. <doc>
  70079. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  70080. format.]]>
  70081. </doc>
  70082. </class>
  70083. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  70084. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  70085. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70086. abstract="false"
  70087. static="true" final="false" visibility="public"
  70088. deprecated="not deprecated">
  70089. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader"
  70090. static="false" final="false" visibility="public"
  70091. deprecated="not deprecated">
  70092. </constructor>
  70093. <method name="initialize"
  70094. abstract="false" native="false" synchronized="false"
  70095. static="false" final="false" visibility="public"
  70096. deprecated="not deprecated">
  70097. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70098. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70099. <exception name="IOException" type="java.io.IOException"/>
  70100. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70101. </method>
  70102. <method name="getCurrentKey" return="org.apache.hadoop.io.BytesWritable"
  70103. abstract="false" native="false" synchronized="false"
  70104. static="false" final="false" visibility="public"
  70105. deprecated="not deprecated">
  70106. <exception name="IOException" type="java.io.IOException"/>
  70107. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70108. </method>
  70109. <method name="getCurrentValue" return="org.apache.hadoop.io.BytesWritable"
  70110. abstract="false" native="false" synchronized="false"
  70111. static="false" final="false" visibility="public"
  70112. deprecated="not deprecated">
  70113. <exception name="IOException" type="java.io.IOException"/>
  70114. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70115. </method>
  70116. <method name="getKeyClassName" return="java.lang.String"
  70117. abstract="false" native="false" synchronized="false"
  70118. static="false" final="false" visibility="public"
  70119. deprecated="not deprecated">
  70120. <doc>
  70121. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  70122. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  70123. </doc>
  70124. </method>
  70125. <method name="getValueClassName" return="java.lang.String"
  70126. abstract="false" native="false" synchronized="false"
  70127. static="false" final="false" visibility="public"
  70128. deprecated="not deprecated">
  70129. <doc>
  70130. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  70131. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  70132. </doc>
  70133. </method>
  70134. <method name="nextKeyValue" return="boolean"
  70135. abstract="false" native="false" synchronized="true"
  70136. static="false" final="false" visibility="public"
  70137. deprecated="not deprecated">
  70138. <exception name="IOException" type="java.io.IOException"/>
  70139. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70140. <doc>
  70141. <![CDATA[Read raw bytes from a SequenceFile.]]>
  70142. </doc>
  70143. </method>
  70144. <method name="close"
  70145. abstract="false" native="false" synchronized="false"
  70146. static="false" final="false" visibility="public"
  70147. deprecated="not deprecated">
  70148. <exception name="IOException" type="java.io.IOException"/>
  70149. </method>
  70150. <method name="getProgress" return="float"
  70151. abstract="false" native="false" synchronized="false"
  70152. static="false" final="false" visibility="public"
  70153. deprecated="not deprecated">
  70154. <exception name="IOException" type="java.io.IOException"/>
  70155. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70156. <doc>
  70157. <![CDATA[Return the progress within the input split
  70158. @return 0.0 to 1.0 of the input byte range]]>
  70159. </doc>
  70160. </method>
  70161. <doc>
  70162. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  70163. </doc>
  70164. </class>
  70165. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  70166. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  70167. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  70168. abstract="false"
  70169. static="false" final="false" visibility="public"
  70170. deprecated="not deprecated">
  70171. <constructor name="SequenceFileAsTextInputFormat"
  70172. static="false" final="false" visibility="public"
  70173. deprecated="not deprecated">
  70174. </constructor>
  70175. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70176. abstract="false" native="false" synchronized="false"
  70177. static="false" final="false" visibility="public"
  70178. deprecated="not deprecated">
  70179. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70180. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70181. <exception name="IOException" type="java.io.IOException"/>
  70182. </method>
  70183. <doc>
  70184. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates
  70185. SequenceFileAsTextRecordReader which converts the input keys and values
  70186. to their String forms by calling toString() method.]]>
  70187. </doc>
  70188. </class>
  70189. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  70190. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  70191. <class name="SequenceFileAsTextRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70192. abstract="false"
  70193. static="false" final="false" visibility="public"
  70194. deprecated="not deprecated">
  70195. <constructor name="SequenceFileAsTextRecordReader"
  70196. static="false" final="false" visibility="public"
  70197. deprecated="not deprecated">
  70198. <exception name="IOException" type="java.io.IOException"/>
  70199. </constructor>
  70200. <method name="initialize"
  70201. abstract="false" native="false" synchronized="false"
  70202. static="false" final="false" visibility="public"
  70203. deprecated="not deprecated">
  70204. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70205. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70206. <exception name="IOException" type="java.io.IOException"/>
  70207. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70208. </method>
  70209. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  70210. abstract="false" native="false" synchronized="false"
  70211. static="false" final="false" visibility="public"
  70212. deprecated="not deprecated">
  70213. <exception name="IOException" type="java.io.IOException"/>
  70214. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70215. </method>
  70216. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  70217. abstract="false" native="false" synchronized="false"
  70218. static="false" final="false" visibility="public"
  70219. deprecated="not deprecated">
  70220. <exception name="IOException" type="java.io.IOException"/>
  70221. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70222. </method>
  70223. <method name="nextKeyValue" return="boolean"
  70224. abstract="false" native="false" synchronized="true"
  70225. static="false" final="false" visibility="public"
  70226. deprecated="not deprecated">
  70227. <exception name="IOException" type="java.io.IOException"/>
  70228. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70229. <doc>
  70230. <![CDATA[Read key/value pair in a line.]]>
  70231. </doc>
  70232. </method>
  70233. <method name="getProgress" return="float"
  70234. abstract="false" native="false" synchronized="false"
  70235. static="false" final="false" visibility="public"
  70236. deprecated="not deprecated">
  70237. <exception name="IOException" type="java.io.IOException"/>
  70238. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70239. </method>
  70240. <method name="close"
  70241. abstract="false" native="false" synchronized="true"
  70242. static="false" final="false" visibility="public"
  70243. deprecated="not deprecated">
  70244. <exception name="IOException" type="java.io.IOException"/>
  70245. </method>
  70246. <doc>
  70247. <![CDATA[This class converts the input keys and values to their String forms by
  70248. calling toString() method. This class to SequenceFileAsTextInputFormat
  70249. class is as LineRecordReader class to TextInputFormat class.]]>
  70250. </doc>
  70251. </class>
  70252. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  70253. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  70254. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  70255. abstract="false"
  70256. static="false" final="false" visibility="public"
  70257. deprecated="not deprecated">
  70258. <constructor name="SequenceFileInputFilter"
  70259. static="false" final="false" visibility="public"
  70260. deprecated="not deprecated">
  70261. </constructor>
  70262. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70263. abstract="false" native="false" synchronized="false"
  70264. static="false" final="false" visibility="public"
  70265. deprecated="not deprecated">
  70266. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70267. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70268. <exception name="IOException" type="java.io.IOException"/>
  70269. <doc>
  70270. <![CDATA[Create a record reader for the given split
  70271. @param split file split
  70272. @param context the task-attempt context
  70273. @return RecordReader]]>
  70274. </doc>
  70275. </method>
  70276. <method name="setFilterClass"
  70277. abstract="false" native="false" synchronized="false"
  70278. static="true" final="false" visibility="public"
  70279. deprecated="not deprecated">
  70280. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70281. <param name="filterClass" type="java.lang.Class"/>
  70282. <doc>
  70283. <![CDATA[set the filter class
  70284. @param job The job
  70285. @param filterClass filter class]]>
  70286. </doc>
  70287. </method>
  70288. <field name="LOG" type="org.apache.commons.logging.Log"
  70289. transient="false" volatile="false"
  70290. static="true" final="true" visibility="public"
  70291. deprecated="not deprecated">
  70292. </field>
  70293. <field name="FILTER_CLASS" type="java.lang.String"
  70294. transient="false" volatile="false"
  70295. static="true" final="true" visibility="public"
  70296. deprecated="not deprecated">
  70297. </field>
  70298. <field name="FILTER_FREQUENCY" type="java.lang.String"
  70299. transient="false" volatile="false"
  70300. static="true" final="true" visibility="public"
  70301. deprecated="not deprecated">
  70302. </field>
  70303. <field name="FILTER_REGEX" type="java.lang.String"
  70304. transient="false" volatile="false"
  70305. static="true" final="true" visibility="public"
  70306. deprecated="not deprecated">
  70307. </field>
  70308. <doc>
  70309. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  70310. The sample is decided by the filter class set by the job.]]>
  70311. </doc>
  70312. </class>
  70313. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  70314. <!-- start interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  70315. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  70316. static="true" final="false" visibility="public"
  70317. deprecated="not deprecated">
  70318. <implements name="org.apache.hadoop.conf.Configurable"/>
  70319. <method name="accept" return="boolean"
  70320. abstract="false" native="false" synchronized="false"
  70321. static="false" final="false" visibility="public"
  70322. deprecated="not deprecated">
  70323. <param name="key" type="java.lang.Object"/>
  70324. <doc>
  70325. <![CDATA[filter function
  70326. Decide if a record should be filtered or not
  70327. @param key record key
  70328. @return true if a record is accepted; return false otherwise]]>
  70329. </doc>
  70330. </method>
  70331. <doc>
  70332. <![CDATA[filter interface]]>
  70333. </doc>
  70334. </interface>
  70335. <!-- end interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  70336. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  70337. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  70338. abstract="true"
  70339. static="true" final="false" visibility="public"
  70340. deprecated="not deprecated">
  70341. <implements name="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter"/>
  70342. <constructor name="SequenceFileInputFilter.FilterBase"
  70343. static="false" final="false" visibility="public"
  70344. deprecated="not deprecated">
  70345. </constructor>
  70346. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  70347. abstract="false" native="false" synchronized="false"
  70348. static="false" final="false" visibility="public"
  70349. deprecated="not deprecated">
  70350. </method>
  70351. <doc>
  70352. <![CDATA[base class for Filters]]>
  70353. </doc>
  70354. </class>
  70355. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  70356. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  70357. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  70358. abstract="false"
  70359. static="true" final="false" visibility="public"
  70360. deprecated="not deprecated">
  70361. <constructor name="SequenceFileInputFilter.MD5Filter"
  70362. static="false" final="false" visibility="public"
  70363. deprecated="not deprecated">
  70364. </constructor>
  70365. <method name="setFrequency"
  70366. abstract="false" native="false" synchronized="false"
  70367. static="true" final="false" visibility="public"
  70368. deprecated="not deprecated">
  70369. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70370. <param name="frequency" type="int"/>
  70371. <doc>
  70372. <![CDATA[set the filtering frequency in configuration
  70373. @param conf configuration
  70374. @param frequency filtering frequency]]>
  70375. </doc>
  70376. </method>
  70377. <method name="setConf"
  70378. abstract="false" native="false" synchronized="false"
  70379. static="false" final="false" visibility="public"
  70380. deprecated="not deprecated">
  70381. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70382. <doc>
  70383. <![CDATA[configure the filter according to configuration
  70384. @param conf configuration]]>
  70385. </doc>
  70386. </method>
  70387. <method name="accept" return="boolean"
  70388. abstract="false" native="false" synchronized="false"
  70389. static="false" final="false" visibility="public"
  70390. deprecated="not deprecated">
  70391. <param name="key" type="java.lang.Object"/>
  70392. <doc>
  70393. <![CDATA[Filtering method
  70394. If MD5(key) % frequency==0, return true; otherwise return false
  70395. @see Filter#accept(Object)]]>
  70396. </doc>
  70397. </method>
  70398. <field name="MD5_LEN" type="int"
  70399. transient="false" volatile="false"
  70400. static="true" final="true" visibility="public"
  70401. deprecated="not deprecated">
  70402. </field>
  70403. <doc>
  70404. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  70405. key against a filtering frequency <i>f</i>. The filtering criteria is
  70406. MD5(key) % f == 0.]]>
  70407. </doc>
  70408. </class>
  70409. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  70410. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  70411. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  70412. abstract="false"
  70413. static="true" final="false" visibility="public"
  70414. deprecated="not deprecated">
  70415. <constructor name="SequenceFileInputFilter.PercentFilter"
  70416. static="false" final="false" visibility="public"
  70417. deprecated="not deprecated">
  70418. </constructor>
  70419. <method name="setFrequency"
  70420. abstract="false" native="false" synchronized="false"
  70421. static="true" final="false" visibility="public"
  70422. deprecated="not deprecated">
  70423. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70424. <param name="frequency" type="int"/>
  70425. <doc>
  70426. <![CDATA[set the frequency and stores it in conf
  70427. @param conf configuration
  70428. @param frequency filtering frequencey]]>
  70429. </doc>
  70430. </method>
  70431. <method name="setConf"
  70432. abstract="false" native="false" synchronized="false"
  70433. static="false" final="false" visibility="public"
  70434. deprecated="not deprecated">
  70435. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70436. <doc>
  70437. <![CDATA[configure the filter by checking the configuration
  70438. @param conf configuration]]>
  70439. </doc>
  70440. </method>
  70441. <method name="accept" return="boolean"
  70442. abstract="false" native="false" synchronized="false"
  70443. static="false" final="false" visibility="public"
  70444. deprecated="not deprecated">
  70445. <param name="key" type="java.lang.Object"/>
  70446. <doc>
  70447. <![CDATA[Filtering method
  70448. If record# % frequency==0, return true; otherwise return false
  70449. @see Filter#accept(Object)]]>
  70450. </doc>
  70451. </method>
  70452. <doc>
  70453. <![CDATA[This class returns a percentage of records
  70454. The percentage is determined by a filtering frequency <i>f</i> using
  70455. the criteria record# % f == 0.
  70456. For example, if the frequency is 10, one out of 10 records is returned.]]>
  70457. </doc>
  70458. </class>
  70459. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  70460. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  70461. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  70462. abstract="false"
  70463. static="true" final="false" visibility="public"
  70464. deprecated="not deprecated">
  70465. <constructor name="SequenceFileInputFilter.RegexFilter"
  70466. static="false" final="false" visibility="public"
  70467. deprecated="not deprecated">
  70468. </constructor>
  70469. <method name="setPattern"
  70470. abstract="false" native="false" synchronized="false"
  70471. static="true" final="false" visibility="public"
  70472. deprecated="not deprecated">
  70473. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70474. <param name="regex" type="java.lang.String"/>
  70475. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  70476. <doc>
  70477. <![CDATA[Define the filtering regex and stores it in conf
  70478. @param conf where the regex is set
  70479. @param regex regex used as a filter]]>
  70480. </doc>
  70481. </method>
  70482. <method name="setConf"
  70483. abstract="false" native="false" synchronized="false"
  70484. static="false" final="false" visibility="public"
  70485. deprecated="not deprecated">
  70486. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70487. <doc>
  70488. <![CDATA[configure the Filter by checking the configuration]]>
  70489. </doc>
  70490. </method>
  70491. <method name="accept" return="boolean"
  70492. abstract="false" native="false" synchronized="false"
  70493. static="false" final="false" visibility="public"
  70494. deprecated="not deprecated">
  70495. <param name="key" type="java.lang.Object"/>
  70496. <doc>
  70497. <![CDATA[Filtering method
  70498. If key matches the regex, return true; otherwise return false
  70499. @see Filter#accept(Object)]]>
  70500. </doc>
  70501. </method>
  70502. <doc>
  70503. <![CDATA[Records filter by matching key to regex]]>
  70504. </doc>
  70505. </class>
  70506. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  70507. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  70508. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  70509. abstract="false"
  70510. static="false" final="false" visibility="public"
  70511. deprecated="not deprecated">
  70512. <constructor name="SequenceFileInputFormat"
  70513. static="false" final="false" visibility="public"
  70514. deprecated="not deprecated">
  70515. </constructor>
  70516. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70517. abstract="false" native="false" synchronized="false"
  70518. static="false" final="false" visibility="public"
  70519. deprecated="not deprecated">
  70520. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70521. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70522. <exception name="IOException" type="java.io.IOException"/>
  70523. </method>
  70524. <method name="getFormatMinSplitSize" return="long"
  70525. abstract="false" native="false" synchronized="false"
  70526. static="false" final="false" visibility="protected"
  70527. deprecated="not deprecated">
  70528. </method>
  70529. <method name="listStatus" return="java.util.List"
  70530. abstract="false" native="false" synchronized="false"
  70531. static="false" final="false" visibility="protected"
  70532. deprecated="not deprecated">
  70533. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70534. <exception name="IOException" type="java.io.IOException"/>
  70535. </method>
  70536. <doc>
  70537. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  70538. </doc>
  70539. </class>
  70540. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  70541. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  70542. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70543. abstract="false"
  70544. static="false" final="false" visibility="public"
  70545. deprecated="not deprecated">
  70546. <constructor name="SequenceFileRecordReader"
  70547. static="false" final="false" visibility="public"
  70548. deprecated="not deprecated">
  70549. </constructor>
  70550. <method name="initialize"
  70551. abstract="false" native="false" synchronized="false"
  70552. static="false" final="false" visibility="public"
  70553. deprecated="not deprecated">
  70554. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70555. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70556. <exception name="IOException" type="java.io.IOException"/>
  70557. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70558. </method>
  70559. <method name="nextKeyValue" return="boolean"
  70560. abstract="false" native="false" synchronized="false"
  70561. static="false" final="false" visibility="public"
  70562. deprecated="not deprecated">
  70563. <exception name="IOException" type="java.io.IOException"/>
  70564. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70565. </method>
  70566. <method name="getCurrentKey" return="java.lang.Object"
  70567. abstract="false" native="false" synchronized="false"
  70568. static="false" final="false" visibility="public"
  70569. deprecated="not deprecated">
  70570. </method>
  70571. <method name="getCurrentValue" return="java.lang.Object"
  70572. abstract="false" native="false" synchronized="false"
  70573. static="false" final="false" visibility="public"
  70574. deprecated="not deprecated">
  70575. </method>
  70576. <method name="getProgress" return="float"
  70577. abstract="false" native="false" synchronized="false"
  70578. static="false" final="false" visibility="public"
  70579. deprecated="not deprecated">
  70580. <exception name="IOException" type="java.io.IOException"/>
  70581. <doc>
  70582. <![CDATA[Return the progress within the input split
  70583. @return 0.0 to 1.0 of the input byte range]]>
  70584. </doc>
  70585. </method>
  70586. <method name="close"
  70587. abstract="false" native="false" synchronized="true"
  70588. static="false" final="false" visibility="public"
  70589. deprecated="not deprecated">
  70590. <exception name="IOException" type="java.io.IOException"/>
  70591. </method>
  70592. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  70593. transient="false" volatile="false"
  70594. static="false" final="false" visibility="protected"
  70595. deprecated="not deprecated">
  70596. </field>
  70597. <doc>
  70598. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  70599. </doc>
  70600. </class>
  70601. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  70602. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  70603. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  70604. abstract="false"
  70605. static="false" final="false" visibility="public"
  70606. deprecated="not deprecated">
  70607. <constructor name="TextInputFormat"
  70608. static="false" final="false" visibility="public"
  70609. deprecated="not deprecated">
  70610. </constructor>
  70611. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70612. abstract="false" native="false" synchronized="false"
  70613. static="false" final="false" visibility="public"
  70614. deprecated="not deprecated">
  70615. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70616. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70617. </method>
  70618. <method name="isSplitable" return="boolean"
  70619. abstract="false" native="false" synchronized="false"
  70620. static="false" final="false" visibility="protected"
  70621. deprecated="not deprecated">
  70622. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70623. <param name="file" type="org.apache.hadoop.fs.Path"/>
  70624. </method>
  70625. <doc>
  70626. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  70627. Either linefeed or carriage-return are used to signal end of line. Keys are
  70628. the position in the file, and values are the line of text..]]>
  70629. </doc>
  70630. </class>
  70631. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  70632. </package>
  70633. <package name="org.apache.hadoop.mapreduce.lib.jobcontrol">
  70634. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  70635. <class name="ControlledJob" extends="java.lang.Object"
  70636. abstract="false"
  70637. static="false" final="false" visibility="public"
  70638. deprecated="not deprecated">
  70639. <constructor name="ControlledJob" type="org.apache.hadoop.mapreduce.Job, java.util.List"
  70640. static="false" final="false" visibility="public"
  70641. deprecated="not deprecated">
  70642. <exception name="IOException" type="java.io.IOException"/>
  70643. <doc>
  70644. <![CDATA[Construct a job.
  70645. @param job a mapreduce job to be executed.
  70646. @param dependingJobs an array of jobs the current job depends on]]>
  70647. </doc>
  70648. </constructor>
  70649. <constructor name="ControlledJob" type="org.apache.hadoop.conf.Configuration"
  70650. static="false" final="false" visibility="public"
  70651. deprecated="not deprecated">
  70652. <exception name="IOException" type="java.io.IOException"/>
  70653. <doc>
  70654. <![CDATA[Construct a job.
  70655. @param conf mapred job configuration representing a job to be executed.
  70656. @throws IOException]]>
  70657. </doc>
  70658. </constructor>
  70659. <method name="toString" return="java.lang.String"
  70660. abstract="false" native="false" synchronized="false"
  70661. static="false" final="false" visibility="public"
  70662. deprecated="not deprecated">
  70663. </method>
  70664. <method name="getJobName" return="java.lang.String"
  70665. abstract="false" native="false" synchronized="false"
  70666. static="false" final="false" visibility="public"
  70667. deprecated="not deprecated">
  70668. <doc>
  70669. <![CDATA[@return the job name of this job]]>
  70670. </doc>
  70671. </method>
  70672. <method name="setJobName"
  70673. abstract="false" native="false" synchronized="false"
  70674. static="false" final="false" visibility="public"
  70675. deprecated="not deprecated">
  70676. <param name="jobName" type="java.lang.String"/>
  70677. <doc>
  70678. <![CDATA[Set the job name for this job.
  70679. @param jobName the job name]]>
  70680. </doc>
  70681. </method>
  70682. <method name="getJobID" return="java.lang.String"
  70683. abstract="false" native="false" synchronized="false"
  70684. static="false" final="false" visibility="public"
  70685. deprecated="not deprecated">
  70686. <doc>
  70687. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  70688. </doc>
  70689. </method>
  70690. <method name="setJobID"
  70691. abstract="false" native="false" synchronized="false"
  70692. static="false" final="false" visibility="public"
  70693. deprecated="not deprecated">
  70694. <param name="id" type="java.lang.String"/>
  70695. <doc>
  70696. <![CDATA[Set the job ID for this job.
  70697. @param id the job ID]]>
  70698. </doc>
  70699. </method>
  70700. <method name="getMapredJobID" return="org.apache.hadoop.mapreduce.JobID"
  70701. abstract="false" native="false" synchronized="false"
  70702. static="false" final="false" visibility="public"
  70703. deprecated="not deprecated">
  70704. <doc>
  70705. <![CDATA[@return the mapred ID of this job as assigned by the
  70706. mapred framework.]]>
  70707. </doc>
  70708. </method>
  70709. <method name="getJob" return="org.apache.hadoop.mapreduce.Job"
  70710. abstract="false" native="false" synchronized="true"
  70711. static="false" final="false" visibility="public"
  70712. deprecated="not deprecated">
  70713. <doc>
  70714. <![CDATA[@return the mapreduce job]]>
  70715. </doc>
  70716. </method>
  70717. <method name="setJob"
  70718. abstract="false" native="false" synchronized="true"
  70719. static="false" final="false" visibility="public"
  70720. deprecated="not deprecated">
  70721. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70722. <doc>
  70723. <![CDATA[Set the mapreduce job
  70724. @param job the mapreduce job for this job.]]>
  70725. </doc>
  70726. </method>
  70727. <method name="getJobState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70728. abstract="false" native="false" synchronized="true"
  70729. static="false" final="false" visibility="public"
  70730. deprecated="not deprecated">
  70731. <doc>
  70732. <![CDATA[@return the state of this job]]>
  70733. </doc>
  70734. </method>
  70735. <method name="setJobState"
  70736. abstract="false" native="false" synchronized="true"
  70737. static="false" final="false" visibility="protected"
  70738. deprecated="not deprecated">
  70739. <param name="state" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"/>
  70740. <doc>
  70741. <![CDATA[Set the state for this job.
  70742. @param state the new state for this job.]]>
  70743. </doc>
  70744. </method>
  70745. <method name="getMessage" return="java.lang.String"
  70746. abstract="false" native="false" synchronized="true"
  70747. static="false" final="false" visibility="public"
  70748. deprecated="not deprecated">
  70749. <doc>
  70750. <![CDATA[@return the message of this job]]>
  70751. </doc>
  70752. </method>
  70753. <method name="setMessage"
  70754. abstract="false" native="false" synchronized="true"
  70755. static="false" final="false" visibility="public"
  70756. deprecated="not deprecated">
  70757. <param name="message" type="java.lang.String"/>
  70758. <doc>
  70759. <![CDATA[Set the message for this job.
  70760. @param message the message for this job.]]>
  70761. </doc>
  70762. </method>
  70763. <method name="getDependentJobs" return="java.util.List"
  70764. abstract="false" native="false" synchronized="false"
  70765. static="false" final="false" visibility="public"
  70766. deprecated="not deprecated">
  70767. <doc>
  70768. <![CDATA[@return the depending jobs of this job]]>
  70769. </doc>
  70770. </method>
  70771. <method name="addDependingJob" return="boolean"
  70772. abstract="false" native="false" synchronized="true"
  70773. static="false" final="false" visibility="public"
  70774. deprecated="not deprecated">
  70775. <param name="dependingJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  70776. <doc>
  70777. <![CDATA[Add a job to this jobs' dependency list.
  70778. Dependent jobs can only be added while a Job
  70779. is waiting to run, not during or afterwards.
  70780. @param dependingJob Job that this Job depends on.
  70781. @return <tt>true</tt> if the Job was added.]]>
  70782. </doc>
  70783. </method>
  70784. <method name="isCompleted" return="boolean"
  70785. abstract="false" native="false" synchronized="true"
  70786. static="false" final="false" visibility="public"
  70787. deprecated="not deprecated">
  70788. <doc>
  70789. <![CDATA[@return true if this job is in a complete state]]>
  70790. </doc>
  70791. </method>
  70792. <method name="isReady" return="boolean"
  70793. abstract="false" native="false" synchronized="true"
  70794. static="false" final="false" visibility="public"
  70795. deprecated="not deprecated">
  70796. <doc>
  70797. <![CDATA[@return true if this job is in READY state]]>
  70798. </doc>
  70799. </method>
  70800. <method name="killJob"
  70801. abstract="false" native="false" synchronized="false"
  70802. static="false" final="false" visibility="public"
  70803. deprecated="not deprecated">
  70804. <exception name="IOException" type="java.io.IOException"/>
  70805. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70806. </method>
  70807. <method name="failJob"
  70808. abstract="false" native="false" synchronized="true"
  70809. static="false" final="false" visibility="public"
  70810. deprecated="not deprecated">
  70811. <param name="message" type="java.lang.String"/>
  70812. <exception name="IOException" type="java.io.IOException"/>
  70813. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70814. </method>
  70815. <method name="submit"
  70816. abstract="false" native="false" synchronized="true"
  70817. static="false" final="false" visibility="protected"
  70818. deprecated="not deprecated">
  70819. <doc>
  70820. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  70821. is successful, FAILED otherwise.]]>
  70822. </doc>
  70823. </method>
  70824. <field name="CREATE_DIR" type="java.lang.String"
  70825. transient="false" volatile="false"
  70826. static="true" final="true" visibility="public"
  70827. deprecated="not deprecated">
  70828. </field>
  70829. <doc>
  70830. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  70831. the states of the depending jobs and updates the state of this job.
  70832. A job starts in the WAITING state. If it does not have any depending jobs,
  70833. or all of the depending jobs are in SUCCESS state, then the job state
  70834. will become READY. If any depending jobs fail, the job will fail too.
  70835. When in READY state, the job can be submitted to Hadoop for execution, with
  70836. the state changing into RUNNING state. From RUNNING state, the job
  70837. can get into SUCCESS or FAILED state, depending
  70838. the status of the job execution.]]>
  70839. </doc>
  70840. </class>
  70841. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  70842. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  70843. <class name="ControlledJob.State" extends="java.lang.Enum"
  70844. abstract="false"
  70845. static="true" final="true" visibility="public"
  70846. deprecated="not deprecated">
  70847. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State[]"
  70848. abstract="false" native="false" synchronized="false"
  70849. static="true" final="false" visibility="public"
  70850. deprecated="not deprecated">
  70851. </method>
  70852. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70853. abstract="false" native="false" synchronized="false"
  70854. static="true" final="false" visibility="public"
  70855. deprecated="not deprecated">
  70856. <param name="name" type="java.lang.String"/>
  70857. </method>
  70858. <field name="SUCCESS" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70859. transient="false" volatile="false"
  70860. static="true" final="true" visibility="public"
  70861. deprecated="not deprecated">
  70862. </field>
  70863. <field name="WAITING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70864. transient="false" volatile="false"
  70865. static="true" final="true" visibility="public"
  70866. deprecated="not deprecated">
  70867. </field>
  70868. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70869. transient="false" volatile="false"
  70870. static="true" final="true" visibility="public"
  70871. deprecated="not deprecated">
  70872. </field>
  70873. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70874. transient="false" volatile="false"
  70875. static="true" final="true" visibility="public"
  70876. deprecated="not deprecated">
  70877. </field>
  70878. <field name="FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70879. transient="false" volatile="false"
  70880. static="true" final="true" visibility="public"
  70881. deprecated="not deprecated">
  70882. </field>
  70883. <field name="DEPENDENT_FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  70884. transient="false" volatile="false"
  70885. static="true" final="true" visibility="public"
  70886. deprecated="not deprecated">
  70887. </field>
  70888. </class>
  70889. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  70890. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  70891. <class name="JobControl" extends="java.lang.Object"
  70892. abstract="false"
  70893. static="false" final="false" visibility="public"
  70894. deprecated="not deprecated">
  70895. <implements name="java.lang.Runnable"/>
  70896. <constructor name="JobControl" type="java.lang.String"
  70897. static="false" final="false" visibility="public"
  70898. deprecated="not deprecated">
  70899. <doc>
  70900. <![CDATA[Construct a job control for a group of jobs.
  70901. @param groupName a name identifying this group]]>
  70902. </doc>
  70903. </constructor>
  70904. <method name="getWaitingJobList" return="java.util.List"
  70905. abstract="false" native="false" synchronized="false"
  70906. static="false" final="false" visibility="public"
  70907. deprecated="not deprecated">
  70908. <doc>
  70909. <![CDATA[@return the jobs in the waiting state]]>
  70910. </doc>
  70911. </method>
  70912. <method name="getRunningJobList" return="java.util.List"
  70913. abstract="false" native="false" synchronized="false"
  70914. static="false" final="false" visibility="public"
  70915. deprecated="not deprecated">
  70916. <doc>
  70917. <![CDATA[@return the jobs in the running state]]>
  70918. </doc>
  70919. </method>
  70920. <method name="getReadyJobsList" return="java.util.List"
  70921. abstract="false" native="false" synchronized="false"
  70922. static="false" final="false" visibility="public"
  70923. deprecated="not deprecated">
  70924. <doc>
  70925. <![CDATA[@return the jobs in the ready state]]>
  70926. </doc>
  70927. </method>
  70928. <method name="getSuccessfulJobList" return="java.util.List"
  70929. abstract="false" native="false" synchronized="false"
  70930. static="false" final="false" visibility="public"
  70931. deprecated="not deprecated">
  70932. <doc>
  70933. <![CDATA[@return the jobs in the success state]]>
  70934. </doc>
  70935. </method>
  70936. <method name="getFailedJobList" return="java.util.List"
  70937. abstract="false" native="false" synchronized="false"
  70938. static="false" final="false" visibility="public"
  70939. deprecated="not deprecated">
  70940. </method>
  70941. <method name="addJob" return="java.lang.String"
  70942. abstract="false" native="false" synchronized="true"
  70943. static="false" final="false" visibility="public"
  70944. deprecated="not deprecated">
  70945. <param name="aJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  70946. <doc>
  70947. <![CDATA[Add a new job.
  70948. @param aJob the new job]]>
  70949. </doc>
  70950. </method>
  70951. <method name="addJobCollection"
  70952. abstract="false" native="false" synchronized="false"
  70953. static="false" final="false" visibility="public"
  70954. deprecated="not deprecated">
  70955. <param name="jobs" type="java.util.Collection"/>
  70956. <doc>
  70957. <![CDATA[Add a collection of jobs
  70958. @param jobs]]>
  70959. </doc>
  70960. </method>
  70961. <method name="getThreadState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  70962. abstract="false" native="false" synchronized="false"
  70963. static="false" final="false" visibility="public"
  70964. deprecated="not deprecated">
  70965. <doc>
  70966. <![CDATA[@return the thread state]]>
  70967. </doc>
  70968. </method>
  70969. <method name="stop"
  70970. abstract="false" native="false" synchronized="false"
  70971. static="false" final="false" visibility="public"
  70972. deprecated="not deprecated">
  70973. <doc>
  70974. <![CDATA[set the thread state to STOPPING so that the
  70975. thread will stop when it wakes up.]]>
  70976. </doc>
  70977. </method>
  70978. <method name="suspend"
  70979. abstract="false" native="false" synchronized="false"
  70980. static="false" final="false" visibility="public"
  70981. deprecated="not deprecated">
  70982. <doc>
  70983. <![CDATA[suspend the running thread]]>
  70984. </doc>
  70985. </method>
  70986. <method name="resume"
  70987. abstract="false" native="false" synchronized="false"
  70988. static="false" final="false" visibility="public"
  70989. deprecated="not deprecated">
  70990. <doc>
  70991. <![CDATA[resume the suspended thread]]>
  70992. </doc>
  70993. </method>
  70994. <method name="allFinished" return="boolean"
  70995. abstract="false" native="false" synchronized="true"
  70996. static="false" final="false" visibility="public"
  70997. deprecated="not deprecated">
  70998. </method>
  70999. <method name="run"
  71000. abstract="false" native="false" synchronized="false"
  71001. static="false" final="false" visibility="public"
  71002. deprecated="not deprecated">
  71003. <doc>
  71004. <![CDATA[The main loop for the thread.
  71005. The loop does the following:
  71006. Check the states of the running jobs
  71007. Update the states of waiting jobs
  71008. Submit the jobs in ready state]]>
  71009. </doc>
  71010. </method>
  71011. <doc>
  71012. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency.
  71013. It tracks the states of the jobs by placing them into different tables
  71014. according to their states.
  71015. This class provides APIs for the client app to add a job to the group
  71016. and to get the jobs in the group in different states. When a job is
  71017. added, an ID unique to the group is assigned to the job.
  71018. This class has a thread that submits jobs when they become ready,
  71019. monitors the states of the running jobs, and updates the states of jobs
  71020. based on the state changes of their depending jobs states. The class
  71021. provides APIs for suspending/resuming the thread, and
  71022. for stopping the thread.]]>
  71023. </doc>
  71024. </class>
  71025. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  71026. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  71027. <class name="JobControl.ThreadState" extends="java.lang.Enum"
  71028. abstract="false"
  71029. static="true" final="true" visibility="public"
  71030. deprecated="not deprecated">
  71031. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState[]"
  71032. abstract="false" native="false" synchronized="false"
  71033. static="true" final="false" visibility="public"
  71034. deprecated="not deprecated">
  71035. </method>
  71036. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71037. abstract="false" native="false" synchronized="false"
  71038. static="true" final="false" visibility="public"
  71039. deprecated="not deprecated">
  71040. <param name="name" type="java.lang.String"/>
  71041. </method>
  71042. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71043. transient="false" volatile="false"
  71044. static="true" final="true" visibility="public"
  71045. deprecated="not deprecated">
  71046. </field>
  71047. <field name="SUSPENDED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71048. transient="false" volatile="false"
  71049. static="true" final="true" visibility="public"
  71050. deprecated="not deprecated">
  71051. </field>
  71052. <field name="STOPPED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71053. transient="false" volatile="false"
  71054. static="true" final="true" visibility="public"
  71055. deprecated="not deprecated">
  71056. </field>
  71057. <field name="STOPPING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71058. transient="false" volatile="false"
  71059. static="true" final="true" visibility="public"
  71060. deprecated="not deprecated">
  71061. </field>
  71062. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71063. transient="false" volatile="false"
  71064. static="true" final="true" visibility="public"
  71065. deprecated="not deprecated">
  71066. </field>
  71067. </class>
  71068. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  71069. </package>
  71070. <package name="org.apache.hadoop.mapreduce.lib.map">
  71071. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  71072. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71073. abstract="false"
  71074. static="false" final="false" visibility="public"
  71075. deprecated="not deprecated">
  71076. <constructor name="InverseMapper"
  71077. static="false" final="false" visibility="public"
  71078. deprecated="not deprecated">
  71079. </constructor>
  71080. <method name="map"
  71081. abstract="false" native="false" synchronized="false"
  71082. static="false" final="false" visibility="public"
  71083. deprecated="not deprecated">
  71084. <param name="key" type="java.lang.Object"/>
  71085. <param name="value" type="java.lang.Object"/>
  71086. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71087. <exception name="IOException" type="java.io.IOException"/>
  71088. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71089. <doc>
  71090. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  71091. </doc>
  71092. </method>
  71093. <doc>
  71094. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  71095. </doc>
  71096. </class>
  71097. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  71098. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  71099. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71100. abstract="false"
  71101. static="false" final="false" visibility="public"
  71102. deprecated="not deprecated">
  71103. <constructor name="MultithreadedMapper"
  71104. static="false" final="false" visibility="public"
  71105. deprecated="not deprecated">
  71106. </constructor>
  71107. <method name="getNumberOfThreads" return="int"
  71108. abstract="false" native="false" synchronized="false"
  71109. static="true" final="false" visibility="public"
  71110. deprecated="not deprecated">
  71111. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71112. <doc>
  71113. <![CDATA[The number of threads in the thread pool that will run the map function.
  71114. @param job the job
  71115. @return the number of threads]]>
  71116. </doc>
  71117. </method>
  71118. <method name="setNumberOfThreads"
  71119. abstract="false" native="false" synchronized="false"
  71120. static="true" final="false" visibility="public"
  71121. deprecated="not deprecated">
  71122. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71123. <param name="threads" type="int"/>
  71124. <doc>
  71125. <![CDATA[Set the number of threads in the pool for running maps.
  71126. @param job the job to modify
  71127. @param threads the new number of threads]]>
  71128. </doc>
  71129. </method>
  71130. <method name="getMapperClass" return="java.lang.Class"
  71131. abstract="false" native="false" synchronized="false"
  71132. static="true" final="false" visibility="public"
  71133. deprecated="not deprecated">
  71134. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71135. <doc>
  71136. <![CDATA[Get the application's mapper class.
  71137. @param <K1> the map's input key type
  71138. @param <V1> the map's input value type
  71139. @param <K2> the map's output key type
  71140. @param <V2> the map's output value type
  71141. @param job the job
  71142. @return the mapper class to run]]>
  71143. </doc>
  71144. </method>
  71145. <method name="setMapperClass"
  71146. abstract="false" native="false" synchronized="false"
  71147. static="true" final="false" visibility="public"
  71148. deprecated="not deprecated">
  71149. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71150. <param name="cls" type="java.lang.Class"/>
  71151. <doc>
  71152. <![CDATA[Set the application's mapper class.
  71153. @param <K1> the map input key type
  71154. @param <V1> the map input value type
  71155. @param <K2> the map output key type
  71156. @param <V2> the map output value type
  71157. @param job the job to modify
  71158. @param cls the class to use as the mapper]]>
  71159. </doc>
  71160. </method>
  71161. <method name="run"
  71162. abstract="false" native="false" synchronized="false"
  71163. static="false" final="false" visibility="public"
  71164. deprecated="not deprecated">
  71165. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71166. <exception name="IOException" type="java.io.IOException"/>
  71167. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71168. <doc>
  71169. <![CDATA[Run the application's maps using a thread pool.]]>
  71170. </doc>
  71171. </method>
  71172. <doc>
  71173. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  71174. <p>
  71175. It can be used instead of the default implementation,
  71176. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  71177. bound in order to improve throughput.
  71178. <p>
  71179. Mapper implementations using this MapRunnable must be thread-safe.
  71180. <p>
  71181. The Map-Reduce job has to be configured with the mapper to use via
  71182. {@link #setMapperClass(Configuration, Class)} and
  71183. the number of thread the thread-pool can use with the
  71184. {@link #getNumberOfThreads(Configuration) method. The default
  71185. value is 10 threads.
  71186. <p>]]>
  71187. </doc>
  71188. </class>
  71189. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  71190. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  71191. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71192. abstract="false"
  71193. static="false" final="false" visibility="public"
  71194. deprecated="not deprecated">
  71195. <constructor name="TokenCounterMapper"
  71196. static="false" final="false" visibility="public"
  71197. deprecated="not deprecated">
  71198. </constructor>
  71199. <method name="map"
  71200. abstract="false" native="false" synchronized="false"
  71201. static="false" final="false" visibility="public"
  71202. deprecated="not deprecated">
  71203. <param name="key" type="java.lang.Object"/>
  71204. <param name="value" type="org.apache.hadoop.io.Text"/>
  71205. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71206. <exception name="IOException" type="java.io.IOException"/>
  71207. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71208. </method>
  71209. <doc>
  71210. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  71211. </doc>
  71212. </class>
  71213. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  71214. </package>
  71215. <package name="org.apache.hadoop.mapreduce.lib.output">
  71216. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  71217. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  71218. abstract="false"
  71219. static="false" final="false" visibility="public"
  71220. deprecated="not deprecated">
  71221. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  71222. static="false" final="false" visibility="public"
  71223. deprecated="not deprecated">
  71224. <exception name="IOException" type="java.io.IOException"/>
  71225. <doc>
  71226. <![CDATA[Create a file output committer
  71227. @param outputPath the job's output path
  71228. @param context the task's context
  71229. @throws IOException]]>
  71230. </doc>
  71231. </constructor>
  71232. <method name="setupJob"
  71233. abstract="false" native="false" synchronized="false"
  71234. static="false" final="false" visibility="public"
  71235. deprecated="not deprecated">
  71236. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71237. <exception name="IOException" type="java.io.IOException"/>
  71238. <doc>
  71239. <![CDATA[Create the temporary directory that is the root of all of the task
  71240. work directories.
  71241. @param context the job's context]]>
  71242. </doc>
  71243. </method>
  71244. <method name="commitJob"
  71245. abstract="false" native="false" synchronized="false"
  71246. static="false" final="false" visibility="public"
  71247. deprecated="not deprecated">
  71248. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71249. <exception name="IOException" type="java.io.IOException"/>
  71250. <doc>
  71251. <![CDATA[Delete the temporary directory, including all of the work directories.
  71252. This is called for all jobs whose final run state is SUCCEEDED
  71253. @param context the job's context.]]>
  71254. </doc>
  71255. </method>
  71256. <method name="cleanupJob"
  71257. abstract="false" native="false" synchronized="false"
  71258. static="false" final="false" visibility="public"
  71259. deprecated="not deprecated">
  71260. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71261. <exception name="IOException" type="java.io.IOException"/>
  71262. </method>
  71263. <method name="abortJob"
  71264. abstract="false" native="false" synchronized="false"
  71265. static="false" final="false" visibility="public"
  71266. deprecated="not deprecated">
  71267. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71268. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  71269. <exception name="IOException" type="java.io.IOException"/>
  71270. <doc>
  71271. <![CDATA[Delete the temporary directory, including all of the work directories.
  71272. @param context the job's context
  71273. @param state final run state of the job, should be FAILED or KILLED]]>
  71274. </doc>
  71275. </method>
  71276. <method name="setupTask"
  71277. abstract="false" native="false" synchronized="false"
  71278. static="false" final="false" visibility="public"
  71279. deprecated="not deprecated">
  71280. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71281. <exception name="IOException" type="java.io.IOException"/>
  71282. <doc>
  71283. <![CDATA[No task setup required.]]>
  71284. </doc>
  71285. </method>
  71286. <method name="commitTask"
  71287. abstract="false" native="false" synchronized="false"
  71288. static="false" final="false" visibility="public"
  71289. deprecated="not deprecated">
  71290. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71291. <exception name="IOException" type="java.io.IOException"/>
  71292. <doc>
  71293. <![CDATA[Move the files from the work directory to the job output directory
  71294. @param context the task context]]>
  71295. </doc>
  71296. </method>
  71297. <method name="abortTask"
  71298. abstract="false" native="false" synchronized="false"
  71299. static="false" final="false" visibility="public"
  71300. deprecated="not deprecated">
  71301. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71302. <doc>
  71303. <![CDATA[Delete the work directory]]>
  71304. </doc>
  71305. </method>
  71306. <method name="needsTaskCommit" return="boolean"
  71307. abstract="false" native="false" synchronized="false"
  71308. static="false" final="false" visibility="public"
  71309. deprecated="not deprecated">
  71310. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71311. <exception name="IOException" type="java.io.IOException"/>
  71312. <doc>
  71313. <![CDATA[Did this task write any files in the work directory?
  71314. @param context the task's context]]>
  71315. </doc>
  71316. </method>
  71317. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  71318. abstract="false" native="false" synchronized="false"
  71319. static="false" final="false" visibility="public"
  71320. deprecated="not deprecated">
  71321. <exception name="IOException" type="java.io.IOException"/>
  71322. <doc>
  71323. <![CDATA[Get the directory that the task should write results into
  71324. @return the work directory
  71325. @throws IOException]]>
  71326. </doc>
  71327. </method>
  71328. <field name="TEMP_DIR_NAME" type="java.lang.String"
  71329. transient="false" volatile="false"
  71330. static="true" final="true" visibility="protected"
  71331. deprecated="not deprecated">
  71332. <doc>
  71333. <![CDATA[Temporary directory name]]>
  71334. </doc>
  71335. </field>
  71336. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  71337. transient="false" volatile="false"
  71338. static="true" final="true" visibility="public"
  71339. deprecated="not deprecated">
  71340. </field>
  71341. <doc>
  71342. <![CDATA[An {@link OutputCommitter} that commits files specified
  71343. in job output directory i.e. ${mapred.output.dir}.]]>
  71344. </doc>
  71345. </class>
  71346. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  71347. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  71348. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  71349. abstract="true"
  71350. static="false" final="false" visibility="public"
  71351. deprecated="not deprecated">
  71352. <constructor name="FileOutputFormat"
  71353. static="false" final="false" visibility="public"
  71354. deprecated="not deprecated">
  71355. </constructor>
  71356. <method name="setCompressOutput"
  71357. abstract="false" native="false" synchronized="false"
  71358. static="true" final="false" visibility="public"
  71359. deprecated="not deprecated">
  71360. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71361. <param name="compress" type="boolean"/>
  71362. <doc>
  71363. <![CDATA[Set whether the output of the job is compressed.
  71364. @param job the job to modify
  71365. @param compress should the output of the job be compressed?]]>
  71366. </doc>
  71367. </method>
  71368. <method name="getCompressOutput" return="boolean"
  71369. abstract="false" native="false" synchronized="false"
  71370. static="true" final="false" visibility="public"
  71371. deprecated="not deprecated">
  71372. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71373. <doc>
  71374. <![CDATA[Is the job output compressed?
  71375. @param job the Job to look in
  71376. @return <code>true</code> if the job output should be compressed,
  71377. <code>false</code> otherwise]]>
  71378. </doc>
  71379. </method>
  71380. <method name="setOutputCompressorClass"
  71381. abstract="false" native="false" synchronized="false"
  71382. static="true" final="false" visibility="public"
  71383. deprecated="not deprecated">
  71384. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71385. <param name="codecClass" type="java.lang.Class"/>
  71386. <doc>
  71387. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  71388. @param job the job to modify
  71389. @param codecClass the {@link CompressionCodec} to be used to
  71390. compress the job outputs]]>
  71391. </doc>
  71392. </method>
  71393. <method name="getOutputCompressorClass" return="java.lang.Class"
  71394. abstract="false" native="false" synchronized="false"
  71395. static="true" final="false" visibility="public"
  71396. deprecated="not deprecated">
  71397. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71398. <param name="defaultValue" type="java.lang.Class"/>
  71399. <doc>
  71400. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  71401. @param job the {@link Job} to look in
  71402. @param defaultValue the {@link CompressionCodec} to return if not set
  71403. @return the {@link CompressionCodec} to be used to compress the
  71404. job outputs
  71405. @throws IllegalArgumentException if the class was specified, but not found]]>
  71406. </doc>
  71407. </method>
  71408. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  71409. abstract="true" native="false" synchronized="false"
  71410. static="false" final="false" visibility="public"
  71411. deprecated="not deprecated">
  71412. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71413. <exception name="IOException" type="java.io.IOException"/>
  71414. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71415. </method>
  71416. <method name="checkOutputSpecs"
  71417. abstract="false" native="false" synchronized="false"
  71418. static="false" final="false" visibility="public"
  71419. deprecated="not deprecated">
  71420. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71421. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  71422. <exception name="IOException" type="java.io.IOException"/>
  71423. </method>
  71424. <method name="setOutputPath"
  71425. abstract="false" native="false" synchronized="false"
  71426. static="true" final="false" visibility="public"
  71427. deprecated="not deprecated">
  71428. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71429. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  71430. <doc>
  71431. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  71432. @param job The job to modify
  71433. @param outputDir the {@link Path} of the output directory for
  71434. the map-reduce job.]]>
  71435. </doc>
  71436. </method>
  71437. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  71438. abstract="false" native="false" synchronized="false"
  71439. static="true" final="false" visibility="public"
  71440. deprecated="not deprecated">
  71441. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71442. <doc>
  71443. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  71444. @return the {@link Path} to the output directory for the map-reduce job.
  71445. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  71446. </doc>
  71447. </method>
  71448. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  71449. abstract="false" native="false" synchronized="false"
  71450. static="true" final="false" visibility="public"
  71451. deprecated="not deprecated">
  71452. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  71453. <exception name="IOException" type="java.io.IOException"/>
  71454. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71455. <doc>
  71456. <![CDATA[Get the {@link Path} to the task's temporary output directory
  71457. for the map-reduce job
  71458. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  71459. <p>Some applications need to create/write-to side-files, which differ from
  71460. the actual job-outputs.
  71461. <p>In such cases there could be issues with 2 instances of the same TIP
  71462. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  71463. same file (path) on HDFS. Hence the application-writer will have to pick
  71464. unique names per task-attempt (e.g. using the attemptid, say
  71465. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  71466. <p>To get around this the Map-Reduce framework helps the application-writer
  71467. out by maintaining a special
  71468. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  71469. sub-directory for each task-attempt on HDFS where the output of the
  71470. task-attempt goes. On successful completion of the task-attempt the files
  71471. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  71472. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  71473. framework discards the sub-directory of unsuccessful task-attempts. This
  71474. is completely transparent to the application.</p>
  71475. <p>The application-writer can take advantage of this by creating any
  71476. side-files required in a work directory during execution
  71477. of his task i.e. via
  71478. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  71479. the framework will move them out similarly - thus she doesn't have to pick
  71480. unique paths per task-attempt.</p>
  71481. <p>The entire discussion holds true for maps of jobs with
  71482. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  71483. goes directly to HDFS.</p>
  71484. @return the {@link Path} to the task's temporary output directory
  71485. for the map-reduce job.]]>
  71486. </doc>
  71487. </method>
  71488. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  71489. abstract="false" native="false" synchronized="false"
  71490. static="true" final="false" visibility="public"
  71491. deprecated="not deprecated">
  71492. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  71493. <param name="name" type="java.lang.String"/>
  71494. <param name="extension" type="java.lang.String"/>
  71495. <exception name="IOException" type="java.io.IOException"/>
  71496. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71497. <doc>
  71498. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  71499. the task within the job output directory.
  71500. <p>The path can be used to create custom files from within the map and
  71501. reduce tasks. The path name will be unique for each task. The path parent
  71502. will be the job output directory.</p>ls
  71503. <p>This method uses the {@link #getUniqueFile} method to make the file name
  71504. unique for the task.</p>
  71505. @param context the context for the task.
  71506. @param name the name for the file.
  71507. @param extension the extension for the file
  71508. @return a unique path accross all tasks of the job.]]>
  71509. </doc>
  71510. </method>
  71511. <method name="getUniqueFile" return="java.lang.String"
  71512. abstract="false" native="false" synchronized="true"
  71513. static="true" final="false" visibility="public"
  71514. deprecated="not deprecated">
  71515. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71516. <param name="name" type="java.lang.String"/>
  71517. <param name="extension" type="java.lang.String"/>
  71518. <doc>
  71519. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  71520. @param context the task that is calling this
  71521. @param name the base filename
  71522. @param extension the filename extension
  71523. @return a string like $name-[mr]-$id$extension]]>
  71524. </doc>
  71525. </method>
  71526. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  71527. abstract="false" native="false" synchronized="false"
  71528. static="false" final="false" visibility="public"
  71529. deprecated="not deprecated">
  71530. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71531. <param name="extension" type="java.lang.String"/>
  71532. <exception name="IOException" type="java.io.IOException"/>
  71533. <doc>
  71534. <![CDATA[Get the default path and filename for the output format.
  71535. @param context the task context
  71536. @param extension an extension to add to the filename
  71537. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  71538. @throws IOException]]>
  71539. </doc>
  71540. </method>
  71541. <method name="getOutputName" return="java.lang.String"
  71542. abstract="false" native="false" synchronized="false"
  71543. static="true" final="false" visibility="protected"
  71544. deprecated="not deprecated">
  71545. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71546. <doc>
  71547. <![CDATA[Get the base output name for the output file.]]>
  71548. </doc>
  71549. </method>
  71550. <method name="setOutputName"
  71551. abstract="false" native="false" synchronized="false"
  71552. static="true" final="false" visibility="protected"
  71553. deprecated="not deprecated">
  71554. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71555. <param name="name" type="java.lang.String"/>
  71556. <doc>
  71557. <![CDATA[Set the base output name for output file to be created.]]>
  71558. </doc>
  71559. </method>
  71560. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  71561. abstract="false" native="false" synchronized="true"
  71562. static="false" final="false" visibility="public"
  71563. deprecated="not deprecated">
  71564. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71565. <exception name="IOException" type="java.io.IOException"/>
  71566. </method>
  71567. <field name="BASE_OUTPUT_NAME" type="java.lang.String"
  71568. transient="false" volatile="false"
  71569. static="true" final="true" visibility="protected"
  71570. deprecated="not deprecated">
  71571. </field>
  71572. <field name="PART" type="java.lang.String"
  71573. transient="false" volatile="false"
  71574. static="true" final="true" visibility="protected"
  71575. deprecated="not deprecated">
  71576. </field>
  71577. <doc>
  71578. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  71579. </doc>
  71580. </class>
  71581. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  71582. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  71583. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  71584. abstract="false"
  71585. static="true" final="true" visibility="public"
  71586. deprecated="not deprecated">
  71587. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  71588. abstract="false" native="false" synchronized="false"
  71589. static="true" final="false" visibility="public"
  71590. deprecated="not deprecated">
  71591. </method>
  71592. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  71593. abstract="false" native="false" synchronized="false"
  71594. static="true" final="false" visibility="public"
  71595. deprecated="not deprecated">
  71596. <param name="name" type="java.lang.String"/>
  71597. </method>
  71598. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  71599. transient="false" volatile="false"
  71600. static="true" final="true" visibility="public"
  71601. deprecated="not deprecated">
  71602. </field>
  71603. </class>
  71604. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  71605. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  71606. <class name="FilterOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  71607. abstract="false"
  71608. static="false" final="false" visibility="public"
  71609. deprecated="not deprecated">
  71610. <constructor name="FilterOutputFormat"
  71611. static="false" final="false" visibility="public"
  71612. deprecated="not deprecated">
  71613. </constructor>
  71614. <constructor name="FilterOutputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  71615. static="false" final="false" visibility="public"
  71616. deprecated="not deprecated">
  71617. <doc>
  71618. <![CDATA[Create a FilterOutputFormat based on the underlying output format.
  71619. @param baseOut the underlying OutputFormat]]>
  71620. </doc>
  71621. </constructor>
  71622. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  71623. abstract="false" native="false" synchronized="false"
  71624. static="false" final="false" visibility="public"
  71625. deprecated="not deprecated">
  71626. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71627. <exception name="IOException" type="java.io.IOException"/>
  71628. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71629. </method>
  71630. <method name="checkOutputSpecs"
  71631. abstract="false" native="false" synchronized="false"
  71632. static="false" final="false" visibility="public"
  71633. deprecated="not deprecated">
  71634. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71635. <exception name="IOException" type="java.io.IOException"/>
  71636. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71637. </method>
  71638. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  71639. abstract="false" native="false" synchronized="false"
  71640. static="false" final="false" visibility="public"
  71641. deprecated="not deprecated">
  71642. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71643. <exception name="IOException" type="java.io.IOException"/>
  71644. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71645. </method>
  71646. <field name="baseOut" type="org.apache.hadoop.mapreduce.OutputFormat"
  71647. transient="false" volatile="false"
  71648. static="false" final="false" visibility="protected"
  71649. deprecated="not deprecated">
  71650. </field>
  71651. <doc>
  71652. <![CDATA[FilterOutputFormat is a convenience class that wraps OutputFormat.]]>
  71653. </doc>
  71654. </class>
  71655. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  71656. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  71657. <class name="FilterOutputFormat.FilterRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  71658. abstract="false"
  71659. static="true" final="false" visibility="public"
  71660. deprecated="not deprecated">
  71661. <constructor name="FilterOutputFormat.FilterRecordWriter"
  71662. static="false" final="false" visibility="public"
  71663. deprecated="not deprecated">
  71664. </constructor>
  71665. <constructor name="FilterOutputFormat.FilterRecordWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  71666. static="false" final="false" visibility="public"
  71667. deprecated="not deprecated">
  71668. </constructor>
  71669. <method name="write"
  71670. abstract="false" native="false" synchronized="false"
  71671. static="false" final="false" visibility="public"
  71672. deprecated="not deprecated">
  71673. <param name="key" type="java.lang.Object"/>
  71674. <param name="value" type="java.lang.Object"/>
  71675. <exception name="IOException" type="java.io.IOException"/>
  71676. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71677. </method>
  71678. <method name="close"
  71679. abstract="false" native="false" synchronized="false"
  71680. static="false" final="false" visibility="public"
  71681. deprecated="not deprecated">
  71682. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71683. <exception name="IOException" type="java.io.IOException"/>
  71684. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71685. </method>
  71686. <field name="rawWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  71687. transient="false" volatile="false"
  71688. static="false" final="false" visibility="protected"
  71689. deprecated="not deprecated">
  71690. </field>
  71691. <doc>
  71692. <![CDATA[<code>FilterRecordWriter</code> is a convenience wrapper
  71693. class that extends the {@link RecordWriter}.]]>
  71694. </doc>
  71695. </class>
  71696. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  71697. <!-- start class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  71698. <class name="LazyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat"
  71699. abstract="false"
  71700. static="false" final="false" visibility="public"
  71701. deprecated="not deprecated">
  71702. <constructor name="LazyOutputFormat"
  71703. static="false" final="false" visibility="public"
  71704. deprecated="not deprecated">
  71705. </constructor>
  71706. <method name="setOutputFormatClass"
  71707. abstract="false" native="false" synchronized="false"
  71708. static="true" final="false" visibility="public"
  71709. deprecated="not deprecated">
  71710. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71711. <param name="theClass" type="java.lang.Class"/>
  71712. <doc>
  71713. <![CDATA[Set the underlying output format for LazyOutputFormat.
  71714. @param job the {@link Job} to modify
  71715. @param theClass the underlying class]]>
  71716. </doc>
  71717. </method>
  71718. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  71719. abstract="false" native="false" synchronized="false"
  71720. static="false" final="false" visibility="public"
  71721. deprecated="not deprecated">
  71722. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71723. <exception name="IOException" type="java.io.IOException"/>
  71724. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71725. </method>
  71726. <method name="checkOutputSpecs"
  71727. abstract="false" native="false" synchronized="false"
  71728. static="false" final="false" visibility="public"
  71729. deprecated="not deprecated">
  71730. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71731. <exception name="IOException" type="java.io.IOException"/>
  71732. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71733. </method>
  71734. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  71735. abstract="false" native="false" synchronized="false"
  71736. static="false" final="false" visibility="public"
  71737. deprecated="not deprecated">
  71738. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71739. <exception name="IOException" type="java.io.IOException"/>
  71740. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71741. </method>
  71742. <field name="OUTPUT_FORMAT" type="java.lang.String"
  71743. transient="false" volatile="false"
  71744. static="true" final="false" visibility="public"
  71745. deprecated="not deprecated">
  71746. </field>
  71747. <doc>
  71748. <![CDATA[A Convenience class that creates output lazily.]]>
  71749. </doc>
  71750. </class>
  71751. <!-- end class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  71752. <!-- start class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  71753. <class name="MultipleOutputs" extends="java.lang.Object"
  71754. abstract="false"
  71755. static="false" final="false" visibility="public"
  71756. deprecated="not deprecated">
  71757. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  71758. static="false" final="false" visibility="public"
  71759. deprecated="not deprecated">
  71760. <doc>
  71761. <![CDATA[Creates and initializes multiple outputs support,
  71762. it should be instantiated in the Mapper/Reducer setup method.
  71763. @param context the TaskInputOutputContext object]]>
  71764. </doc>
  71765. </constructor>
  71766. <method name="addNamedOutput"
  71767. abstract="false" native="false" synchronized="false"
  71768. static="true" final="false" visibility="public"
  71769. deprecated="not deprecated">
  71770. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71771. <param name="namedOutput" type="java.lang.String"/>
  71772. <param name="outputFormatClass" type="java.lang.Class"/>
  71773. <param name="keyClass" type="java.lang.Class"/>
  71774. <param name="valueClass" type="java.lang.Class"/>
  71775. <doc>
  71776. <![CDATA[Adds a named output for the job.
  71777. <p/>
  71778. @param job job to add the named output
  71779. @param namedOutput named output name, it has to be a word, letters
  71780. and numbers only, cannot be the word 'part' as
  71781. that is reserved for the default output.
  71782. @param outputFormatClass OutputFormat class.
  71783. @param keyClass key class
  71784. @param valueClass value class]]>
  71785. </doc>
  71786. </method>
  71787. <method name="setCountersEnabled"
  71788. abstract="false" native="false" synchronized="false"
  71789. static="true" final="false" visibility="public"
  71790. deprecated="not deprecated">
  71791. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71792. <param name="enabled" type="boolean"/>
  71793. <doc>
  71794. <![CDATA[Enables or disables counters for the named outputs.
  71795. The counters group is the {@link MultipleOutputs} class name.
  71796. The names of the counters are the same as the named outputs. These
  71797. counters count the number records written to each output name.
  71798. By default these counters are disabled.
  71799. @param job job to enable counters
  71800. @param enabled indicates if the counters will be enabled or not.]]>
  71801. </doc>
  71802. </method>
  71803. <method name="getCountersEnabled" return="boolean"
  71804. abstract="false" native="false" synchronized="false"
  71805. static="true" final="false" visibility="public"
  71806. deprecated="not deprecated">
  71807. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71808. <doc>
  71809. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  71810. By default these counters are disabled.
  71811. @param job the job
  71812. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  71813. </doc>
  71814. </method>
  71815. <method name="write"
  71816. abstract="false" native="false" synchronized="false"
  71817. static="false" final="false" visibility="public"
  71818. deprecated="not deprecated">
  71819. <param name="namedOutput" type="java.lang.String"/>
  71820. <param name="key" type="java.lang.Object"/>
  71821. <param name="value" type="java.lang.Object"/>
  71822. <exception name="IOException" type="java.io.IOException"/>
  71823. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71824. <doc>
  71825. <![CDATA[Write key and value to the namedOutput.
  71826. Output path is a unique file generated for the namedOutput.
  71827. For example, {namedOutput}-(m|r)-{part-number}
  71828. @param namedOutput the named output name
  71829. @param key the key
  71830. @param value the value]]>
  71831. </doc>
  71832. </method>
  71833. <method name="write"
  71834. abstract="false" native="false" synchronized="false"
  71835. static="false" final="false" visibility="public"
  71836. deprecated="not deprecated">
  71837. <param name="namedOutput" type="java.lang.String"/>
  71838. <param name="key" type="java.lang.Object"/>
  71839. <param name="value" type="java.lang.Object"/>
  71840. <param name="baseOutputPath" type="java.lang.String"/>
  71841. <exception name="IOException" type="java.io.IOException"/>
  71842. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71843. <doc>
  71844. <![CDATA[Write key and value to baseOutputPath using the namedOutput.
  71845. @param namedOutput the named output name
  71846. @param key the key
  71847. @param value the value
  71848. @param baseOutputPath base-output path to write the record to.
  71849. Note: Framework will generate unique filename for the baseOutputPath]]>
  71850. </doc>
  71851. </method>
  71852. <method name="write"
  71853. abstract="false" native="false" synchronized="false"
  71854. static="false" final="false" visibility="public"
  71855. deprecated="not deprecated">
  71856. <param name="key" type="java.lang.Object"/>
  71857. <param name="value" type="java.lang.Object"/>
  71858. <param name="baseOutputPath" type="java.lang.String"/>
  71859. <exception name="IOException" type="java.io.IOException"/>
  71860. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71861. <doc>
  71862. <![CDATA[Write key value to an output file name.
  71863. Gets the record writer from job's output format.
  71864. Job's output format should be a FileOutputFormat.
  71865. @param key the key
  71866. @param value the value
  71867. @param baseOutputPath base-output path to write the record to.
  71868. Note: Framework will generate unique filename for the baseOutputPath]]>
  71869. </doc>
  71870. </method>
  71871. <method name="close"
  71872. abstract="false" native="false" synchronized="false"
  71873. static="false" final="false" visibility="public"
  71874. deprecated="not deprecated">
  71875. <exception name="IOException" type="java.io.IOException"/>
  71876. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71877. <doc>
  71878. <![CDATA[Closes all the opened outputs.
  71879. This should be called from cleanup method of map/reduce task.
  71880. If overridden subclasses must invoke <code>super.close()</code> at the
  71881. end of their <code>close()</code>]]>
  71882. </doc>
  71883. </method>
  71884. <doc>
  71885. <![CDATA[The MultipleOutputs class simplifies writing output data
  71886. to multiple outputs
  71887. <p>
  71888. Case one: writing to additional outputs other than the job default output.
  71889. Each additional output, or named output, may be configured with its own
  71890. <code>OutputFormat</code>, with its own key class and with its own value
  71891. class.
  71892. <p>
  71893. Case two: to write data to different files provided by user
  71894. </p>
  71895. <p>
  71896. MultipleOutputs supports counters, by default they are disabled. The
  71897. counters group is the {@link MultipleOutputs} class name. The names of the
  71898. counters are the same as the output name. These count the number records
  71899. written to each output name.
  71900. </p>
  71901. Usage pattern for job submission:
  71902. <pre>
  71903. Job job = new Job();
  71904. FileInputFormat.setInputPath(job, inDir);
  71905. FileOutputFormat.setOutputPath(job, outDir);
  71906. job.setMapperClass(MOMap.class);
  71907. job.setReducerClass(MOReduce.class);
  71908. ...
  71909. // Defines additional single text based output 'text' for the job
  71910. MultipleOutputs.addNamedOutput(job, "text", TextOutputFormat.class,
  71911. LongWritable.class, Text.class);
  71912. // Defines additional sequence-file based output 'sequence' for the job
  71913. MultipleOutputs.addNamedOutput(job, "seq",
  71914. SequenceFileOutputFormat.class,
  71915. LongWritable.class, Text.class);
  71916. ...
  71917. job.waitForCompletion(true);
  71918. ...
  71919. </pre>
  71920. <p>
  71921. Usage in Reducer:
  71922. <pre>
  71923. <K, V> String generateFileName(K k, V v) {
  71924. return k.toString() + "_" + v.toString();
  71925. }
  71926. public class MOReduce extends
  71927. Reducer&lt;WritableComparable, Writable,WritableComparable, Writable&gt; {
  71928. private MultipleOutputs mos;
  71929. public void setup(Context context) {
  71930. ...
  71931. mos = new MultipleOutputs(context);
  71932. }
  71933. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  71934. Context context)
  71935. throws IOException {
  71936. ...
  71937. mos.write("text", , key, new Text("Hello"));
  71938. mos.write("seq", LongWritable(1), new Text("Bye"), "seq_a");
  71939. mos.write("seq", LongWritable(2), key, new Text("Chau"), "seq_b");
  71940. mos.write(key, new Text("value"), generateFileName(key, new Text("value")));
  71941. ...
  71942. }
  71943. public void cleanup(Context) throws IOException {
  71944. mos.close();
  71945. ...
  71946. }
  71947. }
  71948. </pre>]]>
  71949. </doc>
  71950. </class>
  71951. <!-- end class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  71952. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  71953. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  71954. abstract="false"
  71955. static="false" final="false" visibility="public"
  71956. deprecated="not deprecated">
  71957. <constructor name="NullOutputFormat"
  71958. static="false" final="false" visibility="public"
  71959. deprecated="not deprecated">
  71960. </constructor>
  71961. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  71962. abstract="false" native="false" synchronized="false"
  71963. static="false" final="false" visibility="public"
  71964. deprecated="not deprecated">
  71965. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71966. </method>
  71967. <method name="checkOutputSpecs"
  71968. abstract="false" native="false" synchronized="false"
  71969. static="false" final="false" visibility="public"
  71970. deprecated="not deprecated">
  71971. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71972. </method>
  71973. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  71974. abstract="false" native="false" synchronized="false"
  71975. static="false" final="false" visibility="public"
  71976. deprecated="not deprecated">
  71977. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71978. </method>
  71979. <doc>
  71980. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  71981. </doc>
  71982. </class>
  71983. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  71984. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  71985. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat"
  71986. abstract="false"
  71987. static="false" final="false" visibility="public"
  71988. deprecated="not deprecated">
  71989. <constructor name="SequenceFileAsBinaryOutputFormat"
  71990. static="false" final="false" visibility="public"
  71991. deprecated="not deprecated">
  71992. </constructor>
  71993. <method name="setSequenceFileOutputKeyClass"
  71994. abstract="false" native="false" synchronized="false"
  71995. static="true" final="false" visibility="public"
  71996. deprecated="not deprecated">
  71997. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71998. <param name="theClass" type="java.lang.Class"/>
  71999. <doc>
  72000. <![CDATA[Set the key class for the {@link SequenceFile}
  72001. <p>This allows the user to specify the key class to be different
  72002. from the actual class ({@link BytesWritable}) used for writing </p>
  72003. @param job the {@link Job} to modify
  72004. @param theClass the SequenceFile output key class.]]>
  72005. </doc>
  72006. </method>
  72007. <method name="setSequenceFileOutputValueClass"
  72008. abstract="false" native="false" synchronized="false"
  72009. static="true" final="false" visibility="public"
  72010. deprecated="not deprecated">
  72011. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72012. <param name="theClass" type="java.lang.Class"/>
  72013. <doc>
  72014. <![CDATA[Set the value class for the {@link SequenceFile}
  72015. <p>This allows the user to specify the value class to be different
  72016. from the actual class ({@link BytesWritable}) used for writing </p>
  72017. @param job the {@link Job} to modify
  72018. @param theClass the SequenceFile output key class.]]>
  72019. </doc>
  72020. </method>
  72021. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  72022. abstract="false" native="false" synchronized="false"
  72023. static="true" final="false" visibility="public"
  72024. deprecated="not deprecated">
  72025. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72026. <doc>
  72027. <![CDATA[Get the key class for the {@link SequenceFile}
  72028. @return the key class of the {@link SequenceFile}]]>
  72029. </doc>
  72030. </method>
  72031. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  72032. abstract="false" native="false" synchronized="false"
  72033. static="true" final="false" visibility="public"
  72034. deprecated="not deprecated">
  72035. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72036. <doc>
  72037. <![CDATA[Get the value class for the {@link SequenceFile}
  72038. @return the value class of the {@link SequenceFile}]]>
  72039. </doc>
  72040. </method>
  72041. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72042. abstract="false" native="false" synchronized="false"
  72043. static="false" final="false" visibility="public"
  72044. deprecated="not deprecated">
  72045. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72046. <exception name="IOException" type="java.io.IOException"/>
  72047. </method>
  72048. <method name="getSequenceWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  72049. abstract="false" native="false" synchronized="false"
  72050. static="false" final="false" visibility="protected"
  72051. deprecated="not deprecated">
  72052. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72053. <param name="keyClass" type="java.lang.Class"/>
  72054. <param name="valueClass" type="java.lang.Class"/>
  72055. <exception name="IOException" type="java.io.IOException"/>
  72056. </method>
  72057. <method name="checkOutputSpecs"
  72058. abstract="false" native="false" synchronized="false"
  72059. static="false" final="false" visibility="public"
  72060. deprecated="not deprecated">
  72061. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72062. <exception name="IOException" type="java.io.IOException"/>
  72063. </method>
  72064. <field name="KEY_CLASS" type="java.lang.String"
  72065. transient="false" volatile="false"
  72066. static="true" final="false" visibility="public"
  72067. deprecated="not deprecated">
  72068. </field>
  72069. <field name="VALUE_CLASS" type="java.lang.String"
  72070. transient="false" volatile="false"
  72071. static="true" final="false" visibility="public"
  72072. deprecated="not deprecated">
  72073. </field>
  72074. <doc>
  72075. <![CDATA[An {@link org.apache.hadoop.mapreduce.OutputFormat} that writes keys,
  72076. values to {@link SequenceFile}s in binary(raw) format]]>
  72077. </doc>
  72078. </class>
  72079. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  72080. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  72081. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  72082. abstract="false"
  72083. static="true" final="false" visibility="public"
  72084. deprecated="not deprecated">
  72085. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  72086. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  72087. static="false" final="false" visibility="public"
  72088. deprecated="not deprecated">
  72089. </constructor>
  72090. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  72091. static="false" final="false" visibility="public"
  72092. deprecated="not deprecated">
  72093. </constructor>
  72094. <method name="reset"
  72095. abstract="false" native="false" synchronized="false"
  72096. static="false" final="false" visibility="public"
  72097. deprecated="not deprecated">
  72098. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  72099. </method>
  72100. <method name="writeUncompressedBytes"
  72101. abstract="false" native="false" synchronized="false"
  72102. static="false" final="false" visibility="public"
  72103. deprecated="not deprecated">
  72104. <param name="outStream" type="java.io.DataOutputStream"/>
  72105. <exception name="IOException" type="java.io.IOException"/>
  72106. </method>
  72107. <method name="writeCompressedBytes"
  72108. abstract="false" native="false" synchronized="false"
  72109. static="false" final="false" visibility="public"
  72110. deprecated="not deprecated">
  72111. <param name="outStream" type="java.io.DataOutputStream"/>
  72112. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  72113. <exception name="IOException" type="java.io.IOException"/>
  72114. </method>
  72115. <method name="getSize" return="int"
  72116. abstract="false" native="false" synchronized="false"
  72117. static="false" final="false" visibility="public"
  72118. deprecated="not deprecated">
  72119. </method>
  72120. <doc>
  72121. <![CDATA[Inner class used for appendRaw]]>
  72122. </doc>
  72123. </class>
  72124. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  72125. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  72126. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  72127. abstract="false"
  72128. static="false" final="false" visibility="public"
  72129. deprecated="not deprecated">
  72130. <constructor name="SequenceFileOutputFormat"
  72131. static="false" final="false" visibility="public"
  72132. deprecated="not deprecated">
  72133. </constructor>
  72134. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72135. abstract="false" native="false" synchronized="false"
  72136. static="false" final="false" visibility="public"
  72137. deprecated="not deprecated">
  72138. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72139. <exception name="IOException" type="java.io.IOException"/>
  72140. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72141. </method>
  72142. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  72143. abstract="false" native="false" synchronized="false"
  72144. static="true" final="false" visibility="public"
  72145. deprecated="not deprecated">
  72146. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72147. <doc>
  72148. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  72149. @param job the {@link Job}
  72150. @return the {@link CompressionType} for the output {@link SequenceFile},
  72151. defaulting to {@link CompressionType#RECORD}]]>
  72152. </doc>
  72153. </method>
  72154. <method name="setOutputCompressionType"
  72155. abstract="false" native="false" synchronized="false"
  72156. static="true" final="false" visibility="public"
  72157. deprecated="not deprecated">
  72158. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72159. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  72160. <doc>
  72161. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  72162. @param job the {@link Job} to modify
  72163. @param style the {@link CompressionType} for the output
  72164. {@link SequenceFile}]]>
  72165. </doc>
  72166. </method>
  72167. <doc>
  72168. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  72169. </doc>
  72170. </class>
  72171. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  72172. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  72173. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  72174. abstract="false"
  72175. static="false" final="false" visibility="public"
  72176. deprecated="not deprecated">
  72177. <constructor name="TextOutputFormat"
  72178. static="false" final="false" visibility="public"
  72179. deprecated="not deprecated">
  72180. </constructor>
  72181. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72182. abstract="false" native="false" synchronized="false"
  72183. static="false" final="false" visibility="public"
  72184. deprecated="not deprecated">
  72185. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72186. <exception name="IOException" type="java.io.IOException"/>
  72187. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72188. </method>
  72189. <doc>
  72190. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  72191. </doc>
  72192. </class>
  72193. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  72194. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  72195. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  72196. abstract="false"
  72197. static="true" final="false" visibility="protected"
  72198. deprecated="not deprecated">
  72199. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  72200. static="false" final="false" visibility="public"
  72201. deprecated="not deprecated">
  72202. </constructor>
  72203. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  72204. static="false" final="false" visibility="public"
  72205. deprecated="not deprecated">
  72206. </constructor>
  72207. <method name="write"
  72208. abstract="false" native="false" synchronized="true"
  72209. static="false" final="false" visibility="public"
  72210. deprecated="not deprecated">
  72211. <param name="key" type="java.lang.Object"/>
  72212. <param name="value" type="java.lang.Object"/>
  72213. <exception name="IOException" type="java.io.IOException"/>
  72214. </method>
  72215. <method name="close"
  72216. abstract="false" native="false" synchronized="true"
  72217. static="false" final="false" visibility="public"
  72218. deprecated="not deprecated">
  72219. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72220. <exception name="IOException" type="java.io.IOException"/>
  72221. </method>
  72222. <field name="out" type="java.io.DataOutputStream"
  72223. transient="false" volatile="false"
  72224. static="false" final="false" visibility="protected"
  72225. deprecated="not deprecated">
  72226. </field>
  72227. </class>
  72228. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  72229. </package>
  72230. <package name="org.apache.hadoop.mapreduce.lib.partition">
  72231. <!-- start class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  72232. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  72233. abstract="false"
  72234. static="false" final="false" visibility="public"
  72235. deprecated="not deprecated">
  72236. <implements name="org.apache.hadoop.conf.Configurable"/>
  72237. <constructor name="BinaryPartitioner"
  72238. static="false" final="false" visibility="public"
  72239. deprecated="not deprecated">
  72240. </constructor>
  72241. <method name="setOffsets"
  72242. abstract="false" native="false" synchronized="false"
  72243. static="true" final="false" visibility="public"
  72244. deprecated="not deprecated">
  72245. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72246. <param name="left" type="int"/>
  72247. <param name="right" type="int"/>
  72248. <doc>
  72249. <![CDATA[Set the subarray to be used for partitioning to
  72250. <code>bytes[left:(right+1)]</code> in Python syntax.
  72251. @param conf configuration object
  72252. @param left left Python-style offset
  72253. @param right right Python-style offset]]>
  72254. </doc>
  72255. </method>
  72256. <method name="setLeftOffset"
  72257. abstract="false" native="false" synchronized="false"
  72258. static="true" final="false" visibility="public"
  72259. deprecated="not deprecated">
  72260. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72261. <param name="offset" type="int"/>
  72262. <doc>
  72263. <![CDATA[Set the subarray to be used for partitioning to
  72264. <code>bytes[offset:]</code> in Python syntax.
  72265. @param conf configuration object
  72266. @param offset left Python-style offset]]>
  72267. </doc>
  72268. </method>
  72269. <method name="setRightOffset"
  72270. abstract="false" native="false" synchronized="false"
  72271. static="true" final="false" visibility="public"
  72272. deprecated="not deprecated">
  72273. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72274. <param name="offset" type="int"/>
  72275. <doc>
  72276. <![CDATA[Set the subarray to be used for partitioning to
  72277. <code>bytes[:(offset+1)]</code> in Python syntax.
  72278. @param conf configuration object
  72279. @param offset right Python-style offset]]>
  72280. </doc>
  72281. </method>
  72282. <method name="setConf"
  72283. abstract="false" native="false" synchronized="false"
  72284. static="false" final="false" visibility="public"
  72285. deprecated="not deprecated">
  72286. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72287. </method>
  72288. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72289. abstract="false" native="false" synchronized="false"
  72290. static="false" final="false" visibility="public"
  72291. deprecated="not deprecated">
  72292. </method>
  72293. <method name="getPartition" return="int"
  72294. abstract="false" native="false" synchronized="false"
  72295. static="false" final="false" visibility="public"
  72296. deprecated="not deprecated">
  72297. <param name="key" type="org.apache.hadoop.io.BinaryComparable"/>
  72298. <param name="value" type="java.lang.Object"/>
  72299. <param name="numPartitions" type="int"/>
  72300. <doc>
  72301. <![CDATA[Use (the specified slice of the array returned by)
  72302. {@link BinaryComparable#getBytes()} to partition.]]>
  72303. </doc>
  72304. </method>
  72305. <doc>
  72306. <![CDATA[<p>Partition {@link BinaryComparable} keys using a configurable part of
  72307. the bytes array returned by {@link BinaryComparable#getBytes()}.</p>
  72308. <p>The subarray to be used for the partitioning can be defined by means
  72309. of the following properties:
  72310. <ul>
  72311. <li>
  72312. <i>mapred.binary.partitioner.left.offset</i>:
  72313. left offset in array (0 by default)
  72314. </li>
  72315. <li>
  72316. <i>mapred.binary.partitioner.right.offset</i>:
  72317. right offset in array (-1 by default)
  72318. </li>
  72319. </ul>
  72320. Like in Python, both negative and positive offsets are allowed, but
  72321. the meaning is slightly different. In case of an array of length 5,
  72322. for instance, the possible offsets are:
  72323. <pre><code>
  72324. +---+---+---+---+---+
  72325. | B | B | B | B | B |
  72326. +---+---+---+---+---+
  72327. 0 1 2 3 4
  72328. -5 -4 -3 -2 -1
  72329. </code></pre>
  72330. The first row of numbers gives the position of the offsets 0...5 in
  72331. the array; the second row gives the corresponding negative offsets.
  72332. Contrary to Python, the specified subarray has byte <code>i</code>
  72333. and <code>j</code> as first and last element, repectively, when
  72334. <code>i</code> and <code>j</code> are the left and right offset.
  72335. <p>For Hadoop programs written in Java, it is advisable to use one of
  72336. the following static convenience methods for setting the offsets:
  72337. <ul>
  72338. <li>{@link #setOffsets}</li>
  72339. <li>{@link #setLeftOffset}</li>
  72340. <li>{@link #setRightOffset}</li>
  72341. </ul></p>]]>
  72342. </doc>
  72343. </class>
  72344. <!-- end class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  72345. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  72346. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  72347. abstract="false"
  72348. static="false" final="false" visibility="public"
  72349. deprecated="not deprecated">
  72350. <constructor name="HashPartitioner"
  72351. static="false" final="false" visibility="public"
  72352. deprecated="not deprecated">
  72353. </constructor>
  72354. <method name="getPartition" return="int"
  72355. abstract="false" native="false" synchronized="false"
  72356. static="false" final="false" visibility="public"
  72357. deprecated="not deprecated">
  72358. <param name="key" type="java.lang.Object"/>
  72359. <param name="value" type="java.lang.Object"/>
  72360. <param name="numReduceTasks" type="int"/>
  72361. <doc>
  72362. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  72363. </doc>
  72364. </method>
  72365. <doc>
  72366. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  72367. </doc>
  72368. </class>
  72369. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  72370. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  72371. <class name="InputSampler" extends="org.apache.hadoop.conf.Configured"
  72372. abstract="false"
  72373. static="false" final="false" visibility="public"
  72374. deprecated="not deprecated">
  72375. <implements name="org.apache.hadoop.util.Tool"/>
  72376. <constructor name="InputSampler" type="org.apache.hadoop.conf.Configuration"
  72377. static="false" final="false" visibility="public"
  72378. deprecated="not deprecated">
  72379. </constructor>
  72380. <method name="writePartitionFile"
  72381. abstract="false" native="false" synchronized="false"
  72382. static="true" final="false" visibility="public"
  72383. deprecated="not deprecated">
  72384. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72385. <param name="sampler" type="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  72386. <exception name="IOException" type="java.io.IOException"/>
  72387. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  72388. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72389. <doc>
  72390. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  72391. Queries the sampler for a sample keyset, sorts by the output key
  72392. comparator, selects the keys for each rank, and writes to the destination
  72393. returned from {@link TotalOrderPartitioner#getPartitionFile}.]]>
  72394. </doc>
  72395. </method>
  72396. <method name="run" return="int"
  72397. abstract="false" native="false" synchronized="false"
  72398. static="false" final="false" visibility="public"
  72399. deprecated="not deprecated">
  72400. <param name="args" type="java.lang.String[]"/>
  72401. <exception name="Exception" type="java.lang.Exception"/>
  72402. <doc>
  72403. <![CDATA[Driver for InputSampler from the command line.
  72404. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  72405. </doc>
  72406. </method>
  72407. <method name="main"
  72408. abstract="false" native="false" synchronized="false"
  72409. static="true" final="false" visibility="public"
  72410. deprecated="not deprecated">
  72411. <param name="args" type="java.lang.String[]"/>
  72412. <exception name="Exception" type="java.lang.Exception"/>
  72413. </method>
  72414. <doc>
  72415. <![CDATA[Utility for collecting samples and writing a partition file for
  72416. {@link TotalOrderPartitioner}.]]>
  72417. </doc>
  72418. </class>
  72419. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  72420. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  72421. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  72422. abstract="false"
  72423. static="true" final="false" visibility="public"
  72424. deprecated="not deprecated">
  72425. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  72426. <constructor name="InputSampler.IntervalSampler" type="double"
  72427. static="false" final="false" visibility="public"
  72428. deprecated="not deprecated">
  72429. <doc>
  72430. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  72431. @param freq The frequency with which records will be emitted.]]>
  72432. </doc>
  72433. </constructor>
  72434. <constructor name="InputSampler.IntervalSampler" type="double, int"
  72435. static="false" final="false" visibility="public"
  72436. deprecated="not deprecated">
  72437. <doc>
  72438. <![CDATA[Create a new IntervalSampler.
  72439. @param freq The frequency with which records will be emitted.
  72440. @param maxSplitsSampled The maximum number of splits to examine.
  72441. @see #getSample]]>
  72442. </doc>
  72443. </constructor>
  72444. <method name="getSample" return="java.lang.Object[]"
  72445. abstract="false" native="false" synchronized="false"
  72446. static="false" final="false" visibility="public"
  72447. deprecated="not deprecated">
  72448. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  72449. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72450. <exception name="IOException" type="java.io.IOException"/>
  72451. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72452. <doc>
  72453. <![CDATA[For each split sampled, emit when the ratio of the number of records
  72454. retained to the total record count is less than the specified
  72455. frequency.]]>
  72456. </doc>
  72457. </method>
  72458. <doc>
  72459. <![CDATA[Sample from s splits at regular intervals.
  72460. Useful for sorted data.]]>
  72461. </doc>
  72462. </class>
  72463. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  72464. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  72465. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  72466. abstract="false"
  72467. static="true" final="false" visibility="public"
  72468. deprecated="not deprecated">
  72469. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  72470. <constructor name="InputSampler.RandomSampler" type="double, int"
  72471. static="false" final="false" visibility="public"
  72472. deprecated="not deprecated">
  72473. <doc>
  72474. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  72475. This will read every split at the client, which is very expensive.
  72476. @param freq Probability with which a key will be chosen.
  72477. @param numSamples Total number of samples to obtain from all selected
  72478. splits.]]>
  72479. </doc>
  72480. </constructor>
  72481. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  72482. static="false" final="false" visibility="public"
  72483. deprecated="not deprecated">
  72484. <doc>
  72485. <![CDATA[Create a new RandomSampler.
  72486. @param freq Probability with which a key will be chosen.
  72487. @param numSamples Total number of samples to obtain from all selected
  72488. splits.
  72489. @param maxSplitsSampled The maximum number of splits to examine.]]>
  72490. </doc>
  72491. </constructor>
  72492. <method name="getSample" return="java.lang.Object[]"
  72493. abstract="false" native="false" synchronized="false"
  72494. static="false" final="false" visibility="public"
  72495. deprecated="not deprecated">
  72496. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  72497. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72498. <exception name="IOException" type="java.io.IOException"/>
  72499. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72500. <doc>
  72501. <![CDATA[Randomize the split order, then take the specified number of keys from
  72502. each split sampled, where each key is selected with the specified
  72503. probability and possibly replaced by a subsequently selected key when
  72504. the quota of keys from that split is satisfied.]]>
  72505. </doc>
  72506. </method>
  72507. <doc>
  72508. <![CDATA[Sample from random points in the input.
  72509. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  72510. each split.]]>
  72511. </doc>
  72512. </class>
  72513. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  72514. <!-- start interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  72515. <interface name="InputSampler.Sampler" abstract="true"
  72516. static="true" final="false" visibility="public"
  72517. deprecated="not deprecated">
  72518. <method name="getSample" return="java.lang.Object[]"
  72519. abstract="false" native="false" synchronized="false"
  72520. static="false" final="false" visibility="public"
  72521. deprecated="not deprecated">
  72522. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  72523. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72524. <exception name="IOException" type="java.io.IOException"/>
  72525. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72526. <doc>
  72527. <![CDATA[For a given job, collect and return a subset of the keys from the
  72528. input data.]]>
  72529. </doc>
  72530. </method>
  72531. <doc>
  72532. <![CDATA[Interface to sample using an
  72533. {@link org.apache.hadoop.mapreduce.InputFormat}.]]>
  72534. </doc>
  72535. </interface>
  72536. <!-- end interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  72537. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  72538. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  72539. abstract="false"
  72540. static="true" final="false" visibility="public"
  72541. deprecated="not deprecated">
  72542. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  72543. <constructor name="InputSampler.SplitSampler" type="int"
  72544. static="false" final="false" visibility="public"
  72545. deprecated="not deprecated">
  72546. <doc>
  72547. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  72548. Takes the first numSamples / numSplits records from each split.
  72549. @param numSamples Total number of samples to obtain from all selected
  72550. splits.]]>
  72551. </doc>
  72552. </constructor>
  72553. <constructor name="InputSampler.SplitSampler" type="int, int"
  72554. static="false" final="false" visibility="public"
  72555. deprecated="not deprecated">
  72556. <doc>
  72557. <![CDATA[Create a new SplitSampler.
  72558. @param numSamples Total number of samples to obtain from all selected
  72559. splits.
  72560. @param maxSplitsSampled The maximum number of splits to examine.]]>
  72561. </doc>
  72562. </constructor>
  72563. <method name="getSample" return="java.lang.Object[]"
  72564. abstract="false" native="false" synchronized="false"
  72565. static="false" final="false" visibility="public"
  72566. deprecated="not deprecated">
  72567. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  72568. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72569. <exception name="IOException" type="java.io.IOException"/>
  72570. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72571. <doc>
  72572. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  72573. </doc>
  72574. </method>
  72575. <doc>
  72576. <![CDATA[Samples the first n records from s splits.
  72577. Inexpensive way to sample random data.]]>
  72578. </doc>
  72579. </class>
  72580. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  72581. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  72582. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  72583. abstract="false"
  72584. static="false" final="false" visibility="public"
  72585. deprecated="not deprecated">
  72586. <implements name="org.apache.hadoop.conf.Configurable"/>
  72587. <constructor name="KeyFieldBasedComparator"
  72588. static="false" final="false" visibility="public"
  72589. deprecated="not deprecated">
  72590. </constructor>
  72591. <method name="setConf"
  72592. abstract="false" native="false" synchronized="false"
  72593. static="false" final="false" visibility="public"
  72594. deprecated="not deprecated">
  72595. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72596. </method>
  72597. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72598. abstract="false" native="false" synchronized="false"
  72599. static="false" final="false" visibility="public"
  72600. deprecated="not deprecated">
  72601. </method>
  72602. <method name="compare" return="int"
  72603. abstract="false" native="false" synchronized="false"
  72604. static="false" final="false" visibility="public"
  72605. deprecated="not deprecated">
  72606. <param name="b1" type="byte[]"/>
  72607. <param name="s1" type="int"/>
  72608. <param name="l1" type="int"/>
  72609. <param name="b2" type="byte[]"/>
  72610. <param name="s2" type="int"/>
  72611. <param name="l2" type="int"/>
  72612. </method>
  72613. <method name="setKeyFieldComparatorOptions"
  72614. abstract="false" native="false" synchronized="false"
  72615. static="true" final="false" visibility="public"
  72616. deprecated="not deprecated">
  72617. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72618. <param name="keySpec" type="java.lang.String"/>
  72619. <doc>
  72620. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  72621. @param keySpec the key specification of the form -k pos1[,pos2], where,
  72622. pos is of the form f[.c][opts], where f is the number
  72623. of the key field to use, and c is the number of the first character from
  72624. the beginning of the field. Fields and character posns are numbered
  72625. starting with 1; a character position of zero in pos2 indicates the
  72626. field's last character. If '.c' is omitted from pos1, it defaults to 1
  72627. (the beginning of the field); if omitted from pos2, it defaults to 0
  72628. (the end of the field). opts are ordering options. The supported options
  72629. are:
  72630. -n, (Sort numerically)
  72631. -r, (Reverse the result of comparison)]]>
  72632. </doc>
  72633. </method>
  72634. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  72635. abstract="false" native="false" synchronized="false"
  72636. static="true" final="false" visibility="public"
  72637. deprecated="not deprecated">
  72638. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72639. <doc>
  72640. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  72641. </doc>
  72642. </method>
  72643. <field name="COMPARATOR_OPTIONS" type="java.lang.String"
  72644. transient="false" volatile="false"
  72645. static="true" final="false" visibility="public"
  72646. deprecated="not deprecated">
  72647. </field>
  72648. <doc>
  72649. <![CDATA[This comparator implementation provides a subset of the features provided
  72650. by the Unix/GNU Sort. In particular, the supported features are:
  72651. -n, (Sort numerically)
  72652. -r, (Reverse the result of comparison)
  72653. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  72654. of the field to use, and c is the number of the first character from the
  72655. beginning of the field. Fields and character posns are numbered starting
  72656. with 1; a character position of zero in pos2 indicates the field's last
  72657. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  72658. of the field); if omitted from pos2, it defaults to 0 (the end of the
  72659. field). opts are ordering options (any of 'nr' as described above).
  72660. We assume that the fields in the key are separated by
  72661. {@link JobContext#MAP_OUTPUT_KEY_FIELD_SEPERATOR}.]]>
  72662. </doc>
  72663. </class>
  72664. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  72665. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  72666. <class name="KeyFieldBasedPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  72667. abstract="false"
  72668. static="false" final="false" visibility="public"
  72669. deprecated="not deprecated">
  72670. <implements name="org.apache.hadoop.conf.Configurable"/>
  72671. <constructor name="KeyFieldBasedPartitioner"
  72672. static="false" final="false" visibility="public"
  72673. deprecated="not deprecated">
  72674. </constructor>
  72675. <method name="setConf"
  72676. abstract="false" native="false" synchronized="false"
  72677. static="false" final="false" visibility="public"
  72678. deprecated="not deprecated">
  72679. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72680. </method>
  72681. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72682. abstract="false" native="false" synchronized="false"
  72683. static="false" final="false" visibility="public"
  72684. deprecated="not deprecated">
  72685. </method>
  72686. <method name="getPartition" return="int"
  72687. abstract="false" native="false" synchronized="false"
  72688. static="false" final="false" visibility="public"
  72689. deprecated="not deprecated">
  72690. <param name="key" type="java.lang.Object"/>
  72691. <param name="value" type="java.lang.Object"/>
  72692. <param name="numReduceTasks" type="int"/>
  72693. </method>
  72694. <method name="hashCode" return="int"
  72695. abstract="false" native="false" synchronized="false"
  72696. static="false" final="false" visibility="protected"
  72697. deprecated="not deprecated">
  72698. <param name="b" type="byte[]"/>
  72699. <param name="start" type="int"/>
  72700. <param name="end" type="int"/>
  72701. <param name="currentHash" type="int"/>
  72702. </method>
  72703. <method name="getPartition" return="int"
  72704. abstract="false" native="false" synchronized="false"
  72705. static="false" final="false" visibility="protected"
  72706. deprecated="not deprecated">
  72707. <param name="hash" type="int"/>
  72708. <param name="numReduceTasks" type="int"/>
  72709. </method>
  72710. <method name="setKeyFieldPartitionerOptions"
  72711. abstract="false" native="false" synchronized="false"
  72712. static="false" final="false" visibility="public"
  72713. deprecated="not deprecated">
  72714. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72715. <param name="keySpec" type="java.lang.String"/>
  72716. <doc>
  72717. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  72718. {@link Partitioner}
  72719. @param keySpec the key specification of the form -k pos1[,pos2], where,
  72720. pos is of the form f[.c][opts], where f is the number
  72721. of the key field to use, and c is the number of the first character from
  72722. the beginning of the field. Fields and character posns are numbered
  72723. starting with 1; a character position of zero in pos2 indicates the
  72724. field's last character. If '.c' is omitted from pos1, it defaults to 1
  72725. (the beginning of the field); if omitted from pos2, it defaults to 0
  72726. (the end of the field).]]>
  72727. </doc>
  72728. </method>
  72729. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  72730. abstract="false" native="false" synchronized="false"
  72731. static="false" final="false" visibility="public"
  72732. deprecated="not deprecated">
  72733. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72734. <doc>
  72735. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  72736. </doc>
  72737. </method>
  72738. <field name="PARTITIONER_OPTIONS" type="java.lang.String"
  72739. transient="false" volatile="false"
  72740. static="true" final="false" visibility="public"
  72741. deprecated="not deprecated">
  72742. </field>
  72743. <doc>
  72744. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  72745. {@link KeyFieldBasedComparator}.
  72746. The key specification supported is of the form -k pos1[,pos2], where,
  72747. pos is of the form f[.c][opts], where f is the number
  72748. of the key field to use, and c is the number of the first character from
  72749. the beginning of the field. Fields and character posns are numbered
  72750. starting with 1; a character position of zero in pos2 indicates the
  72751. field's last character. If '.c' is omitted from pos1, it defaults to 1
  72752. (the beginning of the field); if omitted from pos2, it defaults to 0
  72753. (the end of the field).]]>
  72754. </doc>
  72755. </class>
  72756. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  72757. <!-- start class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  72758. <class name="TotalOrderPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  72759. abstract="false"
  72760. static="false" final="false" visibility="public"
  72761. deprecated="not deprecated">
  72762. <implements name="org.apache.hadoop.conf.Configurable"/>
  72763. <constructor name="TotalOrderPartitioner"
  72764. static="false" final="false" visibility="public"
  72765. deprecated="not deprecated">
  72766. </constructor>
  72767. <method name="setConf"
  72768. abstract="false" native="false" synchronized="false"
  72769. static="false" final="false" visibility="public"
  72770. deprecated="not deprecated">
  72771. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72772. <doc>
  72773. <![CDATA[Read in the partition file and build indexing data structures.
  72774. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  72775. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  72776. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  72777. will be built. Otherwise, keys will be located using a binary search of
  72778. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  72779. defined for this job. The input file must be sorted with the same
  72780. comparator and contain {@link Job#getNumReduceTasks()} - 1 keys.]]>
  72781. </doc>
  72782. </method>
  72783. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72784. abstract="false" native="false" synchronized="false"
  72785. static="false" final="false" visibility="public"
  72786. deprecated="not deprecated">
  72787. </method>
  72788. <method name="getPartition" return="int"
  72789. abstract="false" native="false" synchronized="false"
  72790. static="false" final="false" visibility="public"
  72791. deprecated="not deprecated">
  72792. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  72793. <param name="value" type="java.lang.Object"/>
  72794. <param name="numPartitions" type="int"/>
  72795. </method>
  72796. <method name="setPartitionFile"
  72797. abstract="false" native="false" synchronized="false"
  72798. static="true" final="false" visibility="public"
  72799. deprecated="not deprecated">
  72800. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72801. <param name="p" type="org.apache.hadoop.fs.Path"/>
  72802. <doc>
  72803. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  72804. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  72805. keys in the SequenceFile.]]>
  72806. </doc>
  72807. </method>
  72808. <method name="getPartitionFile" return="java.lang.String"
  72809. abstract="false" native="false" synchronized="false"
  72810. static="true" final="false" visibility="public"
  72811. deprecated="not deprecated">
  72812. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72813. <doc>
  72814. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  72815. @see #setPartitionFile(Configuration, Path)]]>
  72816. </doc>
  72817. </method>
  72818. <field name="DEFAULT_PATH" type="java.lang.String"
  72819. transient="false" volatile="false"
  72820. static="true" final="true" visibility="public"
  72821. deprecated="not deprecated">
  72822. </field>
  72823. <field name="PARTITIONER_PATH" type="java.lang.String"
  72824. transient="false" volatile="false"
  72825. static="true" final="true" visibility="public"
  72826. deprecated="not deprecated">
  72827. </field>
  72828. <field name="MAX_TRIE_DEPTH" type="java.lang.String"
  72829. transient="false" volatile="false"
  72830. static="true" final="true" visibility="public"
  72831. deprecated="not deprecated">
  72832. </field>
  72833. <field name="NATURAL_ORDER" type="java.lang.String"
  72834. transient="false" volatile="false"
  72835. static="true" final="true" visibility="public"
  72836. deprecated="not deprecated">
  72837. </field>
  72838. <doc>
  72839. <![CDATA[Partitioner effecting a total order by reading split points from
  72840. an externally generated source.]]>
  72841. </doc>
  72842. </class>
  72843. <!-- end class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  72844. </package>
  72845. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  72846. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  72847. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  72848. abstract="false"
  72849. static="false" final="false" visibility="public"
  72850. deprecated="not deprecated">
  72851. <constructor name="IntSumReducer"
  72852. static="false" final="false" visibility="public"
  72853. deprecated="not deprecated">
  72854. </constructor>
  72855. <method name="reduce"
  72856. abstract="false" native="false" synchronized="false"
  72857. static="false" final="false" visibility="public"
  72858. deprecated="not deprecated">
  72859. <param name="key" type="java.lang.Object"/>
  72860. <param name="values" type="java.lang.Iterable"/>
  72861. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  72862. <exception name="IOException" type="java.io.IOException"/>
  72863. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72864. </method>
  72865. </class>
  72866. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  72867. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  72868. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  72869. abstract="false"
  72870. static="false" final="false" visibility="public"
  72871. deprecated="not deprecated">
  72872. <constructor name="LongSumReducer"
  72873. static="false" final="false" visibility="public"
  72874. deprecated="not deprecated">
  72875. </constructor>
  72876. <method name="reduce"
  72877. abstract="false" native="false" synchronized="false"
  72878. static="false" final="false" visibility="public"
  72879. deprecated="not deprecated">
  72880. <param name="key" type="java.lang.Object"/>
  72881. <param name="values" type="java.lang.Iterable"/>
  72882. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  72883. <exception name="IOException" type="java.io.IOException"/>
  72884. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72885. </method>
  72886. </class>
  72887. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  72888. </package>
  72889. <package name="org.apache.hadoop.mapreduce.security">
  72890. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  72891. <class name="SecureShuffleUtils" extends="java.lang.Object"
  72892. abstract="false"
  72893. static="false" final="false" visibility="public"
  72894. deprecated="not deprecated">
  72895. <constructor name="SecureShuffleUtils"
  72896. static="false" final="false" visibility="public"
  72897. deprecated="not deprecated">
  72898. </constructor>
  72899. <method name="generateHash" return="java.lang.String"
  72900. abstract="false" native="false" synchronized="false"
  72901. static="true" final="false" visibility="public"
  72902. deprecated="not deprecated">
  72903. <param name="msg" type="byte[]"/>
  72904. <param name="key" type="javax.crypto.SecretKey"/>
  72905. <doc>
  72906. <![CDATA[Base64 encoded hash of msg
  72907. @param msg]]>
  72908. </doc>
  72909. </method>
  72910. <method name="hashFromString" return="java.lang.String"
  72911. abstract="false" native="false" synchronized="false"
  72912. static="true" final="false" visibility="public"
  72913. deprecated="not deprecated">
  72914. <param name="enc_str" type="java.lang.String"/>
  72915. <param name="key" type="javax.crypto.SecretKey"/>
  72916. <exception name="IOException" type="java.io.IOException"/>
  72917. <doc>
  72918. <![CDATA[Aux util to calculate hash of a String
  72919. @param enc_str
  72920. @param key
  72921. @return Base64 encodedHash
  72922. @throws IOException]]>
  72923. </doc>
  72924. </method>
  72925. <method name="verifyReply"
  72926. abstract="false" native="false" synchronized="false"
  72927. static="true" final="false" visibility="public"
  72928. deprecated="not deprecated">
  72929. <param name="base64Hash" type="java.lang.String"/>
  72930. <param name="msg" type="java.lang.String"/>
  72931. <param name="key" type="javax.crypto.SecretKey"/>
  72932. <exception name="IOException" type="java.io.IOException"/>
  72933. <doc>
  72934. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  72935. @param base64Hash (Base64 encoded hash)
  72936. @param msg
  72937. @throws IOException if not the same]]>
  72938. </doc>
  72939. </method>
  72940. <method name="buildMsgFrom" return="java.lang.String"
  72941. abstract="false" native="false" synchronized="false"
  72942. static="true" final="false" visibility="public"
  72943. deprecated="not deprecated">
  72944. <param name="url" type="java.net.URL"/>
  72945. <doc>
  72946. <![CDATA[Shuffle specific utils - build string for encoding from URL
  72947. @param url
  72948. @return string for encoding]]>
  72949. </doc>
  72950. </method>
  72951. <method name="buildMsgFrom" return="java.lang.String"
  72952. abstract="false" native="false" synchronized="false"
  72953. static="true" final="false" visibility="public"
  72954. deprecated="not deprecated">
  72955. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  72956. <doc>
  72957. <![CDATA[Shuffle specific utils - build string for encoding from URL
  72958. @param request
  72959. @return string for encoding]]>
  72960. </doc>
  72961. </method>
  72962. <method name="toHex" return="java.lang.String"
  72963. abstract="false" native="false" synchronized="false"
  72964. static="true" final="false" visibility="public"
  72965. deprecated="not deprecated">
  72966. <param name="ba" type="byte[]"/>
  72967. <doc>
  72968. <![CDATA[byte array to Hex String
  72969. @param ba
  72970. @return string with HEX value of the key]]>
  72971. </doc>
  72972. </method>
  72973. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  72974. transient="false" volatile="false"
  72975. static="true" final="true" visibility="public"
  72976. deprecated="not deprecated">
  72977. </field>
  72978. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  72979. transient="false" volatile="false"
  72980. static="true" final="true" visibility="public"
  72981. deprecated="not deprecated">
  72982. </field>
  72983. <doc>
  72984. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  72985. </doc>
  72986. </class>
  72987. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  72988. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  72989. <class name="TokenCache" extends="java.lang.Object"
  72990. abstract="false"
  72991. static="false" final="false" visibility="public"
  72992. deprecated="not deprecated">
  72993. <constructor name="TokenCache"
  72994. static="false" final="false" visibility="public"
  72995. deprecated="not deprecated">
  72996. </constructor>
  72997. <method name="getSecretKey" return="byte[]"
  72998. abstract="false" native="false" synchronized="false"
  72999. static="true" final="false" visibility="public"
  73000. deprecated="not deprecated">
  73001. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73002. <param name="alias" type="org.apache.hadoop.io.Text"/>
  73003. <doc>
  73004. <![CDATA[auxiliary method to get user's secret keys..
  73005. @param alias
  73006. @return secret key from the storage]]>
  73007. </doc>
  73008. </method>
  73009. <method name="obtainTokensForNamenodes"
  73010. abstract="false" native="false" synchronized="false"
  73011. static="true" final="false" visibility="public"
  73012. deprecated="not deprecated">
  73013. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73014. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  73015. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73016. <exception name="IOException" type="java.io.IOException"/>
  73017. <doc>
  73018. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  73019. corresponding to the paths passed.
  73020. @param ps array of paths
  73021. @param conf configuration
  73022. @throws IOException]]>
  73023. </doc>
  73024. </method>
  73025. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  73026. abstract="false" native="false" synchronized="false"
  73027. static="true" final="false" visibility="public"
  73028. deprecated="not deprecated">
  73029. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73030. <param name="namenode" type="java.lang.String"/>
  73031. <doc>
  73032. <![CDATA[@param namenode
  73033. @return delegation token]]>
  73034. </doc>
  73035. </method>
  73036. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  73037. abstract="false" native="false" synchronized="false"
  73038. static="true" final="false" visibility="public"
  73039. deprecated="not deprecated">
  73040. <param name="jobTokenFile" type="java.lang.String"/>
  73041. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73042. <exception name="IOException" type="java.io.IOException"/>
  73043. <doc>
  73044. <![CDATA[load job token from a file
  73045. @param conf
  73046. @throws IOException]]>
  73047. </doc>
  73048. </method>
  73049. <method name="setJobToken"
  73050. abstract="false" native="false" synchronized="false"
  73051. static="true" final="false" visibility="public"
  73052. deprecated="not deprecated">
  73053. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  73054. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73055. <doc>
  73056. <![CDATA[store job token
  73057. @param t]]>
  73058. </doc>
  73059. </method>
  73060. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  73061. abstract="false" native="false" synchronized="false"
  73062. static="true" final="false" visibility="public"
  73063. deprecated="not deprecated">
  73064. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73065. <doc>
  73066. <![CDATA[@return job token]]>
  73067. </doc>
  73068. </method>
  73069. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  73070. transient="false" volatile="false"
  73071. static="true" final="true" visibility="public"
  73072. deprecated="not deprecated">
  73073. <doc>
  73074. <![CDATA[file name used on HDFS for generated job token]]>
  73075. </doc>
  73076. </field>
  73077. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  73078. transient="false" volatile="false"
  73079. static="true" final="true" visibility="public"
  73080. deprecated="not deprecated">
  73081. <doc>
  73082. <![CDATA[conf setting for job tokens cache file name]]>
  73083. </doc>
  73084. </field>
  73085. <doc>
  73086. <![CDATA[This class provides user facing APIs for transferring secrets from
  73087. the job client to the tasks.
  73088. The secrets can be stored just before submission of jobs and read during
  73089. the task execution.]]>
  73090. </doc>
  73091. </class>
  73092. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  73093. </package>
  73094. <package name="org.apache.hadoop.mapreduce.security.token">
  73095. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  73096. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  73097. abstract="false"
  73098. static="false" final="false" visibility="public"
  73099. deprecated="not deprecated">
  73100. <constructor name="DelegationTokenRenewal"
  73101. static="false" final="false" visibility="public"
  73102. deprecated="not deprecated">
  73103. </constructor>
  73104. <method name="registerDelegationTokensForRenewal"
  73105. abstract="false" native="false" synchronized="true"
  73106. static="true" final="false" visibility="public"
  73107. deprecated="not deprecated">
  73108. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  73109. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  73110. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73111. <exception name="IOException" type="java.io.IOException"/>
  73112. </method>
  73113. <method name="close"
  73114. abstract="false" native="false" synchronized="false"
  73115. static="true" final="false" visibility="public"
  73116. deprecated="not deprecated">
  73117. <doc>
  73118. <![CDATA[removing all tokens renewals]]>
  73119. </doc>
  73120. </method>
  73121. <method name="removeDelegationTokenRenewalForJob"
  73122. abstract="false" native="false" synchronized="false"
  73123. static="true" final="false" visibility="public"
  73124. deprecated="not deprecated">
  73125. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  73126. <doc>
  73127. <![CDATA[removing DT for completed jobs
  73128. @param jobId]]>
  73129. </doc>
  73130. </method>
  73131. <field name="SCHEME" type="java.lang.String"
  73132. transient="false" volatile="false"
  73133. static="true" final="true" visibility="public"
  73134. deprecated="not deprecated">
  73135. </field>
  73136. </class>
  73137. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  73138. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  73139. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  73140. abstract="false"
  73141. static="false" final="false" visibility="public"
  73142. deprecated="not deprecated">
  73143. <constructor name="JobTokenIdentifier"
  73144. static="false" final="false" visibility="public"
  73145. deprecated="not deprecated">
  73146. <doc>
  73147. <![CDATA[Default constructor]]>
  73148. </doc>
  73149. </constructor>
  73150. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  73151. static="false" final="false" visibility="public"
  73152. deprecated="not deprecated">
  73153. <doc>
  73154. <![CDATA[Create a job token identifier from a jobid
  73155. @param jobid the jobid to use]]>
  73156. </doc>
  73157. </constructor>
  73158. <method name="getKind" return="org.apache.hadoop.io.Text"
  73159. abstract="false" native="false" synchronized="false"
  73160. static="false" final="false" visibility="public"
  73161. deprecated="not deprecated">
  73162. <doc>
  73163. <![CDATA[{@inheritDoc}]]>
  73164. </doc>
  73165. </method>
  73166. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  73167. abstract="false" native="false" synchronized="false"
  73168. static="false" final="false" visibility="public"
  73169. deprecated="not deprecated">
  73170. <doc>
  73171. <![CDATA[{@inheritDoc}]]>
  73172. </doc>
  73173. </method>
  73174. <method name="getJobId" return="org.apache.hadoop.io.Text"
  73175. abstract="false" native="false" synchronized="false"
  73176. static="false" final="false" visibility="public"
  73177. deprecated="not deprecated">
  73178. <doc>
  73179. <![CDATA[Get the jobid
  73180. @return the jobid]]>
  73181. </doc>
  73182. </method>
  73183. <method name="readFields"
  73184. abstract="false" native="false" synchronized="false"
  73185. static="false" final="false" visibility="public"
  73186. deprecated="not deprecated">
  73187. <param name="in" type="java.io.DataInput"/>
  73188. <exception name="IOException" type="java.io.IOException"/>
  73189. <doc>
  73190. <![CDATA[{@inheritDoc}]]>
  73191. </doc>
  73192. </method>
  73193. <method name="write"
  73194. abstract="false" native="false" synchronized="false"
  73195. static="false" final="false" visibility="public"
  73196. deprecated="not deprecated">
  73197. <param name="out" type="java.io.DataOutput"/>
  73198. <exception name="IOException" type="java.io.IOException"/>
  73199. <doc>
  73200. <![CDATA[{@inheritDoc}]]>
  73201. </doc>
  73202. </method>
  73203. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  73204. transient="false" volatile="false"
  73205. static="true" final="true" visibility="public"
  73206. deprecated="not deprecated">
  73207. </field>
  73208. <doc>
  73209. <![CDATA[The token identifier for job token]]>
  73210. </doc>
  73211. </class>
  73212. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  73213. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  73214. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  73215. abstract="false"
  73216. static="true" final="false" visibility="public"
  73217. deprecated="not deprecated">
  73218. <constructor name="JobTokenIdentifier.Renewer"
  73219. static="false" final="false" visibility="public"
  73220. deprecated="not deprecated">
  73221. </constructor>
  73222. <method name="getKind" return="org.apache.hadoop.io.Text"
  73223. abstract="false" native="false" synchronized="false"
  73224. static="false" final="false" visibility="protected"
  73225. deprecated="not deprecated">
  73226. </method>
  73227. </class>
  73228. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  73229. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  73230. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  73231. abstract="false"
  73232. static="false" final="false" visibility="public"
  73233. deprecated="not deprecated">
  73234. <constructor name="JobTokenSecretManager"
  73235. static="false" final="false" visibility="public"
  73236. deprecated="not deprecated">
  73237. <doc>
  73238. <![CDATA[Default constructor]]>
  73239. </doc>
  73240. </constructor>
  73241. <method name="createSecretKey" return="javax.crypto.SecretKey"
  73242. abstract="false" native="false" synchronized="false"
  73243. static="true" final="false" visibility="public"
  73244. deprecated="not deprecated">
  73245. <param name="key" type="byte[]"/>
  73246. <doc>
  73247. <![CDATA[Convert the byte[] to a secret key
  73248. @param key the byte[] to create the secret key from
  73249. @return the secret key]]>
  73250. </doc>
  73251. </method>
  73252. <method name="computeHash" return="byte[]"
  73253. abstract="false" native="false" synchronized="false"
  73254. static="true" final="false" visibility="public"
  73255. deprecated="not deprecated">
  73256. <param name="msg" type="byte[]"/>
  73257. <param name="key" type="javax.crypto.SecretKey"/>
  73258. <doc>
  73259. <![CDATA[Compute the HMAC hash of the message using the key
  73260. @param msg the message to hash
  73261. @param key the key to use
  73262. @return the computed hash]]>
  73263. </doc>
  73264. </method>
  73265. <method name="createPassword" return="byte[]"
  73266. abstract="false" native="false" synchronized="false"
  73267. static="false" final="false" visibility="public"
  73268. deprecated="not deprecated">
  73269. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  73270. <doc>
  73271. <![CDATA[Create a new password/secret for the given job token identifier.
  73272. @param identifier the job token identifier
  73273. @return token password/secret]]>
  73274. </doc>
  73275. </method>
  73276. <method name="addTokenForJob"
  73277. abstract="false" native="false" synchronized="false"
  73278. static="false" final="false" visibility="public"
  73279. deprecated="not deprecated">
  73280. <param name="jobId" type="java.lang.String"/>
  73281. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  73282. <doc>
  73283. <![CDATA[Add the job token of a job to cache
  73284. @param jobId the job that owns the token
  73285. @param token the job token]]>
  73286. </doc>
  73287. </method>
  73288. <method name="removeTokenForJob"
  73289. abstract="false" native="false" synchronized="false"
  73290. static="false" final="false" visibility="public"
  73291. deprecated="not deprecated">
  73292. <param name="jobId" type="java.lang.String"/>
  73293. <doc>
  73294. <![CDATA[Remove the cached job token of a job from cache
  73295. @param jobId the job whose token is to be removed]]>
  73296. </doc>
  73297. </method>
  73298. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  73299. abstract="false" native="false" synchronized="false"
  73300. static="false" final="false" visibility="public"
  73301. deprecated="not deprecated">
  73302. <param name="jobId" type="java.lang.String"/>
  73303. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  73304. <doc>
  73305. <![CDATA[Look up the token password/secret for the given jobId.
  73306. @param jobId the jobId to look up
  73307. @return token password/secret as SecretKey
  73308. @throws InvalidToken]]>
  73309. </doc>
  73310. </method>
  73311. <method name="retrievePassword" return="byte[]"
  73312. abstract="false" native="false" synchronized="false"
  73313. static="false" final="false" visibility="public"
  73314. deprecated="not deprecated">
  73315. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  73316. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  73317. <doc>
  73318. <![CDATA[Look up the token password/secret for the given job token identifier.
  73319. @param identifier the job token identifier to look up
  73320. @return token password/secret as byte[]
  73321. @throws InvalidToken]]>
  73322. </doc>
  73323. </method>
  73324. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  73325. abstract="false" native="false" synchronized="false"
  73326. static="false" final="false" visibility="public"
  73327. deprecated="not deprecated">
  73328. <doc>
  73329. <![CDATA[Create an empty job token identifier
  73330. @return a newly created empty job token identifier]]>
  73331. </doc>
  73332. </method>
  73333. <doc>
  73334. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  73335. </doc>
  73336. </class>
  73337. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  73338. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  73339. <class name="JobTokenSelector" extends="java.lang.Object"
  73340. abstract="false"
  73341. static="false" final="false" visibility="public"
  73342. deprecated="not deprecated">
  73343. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  73344. <constructor name="JobTokenSelector"
  73345. static="false" final="false" visibility="public"
  73346. deprecated="not deprecated">
  73347. </constructor>
  73348. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  73349. abstract="false" native="false" synchronized="false"
  73350. static="false" final="false" visibility="public"
  73351. deprecated="not deprecated">
  73352. <param name="service" type="org.apache.hadoop.io.Text"/>
  73353. <param name="tokens" type="java.util.Collection"/>
  73354. </method>
  73355. <doc>
  73356. <![CDATA[Look through tokens to find the first job token that matches the service
  73357. and return it.]]>
  73358. </doc>
  73359. </class>
  73360. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  73361. </package>
  73362. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  73363. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  73364. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  73365. abstract="false"
  73366. static="false" final="false" visibility="public"
  73367. deprecated="not deprecated">
  73368. <constructor name="DelegationTokenIdentifier"
  73369. static="false" final="false" visibility="public"
  73370. deprecated="not deprecated">
  73371. <doc>
  73372. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  73373. </doc>
  73374. </constructor>
  73375. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  73376. static="false" final="false" visibility="public"
  73377. deprecated="not deprecated">
  73378. <doc>
  73379. <![CDATA[Create a new delegation token identifier
  73380. @param owner the effective username of the token owner
  73381. @param renewer the username of the renewer
  73382. @param realUser the real username of the token owner]]>
  73383. </doc>
  73384. </constructor>
  73385. <method name="getKind" return="org.apache.hadoop.io.Text"
  73386. abstract="false" native="false" synchronized="false"
  73387. static="false" final="false" visibility="public"
  73388. deprecated="not deprecated">
  73389. </method>
  73390. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  73391. transient="false" volatile="false"
  73392. static="true" final="true" visibility="public"
  73393. deprecated="not deprecated">
  73394. </field>
  73395. <doc>
  73396. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  73397. </doc>
  73398. </class>
  73399. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  73400. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  73401. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  73402. abstract="false"
  73403. static="false" final="false" visibility="public"
  73404. deprecated="not deprecated">
  73405. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  73406. static="false" final="false" visibility="public"
  73407. deprecated="not deprecated">
  73408. <doc>
  73409. <![CDATA[Create a secret manager
  73410. @param delegationKeyUpdateInterval the number of seconds for rolling new
  73411. secret keys.
  73412. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  73413. tokens
  73414. @param delegationTokenRenewInterval how often the tokens must be renewed
  73415. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  73416. for expired tokens]]>
  73417. </doc>
  73418. </constructor>
  73419. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  73420. abstract="false" native="false" synchronized="false"
  73421. static="false" final="false" visibility="public"
  73422. deprecated="not deprecated">
  73423. </method>
  73424. <doc>
  73425. <![CDATA[A MapReduce specific delegation token secret manager.
  73426. The secret manager is responsible for generating and accepting the password
  73427. for each token.]]>
  73428. </doc>
  73429. </class>
  73430. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  73431. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  73432. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  73433. abstract="false"
  73434. static="false" final="false" visibility="public"
  73435. deprecated="not deprecated">
  73436. <constructor name="DelegationTokenSelector"
  73437. static="false" final="false" visibility="public"
  73438. deprecated="not deprecated">
  73439. </constructor>
  73440. <doc>
  73441. <![CDATA[A delegation token that is specialized for MapReduce]]>
  73442. </doc>
  73443. </class>
  73444. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  73445. </package>
  73446. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  73447. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  73448. <class name="TaskTracker" extends="java.lang.Object"
  73449. abstract="false"
  73450. static="false" final="false" visibility="public"
  73451. deprecated="not deprecated">
  73452. <constructor name="TaskTracker" type="java.lang.String"
  73453. static="false" final="false" visibility="public"
  73454. deprecated="not deprecated">
  73455. <doc>
  73456. <![CDATA[Create a new {@link TaskTracker}.
  73457. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  73458. </doc>
  73459. </constructor>
  73460. <method name="getTrackerName" return="java.lang.String"
  73461. abstract="false" native="false" synchronized="false"
  73462. static="false" final="false" visibility="public"
  73463. deprecated="not deprecated">
  73464. <doc>
  73465. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  73466. @return the unique identifier for the <code>TaskTracker</code>]]>
  73467. </doc>
  73468. </method>
  73469. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  73470. abstract="false" native="false" synchronized="false"
  73471. static="false" final="false" visibility="public"
  73472. deprecated="not deprecated">
  73473. <doc>
  73474. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  73475. @return the current <code>TaskTrackerStatus</code> of the
  73476. <code>TaskTracker</code>]]>
  73477. </doc>
  73478. </method>
  73479. <method name="setStatus"
  73480. abstract="false" native="false" synchronized="false"
  73481. static="false" final="false" visibility="public"
  73482. deprecated="not deprecated">
  73483. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  73484. <doc>
  73485. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  73486. @param status the current <code>TaskTrackerStatus</code> of the
  73487. <code>TaskTracker</code>]]>
  73488. </doc>
  73489. </method>
  73490. <method name="getAvailableSlots" return="int"
  73491. abstract="false" native="false" synchronized="false"
  73492. static="false" final="false" visibility="public"
  73493. deprecated="not deprecated">
  73494. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  73495. <doc>
  73496. <![CDATA[Get the number of currently available slots on this tasktracker for the
  73497. given type of the task.
  73498. @param taskType the {@link TaskType} to check for number of available slots
  73499. @return the number of currently available slots for the given
  73500. <code>taskType</code>]]>
  73501. </doc>
  73502. </method>
  73503. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  73504. abstract="false" native="false" synchronized="false"
  73505. static="false" final="false" visibility="public"
  73506. deprecated="not deprecated">
  73507. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  73508. <doc>
  73509. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  73510. @param taskType {@link TaskType} of the task
  73511. @return the task for which the fallow slot(s) are held,
  73512. <code>null</code> if there are no fallow slots]]>
  73513. </doc>
  73514. </method>
  73515. <method name="reserveSlots"
  73516. abstract="false" native="false" synchronized="false"
  73517. static="false" final="false" visibility="public"
  73518. deprecated="not deprecated">
  73519. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  73520. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  73521. <param name="numSlots" type="int"/>
  73522. <doc>
  73523. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  73524. @param taskType {@link TaskType} of the task
  73525. @param job the job for which slots on this <code>TaskTracker</code>
  73526. are to be reserved
  73527. @param numSlots number of slots to be reserved]]>
  73528. </doc>
  73529. </method>
  73530. <method name="unreserveSlots"
  73531. abstract="false" native="false" synchronized="false"
  73532. static="false" final="false" visibility="public"
  73533. deprecated="not deprecated">
  73534. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  73535. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  73536. <doc>
  73537. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  73538. <code>taskType</code>.
  73539. @param taskType {@link TaskType} of the task
  73540. @param job job whose slots are being un-reserved]]>
  73541. </doc>
  73542. </method>
  73543. <method name="cancelAllReservations"
  73544. abstract="false" native="false" synchronized="false"
  73545. static="false" final="false" visibility="public"
  73546. deprecated="not deprecated">
  73547. <doc>
  73548. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  73549. by the JobTracker.
  73550. The method assumes that the lock on the {@link JobTracker} is obtained
  73551. by the caller.]]>
  73552. </doc>
  73553. </method>
  73554. <doc>
  73555. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  73556. the {@link JobTracker}.]]>
  73557. </doc>
  73558. </class>
  73559. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  73560. </package>
  73561. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  73562. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  73563. <class name="JVMInfo" extends="java.lang.Object"
  73564. abstract="false"
  73565. static="false" final="false" visibility="public"
  73566. deprecated="not deprecated">
  73567. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  73568. static="false" final="false" visibility="public"
  73569. deprecated="not deprecated">
  73570. </constructor>
  73571. <method name="getLogLocation" return="java.io.File"
  73572. abstract="false" native="false" synchronized="false"
  73573. static="false" final="false" visibility="public"
  73574. deprecated="not deprecated">
  73575. </method>
  73576. <method name="getAllAttempts" return="java.util.List"
  73577. abstract="false" native="false" synchronized="false"
  73578. static="false" final="false" visibility="public"
  73579. deprecated="not deprecated">
  73580. </method>
  73581. </class>
  73582. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  73583. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  73584. <class name="Localizer" extends="java.lang.Object"
  73585. abstract="false"
  73586. static="false" final="false" visibility="public"
  73587. deprecated="not deprecated">
  73588. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  73589. static="false" final="false" visibility="public"
  73590. deprecated="not deprecated">
  73591. <doc>
  73592. <![CDATA[Create a Localizer instance
  73593. @param fileSys
  73594. @param lDirs]]>
  73595. </doc>
  73596. </constructor>
  73597. <method name="initializeUserDirs"
  73598. abstract="false" native="false" synchronized="false"
  73599. static="false" final="false" visibility="public"
  73600. deprecated="not deprecated">
  73601. <param name="user" type="java.lang.String"/>
  73602. <exception name="IOException" type="java.io.IOException"/>
  73603. <doc>
  73604. <![CDATA[Initialize the local directories for a particular user on this TT. This
  73605. involves creation and setting permissions of the following directories
  73606. <ul>
  73607. <li>$mapred.local.dir/taskTracker/$user</li>
  73608. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  73609. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  73610. </ul>
  73611. @param user
  73612. @throws IOException]]>
  73613. </doc>
  73614. </method>
  73615. <method name="initializeAttemptDirs"
  73616. abstract="false" native="false" synchronized="false"
  73617. static="false" final="false" visibility="public"
  73618. deprecated="not deprecated">
  73619. <param name="user" type="java.lang.String"/>
  73620. <param name="jobId" type="java.lang.String"/>
  73621. <param name="attemptId" type="java.lang.String"/>
  73622. <exception name="IOException" type="java.io.IOException"/>
  73623. <doc>
  73624. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  73625. LinuxTaskController is in use, child might wish to balance load across
  73626. disks but cannot itself create attempt directory because of the fact that
  73627. job directory is writable only by the TT.
  73628. @param user
  73629. @param jobId
  73630. @param attemptId
  73631. @throws IOException]]>
  73632. </doc>
  73633. </method>
  73634. <doc>
  73635. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  73636. </doc>
  73637. </class>
  73638. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  73639. </package>
  73640. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  73641. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  73642. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  73643. abstract="false"
  73644. static="false" final="false" visibility="public"
  73645. deprecated="not deprecated">
  73646. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  73647. static="false" final="false" visibility="public"
  73648. deprecated="not deprecated">
  73649. <doc>
  73650. <![CDATA[Create the event to delete job log directory.
  73651. @param jobid
  73652. The {@link JobID} whose logs should be deleted.]]>
  73653. </doc>
  73654. </constructor>
  73655. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  73656. abstract="false" native="false" synchronized="false"
  73657. static="false" final="false" visibility="public"
  73658. deprecated="not deprecated">
  73659. <doc>
  73660. <![CDATA[Get the jobid.
  73661. @return object of {@link JobID}]]>
  73662. </doc>
  73663. </method>
  73664. <doc>
  73665. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  73666. </doc>
  73667. </class>
  73668. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  73669. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  73670. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  73671. abstract="false"
  73672. static="false" final="false" visibility="public"
  73673. deprecated="not deprecated">
  73674. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  73675. static="false" final="false" visibility="public"
  73676. deprecated="not deprecated">
  73677. <doc>
  73678. <![CDATA[Create the event for job completion.
  73679. @param jobid
  73680. The completed {@link JobID} .
  73681. @param jobCompletionTime
  73682. The job completion time.
  73683. @param retainHours
  73684. The number of hours for which the job logs should be retained]]>
  73685. </doc>
  73686. </constructor>
  73687. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  73688. abstract="false" native="false" synchronized="false"
  73689. static="false" final="false" visibility="public"
  73690. deprecated="not deprecated">
  73691. <doc>
  73692. <![CDATA[Get the job id.
  73693. @return object of {@link JobID}]]>
  73694. </doc>
  73695. </method>
  73696. <method name="getJobCompletionTime" return="long"
  73697. abstract="false" native="false" synchronized="false"
  73698. static="false" final="false" visibility="public"
  73699. deprecated="not deprecated">
  73700. <doc>
  73701. <![CDATA[Get the job completion time-stamp in milli-seconds.
  73702. @return job completion time.]]>
  73703. </doc>
  73704. </method>
  73705. <method name="getRetainHours" return="int"
  73706. abstract="false" native="false" synchronized="false"
  73707. static="false" final="false" visibility="public"
  73708. deprecated="not deprecated">
  73709. <doc>
  73710. <![CDATA[Get the number of hours for which job logs should be retained.
  73711. @return retainHours]]>
  73712. </doc>
  73713. </method>
  73714. <doc>
  73715. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  73716. </doc>
  73717. </class>
  73718. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  73719. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  73720. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  73721. abstract="false"
  73722. static="false" final="false" visibility="public"
  73723. deprecated="not deprecated">
  73724. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  73725. static="false" final="false" visibility="public"
  73726. deprecated="not deprecated">
  73727. <doc>
  73728. <![CDATA[Create the event to inform the job has started.
  73729. @param jobid
  73730. The {@link JobID} which started]]>
  73731. </doc>
  73732. </constructor>
  73733. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  73734. abstract="false" native="false" synchronized="false"
  73735. static="false" final="false" visibility="public"
  73736. deprecated="not deprecated">
  73737. <doc>
  73738. <![CDATA[Get the job id.
  73739. @return object of {@link JobID}]]>
  73740. </doc>
  73741. </method>
  73742. <doc>
  73743. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  73744. </doc>
  73745. </class>
  73746. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  73747. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  73748. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  73749. abstract="false"
  73750. static="false" final="false" visibility="public"
  73751. deprecated="not deprecated">
  73752. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  73753. static="false" final="false" visibility="public"
  73754. deprecated="not deprecated">
  73755. <doc>
  73756. <![CDATA[Create the event to inform that the jvm has finished.
  73757. @param jvmInfo
  73758. The finished {@link JVMInfo}]]>
  73759. </doc>
  73760. </constructor>
  73761. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  73762. abstract="false" native="false" synchronized="false"
  73763. static="false" final="false" visibility="public"
  73764. deprecated="not deprecated">
  73765. <doc>
  73766. <![CDATA[Get the jvm info.
  73767. @return object of {@link JVMInfo}]]>
  73768. </doc>
  73769. </method>
  73770. <doc>
  73771. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  73772. </doc>
  73773. </class>
  73774. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  73775. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  73776. <class name="UserLogEvent" extends="java.lang.Object"
  73777. abstract="true"
  73778. static="false" final="false" visibility="public"
  73779. deprecated="not deprecated">
  73780. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  73781. static="false" final="false" visibility="protected"
  73782. deprecated="not deprecated">
  73783. </constructor>
  73784. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  73785. abstract="false" native="false" synchronized="false"
  73786. static="false" final="false" visibility="public"
  73787. deprecated="not deprecated">
  73788. <doc>
  73789. <![CDATA[Return the {@link EventType}.
  73790. @return the {@link EventType}.]]>
  73791. </doc>
  73792. </method>
  73793. <doc>
  73794. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  73795. {@link UserLogManager} to inform about an event.]]>
  73796. </doc>
  73797. </class>
  73798. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  73799. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  73800. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  73801. abstract="false"
  73802. static="true" final="true" visibility="public"
  73803. deprecated="not deprecated">
  73804. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  73805. abstract="false" native="false" synchronized="false"
  73806. static="true" final="false" visibility="public"
  73807. deprecated="not deprecated">
  73808. </method>
  73809. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  73810. abstract="false" native="false" synchronized="false"
  73811. static="true" final="false" visibility="public"
  73812. deprecated="not deprecated">
  73813. <param name="name" type="java.lang.String"/>
  73814. </method>
  73815. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  73816. transient="false" volatile="false"
  73817. static="true" final="true" visibility="public"
  73818. deprecated="not deprecated">
  73819. </field>
  73820. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  73821. transient="false" volatile="false"
  73822. static="true" final="true" visibility="public"
  73823. deprecated="not deprecated">
  73824. </field>
  73825. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  73826. transient="false" volatile="false"
  73827. static="true" final="true" visibility="public"
  73828. deprecated="not deprecated">
  73829. </field>
  73830. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  73831. transient="false" volatile="false"
  73832. static="true" final="true" visibility="public"
  73833. deprecated="not deprecated">
  73834. </field>
  73835. </class>
  73836. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  73837. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  73838. <class name="UserLogManager" extends="java.lang.Object"
  73839. abstract="false"
  73840. static="false" final="false" visibility="public"
  73841. deprecated="not deprecated">
  73842. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  73843. static="false" final="false" visibility="public"
  73844. deprecated="not deprecated">
  73845. <exception name="IOException" type="java.io.IOException"/>
  73846. <doc>
  73847. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  73848. It should be explicitly started using {@link #start()} to start functioning
  73849. @param conf The {@link Configuration}
  73850. @param taskController The task controller to delete the log files
  73851. @throws IOException]]>
  73852. </doc>
  73853. </constructor>
  73854. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  73855. static="false" final="false" visibility="public"
  73856. deprecated="not deprecated">
  73857. <exception name="IOException" type="java.io.IOException"/>
  73858. <doc>
  73859. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  73860. This constructor is there mainly for unit tests.
  73861. @param conf The {@link Configuration}
  73862. @throws IOException]]>
  73863. </doc>
  73864. </constructor>
  73865. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  73866. abstract="false" native="false" synchronized="false"
  73867. static="false" final="false" visibility="public"
  73868. deprecated="not deprecated">
  73869. <doc>
  73870. <![CDATA[Get the taskController for deleting logs.
  73871. @return the TaskController]]>
  73872. </doc>
  73873. </method>
  73874. <method name="start"
  73875. abstract="false" native="false" synchronized="false"
  73876. static="false" final="false" visibility="public"
  73877. deprecated="not deprecated">
  73878. <doc>
  73879. <![CDATA[Starts managing the logs]]>
  73880. </doc>
  73881. </method>
  73882. <method name="monitor"
  73883. abstract="false" native="false" synchronized="false"
  73884. static="false" final="false" visibility="protected"
  73885. deprecated="not deprecated">
  73886. <exception name="Exception" type="java.lang.Exception"/>
  73887. </method>
  73888. <method name="processEvent"
  73889. abstract="false" native="false" synchronized="false"
  73890. static="false" final="false" visibility="protected"
  73891. deprecated="not deprecated">
  73892. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  73893. <exception name="IOException" type="java.io.IOException"/>
  73894. </method>
  73895. <method name="clearOldUserLogs"
  73896. abstract="false" native="false" synchronized="false"
  73897. static="false" final="false" visibility="public"
  73898. deprecated="not deprecated">
  73899. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73900. <exception name="IOException" type="java.io.IOException"/>
  73901. <doc>
  73902. <![CDATA[Called during TaskTracker restart/re-init.
  73903. @param conf
  73904. TT's conf
  73905. @throws IOException]]>
  73906. </doc>
  73907. </method>
  73908. <method name="addLogEvent"
  73909. abstract="false" native="false" synchronized="false"
  73910. static="false" final="false" visibility="public"
  73911. deprecated="not deprecated">
  73912. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  73913. <doc>
  73914. <![CDATA[Add the {@link UserLogEvent} for processing.
  73915. @param event]]>
  73916. </doc>
  73917. </method>
  73918. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  73919. abstract="false" native="false" synchronized="false"
  73920. static="false" final="false" visibility="public"
  73921. deprecated="not deprecated">
  73922. <doc>
  73923. <![CDATA[Get {@link UserLogCleaner}.
  73924. This method is called only from unit tests.
  73925. @return {@link UserLogCleaner}]]>
  73926. </doc>
  73927. </method>
  73928. <doc>
  73929. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  73930. </doc>
  73931. </class>
  73932. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  73933. </package>
  73934. <package name="org.apache.hadoop.mapreduce.split">
  73935. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  73936. <class name="JobSplit" extends="java.lang.Object"
  73937. abstract="false"
  73938. static="false" final="false" visibility="public"
  73939. deprecated="not deprecated">
  73940. <constructor name="JobSplit"
  73941. static="false" final="false" visibility="public"
  73942. deprecated="not deprecated">
  73943. </constructor>
  73944. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  73945. transient="false" volatile="false"
  73946. static="true" final="true" visibility="public"
  73947. deprecated="not deprecated">
  73948. </field>
  73949. <doc>
  73950. <![CDATA[This class groups the fundamental classes associated with
  73951. reading/writing splits. The split information is divided into
  73952. two parts based on the consumer of the information. The two
  73953. parts are the split meta information, and the raw split
  73954. information. The first part is consumed by the JobTracker to
  73955. create the tasks' locality data structures. The second part is
  73956. used by the maps at runtime to know what to do!
  73957. These pieces of information are written to two separate files.
  73958. The metainformation file is slurped by the JobTracker during
  73959. job initialization. A map task gets the meta information during
  73960. the launch and it reads the raw split bytes directly from the
  73961. file.]]>
  73962. </doc>
  73963. </class>
  73964. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  73965. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  73966. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  73967. abstract="false"
  73968. static="true" final="false" visibility="public"
  73969. deprecated="not deprecated">
  73970. <implements name="org.apache.hadoop.io.Writable"/>
  73971. <constructor name="JobSplit.SplitMetaInfo"
  73972. static="false" final="false" visibility="public"
  73973. deprecated="not deprecated">
  73974. </constructor>
  73975. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  73976. static="false" final="false" visibility="public"
  73977. deprecated="not deprecated">
  73978. </constructor>
  73979. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  73980. static="false" final="false" visibility="public"
  73981. deprecated="not deprecated">
  73982. <exception name="IOException" type="java.io.IOException"/>
  73983. </constructor>
  73984. <method name="getLocations" return="java.lang.String[]"
  73985. abstract="false" native="false" synchronized="false"
  73986. static="false" final="false" visibility="public"
  73987. deprecated="not deprecated">
  73988. </method>
  73989. <method name="getStartOffset" return="long"
  73990. abstract="false" native="false" synchronized="false"
  73991. static="false" final="false" visibility="public"
  73992. deprecated="not deprecated">
  73993. </method>
  73994. <method name="getInputDataLength" return="long"
  73995. abstract="false" native="false" synchronized="false"
  73996. static="false" final="false" visibility="public"
  73997. deprecated="not deprecated">
  73998. </method>
  73999. <method name="setInputDataLocations"
  74000. abstract="false" native="false" synchronized="false"
  74001. static="false" final="false" visibility="public"
  74002. deprecated="not deprecated">
  74003. <param name="locations" type="java.lang.String[]"/>
  74004. </method>
  74005. <method name="setInputDataLength"
  74006. abstract="false" native="false" synchronized="false"
  74007. static="false" final="false" visibility="public"
  74008. deprecated="not deprecated">
  74009. <param name="length" type="long"/>
  74010. </method>
  74011. <method name="readFields"
  74012. abstract="false" native="false" synchronized="false"
  74013. static="false" final="false" visibility="public"
  74014. deprecated="not deprecated">
  74015. <param name="in" type="java.io.DataInput"/>
  74016. <exception name="IOException" type="java.io.IOException"/>
  74017. </method>
  74018. <method name="write"
  74019. abstract="false" native="false" synchronized="false"
  74020. static="false" final="false" visibility="public"
  74021. deprecated="not deprecated">
  74022. <param name="out" type="java.io.DataOutput"/>
  74023. <exception name="IOException" type="java.io.IOException"/>
  74024. </method>
  74025. <method name="toString" return="java.lang.String"
  74026. abstract="false" native="false" synchronized="false"
  74027. static="false" final="false" visibility="public"
  74028. deprecated="not deprecated">
  74029. </method>
  74030. <doc>
  74031. <![CDATA[This represents the meta information about the task split.
  74032. The main fields are
  74033. - start offset in actual split
  74034. - data length that will be processed in this split
  74035. - hosts on which this split is local]]>
  74036. </doc>
  74037. </class>
  74038. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  74039. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  74040. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  74041. abstract="false"
  74042. static="true" final="false" visibility="public"
  74043. deprecated="not deprecated">
  74044. <constructor name="JobSplit.TaskSplitIndex"
  74045. static="false" final="false" visibility="public"
  74046. deprecated="not deprecated">
  74047. </constructor>
  74048. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  74049. static="false" final="false" visibility="public"
  74050. deprecated="not deprecated">
  74051. </constructor>
  74052. <method name="getStartOffset" return="long"
  74053. abstract="false" native="false" synchronized="false"
  74054. static="false" final="false" visibility="public"
  74055. deprecated="not deprecated">
  74056. </method>
  74057. <method name="getSplitLocation" return="java.lang.String"
  74058. abstract="false" native="false" synchronized="false"
  74059. static="false" final="false" visibility="public"
  74060. deprecated="not deprecated">
  74061. </method>
  74062. <method name="readFields"
  74063. abstract="false" native="false" synchronized="false"
  74064. static="false" final="false" visibility="public"
  74065. deprecated="not deprecated">
  74066. <param name="in" type="java.io.DataInput"/>
  74067. <exception name="IOException" type="java.io.IOException"/>
  74068. </method>
  74069. <method name="write"
  74070. abstract="false" native="false" synchronized="false"
  74071. static="false" final="false" visibility="public"
  74072. deprecated="not deprecated">
  74073. <param name="out" type="java.io.DataOutput"/>
  74074. <exception name="IOException" type="java.io.IOException"/>
  74075. </method>
  74076. <doc>
  74077. <![CDATA[This represents the meta information about the task split that the
  74078. task gets]]>
  74079. </doc>
  74080. </class>
  74081. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  74082. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  74083. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  74084. abstract="false"
  74085. static="true" final="false" visibility="public"
  74086. deprecated="not deprecated">
  74087. <constructor name="JobSplit.TaskSplitMetaInfo"
  74088. static="false" final="false" visibility="public"
  74089. deprecated="not deprecated">
  74090. </constructor>
  74091. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  74092. static="false" final="false" visibility="public"
  74093. deprecated="not deprecated">
  74094. </constructor>
  74095. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  74096. static="false" final="false" visibility="public"
  74097. deprecated="not deprecated">
  74098. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74099. <exception name="IOException" type="java.io.IOException"/>
  74100. </constructor>
  74101. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  74102. static="false" final="false" visibility="public"
  74103. deprecated="not deprecated">
  74104. </constructor>
  74105. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  74106. abstract="false" native="false" synchronized="false"
  74107. static="false" final="false" visibility="public"
  74108. deprecated="not deprecated">
  74109. </method>
  74110. <method name="getSplitLocation" return="java.lang.String"
  74111. abstract="false" native="false" synchronized="false"
  74112. static="false" final="false" visibility="public"
  74113. deprecated="not deprecated">
  74114. </method>
  74115. <method name="getInputDataLength" return="long"
  74116. abstract="false" native="false" synchronized="false"
  74117. static="false" final="false" visibility="public"
  74118. deprecated="not deprecated">
  74119. </method>
  74120. <method name="getLocations" return="java.lang.String[]"
  74121. abstract="false" native="false" synchronized="false"
  74122. static="false" final="false" visibility="public"
  74123. deprecated="not deprecated">
  74124. </method>
  74125. <method name="getStartOffset" return="long"
  74126. abstract="false" native="false" synchronized="false"
  74127. static="false" final="false" visibility="public"
  74128. deprecated="not deprecated">
  74129. </method>
  74130. <doc>
  74131. <![CDATA[This represents the meta information about the task split that the
  74132. JobTracker creates]]>
  74133. </doc>
  74134. </class>
  74135. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  74136. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  74137. <class name="JobSplitWriter" extends="java.lang.Object"
  74138. abstract="false"
  74139. static="false" final="false" visibility="public"
  74140. deprecated="not deprecated">
  74141. <constructor name="JobSplitWriter"
  74142. static="false" final="false" visibility="public"
  74143. deprecated="not deprecated">
  74144. </constructor>
  74145. <method name="createSplitFiles"
  74146. abstract="false" native="false" synchronized="false"
  74147. static="true" final="false" visibility="public"
  74148. deprecated="not deprecated">
  74149. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74150. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74151. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74152. <param name="splits" type="java.util.List"/>
  74153. <exception name="IOException" type="java.io.IOException"/>
  74154. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74155. </method>
  74156. <method name="createSplitFiles"
  74157. abstract="false" native="false" synchronized="false"
  74158. static="true" final="false" visibility="public"
  74159. deprecated="not deprecated">
  74160. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74161. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74162. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74163. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  74164. <exception name="IOException" type="java.io.IOException"/>
  74165. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74166. </method>
  74167. <method name="createSplitFiles"
  74168. abstract="false" native="false" synchronized="false"
  74169. static="true" final="false" visibility="public"
  74170. deprecated="not deprecated">
  74171. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74172. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74173. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74174. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  74175. <exception name="IOException" type="java.io.IOException"/>
  74176. </method>
  74177. <doc>
  74178. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  74179. and the raw bytes parts)]]>
  74180. </doc>
  74181. </class>
  74182. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  74183. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  74184. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  74185. abstract="false"
  74186. static="false" final="false" visibility="public"
  74187. deprecated="not deprecated">
  74188. <constructor name="SplitMetaInfoReader"
  74189. static="false" final="false" visibility="public"
  74190. deprecated="not deprecated">
  74191. </constructor>
  74192. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  74193. abstract="false" native="false" synchronized="false"
  74194. static="true" final="false" visibility="public"
  74195. deprecated="not deprecated">
  74196. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  74197. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74198. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74199. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74200. <exception name="IOException" type="java.io.IOException"/>
  74201. </method>
  74202. <doc>
  74203. <![CDATA[A (internal) utility that reads the split meta info and creates
  74204. split meta info objects]]>
  74205. </doc>
  74206. </class>
  74207. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  74208. </package>
  74209. <package name="org.apache.hadoop.tools">
  74210. <!-- start class org.apache.hadoop.tools.DistCh -->
  74211. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  74212. abstract="false"
  74213. static="false" final="false" visibility="public"
  74214. deprecated="not deprecated">
  74215. <method name="run" return="int"
  74216. abstract="false" native="false" synchronized="false"
  74217. static="false" final="false" visibility="public"
  74218. deprecated="not deprecated">
  74219. <param name="args" type="java.lang.String[]"/>
  74220. <exception name="Exception" type="java.lang.Exception"/>
  74221. <doc>
  74222. <![CDATA[This is the main driver for recursively changing files properties.]]>
  74223. </doc>
  74224. </method>
  74225. <method name="main"
  74226. abstract="false" native="false" synchronized="false"
  74227. static="true" final="false" visibility="public"
  74228. deprecated="not deprecated">
  74229. <param name="args" type="java.lang.String[]"/>
  74230. <exception name="Exception" type="java.lang.Exception"/>
  74231. </method>
  74232. <doc>
  74233. <![CDATA[A Map-reduce program to recursively change files properties
  74234. such as owner, group and permission.]]>
  74235. </doc>
  74236. </class>
  74237. <!-- end class org.apache.hadoop.tools.DistCh -->
  74238. <!-- start class org.apache.hadoop.tools.DistCp -->
  74239. <class name="DistCp" extends="java.lang.Object"
  74240. abstract="false"
  74241. static="false" final="false" visibility="public"
  74242. deprecated="not deprecated">
  74243. <implements name="org.apache.hadoop.util.Tool"/>
  74244. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  74245. static="false" final="false" visibility="public"
  74246. deprecated="not deprecated">
  74247. </constructor>
  74248. <method name="setConf"
  74249. abstract="false" native="false" synchronized="false"
  74250. static="false" final="false" visibility="public"
  74251. deprecated="not deprecated">
  74252. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74253. </method>
  74254. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74255. abstract="false" native="false" synchronized="false"
  74256. static="false" final="false" visibility="public"
  74257. deprecated="not deprecated">
  74258. </method>
  74259. <method name="copy"
  74260. abstract="false" native="false" synchronized="false"
  74261. static="true" final="false" visibility="public"
  74262. deprecated="not deprecated">
  74263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74264. <param name="srcPath" type="java.lang.String"/>
  74265. <param name="destPath" type="java.lang.String"/>
  74266. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  74267. <param name="srcAsList" type="boolean"/>
  74268. <param name="ignoreReadFailures" type="boolean"/>
  74269. <exception name="IOException" type="java.io.IOException"/>
  74270. </method>
  74271. <method name="run" return="int"
  74272. abstract="false" native="false" synchronized="false"
  74273. static="false" final="false" visibility="public"
  74274. deprecated="not deprecated">
  74275. <param name="args" type="java.lang.String[]"/>
  74276. <doc>
  74277. <![CDATA[This is the main driver for recursively copying directories
  74278. across file systems. It takes at least two cmdline parameters. A source
  74279. URL and a destination URL. It then essentially does an "ls -lR" on the
  74280. source URL, and writes the output in a round-robin manner to all the map
  74281. input files. The mapper actually copies the files allotted to it. The
  74282. reduce is empty.]]>
  74283. </doc>
  74284. </method>
  74285. <method name="main"
  74286. abstract="false" native="false" synchronized="false"
  74287. static="true" final="false" visibility="public"
  74288. deprecated="not deprecated">
  74289. <param name="args" type="java.lang.String[]"/>
  74290. <exception name="Exception" type="java.lang.Exception"/>
  74291. </method>
  74292. <method name="getRandomId" return="java.lang.String"
  74293. abstract="false" native="false" synchronized="false"
  74294. static="true" final="false" visibility="public"
  74295. deprecated="not deprecated">
  74296. </method>
  74297. <field name="LOG" type="org.apache.commons.logging.Log"
  74298. transient="false" volatile="false"
  74299. static="true" final="true" visibility="public"
  74300. deprecated="not deprecated">
  74301. </field>
  74302. <doc>
  74303. <![CDATA[A Map-reduce program to recursively copy directories between
  74304. different file-systems.]]>
  74305. </doc>
  74306. </class>
  74307. <!-- end class org.apache.hadoop.tools.DistCp -->
  74308. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  74309. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  74310. abstract="false"
  74311. static="true" final="false" visibility="public"
  74312. deprecated="not deprecated">
  74313. <field name="ERROR_CODE" type="int"
  74314. transient="false" volatile="false"
  74315. static="true" final="true" visibility="public"
  74316. deprecated="not deprecated">
  74317. <doc>
  74318. <![CDATA[Error code for this exception]]>
  74319. </doc>
  74320. </field>
  74321. <doc>
  74322. <![CDATA[An exception class for duplicated source files.]]>
  74323. </doc>
  74324. </class>
  74325. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  74326. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  74327. <class name="HadoopArchives" extends="java.lang.Object"
  74328. abstract="false"
  74329. static="false" final="false" visibility="public"
  74330. deprecated="not deprecated">
  74331. <implements name="org.apache.hadoop.util.Tool"/>
  74332. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  74333. static="false" final="false" visibility="public"
  74334. deprecated="not deprecated">
  74335. </constructor>
  74336. <method name="setConf"
  74337. abstract="false" native="false" synchronized="false"
  74338. static="false" final="false" visibility="public"
  74339. deprecated="not deprecated">
  74340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74341. </method>
  74342. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74343. abstract="false" native="false" synchronized="false"
  74344. static="false" final="false" visibility="public"
  74345. deprecated="not deprecated">
  74346. </method>
  74347. <method name="run" return="int"
  74348. abstract="false" native="false" synchronized="false"
  74349. static="false" final="false" visibility="public"
  74350. deprecated="not deprecated">
  74351. <param name="args" type="java.lang.String[]"/>
  74352. <exception name="Exception" type="java.lang.Exception"/>
  74353. <doc>
  74354. <![CDATA[the main driver for creating the archives
  74355. it takes at least three command line parameters. The parent path,
  74356. The src and the dest. It does an lsr on the source paths.
  74357. The mapper created archuves and the reducer creates
  74358. the archive index.]]>
  74359. </doc>
  74360. </method>
  74361. <method name="main"
  74362. abstract="false" native="false" synchronized="false"
  74363. static="true" final="false" visibility="public"
  74364. deprecated="not deprecated">
  74365. <param name="args" type="java.lang.String[]"/>
  74366. <doc>
  74367. <![CDATA[the main functions]]>
  74368. </doc>
  74369. </method>
  74370. <field name="VERSION" type="int"
  74371. transient="false" volatile="false"
  74372. static="true" final="true" visibility="public"
  74373. deprecated="not deprecated">
  74374. </field>
  74375. <doc>
  74376. <![CDATA[a archive creation utility.
  74377. This class provides methods that can be used
  74378. to create hadoop archives. For understanding of
  74379. Hadoop archives look at {@link HarFileSystem}.]]>
  74380. </doc>
  74381. </class>
  74382. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  74383. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  74384. <class name="Logalyzer" extends="java.lang.Object"
  74385. abstract="false"
  74386. static="false" final="false" visibility="public"
  74387. deprecated="not deprecated">
  74388. <constructor name="Logalyzer"
  74389. static="false" final="false" visibility="public"
  74390. deprecated="not deprecated">
  74391. </constructor>
  74392. <method name="doArchive"
  74393. abstract="false" native="false" synchronized="false"
  74394. static="false" final="false" visibility="public"
  74395. deprecated="not deprecated">
  74396. <param name="logListURI" type="java.lang.String"/>
  74397. <param name="archiveDirectory" type="java.lang.String"/>
  74398. <exception name="IOException" type="java.io.IOException"/>
  74399. <doc>
  74400. <![CDATA[doArchive: Workhorse function to archive log-files.
  74401. @param logListURI : The uri which will serve list of log-files to archive.
  74402. @param archiveDirectory : The directory to store archived logfiles.
  74403. @throws IOException]]>
  74404. </doc>
  74405. </method>
  74406. <method name="doAnalyze"
  74407. abstract="false" native="false" synchronized="false"
  74408. static="false" final="false" visibility="public"
  74409. deprecated="not deprecated">
  74410. <param name="inputFilesDirectory" type="java.lang.String"/>
  74411. <param name="outputDirectory" type="java.lang.String"/>
  74412. <param name="grepPattern" type="java.lang.String"/>
  74413. <param name="sortColumns" type="java.lang.String"/>
  74414. <param name="columnSeparator" type="java.lang.String"/>
  74415. <exception name="IOException" type="java.io.IOException"/>
  74416. <doc>
  74417. <![CDATA[doAnalyze:
  74418. @param inputFilesDirectory : Directory containing the files to be analyzed.
  74419. @param outputDirectory : Directory to store analysis (output).
  74420. @param grepPattern : Pattern to *grep* for.
  74421. @param sortColumns : Sort specification for output.
  74422. @param columnSeparator : Column separator.
  74423. @throws IOException]]>
  74424. </doc>
  74425. </method>
  74426. <method name="main"
  74427. abstract="false" native="false" synchronized="false"
  74428. static="true" final="false" visibility="public"
  74429. deprecated="not deprecated">
  74430. <param name="args" type="java.lang.String[]"/>
  74431. </method>
  74432. <doc>
  74433. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  74434. <p>
  74435. This tool supports archiving and anaylzing (sort/grep) of log-files.
  74436. It takes as input
  74437. a) Input uri which will serve uris of the logs to be archived.
  74438. b) Output directory (not mandatory).
  74439. b) Directory on dfs to archive the logs.
  74440. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  74441. Usage:
  74442. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  74443. <p>]]>
  74444. </doc>
  74445. </class>
  74446. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  74447. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  74448. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  74449. abstract="false"
  74450. static="true" final="false" visibility="public"
  74451. deprecated="not deprecated">
  74452. <implements name="org.apache.hadoop.conf.Configurable"/>
  74453. <constructor name="Logalyzer.LogComparator"
  74454. static="false" final="false" visibility="public"
  74455. deprecated="not deprecated">
  74456. </constructor>
  74457. <method name="setConf"
  74458. abstract="false" native="false" synchronized="false"
  74459. static="false" final="false" visibility="public"
  74460. deprecated="not deprecated">
  74461. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74462. </method>
  74463. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74464. abstract="false" native="false" synchronized="false"
  74465. static="false" final="false" visibility="public"
  74466. deprecated="not deprecated">
  74467. </method>
  74468. <method name="compare" return="int"
  74469. abstract="false" native="false" synchronized="false"
  74470. static="false" final="false" visibility="public"
  74471. deprecated="not deprecated">
  74472. <param name="b1" type="byte[]"/>
  74473. <param name="s1" type="int"/>
  74474. <param name="l1" type="int"/>
  74475. <param name="b2" type="byte[]"/>
  74476. <param name="s2" type="int"/>
  74477. <param name="l2" type="int"/>
  74478. </method>
  74479. <doc>
  74480. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  74481. </doc>
  74482. </class>
  74483. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  74484. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  74485. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  74486. abstract="false"
  74487. static="true" final="false" visibility="public"
  74488. deprecated="not deprecated">
  74489. <implements name="org.apache.hadoop.mapred.Mapper"/>
  74490. <constructor name="Logalyzer.LogRegexMapper"
  74491. static="false" final="false" visibility="public"
  74492. deprecated="not deprecated">
  74493. </constructor>
  74494. <method name="configure"
  74495. abstract="false" native="false" synchronized="false"
  74496. static="false" final="false" visibility="public"
  74497. deprecated="not deprecated">
  74498. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  74499. </method>
  74500. <method name="map"
  74501. abstract="false" native="false" synchronized="false"
  74502. static="false" final="false" visibility="public"
  74503. deprecated="not deprecated">
  74504. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  74505. <param name="value" type="org.apache.hadoop.io.Text"/>
  74506. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  74507. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  74508. <exception name="IOException" type="java.io.IOException"/>
  74509. </method>
  74510. <doc>
  74511. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  74512. </doc>
  74513. </class>
  74514. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  74515. </package>
  74516. <package name="org.apache.hadoop.tools.rumen">
  74517. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  74518. <class name="AbstractClusterStory" extends="java.lang.Object"
  74519. abstract="true"
  74520. static="false" final="false" visibility="public"
  74521. deprecated="not deprecated">
  74522. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  74523. <constructor name="AbstractClusterStory"
  74524. static="false" final="false" visibility="public"
  74525. deprecated="not deprecated">
  74526. </constructor>
  74527. <method name="getMachines" return="java.util.Set"
  74528. abstract="false" native="false" synchronized="false"
  74529. static="false" final="false" visibility="public"
  74530. deprecated="not deprecated">
  74531. </method>
  74532. <method name="getRacks" return="java.util.Set"
  74533. abstract="false" native="false" synchronized="true"
  74534. static="false" final="false" visibility="public"
  74535. deprecated="not deprecated">
  74536. </method>
  74537. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  74538. abstract="false" native="false" synchronized="true"
  74539. static="false" final="false" visibility="public"
  74540. deprecated="not deprecated">
  74541. <param name="expected" type="int"/>
  74542. <param name="random" type="java.util.Random"/>
  74543. </method>
  74544. <method name="buildMachineNodeMap"
  74545. abstract="false" native="false" synchronized="true"
  74546. static="false" final="false" visibility="protected"
  74547. deprecated="not deprecated">
  74548. </method>
  74549. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  74550. abstract="false" native="false" synchronized="false"
  74551. static="false" final="false" visibility="public"
  74552. deprecated="not deprecated">
  74553. <param name="name" type="java.lang.String"/>
  74554. </method>
  74555. <method name="distance" return="int"
  74556. abstract="false" native="false" synchronized="false"
  74557. static="false" final="false" visibility="public"
  74558. deprecated="not deprecated">
  74559. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  74560. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  74561. </method>
  74562. <method name="buildRackNodeMap"
  74563. abstract="false" native="false" synchronized="true"
  74564. static="false" final="false" visibility="protected"
  74565. deprecated="not deprecated">
  74566. </method>
  74567. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  74568. abstract="false" native="false" synchronized="false"
  74569. static="false" final="false" visibility="public"
  74570. deprecated="not deprecated">
  74571. <param name="name" type="java.lang.String"/>
  74572. </method>
  74573. <method name="getMaximumDistance" return="int"
  74574. abstract="false" native="false" synchronized="false"
  74575. static="false" final="false" visibility="public"
  74576. deprecated="not deprecated">
  74577. </method>
  74578. <method name="parseTopologyTree"
  74579. abstract="false" native="false" synchronized="true"
  74580. static="false" final="false" visibility="protected"
  74581. deprecated="not deprecated">
  74582. </method>
  74583. <field name="machineNodes" type="java.util.Set"
  74584. transient="false" volatile="false"
  74585. static="false" final="false" visibility="protected"
  74586. deprecated="not deprecated">
  74587. </field>
  74588. <field name="rackNodes" type="java.util.Set"
  74589. transient="false" volatile="false"
  74590. static="false" final="false" visibility="protected"
  74591. deprecated="not deprecated">
  74592. </field>
  74593. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  74594. transient="false" volatile="false"
  74595. static="false" final="false" visibility="protected"
  74596. deprecated="not deprecated">
  74597. </field>
  74598. <field name="mNodeMap" type="java.util.Map"
  74599. transient="false" volatile="false"
  74600. static="false" final="false" visibility="protected"
  74601. deprecated="not deprecated">
  74602. </field>
  74603. <field name="rNodeMap" type="java.util.Map"
  74604. transient="false" volatile="false"
  74605. static="false" final="false" visibility="protected"
  74606. deprecated="not deprecated">
  74607. </field>
  74608. <field name="maximumDistance" type="int"
  74609. transient="false" volatile="false"
  74610. static="false" final="false" visibility="protected"
  74611. deprecated="not deprecated">
  74612. </field>
  74613. <doc>
  74614. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  74615. {@link ClusterStory} by parsing the topology tree.]]>
  74616. </doc>
  74617. </class>
  74618. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  74619. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  74620. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  74621. abstract="false"
  74622. static="false" final="false" visibility="public"
  74623. deprecated="not deprecated">
  74624. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  74625. static="false" final="false" visibility="public"
  74626. deprecated="not deprecated">
  74627. <doc>
  74628. <![CDATA[@param cdf
  74629. builds a CDFRandomValue engine around this
  74630. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  74631. </doc>
  74632. </constructor>
  74633. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  74634. static="false" final="false" visibility="public"
  74635. deprecated="not deprecated">
  74636. <doc>
  74637. <![CDATA[@param cdf
  74638. builds a CDFRandomValue engine around this
  74639. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  74640. @param seed
  74641. the random number generator seed]]>
  74642. </doc>
  74643. </constructor>
  74644. <method name="valueAt" return="long"
  74645. abstract="false" native="false" synchronized="false"
  74646. static="false" final="false" visibility="public"
  74647. deprecated="not deprecated">
  74648. <param name="probability" type="double"/>
  74649. <doc>
  74650. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  74651. epistomological minimum resp. maximum. This is probably okay for the
  74652. minimum, because that likely represents a task where everything went well,
  74653. but for the maximum we may want to develop a way of extrapolating past the
  74654. maximum.]]>
  74655. </doc>
  74656. </method>
  74657. </class>
  74658. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  74659. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  74660. <class name="CDFRandomGenerator" extends="java.lang.Object"
  74661. abstract="true"
  74662. static="false" final="false" visibility="public"
  74663. deprecated="not deprecated">
  74664. <method name="initializeTables"
  74665. abstract="false" native="false" synchronized="false"
  74666. static="false" final="true" visibility="protected"
  74667. deprecated="not deprecated">
  74668. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  74669. </method>
  74670. <method name="floorIndex" return="int"
  74671. abstract="false" native="false" synchronized="false"
  74672. static="false" final="false" visibility="protected"
  74673. deprecated="not deprecated">
  74674. <param name="probe" type="double"/>
  74675. </method>
  74676. <method name="getRankingAt" return="double"
  74677. abstract="false" native="false" synchronized="false"
  74678. static="false" final="false" visibility="protected"
  74679. deprecated="not deprecated">
  74680. <param name="index" type="int"/>
  74681. </method>
  74682. <method name="getDatumAt" return="long"
  74683. abstract="false" native="false" synchronized="false"
  74684. static="false" final="false" visibility="protected"
  74685. deprecated="not deprecated">
  74686. <param name="index" type="int"/>
  74687. </method>
  74688. <method name="randomValue" return="long"
  74689. abstract="false" native="false" synchronized="false"
  74690. static="false" final="false" visibility="public"
  74691. deprecated="not deprecated">
  74692. </method>
  74693. <method name="valueAt" return="long"
  74694. abstract="true" native="false" synchronized="false"
  74695. static="false" final="false" visibility="public"
  74696. deprecated="not deprecated">
  74697. <param name="probability" type="double"/>
  74698. </method>
  74699. <doc>
  74700. <![CDATA[An instance of this class generates random values that confirm to the
  74701. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  74702. approximation of the "real" CDF. We therefore have a choice of interpolation
  74703. rules.
  74704. A concrete subclass of this abstract class will implement valueAt(double)
  74705. using a class-dependent interpolation rule.]]>
  74706. </doc>
  74707. </class>
  74708. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  74709. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  74710. <interface name="ClusterStory" abstract="true"
  74711. static="false" final="false" visibility="public"
  74712. deprecated="not deprecated">
  74713. <method name="getMachines" return="java.util.Set"
  74714. abstract="false" native="false" synchronized="false"
  74715. static="false" final="false" visibility="public"
  74716. deprecated="not deprecated">
  74717. <doc>
  74718. <![CDATA[Get all machines of the cluster.
  74719. @return A read-only set that contains all machines of the cluster.]]>
  74720. </doc>
  74721. </method>
  74722. <method name="getRacks" return="java.util.Set"
  74723. abstract="false" native="false" synchronized="false"
  74724. static="false" final="false" visibility="public"
  74725. deprecated="not deprecated">
  74726. <doc>
  74727. <![CDATA[Get all racks of the cluster.
  74728. @return A read-only set that contains all racks of the cluster.]]>
  74729. </doc>
  74730. </method>
  74731. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  74732. abstract="false" native="false" synchronized="false"
  74733. static="false" final="false" visibility="public"
  74734. deprecated="not deprecated">
  74735. <doc>
  74736. <![CDATA[Get the cluster topology tree.
  74737. @return The root node of the cluster topology tree.]]>
  74738. </doc>
  74739. </method>
  74740. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  74741. abstract="false" native="false" synchronized="false"
  74742. static="false" final="false" visibility="public"
  74743. deprecated="not deprecated">
  74744. <param name="expected" type="int"/>
  74745. <param name="random" type="java.util.Random"/>
  74746. <doc>
  74747. <![CDATA[Select a random set of machines.
  74748. @param expected The expected sample size.
  74749. @param random Random number generator to use.
  74750. @return An array of up to expected number of {@link MachineNode}s.]]>
  74751. </doc>
  74752. </method>
  74753. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  74754. abstract="false" native="false" synchronized="false"
  74755. static="false" final="false" visibility="public"
  74756. deprecated="not deprecated">
  74757. <param name="name" type="java.lang.String"/>
  74758. <doc>
  74759. <![CDATA[Get {@link MachineNode} by its host name.
  74760. @return The {@line MachineNode} with the same name. Or null if not found.]]>
  74761. </doc>
  74762. </method>
  74763. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  74764. abstract="false" native="false" synchronized="false"
  74765. static="false" final="false" visibility="public"
  74766. deprecated="not deprecated">
  74767. <param name="name" type="java.lang.String"/>
  74768. <doc>
  74769. <![CDATA[Get {@link RackNode} by its name.
  74770. @return The {@line RackNode} with the same name. Or null if not found.]]>
  74771. </doc>
  74772. </method>
  74773. <method name="distance" return="int"
  74774. abstract="false" native="false" synchronized="false"
  74775. static="false" final="false" visibility="public"
  74776. deprecated="not deprecated">
  74777. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  74778. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  74779. <doc>
  74780. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  74781. is loosely defined as the length of the longer path for either a or b to
  74782. reach their common ancestor.
  74783. @param a
  74784. @param b
  74785. @return The distance between {@link Node} a and {@link Node} b.]]>
  74786. </doc>
  74787. </method>
  74788. <method name="getMaximumDistance" return="int"
  74789. abstract="false" native="false" synchronized="false"
  74790. static="false" final="false" visibility="public"
  74791. deprecated="not deprecated">
  74792. <doc>
  74793. <![CDATA[Get the maximum distance possible between any two nodes.
  74794. @return the maximum distance possible between any two nodes.]]>
  74795. </doc>
  74796. </method>
  74797. <doc>
  74798. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  74799. including nodes, network topology, and slot configurations.]]>
  74800. </doc>
  74801. </interface>
  74802. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  74803. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  74804. <class name="ClusterTopologyReader" extends="java.lang.Object"
  74805. abstract="false"
  74806. static="false" final="false" visibility="public"
  74807. deprecated="not deprecated">
  74808. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  74809. static="false" final="false" visibility="public"
  74810. deprecated="not deprecated">
  74811. <exception name="IOException" type="java.io.IOException"/>
  74812. <doc>
  74813. <![CDATA[Constructor.
  74814. @param path
  74815. Path to the JSON-encoded topology file, possibly compressed.
  74816. @param conf
  74817. @throws IOException]]>
  74818. </doc>
  74819. </constructor>
  74820. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  74821. static="false" final="false" visibility="public"
  74822. deprecated="not deprecated">
  74823. <exception name="IOException" type="java.io.IOException"/>
  74824. <doc>
  74825. <![CDATA[Constructor.
  74826. @param input
  74827. The input stream for the JSON-encoded topology data.]]>
  74828. </doc>
  74829. </constructor>
  74830. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  74831. abstract="false" native="false" synchronized="false"
  74832. static="false" final="false" visibility="public"
  74833. deprecated="not deprecated">
  74834. <doc>
  74835. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  74836. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  74837. </doc>
  74838. </method>
  74839. <doc>
  74840. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  74841. {@link LoggedNetworkTopology} object.]]>
  74842. </doc>
  74843. </class>
  74844. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  74845. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  74846. <interface name="DeepCompare" abstract="true"
  74847. static="false" final="false" visibility="public"
  74848. deprecated="not deprecated">
  74849. <method name="deepCompare"
  74850. abstract="false" native="false" synchronized="false"
  74851. static="false" final="false" visibility="public"
  74852. deprecated="not deprecated">
  74853. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  74854. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  74855. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  74856. <doc>
  74857. <![CDATA[@param other
  74858. the other comparand that's being compared to me
  74859. @param myLocation
  74860. the path that got to me. In the root, myLocation is null. To
  74861. process the scalar {@code foo} field of the root we will make a
  74862. recursive call with a {@link TreePath} whose {@code fieldName} is
  74863. {@code "bar"} and whose {@code index} is -1 and whose {@code
  74864. parent} is {@code null}. To process the plural {@code bar} field
  74865. of the root we will make a recursive call with a {@link TreePath}
  74866. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  74867. whose {@code parent} is also {@code null}.
  74868. @throws DeepInequalityException]]>
  74869. </doc>
  74870. </method>
  74871. <doc>
  74872. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  74873. not order] with another instance. They do a deep compare. If there is any
  74874. semantically significant difference, an implementer throws an Exception to be
  74875. thrown with a chain of causes describing the chain of field references and
  74876. indices that get you to the miscompared point.]]>
  74877. </doc>
  74878. </interface>
  74879. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  74880. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  74881. <class name="DeepInequalityException" extends="java.lang.Exception"
  74882. abstract="false"
  74883. static="false" final="false" visibility="public"
  74884. deprecated="not deprecated">
  74885. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  74886. static="false" final="false" visibility="public"
  74887. deprecated="not deprecated">
  74888. <doc>
  74889. <![CDATA[@param message
  74890. an exception message
  74891. @param path
  74892. the path that gets from the root to the inequality
  74893. This is the constructor that I intend to have used for this
  74894. exception.]]>
  74895. </doc>
  74896. </constructor>
  74897. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  74898. static="false" final="false" visibility="public"
  74899. deprecated="not deprecated">
  74900. <doc>
  74901. <![CDATA[@param message
  74902. an exception message
  74903. @param path
  74904. the path that gets from the root to the inequality
  74905. This is the constructor that I intend to have used for this
  74906. exception.]]>
  74907. </doc>
  74908. </constructor>
  74909. <doc>
  74910. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  74911. when we run the]]>
  74912. </doc>
  74913. </class>
  74914. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  74915. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  74916. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  74917. abstract="false"
  74918. static="false" final="false" visibility="public"
  74919. deprecated="not deprecated">
  74920. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  74921. <constructor name="DefaultInputDemuxer"
  74922. static="false" final="false" visibility="public"
  74923. deprecated="not deprecated">
  74924. </constructor>
  74925. <method name="bindTo"
  74926. abstract="false" native="false" synchronized="false"
  74927. static="false" final="false" visibility="public"
  74928. deprecated="not deprecated">
  74929. <param name="path" type="org.apache.hadoop.fs.Path"/>
  74930. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74931. <exception name="IOException" type="java.io.IOException"/>
  74932. </method>
  74933. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  74934. abstract="false" native="false" synchronized="false"
  74935. static="false" final="false" visibility="public"
  74936. deprecated="not deprecated">
  74937. <exception name="IOException" type="java.io.IOException"/>
  74938. </method>
  74939. <method name="close"
  74940. abstract="false" native="false" synchronized="false"
  74941. static="false" final="false" visibility="public"
  74942. deprecated="not deprecated">
  74943. <exception name="IOException" type="java.io.IOException"/>
  74944. </method>
  74945. <doc>
  74946. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  74947. each file and returns back the input stream. If the input is compressed, it
  74948. would return a decompression stream.]]>
  74949. </doc>
  74950. </class>
  74951. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  74952. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  74953. <class name="DefaultOutputter" extends="java.lang.Object"
  74954. abstract="false"
  74955. static="false" final="false" visibility="public"
  74956. deprecated="not deprecated">
  74957. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  74958. <constructor name="DefaultOutputter"
  74959. static="false" final="false" visibility="public"
  74960. deprecated="not deprecated">
  74961. </constructor>
  74962. <method name="init"
  74963. abstract="false" native="false" synchronized="false"
  74964. static="false" final="false" visibility="public"
  74965. deprecated="not deprecated">
  74966. <param name="path" type="org.apache.hadoop.fs.Path"/>
  74967. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74968. <exception name="IOException" type="java.io.IOException"/>
  74969. </method>
  74970. <method name="output"
  74971. abstract="false" native="false" synchronized="false"
  74972. static="false" final="false" visibility="public"
  74973. deprecated="not deprecated">
  74974. <param name="object" type="java.lang.Object"/>
  74975. <exception name="IOException" type="java.io.IOException"/>
  74976. </method>
  74977. <method name="close"
  74978. abstract="false" native="false" synchronized="false"
  74979. static="false" final="false" visibility="public"
  74980. deprecated="not deprecated">
  74981. <exception name="IOException" type="java.io.IOException"/>
  74982. </method>
  74983. <doc>
  74984. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  74985. will be applied if the path has the right suffix.]]>
  74986. </doc>
  74987. </class>
  74988. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  74989. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  74990. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  74991. abstract="false"
  74992. static="false" final="false" visibility="public"
  74993. deprecated="not deprecated">
  74994. <implements name="java.io.Closeable"/>
  74995. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  74996. static="false" final="false" visibility="public"
  74997. deprecated="not deprecated">
  74998. <exception name="IOException" type="java.io.IOException"/>
  74999. <doc>
  75000. <![CDATA[Constructor.
  75001. @param reader
  75002. the {@link JobTraceReader} that's being protected
  75003. @param skewBufferSize
  75004. [the number of late jobs that can preced a later out-of-order
  75005. earlier job
  75006. @throws IOException]]>
  75007. </doc>
  75008. </constructor>
  75009. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  75010. static="false" final="false" visibility="public"
  75011. deprecated="not deprecated">
  75012. <exception name="IOException" type="java.io.IOException"/>
  75013. </constructor>
  75014. <method name="close"
  75015. abstract="false" native="false" synchronized="false"
  75016. static="false" final="false" visibility="public"
  75017. deprecated="not deprecated">
  75018. <exception name="IOException" type="java.io.IOException"/>
  75019. </method>
  75020. </class>
  75021. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  75022. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  75023. <class name="EventType" extends="java.lang.Enum"
  75024. abstract="false"
  75025. static="false" final="true" visibility="public"
  75026. deprecated="not deprecated">
  75027. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  75028. abstract="false" native="false" synchronized="false"
  75029. static="true" final="false" visibility="public"
  75030. deprecated="not deprecated">
  75031. </method>
  75032. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  75033. abstract="false" native="false" synchronized="false"
  75034. static="true" final="false" visibility="public"
  75035. deprecated="not deprecated">
  75036. <param name="name" type="java.lang.String"/>
  75037. </method>
  75038. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  75039. transient="false" volatile="false"
  75040. static="true" final="true" visibility="public"
  75041. deprecated="not deprecated">
  75042. </field>
  75043. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  75044. transient="false" volatile="false"
  75045. static="true" final="true" visibility="public"
  75046. deprecated="not deprecated">
  75047. </field>
  75048. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75049. transient="false" volatile="false"
  75050. static="true" final="true" visibility="public"
  75051. deprecated="not deprecated">
  75052. </field>
  75053. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  75054. transient="false" volatile="false"
  75055. static="true" final="true" visibility="public"
  75056. deprecated="not deprecated">
  75057. </field>
  75058. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  75059. transient="false" volatile="false"
  75060. static="true" final="true" visibility="public"
  75061. deprecated="not deprecated">
  75062. </field>
  75063. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75064. transient="false" volatile="false"
  75065. static="true" final="true" visibility="public"
  75066. deprecated="not deprecated">
  75067. </field>
  75068. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75069. transient="false" volatile="false"
  75070. static="true" final="true" visibility="public"
  75071. deprecated="not deprecated">
  75072. </field>
  75073. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  75074. transient="false" volatile="false"
  75075. static="true" final="true" visibility="public"
  75076. deprecated="not deprecated">
  75077. </field>
  75078. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75079. transient="false" volatile="false"
  75080. static="true" final="true" visibility="public"
  75081. deprecated="not deprecated">
  75082. </field>
  75083. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75084. transient="false" volatile="false"
  75085. static="true" final="true" visibility="public"
  75086. deprecated="not deprecated">
  75087. </field>
  75088. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75089. transient="false" volatile="false"
  75090. static="true" final="true" visibility="public"
  75091. deprecated="not deprecated">
  75092. </field>
  75093. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  75094. transient="false" volatile="false"
  75095. static="true" final="true" visibility="public"
  75096. deprecated="not deprecated">
  75097. </field>
  75098. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75099. transient="false" volatile="false"
  75100. static="true" final="true" visibility="public"
  75101. deprecated="not deprecated">
  75102. </field>
  75103. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75104. transient="false" volatile="false"
  75105. static="true" final="true" visibility="public"
  75106. deprecated="not deprecated">
  75107. </field>
  75108. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75109. transient="false" volatile="false"
  75110. static="true" final="true" visibility="public"
  75111. deprecated="not deprecated">
  75112. </field>
  75113. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75114. transient="false" volatile="false"
  75115. static="true" final="true" visibility="public"
  75116. deprecated="not deprecated">
  75117. </field>
  75118. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75119. transient="false" volatile="false"
  75120. static="true" final="true" visibility="public"
  75121. deprecated="not deprecated">
  75122. </field>
  75123. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75124. transient="false" volatile="false"
  75125. static="true" final="true" visibility="public"
  75126. deprecated="not deprecated">
  75127. </field>
  75128. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75129. transient="false" volatile="false"
  75130. static="true" final="true" visibility="public"
  75131. deprecated="not deprecated">
  75132. </field>
  75133. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75134. transient="false" volatile="false"
  75135. static="true" final="true" visibility="public"
  75136. deprecated="not deprecated">
  75137. </field>
  75138. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75139. transient="false" volatile="false"
  75140. static="true" final="true" visibility="public"
  75141. deprecated="not deprecated">
  75142. </field>
  75143. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75144. transient="false" volatile="false"
  75145. static="true" final="true" visibility="public"
  75146. deprecated="not deprecated">
  75147. </field>
  75148. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75149. transient="false" volatile="false"
  75150. static="true" final="true" visibility="public"
  75151. deprecated="not deprecated">
  75152. </field>
  75153. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75154. transient="false" volatile="false"
  75155. static="true" final="true" visibility="public"
  75156. deprecated="not deprecated">
  75157. </field>
  75158. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75159. transient="false" volatile="false"
  75160. static="true" final="true" visibility="public"
  75161. deprecated="not deprecated">
  75162. </field>
  75163. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75164. transient="false" volatile="false"
  75165. static="true" final="true" visibility="public"
  75166. deprecated="not deprecated">
  75167. </field>
  75168. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75169. transient="false" volatile="false"
  75170. static="true" final="true" visibility="public"
  75171. deprecated="not deprecated">
  75172. </field>
  75173. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75174. transient="false" volatile="false"
  75175. static="true" final="true" visibility="public"
  75176. deprecated="not deprecated">
  75177. </field>
  75178. </class>
  75179. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  75180. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  75181. <class name="Hadoop20JHParser" extends="java.lang.Object"
  75182. abstract="false"
  75183. static="false" final="false" visibility="public"
  75184. deprecated="not deprecated">
  75185. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  75186. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  75187. static="false" final="false" visibility="public"
  75188. deprecated="not deprecated">
  75189. <exception name="IOException" type="java.io.IOException"/>
  75190. </constructor>
  75191. <method name="canParse" return="boolean"
  75192. abstract="false" native="false" synchronized="false"
  75193. static="true" final="false" visibility="public"
  75194. deprecated="not deprecated">
  75195. <param name="input" type="java.io.InputStream"/>
  75196. <exception name="IOException" type="java.io.IOException"/>
  75197. <doc>
  75198. <![CDATA[Can this parser parse the input?
  75199. @param input
  75200. @return Whether this parser can parse the input.
  75201. @throws IOException
  75202. We will deem a stream to be a good 0.20 job history stream if the
  75203. first line is exactly "Meta VERSION=\"1\" ."]]>
  75204. </doc>
  75205. </method>
  75206. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  75207. abstract="false" native="false" synchronized="false"
  75208. static="false" final="false" visibility="public"
  75209. deprecated="not deprecated">
  75210. </method>
  75211. <method name="close"
  75212. abstract="false" native="false" synchronized="false"
  75213. static="false" final="false" visibility="public"
  75214. deprecated="not deprecated">
  75215. <exception name="IOException" type="java.io.IOException"/>
  75216. </method>
  75217. <doc>
  75218. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  75219. </doc>
  75220. </class>
  75221. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  75222. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  75223. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  75224. abstract="false"
  75225. static="false" final="false" visibility="public"
  75226. deprecated="not deprecated">
  75227. <implements name="org.apache.hadoop.util.Tool"/>
  75228. <constructor name="HadoopLogsAnalyzer"
  75229. static="false" final="false" visibility="public"
  75230. deprecated="not deprecated">
  75231. </constructor>
  75232. <method name="run" return="int"
  75233. abstract="false" native="false" synchronized="false"
  75234. static="false" final="false" visibility="public"
  75235. deprecated="not deprecated">
  75236. <param name="args" type="java.lang.String[]"/>
  75237. <exception name="IOException" type="java.io.IOException"/>
  75238. </method>
  75239. <method name="main"
  75240. abstract="false" native="false" synchronized="false"
  75241. static="true" final="false" visibility="public"
  75242. deprecated="not deprecated">
  75243. <param name="args" type="java.lang.String[]"/>
  75244. <doc>
  75245. <![CDATA[@param args
  75246. Last arg is the input file. That file can be a directory, in which
  75247. case you get all the files in sorted order. We will decompress
  75248. files whose nmes end in .gz .
  75249. switches: -c collect line types.
  75250. -d debug mode
  75251. -delays print out the delays [interval between job submit time and
  75252. launch time]
  75253. -runtimes print out the job runtimes
  75254. -spreads print out the ratio of 10%ile and 90%ile, of both the
  75255. successful map task attempt run times and the the successful
  75256. reduce task attempt run times
  75257. -tasktimes prints out individual task time distributions
  75258. collects all the line types and prints the first example of each
  75259. one]]>
  75260. </doc>
  75261. </method>
  75262. <doc>
  75263. <![CDATA[This is the main class for rumen log mining functionality.
  75264. It reads a directory of job tracker logs, and computes various information
  75265. about it. See {@code usage()}, below.]]>
  75266. </doc>
  75267. </class>
  75268. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  75269. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  75270. <interface name="HistoryEvent" abstract="true"
  75271. static="false" final="false" visibility="public"
  75272. deprecated="not deprecated">
  75273. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  75274. abstract="false" native="false" synchronized="false"
  75275. static="false" final="false" visibility="public"
  75276. deprecated="not deprecated">
  75277. <doc>
  75278. <![CDATA[Return this event's type.]]>
  75279. </doc>
  75280. </method>
  75281. </interface>
  75282. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  75283. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  75284. <interface name="InputDemuxer" abstract="true"
  75285. static="false" final="false" visibility="public"
  75286. deprecated="not deprecated">
  75287. <implements name="java.io.Closeable"/>
  75288. <method name="bindTo"
  75289. abstract="false" native="false" synchronized="false"
  75290. static="false" final="false" visibility="public"
  75291. deprecated="not deprecated">
  75292. <param name="path" type="org.apache.hadoop.fs.Path"/>
  75293. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75294. <exception name="IOException" type="java.io.IOException"/>
  75295. <doc>
  75296. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  75297. @param path
  75298. The path to the find it should bind to.
  75299. @param conf
  75300. Configuration
  75301. @throws IOException
  75302. Returns true when the binding succeeds. If the file can be read
  75303. but is in the wrong format, returns false. IOException is
  75304. reserved for read errors.]]>
  75305. </doc>
  75306. </method>
  75307. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  75308. abstract="false" native="false" synchronized="false"
  75309. static="false" final="false" visibility="public"
  75310. deprecated="not deprecated">
  75311. <exception name="IOException" type="java.io.IOException"/>
  75312. <doc>
  75313. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  75314. history file or job conf file name. The input object should be closed
  75315. before calling getNext() again. The old input object would be invalid after
  75316. calling getNext() again.
  75317. @return the next <name, input> pair.]]>
  75318. </doc>
  75319. </method>
  75320. <doc>
  75321. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  75322. streams.]]>
  75323. </doc>
  75324. </interface>
  75325. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  75326. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  75327. <class name="JhCounter" extends="java.lang.Object"
  75328. abstract="false"
  75329. static="false" final="false" visibility="public"
  75330. deprecated="not deprecated">
  75331. <constructor name="JhCounter"
  75332. static="false" final="false" visibility="public"
  75333. deprecated="not deprecated">
  75334. </constructor>
  75335. <field name="name" type="java.lang.String"
  75336. transient="false" volatile="false"
  75337. static="false" final="false" visibility="public"
  75338. deprecated="not deprecated">
  75339. </field>
  75340. <field name="displayName" type="java.lang.String"
  75341. transient="false" volatile="false"
  75342. static="false" final="false" visibility="public"
  75343. deprecated="not deprecated">
  75344. </field>
  75345. <field name="value" type="long"
  75346. transient="false" volatile="false"
  75347. static="false" final="false" visibility="public"
  75348. deprecated="not deprecated">
  75349. </field>
  75350. </class>
  75351. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  75352. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  75353. <class name="JhCounterGroup" extends="java.lang.Object"
  75354. abstract="false"
  75355. static="false" final="false" visibility="public"
  75356. deprecated="not deprecated">
  75357. <constructor name="JhCounterGroup"
  75358. static="false" final="false" visibility="public"
  75359. deprecated="not deprecated">
  75360. </constructor>
  75361. <field name="name" type="java.lang.String"
  75362. transient="false" volatile="false"
  75363. static="false" final="false" visibility="public"
  75364. deprecated="not deprecated">
  75365. </field>
  75366. <field name="displayName" type="java.lang.String"
  75367. transient="false" volatile="false"
  75368. static="false" final="false" visibility="public"
  75369. deprecated="not deprecated">
  75370. </field>
  75371. <field name="counts" type="java.util.List"
  75372. transient="false" volatile="false"
  75373. static="false" final="false" visibility="public"
  75374. deprecated="not deprecated">
  75375. </field>
  75376. </class>
  75377. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  75378. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  75379. <class name="JhCounters" extends="java.lang.Object"
  75380. abstract="false"
  75381. static="false" final="false" visibility="public"
  75382. deprecated="not deprecated">
  75383. <field name="name" type="java.lang.String"
  75384. transient="false" volatile="false"
  75385. static="false" final="false" visibility="public"
  75386. deprecated="not deprecated">
  75387. </field>
  75388. <field name="groups" type="java.util.List"
  75389. transient="false" volatile="false"
  75390. static="false" final="false" visibility="public"
  75391. deprecated="not deprecated">
  75392. </field>
  75393. </class>
  75394. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  75395. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  75396. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  75397. abstract="false"
  75398. static="false" final="false" visibility="public"
  75399. deprecated="not deprecated">
  75400. </class>
  75401. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  75402. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  75403. <class name="JobBuilder" extends="java.lang.Object"
  75404. abstract="false"
  75405. static="false" final="false" visibility="public"
  75406. deprecated="not deprecated">
  75407. <constructor name="JobBuilder" type="java.lang.String"
  75408. static="false" final="false" visibility="public"
  75409. deprecated="not deprecated">
  75410. </constructor>
  75411. <method name="getJobID" return="java.lang.String"
  75412. abstract="false" native="false" synchronized="false"
  75413. static="false" final="false" visibility="public"
  75414. deprecated="not deprecated">
  75415. </method>
  75416. <method name="process"
  75417. abstract="false" native="false" synchronized="false"
  75418. static="false" final="false" visibility="public"
  75419. deprecated="not deprecated">
  75420. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  75421. <doc>
  75422. <![CDATA[Process one {@link HistoryEvent}
  75423. @param event
  75424. The {@link HistoryEvent} to be processed.]]>
  75425. </doc>
  75426. </method>
  75427. <method name="process"
  75428. abstract="false" native="false" synchronized="false"
  75429. static="false" final="false" visibility="public"
  75430. deprecated="not deprecated">
  75431. <param name="conf" type="java.util.Properties"/>
  75432. <doc>
  75433. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  75434. to be called once. It is okay to process a conf before, during or after the
  75435. events.
  75436. @param conf
  75437. The job conf properties to be added.]]>
  75438. </doc>
  75439. </method>
  75440. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedJob"
  75441. abstract="false" native="false" synchronized="false"
  75442. static="false" final="false" visibility="public"
  75443. deprecated="not deprecated">
  75444. <doc>
  75445. <![CDATA[Request the builder to build the final object. Once called, the
  75446. {@link JobBuilder} would accept no more events or job-conf properties.
  75447. @return Parsed {@link LoggedJob} object.]]>
  75448. </doc>
  75449. </method>
  75450. <doc>
  75451. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  75452. {@link HistoryEvent}s.]]>
  75453. </doc>
  75454. </class>
  75455. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  75456. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  75457. <class name="JobConfigurationParser" extends="java.lang.Object"
  75458. abstract="false"
  75459. static="false" final="false" visibility="public"
  75460. deprecated="not deprecated">
  75461. <constructor name="JobConfigurationParser" type="java.util.List"
  75462. static="false" final="false" visibility="public"
  75463. deprecated="not deprecated">
  75464. <doc>
  75465. <![CDATA[Constructor
  75466. @param interested
  75467. properties we should extract from the job configuration xml.]]>
  75468. </doc>
  75469. </constructor>
  75470. <doc>
  75471. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  75472. extracts various framework specific properties. It parses the file using a
  75473. stream-parser and thus is more memory efficient. [This optimization may be
  75474. postponed for a future release]]]>
  75475. </doc>
  75476. </class>
  75477. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  75478. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  75479. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  75480. abstract="false"
  75481. static="false" final="true" visibility="public"
  75482. deprecated="not deprecated">
  75483. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  75484. abstract="false" native="false" synchronized="false"
  75485. static="true" final="false" visibility="public"
  75486. deprecated="not deprecated">
  75487. </method>
  75488. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  75489. abstract="false" native="false" synchronized="false"
  75490. static="true" final="false" visibility="public"
  75491. deprecated="not deprecated">
  75492. <param name="name" type="java.lang.String"/>
  75493. </method>
  75494. <method name="getCandidates" return="java.lang.String[]"
  75495. abstract="false" native="false" synchronized="false"
  75496. static="false" final="false" visibility="public"
  75497. deprecated="not deprecated">
  75498. </method>
  75499. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  75500. transient="false" volatile="false"
  75501. static="true" final="true" visibility="public"
  75502. deprecated="not deprecated">
  75503. </field>
  75504. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  75505. transient="false" volatile="false"
  75506. static="true" final="true" visibility="public"
  75507. deprecated="not deprecated">
  75508. </field>
  75509. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  75510. transient="false" volatile="false"
  75511. static="true" final="true" visibility="public"
  75512. deprecated="not deprecated">
  75513. </field>
  75514. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  75515. transient="false" volatile="false"
  75516. static="true" final="true" visibility="public"
  75517. deprecated="not deprecated">
  75518. </field>
  75519. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  75520. transient="false" volatile="false"
  75521. static="true" final="true" visibility="public"
  75522. deprecated="not deprecated">
  75523. </field>
  75524. </class>
  75525. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  75526. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  75527. <class name="JobFinishedEvent" extends="java.lang.Object"
  75528. abstract="false"
  75529. static="false" final="false" visibility="public"
  75530. deprecated="not deprecated">
  75531. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  75532. <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"
  75533. static="false" final="false" visibility="public"
  75534. deprecated="not deprecated">
  75535. <doc>
  75536. <![CDATA[Create an event to record successful job completion
  75537. @param id Job ID
  75538. @param finishTime Finish time of the job
  75539. @param finishedMaps The number of finished maps
  75540. @param finishedReduces The number of finished reduces
  75541. @param failedMaps The number of failed maps
  75542. @param failedReduces The number of failed reduces
  75543. @param mapCounters Map Counters for the job
  75544. @param reduceCounters Reduce Counters for the job
  75545. @param totalCounters Total Counters for the job]]>
  75546. </doc>
  75547. </constructor>
  75548. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  75549. abstract="false" native="false" synchronized="false"
  75550. static="false" final="false" visibility="public"
  75551. deprecated="not deprecated">
  75552. </method>
  75553. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  75554. abstract="false" native="false" synchronized="false"
  75555. static="false" final="false" visibility="public"
  75556. deprecated="not deprecated">
  75557. <doc>
  75558. <![CDATA[Get the Job ID]]>
  75559. </doc>
  75560. </method>
  75561. <method name="getFinishTime" return="long"
  75562. abstract="false" native="false" synchronized="false"
  75563. static="false" final="false" visibility="public"
  75564. deprecated="not deprecated">
  75565. <doc>
  75566. <![CDATA[Get the job finish time]]>
  75567. </doc>
  75568. </method>
  75569. <method name="getFinishedMaps" return="int"
  75570. abstract="false" native="false" synchronized="false"
  75571. static="false" final="false" visibility="public"
  75572. deprecated="not deprecated">
  75573. <doc>
  75574. <![CDATA[Get the number of finished maps for the job]]>
  75575. </doc>
  75576. </method>
  75577. <method name="getFinishedReduces" return="int"
  75578. abstract="false" native="false" synchronized="false"
  75579. static="false" final="false" visibility="public"
  75580. deprecated="not deprecated">
  75581. <doc>
  75582. <![CDATA[Get the number of finished reducers for the job]]>
  75583. </doc>
  75584. </method>
  75585. <method name="getFailedMaps" return="int"
  75586. abstract="false" native="false" synchronized="false"
  75587. static="false" final="false" visibility="public"
  75588. deprecated="not deprecated">
  75589. <doc>
  75590. <![CDATA[Get the number of failed maps for the job]]>
  75591. </doc>
  75592. </method>
  75593. <method name="getFailedReduces" return="int"
  75594. abstract="false" native="false" synchronized="false"
  75595. static="false" final="false" visibility="public"
  75596. deprecated="not deprecated">
  75597. <doc>
  75598. <![CDATA[Get the number of failed reducers for the job]]>
  75599. </doc>
  75600. </method>
  75601. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  75602. abstract="false" native="false" synchronized="false"
  75603. static="false" final="false" visibility="public"
  75604. deprecated="not deprecated">
  75605. <doc>
  75606. <![CDATA[Get the counters for the job]]>
  75607. </doc>
  75608. </method>
  75609. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  75610. abstract="false" native="false" synchronized="false"
  75611. static="false" final="false" visibility="public"
  75612. deprecated="not deprecated">
  75613. <doc>
  75614. <![CDATA[Get the Map counters for the job]]>
  75615. </doc>
  75616. </method>
  75617. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  75618. abstract="false" native="false" synchronized="false"
  75619. static="false" final="false" visibility="public"
  75620. deprecated="not deprecated">
  75621. <doc>
  75622. <![CDATA[Get the reduce counters for the job]]>
  75623. </doc>
  75624. </method>
  75625. <doc>
  75626. <![CDATA[Event to record successful completion of job]]>
  75627. </doc>
  75628. </class>
  75629. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  75630. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  75631. <interface name="JobHistoryParser" abstract="true"
  75632. static="false" final="false" visibility="public"
  75633. deprecated="not deprecated">
  75634. <implements name="java.io.Closeable"/>
  75635. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  75636. abstract="false" native="false" synchronized="false"
  75637. static="false" final="false" visibility="public"
  75638. deprecated="not deprecated">
  75639. <exception name="IOException" type="java.io.IOException"/>
  75640. <doc>
  75641. <![CDATA[Get the next {@link HistoryEvent}
  75642. @return the next {@link HistoryEvent}. If no more events left, return null.
  75643. @throws IOException]]>
  75644. </doc>
  75645. </method>
  75646. <doc>
  75647. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  75648. </doc>
  75649. </interface>
  75650. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  75651. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  75652. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  75653. abstract="false"
  75654. static="false" final="false" visibility="public"
  75655. deprecated="not deprecated">
  75656. <constructor name="JobHistoryParserFactory"
  75657. static="false" final="false" visibility="public"
  75658. deprecated="not deprecated">
  75659. </constructor>
  75660. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  75661. abstract="false" native="false" synchronized="false"
  75662. static="true" final="false" visibility="public"
  75663. deprecated="not deprecated">
  75664. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  75665. <exception name="IOException" type="java.io.IOException"/>
  75666. </method>
  75667. <doc>
  75668. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  75669. determine the version of job history and return a proper parser.]]>
  75670. </doc>
  75671. </class>
  75672. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  75673. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  75674. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  75675. abstract="false"
  75676. static="false" final="false" visibility="public"
  75677. deprecated="not deprecated">
  75678. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  75679. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  75680. static="false" final="false" visibility="public"
  75681. deprecated="not deprecated">
  75682. <doc>
  75683. <![CDATA[Create a event to record the submit and launch time of a job
  75684. @param id Job Id
  75685. @param submitTime Submit time of the job
  75686. @param launchTime Launch time of the job]]>
  75687. </doc>
  75688. </constructor>
  75689. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  75690. abstract="false" native="false" synchronized="false"
  75691. static="false" final="false" visibility="public"
  75692. deprecated="not deprecated">
  75693. <doc>
  75694. <![CDATA[Get the Job ID]]>
  75695. </doc>
  75696. </method>
  75697. <method name="getSubmitTime" return="long"
  75698. abstract="false" native="false" synchronized="false"
  75699. static="false" final="false" visibility="public"
  75700. deprecated="not deprecated">
  75701. <doc>
  75702. <![CDATA[Get the Job submit time]]>
  75703. </doc>
  75704. </method>
  75705. <method name="getLaunchTime" return="long"
  75706. abstract="false" native="false" synchronized="false"
  75707. static="false" final="false" visibility="public"
  75708. deprecated="not deprecated">
  75709. <doc>
  75710. <![CDATA[Get the Job launch time]]>
  75711. </doc>
  75712. </method>
  75713. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  75714. abstract="false" native="false" synchronized="false"
  75715. static="false" final="false" visibility="public"
  75716. deprecated="not deprecated">
  75717. </method>
  75718. <doc>
  75719. <![CDATA[Event to record changes in the submit and launch time of
  75720. a job]]>
  75721. </doc>
  75722. </class>
  75723. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  75724. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  75725. <class name="JobInitedEvent" extends="java.lang.Object"
  75726. abstract="false"
  75727. static="false" final="false" visibility="public"
  75728. deprecated="not deprecated">
  75729. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  75730. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  75731. static="false" final="false" visibility="public"
  75732. deprecated="not deprecated">
  75733. <doc>
  75734. <![CDATA[Create an event to record job initialization
  75735. @param id
  75736. @param launchTime
  75737. @param totalMaps
  75738. @param totalReduces
  75739. @param jobStatus]]>
  75740. </doc>
  75741. </constructor>
  75742. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  75743. abstract="false" native="false" synchronized="false"
  75744. static="false" final="false" visibility="public"
  75745. deprecated="not deprecated">
  75746. <doc>
  75747. <![CDATA[Get the job ID]]>
  75748. </doc>
  75749. </method>
  75750. <method name="getLaunchTime" return="long"
  75751. abstract="false" native="false" synchronized="false"
  75752. static="false" final="false" visibility="public"
  75753. deprecated="not deprecated">
  75754. <doc>
  75755. <![CDATA[Get the launch time]]>
  75756. </doc>
  75757. </method>
  75758. <method name="getTotalMaps" return="int"
  75759. abstract="false" native="false" synchronized="false"
  75760. static="false" final="false" visibility="public"
  75761. deprecated="not deprecated">
  75762. <doc>
  75763. <![CDATA[Get the total number of maps]]>
  75764. </doc>
  75765. </method>
  75766. <method name="getTotalReduces" return="int"
  75767. abstract="false" native="false" synchronized="false"
  75768. static="false" final="false" visibility="public"
  75769. deprecated="not deprecated">
  75770. <doc>
  75771. <![CDATA[Get the total number of reduces]]>
  75772. </doc>
  75773. </method>
  75774. <method name="getStatus" return="java.lang.String"
  75775. abstract="false" native="false" synchronized="false"
  75776. static="false" final="false" visibility="public"
  75777. deprecated="not deprecated">
  75778. <doc>
  75779. <![CDATA[Get the status]]>
  75780. </doc>
  75781. </method>
  75782. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  75783. abstract="false" native="false" synchronized="false"
  75784. static="false" final="false" visibility="public"
  75785. deprecated="not deprecated">
  75786. <doc>
  75787. <![CDATA[Get the event type]]>
  75788. </doc>
  75789. </method>
  75790. <doc>
  75791. <![CDATA[Event to record the initialization of a job]]>
  75792. </doc>
  75793. </class>
  75794. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  75795. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  75796. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  75797. abstract="false"
  75798. static="false" final="false" visibility="public"
  75799. deprecated="not deprecated">
  75800. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  75801. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  75802. static="false" final="false" visibility="public"
  75803. deprecated="not deprecated">
  75804. <doc>
  75805. <![CDATA[Generate an event to record changes in Job priority
  75806. @param id Job Id
  75807. @param priority The new priority of the job]]>
  75808. </doc>
  75809. </constructor>
  75810. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  75811. abstract="false" native="false" synchronized="false"
  75812. static="false" final="false" visibility="public"
  75813. deprecated="not deprecated">
  75814. <doc>
  75815. <![CDATA[Get the Job ID]]>
  75816. </doc>
  75817. </method>
  75818. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  75819. abstract="false" native="false" synchronized="false"
  75820. static="false" final="false" visibility="public"
  75821. deprecated="not deprecated">
  75822. <doc>
  75823. <![CDATA[Get the job priority]]>
  75824. </doc>
  75825. </method>
  75826. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  75827. abstract="false" native="false" synchronized="false"
  75828. static="false" final="false" visibility="public"
  75829. deprecated="not deprecated">
  75830. <doc>
  75831. <![CDATA[Get the event type]]>
  75832. </doc>
  75833. </method>
  75834. <doc>
  75835. <![CDATA[Event to record the change of priority of a job]]>
  75836. </doc>
  75837. </class>
  75838. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  75839. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  75840. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  75841. abstract="false"
  75842. static="false" final="false" visibility="public"
  75843. deprecated="not deprecated">
  75844. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  75845. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  75846. static="false" final="false" visibility="public"
  75847. deprecated="not deprecated">
  75848. <doc>
  75849. <![CDATA[Create an event to record the change in the Job Status
  75850. @param id Job ID
  75851. @param jobStatus The new job status]]>
  75852. </doc>
  75853. </constructor>
  75854. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  75855. abstract="false" native="false" synchronized="false"
  75856. static="false" final="false" visibility="public"
  75857. deprecated="not deprecated">
  75858. <doc>
  75859. <![CDATA[Get the Job Id]]>
  75860. </doc>
  75861. </method>
  75862. <method name="getStatus" return="java.lang.String"
  75863. abstract="false" native="false" synchronized="false"
  75864. static="false" final="false" visibility="public"
  75865. deprecated="not deprecated">
  75866. <doc>
  75867. <![CDATA[Get the event status]]>
  75868. </doc>
  75869. </method>
  75870. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  75871. abstract="false" native="false" synchronized="false"
  75872. static="false" final="false" visibility="public"
  75873. deprecated="not deprecated">
  75874. <doc>
  75875. <![CDATA[Get the event type]]>
  75876. </doc>
  75877. </method>
  75878. <doc>
  75879. <![CDATA[Event to record the change of status for a job]]>
  75880. </doc>
  75881. </class>
  75882. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  75883. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  75884. <interface name="JobStory" abstract="true"
  75885. static="false" final="false" visibility="public"
  75886. deprecated="not deprecated">
  75887. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  75888. abstract="false" native="false" synchronized="false"
  75889. static="false" final="false" visibility="public"
  75890. deprecated="not deprecated">
  75891. <doc>
  75892. <![CDATA[Get the {@link JobConf} for the job.
  75893. @return the <code>JobConf</code> for the job]]>
  75894. </doc>
  75895. </method>
  75896. <method name="getName" return="java.lang.String"
  75897. abstract="false" native="false" synchronized="false"
  75898. static="false" final="false" visibility="public"
  75899. deprecated="not deprecated">
  75900. <doc>
  75901. <![CDATA[Get the job name.
  75902. @return the job name]]>
  75903. </doc>
  75904. </method>
  75905. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75906. abstract="false" native="false" synchronized="false"
  75907. static="false" final="false" visibility="public"
  75908. deprecated="not deprecated">
  75909. <doc>
  75910. <![CDATA[Get the job ID
  75911. @return the job ID]]>
  75912. </doc>
  75913. </method>
  75914. <method name="getUser" return="java.lang.String"
  75915. abstract="false" native="false" synchronized="false"
  75916. static="false" final="false" visibility="public"
  75917. deprecated="not deprecated">
  75918. <doc>
  75919. <![CDATA[Get the user who ran the job.
  75920. @return the user who ran the job]]>
  75921. </doc>
  75922. </method>
  75923. <method name="getSubmissionTime" return="long"
  75924. abstract="false" native="false" synchronized="false"
  75925. static="false" final="false" visibility="public"
  75926. deprecated="not deprecated">
  75927. <doc>
  75928. <![CDATA[Get the job submission time.
  75929. @return the job submission time]]>
  75930. </doc>
  75931. </method>
  75932. <method name="getNumberMaps" return="int"
  75933. abstract="false" native="false" synchronized="false"
  75934. static="false" final="false" visibility="public"
  75935. deprecated="not deprecated">
  75936. <doc>
  75937. <![CDATA[Get the number of maps in the {@link JobStory}.
  75938. @return the number of maps in the <code>Job</code>]]>
  75939. </doc>
  75940. </method>
  75941. <method name="getNumberReduces" return="int"
  75942. abstract="false" native="false" synchronized="false"
  75943. static="false" final="false" visibility="public"
  75944. deprecated="not deprecated">
  75945. <doc>
  75946. <![CDATA[Get the number of reduce in the {@link JobStory}.
  75947. @return the number of reduces in the <code>Job</code>]]>
  75948. </doc>
  75949. </method>
  75950. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  75951. abstract="false" native="false" synchronized="false"
  75952. static="false" final="false" visibility="public"
  75953. deprecated="not deprecated">
  75954. <doc>
  75955. <![CDATA[Get the input splits for the job.
  75956. @return the input splits for the job]]>
  75957. </doc>
  75958. </method>
  75959. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  75960. abstract="false" native="false" synchronized="false"
  75961. static="false" final="false" visibility="public"
  75962. deprecated="not deprecated">
  75963. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75964. <param name="taskNumber" type="int"/>
  75965. <doc>
  75966. <![CDATA[Get {@link TaskInfo} for a given task.
  75967. @param taskType {@link TaskType} of the task
  75968. @param taskNumber Partition number of the task
  75969. @return the <code>TaskInfo</code> for the given task]]>
  75970. </doc>
  75971. </method>
  75972. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  75973. abstract="false" native="false" synchronized="false"
  75974. static="false" final="false" visibility="public"
  75975. deprecated="not deprecated">
  75976. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75977. <param name="taskNumber" type="int"/>
  75978. <param name="taskAttemptNumber" type="int"/>
  75979. <doc>
  75980. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  75981. impact of locality (e.g. not needed to make scheduling decisions).
  75982. @param taskType {@link TaskType} of the task-attempt
  75983. @param taskNumber Partition number of the task-attempt
  75984. @param taskAttemptNumber Attempt number of the task
  75985. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  75986. </doc>
  75987. </method>
  75988. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  75989. abstract="false" native="false" synchronized="false"
  75990. static="false" final="false" visibility="public"
  75991. deprecated="not deprecated">
  75992. <param name="taskNumber" type="int"/>
  75993. <param name="taskAttemptNumber" type="int"/>
  75994. <param name="locality" type="int"/>
  75995. <doc>
  75996. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  75997. of locality.
  75998. @param taskNumber Partition number of the task-attempt
  75999. @param taskAttemptNumber Attempt number of the task
  76000. @param locality Data locality of the task as scheduled in simulation
  76001. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  76002. </doc>
  76003. </method>
  76004. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  76005. abstract="false" native="false" synchronized="false"
  76006. static="false" final="false" visibility="public"
  76007. deprecated="not deprecated">
  76008. <doc>
  76009. <![CDATA[Get the outcome of the job execution.
  76010. @return The outcome of the job execution.]]>
  76011. </doc>
  76012. </method>
  76013. <method name="getQueueName" return="java.lang.String"
  76014. abstract="false" native="false" synchronized="false"
  76015. static="false" final="false" visibility="public"
  76016. deprecated="not deprecated">
  76017. <doc>
  76018. <![CDATA[Get the queue where the job is submitted.
  76019. @return the queue where the job is submitted.]]>
  76020. </doc>
  76021. </method>
  76022. <doc>
  76023. <![CDATA[{@link JobStory} represents the runtime information available for a
  76024. completed Map-Reduce job.]]>
  76025. </doc>
  76026. </interface>
  76027. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  76028. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  76029. <interface name="JobStoryProducer" abstract="true"
  76030. static="false" final="false" visibility="public"
  76031. deprecated="not deprecated">
  76032. <implements name="java.io.Closeable"/>
  76033. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  76034. abstract="false" native="false" synchronized="false"
  76035. static="false" final="false" visibility="public"
  76036. deprecated="not deprecated">
  76037. <exception name="IOException" type="java.io.IOException"/>
  76038. <doc>
  76039. <![CDATA[Get the next job.
  76040. @return The next job. Or null if no more job is available.
  76041. @throws IOException]]>
  76042. </doc>
  76043. </method>
  76044. <doc>
  76045. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  76046. </doc>
  76047. </interface>
  76048. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  76049. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  76050. <class name="JobSubmittedEvent" extends="java.lang.Object"
  76051. abstract="false"
  76052. static="false" final="false" visibility="public"
  76053. deprecated="not deprecated">
  76054. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76055. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  76056. static="false" final="false" visibility="public"
  76057. deprecated="Use
  76058. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  76059. instead.">
  76060. <doc>
  76061. <![CDATA[@deprecated Use
  76062. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  76063. instead.]]>
  76064. </doc>
  76065. </constructor>
  76066. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  76067. static="false" final="false" visibility="public"
  76068. deprecated="not deprecated">
  76069. <doc>
  76070. <![CDATA[Create an event to record job submission
  76071. @param id The job Id of the job
  76072. @param jobName Name of the job
  76073. @param userName Name of the user who submitted the job
  76074. @param submitTime Time of submission
  76075. @param jobConfPath Path of the Job Configuration file
  76076. @param jobACLs The configured acls for the job.]]>
  76077. </doc>
  76078. </constructor>
  76079. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76080. abstract="false" native="false" synchronized="false"
  76081. static="false" final="false" visibility="public"
  76082. deprecated="not deprecated">
  76083. <doc>
  76084. <![CDATA[Get the Job Id]]>
  76085. </doc>
  76086. </method>
  76087. <method name="getJobName" return="java.lang.String"
  76088. abstract="false" native="false" synchronized="false"
  76089. static="false" final="false" visibility="public"
  76090. deprecated="not deprecated">
  76091. <doc>
  76092. <![CDATA[Get the Job name]]>
  76093. </doc>
  76094. </method>
  76095. <method name="getUserName" return="java.lang.String"
  76096. abstract="false" native="false" synchronized="false"
  76097. static="false" final="false" visibility="public"
  76098. deprecated="not deprecated">
  76099. <doc>
  76100. <![CDATA[Get the user name]]>
  76101. </doc>
  76102. </method>
  76103. <method name="getSubmitTime" return="long"
  76104. abstract="false" native="false" synchronized="false"
  76105. static="false" final="false" visibility="public"
  76106. deprecated="not deprecated">
  76107. <doc>
  76108. <![CDATA[Get the submit time]]>
  76109. </doc>
  76110. </method>
  76111. <method name="getJobConfPath" return="java.lang.String"
  76112. abstract="false" native="false" synchronized="false"
  76113. static="false" final="false" visibility="public"
  76114. deprecated="not deprecated">
  76115. <doc>
  76116. <![CDATA[Get the Path for the Job Configuration file]]>
  76117. </doc>
  76118. </method>
  76119. <method name="getJobAcls" return="java.util.Map"
  76120. abstract="false" native="false" synchronized="false"
  76121. static="false" final="false" visibility="public"
  76122. deprecated="not deprecated">
  76123. <doc>
  76124. <![CDATA[Get the acls configured for the job]]>
  76125. </doc>
  76126. </method>
  76127. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76128. abstract="false" native="false" synchronized="false"
  76129. static="false" final="false" visibility="public"
  76130. deprecated="not deprecated">
  76131. <doc>
  76132. <![CDATA[Get the event type]]>
  76133. </doc>
  76134. </method>
  76135. <doc>
  76136. <![CDATA[Event to record the submission of a job]]>
  76137. </doc>
  76138. </class>
  76139. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  76140. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  76141. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  76142. abstract="false"
  76143. static="false" final="false" visibility="public"
  76144. deprecated="not deprecated">
  76145. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  76146. static="false" final="false" visibility="public"
  76147. deprecated="not deprecated">
  76148. <exception name="IOException" type="java.io.IOException"/>
  76149. <doc>
  76150. <![CDATA[Constructor.
  76151. @param path
  76152. Path to the JSON trace file, possibly compressed.
  76153. @param conf
  76154. @throws IOException]]>
  76155. </doc>
  76156. </constructor>
  76157. <constructor name="JobTraceReader" type="java.io.InputStream"
  76158. static="false" final="false" visibility="public"
  76159. deprecated="not deprecated">
  76160. <exception name="IOException" type="java.io.IOException"/>
  76161. <doc>
  76162. <![CDATA[Constructor.
  76163. @param input
  76164. The input stream for the JSON trace.]]>
  76165. </doc>
  76166. </constructor>
  76167. <doc>
  76168. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  76169. </doc>
  76170. </class>
  76171. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  76172. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  76173. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  76174. abstract="false"
  76175. static="false" final="false" visibility="public"
  76176. deprecated="not deprecated">
  76177. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76178. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  76179. static="false" final="false" visibility="public"
  76180. deprecated="not deprecated">
  76181. <doc>
  76182. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  76183. @param id Job ID
  76184. @param finishTime Finish time of the job
  76185. @param finishedMaps Number of finished maps
  76186. @param finishedReduces Number of finished reduces
  76187. @param status Status of the job]]>
  76188. </doc>
  76189. </constructor>
  76190. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76191. abstract="false" native="false" synchronized="false"
  76192. static="false" final="false" visibility="public"
  76193. deprecated="not deprecated">
  76194. <doc>
  76195. <![CDATA[Get the Job ID]]>
  76196. </doc>
  76197. </method>
  76198. <method name="getFinishTime" return="long"
  76199. abstract="false" native="false" synchronized="false"
  76200. static="false" final="false" visibility="public"
  76201. deprecated="not deprecated">
  76202. <doc>
  76203. <![CDATA[Get the job finish time]]>
  76204. </doc>
  76205. </method>
  76206. <method name="getFinishedMaps" return="int"
  76207. abstract="false" native="false" synchronized="false"
  76208. static="false" final="false" visibility="public"
  76209. deprecated="not deprecated">
  76210. <doc>
  76211. <![CDATA[Get the number of finished maps]]>
  76212. </doc>
  76213. </method>
  76214. <method name="getFinishedReduces" return="int"
  76215. abstract="false" native="false" synchronized="false"
  76216. static="false" final="false" visibility="public"
  76217. deprecated="not deprecated">
  76218. <doc>
  76219. <![CDATA[Get the number of finished reduces]]>
  76220. </doc>
  76221. </method>
  76222. <method name="getStatus" return="java.lang.String"
  76223. abstract="false" native="false" synchronized="false"
  76224. static="false" final="false" visibility="public"
  76225. deprecated="not deprecated">
  76226. <doc>
  76227. <![CDATA[Get the status]]>
  76228. </doc>
  76229. </method>
  76230. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76231. abstract="false" native="false" synchronized="false"
  76232. static="false" final="false" visibility="public"
  76233. deprecated="not deprecated">
  76234. <doc>
  76235. <![CDATA[Get the event type]]>
  76236. </doc>
  76237. </method>
  76238. <doc>
  76239. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  76240. </doc>
  76241. </class>
  76242. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  76243. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  76244. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  76245. abstract="false"
  76246. static="false" final="false" visibility="public"
  76247. deprecated="not deprecated">
  76248. <implements name="java.io.Closeable"/>
  76249. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  76250. static="false" final="false" visibility="public"
  76251. deprecated="not deprecated">
  76252. <exception name="IOException" type="java.io.IOException"/>
  76253. </constructor>
  76254. <method name="write"
  76255. abstract="false" native="false" synchronized="false"
  76256. static="false" final="false" visibility="public"
  76257. deprecated="not deprecated">
  76258. <param name="object" type="java.lang.Object"/>
  76259. <exception name="IOException" type="java.io.IOException"/>
  76260. </method>
  76261. <method name="close"
  76262. abstract="false" native="false" synchronized="false"
  76263. static="false" final="false" visibility="public"
  76264. deprecated="not deprecated">
  76265. <exception name="IOException" type="java.io.IOException"/>
  76266. </method>
  76267. <doc>
  76268. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  76269. @param <T> The type of the objects to be written.]]>
  76270. </doc>
  76271. </class>
  76272. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  76273. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  76274. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  76275. abstract="false"
  76276. static="false" final="false" visibility="public"
  76277. deprecated="not deprecated">
  76278. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76279. <constructor name="LoggedDiscreteCDF"
  76280. static="false" final="false" visibility="public"
  76281. deprecated="not deprecated">
  76282. </constructor>
  76283. <method name="getMinimum" return="long"
  76284. abstract="false" native="false" synchronized="false"
  76285. static="false" final="false" visibility="public"
  76286. deprecated="not deprecated">
  76287. </method>
  76288. <method name="getRankings" return="java.util.List"
  76289. abstract="false" native="false" synchronized="false"
  76290. static="false" final="false" visibility="public"
  76291. deprecated="not deprecated">
  76292. </method>
  76293. <method name="getMaximum" return="long"
  76294. abstract="false" native="false" synchronized="false"
  76295. static="false" final="false" visibility="public"
  76296. deprecated="not deprecated">
  76297. </method>
  76298. <method name="getNumberValues" return="long"
  76299. abstract="false" native="false" synchronized="false"
  76300. static="false" final="false" visibility="public"
  76301. deprecated="not deprecated">
  76302. </method>
  76303. <method name="deepCompare"
  76304. abstract="false" native="false" synchronized="false"
  76305. static="false" final="false" visibility="public"
  76306. deprecated="not deprecated">
  76307. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76308. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76309. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76310. </method>
  76311. <doc>
  76312. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  76313. distribution function, with this class set up to meet the requirements of the
  76314. Jackson JSON parser/generator.
  76315. All of the public methods are simply accessors for the instance variables we
  76316. want to write out in the JSON files.]]>
  76317. </doc>
  76318. </class>
  76319. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  76320. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  76321. <class name="LoggedJob" extends="java.lang.Object"
  76322. abstract="false"
  76323. static="false" final="false" visibility="public"
  76324. deprecated="not deprecated">
  76325. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76326. <method name="setUnknownAttribute"
  76327. abstract="false" native="false" synchronized="false"
  76328. static="false" final="false" visibility="public"
  76329. deprecated="not deprecated">
  76330. <param name="attributeName" type="java.lang.String"/>
  76331. <param name="ignored" type="java.lang.Object"/>
  76332. </method>
  76333. <method name="getUser" return="java.lang.String"
  76334. abstract="false" native="false" synchronized="false"
  76335. static="false" final="false" visibility="public"
  76336. deprecated="not deprecated">
  76337. </method>
  76338. <method name="getJobID" return="java.lang.String"
  76339. abstract="false" native="false" synchronized="false"
  76340. static="false" final="false" visibility="public"
  76341. deprecated="not deprecated">
  76342. </method>
  76343. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76344. abstract="false" native="false" synchronized="false"
  76345. static="false" final="false" visibility="public"
  76346. deprecated="not deprecated">
  76347. </method>
  76348. <method name="getComputonsPerMapInputByte" return="long"
  76349. abstract="false" native="false" synchronized="false"
  76350. static="false" final="false" visibility="public"
  76351. deprecated="not deprecated">
  76352. </method>
  76353. <method name="getComputonsPerMapOutputByte" return="long"
  76354. abstract="false" native="false" synchronized="false"
  76355. static="false" final="false" visibility="public"
  76356. deprecated="not deprecated">
  76357. </method>
  76358. <method name="getComputonsPerReduceInputByte" return="long"
  76359. abstract="false" native="false" synchronized="false"
  76360. static="false" final="false" visibility="public"
  76361. deprecated="not deprecated">
  76362. </method>
  76363. <method name="getComputonsPerReduceOutputByte" return="long"
  76364. abstract="false" native="false" synchronized="false"
  76365. static="false" final="false" visibility="public"
  76366. deprecated="not deprecated">
  76367. </method>
  76368. <method name="getSubmitTime" return="long"
  76369. abstract="false" native="false" synchronized="false"
  76370. static="false" final="false" visibility="public"
  76371. deprecated="not deprecated">
  76372. </method>
  76373. <method name="getLaunchTime" return="long"
  76374. abstract="false" native="false" synchronized="false"
  76375. static="false" final="false" visibility="public"
  76376. deprecated="not deprecated">
  76377. </method>
  76378. <method name="getFinishTime" return="long"
  76379. abstract="false" native="false" synchronized="false"
  76380. static="false" final="false" visibility="public"
  76381. deprecated="not deprecated">
  76382. </method>
  76383. <method name="getHeapMegabytes" return="int"
  76384. abstract="false" native="false" synchronized="false"
  76385. static="false" final="false" visibility="public"
  76386. deprecated="not deprecated">
  76387. </method>
  76388. <method name="getTotalMaps" return="int"
  76389. abstract="false" native="false" synchronized="false"
  76390. static="false" final="false" visibility="public"
  76391. deprecated="not deprecated">
  76392. </method>
  76393. <method name="getTotalReduces" return="int"
  76394. abstract="false" native="false" synchronized="false"
  76395. static="false" final="false" visibility="public"
  76396. deprecated="not deprecated">
  76397. </method>
  76398. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  76399. abstract="false" native="false" synchronized="false"
  76400. static="false" final="false" visibility="public"
  76401. deprecated="not deprecated">
  76402. </method>
  76403. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  76404. abstract="false" native="false" synchronized="false"
  76405. static="false" final="false" visibility="public"
  76406. deprecated="not deprecated">
  76407. </method>
  76408. <method name="getDirectDependantJobs" return="java.util.List"
  76409. abstract="false" native="false" synchronized="false"
  76410. static="false" final="false" visibility="public"
  76411. deprecated="not deprecated">
  76412. </method>
  76413. <method name="getMapTasks" return="java.util.List"
  76414. abstract="false" native="false" synchronized="false"
  76415. static="false" final="false" visibility="public"
  76416. deprecated="not deprecated">
  76417. </method>
  76418. <method name="getReduceTasks" return="java.util.List"
  76419. abstract="false" native="false" synchronized="false"
  76420. static="false" final="false" visibility="public"
  76421. deprecated="not deprecated">
  76422. </method>
  76423. <method name="getOtherTasks" return="java.util.List"
  76424. abstract="false" native="false" synchronized="false"
  76425. static="false" final="false" visibility="public"
  76426. deprecated="not deprecated">
  76427. </method>
  76428. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  76429. abstract="false" native="false" synchronized="false"
  76430. static="false" final="false" visibility="public"
  76431. deprecated="not deprecated">
  76432. </method>
  76433. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  76434. abstract="false" native="false" synchronized="false"
  76435. static="false" final="false" visibility="public"
  76436. deprecated="not deprecated">
  76437. </method>
  76438. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  76439. abstract="false" native="false" synchronized="false"
  76440. static="false" final="false" visibility="public"
  76441. deprecated="not deprecated">
  76442. </method>
  76443. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  76444. abstract="false" native="false" synchronized="false"
  76445. static="false" final="false" visibility="public"
  76446. deprecated="not deprecated">
  76447. </method>
  76448. <method name="getMapperTriesToSucceed" return="double[]"
  76449. abstract="false" native="false" synchronized="false"
  76450. static="false" final="false" visibility="public"
  76451. deprecated="not deprecated">
  76452. </method>
  76453. <method name="getFailedMapperFraction" return="double"
  76454. abstract="false" native="false" synchronized="false"
  76455. static="false" final="false" visibility="public"
  76456. deprecated="not deprecated">
  76457. </method>
  76458. <method name="getRelativeTime" return="long"
  76459. abstract="false" native="false" synchronized="false"
  76460. static="false" final="false" visibility="public"
  76461. deprecated="not deprecated">
  76462. </method>
  76463. <method name="getQueue" return="java.lang.String"
  76464. abstract="false" native="false" synchronized="false"
  76465. static="false" final="false" visibility="public"
  76466. deprecated="not deprecated">
  76467. </method>
  76468. <method name="getJobName" return="java.lang.String"
  76469. abstract="false" native="false" synchronized="false"
  76470. static="false" final="false" visibility="public"
  76471. deprecated="not deprecated">
  76472. </method>
  76473. <method name="getClusterMapMB" return="int"
  76474. abstract="false" native="false" synchronized="false"
  76475. static="false" final="false" visibility="public"
  76476. deprecated="not deprecated">
  76477. </method>
  76478. <method name="getClusterReduceMB" return="int"
  76479. abstract="false" native="false" synchronized="false"
  76480. static="false" final="false" visibility="public"
  76481. deprecated="not deprecated">
  76482. </method>
  76483. <method name="getJobMapMB" return="int"
  76484. abstract="false" native="false" synchronized="false"
  76485. static="false" final="false" visibility="public"
  76486. deprecated="not deprecated">
  76487. </method>
  76488. <method name="getJobReduceMB" return="int"
  76489. abstract="false" native="false" synchronized="false"
  76490. static="false" final="false" visibility="public"
  76491. deprecated="not deprecated">
  76492. </method>
  76493. <method name="deepCompare"
  76494. abstract="false" native="false" synchronized="false"
  76495. static="false" final="false" visibility="public"
  76496. deprecated="not deprecated">
  76497. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76498. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76499. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76500. </method>
  76501. <doc>
  76502. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  76503. details of this class set up to meet the requirements of the Jackson JSON
  76504. parser/generator.
  76505. All of the public methods are simply accessors for the instance variables we
  76506. want to write out in the JSON files.]]>
  76507. </doc>
  76508. </class>
  76509. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  76510. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  76511. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  76512. abstract="false"
  76513. static="true" final="true" visibility="public"
  76514. deprecated="not deprecated">
  76515. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  76516. abstract="false" native="false" synchronized="false"
  76517. static="true" final="false" visibility="public"
  76518. deprecated="not deprecated">
  76519. </method>
  76520. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76521. abstract="false" native="false" synchronized="false"
  76522. static="true" final="false" visibility="public"
  76523. deprecated="not deprecated">
  76524. <param name="name" type="java.lang.String"/>
  76525. </method>
  76526. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76527. transient="false" volatile="false"
  76528. static="true" final="true" visibility="public"
  76529. deprecated="not deprecated">
  76530. </field>
  76531. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76532. transient="false" volatile="false"
  76533. static="true" final="true" visibility="public"
  76534. deprecated="not deprecated">
  76535. </field>
  76536. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76537. transient="false" volatile="false"
  76538. static="true" final="true" visibility="public"
  76539. deprecated="not deprecated">
  76540. </field>
  76541. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76542. transient="false" volatile="false"
  76543. static="true" final="true" visibility="public"
  76544. deprecated="not deprecated">
  76545. </field>
  76546. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76547. transient="false" volatile="false"
  76548. static="true" final="true" visibility="public"
  76549. deprecated="not deprecated">
  76550. </field>
  76551. </class>
  76552. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  76553. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  76554. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  76555. abstract="false"
  76556. static="true" final="true" visibility="public"
  76557. deprecated="not deprecated">
  76558. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  76559. abstract="false" native="false" synchronized="false"
  76560. static="true" final="false" visibility="public"
  76561. deprecated="not deprecated">
  76562. </method>
  76563. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  76564. abstract="false" native="false" synchronized="false"
  76565. static="true" final="false" visibility="public"
  76566. deprecated="not deprecated">
  76567. <param name="name" type="java.lang.String"/>
  76568. </method>
  76569. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  76570. transient="false" volatile="false"
  76571. static="true" final="true" visibility="public"
  76572. deprecated="not deprecated">
  76573. </field>
  76574. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  76575. transient="false" volatile="false"
  76576. static="true" final="true" visibility="public"
  76577. deprecated="not deprecated">
  76578. </field>
  76579. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  76580. transient="false" volatile="false"
  76581. static="true" final="true" visibility="public"
  76582. deprecated="not deprecated">
  76583. </field>
  76584. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  76585. transient="false" volatile="false"
  76586. static="true" final="true" visibility="public"
  76587. deprecated="not deprecated">
  76588. </field>
  76589. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  76590. transient="false" volatile="false"
  76591. static="true" final="true" visibility="public"
  76592. deprecated="not deprecated">
  76593. </field>
  76594. </class>
  76595. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  76596. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  76597. <class name="LoggedLocation" extends="java.lang.Object"
  76598. abstract="false"
  76599. static="false" final="false" visibility="public"
  76600. deprecated="not deprecated">
  76601. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76602. <constructor name="LoggedLocation"
  76603. static="false" final="false" visibility="public"
  76604. deprecated="not deprecated">
  76605. </constructor>
  76606. <method name="getLayers" return="java.util.List"
  76607. abstract="false" native="false" synchronized="false"
  76608. static="false" final="false" visibility="public"
  76609. deprecated="not deprecated">
  76610. </method>
  76611. <method name="setUnknownAttribute"
  76612. abstract="false" native="false" synchronized="false"
  76613. static="false" final="false" visibility="public"
  76614. deprecated="not deprecated">
  76615. <param name="attributeName" type="java.lang.String"/>
  76616. <param name="ignored" type="java.lang.Object"/>
  76617. </method>
  76618. <method name="deepCompare"
  76619. abstract="false" native="false" synchronized="false"
  76620. static="false" final="false" visibility="public"
  76621. deprecated="not deprecated">
  76622. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76623. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76624. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76625. </method>
  76626. <doc>
  76627. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  76628. network, represented as a series of membership names, broadest first.
  76629. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  76630. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  76631. would be represented with a ArrayList of two layers, with two {@link String}
  76632. s being {@code "rack1"} and {@code "node1"}.
  76633. The details of this class are set up to meet the requirements of the Jackson
  76634. JSON parser/generator.
  76635. All of the public methods are simply accessors for the instance variables we
  76636. want to write out in the JSON files.]]>
  76637. </doc>
  76638. </class>
  76639. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  76640. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  76641. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  76642. abstract="false"
  76643. static="false" final="false" visibility="public"
  76644. deprecated="not deprecated">
  76645. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76646. <constructor name="LoggedNetworkTopology"
  76647. static="false" final="false" visibility="public"
  76648. deprecated="not deprecated">
  76649. </constructor>
  76650. <method name="setUnknownAttribute"
  76651. abstract="false" native="false" synchronized="false"
  76652. static="false" final="false" visibility="public"
  76653. deprecated="not deprecated">
  76654. <param name="attributeName" type="java.lang.String"/>
  76655. <param name="ignored" type="java.lang.Object"/>
  76656. </method>
  76657. <method name="getName" return="java.lang.String"
  76658. abstract="false" native="false" synchronized="false"
  76659. static="false" final="false" visibility="public"
  76660. deprecated="not deprecated">
  76661. </method>
  76662. <method name="getChildren" return="java.util.List"
  76663. abstract="false" native="false" synchronized="false"
  76664. static="false" final="false" visibility="public"
  76665. deprecated="not deprecated">
  76666. </method>
  76667. <method name="deepCompare"
  76668. abstract="false" native="false" synchronized="false"
  76669. static="false" final="false" visibility="public"
  76670. deprecated="not deprecated">
  76671. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76672. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76673. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76674. </method>
  76675. <doc>
  76676. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  76677. hierarchy of hosts. The current version requires the tree to have all leaves
  76678. at the same level.
  76679. All of the public methods are simply accessors for the instance variables we
  76680. want to write out in the JSON files.]]>
  76681. </doc>
  76682. </class>
  76683. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  76684. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  76685. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  76686. abstract="false"
  76687. static="false" final="false" visibility="public"
  76688. deprecated="not deprecated">
  76689. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76690. <constructor name="LoggedSingleRelativeRanking"
  76691. static="false" final="false" visibility="public"
  76692. deprecated="not deprecated">
  76693. </constructor>
  76694. <method name="setUnknownAttribute"
  76695. abstract="false" native="false" synchronized="false"
  76696. static="false" final="false" visibility="public"
  76697. deprecated="not deprecated">
  76698. <param name="attributeName" type="java.lang.String"/>
  76699. <param name="ignored" type="java.lang.Object"/>
  76700. </method>
  76701. <method name="getRelativeRanking" return="double"
  76702. abstract="false" native="false" synchronized="false"
  76703. static="false" final="false" visibility="public"
  76704. deprecated="not deprecated">
  76705. </method>
  76706. <method name="getDatum" return="long"
  76707. abstract="false" native="false" synchronized="false"
  76708. static="false" final="false" visibility="public"
  76709. deprecated="not deprecated">
  76710. </method>
  76711. <method name="deepCompare"
  76712. abstract="false" native="false" synchronized="false"
  76713. static="false" final="false" visibility="public"
  76714. deprecated="not deprecated">
  76715. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76716. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76717. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76718. </method>
  76719. <doc>
  76720. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  76721. single point in a discrete CDF.
  76722. All of the public methods are simply accessors for the instance variables we
  76723. want to write out in the JSON files.]]>
  76724. </doc>
  76725. </class>
  76726. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  76727. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  76728. <class name="LoggedTask" extends="java.lang.Object"
  76729. abstract="false"
  76730. static="false" final="false" visibility="public"
  76731. deprecated="not deprecated">
  76732. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76733. <method name="setUnknownAttribute"
  76734. abstract="false" native="false" synchronized="false"
  76735. static="false" final="false" visibility="public"
  76736. deprecated="not deprecated">
  76737. <param name="attributeName" type="java.lang.String"/>
  76738. <param name="ignored" type="java.lang.Object"/>
  76739. </method>
  76740. <method name="getInputBytes" return="long"
  76741. abstract="false" native="false" synchronized="false"
  76742. static="false" final="false" visibility="public"
  76743. deprecated="not deprecated">
  76744. </method>
  76745. <method name="getInputRecords" return="long"
  76746. abstract="false" native="false" synchronized="false"
  76747. static="false" final="false" visibility="public"
  76748. deprecated="not deprecated">
  76749. </method>
  76750. <method name="getOutputBytes" return="long"
  76751. abstract="false" native="false" synchronized="false"
  76752. static="false" final="false" visibility="public"
  76753. deprecated="not deprecated">
  76754. </method>
  76755. <method name="getOutputRecords" return="long"
  76756. abstract="false" native="false" synchronized="false"
  76757. static="false" final="false" visibility="public"
  76758. deprecated="not deprecated">
  76759. </method>
  76760. <method name="getTaskID" return="java.lang.String"
  76761. abstract="false" native="false" synchronized="false"
  76762. static="false" final="false" visibility="public"
  76763. deprecated="not deprecated">
  76764. </method>
  76765. <method name="getStartTime" return="long"
  76766. abstract="false" native="false" synchronized="false"
  76767. static="false" final="false" visibility="public"
  76768. deprecated="not deprecated">
  76769. </method>
  76770. <method name="getFinishTime" return="long"
  76771. abstract="false" native="false" synchronized="false"
  76772. static="false" final="false" visibility="public"
  76773. deprecated="not deprecated">
  76774. </method>
  76775. <method name="getAttempts" return="java.util.List"
  76776. abstract="false" native="false" synchronized="false"
  76777. static="false" final="false" visibility="public"
  76778. deprecated="not deprecated">
  76779. </method>
  76780. <method name="getPreferredLocations" return="java.util.List"
  76781. abstract="false" native="false" synchronized="false"
  76782. static="false" final="false" visibility="public"
  76783. deprecated="not deprecated">
  76784. </method>
  76785. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  76786. abstract="false" native="false" synchronized="false"
  76787. static="false" final="false" visibility="public"
  76788. deprecated="not deprecated">
  76789. </method>
  76790. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  76791. abstract="false" native="false" synchronized="false"
  76792. static="false" final="false" visibility="public"
  76793. deprecated="not deprecated">
  76794. </method>
  76795. <method name="incorporateCounters"
  76796. abstract="false" native="false" synchronized="false"
  76797. static="false" final="false" visibility="public"
  76798. deprecated="not deprecated">
  76799. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  76800. </method>
  76801. <method name="deepCompare"
  76802. abstract="false" native="false" synchronized="false"
  76803. static="false" final="false" visibility="public"
  76804. deprecated="not deprecated">
  76805. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76806. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76807. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76808. </method>
  76809. <doc>
  76810. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  76811. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  76812. and its runtime.
  76813. All of the public methods are simply accessors for the instance variables we
  76814. want to write out in the JSON files.]]>
  76815. </doc>
  76816. </class>
  76817. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  76818. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  76819. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  76820. abstract="false"
  76821. static="false" final="false" visibility="public"
  76822. deprecated="not deprecated">
  76823. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76824. <method name="setUnknownAttribute"
  76825. abstract="false" native="false" synchronized="false"
  76826. static="false" final="false" visibility="public"
  76827. deprecated="not deprecated">
  76828. <param name="attributeName" type="java.lang.String"/>
  76829. <param name="ignored" type="java.lang.Object"/>
  76830. </method>
  76831. <method name="getShuffleFinished" return="long"
  76832. abstract="false" native="false" synchronized="false"
  76833. static="false" final="false" visibility="public"
  76834. deprecated="not deprecated">
  76835. </method>
  76836. <method name="getSortFinished" return="long"
  76837. abstract="false" native="false" synchronized="false"
  76838. static="false" final="false" visibility="public"
  76839. deprecated="not deprecated">
  76840. </method>
  76841. <method name="getAttemptID" return="java.lang.String"
  76842. abstract="false" native="false" synchronized="false"
  76843. static="false" final="false" visibility="public"
  76844. deprecated="not deprecated">
  76845. </method>
  76846. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  76847. abstract="false" native="false" synchronized="false"
  76848. static="false" final="false" visibility="public"
  76849. deprecated="not deprecated">
  76850. </method>
  76851. <method name="getStartTime" return="long"
  76852. abstract="false" native="false" synchronized="false"
  76853. static="false" final="false" visibility="public"
  76854. deprecated="not deprecated">
  76855. </method>
  76856. <method name="getFinishTime" return="long"
  76857. abstract="false" native="false" synchronized="false"
  76858. static="false" final="false" visibility="public"
  76859. deprecated="not deprecated">
  76860. </method>
  76861. <method name="getHostName" return="java.lang.String"
  76862. abstract="false" native="false" synchronized="false"
  76863. static="false" final="false" visibility="public"
  76864. deprecated="not deprecated">
  76865. </method>
  76866. <method name="getHdfsBytesRead" return="long"
  76867. abstract="false" native="false" synchronized="false"
  76868. static="false" final="false" visibility="public"
  76869. deprecated="not deprecated">
  76870. </method>
  76871. <method name="getHdfsBytesWritten" return="long"
  76872. abstract="false" native="false" synchronized="false"
  76873. static="false" final="false" visibility="public"
  76874. deprecated="not deprecated">
  76875. </method>
  76876. <method name="getFileBytesRead" return="long"
  76877. abstract="false" native="false" synchronized="false"
  76878. static="false" final="false" visibility="public"
  76879. deprecated="not deprecated">
  76880. </method>
  76881. <method name="getFileBytesWritten" return="long"
  76882. abstract="false" native="false" synchronized="false"
  76883. static="false" final="false" visibility="public"
  76884. deprecated="not deprecated">
  76885. </method>
  76886. <method name="getMapInputRecords" return="long"
  76887. abstract="false" native="false" synchronized="false"
  76888. static="false" final="false" visibility="public"
  76889. deprecated="not deprecated">
  76890. </method>
  76891. <method name="getMapOutputBytes" return="long"
  76892. abstract="false" native="false" synchronized="false"
  76893. static="false" final="false" visibility="public"
  76894. deprecated="not deprecated">
  76895. </method>
  76896. <method name="getMapOutputRecords" return="long"
  76897. abstract="false" native="false" synchronized="false"
  76898. static="false" final="false" visibility="public"
  76899. deprecated="not deprecated">
  76900. </method>
  76901. <method name="getCombineInputRecords" return="long"
  76902. abstract="false" native="false" synchronized="false"
  76903. static="false" final="false" visibility="public"
  76904. deprecated="not deprecated">
  76905. </method>
  76906. <method name="getReduceInputGroups" return="long"
  76907. abstract="false" native="false" synchronized="false"
  76908. static="false" final="false" visibility="public"
  76909. deprecated="not deprecated">
  76910. </method>
  76911. <method name="getReduceInputRecords" return="long"
  76912. abstract="false" native="false" synchronized="false"
  76913. static="false" final="false" visibility="public"
  76914. deprecated="not deprecated">
  76915. </method>
  76916. <method name="getReduceShuffleBytes" return="long"
  76917. abstract="false" native="false" synchronized="false"
  76918. static="false" final="false" visibility="public"
  76919. deprecated="not deprecated">
  76920. </method>
  76921. <method name="getReduceOutputRecords" return="long"
  76922. abstract="false" native="false" synchronized="false"
  76923. static="false" final="false" visibility="public"
  76924. deprecated="not deprecated">
  76925. </method>
  76926. <method name="getSpilledRecords" return="long"
  76927. abstract="false" native="false" synchronized="false"
  76928. static="false" final="false" visibility="public"
  76929. deprecated="not deprecated">
  76930. </method>
  76931. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  76932. abstract="false" native="false" synchronized="false"
  76933. static="false" final="false" visibility="public"
  76934. deprecated="not deprecated">
  76935. </method>
  76936. <method name="getMapInputBytes" return="long"
  76937. abstract="false" native="false" synchronized="false"
  76938. static="false" final="false" visibility="public"
  76939. deprecated="not deprecated">
  76940. </method>
  76941. <method name="incorporateCounters"
  76942. abstract="false" native="false" synchronized="false"
  76943. static="false" final="false" visibility="public"
  76944. deprecated="not deprecated">
  76945. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  76946. </method>
  76947. <method name="deepCompare"
  76948. abstract="false" native="false" synchronized="false"
  76949. static="false" final="false" visibility="public"
  76950. deprecated="not deprecated">
  76951. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76952. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76953. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76954. </method>
  76955. <doc>
  76956. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  76957. hadoop job. Note that a task can have several attempts.
  76958. All of the public methods are simply accessors for the instance variables we
  76959. want to write out in the JSON files.]]>
  76960. </doc>
  76961. </class>
  76962. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  76963. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  76964. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  76965. abstract="false"
  76966. static="false" final="true" visibility="public"
  76967. deprecated="not deprecated">
  76968. <method name="equals" return="boolean"
  76969. abstract="false" native="false" synchronized="false"
  76970. static="false" final="false" visibility="public"
  76971. deprecated="not deprecated">
  76972. <param name="obj" type="java.lang.Object"/>
  76973. </method>
  76974. <method name="hashCode" return="int"
  76975. abstract="false" native="false" synchronized="false"
  76976. static="false" final="false" visibility="public"
  76977. deprecated="not deprecated">
  76978. </method>
  76979. <method name="getMemory" return="long"
  76980. abstract="false" native="false" synchronized="false"
  76981. static="false" final="false" visibility="public"
  76982. deprecated="not deprecated">
  76983. <doc>
  76984. <![CDATA[Get the available physical RAM of the node.
  76985. @return The available physical RAM of the node, in KB.]]>
  76986. </doc>
  76987. </method>
  76988. <method name="getMapSlots" return="int"
  76989. abstract="false" native="false" synchronized="false"
  76990. static="false" final="false" visibility="public"
  76991. deprecated="not deprecated">
  76992. <doc>
  76993. <![CDATA[Get the number of map slots of the node.
  76994. @return The number of map slots of the node.]]>
  76995. </doc>
  76996. </method>
  76997. <method name="getReduceSlots" return="int"
  76998. abstract="false" native="false" synchronized="false"
  76999. static="false" final="false" visibility="public"
  77000. deprecated="not deprecated">
  77001. <doc>
  77002. <![CDATA[Get the number of reduce slots of the node.
  77003. @return The number of reduce slots fo the node.]]>
  77004. </doc>
  77005. </method>
  77006. <method name="getMemoryPerMapSlot" return="long"
  77007. abstract="false" native="false" synchronized="false"
  77008. static="false" final="false" visibility="public"
  77009. deprecated="not deprecated">
  77010. <doc>
  77011. <![CDATA[Get the amount of RAM reserved for each map slot.
  77012. @return the amount of RAM reserved for each map slot, in KB.]]>
  77013. </doc>
  77014. </method>
  77015. <method name="getMemoryPerReduceSlot" return="long"
  77016. abstract="false" native="false" synchronized="false"
  77017. static="false" final="false" visibility="public"
  77018. deprecated="not deprecated">
  77019. <doc>
  77020. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  77021. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  77022. </doc>
  77023. </method>
  77024. <method name="getNumCores" return="int"
  77025. abstract="false" native="false" synchronized="false"
  77026. static="false" final="false" visibility="public"
  77027. deprecated="not deprecated">
  77028. <doc>
  77029. <![CDATA[Get the number of cores of the node.
  77030. @return the number of cores of the node.]]>
  77031. </doc>
  77032. </method>
  77033. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  77034. abstract="false" native="false" synchronized="false"
  77035. static="false" final="false" visibility="public"
  77036. deprecated="not deprecated">
  77037. <doc>
  77038. <![CDATA[Get the rack node that the machine belongs to.
  77039. @return The rack node that the machine belongs to. Returns null if the
  77040. machine does not belong to any rack.]]>
  77041. </doc>
  77042. </method>
  77043. <method name="addChild" return="boolean"
  77044. abstract="false" native="false" synchronized="true"
  77045. static="false" final="false" visibility="public"
  77046. deprecated="not deprecated">
  77047. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  77048. </method>
  77049. <doc>
  77050. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  77051. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  77052. </doc>
  77053. </class>
  77054. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  77055. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  77056. <class name="MachineNode.Builder" extends="java.lang.Object"
  77057. abstract="false"
  77058. static="true" final="true" visibility="public"
  77059. deprecated="not deprecated">
  77060. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  77061. static="false" final="false" visibility="public"
  77062. deprecated="not deprecated">
  77063. <doc>
  77064. <![CDATA[Start building a new NodeInfo object.
  77065. @param name
  77066. Unique name of the node. Typically the fully qualified domain
  77067. name.]]>
  77068. </doc>
  77069. </constructor>
  77070. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77071. abstract="false" native="false" synchronized="false"
  77072. static="false" final="false" visibility="public"
  77073. deprecated="not deprecated">
  77074. <param name="memory" type="long"/>
  77075. <doc>
  77076. <![CDATA[Set the physical memory of the node.
  77077. @param memory Available RAM in KB.]]>
  77078. </doc>
  77079. </method>
  77080. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77081. abstract="false" native="false" synchronized="false"
  77082. static="false" final="false" visibility="public"
  77083. deprecated="not deprecated">
  77084. <param name="mapSlots" type="int"/>
  77085. <doc>
  77086. <![CDATA[Set the number of map slot for the node.
  77087. @param mapSlots The number of map slots for the node.]]>
  77088. </doc>
  77089. </method>
  77090. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77091. abstract="false" native="false" synchronized="false"
  77092. static="false" final="false" visibility="public"
  77093. deprecated="not deprecated">
  77094. <param name="reduceSlots" type="int"/>
  77095. <doc>
  77096. <![CDATA[Set the number of reduce slot for the node.
  77097. @param reduceSlots The number of reduce slots for the node.]]>
  77098. </doc>
  77099. </method>
  77100. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77101. abstract="false" native="false" synchronized="false"
  77102. static="false" final="false" visibility="public"
  77103. deprecated="not deprecated">
  77104. <param name="memoryPerMapSlot" type="long"/>
  77105. <doc>
  77106. <![CDATA[Set the amount of RAM reserved for each map slot.
  77107. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  77108. </doc>
  77109. </method>
  77110. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77111. abstract="false" native="false" synchronized="false"
  77112. static="false" final="false" visibility="public"
  77113. deprecated="not deprecated">
  77114. <param name="memoryPerReduceSlot" type="long"/>
  77115. <doc>
  77116. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  77117. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  77118. </doc>
  77119. </method>
  77120. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77121. abstract="false" native="false" synchronized="false"
  77122. static="false" final="false" visibility="public"
  77123. deprecated="not deprecated">
  77124. <param name="numCores" type="int"/>
  77125. <doc>
  77126. <![CDATA[Set the number of cores for the node.
  77127. @param numCores Number of cores for the node.]]>
  77128. </doc>
  77129. </method>
  77130. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77131. abstract="false" native="false" synchronized="false"
  77132. static="false" final="false" visibility="public"
  77133. deprecated="not deprecated">
  77134. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  77135. <doc>
  77136. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  77137. @param ref The reference {@link MachineNode} object.]]>
  77138. </doc>
  77139. </method>
  77140. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  77141. abstract="false" native="false" synchronized="false"
  77142. static="false" final="false" visibility="public"
  77143. deprecated="not deprecated">
  77144. <doc>
  77145. <![CDATA[Build the {@link MachineNode} object.
  77146. @return The {@link MachineNode} object being built.]]>
  77147. </doc>
  77148. </method>
  77149. <doc>
  77150. <![CDATA[Builder for a NodeInfo object]]>
  77151. </doc>
  77152. </class>
  77153. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  77154. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  77155. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  77156. abstract="false"
  77157. static="false" final="false" visibility="public"
  77158. deprecated="not deprecated">
  77159. <constructor name="MapAttempt20LineHistoryEventEmitter"
  77160. static="false" final="false" visibility="protected"
  77161. deprecated="not deprecated">
  77162. </constructor>
  77163. </class>
  77164. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  77165. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  77166. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  77167. abstract="false"
  77168. static="false" final="false" visibility="public"
  77169. deprecated="not deprecated">
  77170. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77171. <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"
  77172. static="false" final="false" visibility="public"
  77173. deprecated="not deprecated">
  77174. <doc>
  77175. <![CDATA[Create an event for successful completion of map attempts
  77176. @param id Task Attempt ID
  77177. @param taskType Type of the task
  77178. @param taskStatus Status of the task
  77179. @param mapFinishTime Finish time of the map phase
  77180. @param finishTime Finish time of the attempt
  77181. @param hostname Name of the host where the map executed
  77182. @param state State string for the attempt
  77183. @param counters Counters for the attempt]]>
  77184. </doc>
  77185. </constructor>
  77186. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  77187. abstract="false" native="false" synchronized="false"
  77188. static="false" final="false" visibility="public"
  77189. deprecated="not deprecated">
  77190. <doc>
  77191. <![CDATA[Get the task ID]]>
  77192. </doc>
  77193. </method>
  77194. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  77195. abstract="false" native="false" synchronized="false"
  77196. static="false" final="false" visibility="public"
  77197. deprecated="not deprecated">
  77198. <doc>
  77199. <![CDATA[Get the attempt id]]>
  77200. </doc>
  77201. </method>
  77202. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  77203. abstract="false" native="false" synchronized="false"
  77204. static="false" final="false" visibility="public"
  77205. deprecated="not deprecated">
  77206. <doc>
  77207. <![CDATA[Get the task type]]>
  77208. </doc>
  77209. </method>
  77210. <method name="getTaskStatus" return="java.lang.String"
  77211. abstract="false" native="false" synchronized="false"
  77212. static="false" final="false" visibility="public"
  77213. deprecated="not deprecated">
  77214. <doc>
  77215. <![CDATA[Get the task status]]>
  77216. </doc>
  77217. </method>
  77218. <method name="getMapFinishTime" return="long"
  77219. abstract="false" native="false" synchronized="false"
  77220. static="false" final="false" visibility="public"
  77221. deprecated="not deprecated">
  77222. <doc>
  77223. <![CDATA[Get the map phase finish time]]>
  77224. </doc>
  77225. </method>
  77226. <method name="getFinishTime" return="long"
  77227. abstract="false" native="false" synchronized="false"
  77228. static="false" final="false" visibility="public"
  77229. deprecated="not deprecated">
  77230. <doc>
  77231. <![CDATA[Get the attempt finish time]]>
  77232. </doc>
  77233. </method>
  77234. <method name="getHostname" return="java.lang.String"
  77235. abstract="false" native="false" synchronized="false"
  77236. static="false" final="false" visibility="public"
  77237. deprecated="not deprecated">
  77238. <doc>
  77239. <![CDATA[Get the host name]]>
  77240. </doc>
  77241. </method>
  77242. <method name="getState" return="java.lang.String"
  77243. abstract="false" native="false" synchronized="false"
  77244. static="false" final="false" visibility="public"
  77245. deprecated="not deprecated">
  77246. <doc>
  77247. <![CDATA[Get the state string]]>
  77248. </doc>
  77249. </method>
  77250. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  77251. abstract="false" native="false" synchronized="false"
  77252. static="false" final="false" visibility="public"
  77253. deprecated="not deprecated">
  77254. <doc>
  77255. <![CDATA[Get the counters]]>
  77256. </doc>
  77257. </method>
  77258. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77259. abstract="false" native="false" synchronized="false"
  77260. static="false" final="false" visibility="public"
  77261. deprecated="not deprecated">
  77262. <doc>
  77263. <![CDATA[Get the event type]]>
  77264. </doc>
  77265. </method>
  77266. <doc>
  77267. <![CDATA[Event to record successful completion of a map attempt]]>
  77268. </doc>
  77269. </class>
  77270. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  77271. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  77272. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  77273. abstract="false"
  77274. static="false" final="false" visibility="public"
  77275. deprecated="not deprecated">
  77276. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  77277. static="false" final="false" visibility="public"
  77278. deprecated="not deprecated">
  77279. </constructor>
  77280. <method name="getRuntime" return="long"
  77281. abstract="false" native="false" synchronized="false"
  77282. static="false" final="false" visibility="public"
  77283. deprecated="not deprecated">
  77284. </method>
  77285. <method name="getMapRuntime" return="long"
  77286. abstract="false" native="false" synchronized="false"
  77287. static="false" final="false" visibility="public"
  77288. deprecated="not deprecated">
  77289. <doc>
  77290. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  77291. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  77292. </doc>
  77293. </method>
  77294. <doc>
  77295. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  77296. map task attempt.]]>
  77297. </doc>
  77298. </class>
  77299. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  77300. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  77301. <class name="Node" extends="java.lang.Object"
  77302. abstract="false"
  77303. static="false" final="false" visibility="public"
  77304. deprecated="not deprecated">
  77305. <implements name="java.lang.Comparable"/>
  77306. <constructor name="Node" type="java.lang.String, int"
  77307. static="false" final="false" visibility="public"
  77308. deprecated="not deprecated">
  77309. <doc>
  77310. <![CDATA[@param name
  77311. A unique name to identify a node in the cluster.
  77312. @param level
  77313. The level of the node in the cluster]]>
  77314. </doc>
  77315. </constructor>
  77316. <method name="getName" return="java.lang.String"
  77317. abstract="false" native="false" synchronized="false"
  77318. static="false" final="false" visibility="public"
  77319. deprecated="not deprecated">
  77320. <doc>
  77321. <![CDATA[Get the name of the node.
  77322. @return The name of the node.]]>
  77323. </doc>
  77324. </method>
  77325. <method name="getLevel" return="int"
  77326. abstract="false" native="false" synchronized="false"
  77327. static="false" final="false" visibility="public"
  77328. deprecated="not deprecated">
  77329. <doc>
  77330. <![CDATA[Get the level of the node.
  77331. @return The level of the node.]]>
  77332. </doc>
  77333. </method>
  77334. <method name="addChild" return="boolean"
  77335. abstract="false" native="false" synchronized="true"
  77336. static="false" final="false" visibility="public"
  77337. deprecated="not deprecated">
  77338. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  77339. <doc>
  77340. <![CDATA[Add a child node to this node.
  77341. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  77342. @return Boolean indicating whether the node is successfully added.]]>
  77343. </doc>
  77344. </method>
  77345. <method name="hasChildren" return="boolean"
  77346. abstract="false" native="false" synchronized="true"
  77347. static="false" final="false" visibility="public"
  77348. deprecated="not deprecated">
  77349. <doc>
  77350. <![CDATA[Does this node have any children?
  77351. @return Boolean indicate whether this node has any children.]]>
  77352. </doc>
  77353. </method>
  77354. <method name="getChildren" return="java.util.Set"
  77355. abstract="false" native="false" synchronized="true"
  77356. static="false" final="false" visibility="public"
  77357. deprecated="not deprecated">
  77358. <doc>
  77359. <![CDATA[Get the children of this node.
  77360. @return The children of this node. If no child, an empty set will be
  77361. returned. The returned set is read-only.]]>
  77362. </doc>
  77363. </method>
  77364. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  77365. abstract="false" native="false" synchronized="false"
  77366. static="false" final="false" visibility="public"
  77367. deprecated="not deprecated">
  77368. <doc>
  77369. <![CDATA[Get the parent node.
  77370. @return the parent node. If root node, return null.]]>
  77371. </doc>
  77372. </method>
  77373. <method name="hashCode" return="int"
  77374. abstract="false" native="false" synchronized="false"
  77375. static="false" final="false" visibility="public"
  77376. deprecated="not deprecated">
  77377. </method>
  77378. <method name="equals" return="boolean"
  77379. abstract="false" native="false" synchronized="false"
  77380. static="false" final="false" visibility="public"
  77381. deprecated="not deprecated">
  77382. <param name="obj" type="java.lang.Object"/>
  77383. </method>
  77384. <method name="toString" return="java.lang.String"
  77385. abstract="false" native="false" synchronized="false"
  77386. static="false" final="false" visibility="public"
  77387. deprecated="not deprecated">
  77388. </method>
  77389. <method name="compareTo" return="int"
  77390. abstract="false" native="false" synchronized="false"
  77391. static="false" final="false" visibility="public"
  77392. deprecated="not deprecated">
  77393. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  77394. </method>
  77395. <doc>
  77396. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  77397. {@MachineNode}, or a {@link RackNode}, etc.]]>
  77398. </doc>
  77399. </class>
  77400. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  77401. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  77402. <interface name="Outputter" abstract="true"
  77403. static="false" final="false" visibility="public"
  77404. deprecated="not deprecated">
  77405. <implements name="java.io.Closeable"/>
  77406. <method name="init"
  77407. abstract="false" native="false" synchronized="false"
  77408. static="false" final="false" visibility="public"
  77409. deprecated="not deprecated">
  77410. <param name="path" type="org.apache.hadoop.fs.Path"/>
  77411. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77412. <exception name="IOException" type="java.io.IOException"/>
  77413. <doc>
  77414. <![CDATA[Initialize the {@link Outputter} to a specific path.
  77415. @param path The {@link Path} to the output file.
  77416. @param conf Configuration
  77417. @throws IOException]]>
  77418. </doc>
  77419. </method>
  77420. <method name="output"
  77421. abstract="false" native="false" synchronized="false"
  77422. static="false" final="false" visibility="public"
  77423. deprecated="not deprecated">
  77424. <param name="object" type="java.lang.Object"/>
  77425. <exception name="IOException" type="java.io.IOException"/>
  77426. <doc>
  77427. <![CDATA[Output an object.
  77428. @param object The objecte.
  77429. @throws IOException]]>
  77430. </doc>
  77431. </method>
  77432. <doc>
  77433. <![CDATA[Interface to output a sequence of objects of type T.]]>
  77434. </doc>
  77435. </interface>
  77436. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  77437. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  77438. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  77439. abstract="false"
  77440. static="false" final="false" visibility="public"
  77441. deprecated="not deprecated">
  77442. <constructor name="Pre21JobHistoryConstants"
  77443. static="false" final="false" visibility="public"
  77444. deprecated="not deprecated">
  77445. </constructor>
  77446. </class>
  77447. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  77448. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  77449. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  77450. abstract="false"
  77451. static="true" final="true" visibility="public"
  77452. deprecated="not deprecated">
  77453. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  77454. abstract="false" native="false" synchronized="false"
  77455. static="true" final="false" visibility="public"
  77456. deprecated="not deprecated">
  77457. </method>
  77458. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77459. abstract="false" native="false" synchronized="false"
  77460. static="true" final="false" visibility="public"
  77461. deprecated="not deprecated">
  77462. <param name="name" type="java.lang.String"/>
  77463. </method>
  77464. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77465. transient="false" volatile="false"
  77466. static="true" final="true" visibility="public"
  77467. deprecated="not deprecated">
  77468. </field>
  77469. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77470. transient="false" volatile="false"
  77471. static="true" final="true" visibility="public"
  77472. deprecated="not deprecated">
  77473. </field>
  77474. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77475. transient="false" volatile="false"
  77476. static="true" final="true" visibility="public"
  77477. deprecated="not deprecated">
  77478. </field>
  77479. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77480. transient="false" volatile="false"
  77481. static="true" final="true" visibility="public"
  77482. deprecated="not deprecated">
  77483. </field>
  77484. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77485. transient="false" volatile="false"
  77486. static="true" final="true" visibility="public"
  77487. deprecated="not deprecated">
  77488. </field>
  77489. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77490. transient="false" volatile="false"
  77491. static="true" final="true" visibility="public"
  77492. deprecated="not deprecated">
  77493. </field>
  77494. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77495. transient="false" volatile="false"
  77496. static="true" final="true" visibility="public"
  77497. deprecated="not deprecated">
  77498. </field>
  77499. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77500. transient="false" volatile="false"
  77501. static="true" final="true" visibility="public"
  77502. deprecated="not deprecated">
  77503. </field>
  77504. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77505. transient="false" volatile="false"
  77506. static="true" final="true" visibility="public"
  77507. deprecated="not deprecated">
  77508. </field>
  77509. <doc>
  77510. <![CDATA[This enum contains some of the values commonly used by history log events.
  77511. since values in history can only be strings - Values.name() is used in
  77512. most places in history file.]]>
  77513. </doc>
  77514. </class>
  77515. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  77516. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  77517. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  77518. abstract="false"
  77519. static="false" final="true" visibility="public"
  77520. deprecated="not deprecated">
  77521. <constructor name="RackNode" type="java.lang.String, int"
  77522. static="false" final="false" visibility="public"
  77523. deprecated="not deprecated">
  77524. </constructor>
  77525. <method name="addChild" return="boolean"
  77526. abstract="false" native="false" synchronized="true"
  77527. static="false" final="false" visibility="public"
  77528. deprecated="not deprecated">
  77529. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  77530. </method>
  77531. <method name="getMachinesInRack" return="java.util.Set"
  77532. abstract="false" native="false" synchronized="false"
  77533. static="false" final="false" visibility="public"
  77534. deprecated="not deprecated">
  77535. <doc>
  77536. <![CDATA[Get the machine nodes that belong to the rack.
  77537. @return The machine nodes that belong to the rack.]]>
  77538. </doc>
  77539. </method>
  77540. <doc>
  77541. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  77542. </doc>
  77543. </class>
  77544. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  77545. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  77546. <class name="RandomSeedGenerator" extends="java.lang.Object"
  77547. abstract="false"
  77548. static="false" final="false" visibility="public"
  77549. deprecated="not deprecated">
  77550. <constructor name="RandomSeedGenerator"
  77551. static="false" final="false" visibility="public"
  77552. deprecated="not deprecated">
  77553. </constructor>
  77554. <method name="getSeed" return="long"
  77555. abstract="false" native="false" synchronized="false"
  77556. static="true" final="false" visibility="public"
  77557. deprecated="not deprecated">
  77558. <param name="streamId" type="java.lang.String"/>
  77559. <param name="masterSeed" type="long"/>
  77560. <doc>
  77561. <![CDATA[Generates a new random seed.
  77562. @param streamId a string identifying the stream of random numbers
  77563. @param masterSeed higher level master random seed
  77564. @return the random seed. Different (streamId, masterSeed) pairs result in
  77565. (vastly) different random seeds.]]>
  77566. </doc>
  77567. </method>
  77568. <doc>
  77569. <![CDATA[The purpose of this class is to generate new random seeds from a master
  77570. seed. This is needed to make the Random().next*() calls in rumen and mumak
  77571. deterministic so that mumak simulations become deterministically replayable.
  77572. In these tools we need many independent streams of random numbers, some of
  77573. which are created dynamically. We seed these streams with the sub-seeds
  77574. returned by RandomSeedGenerator.
  77575. For a slightly more complicated approach to generating multiple streams of
  77576. random numbers with better theoretical guarantees, see
  77577. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  77578. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  77579. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  77580. http://www.iro.umontreal.ca/~lecuyer/papers.html
  77581. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  77582. </doc>
  77583. </class>
  77584. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  77585. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  77586. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  77587. abstract="false"
  77588. static="false" final="false" visibility="public"
  77589. deprecated="not deprecated">
  77590. </class>
  77591. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  77592. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  77593. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  77594. abstract="false"
  77595. static="false" final="false" visibility="public"
  77596. deprecated="not deprecated">
  77597. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77598. <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"
  77599. static="false" final="false" visibility="public"
  77600. deprecated="not deprecated">
  77601. <doc>
  77602. <![CDATA[Create an event to record completion of a reduce attempt
  77603. @param id Attempt Id
  77604. @param taskType Type of task
  77605. @param taskStatus Status of the task
  77606. @param shuffleFinishTime Finish time of the shuffle phase
  77607. @param sortFinishTime Finish time of the sort phase
  77608. @param finishTime Finish time of the attempt
  77609. @param hostname Name of the host where the attempt executed
  77610. @param state State of the attempt
  77611. @param counters Counters for the attempt]]>
  77612. </doc>
  77613. </constructor>
  77614. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  77615. abstract="false" native="false" synchronized="false"
  77616. static="false" final="false" visibility="public"
  77617. deprecated="not deprecated">
  77618. <doc>
  77619. <![CDATA[Get the Task ID]]>
  77620. </doc>
  77621. </method>
  77622. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  77623. abstract="false" native="false" synchronized="false"
  77624. static="false" final="false" visibility="public"
  77625. deprecated="not deprecated">
  77626. <doc>
  77627. <![CDATA[Get the attempt id]]>
  77628. </doc>
  77629. </method>
  77630. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  77631. abstract="false" native="false" synchronized="false"
  77632. static="false" final="false" visibility="public"
  77633. deprecated="not deprecated">
  77634. <doc>
  77635. <![CDATA[Get the task type]]>
  77636. </doc>
  77637. </method>
  77638. <method name="getTaskStatus" return="java.lang.String"
  77639. abstract="false" native="false" synchronized="false"
  77640. static="false" final="false" visibility="public"
  77641. deprecated="not deprecated">
  77642. <doc>
  77643. <![CDATA[Get the task status]]>
  77644. </doc>
  77645. </method>
  77646. <method name="getSortFinishTime" return="long"
  77647. abstract="false" native="false" synchronized="false"
  77648. static="false" final="false" visibility="public"
  77649. deprecated="not deprecated">
  77650. <doc>
  77651. <![CDATA[Get the finish time of the sort phase]]>
  77652. </doc>
  77653. </method>
  77654. <method name="getShuffleFinishTime" return="long"
  77655. abstract="false" native="false" synchronized="false"
  77656. static="false" final="false" visibility="public"
  77657. deprecated="not deprecated">
  77658. <doc>
  77659. <![CDATA[Get the finish time of the shuffle phase]]>
  77660. </doc>
  77661. </method>
  77662. <method name="getFinishTime" return="long"
  77663. abstract="false" native="false" synchronized="false"
  77664. static="false" final="false" visibility="public"
  77665. deprecated="not deprecated">
  77666. <doc>
  77667. <![CDATA[Get the finish time of the attempt]]>
  77668. </doc>
  77669. </method>
  77670. <method name="getHostname" return="java.lang.String"
  77671. abstract="false" native="false" synchronized="false"
  77672. static="false" final="false" visibility="public"
  77673. deprecated="not deprecated">
  77674. <doc>
  77675. <![CDATA[Get the name of the host where the attempt ran]]>
  77676. </doc>
  77677. </method>
  77678. <method name="getState" return="java.lang.String"
  77679. abstract="false" native="false" synchronized="false"
  77680. static="false" final="false" visibility="public"
  77681. deprecated="not deprecated">
  77682. <doc>
  77683. <![CDATA[Get the state string]]>
  77684. </doc>
  77685. </method>
  77686. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  77687. abstract="false" native="false" synchronized="false"
  77688. static="false" final="false" visibility="public"
  77689. deprecated="not deprecated">
  77690. <doc>
  77691. <![CDATA[Get the counters for the attempt]]>
  77692. </doc>
  77693. </method>
  77694. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77695. abstract="false" native="false" synchronized="false"
  77696. static="false" final="false" visibility="public"
  77697. deprecated="not deprecated">
  77698. <doc>
  77699. <![CDATA[Get the event type]]>
  77700. </doc>
  77701. </method>
  77702. <doc>
  77703. <![CDATA[Event to record successful completion of a reduce attempt]]>
  77704. </doc>
  77705. </class>
  77706. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  77707. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  77708. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  77709. abstract="false"
  77710. static="false" final="false" visibility="public"
  77711. deprecated="not deprecated">
  77712. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  77713. static="false" final="false" visibility="public"
  77714. deprecated="not deprecated">
  77715. </constructor>
  77716. <method name="getReduceRuntime" return="long"
  77717. abstract="false" native="false" synchronized="false"
  77718. static="false" final="false" visibility="public"
  77719. deprecated="not deprecated">
  77720. <doc>
  77721. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  77722. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  77723. </doc>
  77724. </method>
  77725. <method name="getShuffleRuntime" return="long"
  77726. abstract="false" native="false" synchronized="false"
  77727. static="false" final="false" visibility="public"
  77728. deprecated="not deprecated">
  77729. <doc>
  77730. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  77731. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  77732. </doc>
  77733. </method>
  77734. <method name="getMergeRuntime" return="long"
  77735. abstract="false" native="false" synchronized="false"
  77736. static="false" final="false" visibility="public"
  77737. deprecated="not deprecated">
  77738. <doc>
  77739. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  77740. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  77741. </doc>
  77742. </method>
  77743. <method name="getRuntime" return="long"
  77744. abstract="false" native="false" synchronized="false"
  77745. static="false" final="false" visibility="public"
  77746. deprecated="not deprecated">
  77747. </method>
  77748. <doc>
  77749. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  77750. reduce task attempt.]]>
  77751. </doc>
  77752. </class>
  77753. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  77754. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  77755. <class name="RewindableInputStream" extends="java.io.InputStream"
  77756. abstract="false"
  77757. static="false" final="false" visibility="public"
  77758. deprecated="not deprecated">
  77759. <constructor name="RewindableInputStream" type="java.io.InputStream"
  77760. static="false" final="false" visibility="public"
  77761. deprecated="not deprecated">
  77762. <doc>
  77763. <![CDATA[Constructor.
  77764. @param input]]>
  77765. </doc>
  77766. </constructor>
  77767. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  77768. static="false" final="false" visibility="public"
  77769. deprecated="not deprecated">
  77770. <doc>
  77771. <![CDATA[Constructor
  77772. @param input
  77773. input stream.
  77774. @param maxBytesToRemember
  77775. Maximum number of bytes we need to remember at the beginning of
  77776. the stream. If {@link #rewind()} is called after so many bytes are
  77777. read from the stream, {@link #rewind()} would fail.]]>
  77778. </doc>
  77779. </constructor>
  77780. <method name="read" return="int"
  77781. abstract="false" native="false" synchronized="false"
  77782. static="false" final="false" visibility="public"
  77783. deprecated="not deprecated">
  77784. <exception name="IOException" type="java.io.IOException"/>
  77785. </method>
  77786. <method name="read" return="int"
  77787. abstract="false" native="false" synchronized="false"
  77788. static="false" final="false" visibility="public"
  77789. deprecated="not deprecated">
  77790. <param name="buffer" type="byte[]"/>
  77791. <param name="offset" type="int"/>
  77792. <param name="length" type="int"/>
  77793. <exception name="IOException" type="java.io.IOException"/>
  77794. </method>
  77795. <method name="close"
  77796. abstract="false" native="false" synchronized="false"
  77797. static="false" final="false" visibility="public"
  77798. deprecated="not deprecated">
  77799. <exception name="IOException" type="java.io.IOException"/>
  77800. </method>
  77801. <method name="rewind" return="java.io.InputStream"
  77802. abstract="false" native="false" synchronized="false"
  77803. static="false" final="false" visibility="public"
  77804. deprecated="not deprecated">
  77805. <exception name="IOException" type="java.io.IOException"/>
  77806. </method>
  77807. <doc>
  77808. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  77809. made more memory efficient by grow the internal buffer adaptively.]]>
  77810. </doc>
  77811. </class>
  77812. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  77813. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  77814. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  77815. abstract="false"
  77816. static="false" final="false" visibility="public"
  77817. deprecated="not deprecated">
  77818. <constructor name="Task20LineHistoryEventEmitter"
  77819. static="false" final="false" visibility="protected"
  77820. deprecated="not deprecated">
  77821. </constructor>
  77822. </class>
  77823. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  77824. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  77825. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  77826. abstract="true"
  77827. static="false" final="false" visibility="public"
  77828. deprecated="not deprecated">
  77829. <constructor name="TaskAttempt20LineEventEmitter"
  77830. static="false" final="false" visibility="protected"
  77831. deprecated="not deprecated">
  77832. </constructor>
  77833. </class>
  77834. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  77835. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  77836. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  77837. abstract="false"
  77838. static="false" final="false" visibility="public"
  77839. deprecated="not deprecated">
  77840. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77841. <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"
  77842. static="false" final="false" visibility="public"
  77843. deprecated="not deprecated">
  77844. <doc>
  77845. <![CDATA[Create an event to record successful finishes for setup and cleanup
  77846. attempts
  77847. @param id Attempt ID
  77848. @param taskType Type of task
  77849. @param taskStatus Status of task
  77850. @param finishTime Finish time of attempt
  77851. @param hostname Host where the attempt executed
  77852. @param state State string
  77853. @param counters Counters for the attempt]]>
  77854. </doc>
  77855. </constructor>
  77856. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  77857. abstract="false" native="false" synchronized="false"
  77858. static="false" final="false" visibility="public"
  77859. deprecated="not deprecated">
  77860. <doc>
  77861. <![CDATA[Get the task ID]]>
  77862. </doc>
  77863. </method>
  77864. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  77865. abstract="false" native="false" synchronized="false"
  77866. static="false" final="false" visibility="public"
  77867. deprecated="not deprecated">
  77868. <doc>
  77869. <![CDATA[Get the task attempt id]]>
  77870. </doc>
  77871. </method>
  77872. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  77873. abstract="false" native="false" synchronized="false"
  77874. static="false" final="false" visibility="public"
  77875. deprecated="not deprecated">
  77876. <doc>
  77877. <![CDATA[Get the task type]]>
  77878. </doc>
  77879. </method>
  77880. <method name="getTaskStatus" return="java.lang.String"
  77881. abstract="false" native="false" synchronized="false"
  77882. static="false" final="false" visibility="public"
  77883. deprecated="not deprecated">
  77884. <doc>
  77885. <![CDATA[Get the task status]]>
  77886. </doc>
  77887. </method>
  77888. <method name="getFinishTime" return="long"
  77889. abstract="false" native="false" synchronized="false"
  77890. static="false" final="false" visibility="public"
  77891. deprecated="not deprecated">
  77892. <doc>
  77893. <![CDATA[Get the attempt finish time]]>
  77894. </doc>
  77895. </method>
  77896. <method name="getHostname" return="java.lang.String"
  77897. abstract="false" native="false" synchronized="false"
  77898. static="false" final="false" visibility="public"
  77899. deprecated="not deprecated">
  77900. <doc>
  77901. <![CDATA[Get the host where the attempt executed]]>
  77902. </doc>
  77903. </method>
  77904. <method name="getState" return="java.lang.String"
  77905. abstract="false" native="false" synchronized="false"
  77906. static="false" final="false" visibility="public"
  77907. deprecated="not deprecated">
  77908. <doc>
  77909. <![CDATA[Get the state string]]>
  77910. </doc>
  77911. </method>
  77912. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  77913. abstract="false" native="false" synchronized="false"
  77914. static="false" final="false" visibility="public"
  77915. deprecated="not deprecated">
  77916. <doc>
  77917. <![CDATA[Get the counters for the attempt]]>
  77918. </doc>
  77919. </method>
  77920. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77921. abstract="false" native="false" synchronized="false"
  77922. static="false" final="false" visibility="public"
  77923. deprecated="not deprecated">
  77924. <doc>
  77925. <![CDATA[Get the event type]]>
  77926. </doc>
  77927. </method>
  77928. <doc>
  77929. <![CDATA[Event to record successful task completion]]>
  77930. </doc>
  77931. </class>
  77932. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  77933. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  77934. <class name="TaskAttemptInfo" extends="java.lang.Object"
  77935. abstract="true"
  77936. static="false" final="false" visibility="public"
  77937. deprecated="not deprecated">
  77938. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  77939. static="false" final="false" visibility="protected"
  77940. deprecated="not deprecated">
  77941. </constructor>
  77942. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  77943. abstract="false" native="false" synchronized="false"
  77944. static="false" final="false" visibility="public"
  77945. deprecated="not deprecated">
  77946. <doc>
  77947. <![CDATA[Get the final {@link TaskStatus.State} of the task-attempt.
  77948. @return the final <code>State</code> of the task-attempt]]>
  77949. </doc>
  77950. </method>
  77951. <method name="getRuntime" return="long"
  77952. abstract="true" native="false" synchronized="false"
  77953. static="false" final="false" visibility="public"
  77954. deprecated="not deprecated">
  77955. <doc>
  77956. <![CDATA[Get the total runtime for the task-attempt.
  77957. @return the total runtime for the task-attempt]]>
  77958. </doc>
  77959. </method>
  77960. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  77961. abstract="false" native="false" synchronized="false"
  77962. static="false" final="false" visibility="public"
  77963. deprecated="not deprecated">
  77964. <doc>
  77965. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  77966. @return the <code>TaskInfo</code> for the given task-attempt]]>
  77967. </doc>
  77968. </method>
  77969. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  77970. transient="false" volatile="false"
  77971. static="false" final="true" visibility="protected"
  77972. deprecated="not deprecated">
  77973. </field>
  77974. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  77975. transient="false" volatile="false"
  77976. static="false" final="true" visibility="protected"
  77977. deprecated="not deprecated">
  77978. </field>
  77979. <doc>
  77980. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  77981. task-attempt gleaned from job-history of the job.]]>
  77982. </doc>
  77983. </class>
  77984. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  77985. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  77986. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  77987. abstract="false"
  77988. static="false" final="false" visibility="public"
  77989. deprecated="not deprecated">
  77990. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77991. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int"
  77992. static="false" final="false" visibility="public"
  77993. deprecated="not deprecated">
  77994. <doc>
  77995. <![CDATA[Create an event to record the start of an attempt
  77996. @param attemptId Id of the attempt
  77997. @param taskType Type of task
  77998. @param startTime Start time of the attempt
  77999. @param trackerName Name of the Task Tracker where attempt is running
  78000. @param httpPort The port number of the tracker]]>
  78001. </doc>
  78002. </constructor>
  78003. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78004. abstract="false" native="false" synchronized="false"
  78005. static="false" final="false" visibility="public"
  78006. deprecated="not deprecated">
  78007. <doc>
  78008. <![CDATA[Get the task id]]>
  78009. </doc>
  78010. </method>
  78011. <method name="getTrackerName" return="java.lang.String"
  78012. abstract="false" native="false" synchronized="false"
  78013. static="false" final="false" visibility="public"
  78014. deprecated="not deprecated">
  78015. <doc>
  78016. <![CDATA[Get the tracker name]]>
  78017. </doc>
  78018. </method>
  78019. <method name="getStartTime" return="long"
  78020. abstract="false" native="false" synchronized="false"
  78021. static="false" final="false" visibility="public"
  78022. deprecated="not deprecated">
  78023. <doc>
  78024. <![CDATA[Get the start time]]>
  78025. </doc>
  78026. </method>
  78027. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78028. abstract="false" native="false" synchronized="false"
  78029. static="false" final="false" visibility="public"
  78030. deprecated="not deprecated">
  78031. <doc>
  78032. <![CDATA[Get the task type]]>
  78033. </doc>
  78034. </method>
  78035. <method name="getHttpPort" return="int"
  78036. abstract="false" native="false" synchronized="false"
  78037. static="false" final="false" visibility="public"
  78038. deprecated="not deprecated">
  78039. <doc>
  78040. <![CDATA[Get the HTTP port]]>
  78041. </doc>
  78042. </method>
  78043. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78044. abstract="false" native="false" synchronized="false"
  78045. static="false" final="false" visibility="public"
  78046. deprecated="not deprecated">
  78047. <doc>
  78048. <![CDATA[Get the attempt id]]>
  78049. </doc>
  78050. </method>
  78051. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78052. abstract="false" native="false" synchronized="false"
  78053. static="false" final="false" visibility="public"
  78054. deprecated="not deprecated">
  78055. <doc>
  78056. <![CDATA[Get the event type]]>
  78057. </doc>
  78058. </method>
  78059. <doc>
  78060. <![CDATA[Event to record start of a task attempt]]>
  78061. </doc>
  78062. </class>
  78063. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  78064. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  78065. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  78066. abstract="false"
  78067. static="false" final="false" visibility="public"
  78068. deprecated="not deprecated">
  78069. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78070. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  78071. static="false" final="false" visibility="public"
  78072. deprecated="not deprecated">
  78073. <doc>
  78074. <![CDATA[Create an event to record the unsuccessful completion of attempts
  78075. @param id Attempt ID
  78076. @param taskType Type of the task
  78077. @param status Status of the attempt
  78078. @param finishTime Finish time of the attempt
  78079. @param hostname Name of the host where the attempt executed
  78080. @param error Error string]]>
  78081. </doc>
  78082. </constructor>
  78083. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78084. abstract="false" native="false" synchronized="false"
  78085. static="false" final="false" visibility="public"
  78086. deprecated="not deprecated">
  78087. <doc>
  78088. <![CDATA[Get the task id]]>
  78089. </doc>
  78090. </method>
  78091. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78092. abstract="false" native="false" synchronized="false"
  78093. static="false" final="false" visibility="public"
  78094. deprecated="not deprecated">
  78095. <doc>
  78096. <![CDATA[Get the task type]]>
  78097. </doc>
  78098. </method>
  78099. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78100. abstract="false" native="false" synchronized="false"
  78101. static="false" final="false" visibility="public"
  78102. deprecated="not deprecated">
  78103. <doc>
  78104. <![CDATA[Get the attempt id]]>
  78105. </doc>
  78106. </method>
  78107. <method name="getFinishTime" return="long"
  78108. abstract="false" native="false" synchronized="false"
  78109. static="false" final="false" visibility="public"
  78110. deprecated="not deprecated">
  78111. <doc>
  78112. <![CDATA[Get the finish time]]>
  78113. </doc>
  78114. </method>
  78115. <method name="getHostname" return="java.lang.String"
  78116. abstract="false" native="false" synchronized="false"
  78117. static="false" final="false" visibility="public"
  78118. deprecated="not deprecated">
  78119. <doc>
  78120. <![CDATA[Get the name of the host where the attempt executed]]>
  78121. </doc>
  78122. </method>
  78123. <method name="getError" return="java.lang.String"
  78124. abstract="false" native="false" synchronized="false"
  78125. static="false" final="false" visibility="public"
  78126. deprecated="not deprecated">
  78127. <doc>
  78128. <![CDATA[Get the error string]]>
  78129. </doc>
  78130. </method>
  78131. <method name="getTaskStatus" return="java.lang.String"
  78132. abstract="false" native="false" synchronized="false"
  78133. static="false" final="false" visibility="public"
  78134. deprecated="not deprecated">
  78135. <doc>
  78136. <![CDATA[Get the task status]]>
  78137. </doc>
  78138. </method>
  78139. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78140. abstract="false" native="false" synchronized="false"
  78141. static="false" final="false" visibility="public"
  78142. deprecated="not deprecated">
  78143. <doc>
  78144. <![CDATA[Get the event type]]>
  78145. </doc>
  78146. </method>
  78147. <doc>
  78148. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  78149. </doc>
  78150. </class>
  78151. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  78152. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  78153. <class name="TaskFailedEvent" extends="java.lang.Object"
  78154. abstract="false"
  78155. static="false" final="false" visibility="public"
  78156. deprecated="not deprecated">
  78157. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78158. <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"
  78159. static="false" final="false" visibility="public"
  78160. deprecated="not deprecated">
  78161. <doc>
  78162. <![CDATA[Create an event to record task failure
  78163. @param id Task ID
  78164. @param finishTime Finish time of the task
  78165. @param taskType Type of the task
  78166. @param error Error String
  78167. @param status Status
  78168. @param failedDueToAttempt The attempt id due to which the task failed]]>
  78169. </doc>
  78170. </constructor>
  78171. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78172. abstract="false" native="false" synchronized="false"
  78173. static="false" final="false" visibility="public"
  78174. deprecated="not deprecated">
  78175. <doc>
  78176. <![CDATA[Get the task id]]>
  78177. </doc>
  78178. </method>
  78179. <method name="getError" return="java.lang.String"
  78180. abstract="false" native="false" synchronized="false"
  78181. static="false" final="false" visibility="public"
  78182. deprecated="not deprecated">
  78183. <doc>
  78184. <![CDATA[Get the error string]]>
  78185. </doc>
  78186. </method>
  78187. <method name="getFinishTime" return="long"
  78188. abstract="false" native="false" synchronized="false"
  78189. static="false" final="false" visibility="public"
  78190. deprecated="not deprecated">
  78191. <doc>
  78192. <![CDATA[Get the finish time of the attempt]]>
  78193. </doc>
  78194. </method>
  78195. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78196. abstract="false" native="false" synchronized="false"
  78197. static="false" final="false" visibility="public"
  78198. deprecated="not deprecated">
  78199. <doc>
  78200. <![CDATA[Get the task type]]>
  78201. </doc>
  78202. </method>
  78203. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78204. abstract="false" native="false" synchronized="false"
  78205. static="false" final="false" visibility="public"
  78206. deprecated="not deprecated">
  78207. <doc>
  78208. <![CDATA[Get the attempt id due to which the task failed]]>
  78209. </doc>
  78210. </method>
  78211. <method name="getTaskStatus" return="java.lang.String"
  78212. abstract="false" native="false" synchronized="false"
  78213. static="false" final="false" visibility="public"
  78214. deprecated="not deprecated">
  78215. <doc>
  78216. <![CDATA[Get the task status]]>
  78217. </doc>
  78218. </method>
  78219. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78220. abstract="false" native="false" synchronized="false"
  78221. static="false" final="false" visibility="public"
  78222. deprecated="not deprecated">
  78223. <doc>
  78224. <![CDATA[Get the event type]]>
  78225. </doc>
  78226. </method>
  78227. <doc>
  78228. <![CDATA[Event to record the failure of a task]]>
  78229. </doc>
  78230. </class>
  78231. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  78232. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  78233. <class name="TaskFinishedEvent" extends="java.lang.Object"
  78234. abstract="false"
  78235. static="false" final="false" visibility="public"
  78236. deprecated="not deprecated">
  78237. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78238. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  78239. static="false" final="false" visibility="public"
  78240. deprecated="not deprecated">
  78241. <doc>
  78242. <![CDATA[Create an event to record the successful completion of a task
  78243. @param id Task ID
  78244. @param finishTime Finish time of the task
  78245. @param taskType Type of the task
  78246. @param status Status string
  78247. @param counters Counters for the task]]>
  78248. </doc>
  78249. </constructor>
  78250. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78251. abstract="false" native="false" synchronized="false"
  78252. static="false" final="false" visibility="public"
  78253. deprecated="not deprecated">
  78254. <doc>
  78255. <![CDATA[Get task id]]>
  78256. </doc>
  78257. </method>
  78258. <method name="getFinishTime" return="long"
  78259. abstract="false" native="false" synchronized="false"
  78260. static="false" final="false" visibility="public"
  78261. deprecated="not deprecated">
  78262. <doc>
  78263. <![CDATA[Get the task finish time]]>
  78264. </doc>
  78265. </method>
  78266. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  78267. abstract="false" native="false" synchronized="false"
  78268. static="false" final="false" visibility="public"
  78269. deprecated="not deprecated">
  78270. <doc>
  78271. <![CDATA[Get task counters]]>
  78272. </doc>
  78273. </method>
  78274. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78275. abstract="false" native="false" synchronized="false"
  78276. static="false" final="false" visibility="public"
  78277. deprecated="not deprecated">
  78278. <doc>
  78279. <![CDATA[Get task type]]>
  78280. </doc>
  78281. </method>
  78282. <method name="getTaskStatus" return="java.lang.String"
  78283. abstract="false" native="false" synchronized="false"
  78284. static="false" final="false" visibility="public"
  78285. deprecated="not deprecated">
  78286. <doc>
  78287. <![CDATA[Get task status]]>
  78288. </doc>
  78289. </method>
  78290. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78291. abstract="false" native="false" synchronized="false"
  78292. static="false" final="false" visibility="public"
  78293. deprecated="not deprecated">
  78294. <doc>
  78295. <![CDATA[Get event type]]>
  78296. </doc>
  78297. </method>
  78298. <doc>
  78299. <![CDATA[Event to record the successful completion of a task]]>
  78300. </doc>
  78301. </class>
  78302. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  78303. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  78304. <class name="TaskInfo" extends="java.lang.Object"
  78305. abstract="false"
  78306. static="false" final="false" visibility="public"
  78307. deprecated="not deprecated">
  78308. <constructor name="TaskInfo" type="long, int, long, int, long"
  78309. static="false" final="false" visibility="public"
  78310. deprecated="not deprecated">
  78311. </constructor>
  78312. <method name="getInputBytes" return="long"
  78313. abstract="false" native="false" synchronized="false"
  78314. static="false" final="false" visibility="public"
  78315. deprecated="not deprecated">
  78316. <doc>
  78317. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  78318. may not always match the input bytes to the task.]]>
  78319. </doc>
  78320. </method>
  78321. <method name="getInputRecords" return="int"
  78322. abstract="false" native="false" synchronized="false"
  78323. static="false" final="false" visibility="public"
  78324. deprecated="not deprecated">
  78325. <doc>
  78326. <![CDATA[@return Number of records input to this task.]]>
  78327. </doc>
  78328. </method>
  78329. <method name="getOutputBytes" return="long"
  78330. abstract="false" native="false" synchronized="false"
  78331. static="false" final="false" visibility="public"
  78332. deprecated="not deprecated">
  78333. <doc>
  78334. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  78335. not match output bytes.]]>
  78336. </doc>
  78337. </method>
  78338. <method name="getOutputRecords" return="int"
  78339. abstract="false" native="false" synchronized="false"
  78340. static="false" final="false" visibility="public"
  78341. deprecated="not deprecated">
  78342. <doc>
  78343. <![CDATA[@return Number of records output from this task.]]>
  78344. </doc>
  78345. </method>
  78346. <method name="getTaskMemory" return="long"
  78347. abstract="false" native="false" synchronized="false"
  78348. static="false" final="false" visibility="public"
  78349. deprecated="not deprecated">
  78350. <doc>
  78351. <![CDATA[@return Memory used by the task leq the heap size.]]>
  78352. </doc>
  78353. </method>
  78354. </class>
  78355. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  78356. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  78357. <class name="TaskStartedEvent" extends="java.lang.Object"
  78358. abstract="false"
  78359. static="false" final="false" visibility="public"
  78360. deprecated="not deprecated">
  78361. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78362. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  78363. static="false" final="false" visibility="public"
  78364. deprecated="not deprecated">
  78365. <doc>
  78366. <![CDATA[Create an event to record start of a task
  78367. @param id Task Id
  78368. @param startTime Start time of the task
  78369. @param taskType Type of the task
  78370. @param splitLocations Split locations, applicable for map tasks]]>
  78371. </doc>
  78372. </constructor>
  78373. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78374. abstract="false" native="false" synchronized="false"
  78375. static="false" final="false" visibility="public"
  78376. deprecated="not deprecated">
  78377. <doc>
  78378. <![CDATA[Get the task id]]>
  78379. </doc>
  78380. </method>
  78381. <method name="getSplitLocations" return="java.lang.String"
  78382. abstract="false" native="false" synchronized="false"
  78383. static="false" final="false" visibility="public"
  78384. deprecated="not deprecated">
  78385. <doc>
  78386. <![CDATA[Get the split locations, applicable for map tasks]]>
  78387. </doc>
  78388. </method>
  78389. <method name="getStartTime" return="long"
  78390. abstract="false" native="false" synchronized="false"
  78391. static="false" final="false" visibility="public"
  78392. deprecated="not deprecated">
  78393. <doc>
  78394. <![CDATA[Get the start time of the task]]>
  78395. </doc>
  78396. </method>
  78397. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78398. abstract="false" native="false" synchronized="false"
  78399. static="false" final="false" visibility="public"
  78400. deprecated="not deprecated">
  78401. <doc>
  78402. <![CDATA[Get the task type]]>
  78403. </doc>
  78404. </method>
  78405. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78406. abstract="false" native="false" synchronized="false"
  78407. static="false" final="false" visibility="public"
  78408. deprecated="not deprecated">
  78409. <doc>
  78410. <![CDATA[Get the event type]]>
  78411. </doc>
  78412. </method>
  78413. <doc>
  78414. <![CDATA[Event to record the start of a task]]>
  78415. </doc>
  78416. </class>
  78417. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  78418. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  78419. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  78420. abstract="false"
  78421. static="false" final="false" visibility="public"
  78422. deprecated="not deprecated">
  78423. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78424. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  78425. static="false" final="false" visibility="public"
  78426. deprecated="not deprecated">
  78427. <doc>
  78428. <![CDATA[Create an event to record task updates
  78429. @param id Id of the task
  78430. @param finishTime Finish time of the task]]>
  78431. </doc>
  78432. </constructor>
  78433. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78434. abstract="false" native="false" synchronized="false"
  78435. static="false" final="false" visibility="public"
  78436. deprecated="not deprecated">
  78437. <doc>
  78438. <![CDATA[Get the task ID]]>
  78439. </doc>
  78440. </method>
  78441. <method name="getFinishTime" return="long"
  78442. abstract="false" native="false" synchronized="false"
  78443. static="false" final="false" visibility="public"
  78444. deprecated="not deprecated">
  78445. <doc>
  78446. <![CDATA[Get the task finish time]]>
  78447. </doc>
  78448. </method>
  78449. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78450. abstract="false" native="false" synchronized="false"
  78451. static="false" final="false" visibility="public"
  78452. deprecated="not deprecated">
  78453. <doc>
  78454. <![CDATA[Get the event type]]>
  78455. </doc>
  78456. </method>
  78457. <doc>
  78458. <![CDATA[Event to record updates to a task]]>
  78459. </doc>
  78460. </class>
  78461. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  78462. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  78463. <class name="TopologyBuilder" extends="java.lang.Object"
  78464. abstract="false"
  78465. static="false" final="false" visibility="public"
  78466. deprecated="not deprecated">
  78467. <constructor name="TopologyBuilder"
  78468. static="false" final="false" visibility="public"
  78469. deprecated="not deprecated">
  78470. </constructor>
  78471. <method name="process"
  78472. abstract="false" native="false" synchronized="false"
  78473. static="false" final="false" visibility="public"
  78474. deprecated="not deprecated">
  78475. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78476. <doc>
  78477. <![CDATA[Process one {@link HistoryEvent}
  78478. @param event
  78479. The {@link HistoryEvent} to be processed.]]>
  78480. </doc>
  78481. </method>
  78482. <method name="process"
  78483. abstract="false" native="false" synchronized="false"
  78484. static="false" final="false" visibility="public"
  78485. deprecated="not deprecated">
  78486. <param name="conf" type="java.util.Properties"/>
  78487. <doc>
  78488. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  78489. to be called once.
  78490. @param conf
  78491. The job conf properties to be added.]]>
  78492. </doc>
  78493. </method>
  78494. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  78495. abstract="false" native="false" synchronized="false"
  78496. static="false" final="false" visibility="public"
  78497. deprecated="not deprecated">
  78498. <doc>
  78499. <![CDATA[Request the builder to build the final object. Once called, the
  78500. {@link TopologyBuilder} would accept no more events or job-conf properties.
  78501. @return Parsed {@link LoggedNetworkTopology} object.]]>
  78502. </doc>
  78503. </method>
  78504. <doc>
  78505. <![CDATA[Building the cluster topology.]]>
  78506. </doc>
  78507. </class>
  78508. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  78509. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  78510. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  78511. abstract="false"
  78512. static="false" final="false" visibility="public"
  78513. deprecated="not deprecated">
  78514. <implements name="org.apache.hadoop.util.Tool"/>
  78515. <constructor name="TraceBuilder"
  78516. static="false" final="false" visibility="public"
  78517. deprecated="not deprecated">
  78518. </constructor>
  78519. <method name="main"
  78520. abstract="false" native="false" synchronized="false"
  78521. static="true" final="false" visibility="public"
  78522. deprecated="not deprecated">
  78523. <param name="args" type="java.lang.String[]"/>
  78524. </method>
  78525. <method name="run" return="int"
  78526. abstract="false" native="false" synchronized="false"
  78527. static="false" final="false" visibility="public"
  78528. deprecated="not deprecated">
  78529. <param name="args" type="java.lang.String[]"/>
  78530. <exception name="Exception" type="java.lang.Exception"/>
  78531. </method>
  78532. <doc>
  78533. <![CDATA[The main driver of the Rumen Parser.]]>
  78534. </doc>
  78535. </class>
  78536. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  78537. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  78538. <class name="TreePath" extends="java.lang.Object"
  78539. abstract="false"
  78540. static="false" final="false" visibility="public"
  78541. deprecated="not deprecated">
  78542. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  78543. static="false" final="false" visibility="public"
  78544. deprecated="not deprecated">
  78545. </constructor>
  78546. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  78547. static="false" final="false" visibility="public"
  78548. deprecated="not deprecated">
  78549. </constructor>
  78550. <method name="toString" return="java.lang.String"
  78551. abstract="false" native="false" synchronized="false"
  78552. static="false" final="false" visibility="public"
  78553. deprecated="not deprecated">
  78554. </method>
  78555. <doc>
  78556. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  78557. trees during rumen unit tests. If the trees are not identical, this chain
  78558. will be converted to a string which describes the path from the root to the
  78559. fields that did not compare.]]>
  78560. </doc>
  78561. </class>
  78562. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  78563. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  78564. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  78565. abstract="false"
  78566. static="false" final="false" visibility="public"
  78567. deprecated="not deprecated">
  78568. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  78569. static="false" final="false" visibility="public"
  78570. deprecated="not deprecated">
  78571. <doc>
  78572. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  78573. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  78574. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  78575. @param topology
  78576. The network topology.
  78577. @param defaultNode
  78578. The default node setting.]]>
  78579. </doc>
  78580. </constructor>
  78581. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  78582. static="false" final="false" visibility="public"
  78583. deprecated="not deprecated">
  78584. <exception name="IOException" type="java.io.IOException"/>
  78585. <doc>
  78586. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  78587. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  78588. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  78589. @param path Path to the JSON-encoded topology file.
  78590. @param conf
  78591. @param defaultNode
  78592. The default node setting.
  78593. @throws IOException]]>
  78594. </doc>
  78595. </constructor>
  78596. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  78597. static="false" final="false" visibility="public"
  78598. deprecated="not deprecated">
  78599. <exception name="IOException" type="java.io.IOException"/>
  78600. <doc>
  78601. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  78602. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  78603. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  78604. @param input The input stream for the JSON-encoded topology file.
  78605. @param defaultNode
  78606. The default node setting.
  78607. @throws IOException]]>
  78608. </doc>
  78609. </constructor>
  78610. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  78611. abstract="false" native="false" synchronized="false"
  78612. static="false" final="false" visibility="public"
  78613. deprecated="not deprecated">
  78614. </method>
  78615. <doc>
  78616. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  78617. obtained from job history logs.]]>
  78618. </doc>
  78619. </class>
  78620. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  78621. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  78622. <class name="ZombieJob" extends="java.lang.Object"
  78623. abstract="false"
  78624. static="false" final="false" visibility="public"
  78625. deprecated="not deprecated">
  78626. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  78627. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  78628. static="false" final="false" visibility="public"
  78629. deprecated="not deprecated">
  78630. <doc>
  78631. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  78632. {@link LoggedJob} passed in this parameter
  78633. @param job
  78634. The dead job this ZombieJob instance is based on.
  78635. @param cluster
  78636. The cluster topology where the dead job ran on. This argument can
  78637. be null if we do not have knowledge of the cluster topology.
  78638. @param seed
  78639. Seed for the random number generator for filling in information
  78640. not available from the ZombieJob.]]>
  78641. </doc>
  78642. </constructor>
  78643. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  78644. static="false" final="false" visibility="public"
  78645. deprecated="not deprecated">
  78646. <doc>
  78647. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  78648. {@link LoggedJob} passed in this parameter
  78649. @param job
  78650. The dead job this ZombieJob instance is based on.
  78651. @param cluster
  78652. The cluster topology where the dead job ran on. This argument can
  78653. be null if we do not have knowledge of the cluster topology.]]>
  78654. </doc>
  78655. </constructor>
  78656. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  78657. abstract="false" native="false" synchronized="true"
  78658. static="false" final="false" visibility="public"
  78659. deprecated="not deprecated">
  78660. </method>
  78661. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  78662. abstract="false" native="false" synchronized="false"
  78663. static="false" final="false" visibility="public"
  78664. deprecated="not deprecated">
  78665. </method>
  78666. <method name="getName" return="java.lang.String"
  78667. abstract="false" native="false" synchronized="false"
  78668. static="false" final="false" visibility="public"
  78669. deprecated="not deprecated">
  78670. </method>
  78671. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  78672. abstract="false" native="false" synchronized="false"
  78673. static="false" final="false" visibility="public"
  78674. deprecated="not deprecated">
  78675. </method>
  78676. <method name="getNumberMaps" return="int"
  78677. abstract="false" native="false" synchronized="false"
  78678. static="false" final="false" visibility="public"
  78679. deprecated="not deprecated">
  78680. </method>
  78681. <method name="getNumberReduces" return="int"
  78682. abstract="false" native="false" synchronized="false"
  78683. static="false" final="false" visibility="public"
  78684. deprecated="not deprecated">
  78685. </method>
  78686. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78687. abstract="false" native="false" synchronized="false"
  78688. static="false" final="false" visibility="public"
  78689. deprecated="not deprecated">
  78690. </method>
  78691. <method name="getSubmissionTime" return="long"
  78692. abstract="false" native="false" synchronized="false"
  78693. static="false" final="false" visibility="public"
  78694. deprecated="not deprecated">
  78695. </method>
  78696. <method name="getQueueName" return="java.lang.String"
  78697. abstract="false" native="false" synchronized="false"
  78698. static="false" final="false" visibility="public"
  78699. deprecated="not deprecated">
  78700. </method>
  78701. <method name="getNumLoggedMaps" return="int"
  78702. abstract="false" native="false" synchronized="false"
  78703. static="false" final="false" visibility="public"
  78704. deprecated="not deprecated">
  78705. <doc>
  78706. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  78707. @return The number of map tasks that are actually logged in the trace.]]>
  78708. </doc>
  78709. </method>
  78710. <method name="getNumLoggedReduces" return="int"
  78711. abstract="false" native="false" synchronized="false"
  78712. static="false" final="false" visibility="public"
  78713. deprecated="not deprecated">
  78714. <doc>
  78715. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  78716. @return The number of map tasks that are actually logged in the trace.]]>
  78717. </doc>
  78718. </method>
  78719. <method name="getUser" return="java.lang.String"
  78720. abstract="false" native="false" synchronized="false"
  78721. static="false" final="false" visibility="public"
  78722. deprecated="not deprecated">
  78723. </method>
  78724. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  78725. abstract="false" native="false" synchronized="false"
  78726. static="false" final="false" visibility="public"
  78727. deprecated="not deprecated">
  78728. <doc>
  78729. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  78730. This is mainly for debugging.
  78731. @return the underlining {@link LoggedJob} object]]>
  78732. </doc>
  78733. </method>
  78734. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  78735. abstract="false" native="false" synchronized="false"
  78736. static="false" final="false" visibility="public"
  78737. deprecated="not deprecated">
  78738. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  78739. <param name="taskNumber" type="int"/>
  78740. <param name="taskAttemptNumber" type="int"/>
  78741. <doc>
  78742. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  78743. taskType, taskNumber, and taskAttemptNumber. This function does not care
  78744. about locality, and follows the following decision logic: 1. Make up a
  78745. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  78746. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  78747. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  78748. {@link TaskAttemptInfo} from the trace.]]>
  78749. </doc>
  78750. </method>
  78751. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  78752. abstract="false" native="false" synchronized="false"
  78753. static="false" final="false" visibility="public"
  78754. deprecated="not deprecated">
  78755. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  78756. <param name="taskNumber" type="int"/>
  78757. </method>
  78758. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  78759. abstract="false" native="false" synchronized="false"
  78760. static="false" final="false" visibility="public"
  78761. deprecated="not deprecated">
  78762. <param name="taskNumber" type="int"/>
  78763. <param name="taskAttemptNumber" type="int"/>
  78764. <param name="locality" type="int"/>
  78765. <doc>
  78766. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  78767. taskType, taskNumber, and taskAttemptNumber. This function considers
  78768. locality, and follows the following decision logic: 1. Make up a
  78769. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  78770. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  78771. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  78772. from the trace, without considering locality. 4. If final state is
  78773. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  78774. scaled according to locality in simulation and locality in trace.]]>
  78775. </doc>
  78776. </method>
  78777. <doc>
  78778. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  78779. Each {@link ZombieJob} object represents a job in job history. For everything
  78780. that exists in job history, contents are returned unchanged faithfully. To
  78781. get input splits of a non-exist task, a non-exist task attempt, or an
  78782. ill-formed task attempt, proper objects are made up from statistical
  78783. sketches.]]>
  78784. </doc>
  78785. </class>
  78786. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  78787. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  78788. <class name="ZombieJobProducer" extends="java.lang.Object"
  78789. abstract="false"
  78790. static="false" final="false" visibility="public"
  78791. deprecated="not deprecated">
  78792. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  78793. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  78794. static="false" final="false" visibility="public"
  78795. deprecated="not deprecated">
  78796. <exception name="IOException" type="java.io.IOException"/>
  78797. <doc>
  78798. <![CDATA[Constructor
  78799. @param path
  78800. Path to the JSON trace file, possibly compressed.
  78801. @param cluster
  78802. The topology of the cluster that corresponds to the jobs in the
  78803. trace. The argument can be null if we do not have knowledge of the
  78804. cluster topology.
  78805. @param conf
  78806. @throws IOException]]>
  78807. </doc>
  78808. </constructor>
  78809. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  78810. static="false" final="false" visibility="public"
  78811. deprecated="not deprecated">
  78812. <exception name="IOException" type="java.io.IOException"/>
  78813. <doc>
  78814. <![CDATA[Constructor
  78815. @param path
  78816. Path to the JSON trace file, possibly compressed.
  78817. @param cluster
  78818. The topology of the cluster that corresponds to the jobs in the
  78819. trace. The argument can be null if we do not have knowledge of the
  78820. cluster topology.
  78821. @param conf
  78822. @param randomSeed
  78823. use a deterministic seed.
  78824. @throws IOException]]>
  78825. </doc>
  78826. </constructor>
  78827. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  78828. static="false" final="false" visibility="public"
  78829. deprecated="not deprecated">
  78830. <exception name="IOException" type="java.io.IOException"/>
  78831. <doc>
  78832. <![CDATA[Constructor
  78833. @param input
  78834. The input stream for the JSON trace.
  78835. @param cluster
  78836. The topology of the cluster that corresponds to the jobs in the
  78837. trace. The argument can be null if we do not have knowledge of the
  78838. cluster topology.
  78839. @throws IOException]]>
  78840. </doc>
  78841. </constructor>
  78842. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  78843. static="false" final="false" visibility="public"
  78844. deprecated="not deprecated">
  78845. <exception name="IOException" type="java.io.IOException"/>
  78846. <doc>
  78847. <![CDATA[Constructor
  78848. @param input
  78849. The input stream for the JSON trace.
  78850. @param cluster
  78851. The topology of the cluster that corresponds to the jobs in the
  78852. trace. The argument can be null if we do not have knowledge of the
  78853. cluster topology.
  78854. @param randomSeed
  78855. use a deterministic seed.
  78856. @throws IOException]]>
  78857. </doc>
  78858. </constructor>
  78859. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  78860. abstract="false" native="false" synchronized="false"
  78861. static="false" final="false" visibility="public"
  78862. deprecated="not deprecated">
  78863. <exception name="IOException" type="java.io.IOException"/>
  78864. </method>
  78865. <method name="close"
  78866. abstract="false" native="false" synchronized="false"
  78867. static="false" final="false" visibility="public"
  78868. deprecated="not deprecated">
  78869. <exception name="IOException" type="java.io.IOException"/>
  78870. </method>
  78871. <doc>
  78872. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  78873. </doc>
  78874. </class>
  78875. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  78876. </package>
  78877. </api>