hadoop_1.0.4.xml 3.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Wed Oct 17 21:04:24 UTC 2012 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.0.4"
  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/commons-io/commons-io/jars/commons-io-2.1.jar:/homes/hortonfo/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/homes/hortonfo/.ivy2/cache/commons-daemon/commons-daemon/jars/commons-daemon-1.0.1.jar:/homes/hortonfo/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/homes/hortonfo/.ivy2/cache/commons-net/commons-net/jars/commons-net-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-x64/lib/tools.jar -sourcepath /grid/0/dev/mfoley/hadoop-1.0/src/core:/grid/0/dev/mfoley/hadoop-1.0/src/mapred:/grid/0/dev/mfoley/hadoop-1.0/src/tools -apidir /grid/0/dev/mfoley/hadoop-1.0/lib/jdiff -apiname hadoop 1.0.4 -->
  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. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  1640. transient="false" volatile="false"
  1641. static="true" final="true" visibility="public"
  1642. deprecated="not deprecated">
  1643. </field>
  1644. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  1645. transient="false" volatile="false"
  1646. static="true" final="true" visibility="public"
  1647. deprecated="not deprecated">
  1648. <doc>
  1649. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  1650. </doc>
  1651. </field>
  1652. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY" type="java.lang.String"
  1653. transient="false" volatile="false"
  1654. static="true" final="true" visibility="public"
  1655. deprecated="not deprecated">
  1656. <doc>
  1657. <![CDATA[Internal buffer size for Snappy compressor/decompressors]]>
  1658. </doc>
  1659. </field>
  1660. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_DEFAULT" type="int"
  1661. transient="false" volatile="false"
  1662. static="true" final="true" visibility="public"
  1663. deprecated="not deprecated">
  1664. <doc>
  1665. <![CDATA[Default value for IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY]]>
  1666. </doc>
  1667. </field>
  1668. <doc>
  1669. <![CDATA[This class contains constants for configuration keys used
  1670. in the common code.]]>
  1671. </doc>
  1672. </class>
  1673. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1674. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1675. <class name="ContentSummary" extends="java.lang.Object"
  1676. abstract="false"
  1677. static="false" final="false" visibility="public"
  1678. deprecated="not deprecated">
  1679. <implements name="org.apache.hadoop.io.Writable"/>
  1680. <constructor name="ContentSummary"
  1681. static="false" final="false" visibility="public"
  1682. deprecated="not deprecated">
  1683. <doc>
  1684. <![CDATA[Constructor]]>
  1685. </doc>
  1686. </constructor>
  1687. <constructor name="ContentSummary" type="long, long, long"
  1688. static="false" final="false" visibility="public"
  1689. deprecated="not deprecated">
  1690. <doc>
  1691. <![CDATA[Constructor]]>
  1692. </doc>
  1693. </constructor>
  1694. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1695. static="false" final="false" visibility="public"
  1696. deprecated="not deprecated">
  1697. <doc>
  1698. <![CDATA[Constructor]]>
  1699. </doc>
  1700. </constructor>
  1701. <method name="getLength" return="long"
  1702. abstract="false" native="false" synchronized="false"
  1703. static="false" final="false" visibility="public"
  1704. deprecated="not deprecated">
  1705. <doc>
  1706. <![CDATA[@return the length]]>
  1707. </doc>
  1708. </method>
  1709. <method name="getDirectoryCount" return="long"
  1710. abstract="false" native="false" synchronized="false"
  1711. static="false" final="false" visibility="public"
  1712. deprecated="not deprecated">
  1713. <doc>
  1714. <![CDATA[@return the directory count]]>
  1715. </doc>
  1716. </method>
  1717. <method name="getFileCount" return="long"
  1718. abstract="false" native="false" synchronized="false"
  1719. static="false" final="false" visibility="public"
  1720. deprecated="not deprecated">
  1721. <doc>
  1722. <![CDATA[@return the file count]]>
  1723. </doc>
  1724. </method>
  1725. <method name="getQuota" return="long"
  1726. abstract="false" native="false" synchronized="false"
  1727. static="false" final="false" visibility="public"
  1728. deprecated="not deprecated">
  1729. <doc>
  1730. <![CDATA[Return the directory quota]]>
  1731. </doc>
  1732. </method>
  1733. <method name="getSpaceConsumed" return="long"
  1734. abstract="false" native="false" synchronized="false"
  1735. static="false" final="false" visibility="public"
  1736. deprecated="not deprecated">
  1737. <doc>
  1738. <![CDATA[Retuns (disk) space consumed]]>
  1739. </doc>
  1740. </method>
  1741. <method name="getSpaceQuota" return="long"
  1742. abstract="false" native="false" synchronized="false"
  1743. static="false" final="false" visibility="public"
  1744. deprecated="not deprecated">
  1745. <doc>
  1746. <![CDATA[Returns (disk) space quota]]>
  1747. </doc>
  1748. </method>
  1749. <method name="write"
  1750. abstract="false" native="false" synchronized="false"
  1751. static="false" final="false" visibility="public"
  1752. deprecated="not deprecated">
  1753. <param name="out" type="java.io.DataOutput"/>
  1754. <exception name="IOException" type="java.io.IOException"/>
  1755. <doc>
  1756. <![CDATA[{@inheritDoc}]]>
  1757. </doc>
  1758. </method>
  1759. <method name="readFields"
  1760. abstract="false" native="false" synchronized="false"
  1761. static="false" final="false" visibility="public"
  1762. deprecated="not deprecated">
  1763. <param name="in" type="java.io.DataInput"/>
  1764. <exception name="IOException" type="java.io.IOException"/>
  1765. <doc>
  1766. <![CDATA[{@inheritDoc}]]>
  1767. </doc>
  1768. </method>
  1769. <method name="getHeader" return="java.lang.String"
  1770. abstract="false" native="false" synchronized="false"
  1771. static="true" final="false" visibility="public"
  1772. deprecated="not deprecated">
  1773. <param name="qOption" type="boolean"/>
  1774. <doc>
  1775. <![CDATA[Return the header of the output.
  1776. if qOption is false, output directory count, file count, and content size;
  1777. if qOption is true, output quota and remaining quota as well.
  1778. @param qOption a flag indicating if quota needs to be printed or not
  1779. @return the header of the output]]>
  1780. </doc>
  1781. </method>
  1782. <method name="toString" return="java.lang.String"
  1783. abstract="false" native="false" synchronized="false"
  1784. static="false" final="false" visibility="public"
  1785. deprecated="not deprecated">
  1786. <doc>
  1787. <![CDATA[{@inheritDoc}]]>
  1788. </doc>
  1789. </method>
  1790. <method name="toString" return="java.lang.String"
  1791. abstract="false" native="false" synchronized="false"
  1792. static="false" final="false" visibility="public"
  1793. deprecated="not deprecated">
  1794. <param name="qOption" type="boolean"/>
  1795. <doc>
  1796. <![CDATA[Return the string representation of the object in the output format.
  1797. if qOption is false, output directory count, file count, and content size;
  1798. if qOption is true, output quota and remaining quota as well.
  1799. @param qOption a flag indicating if quota needs to be printed or not
  1800. @return the string representation of the object]]>
  1801. </doc>
  1802. </method>
  1803. <doc>
  1804. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1805. </doc>
  1806. </class>
  1807. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1808. <!-- start class org.apache.hadoop.fs.DF -->
  1809. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1810. abstract="false"
  1811. static="false" final="false" visibility="public"
  1812. deprecated="not deprecated">
  1813. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1814. static="false" final="false" visibility="public"
  1815. deprecated="not deprecated">
  1816. <exception name="IOException" type="java.io.IOException"/>
  1817. </constructor>
  1818. <constructor name="DF" type="java.io.File, long"
  1819. static="false" final="false" visibility="public"
  1820. deprecated="not deprecated">
  1821. <exception name="IOException" type="java.io.IOException"/>
  1822. </constructor>
  1823. <method name="getDirPath" return="java.lang.String"
  1824. abstract="false" native="false" synchronized="false"
  1825. static="false" final="false" visibility="public"
  1826. deprecated="not deprecated">
  1827. <doc>
  1828. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1829. </doc>
  1830. </method>
  1831. <method name="getFilesystem" return="java.lang.String"
  1832. abstract="false" native="false" synchronized="false"
  1833. static="false" final="false" visibility="public"
  1834. deprecated="not deprecated">
  1835. <exception name="IOException" type="java.io.IOException"/>
  1836. <doc>
  1837. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1838. </doc>
  1839. </method>
  1840. <method name="getCapacity" return="long"
  1841. abstract="false" native="false" synchronized="false"
  1842. static="false" final="false" visibility="public"
  1843. deprecated="not deprecated">
  1844. <doc>
  1845. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1846. </doc>
  1847. </method>
  1848. <method name="getUsed" return="long"
  1849. abstract="false" native="false" synchronized="false"
  1850. static="false" final="false" visibility="public"
  1851. deprecated="not deprecated">
  1852. <doc>
  1853. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1854. </doc>
  1855. </method>
  1856. <method name="getAvailable" return="long"
  1857. abstract="false" native="false" synchronized="false"
  1858. static="false" final="false" visibility="public"
  1859. deprecated="not deprecated">
  1860. <doc>
  1861. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1862. </doc>
  1863. </method>
  1864. <method name="getPercentUsed" return="int"
  1865. abstract="false" native="false" synchronized="false"
  1866. static="false" final="false" visibility="public"
  1867. deprecated="not deprecated">
  1868. <doc>
  1869. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1870. </doc>
  1871. </method>
  1872. <method name="getMount" return="java.lang.String"
  1873. abstract="false" native="false" synchronized="false"
  1874. static="false" final="false" visibility="public"
  1875. deprecated="not deprecated">
  1876. <exception name="IOException" type="java.io.IOException"/>
  1877. <doc>
  1878. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1879. </doc>
  1880. </method>
  1881. <method name="toString" return="java.lang.String"
  1882. abstract="false" native="false" synchronized="false"
  1883. static="false" final="false" visibility="public"
  1884. deprecated="not deprecated">
  1885. </method>
  1886. <method name="getExecString" return="java.lang.String[]"
  1887. abstract="false" native="false" synchronized="false"
  1888. static="false" final="false" visibility="protected"
  1889. deprecated="not deprecated">
  1890. </method>
  1891. <method name="parseExecResult"
  1892. abstract="false" native="false" synchronized="false"
  1893. static="false" final="false" visibility="protected"
  1894. deprecated="not deprecated">
  1895. <param name="lines" type="java.io.BufferedReader"/>
  1896. <exception name="IOException" type="java.io.IOException"/>
  1897. </method>
  1898. <method name="main"
  1899. abstract="false" native="false" synchronized="false"
  1900. static="true" final="false" visibility="public"
  1901. deprecated="not deprecated">
  1902. <param name="args" type="java.lang.String[]"/>
  1903. <exception name="Exception" type="java.lang.Exception"/>
  1904. </method>
  1905. <field name="DF_INTERVAL_DEFAULT" type="long"
  1906. transient="false" volatile="false"
  1907. static="true" final="true" visibility="public"
  1908. deprecated="not deprecated">
  1909. <doc>
  1910. <![CDATA[Default DF refresh interval.]]>
  1911. </doc>
  1912. </field>
  1913. <doc>
  1914. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  1915. mount points, and java.io.File for space utilization. Tested on Linux,
  1916. FreeBSD, Cygwin.]]>
  1917. </doc>
  1918. </class>
  1919. <!-- end class org.apache.hadoop.fs.DF -->
  1920. <!-- start class org.apache.hadoop.fs.DU -->
  1921. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1922. abstract="false"
  1923. static="false" final="false" visibility="public"
  1924. deprecated="not deprecated">
  1925. <constructor name="DU" type="java.io.File, long"
  1926. static="false" final="false" visibility="public"
  1927. deprecated="not deprecated">
  1928. <exception name="IOException" type="java.io.IOException"/>
  1929. <doc>
  1930. <![CDATA[Keeps track of disk usage.
  1931. @param path the path to check disk usage in
  1932. @param interval refresh the disk usage at this interval
  1933. @throws IOException if we fail to refresh the disk usage]]>
  1934. </doc>
  1935. </constructor>
  1936. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1937. static="false" final="false" visibility="public"
  1938. deprecated="not deprecated">
  1939. <exception name="IOException" type="java.io.IOException"/>
  1940. <doc>
  1941. <![CDATA[Keeps track of disk usage.
  1942. @param path the path to check disk usage in
  1943. @param conf configuration object
  1944. @throws IOException if we fail to refresh the disk usage]]>
  1945. </doc>
  1946. </constructor>
  1947. <method name="decDfsUsed"
  1948. abstract="false" native="false" synchronized="false"
  1949. static="false" final="false" visibility="public"
  1950. deprecated="not deprecated">
  1951. <param name="value" type="long"/>
  1952. <doc>
  1953. <![CDATA[Decrease how much disk space we use.
  1954. @param value decrease by this value]]>
  1955. </doc>
  1956. </method>
  1957. <method name="incDfsUsed"
  1958. abstract="false" native="false" synchronized="false"
  1959. static="false" final="false" visibility="public"
  1960. deprecated="not deprecated">
  1961. <param name="value" type="long"/>
  1962. <doc>
  1963. <![CDATA[Increase how much disk space we use.
  1964. @param value increase by this value]]>
  1965. </doc>
  1966. </method>
  1967. <method name="getUsed" return="long"
  1968. abstract="false" native="false" synchronized="false"
  1969. static="false" final="false" visibility="public"
  1970. deprecated="not deprecated">
  1971. <exception name="IOException" type="java.io.IOException"/>
  1972. <doc>
  1973. <![CDATA[@return disk space used
  1974. @throws IOException if the shell command fails]]>
  1975. </doc>
  1976. </method>
  1977. <method name="getDirPath" return="java.lang.String"
  1978. abstract="false" native="false" synchronized="false"
  1979. static="false" final="false" visibility="public"
  1980. deprecated="not deprecated">
  1981. <doc>
  1982. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  1983. </doc>
  1984. </method>
  1985. <method name="start"
  1986. abstract="false" native="false" synchronized="false"
  1987. static="false" final="false" visibility="public"
  1988. deprecated="not deprecated">
  1989. <doc>
  1990. <![CDATA[Start the disk usage checking thread.]]>
  1991. </doc>
  1992. </method>
  1993. <method name="shutdown"
  1994. abstract="false" native="false" synchronized="false"
  1995. static="false" final="false" visibility="public"
  1996. deprecated="not deprecated">
  1997. <doc>
  1998. <![CDATA[Shut down the refreshing thread.]]>
  1999. </doc>
  2000. </method>
  2001. <method name="toString" return="java.lang.String"
  2002. abstract="false" native="false" synchronized="false"
  2003. static="false" final="false" visibility="public"
  2004. deprecated="not deprecated">
  2005. </method>
  2006. <method name="getExecString" return="java.lang.String[]"
  2007. abstract="false" native="false" synchronized="false"
  2008. static="false" final="false" visibility="protected"
  2009. deprecated="not deprecated">
  2010. </method>
  2011. <method name="parseExecResult"
  2012. abstract="false" native="false" synchronized="false"
  2013. static="false" final="false" visibility="protected"
  2014. deprecated="not deprecated">
  2015. <param name="lines" type="java.io.BufferedReader"/>
  2016. <exception name="IOException" type="java.io.IOException"/>
  2017. </method>
  2018. <method name="main"
  2019. abstract="false" native="false" synchronized="false"
  2020. static="true" final="false" visibility="public"
  2021. deprecated="not deprecated">
  2022. <param name="args" type="java.lang.String[]"/>
  2023. <exception name="Exception" type="java.lang.Exception"/>
  2024. </method>
  2025. <doc>
  2026. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2027. </doc>
  2028. </class>
  2029. <!-- end class org.apache.hadoop.fs.DU -->
  2030. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2031. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2032. abstract="false"
  2033. static="false" final="false" visibility="public"
  2034. deprecated="not deprecated">
  2035. <constructor name="FileAlreadyExistsException"
  2036. static="false" final="false" visibility="public"
  2037. deprecated="not deprecated">
  2038. </constructor>
  2039. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2040. static="false" final="false" visibility="public"
  2041. deprecated="not deprecated">
  2042. </constructor>
  2043. <doc>
  2044. <![CDATA[Used when target file already exists for any operation and
  2045. is not configured to be overwritten.]]>
  2046. </doc>
  2047. </class>
  2048. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2049. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2050. <class name="FileChecksum" extends="java.lang.Object"
  2051. abstract="true"
  2052. static="false" final="false" visibility="public"
  2053. deprecated="not deprecated">
  2054. <implements name="org.apache.hadoop.io.Writable"/>
  2055. <constructor name="FileChecksum"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. </constructor>
  2059. <method name="getAlgorithmName" return="java.lang.String"
  2060. abstract="true" native="false" synchronized="false"
  2061. static="false" final="false" visibility="public"
  2062. deprecated="not deprecated">
  2063. <doc>
  2064. <![CDATA[The checksum algorithm name]]>
  2065. </doc>
  2066. </method>
  2067. <method name="getLength" return="int"
  2068. abstract="true" native="false" synchronized="false"
  2069. static="false" final="false" visibility="public"
  2070. deprecated="not deprecated">
  2071. <doc>
  2072. <![CDATA[The length of the checksum in bytes]]>
  2073. </doc>
  2074. </method>
  2075. <method name="getBytes" return="byte[]"
  2076. abstract="true" native="false" synchronized="false"
  2077. static="false" final="false" visibility="public"
  2078. deprecated="not deprecated">
  2079. <doc>
  2080. <![CDATA[The value of the checksum in bytes]]>
  2081. </doc>
  2082. </method>
  2083. <method name="equals" return="boolean"
  2084. abstract="false" native="false" synchronized="false"
  2085. static="false" final="false" visibility="public"
  2086. deprecated="not deprecated">
  2087. <param name="other" type="java.lang.Object"/>
  2088. <doc>
  2089. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2090. </doc>
  2091. </method>
  2092. <method name="hashCode" return="int"
  2093. abstract="false" native="false" synchronized="false"
  2094. static="false" final="false" visibility="public"
  2095. deprecated="not deprecated">
  2096. <doc>
  2097. <![CDATA[{@inheritDoc}]]>
  2098. </doc>
  2099. </method>
  2100. <doc>
  2101. <![CDATA[An abstract class representing file checksums for files.]]>
  2102. </doc>
  2103. </class>
  2104. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2105. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2106. <class name="FileStatus" extends="java.lang.Object"
  2107. abstract="false"
  2108. static="false" final="false" visibility="public"
  2109. deprecated="not deprecated">
  2110. <implements name="org.apache.hadoop.io.Writable"/>
  2111. <implements name="java.lang.Comparable"/>
  2112. <constructor name="FileStatus"
  2113. static="false" final="false" visibility="public"
  2114. deprecated="not deprecated">
  2115. </constructor>
  2116. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2117. static="false" final="false" visibility="public"
  2118. deprecated="not deprecated">
  2119. </constructor>
  2120. <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"
  2121. static="false" final="false" visibility="public"
  2122. deprecated="not deprecated">
  2123. </constructor>
  2124. <method name="getLen" return="long"
  2125. abstract="false" native="false" synchronized="false"
  2126. static="false" final="false" visibility="public"
  2127. deprecated="not deprecated">
  2128. </method>
  2129. <method name="isDir" return="boolean"
  2130. abstract="false" native="false" synchronized="false"
  2131. static="false" final="false" visibility="public"
  2132. deprecated="not deprecated">
  2133. <doc>
  2134. <![CDATA[Is this a directory?
  2135. @return true if this is a directory]]>
  2136. </doc>
  2137. </method>
  2138. <method name="getBlockSize" return="long"
  2139. abstract="false" native="false" synchronized="false"
  2140. static="false" final="false" visibility="public"
  2141. deprecated="not deprecated">
  2142. <doc>
  2143. <![CDATA[Get the block size of the file.
  2144. @return the number of bytes]]>
  2145. </doc>
  2146. </method>
  2147. <method name="getReplication" return="short"
  2148. abstract="false" native="false" synchronized="false"
  2149. static="false" final="false" visibility="public"
  2150. deprecated="not deprecated">
  2151. <doc>
  2152. <![CDATA[Get the replication factor of a file.
  2153. @return the replication factor of a file.]]>
  2154. </doc>
  2155. </method>
  2156. <method name="getModificationTime" return="long"
  2157. abstract="false" native="false" synchronized="false"
  2158. static="false" final="false" visibility="public"
  2159. deprecated="not deprecated">
  2160. <doc>
  2161. <![CDATA[Get the modification time of the file.
  2162. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2163. </doc>
  2164. </method>
  2165. <method name="getAccessTime" return="long"
  2166. abstract="false" native="false" synchronized="false"
  2167. static="false" final="false" visibility="public"
  2168. deprecated="not deprecated">
  2169. <doc>
  2170. <![CDATA[Get the access time of the file.
  2171. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2172. </doc>
  2173. </method>
  2174. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2175. abstract="false" native="false" synchronized="false"
  2176. static="false" final="false" visibility="public"
  2177. deprecated="not deprecated">
  2178. <doc>
  2179. <![CDATA[Get FsPermission associated with the file.
  2180. @return permssion. If a filesystem does not have a notion of permissions
  2181. or if permissions could not be determined, then default
  2182. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2183. </doc>
  2184. </method>
  2185. <method name="getOwner" return="java.lang.String"
  2186. abstract="false" native="false" synchronized="false"
  2187. static="false" final="false" visibility="public"
  2188. deprecated="not deprecated">
  2189. <doc>
  2190. <![CDATA[Get the owner of the file.
  2191. @return owner of the file. The string could be empty if there is no
  2192. notion of owner of a file in a filesystem or if it could not
  2193. be determined (rare).]]>
  2194. </doc>
  2195. </method>
  2196. <method name="getGroup" return="java.lang.String"
  2197. abstract="false" native="false" synchronized="false"
  2198. static="false" final="false" visibility="public"
  2199. deprecated="not deprecated">
  2200. <doc>
  2201. <![CDATA[Get the group associated with the file.
  2202. @return group for the file. The string could be empty if there is no
  2203. notion of group of a file in a filesystem or if it could not
  2204. be determined (rare).]]>
  2205. </doc>
  2206. </method>
  2207. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2208. abstract="false" native="false" synchronized="false"
  2209. static="false" final="false" visibility="public"
  2210. deprecated="not deprecated">
  2211. </method>
  2212. <method name="setPermission"
  2213. abstract="false" native="false" synchronized="false"
  2214. static="false" final="false" visibility="protected"
  2215. deprecated="not deprecated">
  2216. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2217. <doc>
  2218. <![CDATA[Sets permission.
  2219. @param permission if permission is null, default value is set]]>
  2220. </doc>
  2221. </method>
  2222. <method name="setOwner"
  2223. abstract="false" native="false" synchronized="false"
  2224. static="false" final="false" visibility="protected"
  2225. deprecated="not deprecated">
  2226. <param name="owner" type="java.lang.String"/>
  2227. <doc>
  2228. <![CDATA[Sets owner.
  2229. @param owner if it is null, default value is set]]>
  2230. </doc>
  2231. </method>
  2232. <method name="setGroup"
  2233. abstract="false" native="false" synchronized="false"
  2234. static="false" final="false" visibility="protected"
  2235. deprecated="not deprecated">
  2236. <param name="group" type="java.lang.String"/>
  2237. <doc>
  2238. <![CDATA[Sets group.
  2239. @param group if it is null, default value is set]]>
  2240. </doc>
  2241. </method>
  2242. <method name="write"
  2243. abstract="false" native="false" synchronized="false"
  2244. static="false" final="false" visibility="public"
  2245. deprecated="not deprecated">
  2246. <param name="out" type="java.io.DataOutput"/>
  2247. <exception name="IOException" type="java.io.IOException"/>
  2248. </method>
  2249. <method name="readFields"
  2250. abstract="false" native="false" synchronized="false"
  2251. static="false" final="false" visibility="public"
  2252. deprecated="not deprecated">
  2253. <param name="in" type="java.io.DataInput"/>
  2254. <exception name="IOException" type="java.io.IOException"/>
  2255. </method>
  2256. <method name="compareTo" return="int"
  2257. abstract="false" native="false" synchronized="false"
  2258. static="false" final="false" visibility="public"
  2259. deprecated="not deprecated">
  2260. <param name="o" type="java.lang.Object"/>
  2261. <doc>
  2262. <![CDATA[Compare this object to another object
  2263. @param o the object to be compared.
  2264. @return a negative integer, zero, or a positive integer as this object
  2265. is less than, equal to, or greater than the specified object.
  2266. @throws ClassCastException if the specified object's is not of
  2267. type FileStatus]]>
  2268. </doc>
  2269. </method>
  2270. <method name="equals" return="boolean"
  2271. abstract="false" native="false" synchronized="false"
  2272. static="false" final="false" visibility="public"
  2273. deprecated="not deprecated">
  2274. <param name="o" type="java.lang.Object"/>
  2275. <doc>
  2276. <![CDATA[Compare if this object is equal to another object
  2277. @param o the object to be compared.
  2278. @return true if two file status has the same path name; false if not.]]>
  2279. </doc>
  2280. </method>
  2281. <method name="hashCode" return="int"
  2282. abstract="false" native="false" synchronized="false"
  2283. static="false" final="false" visibility="public"
  2284. deprecated="not deprecated">
  2285. <doc>
  2286. <![CDATA[Returns a hash code value for the object, which is defined as
  2287. the hash code of the path name.
  2288. @return a hash code value for the path name.]]>
  2289. </doc>
  2290. </method>
  2291. <doc>
  2292. <![CDATA[Interface that represents the client side information for a file.]]>
  2293. </doc>
  2294. </class>
  2295. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2296. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2297. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2298. abstract="true"
  2299. static="false" final="false" visibility="public"
  2300. deprecated="not deprecated">
  2301. <implements name="java.io.Closeable"/>
  2302. <constructor name="FileSystem"
  2303. static="false" final="false" visibility="protected"
  2304. deprecated="not deprecated">
  2305. </constructor>
  2306. <method name="addFileSystemForTesting"
  2307. abstract="false" native="false" synchronized="false"
  2308. static="true" final="false" visibility="public"
  2309. deprecated="not deprecated">
  2310. <param name="uri" type="java.net.URI"/>
  2311. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2312. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2313. <exception name="IOException" type="java.io.IOException"/>
  2314. <doc>
  2315. <![CDATA[This method adds a file system for testing so that we can find it later.
  2316. It is only for testing.
  2317. @param uri the uri to store it under
  2318. @param conf the configuration to store it under
  2319. @param fs the file system to store
  2320. @throws IOException]]>
  2321. </doc>
  2322. </method>
  2323. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2324. abstract="false" native="false" synchronized="false"
  2325. static="true" final="false" visibility="public"
  2326. deprecated="not deprecated">
  2327. <param name="uri" type="java.net.URI"/>
  2328. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2329. <param name="user" type="java.lang.String"/>
  2330. <exception name="IOException" type="java.io.IOException"/>
  2331. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2332. </method>
  2333. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2334. abstract="false" native="false" synchronized="false"
  2335. static="true" final="false" visibility="public"
  2336. deprecated="not deprecated">
  2337. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2338. <exception name="IOException" type="java.io.IOException"/>
  2339. <doc>
  2340. <![CDATA[Returns the configured filesystem implementation.]]>
  2341. </doc>
  2342. </method>
  2343. <method name="getDefaultUri" return="java.net.URI"
  2344. abstract="false" native="false" synchronized="false"
  2345. static="true" final="false" visibility="public"
  2346. deprecated="not deprecated">
  2347. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2348. <doc>
  2349. <![CDATA[Get the default filesystem URI from a configuration.
  2350. @param conf the configuration to access
  2351. @return the uri of the default filesystem]]>
  2352. </doc>
  2353. </method>
  2354. <method name="setDefaultUri"
  2355. abstract="false" native="false" synchronized="false"
  2356. static="true" final="false" visibility="public"
  2357. deprecated="not deprecated">
  2358. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2359. <param name="uri" type="java.net.URI"/>
  2360. <doc>
  2361. <![CDATA[Set the default filesystem URI in a configuration.
  2362. @param conf the configuration to alter
  2363. @param uri the new default filesystem uri]]>
  2364. </doc>
  2365. </method>
  2366. <method name="setDefaultUri"
  2367. abstract="false" native="false" synchronized="false"
  2368. static="true" final="false" visibility="public"
  2369. deprecated="not deprecated">
  2370. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2371. <param name="uri" type="java.lang.String"/>
  2372. <doc>
  2373. <![CDATA[Set the default filesystem URI in a configuration.
  2374. @param conf the configuration to alter
  2375. @param uri the new default filesystem uri]]>
  2376. </doc>
  2377. </method>
  2378. <method name="initialize"
  2379. abstract="false" native="false" synchronized="false"
  2380. static="false" final="false" visibility="public"
  2381. deprecated="not deprecated">
  2382. <param name="name" type="java.net.URI"/>
  2383. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2384. <exception name="IOException" type="java.io.IOException"/>
  2385. <doc>
  2386. <![CDATA[Called after a new FileSystem instance is constructed.
  2387. @param name a uri whose authority section names the host, port, etc.
  2388. for this FileSystem
  2389. @param conf the configuration]]>
  2390. </doc>
  2391. </method>
  2392. <method name="getUri" return="java.net.URI"
  2393. abstract="true" native="false" synchronized="false"
  2394. static="false" final="false" visibility="public"
  2395. deprecated="not deprecated">
  2396. <doc>
  2397. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2398. </doc>
  2399. </method>
  2400. <method name="getCanonicalUri" return="java.net.URI"
  2401. abstract="false" native="false" synchronized="false"
  2402. static="false" final="false" visibility="protected"
  2403. deprecated="not deprecated">
  2404. <doc>
  2405. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2406. @return URI
  2407. @see NetUtils#getCanonicalUri(URI, int)]]>
  2408. </doc>
  2409. </method>
  2410. <method name="getDefaultPort" return="int"
  2411. abstract="false" native="false" synchronized="false"
  2412. static="false" final="false" visibility="protected"
  2413. deprecated="not deprecated">
  2414. <doc>
  2415. <![CDATA[Get the default port for this file system.
  2416. @return the default port or 0 if there isn't one]]>
  2417. </doc>
  2418. </method>
  2419. <method name="getCanonicalServiceName" return="java.lang.String"
  2420. abstract="false" native="false" synchronized="false"
  2421. static="false" final="false" visibility="public"
  2422. deprecated="not deprecated">
  2423. <doc>
  2424. <![CDATA[Get a canonical service name for this file system. The token cache is
  2425. the only user of this value, and uses it to lookup this filesystem's
  2426. service tokens. The token cache will not attempt to acquire tokens if the
  2427. service is null.
  2428. @return a service string that uniquely identifies this file system, null
  2429. if the filesystem does not implement tokens
  2430. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2431. </doc>
  2432. </method>
  2433. <method name="getName" return="java.lang.String"
  2434. abstract="false" native="false" synchronized="false"
  2435. static="false" final="false" visibility="public"
  2436. deprecated="call #getUri() instead.">
  2437. <doc>
  2438. <![CDATA[@deprecated call #getUri() instead.]]>
  2439. </doc>
  2440. </method>
  2441. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2442. abstract="false" native="false" synchronized="false"
  2443. static="true" final="false" visibility="public"
  2444. deprecated="call #get(URI,Configuration) instead.">
  2445. <param name="name" type="java.lang.String"/>
  2446. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2447. <exception name="IOException" type="java.io.IOException"/>
  2448. <doc>
  2449. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2450. </doc>
  2451. </method>
  2452. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2453. abstract="false" native="false" synchronized="false"
  2454. static="true" final="false" visibility="public"
  2455. deprecated="not deprecated">
  2456. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2457. <exception name="IOException" type="java.io.IOException"/>
  2458. <doc>
  2459. <![CDATA[Get the local file syste
  2460. @param conf the configuration to configure the file system with
  2461. @return a LocalFileSystem]]>
  2462. </doc>
  2463. </method>
  2464. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2465. abstract="false" native="false" synchronized="false"
  2466. static="true" final="false" visibility="public"
  2467. deprecated="not deprecated">
  2468. <param name="uri" type="java.net.URI"/>
  2469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2470. <exception name="IOException" type="java.io.IOException"/>
  2471. <doc>
  2472. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2473. of the URI determines a configuration property name,
  2474. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2475. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2476. </doc>
  2477. </method>
  2478. <method name="closeAll"
  2479. abstract="false" native="false" synchronized="false"
  2480. static="true" final="false" visibility="public"
  2481. deprecated="not deprecated">
  2482. <exception name="IOException" type="java.io.IOException"/>
  2483. <doc>
  2484. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2485. used anymore.
  2486. @throws IOException]]>
  2487. </doc>
  2488. </method>
  2489. <method name="closeAllForUGI"
  2490. abstract="false" native="false" synchronized="false"
  2491. static="true" final="false" visibility="public"
  2492. deprecated="not deprecated">
  2493. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2494. <exception name="IOException" type="java.io.IOException"/>
  2495. <doc>
  2496. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2497. are not used anymore.
  2498. @param ugi
  2499. @throws IOException]]>
  2500. </doc>
  2501. </method>
  2502. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2503. abstract="false" native="false" synchronized="false"
  2504. static="false" final="false" visibility="public"
  2505. deprecated="not deprecated">
  2506. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2507. <doc>
  2508. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2509. </doc>
  2510. </method>
  2511. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2512. abstract="false" native="false" synchronized="false"
  2513. static="true" final="false" visibility="public"
  2514. deprecated="not deprecated">
  2515. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2516. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2517. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2518. <exception name="IOException" type="java.io.IOException"/>
  2519. <doc>
  2520. <![CDATA[create a file with the provided permission
  2521. The permission of the file is set to be the provided permission as in
  2522. setPermission, not permission&~umask
  2523. It is implemented using two RPCs. It is understood that it is inefficient,
  2524. but the implementation is thread-safe. The other option is to change the
  2525. value of umask in configuration to be 0, but it is not thread-safe.
  2526. @param fs file system handle
  2527. @param file the name of the file to be created
  2528. @param permission the permission of the file
  2529. @return an output stream
  2530. @throws IOException]]>
  2531. </doc>
  2532. </method>
  2533. <method name="mkdirs" return="boolean"
  2534. abstract="false" native="false" synchronized="false"
  2535. static="true" final="false" visibility="public"
  2536. deprecated="not deprecated">
  2537. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2538. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2539. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2540. <exception name="IOException" type="java.io.IOException"/>
  2541. <doc>
  2542. <![CDATA[create a directory with the provided permission
  2543. The permission of the directory is set to be the provided permission as in
  2544. setPermission, not permission&~umask
  2545. @see #create(FileSystem, Path, FsPermission)
  2546. @param fs file system handle
  2547. @param dir the name of the directory to be created
  2548. @param permission the permission of the directory
  2549. @return true if the directory creation succeeds; false otherwise
  2550. @throws IOException]]>
  2551. </doc>
  2552. </method>
  2553. <method name="checkPath"
  2554. abstract="false" native="false" synchronized="false"
  2555. static="false" final="false" visibility="protected"
  2556. deprecated="not deprecated">
  2557. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2558. <doc>
  2559. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2560. </doc>
  2561. </method>
  2562. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2563. abstract="false" native="false" synchronized="false"
  2564. static="false" final="false" visibility="public"
  2565. deprecated="not deprecated">
  2566. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2567. <param name="start" type="long"/>
  2568. <param name="len" type="long"/>
  2569. <exception name="IOException" type="java.io.IOException"/>
  2570. <doc>
  2571. <![CDATA[Return an array containing hostnames, offset and size of
  2572. portions of the given file. For a nonexistent
  2573. file or regions, null will be returned.
  2574. This call is most helpful with DFS, where it returns
  2575. hostnames of machines that contain the given file.
  2576. The FileSystem will simply return an elt containing 'localhost'.]]>
  2577. </doc>
  2578. </method>
  2579. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2580. abstract="true" native="false" synchronized="false"
  2581. static="false" final="false" visibility="public"
  2582. deprecated="not deprecated">
  2583. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2584. <param name="bufferSize" type="int"/>
  2585. <exception name="IOException" type="java.io.IOException"/>
  2586. <doc>
  2587. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2588. @param f the file name to open
  2589. @param bufferSize the size of the buffer to be used.]]>
  2590. </doc>
  2591. </method>
  2592. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2593. abstract="false" native="false" synchronized="false"
  2594. static="false" final="false" visibility="public"
  2595. deprecated="not deprecated">
  2596. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2597. <exception name="IOException" type="java.io.IOException"/>
  2598. <doc>
  2599. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2600. @param f the file to open]]>
  2601. </doc>
  2602. </method>
  2603. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2604. abstract="false" native="false" synchronized="false"
  2605. static="false" final="false" visibility="public"
  2606. deprecated="not deprecated">
  2607. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2608. <exception name="IOException" type="java.io.IOException"/>
  2609. <doc>
  2610. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2611. Files are overwritten by default.]]>
  2612. </doc>
  2613. </method>
  2614. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2615. abstract="false" native="false" synchronized="false"
  2616. static="false" final="false" visibility="public"
  2617. deprecated="not deprecated">
  2618. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2619. <param name="overwrite" type="boolean"/>
  2620. <exception name="IOException" type="java.io.IOException"/>
  2621. <doc>
  2622. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2623. </doc>
  2624. </method>
  2625. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2626. abstract="false" native="false" synchronized="false"
  2627. static="false" final="false" visibility="public"
  2628. deprecated="not deprecated">
  2629. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2630. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2631. <exception name="IOException" type="java.io.IOException"/>
  2632. <doc>
  2633. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2634. reporting.
  2635. Files are overwritten by default.]]>
  2636. </doc>
  2637. </method>
  2638. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2639. abstract="false" native="false" synchronized="false"
  2640. static="false" final="false" visibility="public"
  2641. deprecated="not deprecated">
  2642. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2643. <param name="replication" type="short"/>
  2644. <exception name="IOException" type="java.io.IOException"/>
  2645. <doc>
  2646. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2647. Files are overwritten by default.]]>
  2648. </doc>
  2649. </method>
  2650. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2651. abstract="false" native="false" synchronized="false"
  2652. static="false" final="false" visibility="public"
  2653. deprecated="not deprecated">
  2654. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2655. <param name="replication" type="short"/>
  2656. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2657. <exception name="IOException" type="java.io.IOException"/>
  2658. <doc>
  2659. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2660. reporting.
  2661. Files are overwritten by default.]]>
  2662. </doc>
  2663. </method>
  2664. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2665. abstract="false" native="false" synchronized="false"
  2666. static="false" final="false" visibility="public"
  2667. deprecated="not deprecated">
  2668. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2669. <param name="overwrite" type="boolean"/>
  2670. <param name="bufferSize" type="int"/>
  2671. <exception name="IOException" type="java.io.IOException"/>
  2672. <doc>
  2673. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2674. @param f the file name to open
  2675. @param overwrite if a file with this name already exists, then if true,
  2676. the file will be overwritten, and if false an error will be thrown.
  2677. @param bufferSize the size of the buffer to be used.]]>
  2678. </doc>
  2679. </method>
  2680. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2681. abstract="false" native="false" synchronized="false"
  2682. static="false" final="false" visibility="public"
  2683. deprecated="not deprecated">
  2684. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2685. <param name="overwrite" type="boolean"/>
  2686. <param name="bufferSize" type="int"/>
  2687. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2688. <exception name="IOException" type="java.io.IOException"/>
  2689. <doc>
  2690. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2691. reporting.
  2692. @param f the file name to open
  2693. @param overwrite if a file with this name already exists, then if true,
  2694. the file will be overwritten, and if false an error will be thrown.
  2695. @param bufferSize the size of the buffer to be used.]]>
  2696. </doc>
  2697. </method>
  2698. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2699. abstract="false" native="false" synchronized="false"
  2700. static="false" final="false" visibility="public"
  2701. deprecated="not deprecated">
  2702. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2703. <param name="overwrite" type="boolean"/>
  2704. <param name="bufferSize" type="int"/>
  2705. <param name="replication" type="short"/>
  2706. <param name="blockSize" type="long"/>
  2707. <exception name="IOException" type="java.io.IOException"/>
  2708. <doc>
  2709. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2710. @param f the file name to open
  2711. @param overwrite if a file with this name already exists, then if true,
  2712. the file will be overwritten, and if false an error will be thrown.
  2713. @param bufferSize the size of the buffer to be used.
  2714. @param replication required block replication for the file.]]>
  2715. </doc>
  2716. </method>
  2717. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2718. abstract="false" native="false" synchronized="false"
  2719. static="false" final="false" visibility="public"
  2720. deprecated="not deprecated">
  2721. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2722. <param name="overwrite" type="boolean"/>
  2723. <param name="bufferSize" type="int"/>
  2724. <param name="replication" type="short"/>
  2725. <param name="blockSize" type="long"/>
  2726. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2727. <exception name="IOException" type="java.io.IOException"/>
  2728. <doc>
  2729. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2730. reporting.
  2731. @param f the file name to open
  2732. @param overwrite if a file with this name already exists, then if true,
  2733. the file will be overwritten, and if false an error will be thrown.
  2734. @param bufferSize the size of the buffer to be used.
  2735. @param replication required block replication for the file.]]>
  2736. </doc>
  2737. </method>
  2738. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2739. abstract="true" native="false" synchronized="false"
  2740. static="false" final="false" visibility="public"
  2741. deprecated="not deprecated">
  2742. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2743. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2744. <param name="overwrite" type="boolean"/>
  2745. <param name="bufferSize" type="int"/>
  2746. <param name="replication" type="short"/>
  2747. <param name="blockSize" type="long"/>
  2748. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2749. <exception name="IOException" type="java.io.IOException"/>
  2750. <doc>
  2751. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2752. reporting.
  2753. @param f the file name to open
  2754. @param permission
  2755. @param overwrite if a file with this name already exists, then if true,
  2756. the file will be overwritten, and if false an error will be thrown.
  2757. @param bufferSize the size of the buffer to be used.
  2758. @param replication required block replication for the file.
  2759. @param blockSize
  2760. @param progress
  2761. @throws IOException
  2762. @see #setPermission(Path, FsPermission)]]>
  2763. </doc>
  2764. </method>
  2765. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2766. abstract="false" native="false" synchronized="false"
  2767. static="false" final="false" visibility="public"
  2768. deprecated="API only for 0.20-append">
  2769. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2770. <param name="overwrite" type="boolean"/>
  2771. <param name="bufferSize" type="int"/>
  2772. <param name="replication" type="short"/>
  2773. <param name="blockSize" type="long"/>
  2774. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2775. <exception name="IOException" type="java.io.IOException"/>
  2776. <doc>
  2777. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2778. reporting. Same as create(), except fails if parent directory doesn't
  2779. already exist.
  2780. @param f the file name to open
  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="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2793. abstract="false" native="false" synchronized="false"
  2794. static="false" final="false" visibility="public"
  2795. deprecated="API only for 0.20-append">
  2796. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2797. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2798. <param name="overwrite" type="boolean"/>
  2799. <param name="bufferSize" type="int"/>
  2800. <param name="replication" type="short"/>
  2801. <param name="blockSize" type="long"/>
  2802. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2803. <exception name="IOException" type="java.io.IOException"/>
  2804. <doc>
  2805. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2806. reporting. Same as create(), except fails if parent directory doesn't
  2807. already exist.
  2808. @param f the file name to open
  2809. @param permission
  2810. @param overwrite if a file with this name already exists, then if true,
  2811. the file will be overwritten, and if false an error will be thrown.
  2812. @param bufferSize the size of the buffer to be used.
  2813. @param replication required block replication for the file.
  2814. @param blockSize
  2815. @param progress
  2816. @throws IOException
  2817. @see #setPermission(Path, FsPermission)
  2818. @deprecated API only for 0.20-append]]>
  2819. </doc>
  2820. </method>
  2821. <method name="createNewFile" return="boolean"
  2822. abstract="false" native="false" synchronized="false"
  2823. static="false" final="false" visibility="public"
  2824. deprecated="not deprecated">
  2825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2826. <exception name="IOException" type="java.io.IOException"/>
  2827. <doc>
  2828. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2829. create fails, or if it already existed, return false.]]>
  2830. </doc>
  2831. </method>
  2832. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2833. abstract="false" native="false" synchronized="false"
  2834. static="false" final="false" visibility="public"
  2835. deprecated="not deprecated">
  2836. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2837. <exception name="IOException" type="java.io.IOException"/>
  2838. <doc>
  2839. <![CDATA[Append to an existing file (optional operation).
  2840. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2841. @param f the existing file to be appended.
  2842. @throws IOException]]>
  2843. </doc>
  2844. </method>
  2845. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2846. abstract="false" native="false" synchronized="false"
  2847. static="false" final="false" visibility="public"
  2848. deprecated="not deprecated">
  2849. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2850. <param name="bufferSize" type="int"/>
  2851. <exception name="IOException" type="java.io.IOException"/>
  2852. <doc>
  2853. <![CDATA[Append to an existing file (optional operation).
  2854. Same as append(f, bufferSize, null).
  2855. @param f the existing file to be appended.
  2856. @param bufferSize the size of the buffer to be used.
  2857. @throws IOException]]>
  2858. </doc>
  2859. </method>
  2860. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2861. abstract="true" native="false" synchronized="false"
  2862. static="false" final="false" visibility="public"
  2863. deprecated="not deprecated">
  2864. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2865. <param name="bufferSize" type="int"/>
  2866. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2867. <exception name="IOException" type="java.io.IOException"/>
  2868. <doc>
  2869. <![CDATA[Append to an existing file (optional operation).
  2870. @param f the existing file to be appended.
  2871. @param bufferSize the size of the buffer to be used.
  2872. @param progress for reporting progress if it is not null.
  2873. @throws IOException]]>
  2874. </doc>
  2875. </method>
  2876. <method name="getReplication" return="short"
  2877. abstract="false" native="false" synchronized="false"
  2878. static="false" final="false" visibility="public"
  2879. deprecated="Use getFileStatus() instead">
  2880. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2881. <exception name="IOException" type="java.io.IOException"/>
  2882. <doc>
  2883. <![CDATA[Get replication.
  2884. @deprecated Use getFileStatus() instead
  2885. @param src file name
  2886. @return file replication
  2887. @throws IOException]]>
  2888. </doc>
  2889. </method>
  2890. <method name="setReplication" return="boolean"
  2891. abstract="false" native="false" synchronized="false"
  2892. static="false" final="false" visibility="public"
  2893. deprecated="not deprecated">
  2894. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2895. <param name="replication" type="short"/>
  2896. <exception name="IOException" type="java.io.IOException"/>
  2897. <doc>
  2898. <![CDATA[Set replication for an existing file.
  2899. @param src file name
  2900. @param replication new replication
  2901. @throws IOException
  2902. @return true if successful;
  2903. false if file does not exist or is a directory]]>
  2904. </doc>
  2905. </method>
  2906. <method name="rename" return="boolean"
  2907. abstract="true" native="false" synchronized="false"
  2908. static="false" final="false" visibility="public"
  2909. deprecated="not deprecated">
  2910. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2911. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2912. <exception name="IOException" type="java.io.IOException"/>
  2913. <doc>
  2914. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2915. or remote DFS.]]>
  2916. </doc>
  2917. </method>
  2918. <method name="delete" return="boolean"
  2919. abstract="true" native="false" synchronized="false"
  2920. static="false" final="false" visibility="public"
  2921. deprecated="Use delete(Path, boolean) instead">
  2922. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2923. <exception name="IOException" type="java.io.IOException"/>
  2924. <doc>
  2925. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2926. </doc>
  2927. </method>
  2928. <method name="delete" return="boolean"
  2929. abstract="true" native="false" synchronized="false"
  2930. static="false" final="false" visibility="public"
  2931. deprecated="not deprecated">
  2932. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2933. <param name="recursive" type="boolean"/>
  2934. <exception name="IOException" type="java.io.IOException"/>
  2935. <doc>
  2936. <![CDATA[Delete a file.
  2937. @param f the path to delete.
  2938. @param recursive if path is a directory and set to
  2939. true, the directory is deleted else throws an exception. In
  2940. case of a file the recursive can be set to either true or false.
  2941. @return true if delete is successful else false.
  2942. @throws IOException]]>
  2943. </doc>
  2944. </method>
  2945. <method name="deleteOnExit" return="boolean"
  2946. abstract="false" native="false" synchronized="false"
  2947. static="false" final="false" visibility="public"
  2948. deprecated="not deprecated">
  2949. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2950. <exception name="IOException" type="java.io.IOException"/>
  2951. <doc>
  2952. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2953. When the JVM shuts down,
  2954. all FileSystem objects will be closed automatically.
  2955. Then,
  2956. the marked path will be deleted as a result of closing the FileSystem.
  2957. The path has to exist in the file system.
  2958. @param f the path to delete.
  2959. @return true if deleteOnExit is successful, otherwise false.
  2960. @throws IOException]]>
  2961. </doc>
  2962. </method>
  2963. <method name="processDeleteOnExit"
  2964. abstract="false" native="false" synchronized="false"
  2965. static="false" final="false" visibility="protected"
  2966. deprecated="not deprecated">
  2967. <doc>
  2968. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2969. deletes all files in the specified paths.]]>
  2970. </doc>
  2971. </method>
  2972. <method name="exists" return="boolean"
  2973. abstract="false" native="false" synchronized="false"
  2974. static="false" final="false" visibility="public"
  2975. deprecated="not deprecated">
  2976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2977. <exception name="IOException" type="java.io.IOException"/>
  2978. <doc>
  2979. <![CDATA[Check if exists.
  2980. @param f source file]]>
  2981. </doc>
  2982. </method>
  2983. <method name="isDirectory" return="boolean"
  2984. abstract="false" native="false" synchronized="false"
  2985. static="false" final="false" visibility="public"
  2986. deprecated="Use getFileStatus() instead">
  2987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2988. <exception name="IOException" type="java.io.IOException"/>
  2989. <doc>
  2990. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2991. </doc>
  2992. </method>
  2993. <method name="isFile" return="boolean"
  2994. abstract="false" native="false" synchronized="false"
  2995. static="false" final="false" visibility="public"
  2996. deprecated="not deprecated">
  2997. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2998. <exception name="IOException" type="java.io.IOException"/>
  2999. <doc>
  3000. <![CDATA[True iff the named path is a regular file.]]>
  3001. </doc>
  3002. </method>
  3003. <method name="getLength" return="long"
  3004. abstract="false" native="false" synchronized="false"
  3005. static="false" final="false" visibility="public"
  3006. deprecated="Use getFileStatus() instead">
  3007. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3008. <exception name="IOException" type="java.io.IOException"/>
  3009. <doc>
  3010. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3011. </doc>
  3012. </method>
  3013. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3014. abstract="false" native="false" synchronized="false"
  3015. static="false" final="false" visibility="public"
  3016. deprecated="not deprecated">
  3017. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3018. <exception name="IOException" type="java.io.IOException"/>
  3019. <doc>
  3020. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3021. </doc>
  3022. </method>
  3023. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3024. abstract="true" native="false" synchronized="false"
  3025. static="false" final="false" visibility="public"
  3026. deprecated="not deprecated">
  3027. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3028. <exception name="IOException" type="java.io.IOException"/>
  3029. <doc>
  3030. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3031. a directory.
  3032. @param f
  3033. given path
  3034. @return the statuses of the files/directories in the given patch
  3035. returns null, if Path f does not exist in the FileSystem
  3036. @throws IOException]]>
  3037. </doc>
  3038. </method>
  3039. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3040. abstract="false" native="false" synchronized="false"
  3041. static="false" final="false" visibility="public"
  3042. deprecated="not deprecated">
  3043. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3044. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3045. <exception name="IOException" type="java.io.IOException"/>
  3046. <doc>
  3047. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3048. filter.
  3049. @param f
  3050. a path name
  3051. @param filter
  3052. the user-supplied path filter
  3053. @return an array of FileStatus objects for the files under the given path
  3054. after applying the filter
  3055. @throws IOException
  3056. if encounter any problem while fetching the status]]>
  3057. </doc>
  3058. </method>
  3059. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3060. abstract="false" native="false" synchronized="false"
  3061. static="false" final="false" visibility="public"
  3062. deprecated="not deprecated">
  3063. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3064. <exception name="IOException" type="java.io.IOException"/>
  3065. <doc>
  3066. <![CDATA[Filter files/directories in the given list of paths using default
  3067. path filter.
  3068. @param files
  3069. a list of paths
  3070. @return a list of statuses for the files under the given paths after
  3071. applying the filter default Path filter
  3072. @exception IOException]]>
  3073. </doc>
  3074. </method>
  3075. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3076. abstract="false" native="false" synchronized="false"
  3077. static="false" final="false" visibility="public"
  3078. deprecated="not deprecated">
  3079. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3080. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3081. <exception name="IOException" type="java.io.IOException"/>
  3082. <doc>
  3083. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3084. path filter.
  3085. @param files
  3086. a list of paths
  3087. @param filter
  3088. the user-supplied path filter
  3089. @return a list of statuses for the files under the given paths after
  3090. applying the filter
  3091. @exception IOException]]>
  3092. </doc>
  3093. </method>
  3094. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3095. abstract="false" native="false" synchronized="false"
  3096. static="false" final="false" visibility="public"
  3097. deprecated="not deprecated">
  3098. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3099. <exception name="IOException" type="java.io.IOException"/>
  3100. <doc>
  3101. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3102. files. Results are sorted by their names.
  3103. <p>
  3104. A filename pattern is composed of <i>regular</i> characters and
  3105. <i>special pattern matching</i> characters, which are:
  3106. <dl>
  3107. <dd>
  3108. <dl>
  3109. <p>
  3110. <dt> <tt> ? </tt>
  3111. <dd> Matches any single character.
  3112. <p>
  3113. <dt> <tt> * </tt>
  3114. <dd> Matches zero or more characters.
  3115. <p>
  3116. <dt> <tt> [<i>abc</i>] </tt>
  3117. <dd> Matches a single character from character set
  3118. <tt>{<i>a,b,c</i>}</tt>.
  3119. <p>
  3120. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3121. <dd> Matches a single character from the character range
  3122. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3123. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3124. <p>
  3125. <dt> <tt> [^<i>a</i>] </tt>
  3126. <dd> Matches a single character that is not from character set or range
  3127. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3128. immediately to the right of the opening bracket.
  3129. <p>
  3130. <dt> <tt> \<i>c</i> </tt>
  3131. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3132. <p>
  3133. <dt> <tt> {ab,cd} </tt>
  3134. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3135. <p>
  3136. <dt> <tt> {ab,c{de,fh}} </tt>
  3137. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3138. </dl>
  3139. </dd>
  3140. </dl>
  3141. @param pathPattern a regular expression specifying a pth pattern
  3142. @return an array of paths that match the path pattern
  3143. @throws IOException]]>
  3144. </doc>
  3145. </method>
  3146. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3147. abstract="false" native="false" synchronized="false"
  3148. static="false" final="false" visibility="public"
  3149. deprecated="not deprecated">
  3150. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3151. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3152. <exception name="IOException" type="java.io.IOException"/>
  3153. <doc>
  3154. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3155. and is accepted by the user-supplied path filter. Results are sorted by
  3156. their path names.
  3157. Return null if pathPattern has no glob and the path does not exist.
  3158. Return an empty array if pathPattern has a glob and no path matches it.
  3159. @param pathPattern
  3160. a regular expression specifying the path pattern
  3161. @param filter
  3162. a user-supplied path filter
  3163. @return an array of FileStatus objects
  3164. @throws IOException if any I/O error occurs when fetching file status]]>
  3165. </doc>
  3166. </method>
  3167. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3168. abstract="false" native="false" synchronized="false"
  3169. static="false" final="false" visibility="public"
  3170. deprecated="not deprecated">
  3171. <doc>
  3172. <![CDATA[Return the current user's home directory in this filesystem.
  3173. The default implementation returns "/user/$USER/".]]>
  3174. </doc>
  3175. </method>
  3176. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3177. abstract="false" native="false" synchronized="false"
  3178. static="false" final="false" visibility="public"
  3179. deprecated="not deprecated">
  3180. <param name="renewer" type="java.lang.String"/>
  3181. <exception name="IOException" type="java.io.IOException"/>
  3182. <doc>
  3183. <![CDATA[Get a new delegation token for this file system.
  3184. @param renewer the account name that is allowed to renew the token.
  3185. @return a new delegation token
  3186. @throws IOException]]>
  3187. </doc>
  3188. </method>
  3189. <method name="setWorkingDirectory"
  3190. abstract="true" native="false" synchronized="false"
  3191. static="false" final="false" visibility="public"
  3192. deprecated="not deprecated">
  3193. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3194. <doc>
  3195. <![CDATA[Set the current working directory for the given file system. All relative
  3196. paths will be resolved relative to it.
  3197. @param new_dir]]>
  3198. </doc>
  3199. </method>
  3200. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3201. abstract="true" native="false" synchronized="false"
  3202. static="false" final="false" visibility="public"
  3203. deprecated="not deprecated">
  3204. <doc>
  3205. <![CDATA[Get the current working directory for the given file system
  3206. @return the directory pathname]]>
  3207. </doc>
  3208. </method>
  3209. <method name="mkdirs" return="boolean"
  3210. abstract="false" native="false" synchronized="false"
  3211. static="false" final="false" visibility="public"
  3212. deprecated="not deprecated">
  3213. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3214. <exception name="IOException" type="java.io.IOException"/>
  3215. <doc>
  3216. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3217. </doc>
  3218. </method>
  3219. <method name="mkdirs" return="boolean"
  3220. abstract="true" native="false" synchronized="false"
  3221. static="false" final="false" visibility="public"
  3222. deprecated="not deprecated">
  3223. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3224. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3225. <exception name="IOException" type="java.io.IOException"/>
  3226. <doc>
  3227. <![CDATA[Make the given file and all non-existent parents into
  3228. directories. Has the semantics of Unix 'mkdir -p'.
  3229. Existence of the directory hierarchy is not an error.]]>
  3230. </doc>
  3231. </method>
  3232. <method name="copyFromLocalFile"
  3233. abstract="false" native="false" synchronized="false"
  3234. static="false" final="false" visibility="public"
  3235. deprecated="not deprecated">
  3236. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3237. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3238. <exception name="IOException" type="java.io.IOException"/>
  3239. <doc>
  3240. <![CDATA[The src file is on the local disk. Add it to FS at
  3241. the given dst name and the source is kept intact afterwards]]>
  3242. </doc>
  3243. </method>
  3244. <method name="moveFromLocalFile"
  3245. abstract="false" native="false" synchronized="false"
  3246. static="false" final="false" visibility="public"
  3247. deprecated="not deprecated">
  3248. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3249. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3250. <exception name="IOException" type="java.io.IOException"/>
  3251. <doc>
  3252. <![CDATA[The src files is on the local disk. Add it to FS at
  3253. the given dst name, removing the source afterwards.]]>
  3254. </doc>
  3255. </method>
  3256. <method name="moveFromLocalFile"
  3257. abstract="false" native="false" synchronized="false"
  3258. static="false" final="false" visibility="public"
  3259. deprecated="not deprecated">
  3260. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3261. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3262. <exception name="IOException" type="java.io.IOException"/>
  3263. <doc>
  3264. <![CDATA[The src file is on the local disk. Add it to FS at
  3265. the given dst name, removing the source afterwards.]]>
  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="src" type="org.apache.hadoop.fs.Path"/>
  3274. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3275. <exception name="IOException" type="java.io.IOException"/>
  3276. <doc>
  3277. <![CDATA[The src file is on the local disk. Add it to FS at
  3278. the given dst name.
  3279. delSrc indicates if the source should be removed]]>
  3280. </doc>
  3281. </method>
  3282. <method name="copyFromLocalFile"
  3283. abstract="false" native="false" synchronized="false"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. <param name="delSrc" type="boolean"/>
  3287. <param name="overwrite" type="boolean"/>
  3288. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3289. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3290. <exception name="IOException" type="java.io.IOException"/>
  3291. <doc>
  3292. <![CDATA[The src files are on the local disk. Add it to FS at
  3293. the given dst name.
  3294. delSrc indicates if the source should be removed]]>
  3295. </doc>
  3296. </method>
  3297. <method name="copyFromLocalFile"
  3298. abstract="false" native="false" synchronized="false"
  3299. static="false" final="false" visibility="public"
  3300. deprecated="not deprecated">
  3301. <param name="delSrc" type="boolean"/>
  3302. <param name="overwrite" type="boolean"/>
  3303. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3304. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3305. <exception name="IOException" type="java.io.IOException"/>
  3306. <doc>
  3307. <![CDATA[The src file is on the local disk. Add it to FS at
  3308. the given dst name.
  3309. delSrc indicates if the source should be removed]]>
  3310. </doc>
  3311. </method>
  3312. <method name="copyToLocalFile"
  3313. abstract="false" native="false" synchronized="false"
  3314. static="false" final="false" visibility="public"
  3315. deprecated="not deprecated">
  3316. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3317. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3318. <exception name="IOException" type="java.io.IOException"/>
  3319. <doc>
  3320. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3321. Copy it from FS control to the local dst name.]]>
  3322. </doc>
  3323. </method>
  3324. <method name="moveToLocalFile"
  3325. abstract="false" native="false" synchronized="false"
  3326. static="false" final="false" visibility="public"
  3327. deprecated="not deprecated">
  3328. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3329. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3330. <exception name="IOException" type="java.io.IOException"/>
  3331. <doc>
  3332. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3333. Copy it from FS control to the local dst name.
  3334. Remove the source afterwards]]>
  3335. </doc>
  3336. </method>
  3337. <method name="copyToLocalFile"
  3338. abstract="false" native="false" synchronized="false"
  3339. static="false" final="false" visibility="public"
  3340. deprecated="not deprecated">
  3341. <param name="delSrc" type="boolean"/>
  3342. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3343. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3344. <exception name="IOException" type="java.io.IOException"/>
  3345. <doc>
  3346. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3347. Copy it from FS control to the local dst name.
  3348. delSrc indicates if the src will be removed or not.]]>
  3349. </doc>
  3350. </method>
  3351. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3352. abstract="false" native="false" synchronized="false"
  3353. static="false" final="false" visibility="public"
  3354. deprecated="not deprecated">
  3355. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3356. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3357. <exception name="IOException" type="java.io.IOException"/>
  3358. <doc>
  3359. <![CDATA[Returns a local File that the user can write output to. The caller
  3360. provides both the eventual FS target name and the local working
  3361. file. If the FS is local, we write directly into the target. If
  3362. the FS is remote, we write into the tmp local area.]]>
  3363. </doc>
  3364. </method>
  3365. <method name="completeLocalOutput"
  3366. abstract="false" native="false" synchronized="false"
  3367. static="false" final="false" visibility="public"
  3368. deprecated="not deprecated">
  3369. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3370. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3371. <exception name="IOException" type="java.io.IOException"/>
  3372. <doc>
  3373. <![CDATA[Called when we're all done writing to the target. A local FS will
  3374. do nothing, because we've written to exactly the right place. A remote
  3375. FS will copy the contents of tmpLocalFile to the correct target at
  3376. fsOutputFile.]]>
  3377. </doc>
  3378. </method>
  3379. <method name="close"
  3380. abstract="false" native="false" synchronized="false"
  3381. static="false" final="false" visibility="public"
  3382. deprecated="not deprecated">
  3383. <exception name="IOException" type="java.io.IOException"/>
  3384. <doc>
  3385. <![CDATA[No more filesystem operations are needed. Will
  3386. release any held locks.]]>
  3387. </doc>
  3388. </method>
  3389. <method name="getUsed" return="long"
  3390. abstract="false" native="false" synchronized="false"
  3391. static="false" final="false" visibility="public"
  3392. deprecated="not deprecated">
  3393. <exception name="IOException" type="java.io.IOException"/>
  3394. <doc>
  3395. <![CDATA[Return the total size of all files in the filesystem.]]>
  3396. </doc>
  3397. </method>
  3398. <method name="getBlockSize" return="long"
  3399. abstract="false" native="false" synchronized="false"
  3400. static="false" final="false" visibility="public"
  3401. deprecated="Use getFileStatus() instead">
  3402. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3403. <exception name="IOException" type="java.io.IOException"/>
  3404. <doc>
  3405. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3406. </doc>
  3407. </method>
  3408. <method name="getDefaultBlockSize" return="long"
  3409. abstract="false" native="false" synchronized="false"
  3410. static="false" final="false" visibility="public"
  3411. deprecated="not deprecated">
  3412. <doc>
  3413. <![CDATA[Return the number of bytes that large input files should be optimally
  3414. be split into to minimize i/o time.]]>
  3415. </doc>
  3416. </method>
  3417. <method name="getDefaultReplication" return="short"
  3418. abstract="false" native="false" synchronized="false"
  3419. static="false" final="false" visibility="public"
  3420. deprecated="not deprecated">
  3421. <doc>
  3422. <![CDATA[Get the default replication.]]>
  3423. </doc>
  3424. </method>
  3425. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3426. abstract="true" native="false" synchronized="false"
  3427. static="false" final="false" visibility="public"
  3428. deprecated="not deprecated">
  3429. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3430. <exception name="IOException" type="java.io.IOException"/>
  3431. <doc>
  3432. <![CDATA[Return a file status object that represents the path.
  3433. @param f The path we want information from
  3434. @return a FileStatus object
  3435. @throws FileNotFoundException when the path does not exist;
  3436. IOException see specific implementation]]>
  3437. </doc>
  3438. </method>
  3439. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3440. abstract="false" native="false" synchronized="false"
  3441. static="false" final="false" visibility="public"
  3442. deprecated="not deprecated">
  3443. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3444. <exception name="IOException" type="java.io.IOException"/>
  3445. <doc>
  3446. <![CDATA[Get the checksum of a file.
  3447. @param f The file path
  3448. @return The file checksum. The default return value is null,
  3449. which indicates that no checksum algorithm is implemented
  3450. in the corresponding FileSystem.]]>
  3451. </doc>
  3452. </method>
  3453. <method name="setVerifyChecksum"
  3454. abstract="false" native="false" synchronized="false"
  3455. static="false" final="false" visibility="public"
  3456. deprecated="not deprecated">
  3457. <param name="verifyChecksum" type="boolean"/>
  3458. <doc>
  3459. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3460. corresponding FileSystem supports checksum. By default doesn't do anything.
  3461. @param verifyChecksum]]>
  3462. </doc>
  3463. </method>
  3464. <method name="setPermission"
  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="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3470. <exception name="IOException" type="java.io.IOException"/>
  3471. <doc>
  3472. <![CDATA[Set permission of a path.
  3473. @param p
  3474. @param permission]]>
  3475. </doc>
  3476. </method>
  3477. <method name="setOwner"
  3478. abstract="false" native="false" synchronized="false"
  3479. static="false" final="false" visibility="public"
  3480. deprecated="not deprecated">
  3481. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3482. <param name="username" type="java.lang.String"/>
  3483. <param name="groupname" type="java.lang.String"/>
  3484. <exception name="IOException" type="java.io.IOException"/>
  3485. <doc>
  3486. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3487. The parameters username and groupname cannot both be null.
  3488. @param p The path
  3489. @param username If it is null, the original username remains unchanged.
  3490. @param groupname If it is null, the original groupname remains unchanged.]]>
  3491. </doc>
  3492. </method>
  3493. <method name="setTimes"
  3494. abstract="false" native="false" synchronized="false"
  3495. static="false" final="false" visibility="public"
  3496. deprecated="not deprecated">
  3497. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3498. <param name="mtime" type="long"/>
  3499. <param name="atime" type="long"/>
  3500. <exception name="IOException" type="java.io.IOException"/>
  3501. <doc>
  3502. <![CDATA[Set access time of a file
  3503. @param p The path
  3504. @param mtime Set the modification time of this file.
  3505. The number of milliseconds since Jan 1, 1970.
  3506. A value of -1 means that this call should not set modification time.
  3507. @param atime Set the access time of this file.
  3508. The number of milliseconds since Jan 1, 1970.
  3509. A value of -1 means that this call should not set access time.]]>
  3510. </doc>
  3511. </method>
  3512. <method name="getStatistics" return="java.util.Map"
  3513. abstract="false" native="false" synchronized="true"
  3514. static="true" final="false" visibility="public"
  3515. deprecated="use {@link #getAllStatistics} instead">
  3516. <doc>
  3517. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3518. @return a Map having a key as URI scheme and value as Statistics object
  3519. @deprecated use {@link #getAllStatistics} instead]]>
  3520. </doc>
  3521. </method>
  3522. <method name="getAllStatistics" return="java.util.List"
  3523. abstract="false" native="false" synchronized="true"
  3524. static="true" final="false" visibility="public"
  3525. deprecated="not deprecated">
  3526. <doc>
  3527. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3528. </doc>
  3529. </method>
  3530. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3531. abstract="false" native="false" synchronized="true"
  3532. static="true" final="false" visibility="public"
  3533. deprecated="not deprecated">
  3534. <param name="scheme" type="java.lang.String"/>
  3535. <param name="cls" type="java.lang.Class"/>
  3536. <doc>
  3537. <![CDATA[Get the statistics for a particular file system
  3538. @param cls the class to lookup
  3539. @return a statistics object]]>
  3540. </doc>
  3541. </method>
  3542. <method name="clearStatistics"
  3543. abstract="false" native="false" synchronized="true"
  3544. static="true" final="false" visibility="public"
  3545. deprecated="not deprecated">
  3546. </method>
  3547. <method name="printStatistics"
  3548. abstract="false" native="false" synchronized="true"
  3549. static="true" final="false" visibility="public"
  3550. deprecated="not deprecated">
  3551. <exception name="IOException" type="java.io.IOException"/>
  3552. </method>
  3553. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3554. transient="false" volatile="false"
  3555. static="true" final="true" visibility="public"
  3556. deprecated="not deprecated">
  3557. </field>
  3558. <field name="LOG" type="org.apache.commons.logging.Log"
  3559. transient="false" volatile="false"
  3560. static="true" final="true" visibility="public"
  3561. deprecated="not deprecated">
  3562. </field>
  3563. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3564. transient="false" volatile="false"
  3565. static="false" final="false" visibility="protected"
  3566. deprecated="not deprecated">
  3567. <doc>
  3568. <![CDATA[The statistics for this file system.]]>
  3569. </doc>
  3570. </field>
  3571. <doc>
  3572. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3573. may be implemented as a distributed filesystem, or as a "local"
  3574. one that reflects the locally-connected disk. The local version
  3575. exists for small Hadoop instances and for testing.
  3576. <p>
  3577. All user code that may potentially use the Hadoop Distributed
  3578. File System should be written to use a FileSystem object. The
  3579. Hadoop DFS is a multi-machine system that appears as a single
  3580. disk. It's useful because of its fault tolerance and potentially
  3581. very large capacity.
  3582. <p>
  3583. The local implementation is {@link LocalFileSystem} and distributed
  3584. implementation is DistributedFileSystem.]]>
  3585. </doc>
  3586. </class>
  3587. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3588. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3589. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3590. abstract="false"
  3591. static="true" final="true" visibility="public"
  3592. deprecated="not deprecated">
  3593. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3594. static="false" final="false" visibility="public"
  3595. deprecated="not deprecated">
  3596. </constructor>
  3597. <method name="incrementBytesRead"
  3598. abstract="false" native="false" synchronized="false"
  3599. static="false" final="false" visibility="public"
  3600. deprecated="not deprecated">
  3601. <param name="newBytes" type="long"/>
  3602. <doc>
  3603. <![CDATA[Increment the bytes read in the statistics
  3604. @param newBytes the additional bytes read]]>
  3605. </doc>
  3606. </method>
  3607. <method name="incrementBytesWritten"
  3608. abstract="false" native="false" synchronized="false"
  3609. static="false" final="false" visibility="public"
  3610. deprecated="not deprecated">
  3611. <param name="newBytes" type="long"/>
  3612. <doc>
  3613. <![CDATA[Increment the bytes written in the statistics
  3614. @param newBytes the additional bytes written]]>
  3615. </doc>
  3616. </method>
  3617. <method name="incrementReadOps"
  3618. abstract="false" native="false" synchronized="false"
  3619. static="false" final="false" visibility="public"
  3620. deprecated="not deprecated">
  3621. <param name="count" type="int"/>
  3622. <doc>
  3623. <![CDATA[Increment the number of read operations
  3624. @param count number of read operations]]>
  3625. </doc>
  3626. </method>
  3627. <method name="incrementLargeReadOps"
  3628. abstract="false" native="false" synchronized="false"
  3629. static="false" final="false" visibility="public"
  3630. deprecated="not deprecated">
  3631. <param name="count" type="int"/>
  3632. <doc>
  3633. <![CDATA[Increment the number of large read operations
  3634. @param count number of large read operations]]>
  3635. </doc>
  3636. </method>
  3637. <method name="incrementWriteOps"
  3638. abstract="false" native="false" synchronized="false"
  3639. static="false" final="false" visibility="public"
  3640. deprecated="not deprecated">
  3641. <param name="count" type="int"/>
  3642. <doc>
  3643. <![CDATA[Increment the number of write operations
  3644. @param count number of write operations]]>
  3645. </doc>
  3646. </method>
  3647. <method name="getBytesRead" return="long"
  3648. abstract="false" native="false" synchronized="false"
  3649. static="false" final="false" visibility="public"
  3650. deprecated="not deprecated">
  3651. <doc>
  3652. <![CDATA[Get the total number of bytes read
  3653. @return the number of bytes]]>
  3654. </doc>
  3655. </method>
  3656. <method name="getBytesWritten" return="long"
  3657. abstract="false" native="false" synchronized="false"
  3658. static="false" final="false" visibility="public"
  3659. deprecated="not deprecated">
  3660. <doc>
  3661. <![CDATA[Get the total number of bytes written
  3662. @return the number of bytes]]>
  3663. </doc>
  3664. </method>
  3665. <method name="getReadOps" return="int"
  3666. abstract="false" native="false" synchronized="false"
  3667. static="false" final="false" visibility="public"
  3668. deprecated="not deprecated">
  3669. <doc>
  3670. <![CDATA[Get the number of file system read operations such as list files
  3671. @return number of read operations]]>
  3672. </doc>
  3673. </method>
  3674. <method name="getLargeReadOps" return="int"
  3675. abstract="false" native="false" synchronized="false"
  3676. static="false" final="false" visibility="public"
  3677. deprecated="not deprecated">
  3678. <doc>
  3679. <![CDATA[Get the number of large file system read operations such as list files
  3680. under a large directory
  3681. @return number of large read operations]]>
  3682. </doc>
  3683. </method>
  3684. <method name="getWriteOps" return="int"
  3685. abstract="false" native="false" synchronized="false"
  3686. static="false" final="false" visibility="public"
  3687. deprecated="not deprecated">
  3688. <doc>
  3689. <![CDATA[Get the number of file system write operations such as create, append
  3690. rename etc.
  3691. @return number of write operations]]>
  3692. </doc>
  3693. </method>
  3694. <method name="toString" return="java.lang.String"
  3695. abstract="false" native="false" synchronized="false"
  3696. static="false" final="false" visibility="public"
  3697. deprecated="not deprecated">
  3698. </method>
  3699. <method name="reset"
  3700. abstract="false" native="false" synchronized="false"
  3701. static="false" final="false" visibility="public"
  3702. deprecated="not deprecated">
  3703. <doc>
  3704. <![CDATA[Reset the counts of bytes to 0.]]>
  3705. </doc>
  3706. </method>
  3707. <method name="getScheme" return="java.lang.String"
  3708. abstract="false" native="false" synchronized="false"
  3709. static="false" final="false" visibility="public"
  3710. deprecated="not deprecated">
  3711. <doc>
  3712. <![CDATA[Get the uri scheme associated with this statistics object.
  3713. @return the schema associated with this set of statistics]]>
  3714. </doc>
  3715. </method>
  3716. </class>
  3717. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3718. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3719. <class name="FileUtil" extends="java.lang.Object"
  3720. abstract="false"
  3721. static="false" final="false" visibility="public"
  3722. deprecated="not deprecated">
  3723. <constructor name="FileUtil"
  3724. static="false" final="false" visibility="public"
  3725. deprecated="not deprecated">
  3726. </constructor>
  3727. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3728. abstract="false" native="false" synchronized="false"
  3729. static="true" final="false" visibility="public"
  3730. deprecated="not deprecated">
  3731. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3732. <doc>
  3733. <![CDATA[convert an array of FileStatus to an array of Path
  3734. @param stats
  3735. an array of FileStatus objects
  3736. @return an array of paths corresponding to the input]]>
  3737. </doc>
  3738. </method>
  3739. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3740. abstract="false" native="false" synchronized="false"
  3741. static="true" final="false" visibility="public"
  3742. deprecated="not deprecated">
  3743. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3744. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3745. <doc>
  3746. <![CDATA[convert an array of FileStatus to an array of Path.
  3747. If stats if null, return path
  3748. @param stats
  3749. an array of FileStatus objects
  3750. @param path
  3751. default path to return in stats is null
  3752. @return an array of paths corresponding to the input]]>
  3753. </doc>
  3754. </method>
  3755. <method name="fullyDelete" return="boolean"
  3756. abstract="false" native="false" synchronized="false"
  3757. static="true" final="false" visibility="public"
  3758. deprecated="not deprecated">
  3759. <param name="dir" type="java.io.File"/>
  3760. <exception name="IOException" type="java.io.IOException"/>
  3761. <doc>
  3762. <![CDATA[Delete a directory and all its contents. If
  3763. we return false, the directory may be partially-deleted.]]>
  3764. </doc>
  3765. </method>
  3766. <method name="fullyDeleteContents" return="boolean"
  3767. abstract="false" native="false" synchronized="false"
  3768. static="true" final="false" visibility="public"
  3769. deprecated="not deprecated">
  3770. <param name="dir" type="java.io.File"/>
  3771. <exception name="IOException" type="java.io.IOException"/>
  3772. <doc>
  3773. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3774. we return false, the directory may be partially-deleted.]]>
  3775. </doc>
  3776. </method>
  3777. <method name="fullyDelete"
  3778. abstract="false" native="false" synchronized="false"
  3779. static="true" final="false" visibility="public"
  3780. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3781. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3782. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3783. <exception name="IOException" type="java.io.IOException"/>
  3784. <doc>
  3785. <![CDATA[Recursively delete a directory.
  3786. @param fs {@link FileSystem} on which the path is present
  3787. @param dir directory to recursively delete
  3788. @throws IOException
  3789. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3790. </doc>
  3791. </method>
  3792. <method name="copy" return="boolean"
  3793. abstract="false" native="false" synchronized="false"
  3794. static="true" final="false" visibility="public"
  3795. deprecated="not deprecated">
  3796. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3797. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3798. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3799. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3800. <param name="deleteSource" 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="copy" 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="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3813. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3814. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3815. <param name="deleteSource" type="boolean"/>
  3816. <param name="overwrite" type="boolean"/>
  3817. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3818. <exception name="IOException" type="java.io.IOException"/>
  3819. </method>
  3820. <method name="copy" return="boolean"
  3821. abstract="false" native="false" synchronized="false"
  3822. static="true" final="false" visibility="public"
  3823. deprecated="not deprecated">
  3824. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3825. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3826. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3827. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3828. <param name="deleteSource" type="boolean"/>
  3829. <param name="overwrite" type="boolean"/>
  3830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3831. <exception name="IOException" type="java.io.IOException"/>
  3832. <doc>
  3833. <![CDATA[Copy files between FileSystems.]]>
  3834. </doc>
  3835. </method>
  3836. <method name="copyMerge" return="boolean"
  3837. abstract="false" native="false" synchronized="false"
  3838. static="true" final="false" visibility="public"
  3839. deprecated="not deprecated">
  3840. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3841. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3842. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3843. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3844. <param name="deleteSource" type="boolean"/>
  3845. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3846. <param name="addString" type="java.lang.String"/>
  3847. <exception name="IOException" type="java.io.IOException"/>
  3848. <doc>
  3849. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3850. </doc>
  3851. </method>
  3852. <method name="copy" return="boolean"
  3853. abstract="false" native="false" synchronized="false"
  3854. static="true" final="false" visibility="public"
  3855. deprecated="not deprecated">
  3856. <param name="src" type="java.io.File"/>
  3857. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3858. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3859. <param name="deleteSource" type="boolean"/>
  3860. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3861. <exception name="IOException" type="java.io.IOException"/>
  3862. <doc>
  3863. <![CDATA[Copy local files to a FileSystem.]]>
  3864. </doc>
  3865. </method>
  3866. <method name="copy" return="boolean"
  3867. abstract="false" native="false" synchronized="false"
  3868. static="true" final="false" visibility="public"
  3869. deprecated="not deprecated">
  3870. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3871. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3872. <param name="dst" type="java.io.File"/>
  3873. <param name="deleteSource" type="boolean"/>
  3874. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3875. <exception name="IOException" type="java.io.IOException"/>
  3876. <doc>
  3877. <![CDATA[Copy FileSystem files to local files.]]>
  3878. </doc>
  3879. </method>
  3880. <method name="makeShellPath" return="java.lang.String"
  3881. abstract="false" native="false" synchronized="false"
  3882. static="true" final="false" visibility="public"
  3883. deprecated="not deprecated">
  3884. <param name="filename" type="java.lang.String"/>
  3885. <exception name="IOException" type="java.io.IOException"/>
  3886. <doc>
  3887. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3888. @param filename The filename to convert
  3889. @return The unix pathname
  3890. @throws IOException on windows, there can be problems with the subprocess]]>
  3891. </doc>
  3892. </method>
  3893. <method name="makeShellPath" return="java.lang.String"
  3894. abstract="false" native="false" synchronized="false"
  3895. static="true" final="false" visibility="public"
  3896. deprecated="not deprecated">
  3897. <param name="file" type="java.io.File"/>
  3898. <exception name="IOException" type="java.io.IOException"/>
  3899. <doc>
  3900. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3901. @param file The filename to convert
  3902. @return The unix pathname
  3903. @throws IOException on windows, there can be problems with the subprocess]]>
  3904. </doc>
  3905. </method>
  3906. <method name="makeShellPath" return="java.lang.String"
  3907. abstract="false" native="false" synchronized="false"
  3908. static="true" final="false" visibility="public"
  3909. deprecated="not deprecated">
  3910. <param name="file" type="java.io.File"/>
  3911. <param name="makeCanonicalPath" type="boolean"/>
  3912. <exception name="IOException" type="java.io.IOException"/>
  3913. <doc>
  3914. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3915. @param file The filename to convert
  3916. @param makeCanonicalPath
  3917. Whether to make canonical path for the file passed
  3918. @return The unix pathname
  3919. @throws IOException on windows, there can be problems with the subprocess]]>
  3920. </doc>
  3921. </method>
  3922. <method name="getDU" return="long"
  3923. abstract="false" native="false" synchronized="false"
  3924. static="true" final="false" visibility="public"
  3925. deprecated="not deprecated">
  3926. <param name="dir" type="java.io.File"/>
  3927. <doc>
  3928. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3929. implementation.
  3930. @param dir
  3931. The input dir to get the disk space of this local dir
  3932. @return The total disk space of the input local directory]]>
  3933. </doc>
  3934. </method>
  3935. <method name="unZip"
  3936. abstract="false" native="false" synchronized="false"
  3937. static="true" final="false" visibility="public"
  3938. deprecated="not deprecated">
  3939. <param name="inFile" type="java.io.File"/>
  3940. <param name="unzipDir" type="java.io.File"/>
  3941. <exception name="IOException" type="java.io.IOException"/>
  3942. <doc>
  3943. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3944. passed as the second parameter
  3945. @param inFile The zip file as input
  3946. @param unzipDir The unzip directory where to unzip the zip file.
  3947. @throws IOException]]>
  3948. </doc>
  3949. </method>
  3950. <method name="unTar"
  3951. abstract="false" native="false" synchronized="false"
  3952. static="true" final="false" visibility="public"
  3953. deprecated="not deprecated">
  3954. <param name="inFile" type="java.io.File"/>
  3955. <param name="untarDir" type="java.io.File"/>
  3956. <exception name="IOException" type="java.io.IOException"/>
  3957. <doc>
  3958. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3959. passed as the second parameter
  3960. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3961. @param inFile The tar file as input.
  3962. @param untarDir The untar directory where to untar the tar file.
  3963. @throws IOException]]>
  3964. </doc>
  3965. </method>
  3966. <method name="symLink" return="int"
  3967. abstract="false" native="false" synchronized="false"
  3968. static="true" final="false" visibility="public"
  3969. deprecated="not deprecated">
  3970. <param name="target" type="java.lang.String"/>
  3971. <param name="linkname" type="java.lang.String"/>
  3972. <exception name="IOException" type="java.io.IOException"/>
  3973. <doc>
  3974. <![CDATA[Create a soft link between a src and destination
  3975. only on a local disk. HDFS does not support this
  3976. @param target the target for symlink
  3977. @param linkname the symlink
  3978. @return value returned by the command]]>
  3979. </doc>
  3980. </method>
  3981. <method name="chmod" return="int"
  3982. abstract="false" native="false" synchronized="false"
  3983. static="true" final="false" visibility="public"
  3984. deprecated="not deprecated">
  3985. <param name="filename" type="java.lang.String"/>
  3986. <param name="perm" type="java.lang.String"/>
  3987. <exception name="IOException" type="java.io.IOException"/>
  3988. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3989. <doc>
  3990. <![CDATA[Change the permissions on a filename.
  3991. @param filename the name of the file to change
  3992. @param perm the permission string
  3993. @return the exit code from the command
  3994. @throws IOException
  3995. @throws InterruptedException]]>
  3996. </doc>
  3997. </method>
  3998. <method name="chmod" return="int"
  3999. abstract="false" native="false" synchronized="false"
  4000. static="true" final="false" visibility="public"
  4001. deprecated="not deprecated">
  4002. <param name="filename" type="java.lang.String"/>
  4003. <param name="perm" type="java.lang.String"/>
  4004. <param name="recursive" type="boolean"/>
  4005. <exception name="IOException" type="java.io.IOException"/>
  4006. <doc>
  4007. <![CDATA[Change the permissions on a file / directory, recursively, if
  4008. needed.
  4009. @param filename name of the file whose permissions are to change
  4010. @param perm permission string
  4011. @param recursive true, if permissions should be changed recursively
  4012. @return the exit code from the command.
  4013. @throws IOException
  4014. @throws InterruptedException]]>
  4015. </doc>
  4016. </method>
  4017. <method name="setPermission"
  4018. abstract="false" native="false" synchronized="false"
  4019. static="true" final="false" visibility="public"
  4020. deprecated="not deprecated">
  4021. <param name="f" type="java.io.File"/>
  4022. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4023. <exception name="IOException" type="java.io.IOException"/>
  4024. <doc>
  4025. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  4026. of forking if group == other.
  4027. @param f the file to change
  4028. @param permission the new permissions
  4029. @throws IOException]]>
  4030. </doc>
  4031. </method>
  4032. <method name="createLocalTempFile" return="java.io.File"
  4033. abstract="false" native="false" synchronized="false"
  4034. static="true" final="true" visibility="public"
  4035. deprecated="not deprecated">
  4036. <param name="basefile" type="java.io.File"/>
  4037. <param name="prefix" type="java.lang.String"/>
  4038. <param name="isDeleteOnExit" type="boolean"/>
  4039. <exception name="IOException" type="java.io.IOException"/>
  4040. <doc>
  4041. <![CDATA[Create a tmp file for a base file.
  4042. @param basefile the base file of the tmp
  4043. @param prefix file name prefix of tmp
  4044. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  4045. @return a newly created tmp file
  4046. @exception IOException If a tmp file cannot created
  4047. @see java.io.File#createTempFile(String, String, File)
  4048. @see java.io.File#deleteOnExit()]]>
  4049. </doc>
  4050. </method>
  4051. <method name="replaceFile"
  4052. abstract="false" native="false" synchronized="false"
  4053. static="true" final="false" visibility="public"
  4054. deprecated="not deprecated">
  4055. <param name="src" type="java.io.File"/>
  4056. <param name="target" type="java.io.File"/>
  4057. <exception name="IOException" type="java.io.IOException"/>
  4058. <doc>
  4059. <![CDATA[Move the src file to the name specified by target.
  4060. @param src the source file
  4061. @param target the target file
  4062. @exception IOException If this operation fails]]>
  4063. </doc>
  4064. </method>
  4065. <method name="listFiles" return="java.io.File[]"
  4066. abstract="false" native="false" synchronized="false"
  4067. static="true" final="false" visibility="public"
  4068. deprecated="not deprecated">
  4069. <param name="dir" type="java.io.File"/>
  4070. <exception name="IOException" type="java.io.IOException"/>
  4071. <doc>
  4072. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4073. when a dir is not a directory or for any I/O error. Instead of having
  4074. null check everywhere File#listFiles() is used, we will add utility API
  4075. to get around this problem. For the majority of cases where we prefer
  4076. an IOException to be thrown.
  4077. @param dir directory for which listing should be performed
  4078. @return list of files or empty list
  4079. @exception IOException for invalid directory or for a bad disk.]]>
  4080. </doc>
  4081. </method>
  4082. <method name="list" return="java.lang.String[]"
  4083. abstract="false" native="false" synchronized="false"
  4084. static="true" final="false" visibility="public"
  4085. deprecated="not deprecated">
  4086. <param name="dir" type="java.io.File"/>
  4087. <exception name="IOException" type="java.io.IOException"/>
  4088. <doc>
  4089. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4090. when a dir is not a directory or for any I/O error. Instead of having
  4091. null check everywhere File#list() is used, we will add utility API
  4092. to get around this problem. For the majority of cases where we prefer
  4093. an IOException to be thrown.
  4094. @param dir directory for which listing should be performed
  4095. @return list of file names or empty string list
  4096. @exception IOException for invalid directory or for a bad disk.]]>
  4097. </doc>
  4098. </method>
  4099. <doc>
  4100. <![CDATA[A collection of file-processing util methods]]>
  4101. </doc>
  4102. </class>
  4103. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4104. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4105. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4106. abstract="false"
  4107. static="false" final="false" visibility="public"
  4108. deprecated="not deprecated">
  4109. <constructor name="FilterFileSystem"
  4110. static="false" final="false" visibility="public"
  4111. deprecated="not deprecated">
  4112. </constructor>
  4113. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4114. static="false" final="false" visibility="public"
  4115. deprecated="not deprecated">
  4116. </constructor>
  4117. <method name="initialize"
  4118. abstract="false" native="false" synchronized="false"
  4119. static="false" final="false" visibility="public"
  4120. deprecated="not deprecated">
  4121. <param name="name" type="java.net.URI"/>
  4122. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4123. <exception name="IOException" type="java.io.IOException"/>
  4124. <doc>
  4125. <![CDATA[Called after a new FileSystem instance is constructed.
  4126. @param name a uri whose authority section names the host, port, etc.
  4127. for this FileSystem
  4128. @param conf the configuration]]>
  4129. </doc>
  4130. </method>
  4131. <method name="getUri" return="java.net.URI"
  4132. abstract="false" native="false" synchronized="false"
  4133. static="false" final="false" visibility="public"
  4134. deprecated="not deprecated">
  4135. <doc>
  4136. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4137. </doc>
  4138. </method>
  4139. <method name="getCanonicalServiceName" return="java.lang.String"
  4140. abstract="false" native="false" synchronized="false"
  4141. static="false" final="false" visibility="public"
  4142. deprecated="not deprecated">
  4143. </method>
  4144. <method name="getName" return="java.lang.String"
  4145. abstract="false" native="false" synchronized="false"
  4146. static="false" final="false" visibility="public"
  4147. deprecated="call #getUri() instead.">
  4148. <doc>
  4149. <![CDATA[@deprecated call #getUri() instead.]]>
  4150. </doc>
  4151. </method>
  4152. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4153. abstract="false" native="false" synchronized="false"
  4154. static="false" final="false" visibility="public"
  4155. deprecated="not deprecated">
  4156. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4157. <doc>
  4158. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4159. </doc>
  4160. </method>
  4161. <method name="checkPath"
  4162. abstract="false" native="false" synchronized="false"
  4163. static="false" final="false" visibility="protected"
  4164. deprecated="not deprecated">
  4165. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4166. <doc>
  4167. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4168. </doc>
  4169. </method>
  4170. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4171. abstract="false" native="false" synchronized="false"
  4172. static="false" final="false" visibility="public"
  4173. deprecated="not deprecated">
  4174. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4175. <param name="start" type="long"/>
  4176. <param name="len" type="long"/>
  4177. <exception name="IOException" type="java.io.IOException"/>
  4178. </method>
  4179. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4180. abstract="false" native="false" synchronized="false"
  4181. static="false" final="false" visibility="public"
  4182. deprecated="not deprecated">
  4183. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4184. <param name="bufferSize" type="int"/>
  4185. <exception name="IOException" type="java.io.IOException"/>
  4186. <doc>
  4187. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4188. @param f the file name to open
  4189. @param bufferSize the size of the buffer to be used.]]>
  4190. </doc>
  4191. </method>
  4192. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4193. abstract="false" native="false" synchronized="false"
  4194. static="false" final="false" visibility="public"
  4195. deprecated="not deprecated">
  4196. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4197. <param name="bufferSize" type="int"/>
  4198. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4199. <exception name="IOException" type="java.io.IOException"/>
  4200. <doc>
  4201. <![CDATA[{@inheritDoc}]]>
  4202. </doc>
  4203. </method>
  4204. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4205. abstract="false" native="false" synchronized="false"
  4206. static="false" final="false" visibility="public"
  4207. deprecated="not deprecated">
  4208. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4209. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4210. <param name="overwrite" type="boolean"/>
  4211. <param name="bufferSize" type="int"/>
  4212. <param name="replication" type="short"/>
  4213. <param name="blockSize" type="long"/>
  4214. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4215. <exception name="IOException" type="java.io.IOException"/>
  4216. <doc>
  4217. <![CDATA[{@inheritDoc}]]>
  4218. </doc>
  4219. </method>
  4220. <method name="setReplication" return="boolean"
  4221. abstract="false" native="false" synchronized="false"
  4222. static="false" final="false" visibility="public"
  4223. deprecated="not deprecated">
  4224. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4225. <param name="replication" type="short"/>
  4226. <exception name="IOException" type="java.io.IOException"/>
  4227. <doc>
  4228. <![CDATA[Set replication for an existing file.
  4229. @param src file name
  4230. @param replication new replication
  4231. @throws IOException
  4232. @return true if successful;
  4233. false if file does not exist or is a directory]]>
  4234. </doc>
  4235. </method>
  4236. <method name="rename" return="boolean"
  4237. abstract="false" native="false" synchronized="false"
  4238. static="false" final="false" visibility="public"
  4239. deprecated="not deprecated">
  4240. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4241. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4242. <exception name="IOException" type="java.io.IOException"/>
  4243. <doc>
  4244. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4245. or remote DFS.]]>
  4246. </doc>
  4247. </method>
  4248. <method name="delete" return="boolean"
  4249. abstract="false" native="false" synchronized="false"
  4250. static="false" final="false" visibility="public"
  4251. deprecated="not deprecated">
  4252. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4253. <exception name="IOException" type="java.io.IOException"/>
  4254. <doc>
  4255. <![CDATA[Delete a file]]>
  4256. </doc>
  4257. </method>
  4258. <method name="delete" return="boolean"
  4259. abstract="false" native="false" synchronized="false"
  4260. static="false" final="false" visibility="public"
  4261. deprecated="not deprecated">
  4262. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4263. <param name="recursive" type="boolean"/>
  4264. <exception name="IOException" type="java.io.IOException"/>
  4265. <doc>
  4266. <![CDATA[Delete a file]]>
  4267. </doc>
  4268. </method>
  4269. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4270. abstract="false" native="false" synchronized="false"
  4271. static="false" final="false" visibility="public"
  4272. deprecated="not deprecated">
  4273. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4274. <exception name="IOException" type="java.io.IOException"/>
  4275. <doc>
  4276. <![CDATA[List files in a directory.]]>
  4277. </doc>
  4278. </method>
  4279. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4280. abstract="false" native="false" synchronized="false"
  4281. static="false" final="false" visibility="public"
  4282. deprecated="not deprecated">
  4283. </method>
  4284. <method name="setWorkingDirectory"
  4285. abstract="false" native="false" synchronized="false"
  4286. static="false" final="false" visibility="public"
  4287. deprecated="not deprecated">
  4288. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4289. <doc>
  4290. <![CDATA[Set the current working directory for the given file system. All relative
  4291. paths will be resolved relative to it.
  4292. @param newDir]]>
  4293. </doc>
  4294. </method>
  4295. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4296. abstract="false" native="false" synchronized="false"
  4297. static="false" final="false" visibility="public"
  4298. deprecated="not deprecated">
  4299. <doc>
  4300. <![CDATA[Get the current working directory for the given file system
  4301. @return the directory pathname]]>
  4302. </doc>
  4303. </method>
  4304. <method name="mkdirs" return="boolean"
  4305. abstract="false" native="false" synchronized="false"
  4306. static="false" final="false" visibility="public"
  4307. deprecated="not deprecated">
  4308. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4309. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4310. <exception name="IOException" type="java.io.IOException"/>
  4311. <doc>
  4312. <![CDATA[{@inheritDoc}]]>
  4313. </doc>
  4314. </method>
  4315. <method name="copyFromLocalFile"
  4316. abstract="false" native="false" synchronized="false"
  4317. static="false" final="false" visibility="public"
  4318. deprecated="not deprecated">
  4319. <param name="delSrc" type="boolean"/>
  4320. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4321. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4322. <exception name="IOException" type="java.io.IOException"/>
  4323. <doc>
  4324. <![CDATA[The src file is on the local disk. Add it to FS at
  4325. the given dst name.
  4326. delSrc indicates if the source should be removed]]>
  4327. </doc>
  4328. </method>
  4329. <method name="copyToLocalFile"
  4330. abstract="false" native="false" synchronized="false"
  4331. static="false" final="false" visibility="public"
  4332. deprecated="not deprecated">
  4333. <param name="delSrc" type="boolean"/>
  4334. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4335. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4336. <exception name="IOException" type="java.io.IOException"/>
  4337. <doc>
  4338. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4339. Copy it from FS control to the local dst name.
  4340. delSrc indicates if the src will be removed or not.]]>
  4341. </doc>
  4342. </method>
  4343. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4344. abstract="false" native="false" synchronized="false"
  4345. static="false" final="false" visibility="public"
  4346. deprecated="not deprecated">
  4347. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4348. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4349. <exception name="IOException" type="java.io.IOException"/>
  4350. <doc>
  4351. <![CDATA[Returns a local File that the user can write output to. The caller
  4352. provides both the eventual FS target name and the local working
  4353. file. If the FS is local, we write directly into the target. If
  4354. the FS is remote, we write into the tmp local area.]]>
  4355. </doc>
  4356. </method>
  4357. <method name="completeLocalOutput"
  4358. abstract="false" native="false" synchronized="false"
  4359. static="false" final="false" visibility="public"
  4360. deprecated="not deprecated">
  4361. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4362. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4363. <exception name="IOException" type="java.io.IOException"/>
  4364. <doc>
  4365. <![CDATA[Called when we're all done writing to the target. A local FS will
  4366. do nothing, because we've written to exactly the right place. A remote
  4367. FS will copy the contents of tmpLocalFile to the correct target at
  4368. fsOutputFile.]]>
  4369. </doc>
  4370. </method>
  4371. <method name="getDefaultBlockSize" return="long"
  4372. abstract="false" native="false" synchronized="false"
  4373. static="false" final="false" visibility="public"
  4374. deprecated="not deprecated">
  4375. <doc>
  4376. <![CDATA[Return the number of bytes that large input files should be optimally
  4377. be split into to minimize i/o time.]]>
  4378. </doc>
  4379. </method>
  4380. <method name="getDefaultReplication" return="short"
  4381. abstract="false" native="false" synchronized="false"
  4382. static="false" final="false" visibility="public"
  4383. deprecated="not deprecated">
  4384. <doc>
  4385. <![CDATA[Get the default replication.]]>
  4386. </doc>
  4387. </method>
  4388. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4389. abstract="false" native="false" synchronized="false"
  4390. static="false" final="false" visibility="public"
  4391. deprecated="not deprecated">
  4392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4393. <exception name="IOException" type="java.io.IOException"/>
  4394. <doc>
  4395. <![CDATA[Get file status.]]>
  4396. </doc>
  4397. </method>
  4398. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4399. abstract="false" native="false" synchronized="false"
  4400. static="false" final="false" visibility="public"
  4401. deprecated="not deprecated">
  4402. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4403. <exception name="IOException" type="java.io.IOException"/>
  4404. <doc>
  4405. <![CDATA[{@inheritDoc}]]>
  4406. </doc>
  4407. </method>
  4408. <method name="setVerifyChecksum"
  4409. abstract="false" native="false" synchronized="false"
  4410. static="false" final="false" visibility="public"
  4411. deprecated="not deprecated">
  4412. <param name="verifyChecksum" type="boolean"/>
  4413. <doc>
  4414. <![CDATA[{@inheritDoc}]]>
  4415. </doc>
  4416. </method>
  4417. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4418. abstract="false" native="false" synchronized="false"
  4419. static="false" final="false" visibility="public"
  4420. deprecated="not deprecated">
  4421. </method>
  4422. <method name="close"
  4423. abstract="false" native="false" synchronized="false"
  4424. static="false" final="false" visibility="public"
  4425. deprecated="not deprecated">
  4426. <exception name="IOException" type="java.io.IOException"/>
  4427. </method>
  4428. <method name="setOwner"
  4429. abstract="false" native="false" synchronized="false"
  4430. static="false" final="false" visibility="public"
  4431. deprecated="not deprecated">
  4432. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4433. <param name="username" type="java.lang.String"/>
  4434. <param name="groupname" type="java.lang.String"/>
  4435. <exception name="IOException" type="java.io.IOException"/>
  4436. <doc>
  4437. <![CDATA[{@inheritDoc}]]>
  4438. </doc>
  4439. </method>
  4440. <method name="setPermission"
  4441. abstract="false" native="false" synchronized="false"
  4442. static="false" final="false" visibility="public"
  4443. deprecated="not deprecated">
  4444. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4445. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4446. <exception name="IOException" type="java.io.IOException"/>
  4447. <doc>
  4448. <![CDATA[{@inheritDoc}]]>
  4449. </doc>
  4450. </method>
  4451. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4452. transient="false" volatile="false"
  4453. static="false" final="false" visibility="protected"
  4454. deprecated="not deprecated">
  4455. </field>
  4456. <doc>
  4457. <![CDATA[A <code>FilterFileSystem</code> contains
  4458. some other file system, which it uses as
  4459. its basic file system, possibly transforming
  4460. the data along the way or providing additional
  4461. functionality. The class <code>FilterFileSystem</code>
  4462. itself simply overrides all methods of
  4463. <code>FileSystem</code> with versions that
  4464. pass all requests to the contained file
  4465. system. Subclasses of <code>FilterFileSystem</code>
  4466. may further override some of these methods
  4467. and may also provide additional methods
  4468. and fields.]]>
  4469. </doc>
  4470. </class>
  4471. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4472. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4473. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4474. abstract="false"
  4475. static="false" final="false" visibility="public"
  4476. deprecated="not deprecated">
  4477. <implements name="org.apache.hadoop.fs.Seekable"/>
  4478. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4479. <implements name="java.io.Closeable"/>
  4480. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4481. static="false" final="false" visibility="public"
  4482. deprecated="not deprecated">
  4483. <exception name="IOException" type="java.io.IOException"/>
  4484. </constructor>
  4485. <method name="seek"
  4486. abstract="false" native="false" synchronized="true"
  4487. static="false" final="false" visibility="public"
  4488. deprecated="not deprecated">
  4489. <param name="desired" type="long"/>
  4490. <exception name="IOException" type="java.io.IOException"/>
  4491. </method>
  4492. <method name="getPos" return="long"
  4493. abstract="false" native="false" synchronized="false"
  4494. static="false" final="false" visibility="public"
  4495. deprecated="not deprecated">
  4496. <exception name="IOException" type="java.io.IOException"/>
  4497. </method>
  4498. <method name="read" return="int"
  4499. abstract="false" native="false" synchronized="false"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. <param name="position" type="long"/>
  4503. <param name="buffer" type="byte[]"/>
  4504. <param name="offset" type="int"/>
  4505. <param name="length" type="int"/>
  4506. <exception name="IOException" type="java.io.IOException"/>
  4507. </method>
  4508. <method name="readFully"
  4509. abstract="false" native="false" synchronized="false"
  4510. static="false" final="false" visibility="public"
  4511. deprecated="not deprecated">
  4512. <param name="position" type="long"/>
  4513. <param name="buffer" type="byte[]"/>
  4514. <param name="offset" type="int"/>
  4515. <param name="length" type="int"/>
  4516. <exception name="IOException" type="java.io.IOException"/>
  4517. </method>
  4518. <method name="readFully"
  4519. abstract="false" native="false" synchronized="false"
  4520. static="false" final="false" visibility="public"
  4521. deprecated="not deprecated">
  4522. <param name="position" type="long"/>
  4523. <param name="buffer" type="byte[]"/>
  4524. <exception name="IOException" type="java.io.IOException"/>
  4525. </method>
  4526. <method name="seekToNewSource" return="boolean"
  4527. abstract="false" native="false" synchronized="false"
  4528. static="false" final="false" visibility="public"
  4529. deprecated="not deprecated">
  4530. <param name="targetPos" type="long"/>
  4531. <exception name="IOException" type="java.io.IOException"/>
  4532. </method>
  4533. <doc>
  4534. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4535. and buffers input through a {@link BufferedInputStream}.]]>
  4536. </doc>
  4537. </class>
  4538. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4539. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4540. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4541. abstract="false"
  4542. static="false" final="false" visibility="public"
  4543. deprecated="not deprecated">
  4544. <implements name="org.apache.hadoop.fs.Syncable"/>
  4545. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4546. static="false" final="false" visibility="public"
  4547. deprecated="not deprecated">
  4548. <exception name="IOException" type="java.io.IOException"/>
  4549. </constructor>
  4550. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4551. static="false" final="false" visibility="public"
  4552. deprecated="not deprecated">
  4553. <exception name="IOException" type="java.io.IOException"/>
  4554. </constructor>
  4555. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4556. static="false" final="false" visibility="public"
  4557. deprecated="not deprecated">
  4558. <exception name="IOException" type="java.io.IOException"/>
  4559. </constructor>
  4560. <method name="getPos" return="long"
  4561. abstract="false" native="false" synchronized="false"
  4562. static="false" final="false" visibility="public"
  4563. deprecated="not deprecated">
  4564. <exception name="IOException" type="java.io.IOException"/>
  4565. </method>
  4566. <method name="close"
  4567. abstract="false" native="false" synchronized="false"
  4568. static="false" final="false" visibility="public"
  4569. deprecated="not deprecated">
  4570. <exception name="IOException" type="java.io.IOException"/>
  4571. </method>
  4572. <method name="getWrappedStream" return="java.io.OutputStream"
  4573. abstract="false" native="false" synchronized="false"
  4574. static="false" final="false" visibility="public"
  4575. deprecated="not deprecated">
  4576. </method>
  4577. <method name="sync"
  4578. abstract="false" native="false" synchronized="false"
  4579. static="false" final="false" visibility="public"
  4580. deprecated="not deprecated">
  4581. <exception name="IOException" type="java.io.IOException"/>
  4582. <doc>
  4583. <![CDATA[{@inheritDoc}]]>
  4584. </doc>
  4585. </method>
  4586. <doc>
  4587. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4588. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4589. file.]]>
  4590. </doc>
  4591. </class>
  4592. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4593. <!-- start class org.apache.hadoop.fs.FSError -->
  4594. <class name="FSError" extends="java.lang.Error"
  4595. abstract="false"
  4596. static="false" final="false" visibility="public"
  4597. deprecated="not deprecated">
  4598. <doc>
  4599. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4600. in the native filesystem.]]>
  4601. </doc>
  4602. </class>
  4603. <!-- end class org.apache.hadoop.fs.FSError -->
  4604. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4605. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4606. abstract="true"
  4607. static="false" final="false" visibility="public"
  4608. deprecated="not deprecated">
  4609. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4610. static="false" final="false" visibility="protected"
  4611. deprecated="not deprecated">
  4612. <doc>
  4613. <![CDATA[Constructor
  4614. @param file The name of the file to be read
  4615. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4616. </doc>
  4617. </constructor>
  4618. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4619. static="false" final="false" visibility="protected"
  4620. deprecated="not deprecated">
  4621. <doc>
  4622. <![CDATA[Constructor
  4623. @param file The name of the file to be read
  4624. @param numOfRetries Number of read retries when ChecksumError occurs
  4625. @param sum the type of Checksum engine
  4626. @param chunkSize maximun chunk size
  4627. @param checksumSize the number byte of each checksum]]>
  4628. </doc>
  4629. </constructor>
  4630. <method name="readChunk" return="int"
  4631. abstract="true" native="false" synchronized="false"
  4632. static="false" final="false" visibility="protected"
  4633. deprecated="not deprecated">
  4634. <param name="pos" type="long"/>
  4635. <param name="buf" type="byte[]"/>
  4636. <param name="offset" type="int"/>
  4637. <param name="len" type="int"/>
  4638. <param name="checksum" type="byte[]"/>
  4639. <exception name="IOException" type="java.io.IOException"/>
  4640. <doc>
  4641. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4642. and checksum into <code>checksum</code>.
  4643. The method is used for implementing read, therefore, it should be optimized
  4644. for sequential reading
  4645. @param pos chunkPos
  4646. @param buf desitination buffer
  4647. @param offset offset in buf at which to store data
  4648. @param len maximun number of bytes to read
  4649. @return number of bytes read]]>
  4650. </doc>
  4651. </method>
  4652. <method name="getChunkPosition" return="long"
  4653. abstract="true" native="false" synchronized="false"
  4654. static="false" final="false" visibility="protected"
  4655. deprecated="not deprecated">
  4656. <param name="pos" type="long"/>
  4657. <doc>
  4658. <![CDATA[Return position of beginning of chunk containing pos.
  4659. @param pos a postion in the file
  4660. @return the starting position of the chunk which contains the byte]]>
  4661. </doc>
  4662. </method>
  4663. <method name="needChecksum" return="boolean"
  4664. abstract="false" native="false" synchronized="true"
  4665. static="false" final="false" visibility="protected"
  4666. deprecated="not deprecated">
  4667. <doc>
  4668. <![CDATA[Return true if there is a need for checksum verification]]>
  4669. </doc>
  4670. </method>
  4671. <method name="read" return="int"
  4672. abstract="false" native="false" synchronized="true"
  4673. static="false" final="false" visibility="public"
  4674. deprecated="not deprecated">
  4675. <exception name="IOException" type="java.io.IOException"/>
  4676. <doc>
  4677. <![CDATA[Read one checksum-verified byte
  4678. @return the next byte of data, or <code>-1</code> if the end of the
  4679. stream is reached.
  4680. @exception IOException if an I/O error occurs.]]>
  4681. </doc>
  4682. </method>
  4683. <method name="read" return="int"
  4684. abstract="false" native="false" synchronized="true"
  4685. static="false" final="false" visibility="public"
  4686. deprecated="not deprecated">
  4687. <param name="b" type="byte[]"/>
  4688. <param name="off" type="int"/>
  4689. <param name="len" type="int"/>
  4690. <exception name="IOException" type="java.io.IOException"/>
  4691. <doc>
  4692. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4693. the specified byte array, starting at the given offset.
  4694. <p> This method implements the general contract of the corresponding
  4695. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4696. the <code>{@link InputStream}</code> class. As an additional
  4697. convenience, it attempts to read as many bytes as possible by repeatedly
  4698. invoking the <code>read</code> method of the underlying stream. This
  4699. iterated <code>read</code> continues until one of the following
  4700. conditions becomes true: <ul>
  4701. <li> The specified number of bytes have been read,
  4702. <li> The <code>read</code> method of the underlying stream returns
  4703. <code>-1</code>, indicating end-of-file.
  4704. </ul> If the first <code>read</code> on the underlying stream returns
  4705. <code>-1</code> to indicate end-of-file then this method returns
  4706. <code>-1</code>. Otherwise this method returns the number of bytes
  4707. actually read.
  4708. @param b destination buffer.
  4709. @param off offset at which to start storing bytes.
  4710. @param len maximum number of bytes to read.
  4711. @return the number of bytes read, or <code>-1</code> if the end of
  4712. the stream has been reached.
  4713. @exception IOException if an I/O error occurs.
  4714. ChecksumException if any checksum error occurs]]>
  4715. </doc>
  4716. </method>
  4717. <method name="checksum2long" return="long"
  4718. abstract="false" native="false" synchronized="false"
  4719. static="true" final="false" visibility="public"
  4720. deprecated="not deprecated">
  4721. <param name="checksum" type="byte[]"/>
  4722. <doc>
  4723. <![CDATA[Convert a checksum byte array to a long]]>
  4724. </doc>
  4725. </method>
  4726. <method name="getPos" return="long"
  4727. abstract="false" native="false" synchronized="true"
  4728. static="false" final="false" visibility="public"
  4729. deprecated="not deprecated">
  4730. <exception name="IOException" type="java.io.IOException"/>
  4731. </method>
  4732. <method name="available" return="int"
  4733. abstract="false" native="false" synchronized="true"
  4734. static="false" final="false" visibility="public"
  4735. deprecated="not deprecated">
  4736. <exception name="IOException" type="java.io.IOException"/>
  4737. </method>
  4738. <method name="skip" return="long"
  4739. abstract="false" native="false" synchronized="true"
  4740. static="false" final="false" visibility="public"
  4741. deprecated="not deprecated">
  4742. <param name="n" type="long"/>
  4743. <exception name="IOException" type="java.io.IOException"/>
  4744. <doc>
  4745. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4746. input stream.
  4747. <p>This method may skip more bytes than are remaining in the backing
  4748. file. This produces no exception and the number of bytes skipped
  4749. may include some number of bytes that were beyond the EOF of the
  4750. backing file. Attempting to read from the stream after skipping past
  4751. the end will result in -1 indicating the end of the file.
  4752. <p>If <code>n</code> is negative, no bytes are skipped.
  4753. @param n the number of bytes to be skipped.
  4754. @return the actual number of bytes skipped.
  4755. @exception IOException if an I/O error occurs.
  4756. ChecksumException if the chunk to skip to is corrupted]]>
  4757. </doc>
  4758. </method>
  4759. <method name="seek"
  4760. abstract="false" native="false" synchronized="true"
  4761. static="false" final="false" visibility="public"
  4762. deprecated="not deprecated">
  4763. <param name="pos" type="long"/>
  4764. <exception name="IOException" type="java.io.IOException"/>
  4765. <doc>
  4766. <![CDATA[Seek to the given position in the stream.
  4767. The next read() will be from that position.
  4768. <p>This method may seek past the end of the file.
  4769. This produces no exception and an attempt to read from
  4770. the stream will result in -1 indicating the end of the file.
  4771. @param pos the postion to seek to.
  4772. @exception IOException if an I/O error occurs.
  4773. ChecksumException if the chunk to seek to is corrupted]]>
  4774. </doc>
  4775. </method>
  4776. <method name="readFully" return="int"
  4777. abstract="false" native="false" synchronized="false"
  4778. static="true" final="false" visibility="protected"
  4779. deprecated="not deprecated">
  4780. <param name="stm" type="java.io.InputStream"/>
  4781. <param name="buf" type="byte[]"/>
  4782. <param name="offset" type="int"/>
  4783. <param name="len" type="int"/>
  4784. <exception name="IOException" type="java.io.IOException"/>
  4785. <doc>
  4786. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4787. <code>stm</code>
  4788. @param stm an input stream
  4789. @param buf destiniation buffer
  4790. @param offset offset at which to store data
  4791. @param len number of bytes to read
  4792. @return actual number of bytes read
  4793. @throws IOException if there is any IO error]]>
  4794. </doc>
  4795. </method>
  4796. <method name="set"
  4797. abstract="false" native="false" synchronized="true"
  4798. static="false" final="true" visibility="protected"
  4799. deprecated="not deprecated">
  4800. <param name="verifyChecksum" type="boolean"/>
  4801. <param name="sum" type="java.util.zip.Checksum"/>
  4802. <param name="maxChunkSize" type="int"/>
  4803. <param name="checksumSize" type="int"/>
  4804. <doc>
  4805. <![CDATA[Set the checksum related parameters
  4806. @param verifyChecksum whether to verify checksum
  4807. @param sum which type of checksum to use
  4808. @param maxChunkSize maximun chunk size
  4809. @param checksumSize checksum size]]>
  4810. </doc>
  4811. </method>
  4812. <method name="markSupported" return="boolean"
  4813. abstract="false" native="false" synchronized="false"
  4814. static="false" final="true" visibility="public"
  4815. deprecated="not deprecated">
  4816. </method>
  4817. <method name="mark"
  4818. abstract="false" native="false" synchronized="false"
  4819. static="false" final="true" visibility="public"
  4820. deprecated="not deprecated">
  4821. <param name="readlimit" type="int"/>
  4822. </method>
  4823. <method name="reset"
  4824. abstract="false" native="false" synchronized="false"
  4825. static="false" final="true" visibility="public"
  4826. deprecated="not deprecated">
  4827. <exception name="IOException" type="java.io.IOException"/>
  4828. </method>
  4829. <field name="LOG" type="org.apache.commons.logging.Log"
  4830. transient="false" volatile="false"
  4831. static="true" final="true" visibility="public"
  4832. deprecated="not deprecated">
  4833. </field>
  4834. <field name="file" type="org.apache.hadoop.fs.Path"
  4835. transient="false" volatile="false"
  4836. static="false" final="false" visibility="protected"
  4837. deprecated="not deprecated">
  4838. <doc>
  4839. <![CDATA[The file name from which data is read from]]>
  4840. </doc>
  4841. </field>
  4842. <doc>
  4843. <![CDATA[This is a generic input stream for verifying checksums for
  4844. data before it is read by a user.]]>
  4845. </doc>
  4846. </class>
  4847. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4848. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4849. <class name="FSInputStream" extends="java.io.InputStream"
  4850. abstract="true"
  4851. static="false" final="false" visibility="public"
  4852. deprecated="not deprecated">
  4853. <implements name="org.apache.hadoop.fs.Seekable"/>
  4854. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4855. <constructor name="FSInputStream"
  4856. static="false" final="false" visibility="public"
  4857. deprecated="not deprecated">
  4858. </constructor>
  4859. <method name="seek"
  4860. abstract="true" native="false" synchronized="false"
  4861. static="false" final="false" visibility="public"
  4862. deprecated="not deprecated">
  4863. <param name="pos" type="long"/>
  4864. <exception name="IOException" type="java.io.IOException"/>
  4865. <doc>
  4866. <![CDATA[Seek to the given offset from the start of the file.
  4867. The next read() will be from that location. Can't
  4868. seek past the end of the file.]]>
  4869. </doc>
  4870. </method>
  4871. <method name="getPos" return="long"
  4872. abstract="true" native="false" synchronized="false"
  4873. static="false" final="false" visibility="public"
  4874. deprecated="not deprecated">
  4875. <exception name="IOException" type="java.io.IOException"/>
  4876. <doc>
  4877. <![CDATA[Return the current offset from the start of the file]]>
  4878. </doc>
  4879. </method>
  4880. <method name="seekToNewSource" return="boolean"
  4881. abstract="true" native="false" synchronized="false"
  4882. static="false" final="false" visibility="public"
  4883. deprecated="not deprecated">
  4884. <param name="targetPos" type="long"/>
  4885. <exception name="IOException" type="java.io.IOException"/>
  4886. <doc>
  4887. <![CDATA[Seeks a different copy of the data. Returns true if
  4888. found a new source, false otherwise.]]>
  4889. </doc>
  4890. </method>
  4891. <method name="read" return="int"
  4892. abstract="false" native="false" synchronized="false"
  4893. static="false" final="false" visibility="public"
  4894. deprecated="not deprecated">
  4895. <param name="position" type="long"/>
  4896. <param name="buffer" type="byte[]"/>
  4897. <param name="offset" type="int"/>
  4898. <param name="length" type="int"/>
  4899. <exception name="IOException" type="java.io.IOException"/>
  4900. </method>
  4901. <method name="readFully"
  4902. abstract="false" native="false" synchronized="false"
  4903. static="false" final="false" visibility="public"
  4904. deprecated="not deprecated">
  4905. <param name="position" type="long"/>
  4906. <param name="buffer" type="byte[]"/>
  4907. <param name="offset" type="int"/>
  4908. <param name="length" type="int"/>
  4909. <exception name="IOException" type="java.io.IOException"/>
  4910. </method>
  4911. <method name="readFully"
  4912. abstract="false" native="false" synchronized="false"
  4913. static="false" final="false" visibility="public"
  4914. deprecated="not deprecated">
  4915. <param name="position" type="long"/>
  4916. <param name="buffer" type="byte[]"/>
  4917. <exception name="IOException" type="java.io.IOException"/>
  4918. </method>
  4919. <doc>
  4920. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4921. of RAF-style seek ability.]]>
  4922. </doc>
  4923. </class>
  4924. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4925. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4926. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4927. abstract="true"
  4928. static="false" final="false" visibility="public"
  4929. deprecated="not deprecated">
  4930. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4931. static="false" final="false" visibility="protected"
  4932. deprecated="not deprecated">
  4933. </constructor>
  4934. <method name="writeChunk"
  4935. abstract="true" native="false" synchronized="false"
  4936. static="false" final="false" visibility="protected"
  4937. deprecated="not deprecated">
  4938. <param name="b" type="byte[]"/>
  4939. <param name="offset" type="int"/>
  4940. <param name="len" type="int"/>
  4941. <param name="checksum" type="byte[]"/>
  4942. <exception name="IOException" type="java.io.IOException"/>
  4943. </method>
  4944. <method name="write"
  4945. abstract="false" native="false" synchronized="true"
  4946. static="false" final="false" visibility="public"
  4947. deprecated="not deprecated">
  4948. <param name="b" type="int"/>
  4949. <exception name="IOException" type="java.io.IOException"/>
  4950. <doc>
  4951. <![CDATA[Write one byte]]>
  4952. </doc>
  4953. </method>
  4954. <method name="write"
  4955. abstract="false" native="false" synchronized="true"
  4956. static="false" final="false" visibility="public"
  4957. deprecated="not deprecated">
  4958. <param name="b" type="byte[]"/>
  4959. <param name="off" type="int"/>
  4960. <param name="len" type="int"/>
  4961. <exception name="IOException" type="java.io.IOException"/>
  4962. <doc>
  4963. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4964. starting at offset <code>off</code> and generate a checksum for
  4965. each data chunk.
  4966. <p> This method stores bytes from the given array into this
  4967. stream's buffer before it gets checksumed. The buffer gets checksumed
  4968. and flushed to the underlying output stream when all data
  4969. in a checksum chunk are in the buffer. If the buffer is empty and
  4970. requested length is at least as large as the size of next checksum chunk
  4971. size, this method will checksum and write the chunk directly
  4972. to the underlying output stream. Thus it avoids uneccessary data copy.
  4973. @param b the data.
  4974. @param off the start offset in the data.
  4975. @param len the number of bytes to write.
  4976. @exception IOException if an I/O error occurs.]]>
  4977. </doc>
  4978. </method>
  4979. <method name="flushBuffer"
  4980. abstract="false" native="false" synchronized="true"
  4981. static="false" final="false" visibility="protected"
  4982. deprecated="not deprecated">
  4983. <exception name="IOException" type="java.io.IOException"/>
  4984. </method>
  4985. <method name="flushBuffer"
  4986. abstract="false" native="false" synchronized="true"
  4987. static="false" final="false" visibility="protected"
  4988. deprecated="not deprecated">
  4989. <param name="keep" type="boolean"/>
  4990. <exception name="IOException" type="java.io.IOException"/>
  4991. </method>
  4992. <method name="convertToByteStream" return="byte[]"
  4993. abstract="false" native="false" synchronized="false"
  4994. static="true" final="false" visibility="public"
  4995. deprecated="not deprecated">
  4996. <param name="sum" type="java.util.zip.Checksum"/>
  4997. <param name="checksumSize" type="int"/>
  4998. <doc>
  4999. <![CDATA[Converts a checksum integer value to a byte stream]]>
  5000. </doc>
  5001. </method>
  5002. <method name="resetChecksumChunk"
  5003. abstract="false" native="false" synchronized="true"
  5004. static="false" final="false" visibility="protected"
  5005. deprecated="not deprecated">
  5006. <param name="size" type="int"/>
  5007. <doc>
  5008. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  5009. </doc>
  5010. </method>
  5011. <doc>
  5012. <![CDATA[This is a generic output stream for generating checksums for
  5013. data before it is written to the underlying stream]]>
  5014. </doc>
  5015. </class>
  5016. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  5017. <!-- start class org.apache.hadoop.fs.FsShell -->
  5018. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  5019. abstract="false"
  5020. static="false" final="false" visibility="public"
  5021. deprecated="not deprecated">
  5022. <implements name="org.apache.hadoop.util.Tool"/>
  5023. <constructor name="FsShell"
  5024. static="false" final="false" visibility="public"
  5025. deprecated="not deprecated">
  5026. </constructor>
  5027. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  5028. static="false" final="false" visibility="public"
  5029. deprecated="not deprecated">
  5030. </constructor>
  5031. <method name="init"
  5032. abstract="false" native="false" synchronized="false"
  5033. static="false" final="false" visibility="protected"
  5034. deprecated="not deprecated">
  5035. <exception name="IOException" type="java.io.IOException"/>
  5036. </method>
  5037. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  5038. abstract="false" native="false" synchronized="false"
  5039. static="false" final="false" visibility="public"
  5040. deprecated="not deprecated">
  5041. <doc>
  5042. <![CDATA[Returns the Trash object associated with this shell.]]>
  5043. </doc>
  5044. </method>
  5045. <method name="byteDesc" return="java.lang.String"
  5046. abstract="false" native="false" synchronized="false"
  5047. static="true" final="false" visibility="public"
  5048. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  5049. <param name="len" type="long"/>
  5050. <doc>
  5051. <![CDATA[Return an abbreviated English-language desc of the byte length
  5052. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  5053. </doc>
  5054. </method>
  5055. <method name="limitDecimalTo2" return="java.lang.String"
  5056. abstract="false" native="false" synchronized="true"
  5057. static="true" final="false" visibility="public"
  5058. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5059. <param name="d" type="double"/>
  5060. <doc>
  5061. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5062. </doc>
  5063. </method>
  5064. <method name="run" return="int"
  5065. abstract="false" native="false" synchronized="false"
  5066. static="false" final="false" visibility="public"
  5067. deprecated="not deprecated">
  5068. <param name="argv" type="java.lang.String[]"/>
  5069. <exception name="Exception" type="java.lang.Exception"/>
  5070. <doc>
  5071. <![CDATA[run]]>
  5072. </doc>
  5073. </method>
  5074. <method name="close"
  5075. abstract="false" native="false" synchronized="false"
  5076. static="false" final="false" visibility="public"
  5077. deprecated="not deprecated">
  5078. <exception name="IOException" type="java.io.IOException"/>
  5079. </method>
  5080. <method name="main"
  5081. abstract="false" native="false" synchronized="false"
  5082. static="true" final="false" visibility="public"
  5083. deprecated="not deprecated">
  5084. <param name="argv" type="java.lang.String[]"/>
  5085. <exception name="Exception" type="java.lang.Exception"/>
  5086. <doc>
  5087. <![CDATA[main() has some simple utility methods]]>
  5088. </doc>
  5089. </method>
  5090. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5091. transient="false" volatile="false"
  5092. static="false" final="false" visibility="protected"
  5093. deprecated="not deprecated">
  5094. </field>
  5095. <field name="dateForm" type="java.text.SimpleDateFormat"
  5096. transient="false" volatile="false"
  5097. static="true" final="true" visibility="public"
  5098. deprecated="not deprecated">
  5099. </field>
  5100. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5101. transient="false" volatile="false"
  5102. static="true" final="true" visibility="protected"
  5103. deprecated="not deprecated">
  5104. </field>
  5105. <doc>
  5106. <![CDATA[Provide command line access to a FileSystem.]]>
  5107. </doc>
  5108. </class>
  5109. <!-- end class org.apache.hadoop.fs.FsShell -->
  5110. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5111. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5112. abstract="false"
  5113. static="false" final="false" visibility="public"
  5114. deprecated="not deprecated">
  5115. <implements name="java.net.URLStreamHandlerFactory"/>
  5116. <constructor name="FsUrlStreamHandlerFactory"
  5117. static="false" final="false" visibility="public"
  5118. deprecated="not deprecated">
  5119. </constructor>
  5120. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5121. static="false" final="false" visibility="public"
  5122. deprecated="not deprecated">
  5123. </constructor>
  5124. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5125. abstract="false" native="false" synchronized="false"
  5126. static="false" final="false" visibility="public"
  5127. deprecated="not deprecated">
  5128. <param name="protocol" type="java.lang.String"/>
  5129. </method>
  5130. <doc>
  5131. <![CDATA[Factory for URL stream handlers.
  5132. There is only one handler whose job is to create UrlConnections. A
  5133. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5134. implementation.
  5135. Before returning our handler, we make sure that FileSystem knows an
  5136. implementation for the requested scheme/protocol.]]>
  5137. </doc>
  5138. </class>
  5139. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5140. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5141. <class name="GlobPattern" extends="java.lang.Object"
  5142. abstract="false"
  5143. static="false" final="false" visibility="public"
  5144. deprecated="not deprecated">
  5145. <constructor name="GlobPattern" type="java.lang.String"
  5146. static="false" final="false" visibility="public"
  5147. deprecated="not deprecated">
  5148. <doc>
  5149. <![CDATA[Construct the glob pattern object with a glob pattern string
  5150. @param globPattern the glob pattern string]]>
  5151. </doc>
  5152. </constructor>
  5153. <method name="compiled" return="java.util.regex.Pattern"
  5154. abstract="false" native="false" synchronized="false"
  5155. static="false" final="false" visibility="public"
  5156. deprecated="not deprecated">
  5157. <doc>
  5158. <![CDATA[@return the compiled pattern]]>
  5159. </doc>
  5160. </method>
  5161. <method name="compile" return="java.util.regex.Pattern"
  5162. abstract="false" native="false" synchronized="false"
  5163. static="true" final="false" visibility="public"
  5164. deprecated="not deprecated">
  5165. <param name="globPattern" type="java.lang.String"/>
  5166. <doc>
  5167. <![CDATA[Compile glob pattern string
  5168. @param globPattern the glob pattern
  5169. @return the pattern object]]>
  5170. </doc>
  5171. </method>
  5172. <method name="matches" return="boolean"
  5173. abstract="false" native="false" synchronized="false"
  5174. static="false" final="false" visibility="public"
  5175. deprecated="not deprecated">
  5176. <param name="s" type="java.lang.CharSequence"/>
  5177. <doc>
  5178. <![CDATA[Match input against the compiled glob pattern
  5179. @param s input chars
  5180. @return true for successful matches]]>
  5181. </doc>
  5182. </method>
  5183. <method name="set"
  5184. abstract="false" native="false" synchronized="false"
  5185. static="false" final="false" visibility="public"
  5186. deprecated="not deprecated">
  5187. <param name="glob" type="java.lang.String"/>
  5188. <doc>
  5189. <![CDATA[Set and compile a glob pattern
  5190. @param glob the glob pattern string]]>
  5191. </doc>
  5192. </method>
  5193. <method name="hasWildcard" return="boolean"
  5194. abstract="false" native="false" synchronized="false"
  5195. static="false" final="false" visibility="public"
  5196. deprecated="not deprecated">
  5197. <doc>
  5198. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5199. </doc>
  5200. </method>
  5201. <doc>
  5202. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5203. </doc>
  5204. </class>
  5205. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5206. <!-- start class org.apache.hadoop.fs.HardLink -->
  5207. <class name="HardLink" extends="java.lang.Object"
  5208. abstract="false"
  5209. static="false" final="false" visibility="public"
  5210. deprecated="not deprecated">
  5211. <constructor name="HardLink"
  5212. static="false" final="false" visibility="public"
  5213. deprecated="not deprecated">
  5214. </constructor>
  5215. <method name="getLinkMultArgLength" return="int"
  5216. abstract="false" native="false" synchronized="false"
  5217. static="true" final="false" visibility="protected"
  5218. deprecated="not deprecated">
  5219. <param name="fileDir" type="java.io.File"/>
  5220. <param name="fileBaseNames" type="java.lang.String[]"/>
  5221. <param name="linkDir" type="java.io.File"/>
  5222. <exception name="IOException" type="java.io.IOException"/>
  5223. <doc>
  5224. <![CDATA[Calculate the nominal length of all contributors to the total
  5225. commandstring length, including fixed overhead of the OS-dependent
  5226. command. It's protected rather than private, to assist unit testing,
  5227. but real clients are not expected to need it -- see the way
  5228. createHardLinkMult() uses it internally so the user doesn't need to worry
  5229. about it.
  5230. @param fileDir - source directory, parent of fileBaseNames
  5231. @param fileBaseNames - array of path-less file names, relative
  5232. to the source directory
  5233. @param linkDir - target directory where the hardlinks will be put
  5234. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5235. @throws IOException]]>
  5236. </doc>
  5237. </method>
  5238. <method name="getMaxAllowedCmdArgLength" return="int"
  5239. abstract="false" native="false" synchronized="false"
  5240. static="true" final="false" visibility="protected"
  5241. deprecated="not deprecated">
  5242. <doc>
  5243. <![CDATA[Return this private value for use by unit tests.
  5244. Shell commands are not allowed to have a total string length
  5245. exceeding this size.]]>
  5246. </doc>
  5247. </method>
  5248. <method name="createHardLink"
  5249. abstract="false" native="false" synchronized="false"
  5250. static="true" final="false" visibility="public"
  5251. deprecated="not deprecated">
  5252. <param name="file" type="java.io.File"/>
  5253. <param name="linkName" type="java.io.File"/>
  5254. <exception name="IOException" type="java.io.IOException"/>
  5255. <doc>
  5256. <![CDATA[Creates a hardlink
  5257. @param file - existing source file
  5258. @param linkName - desired target link file]]>
  5259. </doc>
  5260. </method>
  5261. <method name="createHardLinkMult"
  5262. abstract="false" native="false" synchronized="false"
  5263. static="true" final="false" visibility="public"
  5264. deprecated="not deprecated">
  5265. <param name="parentDir" type="java.io.File"/>
  5266. <param name="fileBaseNames" type="java.lang.String[]"/>
  5267. <param name="linkDir" type="java.io.File"/>
  5268. <exception name="IOException" type="java.io.IOException"/>
  5269. <doc>
  5270. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5271. directory, into one target directory.
  5272. @param parentDir - directory containing source files
  5273. @param fileBaseNames - list of path-less file names, as returned by
  5274. parentDir.list()
  5275. @param linkDir - where the hardlinks should be put. It must already exist.
  5276. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5277. we will automatically split it into multiple invocations of the
  5278. underlying method.]]>
  5279. </doc>
  5280. </method>
  5281. <method name="createHardLinkMult" return="int"
  5282. abstract="false" native="false" synchronized="false"
  5283. static="true" final="false" visibility="protected"
  5284. deprecated="not deprecated">
  5285. <param name="parentDir" type="java.io.File"/>
  5286. <param name="fileBaseNames" type="java.lang.String[]"/>
  5287. <param name="linkDir" type="java.io.File"/>
  5288. <param name="maxLength" type="int"/>
  5289. <exception name="IOException" type="java.io.IOException"/>
  5290. </method>
  5291. <method name="getLinkCount" return="int"
  5292. abstract="false" native="false" synchronized="false"
  5293. static="true" final="false" visibility="public"
  5294. deprecated="not deprecated">
  5295. <param name="fileName" type="java.io.File"/>
  5296. <exception name="IOException" type="java.io.IOException"/>
  5297. <doc>
  5298. <![CDATA[Retrieves the number of links to the specified file.]]>
  5299. </doc>
  5300. </method>
  5301. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5302. transient="false" volatile="false"
  5303. static="true" final="false" visibility="public"
  5304. deprecated="not deprecated">
  5305. </field>
  5306. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5307. transient="false" volatile="false"
  5308. static="false" final="true" visibility="public"
  5309. deprecated="not deprecated">
  5310. </field>
  5311. <doc>
  5312. <![CDATA[Class for creating hardlinks.
  5313. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5314. The HardLink class was formerly a static inner class of FSUtil,
  5315. and the methods provided were blatantly non-thread-safe.
  5316. To enable volume-parallel Update snapshots, we now provide static
  5317. threadsafe methods that allocate new buffer string arrays
  5318. upon each call. We also provide an API to hardlink all files in a
  5319. directory with a single command, which is up to 128 times more
  5320. efficient - and minimizes the impact of the extra buffer creations.]]>
  5321. </doc>
  5322. </class>
  5323. <!-- end class org.apache.hadoop.fs.HardLink -->
  5324. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5325. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5326. abstract="false"
  5327. static="true" final="false" visibility="public"
  5328. deprecated="not deprecated">
  5329. <constructor name="HardLink.LinkStats"
  5330. static="false" final="false" visibility="public"
  5331. deprecated="not deprecated">
  5332. </constructor>
  5333. <method name="clear"
  5334. abstract="false" native="false" synchronized="false"
  5335. static="false" final="false" visibility="public"
  5336. deprecated="not deprecated">
  5337. </method>
  5338. <method name="report" return="java.lang.String"
  5339. abstract="false" native="false" synchronized="false"
  5340. static="false" final="false" visibility="public"
  5341. deprecated="not deprecated">
  5342. </method>
  5343. <field name="countDirs" type="int"
  5344. transient="false" volatile="false"
  5345. static="false" final="false" visibility="public"
  5346. deprecated="not deprecated">
  5347. </field>
  5348. <field name="countSingleLinks" type="int"
  5349. transient="false" volatile="false"
  5350. static="false" final="false" visibility="public"
  5351. deprecated="not deprecated">
  5352. </field>
  5353. <field name="countMultLinks" type="int"
  5354. transient="false" volatile="false"
  5355. static="false" final="false" visibility="public"
  5356. deprecated="not deprecated">
  5357. </field>
  5358. <field name="countFilesMultLinks" type="int"
  5359. transient="false" volatile="false"
  5360. static="false" final="false" visibility="public"
  5361. deprecated="not deprecated">
  5362. </field>
  5363. <field name="countEmptyDirs" type="int"
  5364. transient="false" volatile="false"
  5365. static="false" final="false" visibility="public"
  5366. deprecated="not deprecated">
  5367. </field>
  5368. <field name="countPhysicalFileCopies" type="int"
  5369. transient="false" volatile="false"
  5370. static="false" final="false" visibility="public"
  5371. deprecated="not deprecated">
  5372. </field>
  5373. <doc>
  5374. <![CDATA[HardLink statistics counters and methods.
  5375. Not multi-thread safe, obviously.
  5376. Init is called during HardLink instantiation, above.
  5377. These are intended for use by knowledgeable clients, not internally,
  5378. because many of the internal methods are static and can't update these
  5379. per-instance counters.]]>
  5380. </doc>
  5381. </class>
  5382. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5383. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5384. <class name="HardLink.OSType" extends="java.lang.Enum"
  5385. abstract="false"
  5386. static="true" final="true" visibility="public"
  5387. deprecated="not deprecated">
  5388. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5389. abstract="false" native="false" synchronized="false"
  5390. static="true" final="false" visibility="public"
  5391. deprecated="not deprecated">
  5392. </method>
  5393. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5394. abstract="false" native="false" synchronized="false"
  5395. static="true" final="false" visibility="public"
  5396. deprecated="not deprecated">
  5397. <param name="name" type="java.lang.String"/>
  5398. </method>
  5399. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5400. transient="false" volatile="false"
  5401. static="true" final="true" visibility="public"
  5402. deprecated="not deprecated">
  5403. </field>
  5404. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5405. transient="false" volatile="false"
  5406. static="true" final="true" visibility="public"
  5407. deprecated="not deprecated">
  5408. </field>
  5409. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5410. transient="false" volatile="false"
  5411. static="true" final="true" visibility="public"
  5412. deprecated="not deprecated">
  5413. </field>
  5414. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5415. transient="false" volatile="false"
  5416. static="true" final="true" visibility="public"
  5417. deprecated="not deprecated">
  5418. </field>
  5419. </class>
  5420. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5421. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5422. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5423. abstract="false"
  5424. static="false" final="false" visibility="public"
  5425. deprecated="not deprecated">
  5426. <constructor name="HarFileSystem"
  5427. static="false" final="false" visibility="public"
  5428. deprecated="not deprecated">
  5429. <doc>
  5430. <![CDATA[public construction of harfilesystem]]>
  5431. </doc>
  5432. </constructor>
  5433. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5434. static="false" final="false" visibility="public"
  5435. deprecated="not deprecated">
  5436. <doc>
  5437. <![CDATA[Constructor to create a HarFileSystem with an
  5438. underlying filesystem.
  5439. @param fs]]>
  5440. </doc>
  5441. </constructor>
  5442. <method name="initialize"
  5443. abstract="false" native="false" synchronized="false"
  5444. static="false" final="false" visibility="public"
  5445. deprecated="not deprecated">
  5446. <param name="name" type="java.net.URI"/>
  5447. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5448. <exception name="IOException" type="java.io.IOException"/>
  5449. <doc>
  5450. <![CDATA[Initialize a Har filesystem per har archive. The
  5451. archive home directory is the top level directory
  5452. in the filesystem that contains the HAR archive.
  5453. Be careful with this method, you do not want to go
  5454. on creating new Filesystem instances per call to
  5455. path.getFileSystem().
  5456. the uri of Har is
  5457. har://underlyingfsscheme-host:port/archivepath.
  5458. or
  5459. har:///archivepath. This assumes the underlying filesystem
  5460. to be used in case not specified.]]>
  5461. </doc>
  5462. </method>
  5463. <method name="getHarVersion" return="int"
  5464. abstract="false" native="false" synchronized="false"
  5465. static="false" final="false" visibility="public"
  5466. deprecated="not deprecated">
  5467. <exception name="IOException" type="java.io.IOException"/>
  5468. </method>
  5469. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5470. abstract="false" native="false" synchronized="false"
  5471. static="false" final="false" visibility="public"
  5472. deprecated="not deprecated">
  5473. <doc>
  5474. <![CDATA[return the top level archive.]]>
  5475. </doc>
  5476. </method>
  5477. <method name="getUri" return="java.net.URI"
  5478. abstract="false" native="false" synchronized="false"
  5479. static="false" final="false" visibility="public"
  5480. deprecated="not deprecated">
  5481. <doc>
  5482. <![CDATA[Returns the uri of this filesystem.
  5483. The uri is of the form
  5484. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5485. </doc>
  5486. </method>
  5487. <method name="getCanonicalServiceName" return="java.lang.String"
  5488. abstract="false" native="false" synchronized="false"
  5489. static="false" final="false" visibility="public"
  5490. deprecated="not deprecated">
  5491. </method>
  5492. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5493. abstract="false" native="false" synchronized="false"
  5494. static="false" final="false" visibility="public"
  5495. deprecated="not deprecated">
  5496. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5497. </method>
  5498. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5499. abstract="false" native="false" synchronized="false"
  5500. static="false" final="false" visibility="public"
  5501. deprecated="not deprecated">
  5502. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5503. <param name="start" type="long"/>
  5504. <param name="len" type="long"/>
  5505. <exception name="IOException" type="java.io.IOException"/>
  5506. <doc>
  5507. <![CDATA[Get block locations from the underlying fs and fix their
  5508. offsets and lengths.
  5509. @param file the input filestatus to get block locations
  5510. @param start the start of the desired range in the contained file
  5511. @param len the length of the desired range
  5512. @return block locations for this segment of file
  5513. @throws IOException]]>
  5514. </doc>
  5515. </method>
  5516. <method name="getHarHash" return="int"
  5517. abstract="false" native="false" synchronized="false"
  5518. static="true" final="false" visibility="public"
  5519. deprecated="not deprecated">
  5520. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5521. <doc>
  5522. <![CDATA[the hash of the path p inside iniside
  5523. the filesystem
  5524. @param p the path in the harfilesystem
  5525. @return the hash code of the path.]]>
  5526. </doc>
  5527. </method>
  5528. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5529. abstract="false" native="false" synchronized="false"
  5530. static="false" final="false" visibility="public"
  5531. deprecated="not deprecated">
  5532. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5533. <exception name="IOException" type="java.io.IOException"/>
  5534. <doc>
  5535. <![CDATA[return the filestatus of files in har archive.
  5536. The permission returned are that of the archive
  5537. index files. The permissions are not persisted
  5538. while creating a hadoop archive.
  5539. @param f the path in har filesystem
  5540. @return filestatus.
  5541. @throws IOException]]>
  5542. </doc>
  5543. </method>
  5544. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5545. abstract="false" native="false" synchronized="false"
  5546. static="false" final="false" visibility="public"
  5547. deprecated="not deprecated">
  5548. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5549. <doc>
  5550. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5551. </doc>
  5552. </method>
  5553. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5554. abstract="false" native="false" synchronized="false"
  5555. static="false" final="false" visibility="public"
  5556. deprecated="not deprecated">
  5557. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5558. <param name="bufferSize" type="int"/>
  5559. <exception name="IOException" type="java.io.IOException"/>
  5560. <doc>
  5561. <![CDATA[Returns a har input stream which fakes end of
  5562. file. It reads the index files to get the part
  5563. file name and the size and start of the file.]]>
  5564. </doc>
  5565. </method>
  5566. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5567. abstract="false" native="false" synchronized="false"
  5568. static="false" final="false" visibility="public"
  5569. deprecated="not deprecated">
  5570. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5571. <param name="bufferSize" type="int"/>
  5572. <exception name="IOException" type="java.io.IOException"/>
  5573. </method>
  5574. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5575. abstract="false" native="false" synchronized="false"
  5576. static="false" final="false" visibility="public"
  5577. deprecated="not deprecated">
  5578. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5579. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5580. <param name="overwrite" type="boolean"/>
  5581. <param name="bufferSize" type="int"/>
  5582. <param name="replication" type="short"/>
  5583. <param name="blockSize" type="long"/>
  5584. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5585. <exception name="IOException" type="java.io.IOException"/>
  5586. </method>
  5587. <method name="close"
  5588. abstract="false" native="false" synchronized="false"
  5589. static="false" final="false" visibility="public"
  5590. deprecated="not deprecated">
  5591. <exception name="IOException" type="java.io.IOException"/>
  5592. </method>
  5593. <method name="setReplication" return="boolean"
  5594. abstract="false" native="false" synchronized="false"
  5595. static="false" final="false" visibility="public"
  5596. deprecated="not deprecated">
  5597. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5598. <param name="replication" type="short"/>
  5599. <exception name="IOException" type="java.io.IOException"/>
  5600. <doc>
  5601. <![CDATA[Not implemented.]]>
  5602. </doc>
  5603. </method>
  5604. <method name="delete" return="boolean"
  5605. abstract="false" native="false" synchronized="false"
  5606. static="false" final="false" visibility="public"
  5607. deprecated="not deprecated">
  5608. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5609. <param name="recursive" type="boolean"/>
  5610. <exception name="IOException" type="java.io.IOException"/>
  5611. <doc>
  5612. <![CDATA[Not implemented.]]>
  5613. </doc>
  5614. </method>
  5615. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5616. abstract="false" native="false" synchronized="false"
  5617. static="false" final="false" visibility="public"
  5618. deprecated="not deprecated">
  5619. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5620. <exception name="IOException" type="java.io.IOException"/>
  5621. <doc>
  5622. <![CDATA[liststatus returns the children of a directory
  5623. after looking up the index files.]]>
  5624. </doc>
  5625. </method>
  5626. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5627. abstract="false" native="false" synchronized="false"
  5628. static="false" final="false" visibility="public"
  5629. deprecated="not deprecated">
  5630. <doc>
  5631. <![CDATA[return the top level archive path.]]>
  5632. </doc>
  5633. </method>
  5634. <method name="setWorkingDirectory"
  5635. abstract="false" native="false" synchronized="false"
  5636. static="false" final="false" visibility="public"
  5637. deprecated="not deprecated">
  5638. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5639. </method>
  5640. <method name="mkdirs" return="boolean"
  5641. abstract="false" native="false" synchronized="false"
  5642. static="false" final="false" visibility="public"
  5643. deprecated="not deprecated">
  5644. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5645. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5646. <exception name="IOException" type="java.io.IOException"/>
  5647. <doc>
  5648. <![CDATA[not implemented.]]>
  5649. </doc>
  5650. </method>
  5651. <method name="copyFromLocalFile"
  5652. abstract="false" native="false" synchronized="false"
  5653. static="false" final="false" visibility="public"
  5654. deprecated="not deprecated">
  5655. <param name="delSrc" type="boolean"/>
  5656. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5657. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5658. <exception name="IOException" type="java.io.IOException"/>
  5659. <doc>
  5660. <![CDATA[not implemented.]]>
  5661. </doc>
  5662. </method>
  5663. <method name="copyToLocalFile"
  5664. abstract="false" native="false" synchronized="false"
  5665. static="false" final="false" visibility="public"
  5666. deprecated="not deprecated">
  5667. <param name="delSrc" type="boolean"/>
  5668. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5669. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5670. <exception name="IOException" type="java.io.IOException"/>
  5671. <doc>
  5672. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5673. </doc>
  5674. </method>
  5675. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5676. abstract="false" native="false" synchronized="false"
  5677. static="false" final="false" visibility="public"
  5678. deprecated="not deprecated">
  5679. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5680. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5681. <exception name="IOException" type="java.io.IOException"/>
  5682. <doc>
  5683. <![CDATA[not implemented.]]>
  5684. </doc>
  5685. </method>
  5686. <method name="completeLocalOutput"
  5687. abstract="false" native="false" synchronized="false"
  5688. static="false" final="false" visibility="public"
  5689. deprecated="not deprecated">
  5690. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5691. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5692. <exception name="IOException" type="java.io.IOException"/>
  5693. <doc>
  5694. <![CDATA[not implemented.]]>
  5695. </doc>
  5696. </method>
  5697. <method name="setOwner"
  5698. abstract="false" native="false" synchronized="false"
  5699. static="false" final="false" visibility="public"
  5700. deprecated="not deprecated">
  5701. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5702. <param name="username" type="java.lang.String"/>
  5703. <param name="groupname" type="java.lang.String"/>
  5704. <exception name="IOException" type="java.io.IOException"/>
  5705. <doc>
  5706. <![CDATA[not implemented.]]>
  5707. </doc>
  5708. </method>
  5709. <method name="setPermission"
  5710. abstract="false" native="false" synchronized="false"
  5711. static="false" final="false" visibility="public"
  5712. deprecated="not deprecated">
  5713. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5714. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5715. <exception name="IOException" type="java.io.IOException"/>
  5716. <doc>
  5717. <![CDATA[Not implemented.]]>
  5718. </doc>
  5719. </method>
  5720. <field name="VERSION" type="int"
  5721. transient="false" volatile="false"
  5722. static="true" final="true" visibility="public"
  5723. deprecated="not deprecated">
  5724. </field>
  5725. <doc>
  5726. <![CDATA[This is an implementation of the Hadoop Archive
  5727. Filesystem. This archive Filesystem has index files
  5728. of the form _index* and has contents of the form
  5729. part-*. The index files store the indexes of the
  5730. real files. The index files are of the form _masterindex
  5731. and _index. The master index is a level of indirection
  5732. in to the index file to make the look ups faster. the index
  5733. file is sorted with hash code of the paths that it contains
  5734. and the master index contains pointers to the positions in
  5735. index for ranges of hashcodes.]]>
  5736. </doc>
  5737. </class>
  5738. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5739. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5740. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5741. abstract="false"
  5742. static="false" final="false" visibility="public"
  5743. deprecated="not deprecated">
  5744. <constructor name="InMemoryFileSystem"
  5745. static="false" final="false" visibility="public"
  5746. deprecated="not deprecated">
  5747. </constructor>
  5748. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5749. static="false" final="false" visibility="public"
  5750. deprecated="not deprecated">
  5751. </constructor>
  5752. <method name="reserveSpaceWithCheckSum" return="boolean"
  5753. abstract="false" native="false" synchronized="false"
  5754. static="false" final="false" visibility="public"
  5755. deprecated="not deprecated">
  5756. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5757. <param name="size" type="long"/>
  5758. <doc>
  5759. <![CDATA[Register a file with its size. This will also register a checksum for the
  5760. file that the user is trying to create. This is required since none of
  5761. the FileSystem APIs accept the size of the file as argument. But since it
  5762. is required for us to apriori know the size of the file we are going to
  5763. create, the user must call this method for each file he wants to create
  5764. and reserve memory for that file. We either succeed in reserving memory
  5765. for both the main file and the checksum file and return true, or return
  5766. false.]]>
  5767. </doc>
  5768. </method>
  5769. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5770. abstract="false" native="false" synchronized="false"
  5771. static="false" final="false" visibility="public"
  5772. deprecated="not deprecated">
  5773. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5774. </method>
  5775. <method name="getNumFiles" return="int"
  5776. abstract="false" native="false" synchronized="false"
  5777. static="false" final="false" visibility="public"
  5778. deprecated="not deprecated">
  5779. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5780. </method>
  5781. <method name="getFSSize" return="long"
  5782. abstract="false" native="false" synchronized="false"
  5783. static="false" final="false" visibility="public"
  5784. deprecated="not deprecated">
  5785. </method>
  5786. <method name="getPercentUsed" return="float"
  5787. abstract="false" native="false" synchronized="false"
  5788. static="false" final="false" visibility="public"
  5789. deprecated="not deprecated">
  5790. </method>
  5791. <doc>
  5792. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5793. that the file lengths are known ahead of time and the total lengths of all
  5794. the files is below a certain number (like 100 MB, configurable). Use the API
  5795. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5796. the API for reserving space in the FS. The uri of this filesystem starts with
  5797. ramfs:// .]]>
  5798. </doc>
  5799. </class>
  5800. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5801. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5802. <class name="LocalDirAllocator" extends="java.lang.Object"
  5803. abstract="false"
  5804. static="false" final="false" visibility="public"
  5805. deprecated="not deprecated">
  5806. <constructor name="LocalDirAllocator" type="java.lang.String"
  5807. static="false" final="false" visibility="public"
  5808. deprecated="not deprecated">
  5809. <doc>
  5810. <![CDATA[Create an allocator object
  5811. @param contextCfgItemName]]>
  5812. </doc>
  5813. </constructor>
  5814. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5815. abstract="false" native="false" synchronized="false"
  5816. static="false" final="false" visibility="public"
  5817. deprecated="not deprecated">
  5818. <param name="pathStr" type="java.lang.String"/>
  5819. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5820. <exception name="IOException" type="java.io.IOException"/>
  5821. <doc>
  5822. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5823. the file is not known apriori. We go round-robin over the set of disks
  5824. (via the configured dirs) and return the first complete path where
  5825. we could create the parent directory of the passed path.
  5826. @param pathStr the requested path (this will be created on the first
  5827. available disk)
  5828. @param conf the Configuration object
  5829. @return the complete path to the file on a local disk
  5830. @throws IOException]]>
  5831. </doc>
  5832. </method>
  5833. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5834. abstract="false" native="false" synchronized="false"
  5835. static="false" final="false" visibility="public"
  5836. deprecated="not deprecated">
  5837. <param name="pathStr" type="java.lang.String"/>
  5838. <param name="size" type="long"/>
  5839. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5840. <exception name="IOException" type="java.io.IOException"/>
  5841. <doc>
  5842. <![CDATA[Get a path from the local FS. Pass size as
  5843. SIZE_UNKNOWN if not known apriori. We
  5844. round-robin over the set of disks (via the configured dirs) and return
  5845. the first complete path which has enough space
  5846. @param pathStr the requested path (this will be created on the first
  5847. available disk)
  5848. @param size the size of the file that is going to be written
  5849. @param conf the Configuration object
  5850. @return the complete path to the file on a local disk
  5851. @throws IOException]]>
  5852. </doc>
  5853. </method>
  5854. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5855. abstract="false" native="false" synchronized="false"
  5856. static="false" final="false" visibility="public"
  5857. deprecated="not deprecated">
  5858. <param name="pathStr" type="java.lang.String"/>
  5859. <param name="size" type="long"/>
  5860. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5861. <param name="checkWrite" type="boolean"/>
  5862. <exception name="IOException" type="java.io.IOException"/>
  5863. <doc>
  5864. <![CDATA[Get a path from the local FS. Pass size as
  5865. SIZE_UNKNOWN if not known apriori. We
  5866. round-robin over the set of disks (via the configured dirs) and return
  5867. the first complete path which has enough space
  5868. @param pathStr the requested path (this will be created on the first
  5869. available disk)
  5870. @param size the size of the file that is going to be written
  5871. @param conf the Configuration object
  5872. @param checkWrite ensure that the path is writable
  5873. @return the complete path to the file on a local disk
  5874. @throws IOException]]>
  5875. </doc>
  5876. </method>
  5877. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5878. abstract="false" native="false" synchronized="false"
  5879. static="false" final="false" visibility="public"
  5880. deprecated="not deprecated">
  5881. <param name="pathStr" type="java.lang.String"/>
  5882. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5883. <exception name="IOException" type="java.io.IOException"/>
  5884. <doc>
  5885. <![CDATA[Get a path from the local FS for reading. We search through all the
  5886. configured dirs for the file's existence and return the complete
  5887. path to the file when we find one
  5888. @param pathStr the requested file (this will be searched)
  5889. @param conf the Configuration object
  5890. @return the complete path to the file on a local disk
  5891. @throws IOException]]>
  5892. </doc>
  5893. </method>
  5894. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  5895. abstract="false" native="false" synchronized="false"
  5896. static="false" final="false" visibility="public"
  5897. deprecated="not deprecated">
  5898. <param name="pathStr" type="java.lang.String"/>
  5899. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5900. <exception name="IOException" type="java.io.IOException"/>
  5901. <doc>
  5902. <![CDATA[Get all of the paths that currently exist in the working directories.
  5903. @param pathStr the path underneath the roots
  5904. @param conf the configuration to look up the roots in
  5905. @return all of the paths that exist under any of the roots
  5906. @throws IOException]]>
  5907. </doc>
  5908. </method>
  5909. <method name="createTmpFileForWrite" return="java.io.File"
  5910. abstract="false" native="false" synchronized="false"
  5911. static="false" final="false" visibility="public"
  5912. deprecated="not deprecated">
  5913. <param name="pathStr" type="java.lang.String"/>
  5914. <param name="size" type="long"/>
  5915. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5916. <exception name="IOException" type="java.io.IOException"/>
  5917. <doc>
  5918. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5919. apriori. We round-robin over the set of disks (via the configured dirs)
  5920. and select the first complete path which has enough space. A file is
  5921. created on this directory. The file is guaranteed to go away when the
  5922. JVM exits.
  5923. @param pathStr prefix for the temporary file
  5924. @param size the size of the file that is going to be written
  5925. @param conf the Configuration object
  5926. @return a unique temporary file
  5927. @throws IOException]]>
  5928. </doc>
  5929. </method>
  5930. <method name="isContextValid" return="boolean"
  5931. abstract="false" native="false" synchronized="false"
  5932. static="true" final="false" visibility="public"
  5933. deprecated="not deprecated">
  5934. <param name="contextCfgItemName" type="java.lang.String"/>
  5935. <doc>
  5936. <![CDATA[Method to check whether a context is valid
  5937. @param contextCfgItemName
  5938. @return true/false]]>
  5939. </doc>
  5940. </method>
  5941. <method name="ifExists" return="boolean"
  5942. abstract="false" native="false" synchronized="false"
  5943. static="false" final="false" visibility="public"
  5944. deprecated="not deprecated">
  5945. <param name="pathStr" type="java.lang.String"/>
  5946. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5947. <doc>
  5948. <![CDATA[We search through all the configured dirs for the file's existence
  5949. and return true when we find
  5950. @param pathStr the requested file (this will be searched)
  5951. @param conf the Configuration object
  5952. @return true if files exist. false otherwise
  5953. @throws IOException]]>
  5954. </doc>
  5955. </method>
  5956. <field name="SIZE_UNKNOWN" type="int"
  5957. transient="false" volatile="false"
  5958. static="true" final="true" visibility="public"
  5959. deprecated="not deprecated">
  5960. <doc>
  5961. <![CDATA[Used when size of file to be allocated is unknown.]]>
  5962. </doc>
  5963. </field>
  5964. <doc>
  5965. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5966. files. The way it works is that it is kept track what disk was last
  5967. allocated for a file write. For the current request, the next disk from
  5968. the set of disks would be allocated if the free space on the disk is
  5969. sufficient enough to accommodate the file that is being considered for
  5970. creation. If the space requirements cannot be met, the next disk in order
  5971. would be tried and so on till a disk is found with sufficient capacity.
  5972. Once a disk with sufficient space is identified, a check is done to make
  5973. sure that the disk is writable. Also, there is an API provided that doesn't
  5974. take the space requirements into consideration but just checks whether the
  5975. disk under consideration is writable (this should be used for cases where
  5976. the file size is not known apriori). An API is provided to read a path that
  5977. was created earlier. That API works by doing a scan of all the disks for the
  5978. input pathname.
  5979. This implementation also provides the functionality of having multiple
  5980. allocators per JVM (one for each unique functionality or context, like
  5981. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5982. an allocator per context per JVM.
  5983. Note:
  5984. 1. The contexts referred above are actually the configuration items defined
  5985. in the Configuration class like "mapred.local.dir" (for which we want to
  5986. control the dir allocations). The context-strings are exactly those
  5987. configuration items.
  5988. 2. This implementation does not take into consideration cases where
  5989. a disk becomes read-only or goes out of space while a file is being written
  5990. to (disks are shared between multiple processes, and so the latter situation
  5991. is probable).
  5992. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5993. actually points to the configured directory on the Disk which will be the
  5994. parent for all file write/read allocations.]]>
  5995. </doc>
  5996. </class>
  5997. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5998. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5999. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  6000. abstract="false"
  6001. static="false" final="false" visibility="public"
  6002. deprecated="not deprecated">
  6003. <constructor name="LocalFileSystem"
  6004. static="false" final="false" visibility="public"
  6005. deprecated="not deprecated">
  6006. </constructor>
  6007. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6008. static="false" final="false" visibility="public"
  6009. deprecated="not deprecated">
  6010. </constructor>
  6011. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  6012. abstract="false" native="false" synchronized="false"
  6013. static="false" final="false" visibility="public"
  6014. deprecated="not deprecated">
  6015. </method>
  6016. <method name="exists" return="boolean"
  6017. abstract="false" native="false" synchronized="false"
  6018. static="false" final="false" visibility="public"
  6019. deprecated="not deprecated">
  6020. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6021. <exception name="IOException" type="java.io.IOException"/>
  6022. <doc>
  6023. <![CDATA[Get file status.]]>
  6024. </doc>
  6025. </method>
  6026. <method name="pathToFile" return="java.io.File"
  6027. abstract="false" native="false" synchronized="false"
  6028. static="false" final="false" visibility="public"
  6029. deprecated="not deprecated">
  6030. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6031. <doc>
  6032. <![CDATA[Convert a path to a File.]]>
  6033. </doc>
  6034. </method>
  6035. <method name="copyFromLocalFile"
  6036. abstract="false" native="false" synchronized="false"
  6037. static="false" final="false" visibility="public"
  6038. deprecated="not deprecated">
  6039. <param name="delSrc" type="boolean"/>
  6040. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6041. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6042. <exception name="IOException" type="java.io.IOException"/>
  6043. </method>
  6044. <method name="copyToLocalFile"
  6045. abstract="false" native="false" synchronized="false"
  6046. static="false" final="false" visibility="public"
  6047. deprecated="not deprecated">
  6048. <param name="delSrc" type="boolean"/>
  6049. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6050. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6051. <exception name="IOException" type="java.io.IOException"/>
  6052. </method>
  6053. <method name="reportChecksumFailure" return="boolean"
  6054. abstract="false" native="false" synchronized="false"
  6055. static="false" final="false" visibility="public"
  6056. deprecated="not deprecated">
  6057. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6058. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6059. <param name="inPos" type="long"/>
  6060. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6061. <param name="sumsPos" type="long"/>
  6062. <doc>
  6063. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6064. storage will not be reused.]]>
  6065. </doc>
  6066. </method>
  6067. <doc>
  6068. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6069. </doc>
  6070. </class>
  6071. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6072. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6073. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6074. abstract="false"
  6075. static="false" final="false" visibility="public"
  6076. deprecated="not deprecated">
  6077. <constructor name="MD5MD5CRC32FileChecksum"
  6078. static="false" final="false" visibility="public"
  6079. deprecated="not deprecated">
  6080. <doc>
  6081. <![CDATA[Same as this(0, 0, null)]]>
  6082. </doc>
  6083. </constructor>
  6084. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6085. static="false" final="false" visibility="public"
  6086. deprecated="not deprecated">
  6087. <doc>
  6088. <![CDATA[Create a MD5FileChecksum]]>
  6089. </doc>
  6090. </constructor>
  6091. <method name="getAlgorithmName" return="java.lang.String"
  6092. abstract="false" native="false" synchronized="false"
  6093. static="false" final="false" visibility="public"
  6094. deprecated="not deprecated">
  6095. <doc>
  6096. <![CDATA[{@inheritDoc}]]>
  6097. </doc>
  6098. </method>
  6099. <method name="getLength" return="int"
  6100. abstract="false" native="false" synchronized="false"
  6101. static="false" final="false" visibility="public"
  6102. deprecated="not deprecated">
  6103. <doc>
  6104. <![CDATA[{@inheritDoc}]]>
  6105. </doc>
  6106. </method>
  6107. <method name="getBytes" return="byte[]"
  6108. abstract="false" native="false" synchronized="false"
  6109. static="false" final="false" visibility="public"
  6110. deprecated="not deprecated">
  6111. <doc>
  6112. <![CDATA[{@inheritDoc}]]>
  6113. </doc>
  6114. </method>
  6115. <method name="readFields"
  6116. abstract="false" native="false" synchronized="false"
  6117. static="false" final="false" visibility="public"
  6118. deprecated="not deprecated">
  6119. <param name="in" type="java.io.DataInput"/>
  6120. <exception name="IOException" type="java.io.IOException"/>
  6121. <doc>
  6122. <![CDATA[{@inheritDoc}]]>
  6123. </doc>
  6124. </method>
  6125. <method name="write"
  6126. abstract="false" native="false" synchronized="false"
  6127. static="false" final="false" visibility="public"
  6128. deprecated="not deprecated">
  6129. <param name="out" type="java.io.DataOutput"/>
  6130. <exception name="IOException" type="java.io.IOException"/>
  6131. <doc>
  6132. <![CDATA[{@inheritDoc}]]>
  6133. </doc>
  6134. </method>
  6135. <method name="write"
  6136. abstract="false" native="false" synchronized="false"
  6137. static="true" final="false" visibility="public"
  6138. deprecated="not deprecated">
  6139. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6140. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6141. <exception name="IOException" type="java.io.IOException"/>
  6142. <doc>
  6143. <![CDATA[Write that object to xml output.]]>
  6144. </doc>
  6145. </method>
  6146. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6147. abstract="false" native="false" synchronized="false"
  6148. static="true" final="false" visibility="public"
  6149. deprecated="not deprecated">
  6150. <param name="attrs" type="org.xml.sax.Attributes"/>
  6151. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6152. <doc>
  6153. <![CDATA[Return the object represented in the attributes.]]>
  6154. </doc>
  6155. </method>
  6156. <method name="toString" return="java.lang.String"
  6157. abstract="false" native="false" synchronized="false"
  6158. static="false" final="false" visibility="public"
  6159. deprecated="not deprecated">
  6160. <doc>
  6161. <![CDATA[{@inheritDoc}]]>
  6162. </doc>
  6163. </method>
  6164. <field name="LENGTH" type="int"
  6165. transient="false" volatile="false"
  6166. static="true" final="true" visibility="public"
  6167. deprecated="not deprecated">
  6168. </field>
  6169. <doc>
  6170. <![CDATA[MD5 of MD5 of CRC32.]]>
  6171. </doc>
  6172. </class>
  6173. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6174. <!-- start class org.apache.hadoop.fs.Path -->
  6175. <class name="Path" extends="java.lang.Object"
  6176. abstract="false"
  6177. static="false" final="false" visibility="public"
  6178. deprecated="not deprecated">
  6179. <implements name="java.lang.Comparable"/>
  6180. <constructor name="Path" type="java.lang.String, java.lang.String"
  6181. static="false" final="false" visibility="public"
  6182. deprecated="not deprecated">
  6183. <doc>
  6184. <![CDATA[Resolve a child path against a parent path.]]>
  6185. </doc>
  6186. </constructor>
  6187. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6188. static="false" final="false" visibility="public"
  6189. deprecated="not deprecated">
  6190. <doc>
  6191. <![CDATA[Resolve a child path against a parent path.]]>
  6192. </doc>
  6193. </constructor>
  6194. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6195. static="false" final="false" visibility="public"
  6196. deprecated="not deprecated">
  6197. <doc>
  6198. <![CDATA[Resolve a child path against a parent path.]]>
  6199. </doc>
  6200. </constructor>
  6201. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6202. static="false" final="false" visibility="public"
  6203. deprecated="not deprecated">
  6204. <doc>
  6205. <![CDATA[Resolve a child path against a parent path.]]>
  6206. </doc>
  6207. </constructor>
  6208. <constructor name="Path" type="java.lang.String"
  6209. static="false" final="false" visibility="public"
  6210. deprecated="not deprecated">
  6211. <doc>
  6212. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6213. unescaped elements and some additional normalization.]]>
  6214. </doc>
  6215. </constructor>
  6216. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6217. static="false" final="false" visibility="public"
  6218. deprecated="not deprecated">
  6219. <doc>
  6220. <![CDATA[Construct a Path from components.]]>
  6221. </doc>
  6222. </constructor>
  6223. <constructor name="Path" type="java.net.URI"
  6224. static="false" final="false" visibility="public"
  6225. deprecated="not deprecated">
  6226. <doc>
  6227. <![CDATA[Construct a path from a URI]]>
  6228. </doc>
  6229. </constructor>
  6230. <method name="toUri" return="java.net.URI"
  6231. abstract="false" native="false" synchronized="false"
  6232. static="false" final="false" visibility="public"
  6233. deprecated="not deprecated">
  6234. <doc>
  6235. <![CDATA[Convert this to a URI.]]>
  6236. </doc>
  6237. </method>
  6238. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6239. abstract="false" native="false" synchronized="false"
  6240. static="false" final="false" visibility="public"
  6241. deprecated="not deprecated">
  6242. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6243. <exception name="IOException" type="java.io.IOException"/>
  6244. <doc>
  6245. <![CDATA[Return the FileSystem that owns this Path.]]>
  6246. </doc>
  6247. </method>
  6248. <method name="isAbsolute" return="boolean"
  6249. abstract="false" native="false" synchronized="false"
  6250. static="false" final="false" visibility="public"
  6251. deprecated="not deprecated">
  6252. <doc>
  6253. <![CDATA[True if the directory of this path is absolute.]]>
  6254. </doc>
  6255. </method>
  6256. <method name="getName" return="java.lang.String"
  6257. abstract="false" native="false" synchronized="false"
  6258. static="false" final="false" visibility="public"
  6259. deprecated="not deprecated">
  6260. <doc>
  6261. <![CDATA[Returns the final component of this path.]]>
  6262. </doc>
  6263. </method>
  6264. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6265. abstract="false" native="false" synchronized="false"
  6266. static="false" final="false" visibility="public"
  6267. deprecated="not deprecated">
  6268. <doc>
  6269. <![CDATA[Returns the parent of a path or null if at root.]]>
  6270. </doc>
  6271. </method>
  6272. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6273. abstract="false" native="false" synchronized="false"
  6274. static="false" final="false" visibility="public"
  6275. deprecated="not deprecated">
  6276. <param name="suffix" type="java.lang.String"/>
  6277. <doc>
  6278. <![CDATA[Adds a suffix to the final name in the path.]]>
  6279. </doc>
  6280. </method>
  6281. <method name="toString" return="java.lang.String"
  6282. abstract="false" native="false" synchronized="false"
  6283. static="false" final="false" visibility="public"
  6284. deprecated="not deprecated">
  6285. </method>
  6286. <method name="equals" return="boolean"
  6287. abstract="false" native="false" synchronized="false"
  6288. static="false" final="false" visibility="public"
  6289. deprecated="not deprecated">
  6290. <param name="o" type="java.lang.Object"/>
  6291. </method>
  6292. <method name="hashCode" return="int"
  6293. abstract="false" native="false" synchronized="false"
  6294. static="false" final="false" visibility="public"
  6295. deprecated="not deprecated">
  6296. </method>
  6297. <method name="compareTo" return="int"
  6298. abstract="false" native="false" synchronized="false"
  6299. static="false" final="false" visibility="public"
  6300. deprecated="not deprecated">
  6301. <param name="o" type="java.lang.Object"/>
  6302. </method>
  6303. <method name="depth" return="int"
  6304. abstract="false" native="false" synchronized="false"
  6305. static="false" final="false" visibility="public"
  6306. deprecated="not deprecated">
  6307. <doc>
  6308. <![CDATA[Return the number of elements in this path.]]>
  6309. </doc>
  6310. </method>
  6311. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6312. abstract="false" native="false" synchronized="false"
  6313. static="false" final="false" visibility="public"
  6314. deprecated="not deprecated">
  6315. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6316. <doc>
  6317. <![CDATA[Returns a qualified path object.]]>
  6318. </doc>
  6319. </method>
  6320. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6321. abstract="false" native="false" synchronized="false"
  6322. static="false" final="false" visibility="public"
  6323. deprecated="not deprecated">
  6324. <param name="defaultUri" type="java.net.URI"/>
  6325. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6326. <doc>
  6327. <![CDATA[Returns a qualified path object.]]>
  6328. </doc>
  6329. </method>
  6330. <field name="SEPARATOR" type="java.lang.String"
  6331. transient="false" volatile="false"
  6332. static="true" final="true" visibility="public"
  6333. deprecated="not deprecated">
  6334. <doc>
  6335. <![CDATA[The directory separator, a slash.]]>
  6336. </doc>
  6337. </field>
  6338. <field name="SEPARATOR_CHAR" type="char"
  6339. transient="false" volatile="false"
  6340. static="true" final="true" visibility="public"
  6341. deprecated="not deprecated">
  6342. </field>
  6343. <field name="CUR_DIR" type="java.lang.String"
  6344. transient="false" volatile="false"
  6345. static="true" final="true" visibility="public"
  6346. deprecated="not deprecated">
  6347. </field>
  6348. <doc>
  6349. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6350. Path strings use slash as the directory separator. A path string is
  6351. absolute if it begins with a slash.]]>
  6352. </doc>
  6353. </class>
  6354. <!-- end class org.apache.hadoop.fs.Path -->
  6355. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6356. <interface name="PathFilter" abstract="true"
  6357. static="false" final="false" visibility="public"
  6358. deprecated="not deprecated">
  6359. <method name="accept" return="boolean"
  6360. abstract="false" native="false" synchronized="false"
  6361. static="false" final="false" visibility="public"
  6362. deprecated="not deprecated">
  6363. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6364. <doc>
  6365. <![CDATA[Tests whether or not the specified abstract pathname should be
  6366. included in a pathname list.
  6367. @param path The abstract pathname to be tested
  6368. @return <code>true</code> if and only if <code>pathname</code>
  6369. should be included]]>
  6370. </doc>
  6371. </method>
  6372. </interface>
  6373. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6374. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6375. <interface name="PositionedReadable" abstract="true"
  6376. static="false" final="false" visibility="public"
  6377. deprecated="not deprecated">
  6378. <method name="read" return="int"
  6379. abstract="false" native="false" synchronized="false"
  6380. static="false" final="false" visibility="public"
  6381. deprecated="not deprecated">
  6382. <param name="position" type="long"/>
  6383. <param name="buffer" type="byte[]"/>
  6384. <param name="offset" type="int"/>
  6385. <param name="length" type="int"/>
  6386. <exception name="IOException" type="java.io.IOException"/>
  6387. <doc>
  6388. <![CDATA[Read upto the specified number of bytes, from a given
  6389. position within a file, and return the number of bytes read. This does not
  6390. change the current offset of a file, and is thread-safe.]]>
  6391. </doc>
  6392. </method>
  6393. <method name="readFully"
  6394. abstract="false" native="false" synchronized="false"
  6395. static="false" final="false" visibility="public"
  6396. deprecated="not deprecated">
  6397. <param name="position" type="long"/>
  6398. <param name="buffer" type="byte[]"/>
  6399. <param name="offset" type="int"/>
  6400. <param name="length" type="int"/>
  6401. <exception name="IOException" type="java.io.IOException"/>
  6402. <doc>
  6403. <![CDATA[Read the specified number of bytes, from a given
  6404. position within a file. This does not
  6405. change the current offset of a file, and is thread-safe.]]>
  6406. </doc>
  6407. </method>
  6408. <method name="readFully"
  6409. abstract="false" native="false" synchronized="false"
  6410. static="false" final="false" visibility="public"
  6411. deprecated="not deprecated">
  6412. <param name="position" type="long"/>
  6413. <param name="buffer" type="byte[]"/>
  6414. <exception name="IOException" type="java.io.IOException"/>
  6415. <doc>
  6416. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6417. position within a file. This does not
  6418. change the current offset of a file, and is thread-safe.]]>
  6419. </doc>
  6420. </method>
  6421. <doc>
  6422. <![CDATA[Stream that permits positional reading.]]>
  6423. </doc>
  6424. </interface>
  6425. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6426. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6427. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6428. abstract="false"
  6429. static="false" final="false" visibility="public"
  6430. deprecated="not deprecated">
  6431. <constructor name="RawLocalFileSystem"
  6432. static="false" final="false" visibility="public"
  6433. deprecated="not deprecated">
  6434. </constructor>
  6435. <method name="pathToFile" return="java.io.File"
  6436. abstract="false" native="false" synchronized="false"
  6437. static="false" final="false" visibility="public"
  6438. deprecated="not deprecated">
  6439. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6440. <doc>
  6441. <![CDATA[Convert a path to a File.]]>
  6442. </doc>
  6443. </method>
  6444. <method name="getUri" return="java.net.URI"
  6445. abstract="false" native="false" synchronized="false"
  6446. static="false" final="false" visibility="public"
  6447. deprecated="not deprecated">
  6448. </method>
  6449. <method name="initialize"
  6450. abstract="false" native="false" synchronized="false"
  6451. static="false" final="false" visibility="public"
  6452. deprecated="not deprecated">
  6453. <param name="uri" type="java.net.URI"/>
  6454. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6455. <exception name="IOException" type="java.io.IOException"/>
  6456. </method>
  6457. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6458. abstract="false" native="false" synchronized="false"
  6459. static="false" final="false" visibility="public"
  6460. deprecated="not deprecated">
  6461. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6462. <param name="bufferSize" type="int"/>
  6463. <exception name="IOException" type="java.io.IOException"/>
  6464. </method>
  6465. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6466. abstract="false" native="false" synchronized="false"
  6467. static="false" final="false" visibility="public"
  6468. deprecated="not deprecated">
  6469. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6470. <param name="bufferSize" type="int"/>
  6471. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6472. <exception name="IOException" type="java.io.IOException"/>
  6473. <doc>
  6474. <![CDATA[{@inheritDoc}]]>
  6475. </doc>
  6476. </method>
  6477. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6478. abstract="false" native="false" synchronized="false"
  6479. static="false" final="false" visibility="public"
  6480. deprecated="not deprecated">
  6481. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6482. <param name="overwrite" type="boolean"/>
  6483. <param name="bufferSize" type="int"/>
  6484. <param name="replication" type="short"/>
  6485. <param name="blockSize" type="long"/>
  6486. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6487. <exception name="IOException" type="java.io.IOException"/>
  6488. <doc>
  6489. <![CDATA[{@inheritDoc}]]>
  6490. </doc>
  6491. </method>
  6492. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6493. abstract="false" native="false" synchronized="false"
  6494. static="false" final="false" visibility="public"
  6495. deprecated="not deprecated">
  6496. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6497. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6498. <param name="overwrite" type="boolean"/>
  6499. <param name="bufferSize" type="int"/>
  6500. <param name="replication" type="short"/>
  6501. <param name="blockSize" type="long"/>
  6502. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6503. <exception name="IOException" type="java.io.IOException"/>
  6504. <doc>
  6505. <![CDATA[{@inheritDoc}]]>
  6506. </doc>
  6507. </method>
  6508. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6509. abstract="false" native="false" synchronized="false"
  6510. static="false" final="false" visibility="public"
  6511. deprecated="not deprecated">
  6512. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6513. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6514. <param name="overwrite" type="boolean"/>
  6515. <param name="bufferSize" type="int"/>
  6516. <param name="replication" type="short"/>
  6517. <param name="blockSize" type="long"/>
  6518. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6519. <exception name="IOException" type="java.io.IOException"/>
  6520. <doc>
  6521. <![CDATA[{@inheritDoc}]]>
  6522. </doc>
  6523. </method>
  6524. <method name="rename" return="boolean"
  6525. abstract="false" native="false" synchronized="false"
  6526. static="false" final="false" visibility="public"
  6527. deprecated="not deprecated">
  6528. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6529. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6530. <exception name="IOException" type="java.io.IOException"/>
  6531. </method>
  6532. <method name="delete" return="boolean"
  6533. abstract="false" native="false" synchronized="false"
  6534. static="false" final="false" visibility="public"
  6535. deprecated="not deprecated">
  6536. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6537. <exception name="IOException" type="java.io.IOException"/>
  6538. </method>
  6539. <method name="delete" return="boolean"
  6540. abstract="false" native="false" synchronized="false"
  6541. static="false" final="false" visibility="public"
  6542. deprecated="not deprecated">
  6543. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6544. <param name="recursive" type="boolean"/>
  6545. <exception name="IOException" type="java.io.IOException"/>
  6546. </method>
  6547. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6548. abstract="false" native="false" synchronized="false"
  6549. static="false" final="false" visibility="public"
  6550. deprecated="not deprecated">
  6551. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6552. <exception name="IOException" type="java.io.IOException"/>
  6553. </method>
  6554. <method name="mkdirs" return="boolean"
  6555. abstract="false" native="false" synchronized="false"
  6556. static="false" final="false" visibility="public"
  6557. deprecated="not deprecated">
  6558. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6559. <exception name="IOException" type="java.io.IOException"/>
  6560. <doc>
  6561. <![CDATA[Creates the specified directory hierarchy. Does not
  6562. treat existence as an error.]]>
  6563. </doc>
  6564. </method>
  6565. <method name="mkdirs" return="boolean"
  6566. abstract="false" native="false" synchronized="false"
  6567. static="false" final="false" visibility="public"
  6568. deprecated="not deprecated">
  6569. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6570. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6571. <exception name="IOException" type="java.io.IOException"/>
  6572. <doc>
  6573. <![CDATA[{@inheritDoc}]]>
  6574. </doc>
  6575. </method>
  6576. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6577. abstract="false" native="false" synchronized="false"
  6578. static="false" final="false" visibility="public"
  6579. deprecated="not deprecated">
  6580. </method>
  6581. <method name="setWorkingDirectory"
  6582. abstract="false" native="false" synchronized="false"
  6583. static="false" final="false" visibility="public"
  6584. deprecated="not deprecated">
  6585. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6586. <doc>
  6587. <![CDATA[Set the working directory to the given directory.]]>
  6588. </doc>
  6589. </method>
  6590. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6591. abstract="false" native="false" synchronized="false"
  6592. static="false" final="false" visibility="public"
  6593. deprecated="not deprecated">
  6594. </method>
  6595. <method name="moveFromLocalFile"
  6596. abstract="false" native="false" synchronized="false"
  6597. static="false" final="false" visibility="public"
  6598. deprecated="not deprecated">
  6599. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6600. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6601. <exception name="IOException" type="java.io.IOException"/>
  6602. </method>
  6603. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6604. abstract="false" native="false" synchronized="false"
  6605. static="false" final="false" visibility="public"
  6606. deprecated="not deprecated">
  6607. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6608. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6609. <exception name="IOException" type="java.io.IOException"/>
  6610. </method>
  6611. <method name="completeLocalOutput"
  6612. abstract="false" native="false" synchronized="false"
  6613. static="false" final="false" visibility="public"
  6614. deprecated="not deprecated">
  6615. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6616. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6617. <exception name="IOException" type="java.io.IOException"/>
  6618. </method>
  6619. <method name="close"
  6620. abstract="false" native="false" synchronized="false"
  6621. static="false" final="false" visibility="public"
  6622. deprecated="not deprecated">
  6623. <exception name="IOException" type="java.io.IOException"/>
  6624. </method>
  6625. <method name="toString" return="java.lang.String"
  6626. abstract="false" native="false" synchronized="false"
  6627. static="false" final="false" visibility="public"
  6628. deprecated="not deprecated">
  6629. </method>
  6630. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6631. abstract="false" native="false" synchronized="false"
  6632. static="false" final="false" visibility="public"
  6633. deprecated="not deprecated">
  6634. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6635. <exception name="IOException" type="java.io.IOException"/>
  6636. </method>
  6637. <method name="setOwner"
  6638. abstract="false" native="false" synchronized="false"
  6639. static="false" final="false" visibility="public"
  6640. deprecated="not deprecated">
  6641. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6642. <param name="username" type="java.lang.String"/>
  6643. <param name="groupname" type="java.lang.String"/>
  6644. <exception name="IOException" type="java.io.IOException"/>
  6645. <doc>
  6646. <![CDATA[Use the command chown to set owner.]]>
  6647. </doc>
  6648. </method>
  6649. <method name="setPermission"
  6650. abstract="false" native="false" synchronized="false"
  6651. static="false" final="false" visibility="public"
  6652. deprecated="not deprecated">
  6653. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6654. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6655. <exception name="IOException" type="java.io.IOException"/>
  6656. <doc>
  6657. <![CDATA[Use the command chmod to set permission.]]>
  6658. </doc>
  6659. </method>
  6660. <doc>
  6661. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6662. </doc>
  6663. </class>
  6664. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6665. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6666. <interface name="Seekable" abstract="true"
  6667. static="false" final="false" visibility="public"
  6668. deprecated="not deprecated">
  6669. <method name="seek"
  6670. abstract="false" native="false" synchronized="false"
  6671. static="false" final="false" visibility="public"
  6672. deprecated="not deprecated">
  6673. <param name="pos" type="long"/>
  6674. <exception name="IOException" type="java.io.IOException"/>
  6675. <doc>
  6676. <![CDATA[Seek to the given offset from the start of the file.
  6677. The next read() will be from that location. Can't
  6678. seek past the end of the file.]]>
  6679. </doc>
  6680. </method>
  6681. <method name="getPos" return="long"
  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[Return the current offset from the start of the file]]>
  6688. </doc>
  6689. </method>
  6690. <method name="seekToNewSource" return="boolean"
  6691. abstract="false" native="false" synchronized="false"
  6692. static="false" final="false" visibility="public"
  6693. deprecated="not deprecated">
  6694. <param name="targetPos" type="long"/>
  6695. <exception name="IOException" type="java.io.IOException"/>
  6696. <doc>
  6697. <![CDATA[Seeks a different copy of the data. Returns true if
  6698. found a new source, false otherwise.]]>
  6699. </doc>
  6700. </method>
  6701. <doc>
  6702. <![CDATA[Stream that permits seeking.]]>
  6703. </doc>
  6704. </interface>
  6705. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6706. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6707. <interface name="Syncable" abstract="true"
  6708. static="false" final="false" visibility="public"
  6709. deprecated="not deprecated">
  6710. <method name="sync"
  6711. abstract="false" native="false" synchronized="false"
  6712. static="false" final="false" visibility="public"
  6713. deprecated="not deprecated">
  6714. <exception name="IOException" type="java.io.IOException"/>
  6715. <doc>
  6716. <![CDATA[Synchronize all buffer with the underlying devices.
  6717. @throws IOException]]>
  6718. </doc>
  6719. </method>
  6720. <doc>
  6721. <![CDATA[This interface declare the sync() operation.]]>
  6722. </doc>
  6723. </interface>
  6724. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6725. <!-- start class org.apache.hadoop.fs.Trash -->
  6726. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6727. abstract="false"
  6728. static="false" final="false" visibility="public"
  6729. deprecated="not deprecated">
  6730. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6731. static="false" final="false" visibility="public"
  6732. deprecated="not deprecated">
  6733. <exception name="IOException" type="java.io.IOException"/>
  6734. <doc>
  6735. <![CDATA[Construct a trash can accessor.
  6736. @param conf a Configuration]]>
  6737. </doc>
  6738. </constructor>
  6739. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6740. static="false" final="false" visibility="public"
  6741. deprecated="not deprecated">
  6742. <exception name="IOException" type="java.io.IOException"/>
  6743. <doc>
  6744. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6745. </doc>
  6746. </constructor>
  6747. <method name="moveToTrash" return="boolean"
  6748. abstract="false" native="false" synchronized="false"
  6749. static="false" final="false" visibility="public"
  6750. deprecated="not deprecated">
  6751. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6752. <exception name="IOException" type="java.io.IOException"/>
  6753. <doc>
  6754. <![CDATA[Move a file or directory to the current trash directory.
  6755. @return false if the item is already in the trash or trash is disabled]]>
  6756. </doc>
  6757. </method>
  6758. <method name="checkpoint"
  6759. abstract="false" native="false" synchronized="false"
  6760. static="false" final="false" visibility="public"
  6761. deprecated="not deprecated">
  6762. <exception name="IOException" type="java.io.IOException"/>
  6763. <doc>
  6764. <![CDATA[Create a trash checkpoint.]]>
  6765. </doc>
  6766. </method>
  6767. <method name="expunge"
  6768. abstract="false" native="false" synchronized="false"
  6769. static="false" final="false" visibility="public"
  6770. deprecated="not deprecated">
  6771. <exception name="IOException" type="java.io.IOException"/>
  6772. <doc>
  6773. <![CDATA[Delete old checkpoints.]]>
  6774. </doc>
  6775. </method>
  6776. <method name="getEmptier" return="java.lang.Runnable"
  6777. abstract="false" native="false" synchronized="false"
  6778. static="false" final="false" visibility="public"
  6779. deprecated="not deprecated">
  6780. <exception name="IOException" type="java.io.IOException"/>
  6781. <doc>
  6782. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6783. users, intended to be run by the superuser. Only one checkpoint is kept
  6784. at a time.]]>
  6785. </doc>
  6786. </method>
  6787. <method name="main"
  6788. abstract="false" native="false" synchronized="false"
  6789. static="true" final="false" visibility="public"
  6790. deprecated="not deprecated">
  6791. <param name="args" type="java.lang.String[]"/>
  6792. <exception name="Exception" type="java.lang.Exception"/>
  6793. <doc>
  6794. <![CDATA[Run an emptier.]]>
  6795. </doc>
  6796. </method>
  6797. <doc>
  6798. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6799. directory, a subdirectory of their home directory named ".Trash". Files are
  6800. initially moved to a <i>current</i> sub-directory of the trash directory.
  6801. Within that sub-directory their original path is preserved. Periodically
  6802. one may checkpoint the current trash and remove older checkpoints. (This
  6803. design permits trash management without enumeration of the full trash
  6804. content, without date support in the filesystem, and without clock
  6805. synchronization.)]]>
  6806. </doc>
  6807. </class>
  6808. <!-- end class org.apache.hadoop.fs.Trash -->
  6809. </package>
  6810. <package name="org.apache.hadoop.fs.ftp">
  6811. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6812. <class name="FTPException" extends="java.lang.RuntimeException"
  6813. abstract="false"
  6814. static="false" final="false" visibility="public"
  6815. deprecated="not deprecated">
  6816. <constructor name="FTPException" type="java.lang.String"
  6817. static="false" final="false" visibility="public"
  6818. deprecated="not deprecated">
  6819. </constructor>
  6820. <constructor name="FTPException" type="java.lang.Throwable"
  6821. static="false" final="false" visibility="public"
  6822. deprecated="not deprecated">
  6823. </constructor>
  6824. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6825. static="false" final="false" visibility="public"
  6826. deprecated="not deprecated">
  6827. </constructor>
  6828. <doc>
  6829. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6830. </doc>
  6831. </class>
  6832. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6833. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6834. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6835. abstract="false"
  6836. static="false" final="false" visibility="public"
  6837. deprecated="not deprecated">
  6838. <constructor name="FTPFileSystem"
  6839. static="false" final="false" visibility="public"
  6840. deprecated="not deprecated">
  6841. </constructor>
  6842. <method name="initialize"
  6843. abstract="false" native="false" synchronized="false"
  6844. static="false" final="false" visibility="public"
  6845. deprecated="not deprecated">
  6846. <param name="uri" type="java.net.URI"/>
  6847. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6848. <exception name="IOException" type="java.io.IOException"/>
  6849. </method>
  6850. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6851. abstract="false" native="false" synchronized="false"
  6852. static="false" final="false" visibility="public"
  6853. deprecated="not deprecated">
  6854. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6855. <param name="bufferSize" type="int"/>
  6856. <exception name="IOException" type="java.io.IOException"/>
  6857. </method>
  6858. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6859. abstract="false" native="false" synchronized="false"
  6860. static="false" final="false" visibility="public"
  6861. deprecated="not deprecated">
  6862. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6863. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6864. <param name="overwrite" type="boolean"/>
  6865. <param name="bufferSize" type="int"/>
  6866. <param name="replication" type="short"/>
  6867. <param name="blockSize" type="long"/>
  6868. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6869. <exception name="IOException" type="java.io.IOException"/>
  6870. <doc>
  6871. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6872. this class or else the invocation will block.]]>
  6873. </doc>
  6874. </method>
  6875. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6876. abstract="false" native="false" synchronized="false"
  6877. static="false" final="false" visibility="public"
  6878. deprecated="not deprecated">
  6879. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6880. <param name="bufferSize" type="int"/>
  6881. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6882. <exception name="IOException" type="java.io.IOException"/>
  6883. <doc>
  6884. <![CDATA[This optional operation is not yet supported.]]>
  6885. </doc>
  6886. </method>
  6887. <method name="delete" return="boolean"
  6888. abstract="false" native="false" synchronized="false"
  6889. static="false" final="false" visibility="public"
  6890. deprecated="Use delete(Path, boolean) instead">
  6891. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6892. <exception name="IOException" type="java.io.IOException"/>
  6893. <doc>
  6894. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6895. </doc>
  6896. </method>
  6897. <method name="delete" return="boolean"
  6898. abstract="false" native="false" synchronized="false"
  6899. static="false" final="false" visibility="public"
  6900. deprecated="not deprecated">
  6901. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6902. <param name="recursive" type="boolean"/>
  6903. <exception name="IOException" type="java.io.IOException"/>
  6904. </method>
  6905. <method name="getUri" return="java.net.URI"
  6906. abstract="false" native="false" synchronized="false"
  6907. static="false" final="false" visibility="public"
  6908. deprecated="not deprecated">
  6909. </method>
  6910. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6911. abstract="false" native="false" synchronized="false"
  6912. static="false" final="false" visibility="public"
  6913. deprecated="not deprecated">
  6914. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6915. <exception name="IOException" type="java.io.IOException"/>
  6916. </method>
  6917. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6918. abstract="false" native="false" synchronized="false"
  6919. static="false" final="false" visibility="public"
  6920. deprecated="not deprecated">
  6921. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6922. <exception name="IOException" type="java.io.IOException"/>
  6923. </method>
  6924. <method name="mkdirs" return="boolean"
  6925. abstract="false" native="false" synchronized="false"
  6926. static="false" final="false" visibility="public"
  6927. deprecated="not deprecated">
  6928. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6929. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6930. <exception name="IOException" type="java.io.IOException"/>
  6931. </method>
  6932. <method name="rename" return="boolean"
  6933. abstract="false" native="false" synchronized="false"
  6934. static="false" final="false" visibility="public"
  6935. deprecated="not deprecated">
  6936. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6937. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6938. <exception name="IOException" type="java.io.IOException"/>
  6939. </method>
  6940. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6941. abstract="false" native="false" synchronized="false"
  6942. static="false" final="false" visibility="public"
  6943. deprecated="not deprecated">
  6944. </method>
  6945. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6946. abstract="false" native="false" synchronized="false"
  6947. static="false" final="false" visibility="public"
  6948. deprecated="not deprecated">
  6949. </method>
  6950. <method name="setWorkingDirectory"
  6951. abstract="false" native="false" synchronized="false"
  6952. static="false" final="false" visibility="public"
  6953. deprecated="not deprecated">
  6954. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6955. </method>
  6956. <field name="LOG" type="org.apache.commons.logging.Log"
  6957. transient="false" volatile="false"
  6958. static="true" final="true" visibility="public"
  6959. deprecated="not deprecated">
  6960. </field>
  6961. <field name="DEFAULT_BUFFER_SIZE" type="int"
  6962. transient="false" volatile="false"
  6963. static="true" final="true" visibility="public"
  6964. deprecated="not deprecated">
  6965. </field>
  6966. <field name="DEFAULT_BLOCK_SIZE" type="int"
  6967. transient="false" volatile="false"
  6968. static="true" final="true" visibility="public"
  6969. deprecated="not deprecated">
  6970. </field>
  6971. <doc>
  6972. <![CDATA[<p>
  6973. A {@link FileSystem} backed by an FTP client provided by <a
  6974. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  6975. </p>]]>
  6976. </doc>
  6977. </class>
  6978. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6979. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6980. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  6981. abstract="false"
  6982. static="false" final="false" visibility="public"
  6983. deprecated="not deprecated">
  6984. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  6985. static="false" final="false" visibility="public"
  6986. deprecated="not deprecated">
  6987. </constructor>
  6988. <method name="getPos" return="long"
  6989. abstract="false" native="false" synchronized="false"
  6990. static="false" final="false" visibility="public"
  6991. deprecated="not deprecated">
  6992. <exception name="IOException" type="java.io.IOException"/>
  6993. </method>
  6994. <method name="seek"
  6995. abstract="false" native="false" synchronized="false"
  6996. static="false" final="false" visibility="public"
  6997. deprecated="not deprecated">
  6998. <param name="pos" type="long"/>
  6999. <exception name="IOException" type="java.io.IOException"/>
  7000. </method>
  7001. <method name="seekToNewSource" return="boolean"
  7002. abstract="false" native="false" synchronized="false"
  7003. static="false" final="false" visibility="public"
  7004. deprecated="not deprecated">
  7005. <param name="targetPos" type="long"/>
  7006. <exception name="IOException" type="java.io.IOException"/>
  7007. </method>
  7008. <method name="read" return="int"
  7009. abstract="false" native="false" synchronized="true"
  7010. static="false" final="false" visibility="public"
  7011. deprecated="not deprecated">
  7012. <exception name="IOException" type="java.io.IOException"/>
  7013. </method>
  7014. <method name="read" return="int"
  7015. abstract="false" native="false" synchronized="true"
  7016. static="false" final="false" visibility="public"
  7017. deprecated="not deprecated">
  7018. <param name="buf" type="byte[]"/>
  7019. <param name="off" type="int"/>
  7020. <param name="len" type="int"/>
  7021. <exception name="IOException" type="java.io.IOException"/>
  7022. </method>
  7023. <method name="close"
  7024. abstract="false" native="false" synchronized="true"
  7025. static="false" final="false" visibility="public"
  7026. deprecated="not deprecated">
  7027. <exception name="IOException" type="java.io.IOException"/>
  7028. </method>
  7029. <method name="markSupported" return="boolean"
  7030. abstract="false" native="false" synchronized="false"
  7031. static="false" final="false" visibility="public"
  7032. deprecated="not deprecated">
  7033. </method>
  7034. <method name="mark"
  7035. abstract="false" native="false" synchronized="false"
  7036. static="false" final="false" visibility="public"
  7037. deprecated="not deprecated">
  7038. <param name="readLimit" type="int"/>
  7039. </method>
  7040. <method name="reset"
  7041. abstract="false" native="false" synchronized="false"
  7042. static="false" final="false" visibility="public"
  7043. deprecated="not deprecated">
  7044. <exception name="IOException" type="java.io.IOException"/>
  7045. </method>
  7046. </class>
  7047. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7048. </package>
  7049. <package name="org.apache.hadoop.fs.kfs">
  7050. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7051. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7052. abstract="false"
  7053. static="false" final="false" visibility="public"
  7054. deprecated="not deprecated">
  7055. <constructor name="KosmosFileSystem"
  7056. static="false" final="false" visibility="public"
  7057. deprecated="not deprecated">
  7058. </constructor>
  7059. <method name="getUri" return="java.net.URI"
  7060. abstract="false" native="false" synchronized="false"
  7061. static="false" final="false" visibility="public"
  7062. deprecated="not deprecated">
  7063. </method>
  7064. <method name="initialize"
  7065. abstract="false" native="false" synchronized="false"
  7066. static="false" final="false" visibility="public"
  7067. deprecated="not deprecated">
  7068. <param name="uri" type="java.net.URI"/>
  7069. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7070. <exception name="IOException" type="java.io.IOException"/>
  7071. </method>
  7072. <method name="getName" return="java.lang.String"
  7073. abstract="false" native="false" synchronized="false"
  7074. static="false" final="false" visibility="public"
  7075. deprecated="not deprecated">
  7076. </method>
  7077. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7078. abstract="false" native="false" synchronized="false"
  7079. static="false" final="false" visibility="public"
  7080. deprecated="not deprecated">
  7081. </method>
  7082. <method name="setWorkingDirectory"
  7083. abstract="false" native="false" synchronized="false"
  7084. static="false" final="false" visibility="public"
  7085. deprecated="not deprecated">
  7086. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7087. </method>
  7088. <method name="mkdirs" return="boolean"
  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. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7094. <exception name="IOException" type="java.io.IOException"/>
  7095. </method>
  7096. <method name="isDirectory" return="boolean"
  7097. abstract="false" native="false" synchronized="false"
  7098. static="false" final="false" visibility="public"
  7099. deprecated="not deprecated">
  7100. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7101. <exception name="IOException" type="java.io.IOException"/>
  7102. </method>
  7103. <method name="isFile" return="boolean"
  7104. abstract="false" native="false" synchronized="false"
  7105. static="false" final="false" visibility="public"
  7106. deprecated="not deprecated">
  7107. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7108. <exception name="IOException" type="java.io.IOException"/>
  7109. </method>
  7110. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7111. abstract="false" native="false" synchronized="false"
  7112. static="false" final="false" visibility="public"
  7113. deprecated="not deprecated">
  7114. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7115. <exception name="IOException" type="java.io.IOException"/>
  7116. </method>
  7117. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7118. abstract="false" native="false" synchronized="false"
  7119. static="false" final="false" visibility="public"
  7120. deprecated="not deprecated">
  7121. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7122. <exception name="IOException" type="java.io.IOException"/>
  7123. </method>
  7124. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7125. abstract="false" native="false" synchronized="false"
  7126. static="false" final="false" visibility="public"
  7127. deprecated="not deprecated">
  7128. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7129. <param name="bufferSize" type="int"/>
  7130. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7131. <exception name="IOException" type="java.io.IOException"/>
  7132. <doc>
  7133. <![CDATA[This optional operation is not yet supported.]]>
  7134. </doc>
  7135. </method>
  7136. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7137. abstract="false" native="false" synchronized="false"
  7138. static="false" final="false" visibility="public"
  7139. deprecated="not deprecated">
  7140. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7141. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7142. <param name="overwrite" type="boolean"/>
  7143. <param name="bufferSize" type="int"/>
  7144. <param name="replication" type="short"/>
  7145. <param name="blockSize" type="long"/>
  7146. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7147. <exception name="IOException" type="java.io.IOException"/>
  7148. </method>
  7149. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7150. abstract="false" native="false" synchronized="false"
  7151. static="false" final="false" visibility="public"
  7152. deprecated="not deprecated">
  7153. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7154. <param name="bufferSize" type="int"/>
  7155. <exception name="IOException" type="java.io.IOException"/>
  7156. </method>
  7157. <method name="rename" return="boolean"
  7158. abstract="false" native="false" synchronized="false"
  7159. static="false" final="false" visibility="public"
  7160. deprecated="not deprecated">
  7161. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7162. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7163. <exception name="IOException" type="java.io.IOException"/>
  7164. </method>
  7165. <method name="delete" return="boolean"
  7166. abstract="false" native="false" synchronized="false"
  7167. static="false" final="false" visibility="public"
  7168. deprecated="not deprecated">
  7169. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7170. <param name="recursive" type="boolean"/>
  7171. <exception name="IOException" type="java.io.IOException"/>
  7172. </method>
  7173. <method name="delete" return="boolean"
  7174. abstract="false" native="false" synchronized="false"
  7175. static="false" final="false" visibility="public"
  7176. deprecated="not deprecated">
  7177. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7178. <exception name="IOException" type="java.io.IOException"/>
  7179. </method>
  7180. <method name="getLength" return="long"
  7181. abstract="false" native="false" synchronized="false"
  7182. static="false" final="false" visibility="public"
  7183. deprecated="not deprecated">
  7184. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7185. <exception name="IOException" type="java.io.IOException"/>
  7186. </method>
  7187. <method name="getReplication" return="short"
  7188. abstract="false" native="false" synchronized="false"
  7189. static="false" final="false" visibility="public"
  7190. deprecated="not deprecated">
  7191. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7192. <exception name="IOException" type="java.io.IOException"/>
  7193. </method>
  7194. <method name="getDefaultReplication" return="short"
  7195. abstract="false" native="false" synchronized="false"
  7196. static="false" final="false" visibility="public"
  7197. deprecated="not deprecated">
  7198. </method>
  7199. <method name="setReplication" return="boolean"
  7200. abstract="false" native="false" synchronized="false"
  7201. static="false" final="false" visibility="public"
  7202. deprecated="not deprecated">
  7203. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7204. <param name="replication" type="short"/>
  7205. <exception name="IOException" type="java.io.IOException"/>
  7206. </method>
  7207. <method name="getDefaultBlockSize" return="long"
  7208. abstract="false" native="false" synchronized="false"
  7209. static="false" final="false" visibility="public"
  7210. deprecated="not deprecated">
  7211. </method>
  7212. <method name="lock"
  7213. abstract="false" native="false" synchronized="false"
  7214. static="false" final="false" visibility="public"
  7215. deprecated="not deprecated">
  7216. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7217. <param name="shared" type="boolean"/>
  7218. <exception name="IOException" type="java.io.IOException"/>
  7219. </method>
  7220. <method name="release"
  7221. abstract="false" native="false" synchronized="false"
  7222. static="false" final="false" visibility="public"
  7223. deprecated="not deprecated">
  7224. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7225. <exception name="IOException" type="java.io.IOException"/>
  7226. </method>
  7227. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7228. abstract="false" native="false" synchronized="false"
  7229. static="false" final="false" visibility="public"
  7230. deprecated="not deprecated">
  7231. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7232. <param name="start" type="long"/>
  7233. <param name="len" type="long"/>
  7234. <exception name="IOException" type="java.io.IOException"/>
  7235. <doc>
  7236. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7237. locations of the various chunks of the file file from KFS.]]>
  7238. </doc>
  7239. </method>
  7240. <method name="copyFromLocalFile"
  7241. abstract="false" native="false" synchronized="false"
  7242. static="false" final="false" visibility="public"
  7243. deprecated="not deprecated">
  7244. <param name="delSrc" type="boolean"/>
  7245. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7246. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7247. <exception name="IOException" type="java.io.IOException"/>
  7248. </method>
  7249. <method name="copyToLocalFile"
  7250. abstract="false" native="false" synchronized="false"
  7251. static="false" final="false" visibility="public"
  7252. deprecated="not deprecated">
  7253. <param name="delSrc" type="boolean"/>
  7254. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7255. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7256. <exception name="IOException" type="java.io.IOException"/>
  7257. </method>
  7258. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7259. abstract="false" native="false" synchronized="false"
  7260. static="false" final="false" visibility="public"
  7261. deprecated="not deprecated">
  7262. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7263. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7264. <exception name="IOException" type="java.io.IOException"/>
  7265. </method>
  7266. <method name="completeLocalOutput"
  7267. abstract="false" native="false" synchronized="false"
  7268. static="false" final="false" visibility="public"
  7269. deprecated="not deprecated">
  7270. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7271. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7272. <exception name="IOException" type="java.io.IOException"/>
  7273. </method>
  7274. <doc>
  7275. <![CDATA[A FileSystem backed by KFS.]]>
  7276. </doc>
  7277. </class>
  7278. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7279. </package>
  7280. <package name="org.apache.hadoop.fs.permission">
  7281. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7282. <class name="AccessControlException" extends="java.io.IOException"
  7283. abstract="false"
  7284. static="false" final="false" visibility="public"
  7285. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7286. instead.">
  7287. <constructor name="AccessControlException"
  7288. static="false" final="false" visibility="public"
  7289. deprecated="not deprecated">
  7290. <doc>
  7291. <![CDATA[Default constructor is needed for unwrapping from
  7292. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7293. </doc>
  7294. </constructor>
  7295. <constructor name="AccessControlException" type="java.lang.String"
  7296. static="false" final="false" visibility="public"
  7297. deprecated="not deprecated">
  7298. <doc>
  7299. <![CDATA[Constructs an {@link AccessControlException}
  7300. with the specified detail message.
  7301. @param s the detail message.]]>
  7302. </doc>
  7303. </constructor>
  7304. <constructor name="AccessControlException" type="java.lang.Throwable"
  7305. static="false" final="false" visibility="public"
  7306. deprecated="not deprecated">
  7307. <doc>
  7308. <![CDATA[Constructs a new exception with the specified cause and a detail
  7309. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7310. typically contains the class and detail message of <tt>cause</tt>).
  7311. @param cause the cause (which is saved for later retrieval by the
  7312. {@link #getCause()} method). (A <tt>null</tt> value is
  7313. permitted, and indicates that the cause is nonexistent or
  7314. unknown.)]]>
  7315. </doc>
  7316. </constructor>
  7317. <doc>
  7318. <![CDATA[An exception class for access control related issues.
  7319. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7320. instead.]]>
  7321. </doc>
  7322. </class>
  7323. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7324. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7325. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7326. abstract="false"
  7327. static="false" final="false" visibility="public"
  7328. deprecated="not deprecated">
  7329. <constructor name="ChmodParser" type="java.lang.String"
  7330. static="false" final="false" visibility="public"
  7331. deprecated="not deprecated">
  7332. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7333. </constructor>
  7334. <method name="applyNewPermission" return="short"
  7335. abstract="false" native="false" synchronized="false"
  7336. static="false" final="false" visibility="public"
  7337. deprecated="not deprecated">
  7338. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7339. <doc>
  7340. <![CDATA[Apply permission against specified file and determine what the
  7341. new mode would be
  7342. @param file File against which to apply mode
  7343. @return File's new mode if applied.]]>
  7344. </doc>
  7345. </method>
  7346. <doc>
  7347. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7348. mode against an existing file.]]>
  7349. </doc>
  7350. </class>
  7351. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7352. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7353. <class name="FsAction" extends="java.lang.Enum"
  7354. abstract="false"
  7355. static="false" final="true" visibility="public"
  7356. deprecated="not deprecated">
  7357. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7358. abstract="false" native="false" synchronized="false"
  7359. static="true" final="false" visibility="public"
  7360. deprecated="not deprecated">
  7361. </method>
  7362. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7363. abstract="false" native="false" synchronized="false"
  7364. static="true" final="false" visibility="public"
  7365. deprecated="not deprecated">
  7366. <param name="name" type="java.lang.String"/>
  7367. </method>
  7368. <method name="implies" return="boolean"
  7369. abstract="false" native="false" synchronized="false"
  7370. static="false" final="false" visibility="public"
  7371. deprecated="not deprecated">
  7372. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7373. <doc>
  7374. <![CDATA[Return true if this action implies that action.
  7375. @param that]]>
  7376. </doc>
  7377. </method>
  7378. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7379. abstract="false" native="false" synchronized="false"
  7380. static="false" final="false" visibility="public"
  7381. deprecated="not deprecated">
  7382. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7383. <doc>
  7384. <![CDATA[AND operation.]]>
  7385. </doc>
  7386. </method>
  7387. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7388. abstract="false" native="false" synchronized="false"
  7389. static="false" final="false" visibility="public"
  7390. deprecated="not deprecated">
  7391. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7392. <doc>
  7393. <![CDATA[OR operation.]]>
  7394. </doc>
  7395. </method>
  7396. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7397. abstract="false" native="false" synchronized="false"
  7398. static="false" final="false" visibility="public"
  7399. deprecated="not deprecated">
  7400. <doc>
  7401. <![CDATA[NOT operation.]]>
  7402. </doc>
  7403. </method>
  7404. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7405. transient="false" volatile="false"
  7406. static="true" final="true" visibility="public"
  7407. deprecated="not deprecated">
  7408. </field>
  7409. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7410. transient="false" volatile="false"
  7411. static="true" final="true" visibility="public"
  7412. deprecated="not deprecated">
  7413. </field>
  7414. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7415. transient="false" volatile="false"
  7416. static="true" final="true" visibility="public"
  7417. deprecated="not deprecated">
  7418. </field>
  7419. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7420. transient="false" volatile="false"
  7421. static="true" final="true" visibility="public"
  7422. deprecated="not deprecated">
  7423. </field>
  7424. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7425. transient="false" volatile="false"
  7426. static="true" final="true" visibility="public"
  7427. deprecated="not deprecated">
  7428. </field>
  7429. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7430. transient="false" volatile="false"
  7431. static="true" final="true" visibility="public"
  7432. deprecated="not deprecated">
  7433. </field>
  7434. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7435. transient="false" volatile="false"
  7436. static="true" final="true" visibility="public"
  7437. deprecated="not deprecated">
  7438. </field>
  7439. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7440. transient="false" volatile="false"
  7441. static="true" final="true" visibility="public"
  7442. deprecated="not deprecated">
  7443. </field>
  7444. <field name="SYMBOL" type="java.lang.String"
  7445. transient="false" volatile="false"
  7446. static="false" final="true" visibility="public"
  7447. deprecated="not deprecated">
  7448. <doc>
  7449. <![CDATA[Symbolic representation]]>
  7450. </doc>
  7451. </field>
  7452. <doc>
  7453. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7454. </doc>
  7455. </class>
  7456. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7457. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7458. <class name="FsPermission" extends="java.lang.Object"
  7459. abstract="false"
  7460. static="false" final="false" visibility="public"
  7461. deprecated="not deprecated">
  7462. <implements name="org.apache.hadoop.io.Writable"/>
  7463. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7464. static="false" final="false" visibility="public"
  7465. deprecated="not deprecated">
  7466. <doc>
  7467. <![CDATA[Construct by the given {@link FsAction}.
  7468. @param u user action
  7469. @param g group action
  7470. @param o other action]]>
  7471. </doc>
  7472. </constructor>
  7473. <constructor name="FsPermission" type="short"
  7474. static="false" final="false" visibility="public"
  7475. deprecated="not deprecated">
  7476. <doc>
  7477. <![CDATA[Construct by the given mode.
  7478. @param mode
  7479. @see #toShort()]]>
  7480. </doc>
  7481. </constructor>
  7482. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7483. static="false" final="false" visibility="public"
  7484. deprecated="not deprecated">
  7485. <doc>
  7486. <![CDATA[Copy constructor
  7487. @param other other permission]]>
  7488. </doc>
  7489. </constructor>
  7490. <constructor name="FsPermission" type="java.lang.String"
  7491. static="false" final="false" visibility="public"
  7492. deprecated="not deprecated">
  7493. <doc>
  7494. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7495. @param mode mode as a string, either in octal or symbolic format
  7496. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7497. </doc>
  7498. </constructor>
  7499. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7500. abstract="false" native="false" synchronized="false"
  7501. static="true" final="false" visibility="public"
  7502. deprecated="not deprecated">
  7503. <param name="permission" type="short"/>
  7504. <doc>
  7505. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7506. </doc>
  7507. </method>
  7508. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7509. abstract="false" native="false" synchronized="false"
  7510. static="false" final="false" visibility="public"
  7511. deprecated="not deprecated">
  7512. <doc>
  7513. <![CDATA[Return user {@link FsAction}.]]>
  7514. </doc>
  7515. </method>
  7516. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7517. abstract="false" native="false" synchronized="false"
  7518. static="false" final="false" visibility="public"
  7519. deprecated="not deprecated">
  7520. <doc>
  7521. <![CDATA[Return group {@link FsAction}.]]>
  7522. </doc>
  7523. </method>
  7524. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7525. abstract="false" native="false" synchronized="false"
  7526. static="false" final="false" visibility="public"
  7527. deprecated="not deprecated">
  7528. <doc>
  7529. <![CDATA[Return other {@link FsAction}.]]>
  7530. </doc>
  7531. </method>
  7532. <method name="fromShort"
  7533. abstract="false" native="false" synchronized="false"
  7534. static="false" final="false" visibility="public"
  7535. deprecated="not deprecated">
  7536. <param name="n" type="short"/>
  7537. </method>
  7538. <method name="write"
  7539. abstract="false" native="false" synchronized="false"
  7540. static="false" final="false" visibility="public"
  7541. deprecated="not deprecated">
  7542. <param name="out" type="java.io.DataOutput"/>
  7543. <exception name="IOException" type="java.io.IOException"/>
  7544. <doc>
  7545. <![CDATA[{@inheritDoc}]]>
  7546. </doc>
  7547. </method>
  7548. <method name="readFields"
  7549. abstract="false" native="false" synchronized="false"
  7550. static="false" final="false" visibility="public"
  7551. deprecated="not deprecated">
  7552. <param name="in" type="java.io.DataInput"/>
  7553. <exception name="IOException" type="java.io.IOException"/>
  7554. <doc>
  7555. <![CDATA[{@inheritDoc}]]>
  7556. </doc>
  7557. </method>
  7558. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7559. abstract="false" native="false" synchronized="false"
  7560. static="true" final="false" visibility="public"
  7561. deprecated="not deprecated">
  7562. <param name="in" type="java.io.DataInput"/>
  7563. <exception name="IOException" type="java.io.IOException"/>
  7564. <doc>
  7565. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7566. </doc>
  7567. </method>
  7568. <method name="toShort" return="short"
  7569. abstract="false" native="false" synchronized="false"
  7570. static="false" final="false" visibility="public"
  7571. deprecated="not deprecated">
  7572. <doc>
  7573. <![CDATA[Encode the object to a short.]]>
  7574. </doc>
  7575. </method>
  7576. <method name="equals" return="boolean"
  7577. abstract="false" native="false" synchronized="false"
  7578. static="false" final="false" visibility="public"
  7579. deprecated="not deprecated">
  7580. <param name="obj" type="java.lang.Object"/>
  7581. <doc>
  7582. <![CDATA[{@inheritDoc}]]>
  7583. </doc>
  7584. </method>
  7585. <method name="hashCode" return="int"
  7586. abstract="false" native="false" synchronized="false"
  7587. static="false" final="false" visibility="public"
  7588. deprecated="not deprecated">
  7589. <doc>
  7590. <![CDATA[{@inheritDoc}]]>
  7591. </doc>
  7592. </method>
  7593. <method name="toString" return="java.lang.String"
  7594. abstract="false" native="false" synchronized="false"
  7595. static="false" final="false" visibility="public"
  7596. deprecated="not deprecated">
  7597. <doc>
  7598. <![CDATA[{@inheritDoc}]]>
  7599. </doc>
  7600. </method>
  7601. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7602. abstract="false" native="false" synchronized="false"
  7603. static="false" final="false" visibility="public"
  7604. deprecated="not deprecated">
  7605. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7606. <doc>
  7607. <![CDATA[Apply a umask to this permission and return a new one]]>
  7608. </doc>
  7609. </method>
  7610. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7611. abstract="false" native="false" synchronized="false"
  7612. static="true" final="false" visibility="public"
  7613. deprecated="not deprecated">
  7614. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7615. <doc>
  7616. <![CDATA[Get the user file creation mask (umask)
  7617. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7618. or octal.
  7619. Symbolic umask is applied relative to file mode creation mask;
  7620. the permission op characters '+' clears the corresponding bit in the mask,
  7621. '-' sets bits in the mask.
  7622. Octal umask, the specified bits are set in the file mode creation mask.
  7623. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7624. </doc>
  7625. </method>
  7626. <method name="setUMask"
  7627. abstract="false" native="false" synchronized="false"
  7628. static="true" final="false" visibility="public"
  7629. deprecated="not deprecated">
  7630. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7631. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7632. <doc>
  7633. <![CDATA[Set the user file creation mask (umask)]]>
  7634. </doc>
  7635. </method>
  7636. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7637. abstract="false" native="false" synchronized="false"
  7638. static="true" final="false" visibility="public"
  7639. deprecated="not deprecated">
  7640. <doc>
  7641. <![CDATA[Get the default permission.]]>
  7642. </doc>
  7643. </method>
  7644. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7645. abstract="false" native="false" synchronized="false"
  7646. static="true" final="false" visibility="public"
  7647. deprecated="not deprecated">
  7648. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7649. <doc>
  7650. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7651. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7652. </doc>
  7653. </method>
  7654. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7655. transient="false" volatile="false"
  7656. static="true" final="true" visibility="public"
  7657. deprecated="not deprecated">
  7658. <doc>
  7659. <![CDATA[umask property label]]>
  7660. </doc>
  7661. </field>
  7662. <field name="UMASK_LABEL" type="java.lang.String"
  7663. transient="false" volatile="false"
  7664. static="true" final="true" visibility="public"
  7665. deprecated="not deprecated">
  7666. </field>
  7667. <field name="DEFAULT_UMASK" type="int"
  7668. transient="false" volatile="false"
  7669. static="true" final="true" visibility="public"
  7670. deprecated="not deprecated">
  7671. </field>
  7672. <doc>
  7673. <![CDATA[A class for file/directory permissions.]]>
  7674. </doc>
  7675. </class>
  7676. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7677. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7678. <class name="PermissionStatus" extends="java.lang.Object"
  7679. abstract="false"
  7680. static="false" final="false" visibility="public"
  7681. deprecated="not deprecated">
  7682. <implements name="org.apache.hadoop.io.Writable"/>
  7683. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7684. static="false" final="false" visibility="public"
  7685. deprecated="not deprecated">
  7686. <doc>
  7687. <![CDATA[Constructor]]>
  7688. </doc>
  7689. </constructor>
  7690. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7691. abstract="false" native="false" synchronized="false"
  7692. static="true" final="false" visibility="public"
  7693. deprecated="not deprecated">
  7694. <param name="user" type="java.lang.String"/>
  7695. <param name="group" type="java.lang.String"/>
  7696. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7697. <doc>
  7698. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7699. </doc>
  7700. </method>
  7701. <method name="getUserName" return="java.lang.String"
  7702. abstract="false" native="false" synchronized="false"
  7703. static="false" final="false" visibility="public"
  7704. deprecated="not deprecated">
  7705. <doc>
  7706. <![CDATA[Return user name]]>
  7707. </doc>
  7708. </method>
  7709. <method name="getGroupName" return="java.lang.String"
  7710. abstract="false" native="false" synchronized="false"
  7711. static="false" final="false" visibility="public"
  7712. deprecated="not deprecated">
  7713. <doc>
  7714. <![CDATA[Return group name]]>
  7715. </doc>
  7716. </method>
  7717. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7718. abstract="false" native="false" synchronized="false"
  7719. static="false" final="false" visibility="public"
  7720. deprecated="not deprecated">
  7721. <doc>
  7722. <![CDATA[Return permission]]>
  7723. </doc>
  7724. </method>
  7725. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7726. abstract="false" native="false" synchronized="false"
  7727. static="false" final="false" visibility="public"
  7728. deprecated="not deprecated">
  7729. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7730. <doc>
  7731. <![CDATA[Apply umask.
  7732. @see FsPermission#applyUMask(FsPermission)]]>
  7733. </doc>
  7734. </method>
  7735. <method name="readFields"
  7736. abstract="false" native="false" synchronized="false"
  7737. static="false" final="false" visibility="public"
  7738. deprecated="not deprecated">
  7739. <param name="in" type="java.io.DataInput"/>
  7740. <exception name="IOException" type="java.io.IOException"/>
  7741. <doc>
  7742. <![CDATA[{@inheritDoc}]]>
  7743. </doc>
  7744. </method>
  7745. <method name="write"
  7746. abstract="false" native="false" synchronized="false"
  7747. static="false" final="false" visibility="public"
  7748. deprecated="not deprecated">
  7749. <param name="out" type="java.io.DataOutput"/>
  7750. <exception name="IOException" type="java.io.IOException"/>
  7751. <doc>
  7752. <![CDATA[{@inheritDoc}]]>
  7753. </doc>
  7754. </method>
  7755. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7756. abstract="false" native="false" synchronized="false"
  7757. static="true" final="false" visibility="public"
  7758. deprecated="not deprecated">
  7759. <param name="in" type="java.io.DataInput"/>
  7760. <exception name="IOException" type="java.io.IOException"/>
  7761. <doc>
  7762. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7763. </doc>
  7764. </method>
  7765. <method name="write"
  7766. abstract="false" native="false" synchronized="false"
  7767. static="true" final="false" visibility="public"
  7768. deprecated="not deprecated">
  7769. <param name="out" type="java.io.DataOutput"/>
  7770. <param name="username" type="java.lang.String"/>
  7771. <param name="groupname" type="java.lang.String"/>
  7772. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7773. <exception name="IOException" type="java.io.IOException"/>
  7774. <doc>
  7775. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7776. </doc>
  7777. </method>
  7778. <method name="toString" return="java.lang.String"
  7779. abstract="false" native="false" synchronized="false"
  7780. static="false" final="false" visibility="public"
  7781. deprecated="not deprecated">
  7782. <doc>
  7783. <![CDATA[{@inheritDoc}]]>
  7784. </doc>
  7785. </method>
  7786. <doc>
  7787. <![CDATA[Store permission related information.]]>
  7788. </doc>
  7789. </class>
  7790. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7791. </package>
  7792. <package name="org.apache.hadoop.fs.s3">
  7793. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7794. <class name="Block" extends="java.lang.Object"
  7795. abstract="false"
  7796. static="false" final="false" visibility="public"
  7797. deprecated="not deprecated">
  7798. <constructor name="Block" type="long, long"
  7799. static="false" final="false" visibility="public"
  7800. deprecated="not deprecated">
  7801. </constructor>
  7802. <method name="getId" return="long"
  7803. abstract="false" native="false" synchronized="false"
  7804. static="false" final="false" visibility="public"
  7805. deprecated="not deprecated">
  7806. </method>
  7807. <method name="getLength" return="long"
  7808. abstract="false" native="false" synchronized="false"
  7809. static="false" final="false" visibility="public"
  7810. deprecated="not deprecated">
  7811. </method>
  7812. <method name="toString" return="java.lang.String"
  7813. abstract="false" native="false" synchronized="false"
  7814. static="false" final="false" visibility="public"
  7815. deprecated="not deprecated">
  7816. </method>
  7817. <doc>
  7818. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7819. </doc>
  7820. </class>
  7821. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7822. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7823. <interface name="FileSystemStore" abstract="true"
  7824. static="false" final="false" visibility="public"
  7825. deprecated="not deprecated">
  7826. <method name="initialize"
  7827. abstract="false" native="false" synchronized="false"
  7828. static="false" final="false" visibility="public"
  7829. deprecated="not deprecated">
  7830. <param name="uri" type="java.net.URI"/>
  7831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7832. <exception name="IOException" type="java.io.IOException"/>
  7833. </method>
  7834. <method name="getVersion" return="java.lang.String"
  7835. abstract="false" native="false" synchronized="false"
  7836. static="false" final="false" visibility="public"
  7837. deprecated="not deprecated">
  7838. <exception name="IOException" type="java.io.IOException"/>
  7839. </method>
  7840. <method name="storeINode"
  7841. abstract="false" native="false" synchronized="false"
  7842. static="false" final="false" visibility="public"
  7843. deprecated="not deprecated">
  7844. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7845. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7846. <exception name="IOException" type="java.io.IOException"/>
  7847. </method>
  7848. <method name="storeBlock"
  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="file" type="java.io.File"/>
  7854. <exception name="IOException" type="java.io.IOException"/>
  7855. </method>
  7856. <method name="inodeExists" return="boolean"
  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="blockExists" return="boolean"
  7864. abstract="false" native="false" synchronized="false"
  7865. static="false" final="false" visibility="public"
  7866. deprecated="not deprecated">
  7867. <param name="blockId" type="long"/>
  7868. <exception name="IOException" type="java.io.IOException"/>
  7869. </method>
  7870. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  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="retrieveBlock" return="java.io.File"
  7878. abstract="false" native="false" synchronized="false"
  7879. static="false" final="false" visibility="public"
  7880. deprecated="not deprecated">
  7881. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7882. <param name="byteRangeStart" type="long"/>
  7883. <exception name="IOException" type="java.io.IOException"/>
  7884. </method>
  7885. <method name="deleteINode"
  7886. abstract="false" native="false" synchronized="false"
  7887. static="false" final="false" visibility="public"
  7888. deprecated="not deprecated">
  7889. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7890. <exception name="IOException" type="java.io.IOException"/>
  7891. </method>
  7892. <method name="deleteBlock"
  7893. abstract="false" native="false" synchronized="false"
  7894. static="false" final="false" visibility="public"
  7895. deprecated="not deprecated">
  7896. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7897. <exception name="IOException" type="java.io.IOException"/>
  7898. </method>
  7899. <method name="listSubPaths" return="java.util.Set"
  7900. abstract="false" native="false" synchronized="false"
  7901. static="false" final="false" visibility="public"
  7902. deprecated="not deprecated">
  7903. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7904. <exception name="IOException" type="java.io.IOException"/>
  7905. </method>
  7906. <method name="listDeepSubPaths" return="java.util.Set"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="false" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7911. <exception name="IOException" type="java.io.IOException"/>
  7912. </method>
  7913. <method name="purge"
  7914. abstract="false" native="false" synchronized="false"
  7915. static="false" final="false" visibility="public"
  7916. deprecated="not deprecated">
  7917. <exception name="IOException" type="java.io.IOException"/>
  7918. <doc>
  7919. <![CDATA[Delete everything. Used for testing.
  7920. @throws IOException]]>
  7921. </doc>
  7922. </method>
  7923. <method name="dump"
  7924. abstract="false" native="false" synchronized="false"
  7925. static="false" final="false" visibility="public"
  7926. deprecated="not deprecated">
  7927. <exception name="IOException" type="java.io.IOException"/>
  7928. <doc>
  7929. <![CDATA[Diagnostic method to dump all INodes to the console.
  7930. @throws IOException]]>
  7931. </doc>
  7932. </method>
  7933. <doc>
  7934. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7935. </doc>
  7936. </interface>
  7937. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7938. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7939. <class name="INode" extends="java.lang.Object"
  7940. abstract="false"
  7941. static="false" final="false" visibility="public"
  7942. deprecated="not deprecated">
  7943. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7944. static="false" final="false" visibility="public"
  7945. deprecated="not deprecated">
  7946. </constructor>
  7947. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7948. abstract="false" native="false" synchronized="false"
  7949. static="false" final="false" visibility="public"
  7950. deprecated="not deprecated">
  7951. </method>
  7952. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  7953. abstract="false" native="false" synchronized="false"
  7954. static="false" final="false" visibility="public"
  7955. deprecated="not deprecated">
  7956. </method>
  7957. <method name="isDirectory" return="boolean"
  7958. abstract="false" native="false" synchronized="false"
  7959. static="false" final="false" visibility="public"
  7960. deprecated="not deprecated">
  7961. </method>
  7962. <method name="isFile" return="boolean"
  7963. abstract="false" native="false" synchronized="false"
  7964. static="false" final="false" visibility="public"
  7965. deprecated="not deprecated">
  7966. </method>
  7967. <method name="getSerializedLength" return="long"
  7968. abstract="false" native="false" synchronized="false"
  7969. static="false" final="false" visibility="public"
  7970. deprecated="not deprecated">
  7971. </method>
  7972. <method name="serialize" return="java.io.InputStream"
  7973. abstract="false" native="false" synchronized="false"
  7974. static="false" final="false" visibility="public"
  7975. deprecated="not deprecated">
  7976. <exception name="IOException" type="java.io.IOException"/>
  7977. </method>
  7978. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  7979. abstract="false" native="false" synchronized="false"
  7980. static="true" final="false" visibility="public"
  7981. deprecated="not deprecated">
  7982. <param name="in" type="java.io.InputStream"/>
  7983. <exception name="IOException" type="java.io.IOException"/>
  7984. </method>
  7985. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  7986. transient="false" volatile="false"
  7987. static="true" final="true" visibility="public"
  7988. deprecated="not deprecated">
  7989. </field>
  7990. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  7991. transient="false" volatile="false"
  7992. static="true" final="true" visibility="public"
  7993. deprecated="not deprecated">
  7994. </field>
  7995. <doc>
  7996. <![CDATA[Holds file metadata including type (regular file, or directory),
  7997. and the list of blocks that are pointers to the data.]]>
  7998. </doc>
  7999. </class>
  8000. <!-- end class org.apache.hadoop.fs.s3.INode -->
  8001. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  8002. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  8003. abstract="false"
  8004. static="false" final="false" visibility="public"
  8005. deprecated="not deprecated">
  8006. <implements name="org.apache.hadoop.util.Tool"/>
  8007. <constructor name="MigrationTool"
  8008. static="false" final="false" visibility="public"
  8009. deprecated="not deprecated">
  8010. </constructor>
  8011. <method name="main"
  8012. abstract="false" native="false" synchronized="false"
  8013. static="true" final="false" visibility="public"
  8014. deprecated="not deprecated">
  8015. <param name="args" type="java.lang.String[]"/>
  8016. <exception name="Exception" type="java.lang.Exception"/>
  8017. </method>
  8018. <method name="run" return="int"
  8019. abstract="false" native="false" synchronized="false"
  8020. static="false" final="false" visibility="public"
  8021. deprecated="not deprecated">
  8022. <param name="args" type="java.lang.String[]"/>
  8023. <exception name="Exception" type="java.lang.Exception"/>
  8024. </method>
  8025. <method name="initialize"
  8026. abstract="false" native="false" synchronized="false"
  8027. static="false" final="false" visibility="public"
  8028. deprecated="not deprecated">
  8029. <param name="uri" type="java.net.URI"/>
  8030. <exception name="IOException" type="java.io.IOException"/>
  8031. </method>
  8032. <doc>
  8033. <![CDATA[<p>
  8034. This class is a tool for migrating data from an older to a newer version
  8035. of an S3 filesystem.
  8036. </p>
  8037. <p>
  8038. All files in the filesystem are migrated by re-writing the block metadata
  8039. - no datafiles are touched.
  8040. </p>]]>
  8041. </doc>
  8042. </class>
  8043. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8044. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  8045. <class name="S3Credentials" extends="java.lang.Object"
  8046. abstract="false"
  8047. static="false" final="false" visibility="public"
  8048. deprecated="not deprecated">
  8049. <constructor name="S3Credentials"
  8050. static="false" final="false" visibility="public"
  8051. deprecated="not deprecated">
  8052. </constructor>
  8053. <method name="initialize"
  8054. abstract="false" native="false" synchronized="false"
  8055. static="false" final="false" visibility="public"
  8056. deprecated="not deprecated">
  8057. <param name="uri" type="java.net.URI"/>
  8058. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8059. <doc>
  8060. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8061. determined.]]>
  8062. </doc>
  8063. </method>
  8064. <method name="getAccessKey" return="java.lang.String"
  8065. abstract="false" native="false" synchronized="false"
  8066. static="false" final="false" visibility="public"
  8067. deprecated="not deprecated">
  8068. </method>
  8069. <method name="getSecretAccessKey" return="java.lang.String"
  8070. abstract="false" native="false" synchronized="false"
  8071. static="false" final="false" visibility="public"
  8072. deprecated="not deprecated">
  8073. </method>
  8074. <doc>
  8075. <![CDATA[<p>
  8076. Extracts AWS credentials from the filesystem URI or configuration.
  8077. </p>]]>
  8078. </doc>
  8079. </class>
  8080. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8081. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8082. <class name="S3Exception" extends="java.lang.RuntimeException"
  8083. abstract="false"
  8084. static="false" final="false" visibility="public"
  8085. deprecated="not deprecated">
  8086. <constructor name="S3Exception" type="java.lang.Throwable"
  8087. static="false" final="false" visibility="public"
  8088. deprecated="not deprecated">
  8089. </constructor>
  8090. <doc>
  8091. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8092. </doc>
  8093. </class>
  8094. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8095. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8096. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8097. abstract="false"
  8098. static="false" final="false" visibility="public"
  8099. deprecated="not deprecated">
  8100. <constructor name="S3FileSystem"
  8101. static="false" final="false" visibility="public"
  8102. deprecated="not deprecated">
  8103. </constructor>
  8104. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8105. static="false" final="false" visibility="public"
  8106. deprecated="not deprecated">
  8107. </constructor>
  8108. <method name="getUri" return="java.net.URI"
  8109. abstract="false" native="false" synchronized="false"
  8110. static="false" final="false" visibility="public"
  8111. deprecated="not deprecated">
  8112. </method>
  8113. <method name="initialize"
  8114. abstract="false" native="false" synchronized="false"
  8115. static="false" final="false" visibility="public"
  8116. deprecated="not deprecated">
  8117. <param name="uri" type="java.net.URI"/>
  8118. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8119. <exception name="IOException" type="java.io.IOException"/>
  8120. </method>
  8121. <method name="getName" return="java.lang.String"
  8122. abstract="false" native="false" synchronized="false"
  8123. static="false" final="false" visibility="public"
  8124. deprecated="not deprecated">
  8125. </method>
  8126. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8127. abstract="false" native="false" synchronized="false"
  8128. static="false" final="false" visibility="public"
  8129. deprecated="not deprecated">
  8130. </method>
  8131. <method name="setWorkingDirectory"
  8132. abstract="false" native="false" synchronized="false"
  8133. static="false" final="false" visibility="public"
  8134. deprecated="not deprecated">
  8135. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8136. </method>
  8137. <method name="mkdirs" return="boolean"
  8138. abstract="false" native="false" synchronized="false"
  8139. static="false" final="false" visibility="public"
  8140. deprecated="not deprecated">
  8141. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8142. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8143. <exception name="IOException" type="java.io.IOException"/>
  8144. <doc>
  8145. <![CDATA[@param permission Currently ignored.]]>
  8146. </doc>
  8147. </method>
  8148. <method name="isFile" return="boolean"
  8149. abstract="false" native="false" synchronized="false"
  8150. static="false" final="false" visibility="public"
  8151. deprecated="not deprecated">
  8152. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8153. <exception name="IOException" type="java.io.IOException"/>
  8154. </method>
  8155. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8156. abstract="false" native="false" synchronized="false"
  8157. static="false" final="false" visibility="public"
  8158. deprecated="not deprecated">
  8159. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8160. <exception name="IOException" type="java.io.IOException"/>
  8161. </method>
  8162. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8163. abstract="false" native="false" synchronized="false"
  8164. static="false" final="false" visibility="public"
  8165. deprecated="not deprecated">
  8166. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8167. <param name="bufferSize" type="int"/>
  8168. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8169. <exception name="IOException" type="java.io.IOException"/>
  8170. <doc>
  8171. <![CDATA[This optional operation is not yet supported.]]>
  8172. </doc>
  8173. </method>
  8174. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8175. abstract="false" native="false" synchronized="false"
  8176. static="false" final="false" visibility="public"
  8177. deprecated="not deprecated">
  8178. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8179. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8180. <param name="overwrite" type="boolean"/>
  8181. <param name="bufferSize" type="int"/>
  8182. <param name="replication" type="short"/>
  8183. <param name="blockSize" type="long"/>
  8184. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8185. <exception name="IOException" type="java.io.IOException"/>
  8186. <doc>
  8187. <![CDATA[@param permission Currently ignored.]]>
  8188. </doc>
  8189. </method>
  8190. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8191. abstract="false" native="false" synchronized="false"
  8192. static="false" final="false" visibility="public"
  8193. deprecated="not deprecated">
  8194. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8195. <param name="bufferSize" type="int"/>
  8196. <exception name="IOException" type="java.io.IOException"/>
  8197. </method>
  8198. <method name="rename" return="boolean"
  8199. abstract="false" native="false" synchronized="false"
  8200. static="false" final="false" visibility="public"
  8201. deprecated="not deprecated">
  8202. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8203. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8204. <exception name="IOException" type="java.io.IOException"/>
  8205. </method>
  8206. <method name="delete" return="boolean"
  8207. abstract="false" native="false" synchronized="false"
  8208. static="false" final="false" visibility="public"
  8209. deprecated="not deprecated">
  8210. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8211. <param name="recursive" type="boolean"/>
  8212. <exception name="IOException" type="java.io.IOException"/>
  8213. </method>
  8214. <method name="delete" return="boolean"
  8215. abstract="false" native="false" synchronized="false"
  8216. static="false" final="false" visibility="public"
  8217. deprecated="not deprecated">
  8218. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8219. <exception name="IOException" type="java.io.IOException"/>
  8220. </method>
  8221. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8222. abstract="false" native="false" synchronized="false"
  8223. static="false" final="false" visibility="public"
  8224. deprecated="not deprecated">
  8225. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8226. <exception name="IOException" type="java.io.IOException"/>
  8227. <doc>
  8228. <![CDATA[FileStatus for S3 file systems.]]>
  8229. </doc>
  8230. </method>
  8231. <doc>
  8232. <![CDATA[<p>
  8233. A block-based {@link FileSystem} backed by
  8234. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8235. </p>
  8236. @see NativeS3FileSystem]]>
  8237. </doc>
  8238. </class>
  8239. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8240. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8241. <class name="S3FileSystemException" extends="java.io.IOException"
  8242. abstract="false"
  8243. static="false" final="false" visibility="public"
  8244. deprecated="not deprecated">
  8245. <constructor name="S3FileSystemException" type="java.lang.String"
  8246. static="false" final="false" visibility="public"
  8247. deprecated="not deprecated">
  8248. </constructor>
  8249. <doc>
  8250. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8251. </doc>
  8252. </class>
  8253. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8254. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8255. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8256. abstract="false"
  8257. static="false" final="false" visibility="public"
  8258. deprecated="not deprecated">
  8259. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8260. static="false" final="false" visibility="public"
  8261. deprecated="not deprecated">
  8262. </constructor>
  8263. <doc>
  8264. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8265. in {@link S3FileSystem}.]]>
  8266. </doc>
  8267. </class>
  8268. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8269. </package>
  8270. <package name="org.apache.hadoop.fs.s3native">
  8271. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8272. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8273. abstract="false"
  8274. static="false" final="false" visibility="public"
  8275. deprecated="not deprecated">
  8276. <constructor name="NativeS3FileSystem"
  8277. static="false" final="false" visibility="public"
  8278. deprecated="not deprecated">
  8279. </constructor>
  8280. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8281. static="false" final="false" visibility="public"
  8282. deprecated="not deprecated">
  8283. </constructor>
  8284. <method name="initialize"
  8285. abstract="false" native="false" synchronized="false"
  8286. static="false" final="false" visibility="public"
  8287. deprecated="not deprecated">
  8288. <param name="uri" type="java.net.URI"/>
  8289. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8290. <exception name="IOException" type="java.io.IOException"/>
  8291. </method>
  8292. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8293. abstract="false" native="false" synchronized="false"
  8294. static="false" final="false" visibility="public"
  8295. deprecated="not deprecated">
  8296. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8297. <param name="bufferSize" type="int"/>
  8298. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8299. <exception name="IOException" type="java.io.IOException"/>
  8300. <doc>
  8301. <![CDATA[This optional operation is not yet supported.]]>
  8302. </doc>
  8303. </method>
  8304. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8305. abstract="false" native="false" synchronized="false"
  8306. static="false" final="false" visibility="public"
  8307. deprecated="not deprecated">
  8308. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8309. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8310. <param name="overwrite" type="boolean"/>
  8311. <param name="bufferSize" type="int"/>
  8312. <param name="replication" type="short"/>
  8313. <param name="blockSize" type="long"/>
  8314. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8315. <exception name="IOException" type="java.io.IOException"/>
  8316. </method>
  8317. <method name="delete" return="boolean"
  8318. abstract="false" native="false" synchronized="false"
  8319. static="false" final="false" visibility="public"
  8320. deprecated="not deprecated">
  8321. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8322. <exception name="IOException" type="java.io.IOException"/>
  8323. </method>
  8324. <method name="delete" return="boolean"
  8325. abstract="false" native="false" synchronized="false"
  8326. static="false" final="false" visibility="public"
  8327. deprecated="not deprecated">
  8328. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8329. <param name="recursive" type="boolean"/>
  8330. <exception name="IOException" type="java.io.IOException"/>
  8331. </method>
  8332. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8333. abstract="false" native="false" synchronized="false"
  8334. static="false" final="false" visibility="public"
  8335. deprecated="not deprecated">
  8336. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8337. <exception name="IOException" type="java.io.IOException"/>
  8338. </method>
  8339. <method name="getUri" return="java.net.URI"
  8340. abstract="false" native="false" synchronized="false"
  8341. static="false" final="false" visibility="public"
  8342. deprecated="not deprecated">
  8343. </method>
  8344. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8345. abstract="false" native="false" synchronized="false"
  8346. static="false" final="false" visibility="public"
  8347. deprecated="not deprecated">
  8348. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8349. <exception name="IOException" type="java.io.IOException"/>
  8350. <doc>
  8351. <![CDATA[<p>
  8352. If <code>f</code> is a file, this method will make a single call to S3.
  8353. If <code>f</code> is a directory, this method will make a maximum of
  8354. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8355. files and directories contained directly in <code>f</code>.
  8356. </p>]]>
  8357. </doc>
  8358. </method>
  8359. <method name="mkdirs" return="boolean"
  8360. abstract="false" native="false" synchronized="false"
  8361. static="false" final="false" visibility="public"
  8362. deprecated="not deprecated">
  8363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8364. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8365. <exception name="IOException" type="java.io.IOException"/>
  8366. </method>
  8367. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8368. abstract="false" native="false" synchronized="false"
  8369. static="false" final="false" visibility="public"
  8370. deprecated="not deprecated">
  8371. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8372. <param name="bufferSize" type="int"/>
  8373. <exception name="IOException" type="java.io.IOException"/>
  8374. </method>
  8375. <method name="rename" return="boolean"
  8376. abstract="false" native="false" synchronized="false"
  8377. static="false" final="false" visibility="public"
  8378. deprecated="not deprecated">
  8379. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8380. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8381. <exception name="IOException" type="java.io.IOException"/>
  8382. </method>
  8383. <method name="setWorkingDirectory"
  8384. abstract="false" native="false" synchronized="false"
  8385. static="false" final="false" visibility="public"
  8386. deprecated="not deprecated">
  8387. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8388. <doc>
  8389. <![CDATA[Set the working directory to the given directory.]]>
  8390. </doc>
  8391. </method>
  8392. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8393. abstract="false" native="false" synchronized="false"
  8394. static="false" final="false" visibility="public"
  8395. deprecated="not deprecated">
  8396. </method>
  8397. <field name="LOG" type="org.apache.commons.logging.Log"
  8398. transient="false" volatile="false"
  8399. static="true" final="true" visibility="public"
  8400. deprecated="not deprecated">
  8401. </field>
  8402. <doc>
  8403. <![CDATA[<p>
  8404. A {@link FileSystem} for reading and writing files stored on
  8405. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8406. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8407. stores files on S3 in their
  8408. native form so they can be read by other S3 tools.
  8409. </p>
  8410. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8411. </doc>
  8412. </class>
  8413. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8414. </package>
  8415. <package name="org.apache.hadoop.fs.shell">
  8416. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8417. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8418. abstract="true"
  8419. static="false" final="false" visibility="public"
  8420. deprecated="not deprecated">
  8421. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8422. static="false" final="false" visibility="protected"
  8423. deprecated="not deprecated">
  8424. <doc>
  8425. <![CDATA[Constructor]]>
  8426. </doc>
  8427. </constructor>
  8428. <method name="getCommandName" return="java.lang.String"
  8429. abstract="true" native="false" synchronized="false"
  8430. static="false" final="false" visibility="public"
  8431. deprecated="not deprecated">
  8432. <doc>
  8433. <![CDATA[Return the command's name excluding the leading character -]]>
  8434. </doc>
  8435. </method>
  8436. <method name="run"
  8437. abstract="true" native="false" synchronized="false"
  8438. static="false" final="false" visibility="protected"
  8439. deprecated="not deprecated">
  8440. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8441. <exception name="IOException" type="java.io.IOException"/>
  8442. <doc>
  8443. <![CDATA[Execute the command on the input path
  8444. @param path the input path
  8445. @throws IOException if any error occurs]]>
  8446. </doc>
  8447. </method>
  8448. <method name="runAll" return="int"
  8449. abstract="false" native="false" synchronized="false"
  8450. static="false" final="false" visibility="public"
  8451. deprecated="not deprecated">
  8452. <doc>
  8453. <![CDATA[For each source path, execute the command
  8454. @return 0 if it runs successfully; -1 if it fails]]>
  8455. </doc>
  8456. </method>
  8457. <field name="args" type="java.lang.String[]"
  8458. transient="false" volatile="false"
  8459. static="false" final="false" visibility="protected"
  8460. deprecated="not deprecated">
  8461. </field>
  8462. <doc>
  8463. <![CDATA[An abstract class for the execution of a file system command]]>
  8464. </doc>
  8465. </class>
  8466. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8467. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8468. <class name="CommandFormat" extends="java.lang.Object"
  8469. abstract="false"
  8470. static="false" final="false" visibility="public"
  8471. deprecated="not deprecated">
  8472. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8473. static="false" final="false" visibility="public"
  8474. deprecated="not deprecated">
  8475. <doc>
  8476. <![CDATA[constructor]]>
  8477. </doc>
  8478. </constructor>
  8479. <method name="parse" return="java.util.List"
  8480. abstract="false" native="false" synchronized="false"
  8481. static="false" final="false" visibility="public"
  8482. deprecated="not deprecated">
  8483. <param name="args" type="java.lang.String[]"/>
  8484. <param name="pos" type="int"/>
  8485. <doc>
  8486. <![CDATA[Parse parameters starting from the given position
  8487. @param args an array of input arguments
  8488. @param pos the position at which starts to parse
  8489. @return a list of parameters]]>
  8490. </doc>
  8491. </method>
  8492. <method name="getOpt" return="boolean"
  8493. abstract="false" native="false" synchronized="false"
  8494. static="false" final="false" visibility="public"
  8495. deprecated="not deprecated">
  8496. <param name="option" type="java.lang.String"/>
  8497. <doc>
  8498. <![CDATA[Return if the option is set or not
  8499. @param option String representation of an option
  8500. @return true is the option is set; false otherwise]]>
  8501. </doc>
  8502. </method>
  8503. <doc>
  8504. <![CDATA[Parse the args of a command and check the format of args.]]>
  8505. </doc>
  8506. </class>
  8507. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8508. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8509. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8510. abstract="false"
  8511. static="false" final="false" visibility="public"
  8512. deprecated="not deprecated">
  8513. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8514. static="false" final="false" visibility="public"
  8515. deprecated="not deprecated">
  8516. <doc>
  8517. <![CDATA[Constructor
  8518. @param cmd the count command
  8519. @param pos the starting index of the arguments]]>
  8520. </doc>
  8521. </constructor>
  8522. <method name="matches" return="boolean"
  8523. abstract="false" native="false" synchronized="false"
  8524. static="true" final="false" visibility="public"
  8525. deprecated="not deprecated">
  8526. <param name="cmd" type="java.lang.String"/>
  8527. <doc>
  8528. <![CDATA[Check if a command is the count command
  8529. @param cmd A string representation of a command starting with "-"
  8530. @return true if this is a count command; false otherwise]]>
  8531. </doc>
  8532. </method>
  8533. <method name="getCommandName" return="java.lang.String"
  8534. abstract="false" native="false" synchronized="false"
  8535. static="false" final="false" visibility="public"
  8536. deprecated="not deprecated">
  8537. </method>
  8538. <method name="run"
  8539. abstract="false" native="false" synchronized="false"
  8540. static="false" final="false" visibility="protected"
  8541. deprecated="not deprecated">
  8542. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8543. <exception name="IOException" type="java.io.IOException"/>
  8544. </method>
  8545. <field name="NAME" type="java.lang.String"
  8546. transient="false" volatile="false"
  8547. static="true" final="true" visibility="public"
  8548. deprecated="not deprecated">
  8549. </field>
  8550. <field name="USAGE" type="java.lang.String"
  8551. transient="false" volatile="false"
  8552. static="true" final="true" visibility="public"
  8553. deprecated="not deprecated">
  8554. </field>
  8555. <field name="DESCRIPTION" type="java.lang.String"
  8556. transient="false" volatile="false"
  8557. static="true" final="true" visibility="public"
  8558. deprecated="not deprecated">
  8559. </field>
  8560. <doc>
  8561. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8562. </doc>
  8563. </class>
  8564. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8565. </package>
  8566. <package name="org.apache.hadoop.http">
  8567. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8568. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8569. abstract="false"
  8570. static="false" final="false" visibility="public"
  8571. deprecated="not deprecated">
  8572. <constructor name="AdminAuthorizedServlet"
  8573. static="false" final="false" visibility="public"
  8574. deprecated="not deprecated">
  8575. </constructor>
  8576. <method name="doGet"
  8577. abstract="false" native="false" synchronized="false"
  8578. static="false" final="false" visibility="protected"
  8579. deprecated="not deprecated">
  8580. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8581. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8582. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8583. <exception name="IOException" type="java.io.IOException"/>
  8584. </method>
  8585. <doc>
  8586. <![CDATA[General servlet which is admin-authorized.]]>
  8587. </doc>
  8588. </class>
  8589. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8590. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8591. <interface name="FilterContainer" abstract="true"
  8592. static="false" final="false" visibility="public"
  8593. deprecated="not deprecated">
  8594. <method name="addFilter"
  8595. abstract="false" native="false" synchronized="false"
  8596. static="false" final="false" visibility="public"
  8597. deprecated="not deprecated">
  8598. <param name="name" type="java.lang.String"/>
  8599. <param name="classname" type="java.lang.String"/>
  8600. <param name="parameters" type="java.util.Map"/>
  8601. <doc>
  8602. <![CDATA[Add a filter to the container.
  8603. @param name Filter name
  8604. @param classname Filter class name
  8605. @param parameters a map from parameter names to initial values]]>
  8606. </doc>
  8607. </method>
  8608. <method name="addGlobalFilter"
  8609. abstract="false" native="false" synchronized="false"
  8610. static="false" final="false" visibility="public"
  8611. deprecated="not deprecated">
  8612. <param name="name" type="java.lang.String"/>
  8613. <param name="classname" type="java.lang.String"/>
  8614. <param name="parameters" type="java.util.Map"/>
  8615. <doc>
  8616. <![CDATA[Add a global filter to the container.
  8617. @param name filter name
  8618. @param classname filter class name
  8619. @param parameters a map from parameter names to initial values]]>
  8620. </doc>
  8621. </method>
  8622. <doc>
  8623. <![CDATA[A container class for javax.servlet.Filter.]]>
  8624. </doc>
  8625. </interface>
  8626. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8627. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8628. <class name="FilterInitializer" extends="java.lang.Object"
  8629. abstract="true"
  8630. static="false" final="false" visibility="public"
  8631. deprecated="not deprecated">
  8632. <constructor name="FilterInitializer"
  8633. static="false" final="false" visibility="public"
  8634. deprecated="not deprecated">
  8635. </constructor>
  8636. <method name="initFilter"
  8637. abstract="true" native="false" synchronized="false"
  8638. static="false" final="false" visibility="public"
  8639. deprecated="not deprecated">
  8640. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8642. <doc>
  8643. <![CDATA[Initialize a Filter to a FilterContainer.
  8644. @param container The filter container
  8645. @param conf Configuration for run-time parameters]]>
  8646. </doc>
  8647. </method>
  8648. <doc>
  8649. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8650. </doc>
  8651. </class>
  8652. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8653. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8654. <class name="HtmlQuoting" extends="java.lang.Object"
  8655. abstract="false"
  8656. static="false" final="false" visibility="public"
  8657. deprecated="not deprecated">
  8658. <constructor name="HtmlQuoting"
  8659. static="false" final="false" visibility="public"
  8660. deprecated="not deprecated">
  8661. </constructor>
  8662. <method name="needsQuoting" return="boolean"
  8663. abstract="false" native="false" synchronized="false"
  8664. static="true" final="false" visibility="public"
  8665. deprecated="not deprecated">
  8666. <param name="data" type="byte[]"/>
  8667. <param name="off" type="int"/>
  8668. <param name="len" type="int"/>
  8669. <doc>
  8670. <![CDATA[Does the given string need to be quoted?
  8671. @param data the string to check
  8672. @param off the starting position
  8673. @param len the number of bytes to check
  8674. @return does the string contain any of the active html characters?]]>
  8675. </doc>
  8676. </method>
  8677. <method name="needsQuoting" return="boolean"
  8678. abstract="false" native="false" synchronized="false"
  8679. static="true" final="false" visibility="public"
  8680. deprecated="not deprecated">
  8681. <param name="str" type="java.lang.String"/>
  8682. <doc>
  8683. <![CDATA[Does the given string need to be quoted?
  8684. @param str the string to check
  8685. @return does the string contain any of the active html characters?]]>
  8686. </doc>
  8687. </method>
  8688. <method name="quoteHtmlChars"
  8689. abstract="false" native="false" synchronized="false"
  8690. static="true" final="false" visibility="public"
  8691. deprecated="not deprecated">
  8692. <param name="output" type="java.io.OutputStream"/>
  8693. <param name="buffer" type="byte[]"/>
  8694. <param name="off" type="int"/>
  8695. <param name="len" type="int"/>
  8696. <exception name="IOException" type="java.io.IOException"/>
  8697. <doc>
  8698. <![CDATA[Quote all of the active HTML characters in the given string as they
  8699. are added to the buffer.
  8700. @param output the stream to write the output to
  8701. @param buffer the byte array to take the characters from
  8702. @param off the index of the first byte to quote
  8703. @param len the number of bytes to quote]]>
  8704. </doc>
  8705. </method>
  8706. <method name="quoteHtmlChars" return="java.lang.String"
  8707. abstract="false" native="false" synchronized="false"
  8708. static="true" final="false" visibility="public"
  8709. deprecated="not deprecated">
  8710. <param name="item" type="java.lang.String"/>
  8711. <doc>
  8712. <![CDATA[Quote the given item to make it html-safe.
  8713. @param item the string to quote
  8714. @return the quoted string]]>
  8715. </doc>
  8716. </method>
  8717. <method name="quoteOutputStream" return="java.io.OutputStream"
  8718. abstract="false" native="false" synchronized="false"
  8719. static="true" final="false" visibility="public"
  8720. deprecated="not deprecated">
  8721. <param name="out" type="java.io.OutputStream"/>
  8722. <exception name="IOException" type="java.io.IOException"/>
  8723. <doc>
  8724. <![CDATA[Return an output stream that quotes all of the output.
  8725. @param out the stream to write the quoted output to
  8726. @return a new stream that the application show write to
  8727. @throws IOException if the underlying output fails]]>
  8728. </doc>
  8729. </method>
  8730. <method name="unquoteHtmlChars" return="java.lang.String"
  8731. abstract="false" native="false" synchronized="false"
  8732. static="true" final="false" visibility="public"
  8733. deprecated="not deprecated">
  8734. <param name="item" type="java.lang.String"/>
  8735. <doc>
  8736. <![CDATA[Remove HTML quoting from a string.
  8737. @param item the string to unquote
  8738. @return the unquoted string]]>
  8739. </doc>
  8740. </method>
  8741. <method name="main"
  8742. abstract="false" native="false" synchronized="false"
  8743. static="true" final="false" visibility="public"
  8744. deprecated="not deprecated">
  8745. <param name="args" type="java.lang.String[]"/>
  8746. <exception name="Exception" type="java.lang.Exception"/>
  8747. </method>
  8748. <doc>
  8749. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8750. </doc>
  8751. </class>
  8752. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8753. <!-- start class org.apache.hadoop.http.HttpServer -->
  8754. <class name="HttpServer" extends="java.lang.Object"
  8755. abstract="false"
  8756. static="false" final="false" visibility="public"
  8757. deprecated="not deprecated">
  8758. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8759. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8760. static="false" final="false" visibility="public"
  8761. deprecated="not deprecated">
  8762. <exception name="IOException" type="java.io.IOException"/>
  8763. <doc>
  8764. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8765. </doc>
  8766. </constructor>
  8767. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8768. static="false" final="false" visibility="public"
  8769. deprecated="not deprecated">
  8770. <exception name="IOException" type="java.io.IOException"/>
  8771. </constructor>
  8772. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8773. static="false" final="false" visibility="public"
  8774. deprecated="not deprecated">
  8775. <exception name="IOException" type="java.io.IOException"/>
  8776. </constructor>
  8777. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8778. static="false" final="false" visibility="public"
  8779. deprecated="not deprecated">
  8780. <exception name="IOException" type="java.io.IOException"/>
  8781. <doc>
  8782. <![CDATA[Create a status server on the given port.
  8783. The jsp scripts are taken from src/webapps/<name>.
  8784. @param name The name of the server
  8785. @param port The port to use on the server
  8786. @param findPort whether the server should start at the given port and
  8787. increment by 1 until it finds a free port.
  8788. @param conf Configuration
  8789. @param adminsAcl {@link AccessControlList} of the admins]]>
  8790. </doc>
  8791. </constructor>
  8792. <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"
  8793. static="false" final="false" visibility="public"
  8794. deprecated="not deprecated">
  8795. <exception name="IOException" type="java.io.IOException"/>
  8796. </constructor>
  8797. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8798. abstract="false" native="false" synchronized="false"
  8799. static="false" final="false" visibility="public"
  8800. deprecated="not deprecated">
  8801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8802. <exception name="IOException" type="java.io.IOException"/>
  8803. <doc>
  8804. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8805. provided. This wrapper and all subclasses must create at least one
  8806. listener.]]>
  8807. </doc>
  8808. </method>
  8809. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  8810. abstract="false" native="false" synchronized="false"
  8811. static="true" final="false" visibility="public"
  8812. deprecated="not deprecated">
  8813. </method>
  8814. <method name="addDefaultApps"
  8815. abstract="false" native="false" synchronized="false"
  8816. static="false" final="false" visibility="protected"
  8817. deprecated="not deprecated">
  8818. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8819. <param name="appDir" type="java.lang.String"/>
  8820. <exception name="IOException" type="java.io.IOException"/>
  8821. <doc>
  8822. <![CDATA[Add default apps.
  8823. @param appDir The application directory
  8824. @throws IOException]]>
  8825. </doc>
  8826. </method>
  8827. <method name="addDefaultServlets"
  8828. abstract="false" native="false" synchronized="false"
  8829. static="false" final="false" visibility="protected"
  8830. deprecated="not deprecated">
  8831. <doc>
  8832. <![CDATA[Add default servlets.]]>
  8833. </doc>
  8834. </method>
  8835. <method name="addContext"
  8836. abstract="false" native="false" synchronized="false"
  8837. static="false" final="false" visibility="public"
  8838. deprecated="not deprecated">
  8839. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8840. <param name="isFiltered" type="boolean"/>
  8841. <exception name="IOException" type="java.io.IOException"/>
  8842. </method>
  8843. <method name="addContext"
  8844. abstract="false" native="false" synchronized="false"
  8845. static="false" final="false" visibility="protected"
  8846. deprecated="not deprecated">
  8847. <param name="pathSpec" type="java.lang.String"/>
  8848. <param name="dir" type="java.lang.String"/>
  8849. <param name="isFiltered" type="boolean"/>
  8850. <exception name="IOException" type="java.io.IOException"/>
  8851. <doc>
  8852. <![CDATA[Add a context
  8853. @param pathSpec The path spec for the context
  8854. @param dir The directory containing the context
  8855. @param isFiltered if true, the servlet is added to the filter path mapping
  8856. @throws IOException]]>
  8857. </doc>
  8858. </method>
  8859. <method name="setAttribute"
  8860. abstract="false" native="false" synchronized="false"
  8861. static="false" final="false" visibility="public"
  8862. deprecated="not deprecated">
  8863. <param name="name" type="java.lang.String"/>
  8864. <param name="value" type="java.lang.Object"/>
  8865. <doc>
  8866. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8867. pages as "application.getAttribute(name)".
  8868. @param name The name of the attribute
  8869. @param value The value of the attribute]]>
  8870. </doc>
  8871. </method>
  8872. <method name="setAttribute"
  8873. abstract="false" native="false" synchronized="false"
  8874. static="false" final="false" visibility="public"
  8875. deprecated="not deprecated">
  8876. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  8877. <param name="name" type="java.lang.String"/>
  8878. <param name="value" type="java.lang.Object"/>
  8879. <doc>
  8880. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8881. pages as "application.getAttribute(name)".
  8882. @param context Context to add attribute
  8883. @param name The name of the attribute
  8884. @param value The value of the attribute]]>
  8885. </doc>
  8886. </method>
  8887. <method name="addJerseyResourcePackage"
  8888. abstract="false" native="false" synchronized="false"
  8889. static="false" final="false" visibility="public"
  8890. deprecated="not deprecated">
  8891. <param name="packageName" type="java.lang.String"/>
  8892. <param name="pathSpec" type="java.lang.String"/>
  8893. <doc>
  8894. <![CDATA[Add a Jersey resource package.
  8895. @param packageName The Java package name containing the Jersey resource.
  8896. @param pathSpec The path spec for the servlet]]>
  8897. </doc>
  8898. </method>
  8899. <method name="addServlet"
  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. <doc>
  8907. <![CDATA[Add a servlet in the server.
  8908. @param name The name of the servlet (can be passed as null)
  8909. @param pathSpec The path spec for the servlet
  8910. @param clazz The servlet class]]>
  8911. </doc>
  8912. </method>
  8913. <method name="addInternalServlet"
  8914. abstract="false" native="false" synchronized="false"
  8915. static="false" final="false" visibility="public"
  8916. deprecated="this is a temporary method">
  8917. <param name="name" type="java.lang.String"/>
  8918. <param name="pathSpec" type="java.lang.String"/>
  8919. <param name="clazz" type="java.lang.Class"/>
  8920. <doc>
  8921. <![CDATA[Add an internal servlet in the server.
  8922. @param name The name of the servlet (can be passed as null)
  8923. @param pathSpec The path spec for the servlet
  8924. @param clazz The servlet class
  8925. @deprecated this is a temporary method]]>
  8926. </doc>
  8927. </method>
  8928. <method name="addInternalServlet"
  8929. abstract="false" native="false" synchronized="false"
  8930. static="false" final="false" visibility="public"
  8931. deprecated="not deprecated">
  8932. <param name="name" type="java.lang.String"/>
  8933. <param name="pathSpec" type="java.lang.String"/>
  8934. <param name="clazz" type="java.lang.Class"/>
  8935. <param name="requireAuth" type="boolean"/>
  8936. <doc>
  8937. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  8938. protect with Kerberos authentication.
  8939. Note: This method is to be used for adding servlets that facilitate
  8940. internal communication and not for user facing functionality. For
  8941. servlets added using this method, filters (except internal Kerberized
  8942. filters) are not enabled.
  8943. @param name The name of the servlet (can be passed as null)
  8944. @param pathSpec The path spec for the servlet
  8945. @param clazz The servlet class]]>
  8946. </doc>
  8947. </method>
  8948. <method name="addFilter"
  8949. abstract="false" native="false" synchronized="false"
  8950. static="false" final="false" visibility="public"
  8951. deprecated="not deprecated">
  8952. <param name="name" type="java.lang.String"/>
  8953. <param name="classname" type="java.lang.String"/>
  8954. <param name="parameters" type="java.util.Map"/>
  8955. <doc>
  8956. <![CDATA[{@inheritDoc}]]>
  8957. </doc>
  8958. </method>
  8959. <method name="addGlobalFilter"
  8960. abstract="false" native="false" synchronized="false"
  8961. static="false" final="false" visibility="public"
  8962. deprecated="not deprecated">
  8963. <param name="name" type="java.lang.String"/>
  8964. <param name="classname" type="java.lang.String"/>
  8965. <param name="parameters" type="java.util.Map"/>
  8966. <doc>
  8967. <![CDATA[{@inheritDoc}]]>
  8968. </doc>
  8969. </method>
  8970. <method name="defineFilter"
  8971. abstract="false" native="false" synchronized="false"
  8972. static="false" final="false" visibility="protected"
  8973. deprecated="not deprecated">
  8974. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  8975. <param name="name" type="java.lang.String"/>
  8976. <param name="classname" type="java.lang.String"/>
  8977. <param name="parameters" type="java.util.Map"/>
  8978. <param name="urls" type="java.lang.String[]"/>
  8979. <doc>
  8980. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  8981. </doc>
  8982. </method>
  8983. <method name="addFilterPathMapping"
  8984. abstract="false" native="false" synchronized="false"
  8985. static="false" final="false" visibility="protected"
  8986. deprecated="not deprecated">
  8987. <param name="pathSpec" type="java.lang.String"/>
  8988. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  8989. <doc>
  8990. <![CDATA[Add the path spec to the filter path mapping.
  8991. @param pathSpec The path spec
  8992. @param webAppCtx The WebApplicationContext to add to]]>
  8993. </doc>
  8994. </method>
  8995. <method name="getAttribute" return="java.lang.Object"
  8996. abstract="false" native="false" synchronized="false"
  8997. static="false" final="false" visibility="public"
  8998. deprecated="not deprecated">
  8999. <param name="name" type="java.lang.String"/>
  9000. <doc>
  9001. <![CDATA[Get the value in the webapp context.
  9002. @param name The name of the attribute
  9003. @return The value of the attribute]]>
  9004. </doc>
  9005. </method>
  9006. <method name="getWebAppsPath" return="java.lang.String"
  9007. abstract="false" native="false" synchronized="false"
  9008. static="false" final="false" visibility="protected"
  9009. deprecated="not deprecated">
  9010. <exception name="IOException" type="java.io.IOException"/>
  9011. <doc>
  9012. <![CDATA[Get the pathname to the webapps files.
  9013. @return the pathname as a URL
  9014. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  9015. </doc>
  9016. </method>
  9017. <method name="getPort" return="int"
  9018. abstract="false" native="false" synchronized="false"
  9019. static="false" final="false" visibility="public"
  9020. deprecated="not deprecated">
  9021. <doc>
  9022. <![CDATA[Get the port that the server is on
  9023. @return the port]]>
  9024. </doc>
  9025. </method>
  9026. <method name="setThreads"
  9027. abstract="false" native="false" synchronized="false"
  9028. static="false" final="false" visibility="public"
  9029. deprecated="not deprecated">
  9030. <param name="min" type="int"/>
  9031. <param name="max" type="int"/>
  9032. <doc>
  9033. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  9034. </doc>
  9035. </method>
  9036. <method name="addSslListener"
  9037. abstract="false" native="false" synchronized="false"
  9038. static="false" final="false" visibility="public"
  9039. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  9040. <param name="addr" type="java.net.InetSocketAddress"/>
  9041. <param name="keystore" type="java.lang.String"/>
  9042. <param name="storPass" type="java.lang.String"/>
  9043. <param name="keyPass" type="java.lang.String"/>
  9044. <exception name="IOException" type="java.io.IOException"/>
  9045. <doc>
  9046. <![CDATA[Configure an ssl listener on the server.
  9047. @param addr address to listen on
  9048. @param keystore location of the keystore
  9049. @param storPass password for the keystore
  9050. @param keyPass password for the key
  9051. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  9052. </doc>
  9053. </method>
  9054. <method name="addSslListener"
  9055. abstract="false" native="false" synchronized="false"
  9056. static="false" final="false" visibility="public"
  9057. deprecated="not deprecated">
  9058. <param name="addr" type="java.net.InetSocketAddress"/>
  9059. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9060. <param name="needClientAuth" type="boolean"/>
  9061. <exception name="IOException" type="java.io.IOException"/>
  9062. <doc>
  9063. <![CDATA[Configure an ssl listener on the server.
  9064. @param addr address to listen on
  9065. @param sslConf conf to retrieve ssl options
  9066. @param needClientAuth whether client authentication is required]]>
  9067. </doc>
  9068. </method>
  9069. <method name="addSslListener"
  9070. abstract="false" native="false" synchronized="false"
  9071. static="false" final="false" visibility="public"
  9072. deprecated="not deprecated">
  9073. <param name="addr" type="java.net.InetSocketAddress"/>
  9074. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9075. <param name="needCertsAuth" type="boolean"/>
  9076. <param name="needKrbAuth" type="boolean"/>
  9077. <exception name="IOException" type="java.io.IOException"/>
  9078. <doc>
  9079. <![CDATA[Configure an ssl listener on the server.
  9080. @param addr address to listen on
  9081. @param sslConf conf to retrieve ssl options
  9082. @param needCertsAuth whether x509 certificate authentication is required
  9083. @param needKrbAuth whether to allow kerberos auth]]>
  9084. </doc>
  9085. </method>
  9086. <method name="start"
  9087. abstract="false" native="false" synchronized="false"
  9088. static="false" final="false" visibility="public"
  9089. deprecated="not deprecated">
  9090. <exception name="IOException" type="java.io.IOException"/>
  9091. <doc>
  9092. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9093. </doc>
  9094. </method>
  9095. <method name="stop"
  9096. abstract="false" native="false" synchronized="false"
  9097. static="false" final="false" visibility="public"
  9098. deprecated="not deprecated">
  9099. <exception name="Exception" type="java.lang.Exception"/>
  9100. <doc>
  9101. <![CDATA[stop the server]]>
  9102. </doc>
  9103. </method>
  9104. <method name="join"
  9105. abstract="false" native="false" synchronized="false"
  9106. static="false" final="false" visibility="public"
  9107. deprecated="not deprecated">
  9108. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9109. </method>
  9110. <method name="hasAdministratorAccess" return="boolean"
  9111. abstract="false" native="false" synchronized="false"
  9112. static="true" final="false" visibility="public"
  9113. deprecated="not deprecated">
  9114. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9115. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9116. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9117. <exception name="IOException" type="java.io.IOException"/>
  9118. <doc>
  9119. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9120. it isn't the case, response will be modified to send an error to the user.
  9121. @param servletContext
  9122. @param request
  9123. @param response
  9124. @return true if admin-authorized, false otherwise
  9125. @throws IOException]]>
  9126. </doc>
  9127. </method>
  9128. <field name="LOG" type="org.apache.commons.logging.Log"
  9129. transient="false" volatile="false"
  9130. static="true" final="true" visibility="public"
  9131. deprecated="not deprecated">
  9132. </field>
  9133. <field name="webServer" type="org.mortbay.jetty.Server"
  9134. transient="false" volatile="false"
  9135. static="false" final="true" visibility="protected"
  9136. deprecated="not deprecated">
  9137. </field>
  9138. <field name="listener" type="org.mortbay.jetty.Connector"
  9139. transient="false" volatile="false"
  9140. static="false" final="true" visibility="protected"
  9141. deprecated="not deprecated">
  9142. </field>
  9143. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9144. transient="false" volatile="false"
  9145. static="false" final="true" visibility="protected"
  9146. deprecated="not deprecated">
  9147. </field>
  9148. <field name="findPort" type="boolean"
  9149. transient="false" volatile="false"
  9150. static="false" final="true" visibility="protected"
  9151. deprecated="not deprecated">
  9152. </field>
  9153. <field name="defaultContexts" type="java.util.Map"
  9154. transient="false" volatile="false"
  9155. static="false" final="true" visibility="protected"
  9156. deprecated="not deprecated">
  9157. </field>
  9158. <field name="filterNames" type="java.util.List"
  9159. transient="false" volatile="false"
  9160. static="false" final="true" visibility="protected"
  9161. deprecated="not deprecated">
  9162. </field>
  9163. <doc>
  9164. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9165. is to serve up status information for the server.
  9166. There are three contexts:
  9167. "/logs/" -> points to the log directory
  9168. "/static/" -> points to common static files (src/webapps/static)
  9169. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9170. </doc>
  9171. </class>
  9172. <!-- end class org.apache.hadoop.http.HttpServer -->
  9173. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9174. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9175. abstract="false"
  9176. static="true" final="false" visibility="public"
  9177. deprecated="not deprecated">
  9178. <implements name="javax.servlet.Filter"/>
  9179. <constructor name="HttpServer.QuotingInputFilter"
  9180. static="false" final="false" visibility="public"
  9181. deprecated="not deprecated">
  9182. </constructor>
  9183. <method name="init"
  9184. abstract="false" native="false" synchronized="false"
  9185. static="false" final="false" visibility="public"
  9186. deprecated="not deprecated">
  9187. <param name="config" type="javax.servlet.FilterConfig"/>
  9188. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9189. </method>
  9190. <method name="destroy"
  9191. abstract="false" native="false" synchronized="false"
  9192. static="false" final="false" visibility="public"
  9193. deprecated="not deprecated">
  9194. </method>
  9195. <method name="doFilter"
  9196. abstract="false" native="false" synchronized="false"
  9197. static="false" final="false" visibility="public"
  9198. deprecated="not deprecated">
  9199. <param name="request" type="javax.servlet.ServletRequest"/>
  9200. <param name="response" type="javax.servlet.ServletResponse"/>
  9201. <param name="chain" type="javax.servlet.FilterChain"/>
  9202. <exception name="IOException" type="java.io.IOException"/>
  9203. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9204. </method>
  9205. <doc>
  9206. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9207. parameter names and values. The goal is to quote the characters to make
  9208. all of the servlets resistant to cross-site scripting attacks.]]>
  9209. </doc>
  9210. </class>
  9211. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9212. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9213. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9214. abstract="false"
  9215. static="true" final="false" visibility="public"
  9216. deprecated="not deprecated">
  9217. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9218. static="false" final="false" visibility="public"
  9219. deprecated="not deprecated">
  9220. </constructor>
  9221. <method name="getParameterNames" return="java.util.Enumeration"
  9222. abstract="false" native="false" synchronized="false"
  9223. static="false" final="false" visibility="public"
  9224. deprecated="not deprecated">
  9225. <doc>
  9226. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9227. </doc>
  9228. </method>
  9229. <method name="getParameter" return="java.lang.String"
  9230. abstract="false" native="false" synchronized="false"
  9231. static="false" final="false" visibility="public"
  9232. deprecated="not deprecated">
  9233. <param name="name" type="java.lang.String"/>
  9234. <doc>
  9235. <![CDATA[Unquote the name and quote the value.]]>
  9236. </doc>
  9237. </method>
  9238. <method name="getParameterValues" return="java.lang.String[]"
  9239. abstract="false" native="false" synchronized="false"
  9240. static="false" final="false" visibility="public"
  9241. deprecated="not deprecated">
  9242. <param name="name" type="java.lang.String"/>
  9243. </method>
  9244. <method name="getParameterMap" return="java.util.Map"
  9245. abstract="false" native="false" synchronized="false"
  9246. static="false" final="false" visibility="public"
  9247. deprecated="not deprecated">
  9248. </method>
  9249. <method name="getRequestURL" return="java.lang.StringBuffer"
  9250. abstract="false" native="false" synchronized="false"
  9251. static="false" final="false" visibility="public"
  9252. deprecated="not deprecated">
  9253. <doc>
  9254. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9255. can't inject attacks.]]>
  9256. </doc>
  9257. </method>
  9258. <method name="getServerName" return="java.lang.String"
  9259. abstract="false" native="false" synchronized="false"
  9260. static="false" final="false" visibility="public"
  9261. deprecated="not deprecated">
  9262. <doc>
  9263. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9264. can't inject attacks.]]>
  9265. </doc>
  9266. </method>
  9267. </class>
  9268. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9269. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9270. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9271. abstract="false"
  9272. static="true" final="false" visibility="public"
  9273. deprecated="not deprecated">
  9274. <constructor name="HttpServer.StackServlet"
  9275. static="false" final="false" visibility="public"
  9276. deprecated="not deprecated">
  9277. </constructor>
  9278. <method name="doGet"
  9279. abstract="false" native="false" synchronized="false"
  9280. static="false" final="false" visibility="public"
  9281. deprecated="not deprecated">
  9282. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9283. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9284. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9285. <exception name="IOException" type="java.io.IOException"/>
  9286. </method>
  9287. <doc>
  9288. <![CDATA[A very simple servlet to serve up a text representation of the current
  9289. stack traces. It both returns the stacks to the caller and logs them.
  9290. Currently the stack traces are done sequentially rather than exactly the
  9291. same data.]]>
  9292. </doc>
  9293. </class>
  9294. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9295. </package>
  9296. <package name="org.apache.hadoop.http.lib">
  9297. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9298. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9299. abstract="false"
  9300. static="false" final="false" visibility="public"
  9301. deprecated="not deprecated">
  9302. <constructor name="StaticUserWebFilter"
  9303. static="false" final="false" visibility="public"
  9304. deprecated="not deprecated">
  9305. </constructor>
  9306. <method name="initFilter"
  9307. abstract="false" native="false" synchronized="false"
  9308. static="false" final="false" visibility="public"
  9309. deprecated="not deprecated">
  9310. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9311. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9312. </method>
  9313. <doc>
  9314. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9315. so that the web UI is usable for a secure cluster without authentication.]]>
  9316. </doc>
  9317. </class>
  9318. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9319. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9320. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9321. abstract="false"
  9322. static="true" final="false" visibility="public"
  9323. deprecated="not deprecated">
  9324. <implements name="javax.servlet.Filter"/>
  9325. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9326. static="false" final="false" visibility="public"
  9327. deprecated="not deprecated">
  9328. </constructor>
  9329. <method name="destroy"
  9330. abstract="false" native="false" synchronized="false"
  9331. static="false" final="false" visibility="public"
  9332. deprecated="not deprecated">
  9333. </method>
  9334. <method name="doFilter"
  9335. abstract="false" native="false" synchronized="false"
  9336. static="false" final="false" visibility="public"
  9337. deprecated="not deprecated">
  9338. <param name="request" type="javax.servlet.ServletRequest"/>
  9339. <param name="response" type="javax.servlet.ServletResponse"/>
  9340. <param name="chain" type="javax.servlet.FilterChain"/>
  9341. <exception name="IOException" type="java.io.IOException"/>
  9342. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9343. </method>
  9344. <method name="init"
  9345. abstract="false" native="false" synchronized="false"
  9346. static="false" final="false" visibility="public"
  9347. deprecated="not deprecated">
  9348. <param name="conf" type="javax.servlet.FilterConfig"/>
  9349. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9350. </method>
  9351. </class>
  9352. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9353. </package>
  9354. <package name="org.apache.hadoop.io">
  9355. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9356. <class name="AbstractMapWritable" extends="java.lang.Object"
  9357. abstract="true"
  9358. static="false" final="false" visibility="public"
  9359. deprecated="not deprecated">
  9360. <implements name="org.apache.hadoop.io.Writable"/>
  9361. <implements name="org.apache.hadoop.conf.Configurable"/>
  9362. <constructor name="AbstractMapWritable"
  9363. static="false" final="false" visibility="protected"
  9364. deprecated="not deprecated">
  9365. <doc>
  9366. <![CDATA[constructor.]]>
  9367. </doc>
  9368. </constructor>
  9369. <method name="addToMap"
  9370. abstract="false" native="false" synchronized="true"
  9371. static="false" final="false" visibility="protected"
  9372. deprecated="not deprecated">
  9373. <param name="clazz" type="java.lang.Class"/>
  9374. <doc>
  9375. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9376. </doc>
  9377. </method>
  9378. <method name="getClass" return="java.lang.Class"
  9379. abstract="false" native="false" synchronized="false"
  9380. static="false" final="false" visibility="protected"
  9381. deprecated="not deprecated">
  9382. <param name="id" type="byte"/>
  9383. <doc>
  9384. <![CDATA[@return the Class class for the specified id]]>
  9385. </doc>
  9386. </method>
  9387. <method name="getId" return="byte"
  9388. abstract="false" native="false" synchronized="false"
  9389. static="false" final="false" visibility="protected"
  9390. deprecated="not deprecated">
  9391. <param name="clazz" type="java.lang.Class"/>
  9392. <doc>
  9393. <![CDATA[@return the id for the specified Class]]>
  9394. </doc>
  9395. </method>
  9396. <method name="copy"
  9397. abstract="false" native="false" synchronized="true"
  9398. static="false" final="false" visibility="protected"
  9399. deprecated="not deprecated">
  9400. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9401. <doc>
  9402. <![CDATA[Used by child copy constructors.]]>
  9403. </doc>
  9404. </method>
  9405. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9406. abstract="false" native="false" synchronized="false"
  9407. static="false" final="false" visibility="public"
  9408. deprecated="not deprecated">
  9409. <doc>
  9410. <![CDATA[@return the conf]]>
  9411. </doc>
  9412. </method>
  9413. <method name="setConf"
  9414. abstract="false" native="false" synchronized="false"
  9415. static="false" final="false" visibility="public"
  9416. deprecated="not deprecated">
  9417. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9418. <doc>
  9419. <![CDATA[@param conf the conf to set]]>
  9420. </doc>
  9421. </method>
  9422. <method name="write"
  9423. abstract="false" native="false" synchronized="false"
  9424. static="false" final="false" visibility="public"
  9425. deprecated="not deprecated">
  9426. <param name="out" type="java.io.DataOutput"/>
  9427. <exception name="IOException" type="java.io.IOException"/>
  9428. <doc>
  9429. <![CDATA[{@inheritDoc}]]>
  9430. </doc>
  9431. </method>
  9432. <method name="readFields"
  9433. abstract="false" native="false" synchronized="false"
  9434. static="false" final="false" visibility="public"
  9435. deprecated="not deprecated">
  9436. <param name="in" type="java.io.DataInput"/>
  9437. <exception name="IOException" type="java.io.IOException"/>
  9438. <doc>
  9439. <![CDATA[{@inheritDoc}]]>
  9440. </doc>
  9441. </method>
  9442. <doc>
  9443. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9444. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9445. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9446. maps travel with the class instead of being static.
  9447. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9448. in any specific map instance.]]>
  9449. </doc>
  9450. </class>
  9451. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9452. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9453. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9454. abstract="false"
  9455. static="false" final="false" visibility="public"
  9456. deprecated="not deprecated">
  9457. <constructor name="ArrayFile"
  9458. static="false" final="false" visibility="protected"
  9459. deprecated="not deprecated">
  9460. </constructor>
  9461. <doc>
  9462. <![CDATA[A dense file-based mapping from integers to values.]]>
  9463. </doc>
  9464. </class>
  9465. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9466. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9467. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9468. abstract="false"
  9469. static="true" final="false" visibility="public"
  9470. deprecated="not deprecated">
  9471. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9472. static="false" final="false" visibility="public"
  9473. deprecated="not deprecated">
  9474. <exception name="IOException" type="java.io.IOException"/>
  9475. <doc>
  9476. <![CDATA[Construct an array reader for the named file.]]>
  9477. </doc>
  9478. </constructor>
  9479. <method name="seek"
  9480. abstract="false" native="false" synchronized="true"
  9481. static="false" final="false" visibility="public"
  9482. deprecated="not deprecated">
  9483. <param name="n" type="long"/>
  9484. <exception name="IOException" type="java.io.IOException"/>
  9485. <doc>
  9486. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9487. </doc>
  9488. </method>
  9489. <method name="next" return="org.apache.hadoop.io.Writable"
  9490. abstract="false" native="false" synchronized="true"
  9491. static="false" final="false" visibility="public"
  9492. deprecated="not deprecated">
  9493. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9494. <exception name="IOException" type="java.io.IOException"/>
  9495. <doc>
  9496. <![CDATA[Read and return the next value in the file.]]>
  9497. </doc>
  9498. </method>
  9499. <method name="key" return="long"
  9500. abstract="false" native="false" synchronized="true"
  9501. static="false" final="false" visibility="public"
  9502. deprecated="not deprecated">
  9503. <exception name="IOException" type="java.io.IOException"/>
  9504. <doc>
  9505. <![CDATA[Returns the key associated with the most recent call to {@link
  9506. #seek(long)}, {@link #next(Writable)}, or {@link
  9507. #get(long,Writable)}.]]>
  9508. </doc>
  9509. </method>
  9510. <method name="get" return="org.apache.hadoop.io.Writable"
  9511. abstract="false" native="false" synchronized="true"
  9512. static="false" final="false" visibility="public"
  9513. deprecated="not deprecated">
  9514. <param name="n" type="long"/>
  9515. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9516. <exception name="IOException" type="java.io.IOException"/>
  9517. <doc>
  9518. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9519. </doc>
  9520. </method>
  9521. <doc>
  9522. <![CDATA[Provide access to an existing array file.]]>
  9523. </doc>
  9524. </class>
  9525. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9526. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9527. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9528. abstract="false"
  9529. static="true" final="false" visibility="public"
  9530. deprecated="not deprecated">
  9531. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9532. static="false" final="false" visibility="public"
  9533. deprecated="not deprecated">
  9534. <exception name="IOException" type="java.io.IOException"/>
  9535. <doc>
  9536. <![CDATA[Create the named file for values of the named class.]]>
  9537. </doc>
  9538. </constructor>
  9539. <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"
  9540. static="false" final="false" visibility="public"
  9541. deprecated="not deprecated">
  9542. <exception name="IOException" type="java.io.IOException"/>
  9543. <doc>
  9544. <![CDATA[Create the named file for values of the named class.]]>
  9545. </doc>
  9546. </constructor>
  9547. <method name="append"
  9548. abstract="false" native="false" synchronized="true"
  9549. static="false" final="false" visibility="public"
  9550. deprecated="not deprecated">
  9551. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9552. <exception name="IOException" type="java.io.IOException"/>
  9553. <doc>
  9554. <![CDATA[Append a value to the file.]]>
  9555. </doc>
  9556. </method>
  9557. <doc>
  9558. <![CDATA[Write a new array file.]]>
  9559. </doc>
  9560. </class>
  9561. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9562. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9563. <class name="ArrayWritable" extends="java.lang.Object"
  9564. abstract="false"
  9565. static="false" final="false" visibility="public"
  9566. deprecated="not deprecated">
  9567. <implements name="org.apache.hadoop.io.Writable"/>
  9568. <constructor name="ArrayWritable" type="java.lang.Class"
  9569. static="false" final="false" visibility="public"
  9570. deprecated="not deprecated">
  9571. </constructor>
  9572. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9573. static="false" final="false" visibility="public"
  9574. deprecated="not deprecated">
  9575. </constructor>
  9576. <constructor name="ArrayWritable" type="java.lang.String[]"
  9577. static="false" final="false" visibility="public"
  9578. deprecated="not deprecated">
  9579. </constructor>
  9580. <method name="getValueClass" return="java.lang.Class"
  9581. abstract="false" native="false" synchronized="false"
  9582. static="false" final="false" visibility="public"
  9583. deprecated="not deprecated">
  9584. </method>
  9585. <method name="toStrings" return="java.lang.String[]"
  9586. abstract="false" native="false" synchronized="false"
  9587. static="false" final="false" visibility="public"
  9588. deprecated="not deprecated">
  9589. </method>
  9590. <method name="toArray" return="java.lang.Object"
  9591. abstract="false" native="false" synchronized="false"
  9592. static="false" final="false" visibility="public"
  9593. deprecated="not deprecated">
  9594. </method>
  9595. <method name="set"
  9596. abstract="false" native="false" synchronized="false"
  9597. static="false" final="false" visibility="public"
  9598. deprecated="not deprecated">
  9599. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9600. </method>
  9601. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9602. abstract="false" native="false" synchronized="false"
  9603. static="false" final="false" visibility="public"
  9604. deprecated="not deprecated">
  9605. </method>
  9606. <method name="readFields"
  9607. abstract="false" native="false" synchronized="false"
  9608. static="false" final="false" visibility="public"
  9609. deprecated="not deprecated">
  9610. <param name="in" type="java.io.DataInput"/>
  9611. <exception name="IOException" type="java.io.IOException"/>
  9612. </method>
  9613. <method name="write"
  9614. abstract="false" native="false" synchronized="false"
  9615. static="false" final="false" visibility="public"
  9616. deprecated="not deprecated">
  9617. <param name="out" type="java.io.DataOutput"/>
  9618. <exception name="IOException" type="java.io.IOException"/>
  9619. </method>
  9620. <doc>
  9621. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9622. writable must all be instances of the same class. If this writable will be
  9623. the input for a Reducer, you will need to create a subclass that sets the
  9624. value to be of the proper type.
  9625. For example:
  9626. <code>
  9627. public class IntArrayWritable extends ArrayWritable {
  9628. public IntArrayWritable() {
  9629. super(IntWritable.class);
  9630. }
  9631. }
  9632. </code>]]>
  9633. </doc>
  9634. </class>
  9635. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9636. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9637. <class name="BinaryComparable" extends="java.lang.Object"
  9638. abstract="true"
  9639. static="false" final="false" visibility="public"
  9640. deprecated="not deprecated">
  9641. <implements name="java.lang.Comparable"/>
  9642. <constructor name="BinaryComparable"
  9643. static="false" final="false" visibility="public"
  9644. deprecated="not deprecated">
  9645. </constructor>
  9646. <method name="getLength" return="int"
  9647. abstract="true" native="false" synchronized="false"
  9648. static="false" final="false" visibility="public"
  9649. deprecated="not deprecated">
  9650. <doc>
  9651. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9652. </doc>
  9653. </method>
  9654. <method name="getBytes" return="byte[]"
  9655. abstract="true" native="false" synchronized="false"
  9656. static="false" final="false" visibility="public"
  9657. deprecated="not deprecated">
  9658. <doc>
  9659. <![CDATA[Return representative byte array for this instance.]]>
  9660. </doc>
  9661. </method>
  9662. <method name="compareTo" return="int"
  9663. abstract="false" native="false" synchronized="false"
  9664. static="false" final="false" visibility="public"
  9665. deprecated="not deprecated">
  9666. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9667. <doc>
  9668. <![CDATA[Compare bytes from {#getBytes()}.
  9669. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9670. </doc>
  9671. </method>
  9672. <method name="compareTo" return="int"
  9673. abstract="false" native="false" synchronized="false"
  9674. static="false" final="false" visibility="public"
  9675. deprecated="not deprecated">
  9676. <param name="other" type="byte[]"/>
  9677. <param name="off" type="int"/>
  9678. <param name="len" type="int"/>
  9679. <doc>
  9680. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9681. </doc>
  9682. </method>
  9683. <method name="equals" return="boolean"
  9684. abstract="false" native="false" synchronized="false"
  9685. static="false" final="false" visibility="public"
  9686. deprecated="not deprecated">
  9687. <param name="other" type="java.lang.Object"/>
  9688. <doc>
  9689. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9690. </doc>
  9691. </method>
  9692. <method name="hashCode" return="int"
  9693. abstract="false" native="false" synchronized="false"
  9694. static="false" final="false" visibility="public"
  9695. deprecated="not deprecated">
  9696. <doc>
  9697. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9698. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9699. </doc>
  9700. </method>
  9701. <doc>
  9702. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9703. types supporting ordering/permutation by a representative set of bytes.]]>
  9704. </doc>
  9705. </class>
  9706. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9707. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9708. <class name="BloomMapFile" extends="java.lang.Object"
  9709. abstract="false"
  9710. static="false" final="false" visibility="public"
  9711. deprecated="not deprecated">
  9712. <constructor name="BloomMapFile"
  9713. static="false" final="false" visibility="public"
  9714. deprecated="not deprecated">
  9715. </constructor>
  9716. <method name="delete"
  9717. abstract="false" native="false" synchronized="false"
  9718. static="true" final="false" visibility="public"
  9719. deprecated="not deprecated">
  9720. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9721. <param name="name" type="java.lang.String"/>
  9722. <exception name="IOException" type="java.io.IOException"/>
  9723. </method>
  9724. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9725. transient="false" volatile="false"
  9726. static="true" final="true" visibility="public"
  9727. deprecated="not deprecated">
  9728. </field>
  9729. <field name="HASH_COUNT" type="int"
  9730. transient="false" volatile="false"
  9731. static="true" final="true" visibility="public"
  9732. deprecated="not deprecated">
  9733. </field>
  9734. <doc>
  9735. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9736. functionality. However, it uses dynamic Bloom filters to provide
  9737. quick membership test for keys, and it offers a fast version of
  9738. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9739. case of sparsely populated MapFile-s.]]>
  9740. </doc>
  9741. </class>
  9742. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9743. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9744. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9745. abstract="false"
  9746. static="true" final="false" visibility="public"
  9747. deprecated="not deprecated">
  9748. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9749. static="false" final="false" visibility="public"
  9750. deprecated="not deprecated">
  9751. <exception name="IOException" type="java.io.IOException"/>
  9752. </constructor>
  9753. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9754. static="false" final="false" visibility="public"
  9755. deprecated="not deprecated">
  9756. <exception name="IOException" type="java.io.IOException"/>
  9757. </constructor>
  9758. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9759. static="false" final="false" visibility="public"
  9760. deprecated="not deprecated">
  9761. <exception name="IOException" type="java.io.IOException"/>
  9762. </constructor>
  9763. <method name="probablyHasKey" return="boolean"
  9764. abstract="false" native="false" synchronized="false"
  9765. static="false" final="false" visibility="public"
  9766. deprecated="not deprecated">
  9767. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9768. <exception name="IOException" type="java.io.IOException"/>
  9769. <doc>
  9770. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9771. performed using a Bloom filter, so the result has always non-zero
  9772. probability of false positives.
  9773. @param key key to check
  9774. @return false iff key doesn't exist, true if key probably exists.
  9775. @throws IOException]]>
  9776. </doc>
  9777. </method>
  9778. <method name="get" return="org.apache.hadoop.io.Writable"
  9779. abstract="false" native="false" synchronized="true"
  9780. static="false" final="false" visibility="public"
  9781. deprecated="not deprecated">
  9782. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9783. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9784. <exception name="IOException" type="java.io.IOException"/>
  9785. <doc>
  9786. <![CDATA[Fast version of the
  9787. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9788. it checks the Bloom filter for the existence of the key, and only if
  9789. present it performs the real get operation. This yields significant
  9790. performance improvements for get operations on sparsely populated files.]]>
  9791. </doc>
  9792. </method>
  9793. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9794. abstract="false" native="false" synchronized="false"
  9795. static="false" final="false" visibility="public"
  9796. deprecated="not deprecated">
  9797. <doc>
  9798. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9799. @return a Bloom filter (see {@link Filter})]]>
  9800. </doc>
  9801. </method>
  9802. </class>
  9803. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9804. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9805. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9806. abstract="false"
  9807. static="true" final="false" visibility="public"
  9808. deprecated="not deprecated">
  9809. <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"
  9810. static="false" final="false" visibility="public"
  9811. deprecated="not deprecated">
  9812. <exception name="IOException" type="java.io.IOException"/>
  9813. </constructor>
  9814. <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"
  9815. static="false" final="false" visibility="public"
  9816. deprecated="not deprecated">
  9817. <exception name="IOException" type="java.io.IOException"/>
  9818. </constructor>
  9819. <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"
  9820. static="false" final="false" visibility="public"
  9821. deprecated="not deprecated">
  9822. <exception name="IOException" type="java.io.IOException"/>
  9823. </constructor>
  9824. <constructor name="BloomMapFile.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"
  9825. static="false" final="false" visibility="public"
  9826. deprecated="not deprecated">
  9827. <exception name="IOException" type="java.io.IOException"/>
  9828. </constructor>
  9829. <constructor name="BloomMapFile.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"
  9830. static="false" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. <exception name="IOException" type="java.io.IOException"/>
  9833. </constructor>
  9834. <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"
  9835. static="false" final="false" visibility="public"
  9836. deprecated="not deprecated">
  9837. <exception name="IOException" type="java.io.IOException"/>
  9838. </constructor>
  9839. <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"
  9840. static="false" final="false" visibility="public"
  9841. deprecated="not deprecated">
  9842. <exception name="IOException" type="java.io.IOException"/>
  9843. </constructor>
  9844. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9845. static="false" final="false" visibility="public"
  9846. deprecated="not deprecated">
  9847. <exception name="IOException" type="java.io.IOException"/>
  9848. </constructor>
  9849. <method name="append"
  9850. abstract="false" native="false" synchronized="true"
  9851. static="false" final="false" visibility="public"
  9852. deprecated="not deprecated">
  9853. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9854. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9855. <exception name="IOException" type="java.io.IOException"/>
  9856. </method>
  9857. <method name="close"
  9858. abstract="false" native="false" synchronized="true"
  9859. static="false" final="false" visibility="public"
  9860. deprecated="not deprecated">
  9861. <exception name="IOException" type="java.io.IOException"/>
  9862. </method>
  9863. </class>
  9864. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9865. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9866. <class name="BooleanWritable" extends="java.lang.Object"
  9867. abstract="false"
  9868. static="false" final="false" visibility="public"
  9869. deprecated="not deprecated">
  9870. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9871. <constructor name="BooleanWritable"
  9872. static="false" final="false" visibility="public"
  9873. deprecated="not deprecated">
  9874. </constructor>
  9875. <constructor name="BooleanWritable" type="boolean"
  9876. static="false" final="false" visibility="public"
  9877. deprecated="not deprecated">
  9878. </constructor>
  9879. <method name="set"
  9880. abstract="false" native="false" synchronized="false"
  9881. static="false" final="false" visibility="public"
  9882. deprecated="not deprecated">
  9883. <param name="value" type="boolean"/>
  9884. <doc>
  9885. <![CDATA[Set the value of the BooleanWritable]]>
  9886. </doc>
  9887. </method>
  9888. <method name="get" return="boolean"
  9889. abstract="false" native="false" synchronized="false"
  9890. static="false" final="false" visibility="public"
  9891. deprecated="not deprecated">
  9892. <doc>
  9893. <![CDATA[Returns the value of the BooleanWritable]]>
  9894. </doc>
  9895. </method>
  9896. <method name="readFields"
  9897. abstract="false" native="false" synchronized="false"
  9898. static="false" final="false" visibility="public"
  9899. deprecated="not deprecated">
  9900. <param name="in" type="java.io.DataInput"/>
  9901. <exception name="IOException" type="java.io.IOException"/>
  9902. </method>
  9903. <method name="write"
  9904. abstract="false" native="false" synchronized="false"
  9905. static="false" final="false" visibility="public"
  9906. deprecated="not deprecated">
  9907. <param name="out" type="java.io.DataOutput"/>
  9908. <exception name="IOException" type="java.io.IOException"/>
  9909. </method>
  9910. <method name="equals" return="boolean"
  9911. abstract="false" native="false" synchronized="false"
  9912. static="false" final="false" visibility="public"
  9913. deprecated="not deprecated">
  9914. <param name="o" type="java.lang.Object"/>
  9915. </method>
  9916. <method name="hashCode" return="int"
  9917. abstract="false" native="false" synchronized="false"
  9918. static="false" final="false" visibility="public"
  9919. deprecated="not deprecated">
  9920. </method>
  9921. <method name="compareTo" return="int"
  9922. abstract="false" native="false" synchronized="false"
  9923. static="false" final="false" visibility="public"
  9924. deprecated="not deprecated">
  9925. <param name="o" type="java.lang.Object"/>
  9926. </method>
  9927. <method name="toString" return="java.lang.String"
  9928. abstract="false" native="false" synchronized="false"
  9929. static="false" final="false" visibility="public"
  9930. deprecated="not deprecated">
  9931. </method>
  9932. <doc>
  9933. <![CDATA[A WritableComparable for booleans.]]>
  9934. </doc>
  9935. </class>
  9936. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  9937. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9938. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9939. abstract="false"
  9940. static="true" final="false" visibility="public"
  9941. deprecated="not deprecated">
  9942. <constructor name="BooleanWritable.Comparator"
  9943. static="false" final="false" visibility="public"
  9944. deprecated="not deprecated">
  9945. </constructor>
  9946. <method name="compare" return="int"
  9947. abstract="false" native="false" synchronized="false"
  9948. static="false" final="false" visibility="public"
  9949. deprecated="not deprecated">
  9950. <param name="b1" type="byte[]"/>
  9951. <param name="s1" type="int"/>
  9952. <param name="l1" type="int"/>
  9953. <param name="b2" type="byte[]"/>
  9954. <param name="s2" type="int"/>
  9955. <param name="l2" type="int"/>
  9956. </method>
  9957. <doc>
  9958. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  9959. </doc>
  9960. </class>
  9961. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9962. <!-- start class org.apache.hadoop.io.BytesWritable -->
  9963. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  9964. abstract="false"
  9965. static="false" final="false" visibility="public"
  9966. deprecated="not deprecated">
  9967. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9968. <constructor name="BytesWritable"
  9969. static="false" final="false" visibility="public"
  9970. deprecated="not deprecated">
  9971. <doc>
  9972. <![CDATA[Create a zero-size sequence.]]>
  9973. </doc>
  9974. </constructor>
  9975. <constructor name="BytesWritable" type="byte[]"
  9976. static="false" final="false" visibility="public"
  9977. deprecated="not deprecated">
  9978. <doc>
  9979. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  9980. @param bytes This array becomes the backing storage for the object.]]>
  9981. </doc>
  9982. </constructor>
  9983. <method name="getBytes" return="byte[]"
  9984. abstract="false" native="false" synchronized="false"
  9985. static="false" final="false" visibility="public"
  9986. deprecated="not deprecated">
  9987. <doc>
  9988. <![CDATA[Get the data from the BytesWritable.
  9989. @return The data is only valid between 0 and getLength() - 1.]]>
  9990. </doc>
  9991. </method>
  9992. <method name="get" return="byte[]"
  9993. abstract="false" native="false" synchronized="false"
  9994. static="false" final="false" visibility="public"
  9995. deprecated="Use {@link #getBytes()} instead.">
  9996. <doc>
  9997. <![CDATA[Get the data from the BytesWritable.
  9998. @deprecated Use {@link #getBytes()} instead.]]>
  9999. </doc>
  10000. </method>
  10001. <method name="getLength" 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 current size of the buffer.]]>
  10007. </doc>
  10008. </method>
  10009. <method name="getSize" return="int"
  10010. abstract="false" native="false" synchronized="false"
  10011. static="false" final="false" visibility="public"
  10012. deprecated="Use {@link #getLength()} instead.">
  10013. <doc>
  10014. <![CDATA[Get the current size of the buffer.
  10015. @deprecated Use {@link #getLength()} instead.]]>
  10016. </doc>
  10017. </method>
  10018. <method name="setSize"
  10019. abstract="false" native="false" synchronized="false"
  10020. static="false" final="false" visibility="public"
  10021. deprecated="not deprecated">
  10022. <param name="size" type="int"/>
  10023. <doc>
  10024. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  10025. and any new values are undefined. The capacity is changed if it is
  10026. necessary.
  10027. @param size The new number of bytes]]>
  10028. </doc>
  10029. </method>
  10030. <method name="getCapacity" return="int"
  10031. abstract="false" native="false" synchronized="false"
  10032. static="false" final="false" visibility="public"
  10033. deprecated="not deprecated">
  10034. <doc>
  10035. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10036. resizing the backing storage.
  10037. @return The number of bytes]]>
  10038. </doc>
  10039. </method>
  10040. <method name="setCapacity"
  10041. abstract="false" native="false" synchronized="false"
  10042. static="false" final="false" visibility="public"
  10043. deprecated="not deprecated">
  10044. <param name="new_cap" type="int"/>
  10045. <doc>
  10046. <![CDATA[Change the capacity of the backing storage.
  10047. The data is preserved.
  10048. @param new_cap The new capacity in bytes.]]>
  10049. </doc>
  10050. </method>
  10051. <method name="set"
  10052. abstract="false" native="false" synchronized="false"
  10053. static="false" final="false" visibility="public"
  10054. deprecated="not deprecated">
  10055. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10056. <doc>
  10057. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10058. @param newData the value to set this BytesWritable to.]]>
  10059. </doc>
  10060. </method>
  10061. <method name="set"
  10062. abstract="false" native="false" synchronized="false"
  10063. static="false" final="false" visibility="public"
  10064. deprecated="not deprecated">
  10065. <param name="newData" type="byte[]"/>
  10066. <param name="offset" type="int"/>
  10067. <param name="length" type="int"/>
  10068. <doc>
  10069. <![CDATA[Set the value to a copy of the given byte range
  10070. @param newData the new values to copy in
  10071. @param offset the offset in newData to start at
  10072. @param length the number of bytes to copy]]>
  10073. </doc>
  10074. </method>
  10075. <method name="readFields"
  10076. abstract="false" native="false" synchronized="false"
  10077. static="false" final="false" visibility="public"
  10078. deprecated="not deprecated">
  10079. <param name="in" type="java.io.DataInput"/>
  10080. <exception name="IOException" type="java.io.IOException"/>
  10081. </method>
  10082. <method name="write"
  10083. abstract="false" native="false" synchronized="false"
  10084. static="false" final="false" visibility="public"
  10085. deprecated="not deprecated">
  10086. <param name="out" type="java.io.DataOutput"/>
  10087. <exception name="IOException" type="java.io.IOException"/>
  10088. </method>
  10089. <method name="hashCode" return="int"
  10090. abstract="false" native="false" synchronized="false"
  10091. static="false" final="false" visibility="public"
  10092. deprecated="not deprecated">
  10093. </method>
  10094. <method name="equals" return="boolean"
  10095. abstract="false" native="false" synchronized="false"
  10096. static="false" final="false" visibility="public"
  10097. deprecated="not deprecated">
  10098. <param name="right_obj" type="java.lang.Object"/>
  10099. <doc>
  10100. <![CDATA[Are the two byte sequences equal?]]>
  10101. </doc>
  10102. </method>
  10103. <method name="toString" return="java.lang.String"
  10104. abstract="false" native="false" synchronized="false"
  10105. static="false" final="false" visibility="public"
  10106. deprecated="not deprecated">
  10107. <doc>
  10108. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10109. </doc>
  10110. </method>
  10111. <doc>
  10112. <![CDATA[A byte sequence that is usable as a key or value.
  10113. It is resizable and distinguishes between the size of the seqeunce and
  10114. the current capacity. The hash function is the front of the md5 of the
  10115. buffer. The sort order is the same as memcmp.]]>
  10116. </doc>
  10117. </class>
  10118. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10119. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10120. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10121. abstract="false"
  10122. static="true" final="false" visibility="public"
  10123. deprecated="not deprecated">
  10124. <constructor name="BytesWritable.Comparator"
  10125. static="false" final="false" visibility="public"
  10126. deprecated="not deprecated">
  10127. </constructor>
  10128. <method name="compare" return="int"
  10129. abstract="false" native="false" synchronized="false"
  10130. static="false" final="false" visibility="public"
  10131. deprecated="not deprecated">
  10132. <param name="b1" type="byte[]"/>
  10133. <param name="s1" type="int"/>
  10134. <param name="l1" type="int"/>
  10135. <param name="b2" type="byte[]"/>
  10136. <param name="s2" type="int"/>
  10137. <param name="l2" type="int"/>
  10138. <doc>
  10139. <![CDATA[Compare the buffers in serialized form.]]>
  10140. </doc>
  10141. </method>
  10142. <doc>
  10143. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10144. </doc>
  10145. </class>
  10146. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10147. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10148. <class name="ByteWritable" extends="java.lang.Object"
  10149. abstract="false"
  10150. static="false" final="false" visibility="public"
  10151. deprecated="not deprecated">
  10152. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10153. <constructor name="ByteWritable"
  10154. static="false" final="false" visibility="public"
  10155. deprecated="not deprecated">
  10156. </constructor>
  10157. <constructor name="ByteWritable" type="byte"
  10158. static="false" final="false" visibility="public"
  10159. deprecated="not deprecated">
  10160. </constructor>
  10161. <method name="set"
  10162. abstract="false" native="false" synchronized="false"
  10163. static="false" final="false" visibility="public"
  10164. deprecated="not deprecated">
  10165. <param name="value" type="byte"/>
  10166. <doc>
  10167. <![CDATA[Set the value of this ByteWritable.]]>
  10168. </doc>
  10169. </method>
  10170. <method name="get" return="byte"
  10171. abstract="false" native="false" synchronized="false"
  10172. static="false" final="false" visibility="public"
  10173. deprecated="not deprecated">
  10174. <doc>
  10175. <![CDATA[Return the value of this ByteWritable.]]>
  10176. </doc>
  10177. </method>
  10178. <method name="readFields"
  10179. abstract="false" native="false" synchronized="false"
  10180. static="false" final="false" visibility="public"
  10181. deprecated="not deprecated">
  10182. <param name="in" type="java.io.DataInput"/>
  10183. <exception name="IOException" type="java.io.IOException"/>
  10184. </method>
  10185. <method name="write"
  10186. abstract="false" native="false" synchronized="false"
  10187. static="false" final="false" visibility="public"
  10188. deprecated="not deprecated">
  10189. <param name="out" type="java.io.DataOutput"/>
  10190. <exception name="IOException" type="java.io.IOException"/>
  10191. </method>
  10192. <method name="equals" return="boolean"
  10193. abstract="false" native="false" synchronized="false"
  10194. static="false" final="false" visibility="public"
  10195. deprecated="not deprecated">
  10196. <param name="o" type="java.lang.Object"/>
  10197. <doc>
  10198. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10199. </doc>
  10200. </method>
  10201. <method name="hashCode" return="int"
  10202. abstract="false" native="false" synchronized="false"
  10203. static="false" final="false" visibility="public"
  10204. deprecated="not deprecated">
  10205. </method>
  10206. <method name="compareTo" return="int"
  10207. abstract="false" native="false" synchronized="false"
  10208. static="false" final="false" visibility="public"
  10209. deprecated="not deprecated">
  10210. <param name="o" type="java.lang.Object"/>
  10211. <doc>
  10212. <![CDATA[Compares two ByteWritables.]]>
  10213. </doc>
  10214. </method>
  10215. <method name="toString" return="java.lang.String"
  10216. abstract="false" native="false" synchronized="false"
  10217. static="false" final="false" visibility="public"
  10218. deprecated="not deprecated">
  10219. </method>
  10220. <doc>
  10221. <![CDATA[A WritableComparable for a single byte.]]>
  10222. </doc>
  10223. </class>
  10224. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10225. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10226. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10227. abstract="false"
  10228. static="true" final="false" visibility="public"
  10229. deprecated="not deprecated">
  10230. <constructor name="ByteWritable.Comparator"
  10231. static="false" final="false" visibility="public"
  10232. deprecated="not deprecated">
  10233. </constructor>
  10234. <method name="compare" return="int"
  10235. abstract="false" native="false" synchronized="false"
  10236. static="false" final="false" visibility="public"
  10237. deprecated="not deprecated">
  10238. <param name="b1" type="byte[]"/>
  10239. <param name="s1" type="int"/>
  10240. <param name="l1" type="int"/>
  10241. <param name="b2" type="byte[]"/>
  10242. <param name="s2" type="int"/>
  10243. <param name="l2" type="int"/>
  10244. </method>
  10245. <doc>
  10246. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10247. </doc>
  10248. </class>
  10249. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10250. <!-- start interface org.apache.hadoop.io.Closeable -->
  10251. <interface name="Closeable" abstract="true"
  10252. static="false" final="false" visibility="public"
  10253. deprecated="use java.io.Closeable">
  10254. <implements name="java.io.Closeable"/>
  10255. <doc>
  10256. <![CDATA[@deprecated use java.io.Closeable]]>
  10257. </doc>
  10258. </interface>
  10259. <!-- end interface org.apache.hadoop.io.Closeable -->
  10260. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10261. <class name="CompressedWritable" extends="java.lang.Object"
  10262. abstract="true"
  10263. static="false" final="false" visibility="public"
  10264. deprecated="not deprecated">
  10265. <implements name="org.apache.hadoop.io.Writable"/>
  10266. <constructor name="CompressedWritable"
  10267. static="false" final="false" visibility="public"
  10268. deprecated="not deprecated">
  10269. </constructor>
  10270. <method name="readFields"
  10271. abstract="false" native="false" synchronized="false"
  10272. static="false" final="true" visibility="public"
  10273. deprecated="not deprecated">
  10274. <param name="in" type="java.io.DataInput"/>
  10275. <exception name="IOException" type="java.io.IOException"/>
  10276. </method>
  10277. <method name="ensureInflated"
  10278. abstract="false" native="false" synchronized="false"
  10279. static="false" final="false" visibility="protected"
  10280. deprecated="not deprecated">
  10281. <doc>
  10282. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10283. has been uncompressed.]]>
  10284. </doc>
  10285. </method>
  10286. <method name="readFieldsCompressed"
  10287. abstract="true" native="false" synchronized="false"
  10288. static="false" final="false" visibility="protected"
  10289. deprecated="not deprecated">
  10290. <param name="in" type="java.io.DataInput"/>
  10291. <exception name="IOException" type="java.io.IOException"/>
  10292. <doc>
  10293. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10294. </doc>
  10295. </method>
  10296. <method name="write"
  10297. abstract="false" native="false" synchronized="false"
  10298. static="false" final="true" visibility="public"
  10299. deprecated="not deprecated">
  10300. <param name="out" type="java.io.DataOutput"/>
  10301. <exception name="IOException" type="java.io.IOException"/>
  10302. </method>
  10303. <method name="writeCompressed"
  10304. abstract="true" native="false" synchronized="false"
  10305. static="false" final="false" visibility="protected"
  10306. deprecated="not deprecated">
  10307. <param name="out" type="java.io.DataOutput"/>
  10308. <exception name="IOException" type="java.io.IOException"/>
  10309. <doc>
  10310. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10311. </doc>
  10312. </method>
  10313. <doc>
  10314. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10315. inflate on field access. This is useful for large objects whose fields are
  10316. not be altered during a map or reduce operation: leaving the field data
  10317. compressed makes copying the instance from one file to another much
  10318. faster.]]>
  10319. </doc>
  10320. </class>
  10321. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10322. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10323. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10324. abstract="false"
  10325. static="false" final="false" visibility="public"
  10326. deprecated="not deprecated">
  10327. <constructor name="DataInputBuffer"
  10328. static="false" final="false" visibility="public"
  10329. deprecated="not deprecated">
  10330. <doc>
  10331. <![CDATA[Constructs a new empty buffer.]]>
  10332. </doc>
  10333. </constructor>
  10334. <method name="reset"
  10335. abstract="false" native="false" synchronized="false"
  10336. static="false" final="false" visibility="public"
  10337. deprecated="not deprecated">
  10338. <param name="input" type="byte[]"/>
  10339. <param name="length" type="int"/>
  10340. <doc>
  10341. <![CDATA[Resets the data that the buffer reads.]]>
  10342. </doc>
  10343. </method>
  10344. <method name="reset"
  10345. abstract="false" native="false" synchronized="false"
  10346. static="false" final="false" visibility="public"
  10347. deprecated="not deprecated">
  10348. <param name="input" type="byte[]"/>
  10349. <param name="start" type="int"/>
  10350. <param name="length" type="int"/>
  10351. <doc>
  10352. <![CDATA[Resets the data that the buffer reads.]]>
  10353. </doc>
  10354. </method>
  10355. <method name="getData" return="byte[]"
  10356. abstract="false" native="false" synchronized="false"
  10357. static="false" final="false" visibility="public"
  10358. deprecated="not deprecated">
  10359. </method>
  10360. <method name="getPosition" return="int"
  10361. abstract="false" native="false" synchronized="false"
  10362. static="false" final="false" visibility="public"
  10363. deprecated="not deprecated">
  10364. <doc>
  10365. <![CDATA[Returns the current position in the input.]]>
  10366. </doc>
  10367. </method>
  10368. <method name="getLength" return="int"
  10369. abstract="false" native="false" synchronized="false"
  10370. static="false" final="false" visibility="public"
  10371. deprecated="not deprecated">
  10372. <doc>
  10373. <![CDATA[Returns the length of the input.]]>
  10374. </doc>
  10375. </method>
  10376. <doc>
  10377. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10378. buffer.
  10379. <p>This saves memory over creating a new DataInputStream and
  10380. ByteArrayInputStream each time data is read.
  10381. <p>Typical usage is something like the following:<pre>
  10382. DataInputBuffer buffer = new DataInputBuffer();
  10383. while (... loop condition ...) {
  10384. byte[] data = ... get data ...;
  10385. int dataLength = ... get data length ...;
  10386. buffer.reset(data, dataLength);
  10387. ... read buffer using DataInput methods ...
  10388. }
  10389. </pre>]]>
  10390. </doc>
  10391. </class>
  10392. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10393. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10394. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10395. abstract="false"
  10396. static="false" final="false" visibility="public"
  10397. deprecated="not deprecated">
  10398. <constructor name="DataOutputBuffer"
  10399. static="false" final="false" visibility="public"
  10400. deprecated="not deprecated">
  10401. <doc>
  10402. <![CDATA[Constructs a new empty buffer.]]>
  10403. </doc>
  10404. </constructor>
  10405. <constructor name="DataOutputBuffer" type="int"
  10406. static="false" final="false" visibility="public"
  10407. deprecated="not deprecated">
  10408. </constructor>
  10409. <method name="getData" return="byte[]"
  10410. abstract="false" native="false" synchronized="false"
  10411. static="false" final="false" visibility="public"
  10412. deprecated="not deprecated">
  10413. <doc>
  10414. <![CDATA[Returns the current contents of the buffer.
  10415. Data is only valid to {@link #getLength()}.]]>
  10416. </doc>
  10417. </method>
  10418. <method name="getLength" return="int"
  10419. abstract="false" native="false" synchronized="false"
  10420. static="false" final="false" visibility="public"
  10421. deprecated="not deprecated">
  10422. <doc>
  10423. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10424. </doc>
  10425. </method>
  10426. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10427. abstract="false" native="false" synchronized="false"
  10428. static="false" final="false" visibility="public"
  10429. deprecated="not deprecated">
  10430. <doc>
  10431. <![CDATA[Resets the buffer to empty.]]>
  10432. </doc>
  10433. </method>
  10434. <method name="write"
  10435. abstract="false" native="false" synchronized="false"
  10436. static="false" final="false" visibility="public"
  10437. deprecated="not deprecated">
  10438. <param name="in" type="java.io.DataInput"/>
  10439. <param name="length" type="int"/>
  10440. <exception name="IOException" type="java.io.IOException"/>
  10441. <doc>
  10442. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10443. </doc>
  10444. </method>
  10445. <method name="writeTo"
  10446. abstract="false" native="false" synchronized="false"
  10447. static="false" final="false" visibility="public"
  10448. deprecated="not deprecated">
  10449. <param name="out" type="java.io.OutputStream"/>
  10450. <exception name="IOException" type="java.io.IOException"/>
  10451. <doc>
  10452. <![CDATA[Write to a file stream]]>
  10453. </doc>
  10454. </method>
  10455. <doc>
  10456. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10457. buffer.
  10458. <p>This saves memory over creating a new DataOutputStream and
  10459. ByteArrayOutputStream each time data is written.
  10460. <p>Typical usage is something like the following:<pre>
  10461. DataOutputBuffer buffer = new DataOutputBuffer();
  10462. while (... loop condition ...) {
  10463. buffer.reset();
  10464. ... write buffer using DataOutput methods ...
  10465. byte[] data = buffer.getData();
  10466. int dataLength = buffer.getLength();
  10467. ... write data to its ultimate destination ...
  10468. }
  10469. </pre>]]>
  10470. </doc>
  10471. </class>
  10472. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10473. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10474. <class name="DefaultStringifier" extends="java.lang.Object"
  10475. abstract="false"
  10476. static="false" final="false" visibility="public"
  10477. deprecated="not deprecated">
  10478. <implements name="org.apache.hadoop.io.Stringifier"/>
  10479. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10480. static="false" final="false" visibility="public"
  10481. deprecated="not deprecated">
  10482. </constructor>
  10483. <method name="fromString" return="java.lang.Object"
  10484. abstract="false" native="false" synchronized="false"
  10485. static="false" final="false" visibility="public"
  10486. deprecated="not deprecated">
  10487. <param name="str" type="java.lang.String"/>
  10488. <exception name="IOException" type="java.io.IOException"/>
  10489. </method>
  10490. <method name="toString" return="java.lang.String"
  10491. abstract="false" native="false" synchronized="false"
  10492. static="false" final="false" visibility="public"
  10493. deprecated="not deprecated">
  10494. <param name="obj" type="java.lang.Object"/>
  10495. <exception name="IOException" type="java.io.IOException"/>
  10496. </method>
  10497. <method name="close"
  10498. abstract="false" native="false" synchronized="false"
  10499. static="false" final="false" visibility="public"
  10500. deprecated="not deprecated">
  10501. <exception name="IOException" type="java.io.IOException"/>
  10502. </method>
  10503. <method name="store"
  10504. abstract="false" native="false" synchronized="false"
  10505. static="true" final="false" visibility="public"
  10506. deprecated="not deprecated">
  10507. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10508. <param name="item" type="java.lang.Object"/>
  10509. <param name="keyName" type="java.lang.String"/>
  10510. <exception name="IOException" type="java.io.IOException"/>
  10511. <doc>
  10512. <![CDATA[Stores the item in the configuration with the given keyName.
  10513. @param <K> the class of the item
  10514. @param conf the configuration to store
  10515. @param item the object to be stored
  10516. @param keyName the name of the key to use
  10517. @throws IOException : forwards Exceptions from the underlying
  10518. {@link Serialization} classes.]]>
  10519. </doc>
  10520. </method>
  10521. <method name="load" return="java.lang.Object"
  10522. abstract="false" native="false" synchronized="false"
  10523. static="true" final="false" visibility="public"
  10524. deprecated="not deprecated">
  10525. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10526. <param name="keyName" type="java.lang.String"/>
  10527. <param name="itemClass" type="java.lang.Class"/>
  10528. <exception name="IOException" type="java.io.IOException"/>
  10529. <doc>
  10530. <![CDATA[Restores the object from the configuration.
  10531. @param <K> the class of the item
  10532. @param conf the configuration to use
  10533. @param keyName the name of the key to use
  10534. @param itemClass the class of the item
  10535. @return restored object
  10536. @throws IOException : forwards Exceptions from the underlying
  10537. {@link Serialization} classes.]]>
  10538. </doc>
  10539. </method>
  10540. <method name="storeArray"
  10541. abstract="false" native="false" synchronized="false"
  10542. static="true" final="false" visibility="public"
  10543. deprecated="not deprecated">
  10544. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10545. <param name="items" type="java.lang.Object[]"/>
  10546. <param name="keyName" type="java.lang.String"/>
  10547. <exception name="IOException" type="java.io.IOException"/>
  10548. <doc>
  10549. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10550. @param <K> the class of the item
  10551. @param conf the configuration to use
  10552. @param items the objects to be stored
  10553. @param keyName the name of the key to use
  10554. @throws IndexOutOfBoundsException if the items array is empty
  10555. @throws IOException : forwards Exceptions from the underlying
  10556. {@link Serialization} classes.]]>
  10557. </doc>
  10558. </method>
  10559. <method name="loadArray" return="java.lang.Object[]"
  10560. abstract="false" native="false" synchronized="false"
  10561. static="true" final="false" visibility="public"
  10562. deprecated="not deprecated">
  10563. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10564. <param name="keyName" type="java.lang.String"/>
  10565. <param name="itemClass" type="java.lang.Class"/>
  10566. <exception name="IOException" type="java.io.IOException"/>
  10567. <doc>
  10568. <![CDATA[Restores the array of objects from the configuration.
  10569. @param <K> the class of the item
  10570. @param conf the configuration to use
  10571. @param keyName the name of the key to use
  10572. @param itemClass the class of the item
  10573. @return restored object
  10574. @throws IOException : forwards Exceptions from the underlying
  10575. {@link Serialization} classes.]]>
  10576. </doc>
  10577. </method>
  10578. <doc>
  10579. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10580. interface which stringifies the objects using base64 encoding of the
  10581. serialized version of the objects. The {@link Serializer} and
  10582. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10583. <br>
  10584. DefaultStringifier offers convenience methods to store/load objects to/from
  10585. the configuration.
  10586. @param <T> the class of the objects to stringify]]>
  10587. </doc>
  10588. </class>
  10589. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10590. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10591. <class name="DoubleWritable" extends="java.lang.Object"
  10592. abstract="false"
  10593. static="false" final="false" visibility="public"
  10594. deprecated="not deprecated">
  10595. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10596. <constructor name="DoubleWritable"
  10597. static="false" final="false" visibility="public"
  10598. deprecated="not deprecated">
  10599. </constructor>
  10600. <constructor name="DoubleWritable" type="double"
  10601. static="false" final="false" visibility="public"
  10602. deprecated="not deprecated">
  10603. </constructor>
  10604. <method name="readFields"
  10605. abstract="false" native="false" synchronized="false"
  10606. static="false" final="false" visibility="public"
  10607. deprecated="not deprecated">
  10608. <param name="in" type="java.io.DataInput"/>
  10609. <exception name="IOException" type="java.io.IOException"/>
  10610. </method>
  10611. <method name="write"
  10612. abstract="false" native="false" synchronized="false"
  10613. static="false" final="false" visibility="public"
  10614. deprecated="not deprecated">
  10615. <param name="out" type="java.io.DataOutput"/>
  10616. <exception name="IOException" type="java.io.IOException"/>
  10617. </method>
  10618. <method name="set"
  10619. abstract="false" native="false" synchronized="false"
  10620. static="false" final="false" visibility="public"
  10621. deprecated="not deprecated">
  10622. <param name="value" type="double"/>
  10623. </method>
  10624. <method name="get" return="double"
  10625. abstract="false" native="false" synchronized="false"
  10626. static="false" final="false" visibility="public"
  10627. deprecated="not deprecated">
  10628. </method>
  10629. <method name="equals" return="boolean"
  10630. abstract="false" native="false" synchronized="false"
  10631. static="false" final="false" visibility="public"
  10632. deprecated="not deprecated">
  10633. <param name="o" type="java.lang.Object"/>
  10634. <doc>
  10635. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10636. </doc>
  10637. </method>
  10638. <method name="hashCode" return="int"
  10639. abstract="false" native="false" synchronized="false"
  10640. static="false" final="false" visibility="public"
  10641. deprecated="not deprecated">
  10642. </method>
  10643. <method name="compareTo" return="int"
  10644. abstract="false" native="false" synchronized="false"
  10645. static="false" final="false" visibility="public"
  10646. deprecated="not deprecated">
  10647. <param name="o" type="java.lang.Object"/>
  10648. </method>
  10649. <method name="toString" return="java.lang.String"
  10650. abstract="false" native="false" synchronized="false"
  10651. static="false" final="false" visibility="public"
  10652. deprecated="not deprecated">
  10653. </method>
  10654. <doc>
  10655. <![CDATA[Writable for Double values.]]>
  10656. </doc>
  10657. </class>
  10658. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10659. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10660. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10661. abstract="false"
  10662. static="true" final="false" visibility="public"
  10663. deprecated="not deprecated">
  10664. <constructor name="DoubleWritable.Comparator"
  10665. static="false" final="false" visibility="public"
  10666. deprecated="not deprecated">
  10667. </constructor>
  10668. <method name="compare" return="int"
  10669. abstract="false" native="false" synchronized="false"
  10670. static="false" final="false" visibility="public"
  10671. deprecated="not deprecated">
  10672. <param name="b1" type="byte[]"/>
  10673. <param name="s1" type="int"/>
  10674. <param name="l1" type="int"/>
  10675. <param name="b2" type="byte[]"/>
  10676. <param name="s2" type="int"/>
  10677. <param name="l2" type="int"/>
  10678. </method>
  10679. <doc>
  10680. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10681. </doc>
  10682. </class>
  10683. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10684. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10685. <class name="FloatWritable" extends="java.lang.Object"
  10686. abstract="false"
  10687. static="false" final="false" visibility="public"
  10688. deprecated="not deprecated">
  10689. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10690. <constructor name="FloatWritable"
  10691. static="false" final="false" visibility="public"
  10692. deprecated="not deprecated">
  10693. </constructor>
  10694. <constructor name="FloatWritable" type="float"
  10695. static="false" final="false" visibility="public"
  10696. deprecated="not deprecated">
  10697. </constructor>
  10698. <method name="set"
  10699. abstract="false" native="false" synchronized="false"
  10700. static="false" final="false" visibility="public"
  10701. deprecated="not deprecated">
  10702. <param name="value" type="float"/>
  10703. <doc>
  10704. <![CDATA[Set the value of this FloatWritable.]]>
  10705. </doc>
  10706. </method>
  10707. <method name="get" return="float"
  10708. abstract="false" native="false" synchronized="false"
  10709. static="false" final="false" visibility="public"
  10710. deprecated="not deprecated">
  10711. <doc>
  10712. <![CDATA[Return the value of this FloatWritable.]]>
  10713. </doc>
  10714. </method>
  10715. <method name="readFields"
  10716. abstract="false" native="false" synchronized="false"
  10717. static="false" final="false" visibility="public"
  10718. deprecated="not deprecated">
  10719. <param name="in" type="java.io.DataInput"/>
  10720. <exception name="IOException" type="java.io.IOException"/>
  10721. </method>
  10722. <method name="write"
  10723. abstract="false" native="false" synchronized="false"
  10724. static="false" final="false" visibility="public"
  10725. deprecated="not deprecated">
  10726. <param name="out" type="java.io.DataOutput"/>
  10727. <exception name="IOException" type="java.io.IOException"/>
  10728. </method>
  10729. <method name="equals" return="boolean"
  10730. abstract="false" native="false" synchronized="false"
  10731. static="false" final="false" visibility="public"
  10732. deprecated="not deprecated">
  10733. <param name="o" type="java.lang.Object"/>
  10734. <doc>
  10735. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10736. </doc>
  10737. </method>
  10738. <method name="hashCode" return="int"
  10739. abstract="false" native="false" synchronized="false"
  10740. static="false" final="false" visibility="public"
  10741. deprecated="not deprecated">
  10742. </method>
  10743. <method name="compareTo" return="int"
  10744. abstract="false" native="false" synchronized="false"
  10745. static="false" final="false" visibility="public"
  10746. deprecated="not deprecated">
  10747. <param name="o" type="java.lang.Object"/>
  10748. <doc>
  10749. <![CDATA[Compares two FloatWritables.]]>
  10750. </doc>
  10751. </method>
  10752. <method name="toString" return="java.lang.String"
  10753. abstract="false" native="false" synchronized="false"
  10754. static="false" final="false" visibility="public"
  10755. deprecated="not deprecated">
  10756. </method>
  10757. <doc>
  10758. <![CDATA[A WritableComparable for floats.]]>
  10759. </doc>
  10760. </class>
  10761. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10762. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10763. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10764. abstract="false"
  10765. static="true" final="false" visibility="public"
  10766. deprecated="not deprecated">
  10767. <constructor name="FloatWritable.Comparator"
  10768. static="false" final="false" visibility="public"
  10769. deprecated="not deprecated">
  10770. </constructor>
  10771. <method name="compare" return="int"
  10772. abstract="false" native="false" synchronized="false"
  10773. static="false" final="false" visibility="public"
  10774. deprecated="not deprecated">
  10775. <param name="b1" type="byte[]"/>
  10776. <param name="s1" type="int"/>
  10777. <param name="l1" type="int"/>
  10778. <param name="b2" type="byte[]"/>
  10779. <param name="s2" type="int"/>
  10780. <param name="l2" type="int"/>
  10781. </method>
  10782. <doc>
  10783. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10784. </doc>
  10785. </class>
  10786. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10787. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10788. <class name="GenericWritable" extends="java.lang.Object"
  10789. abstract="true"
  10790. static="false" final="false" visibility="public"
  10791. deprecated="not deprecated">
  10792. <implements name="org.apache.hadoop.io.Writable"/>
  10793. <implements name="org.apache.hadoop.conf.Configurable"/>
  10794. <constructor name="GenericWritable"
  10795. static="false" final="false" visibility="public"
  10796. deprecated="not deprecated">
  10797. </constructor>
  10798. <method name="set"
  10799. abstract="false" native="false" synchronized="false"
  10800. static="false" final="false" visibility="public"
  10801. deprecated="not deprecated">
  10802. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10803. <doc>
  10804. <![CDATA[Set the instance that is wrapped.
  10805. @param obj]]>
  10806. </doc>
  10807. </method>
  10808. <method name="get" return="org.apache.hadoop.io.Writable"
  10809. abstract="false" native="false" synchronized="false"
  10810. static="false" final="false" visibility="public"
  10811. deprecated="not deprecated">
  10812. <doc>
  10813. <![CDATA[Return the wrapped instance.]]>
  10814. </doc>
  10815. </method>
  10816. <method name="toString" return="java.lang.String"
  10817. abstract="false" native="false" synchronized="false"
  10818. static="false" final="false" visibility="public"
  10819. deprecated="not deprecated">
  10820. </method>
  10821. <method name="readFields"
  10822. abstract="false" native="false" synchronized="false"
  10823. static="false" final="false" visibility="public"
  10824. deprecated="not deprecated">
  10825. <param name="in" type="java.io.DataInput"/>
  10826. <exception name="IOException" type="java.io.IOException"/>
  10827. </method>
  10828. <method name="write"
  10829. abstract="false" native="false" synchronized="false"
  10830. static="false" final="false" visibility="public"
  10831. deprecated="not deprecated">
  10832. <param name="out" type="java.io.DataOutput"/>
  10833. <exception name="IOException" type="java.io.IOException"/>
  10834. </method>
  10835. <method name="getTypes" return="java.lang.Class[]"
  10836. abstract="true" native="false" synchronized="false"
  10837. static="false" final="false" visibility="protected"
  10838. deprecated="not deprecated">
  10839. <doc>
  10840. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10841. to return a constant array of classes.]]>
  10842. </doc>
  10843. </method>
  10844. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10845. abstract="false" native="false" synchronized="false"
  10846. static="false" final="false" visibility="public"
  10847. deprecated="not deprecated">
  10848. </method>
  10849. <method name="setConf"
  10850. abstract="false" native="false" synchronized="false"
  10851. static="false" final="false" visibility="public"
  10852. deprecated="not deprecated">
  10853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10854. </method>
  10855. <doc>
  10856. <![CDATA[A wrapper for Writable instances.
  10857. <p>
  10858. When two sequence files, which have same Key type but different Value
  10859. types, are mapped out to reduce, multiple Value types is not allowed.
  10860. In this case, this class can help you wrap instances with different types.
  10861. </p>
  10862. <p>
  10863. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10864. because <code>ObjectWritable</code> will append the class declaration as a String
  10865. into the output file in every Key-Value pair.
  10866. </p>
  10867. <p>
  10868. Generic Writable implements {@link Configurable} interface, so that it will be
  10869. configured by the framework. The configuration is passed to the wrapped objects
  10870. implementing {@link Configurable} interface <i>before deserialization</i>.
  10871. </p>
  10872. how to use it: <br>
  10873. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10874. 2. Implements the abstract method <code>getTypes()</code>, defines
  10875. the classes which will be wrapped in GenericObject in application.
  10876. Attention: this classes defined in <code>getTypes()</code> method, must
  10877. implement <code>Writable</code> interface.
  10878. <br><br>
  10879. The code looks like this:
  10880. <blockquote><pre>
  10881. public class GenericObject extends GenericWritable {
  10882. private static Class[] CLASSES = {
  10883. ClassType1.class,
  10884. ClassType2.class,
  10885. ClassType3.class,
  10886. };
  10887. protected Class[] getTypes() {
  10888. return CLASSES;
  10889. }
  10890. }
  10891. </pre></blockquote>
  10892. @since Nov 8, 2006]]>
  10893. </doc>
  10894. </class>
  10895. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10896. <!-- start class org.apache.hadoop.io.InputBuffer -->
  10897. <class name="InputBuffer" extends="java.io.FilterInputStream"
  10898. abstract="false"
  10899. static="false" final="false" visibility="public"
  10900. deprecated="not deprecated">
  10901. <constructor name="InputBuffer"
  10902. static="false" final="false" visibility="public"
  10903. deprecated="not deprecated">
  10904. <doc>
  10905. <![CDATA[Constructs a new empty buffer.]]>
  10906. </doc>
  10907. </constructor>
  10908. <method name="reset"
  10909. abstract="false" native="false" synchronized="false"
  10910. static="false" final="false" visibility="public"
  10911. deprecated="not deprecated">
  10912. <param name="input" type="byte[]"/>
  10913. <param name="length" type="int"/>
  10914. <doc>
  10915. <![CDATA[Resets the data that the buffer reads.]]>
  10916. </doc>
  10917. </method>
  10918. <method name="reset"
  10919. abstract="false" native="false" synchronized="false"
  10920. static="false" final="false" visibility="public"
  10921. deprecated="not deprecated">
  10922. <param name="input" type="byte[]"/>
  10923. <param name="start" type="int"/>
  10924. <param name="length" type="int"/>
  10925. <doc>
  10926. <![CDATA[Resets the data that the buffer reads.]]>
  10927. </doc>
  10928. </method>
  10929. <method name="getPosition" return="int"
  10930. abstract="false" native="false" synchronized="false"
  10931. static="false" final="false" visibility="public"
  10932. deprecated="not deprecated">
  10933. <doc>
  10934. <![CDATA[Returns the current position in the input.]]>
  10935. </doc>
  10936. </method>
  10937. <method name="getLength" return="int"
  10938. abstract="false" native="false" synchronized="false"
  10939. static="false" final="false" visibility="public"
  10940. deprecated="not deprecated">
  10941. <doc>
  10942. <![CDATA[Returns the length of the input.]]>
  10943. </doc>
  10944. </method>
  10945. <doc>
  10946. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  10947. buffer.
  10948. <p>This saves memory over creating a new InputStream and
  10949. ByteArrayInputStream each time data is read.
  10950. <p>Typical usage is something like the following:<pre>
  10951. InputBuffer buffer = new InputBuffer();
  10952. while (... loop condition ...) {
  10953. byte[] data = ... get data ...;
  10954. int dataLength = ... get data length ...;
  10955. buffer.reset(data, dataLength);
  10956. ... read buffer using InputStream methods ...
  10957. }
  10958. </pre>
  10959. @see DataInputBuffer
  10960. @see DataOutput]]>
  10961. </doc>
  10962. </class>
  10963. <!-- end class org.apache.hadoop.io.InputBuffer -->
  10964. <!-- start class org.apache.hadoop.io.IntWritable -->
  10965. <class name="IntWritable" extends="java.lang.Object"
  10966. abstract="false"
  10967. static="false" final="false" visibility="public"
  10968. deprecated="not deprecated">
  10969. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10970. <constructor name="IntWritable"
  10971. static="false" final="false" visibility="public"
  10972. deprecated="not deprecated">
  10973. </constructor>
  10974. <constructor name="IntWritable" type="int"
  10975. static="false" final="false" visibility="public"
  10976. deprecated="not deprecated">
  10977. </constructor>
  10978. <method name="set"
  10979. abstract="false" native="false" synchronized="false"
  10980. static="false" final="false" visibility="public"
  10981. deprecated="not deprecated">
  10982. <param name="value" type="int"/>
  10983. <doc>
  10984. <![CDATA[Set the value of this IntWritable.]]>
  10985. </doc>
  10986. </method>
  10987. <method name="get" return="int"
  10988. abstract="false" native="false" synchronized="false"
  10989. static="false" final="false" visibility="public"
  10990. deprecated="not deprecated">
  10991. <doc>
  10992. <![CDATA[Return the value of this IntWritable.]]>
  10993. </doc>
  10994. </method>
  10995. <method name="readFields"
  10996. abstract="false" native="false" synchronized="false"
  10997. static="false" final="false" visibility="public"
  10998. deprecated="not deprecated">
  10999. <param name="in" type="java.io.DataInput"/>
  11000. <exception name="IOException" type="java.io.IOException"/>
  11001. </method>
  11002. <method name="write"
  11003. abstract="false" native="false" synchronized="false"
  11004. static="false" final="false" visibility="public"
  11005. deprecated="not deprecated">
  11006. <param name="out" type="java.io.DataOutput"/>
  11007. <exception name="IOException" type="java.io.IOException"/>
  11008. </method>
  11009. <method name="equals" return="boolean"
  11010. abstract="false" native="false" synchronized="false"
  11011. static="false" final="false" visibility="public"
  11012. deprecated="not deprecated">
  11013. <param name="o" type="java.lang.Object"/>
  11014. <doc>
  11015. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  11016. </doc>
  11017. </method>
  11018. <method name="hashCode" return="int"
  11019. abstract="false" native="false" synchronized="false"
  11020. static="false" final="false" visibility="public"
  11021. deprecated="not deprecated">
  11022. </method>
  11023. <method name="compareTo" return="int"
  11024. abstract="false" native="false" synchronized="false"
  11025. static="false" final="false" visibility="public"
  11026. deprecated="not deprecated">
  11027. <param name="o" type="java.lang.Object"/>
  11028. <doc>
  11029. <![CDATA[Compares two IntWritables.]]>
  11030. </doc>
  11031. </method>
  11032. <method name="toString" return="java.lang.String"
  11033. abstract="false" native="false" synchronized="false"
  11034. static="false" final="false" visibility="public"
  11035. deprecated="not deprecated">
  11036. </method>
  11037. <doc>
  11038. <![CDATA[A WritableComparable for ints.]]>
  11039. </doc>
  11040. </class>
  11041. <!-- end class org.apache.hadoop.io.IntWritable -->
  11042. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11043. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11044. abstract="false"
  11045. static="true" final="false" visibility="public"
  11046. deprecated="not deprecated">
  11047. <constructor name="IntWritable.Comparator"
  11048. static="false" final="false" visibility="public"
  11049. deprecated="not deprecated">
  11050. </constructor>
  11051. <method name="compare" return="int"
  11052. abstract="false" native="false" synchronized="false"
  11053. static="false" final="false" visibility="public"
  11054. deprecated="not deprecated">
  11055. <param name="b1" type="byte[]"/>
  11056. <param name="s1" type="int"/>
  11057. <param name="l1" type="int"/>
  11058. <param name="b2" type="byte[]"/>
  11059. <param name="s2" type="int"/>
  11060. <param name="l2" type="int"/>
  11061. </method>
  11062. <doc>
  11063. <![CDATA[A Comparator optimized for IntWritable.]]>
  11064. </doc>
  11065. </class>
  11066. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11067. <!-- start class org.apache.hadoop.io.IOUtils -->
  11068. <class name="IOUtils" extends="java.lang.Object"
  11069. abstract="false"
  11070. static="false" final="false" visibility="public"
  11071. deprecated="not deprecated">
  11072. <constructor name="IOUtils"
  11073. static="false" final="false" visibility="public"
  11074. deprecated="not deprecated">
  11075. </constructor>
  11076. <method name="copyBytes"
  11077. abstract="false" native="false" synchronized="false"
  11078. static="true" final="false" visibility="public"
  11079. deprecated="not deprecated">
  11080. <param name="in" type="java.io.InputStream"/>
  11081. <param name="out" type="java.io.OutputStream"/>
  11082. <param name="buffSize" type="int"/>
  11083. <param name="close" type="boolean"/>
  11084. <exception name="IOException" type="java.io.IOException"/>
  11085. <doc>
  11086. <![CDATA[Copies from one stream to another.
  11087. @param in InputStrem to read from
  11088. @param out OutputStream to write to
  11089. @param buffSize the size of the buffer
  11090. @param close whether or not close the InputStream and
  11091. OutputStream at the end. The streams are closed in the finally clause.]]>
  11092. </doc>
  11093. </method>
  11094. <method name="copyBytes"
  11095. abstract="false" native="false" synchronized="false"
  11096. static="true" final="false" visibility="public"
  11097. deprecated="not deprecated">
  11098. <param name="in" type="java.io.InputStream"/>
  11099. <param name="out" type="java.io.OutputStream"/>
  11100. <param name="buffSize" type="int"/>
  11101. <exception name="IOException" type="java.io.IOException"/>
  11102. <doc>
  11103. <![CDATA[Copies from one stream to another.
  11104. @param in InputStrem to read from
  11105. @param out OutputStream to write to
  11106. @param buffSize the size of the buffer]]>
  11107. </doc>
  11108. </method>
  11109. <method name="copyBytes"
  11110. abstract="false" native="false" synchronized="false"
  11111. static="true" final="false" visibility="public"
  11112. deprecated="not deprecated">
  11113. <param name="in" type="java.io.InputStream"/>
  11114. <param name="out" type="java.io.OutputStream"/>
  11115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11116. <exception name="IOException" type="java.io.IOException"/>
  11117. <doc>
  11118. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11119. at the end</strong>.
  11120. @param in InputStrem to read from
  11121. @param out OutputStream to write to
  11122. @param conf the Configuration object]]>
  11123. </doc>
  11124. </method>
  11125. <method name="copyBytes"
  11126. abstract="false" native="false" synchronized="false"
  11127. static="true" final="false" visibility="public"
  11128. deprecated="not deprecated">
  11129. <param name="in" type="java.io.InputStream"/>
  11130. <param name="out" type="java.io.OutputStream"/>
  11131. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11132. <param name="close" type="boolean"/>
  11133. <exception name="IOException" type="java.io.IOException"/>
  11134. <doc>
  11135. <![CDATA[Copies from one stream to another.
  11136. @param in InputStrem to read from
  11137. @param out OutputStream to write to
  11138. @param conf the Configuration object
  11139. @param close whether or not close the InputStream and
  11140. OutputStream at the end. The streams are closed in the finally clause.]]>
  11141. </doc>
  11142. </method>
  11143. <method name="copyBytes"
  11144. abstract="false" native="false" synchronized="false"
  11145. static="true" final="false" visibility="public"
  11146. deprecated="not deprecated">
  11147. <param name="in" type="java.io.InputStream"/>
  11148. <param name="out" type="java.io.OutputStream"/>
  11149. <param name="length" type="long"/>
  11150. <param name="bufferSize" type="int"/>
  11151. <param name="close" type="boolean"/>
  11152. <exception name="IOException" type="java.io.IOException"/>
  11153. <doc>
  11154. <![CDATA[Copies the specified length of bytes from in to out.
  11155. @param in InputStream to read from
  11156. @param out OutputStream to write to
  11157. @param length number of bytes to copy
  11158. @param bufferSize the size of the buffer
  11159. @param close whether to close the streams
  11160. @throws IOException if bytes can not be read or written]]>
  11161. </doc>
  11162. </method>
  11163. <method name="readFully"
  11164. abstract="false" native="false" synchronized="false"
  11165. static="true" final="false" visibility="public"
  11166. deprecated="not deprecated">
  11167. <param name="in" type="java.io.InputStream"/>
  11168. <param name="buf" type="byte[]"/>
  11169. <param name="off" type="int"/>
  11170. <param name="len" type="int"/>
  11171. <exception name="IOException" type="java.io.IOException"/>
  11172. <doc>
  11173. <![CDATA[Reads len bytes in a loop.
  11174. @param in The InputStream to read from
  11175. @param buf The buffer to fill
  11176. @param off offset from the buffer
  11177. @param len the length of bytes to read
  11178. @throws IOException if it could not read requested number of bytes
  11179. for any reason (including EOF)]]>
  11180. </doc>
  11181. </method>
  11182. <method name="readFileChannelFully"
  11183. abstract="false" native="false" synchronized="false"
  11184. static="true" final="false" visibility="public"
  11185. deprecated="not deprecated">
  11186. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11187. <param name="buf" type="byte[]"/>
  11188. <param name="off" type="int"/>
  11189. <param name="len" type="int"/>
  11190. <exception name="IOException" type="java.io.IOException"/>
  11191. <doc>
  11192. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11193. @param fileChannel a FileChannel to read len bytes into buf
  11194. @param buf The buffer to fill
  11195. @param off offset from the buffer
  11196. @param len the length of bytes to read
  11197. @throws IOException if it could not read requested number of bytes
  11198. for any reason (including EOF)]]>
  11199. </doc>
  11200. </method>
  11201. <method name="skipFully"
  11202. abstract="false" native="false" synchronized="false"
  11203. static="true" final="false" visibility="public"
  11204. deprecated="not deprecated">
  11205. <param name="in" type="java.io.InputStream"/>
  11206. <param name="len" type="long"/>
  11207. <exception name="IOException" type="java.io.IOException"/>
  11208. <doc>
  11209. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11210. @param in The InputStream to skip bytes from
  11211. @param len number of bytes to skip.
  11212. @throws IOException if it could not skip requested number of bytes
  11213. for any reason (including EOF)]]>
  11214. </doc>
  11215. </method>
  11216. <method name="cleanup"
  11217. abstract="false" native="false" synchronized="false"
  11218. static="true" final="false" visibility="public"
  11219. deprecated="not deprecated">
  11220. <param name="log" type="org.apache.commons.logging.Log"/>
  11221. <param name="closeables" type="java.io.Closeable[]"/>
  11222. <doc>
  11223. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11224. null pointers. Must only be used for cleanup in exception handlers.
  11225. @param log the log to record problems to at debug level. Can be null.
  11226. @param closeables the objects to close]]>
  11227. </doc>
  11228. </method>
  11229. <method name="closeStream"
  11230. abstract="false" native="false" synchronized="false"
  11231. static="true" final="false" visibility="public"
  11232. deprecated="not deprecated">
  11233. <param name="stream" type="java.io.Closeable"/>
  11234. <doc>
  11235. <![CDATA[Closes the stream ignoring {@link IOException}.
  11236. Must only be called in cleaning up from exception handlers.
  11237. @param stream the Stream to close]]>
  11238. </doc>
  11239. </method>
  11240. <method name="closeSocket"
  11241. abstract="false" native="false" synchronized="false"
  11242. static="true" final="false" visibility="public"
  11243. deprecated="not deprecated">
  11244. <param name="sock" type="java.net.Socket"/>
  11245. <doc>
  11246. <![CDATA[Closes the socket ignoring {@link IOException}
  11247. @param sock the Socket to close]]>
  11248. </doc>
  11249. </method>
  11250. <doc>
  11251. <![CDATA[An utility class for I/O related functionality.]]>
  11252. </doc>
  11253. </class>
  11254. <!-- end class org.apache.hadoop.io.IOUtils -->
  11255. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11256. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11257. abstract="false"
  11258. static="true" final="false" visibility="public"
  11259. deprecated="not deprecated">
  11260. <constructor name="IOUtils.NullOutputStream"
  11261. static="false" final="false" visibility="public"
  11262. deprecated="not deprecated">
  11263. </constructor>
  11264. <method name="write"
  11265. abstract="false" native="false" synchronized="false"
  11266. static="false" final="false" visibility="public"
  11267. deprecated="not deprecated">
  11268. <param name="b" type="byte[]"/>
  11269. <param name="off" type="int"/>
  11270. <param name="len" type="int"/>
  11271. <exception name="IOException" type="java.io.IOException"/>
  11272. </method>
  11273. <method name="write"
  11274. abstract="false" native="false" synchronized="false"
  11275. static="false" final="false" visibility="public"
  11276. deprecated="not deprecated">
  11277. <param name="b" type="int"/>
  11278. <exception name="IOException" type="java.io.IOException"/>
  11279. </method>
  11280. <doc>
  11281. <![CDATA[/dev/null of OutputStreams.]]>
  11282. </doc>
  11283. </class>
  11284. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11285. <!-- start class org.apache.hadoop.io.LongWritable -->
  11286. <class name="LongWritable" extends="java.lang.Object"
  11287. abstract="false"
  11288. static="false" final="false" visibility="public"
  11289. deprecated="not deprecated">
  11290. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11291. <constructor name="LongWritable"
  11292. static="false" final="false" visibility="public"
  11293. deprecated="not deprecated">
  11294. </constructor>
  11295. <constructor name="LongWritable" type="long"
  11296. static="false" final="false" visibility="public"
  11297. deprecated="not deprecated">
  11298. </constructor>
  11299. <method name="set"
  11300. abstract="false" native="false" synchronized="false"
  11301. static="false" final="false" visibility="public"
  11302. deprecated="not deprecated">
  11303. <param name="value" type="long"/>
  11304. <doc>
  11305. <![CDATA[Set the value of this LongWritable.]]>
  11306. </doc>
  11307. </method>
  11308. <method name="get" return="long"
  11309. abstract="false" native="false" synchronized="false"
  11310. static="false" final="false" visibility="public"
  11311. deprecated="not deprecated">
  11312. <doc>
  11313. <![CDATA[Return the value of this LongWritable.]]>
  11314. </doc>
  11315. </method>
  11316. <method name="readFields"
  11317. abstract="false" native="false" synchronized="false"
  11318. static="false" final="false" visibility="public"
  11319. deprecated="not deprecated">
  11320. <param name="in" type="java.io.DataInput"/>
  11321. <exception name="IOException" type="java.io.IOException"/>
  11322. </method>
  11323. <method name="write"
  11324. abstract="false" native="false" synchronized="false"
  11325. static="false" final="false" visibility="public"
  11326. deprecated="not deprecated">
  11327. <param name="out" type="java.io.DataOutput"/>
  11328. <exception name="IOException" type="java.io.IOException"/>
  11329. </method>
  11330. <method name="equals" return="boolean"
  11331. abstract="false" native="false" synchronized="false"
  11332. static="false" final="false" visibility="public"
  11333. deprecated="not deprecated">
  11334. <param name="o" type="java.lang.Object"/>
  11335. <doc>
  11336. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11337. </doc>
  11338. </method>
  11339. <method name="hashCode" return="int"
  11340. abstract="false" native="false" synchronized="false"
  11341. static="false" final="false" visibility="public"
  11342. deprecated="not deprecated">
  11343. </method>
  11344. <method name="compareTo" return="int"
  11345. abstract="false" native="false" synchronized="false"
  11346. static="false" final="false" visibility="public"
  11347. deprecated="not deprecated">
  11348. <param name="o" type="java.lang.Object"/>
  11349. <doc>
  11350. <![CDATA[Compares two LongWritables.]]>
  11351. </doc>
  11352. </method>
  11353. <method name="toString" return="java.lang.String"
  11354. abstract="false" native="false" synchronized="false"
  11355. static="false" final="false" visibility="public"
  11356. deprecated="not deprecated">
  11357. </method>
  11358. <doc>
  11359. <![CDATA[A WritableComparable for longs.]]>
  11360. </doc>
  11361. </class>
  11362. <!-- end class org.apache.hadoop.io.LongWritable -->
  11363. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11364. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11365. abstract="false"
  11366. static="true" final="false" visibility="public"
  11367. deprecated="not deprecated">
  11368. <constructor name="LongWritable.Comparator"
  11369. static="false" final="false" visibility="public"
  11370. deprecated="not deprecated">
  11371. </constructor>
  11372. <method name="compare" return="int"
  11373. abstract="false" native="false" synchronized="false"
  11374. static="false" final="false" visibility="public"
  11375. deprecated="not deprecated">
  11376. <param name="b1" type="byte[]"/>
  11377. <param name="s1" type="int"/>
  11378. <param name="l1" type="int"/>
  11379. <param name="b2" type="byte[]"/>
  11380. <param name="s2" type="int"/>
  11381. <param name="l2" type="int"/>
  11382. </method>
  11383. <doc>
  11384. <![CDATA[A Comparator optimized for LongWritable.]]>
  11385. </doc>
  11386. </class>
  11387. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11388. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11389. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11390. abstract="false"
  11391. static="true" final="false" visibility="public"
  11392. deprecated="not deprecated">
  11393. <constructor name="LongWritable.DecreasingComparator"
  11394. static="false" final="false" visibility="public"
  11395. deprecated="not deprecated">
  11396. </constructor>
  11397. <method name="compare" return="int"
  11398. abstract="false" native="false" synchronized="false"
  11399. static="false" final="false" visibility="public"
  11400. deprecated="not deprecated">
  11401. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11402. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11403. </method>
  11404. <method name="compare" return="int"
  11405. abstract="false" native="false" synchronized="false"
  11406. static="false" final="false" visibility="public"
  11407. deprecated="not deprecated">
  11408. <param name="b1" type="byte[]"/>
  11409. <param name="s1" type="int"/>
  11410. <param name="l1" type="int"/>
  11411. <param name="b2" type="byte[]"/>
  11412. <param name="s2" type="int"/>
  11413. <param name="l2" type="int"/>
  11414. </method>
  11415. <doc>
  11416. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11417. </doc>
  11418. </class>
  11419. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11420. <!-- start class org.apache.hadoop.io.MapFile -->
  11421. <class name="MapFile" extends="java.lang.Object"
  11422. abstract="false"
  11423. static="false" final="false" visibility="public"
  11424. deprecated="not deprecated">
  11425. <constructor name="MapFile"
  11426. static="false" final="false" visibility="protected"
  11427. deprecated="not deprecated">
  11428. </constructor>
  11429. <method name="rename"
  11430. abstract="false" native="false" synchronized="false"
  11431. static="true" final="false" visibility="public"
  11432. deprecated="not deprecated">
  11433. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11434. <param name="oldName" type="java.lang.String"/>
  11435. <param name="newName" type="java.lang.String"/>
  11436. <exception name="IOException" type="java.io.IOException"/>
  11437. <doc>
  11438. <![CDATA[Renames an existing map directory.]]>
  11439. </doc>
  11440. </method>
  11441. <method name="delete"
  11442. abstract="false" native="false" synchronized="false"
  11443. static="true" final="false" visibility="public"
  11444. deprecated="not deprecated">
  11445. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11446. <param name="name" type="java.lang.String"/>
  11447. <exception name="IOException" type="java.io.IOException"/>
  11448. <doc>
  11449. <![CDATA[Deletes the named map file.]]>
  11450. </doc>
  11451. </method>
  11452. <method name="fix" return="long"
  11453. abstract="false" native="false" synchronized="false"
  11454. static="true" final="false" visibility="public"
  11455. deprecated="not deprecated">
  11456. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11457. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11458. <param name="keyClass" type="java.lang.Class"/>
  11459. <param name="valueClass" type="java.lang.Class"/>
  11460. <param name="dryrun" type="boolean"/>
  11461. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11462. <exception name="Exception" type="java.lang.Exception"/>
  11463. <doc>
  11464. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11465. @param fs filesystem
  11466. @param dir directory containing the MapFile data and index
  11467. @param keyClass key class (has to be a subclass of Writable)
  11468. @param valueClass value class (has to be a subclass of Writable)
  11469. @param dryrun do not perform any changes, just report what needs to be done
  11470. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11471. @throws Exception]]>
  11472. </doc>
  11473. </method>
  11474. <method name="main"
  11475. abstract="false" native="false" synchronized="false"
  11476. static="true" final="false" visibility="public"
  11477. deprecated="not deprecated">
  11478. <param name="args" type="java.lang.String[]"/>
  11479. <exception name="Exception" type="java.lang.Exception"/>
  11480. </method>
  11481. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11482. transient="false" volatile="false"
  11483. static="true" final="true" visibility="public"
  11484. deprecated="not deprecated">
  11485. <doc>
  11486. <![CDATA[The name of the index file.]]>
  11487. </doc>
  11488. </field>
  11489. <field name="DATA_FILE_NAME" type="java.lang.String"
  11490. transient="false" volatile="false"
  11491. static="true" final="true" visibility="public"
  11492. deprecated="not deprecated">
  11493. <doc>
  11494. <![CDATA[The name of the data file.]]>
  11495. </doc>
  11496. </field>
  11497. <doc>
  11498. <![CDATA[A file-based map from keys to values.
  11499. <p>A map is a directory containing two files, the <code>data</code> file,
  11500. containing all keys and values in the map, and a smaller <code>index</code>
  11501. file, containing a fraction of the keys. The fraction is determined by
  11502. {@link Writer#getIndexInterval()}.
  11503. <p>The index file is read entirely into memory. Thus key implementations
  11504. should try to keep themselves small.
  11505. <p>Map files are created by adding entries in-order. To maintain a large
  11506. database, perform updates by copying the previous version of a database and
  11507. merging in a sorted change list, to create a new version of the database in
  11508. a new file. Sorting large change lists can be done with {@link
  11509. SequenceFile.Sorter}.]]>
  11510. </doc>
  11511. </class>
  11512. <!-- end class org.apache.hadoop.io.MapFile -->
  11513. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11514. <class name="MapFile.Reader" extends="java.lang.Object"
  11515. abstract="false"
  11516. static="true" final="false" visibility="public"
  11517. deprecated="not deprecated">
  11518. <implements name="java.io.Closeable"/>
  11519. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11520. static="false" final="false" visibility="public"
  11521. deprecated="not deprecated">
  11522. <exception name="IOException" type="java.io.IOException"/>
  11523. <doc>
  11524. <![CDATA[Construct a map reader for the named map.]]>
  11525. </doc>
  11526. </constructor>
  11527. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11528. static="false" final="false" visibility="public"
  11529. deprecated="not deprecated">
  11530. <exception name="IOException" type="java.io.IOException"/>
  11531. <doc>
  11532. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11533. </doc>
  11534. </constructor>
  11535. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11536. static="false" final="false" visibility="protected"
  11537. deprecated="not deprecated">
  11538. <exception name="IOException" type="java.io.IOException"/>
  11539. <doc>
  11540. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11541. initialization is complete.
  11542. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11543. </doc>
  11544. </constructor>
  11545. <method name="getKeyClass" return="java.lang.Class"
  11546. abstract="false" native="false" synchronized="false"
  11547. static="false" final="false" visibility="public"
  11548. deprecated="not deprecated">
  11549. <doc>
  11550. <![CDATA[Returns the class of keys in this file.]]>
  11551. </doc>
  11552. </method>
  11553. <method name="getValueClass" return="java.lang.Class"
  11554. abstract="false" native="false" synchronized="false"
  11555. static="false" final="false" visibility="public"
  11556. deprecated="not deprecated">
  11557. <doc>
  11558. <![CDATA[Returns the class of values in this file.]]>
  11559. </doc>
  11560. </method>
  11561. <method name="open"
  11562. abstract="false" native="false" synchronized="true"
  11563. static="false" final="false" visibility="protected"
  11564. deprecated="not deprecated">
  11565. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11566. <param name="dirName" type="java.lang.String"/>
  11567. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11568. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11569. <exception name="IOException" type="java.io.IOException"/>
  11570. </method>
  11571. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11572. abstract="false" native="false" synchronized="false"
  11573. static="false" final="false" visibility="protected"
  11574. deprecated="not deprecated">
  11575. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11576. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11578. <exception name="IOException" type="java.io.IOException"/>
  11579. <doc>
  11580. <![CDATA[Override this method to specialize the type of
  11581. {@link SequenceFile.Reader} returned.]]>
  11582. </doc>
  11583. </method>
  11584. <method name="reset"
  11585. abstract="false" native="false" synchronized="true"
  11586. static="false" final="false" visibility="public"
  11587. deprecated="not deprecated">
  11588. <exception name="IOException" type="java.io.IOException"/>
  11589. <doc>
  11590. <![CDATA[Re-positions the reader before its first key.]]>
  11591. </doc>
  11592. </method>
  11593. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11594. abstract="false" native="false" synchronized="true"
  11595. static="false" final="false" visibility="public"
  11596. deprecated="not deprecated">
  11597. <exception name="IOException" type="java.io.IOException"/>
  11598. <doc>
  11599. <![CDATA[Get the key at approximately the middle of the file.
  11600. @throws IOException]]>
  11601. </doc>
  11602. </method>
  11603. <method name="finalKey"
  11604. abstract="false" native="false" synchronized="true"
  11605. static="false" final="false" visibility="public"
  11606. deprecated="not deprecated">
  11607. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11608. <exception name="IOException" type="java.io.IOException"/>
  11609. <doc>
  11610. <![CDATA[Reads the final key from the file.
  11611. @param key key to read into]]>
  11612. </doc>
  11613. </method>
  11614. <method name="seek" return="boolean"
  11615. abstract="false" native="false" synchronized="true"
  11616. static="false" final="false" visibility="public"
  11617. deprecated="not deprecated">
  11618. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11619. <exception name="IOException" type="java.io.IOException"/>
  11620. <doc>
  11621. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11622. first entry after the named key. Returns true iff the named key exists
  11623. in this map.]]>
  11624. </doc>
  11625. </method>
  11626. <method name="next" return="boolean"
  11627. abstract="false" native="false" synchronized="true"
  11628. static="false" final="false" visibility="public"
  11629. deprecated="not deprecated">
  11630. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11631. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11632. <exception name="IOException" type="java.io.IOException"/>
  11633. <doc>
  11634. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11635. <code>val</code>. Returns true if such a pair exists and false when at
  11636. the end of the map]]>
  11637. </doc>
  11638. </method>
  11639. <method name="get" return="org.apache.hadoop.io.Writable"
  11640. abstract="false" native="false" synchronized="true"
  11641. static="false" final="false" visibility="public"
  11642. deprecated="not deprecated">
  11643. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11644. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11645. <exception name="IOException" type="java.io.IOException"/>
  11646. <doc>
  11647. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11648. </doc>
  11649. </method>
  11650. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11651. abstract="false" native="false" synchronized="true"
  11652. static="false" final="false" visibility="public"
  11653. deprecated="not deprecated">
  11654. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11655. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11656. <exception name="IOException" type="java.io.IOException"/>
  11657. <doc>
  11658. <![CDATA[Finds the record that is the closest match to the specified key.
  11659. Returns <code>key</code> or if it does not exist, at the first entry
  11660. after the named key.
  11661. - * @param key - key that we're trying to find
  11662. - * @param val - data value if key is found
  11663. - * @return - the key that was the closest match or null if eof.]]>
  11664. </doc>
  11665. </method>
  11666. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11667. abstract="false" native="false" synchronized="true"
  11668. static="false" final="false" visibility="public"
  11669. deprecated="not deprecated">
  11670. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11671. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11672. <param name="before" type="boolean"/>
  11673. <exception name="IOException" type="java.io.IOException"/>
  11674. <doc>
  11675. <![CDATA[Finds the record that is the closest match to the specified key.
  11676. @param key - key that we're trying to find
  11677. @param val - data value if key is found
  11678. @param before - IF true, and <code>key</code> does not exist, return
  11679. the first entry that falls just before the <code>key</code>. Otherwise,
  11680. return the record that sorts just after.
  11681. @return - the key that was the closest match or null if eof.]]>
  11682. </doc>
  11683. </method>
  11684. <method name="close"
  11685. abstract="false" native="false" synchronized="true"
  11686. static="false" final="false" visibility="public"
  11687. deprecated="not deprecated">
  11688. <exception name="IOException" type="java.io.IOException"/>
  11689. <doc>
  11690. <![CDATA[Close the map.]]>
  11691. </doc>
  11692. </method>
  11693. <doc>
  11694. <![CDATA[Provide access to an existing map.]]>
  11695. </doc>
  11696. </class>
  11697. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11698. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11699. <class name="MapFile.Writer" extends="java.lang.Object"
  11700. abstract="false"
  11701. static="true" final="false" visibility="public"
  11702. deprecated="not deprecated">
  11703. <implements name="java.io.Closeable"/>
  11704. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11705. static="false" final="false" visibility="public"
  11706. deprecated="not deprecated">
  11707. <exception name="IOException" type="java.io.IOException"/>
  11708. <doc>
  11709. <![CDATA[Create the named map for keys of the named class.]]>
  11710. </doc>
  11711. </constructor>
  11712. <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"
  11713. static="false" final="false" visibility="public"
  11714. deprecated="not deprecated">
  11715. <exception name="IOException" type="java.io.IOException"/>
  11716. <doc>
  11717. <![CDATA[Create the named map for keys of the named class.]]>
  11718. </doc>
  11719. </constructor>
  11720. <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"
  11721. static="false" final="false" visibility="public"
  11722. deprecated="not deprecated">
  11723. <exception name="IOException" type="java.io.IOException"/>
  11724. <doc>
  11725. <![CDATA[Create the named map for keys of the named class.]]>
  11726. </doc>
  11727. </constructor>
  11728. <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"
  11729. static="false" final="false" visibility="public"
  11730. deprecated="not deprecated">
  11731. <exception name="IOException" type="java.io.IOException"/>
  11732. <doc>
  11733. <![CDATA[Create the named map for keys of the named class.]]>
  11734. </doc>
  11735. </constructor>
  11736. <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"
  11737. static="false" final="false" visibility="public"
  11738. deprecated="not deprecated">
  11739. <exception name="IOException" type="java.io.IOException"/>
  11740. <doc>
  11741. <![CDATA[Create the named map using the named key comparator.]]>
  11742. </doc>
  11743. </constructor>
  11744. <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"
  11745. static="false" final="false" visibility="public"
  11746. deprecated="not deprecated">
  11747. <exception name="IOException" type="java.io.IOException"/>
  11748. <doc>
  11749. <![CDATA[Create the named map using the named key comparator.]]>
  11750. </doc>
  11751. </constructor>
  11752. <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"
  11753. static="false" final="false" visibility="public"
  11754. deprecated="not deprecated">
  11755. <exception name="IOException" type="java.io.IOException"/>
  11756. <doc>
  11757. <![CDATA[Create the named map using the named key comparator.]]>
  11758. </doc>
  11759. </constructor>
  11760. <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"
  11761. static="false" final="false" visibility="public"
  11762. deprecated="not deprecated">
  11763. <exception name="IOException" type="java.io.IOException"/>
  11764. <doc>
  11765. <![CDATA[Create the named map using the named key comparator.]]>
  11766. </doc>
  11767. </constructor>
  11768. <method name="getIndexInterval" return="int"
  11769. abstract="false" native="false" synchronized="false"
  11770. static="false" final="false" visibility="public"
  11771. deprecated="not deprecated">
  11772. <doc>
  11773. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11774. </doc>
  11775. </method>
  11776. <method name="setIndexInterval"
  11777. abstract="false" native="false" synchronized="false"
  11778. static="false" final="false" visibility="public"
  11779. deprecated="not deprecated">
  11780. <param name="interval" type="int"/>
  11781. <doc>
  11782. <![CDATA[Sets the index interval.
  11783. @see #getIndexInterval()]]>
  11784. </doc>
  11785. </method>
  11786. <method name="setIndexInterval"
  11787. abstract="false" native="false" synchronized="false"
  11788. static="true" final="false" visibility="public"
  11789. deprecated="not deprecated">
  11790. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11791. <param name="interval" type="int"/>
  11792. <doc>
  11793. <![CDATA[Sets the index interval and stores it in conf
  11794. @see #getIndexInterval()]]>
  11795. </doc>
  11796. </method>
  11797. <method name="close"
  11798. abstract="false" native="false" synchronized="true"
  11799. static="false" final="false" visibility="public"
  11800. deprecated="not deprecated">
  11801. <exception name="IOException" type="java.io.IOException"/>
  11802. <doc>
  11803. <![CDATA[Close the map.]]>
  11804. </doc>
  11805. </method>
  11806. <method name="append"
  11807. abstract="false" native="false" synchronized="true"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11811. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11812. <exception name="IOException" type="java.io.IOException"/>
  11813. <doc>
  11814. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11815. to the previous key added to the map.]]>
  11816. </doc>
  11817. </method>
  11818. <doc>
  11819. <![CDATA[Writes a new map.]]>
  11820. </doc>
  11821. </class>
  11822. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11823. <!-- start class org.apache.hadoop.io.MapWritable -->
  11824. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11825. abstract="false"
  11826. static="false" final="false" visibility="public"
  11827. deprecated="not deprecated">
  11828. <implements name="java.util.Map"/>
  11829. <constructor name="MapWritable"
  11830. static="false" final="false" visibility="public"
  11831. deprecated="not deprecated">
  11832. <doc>
  11833. <![CDATA[Default constructor.]]>
  11834. </doc>
  11835. </constructor>
  11836. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11837. static="false" final="false" visibility="public"
  11838. deprecated="not deprecated">
  11839. <doc>
  11840. <![CDATA[Copy constructor.
  11841. @param other the map to copy from]]>
  11842. </doc>
  11843. </constructor>
  11844. <method name="clear"
  11845. abstract="false" native="false" synchronized="false"
  11846. static="false" final="false" visibility="public"
  11847. deprecated="not deprecated">
  11848. <doc>
  11849. <![CDATA[{@inheritDoc}]]>
  11850. </doc>
  11851. </method>
  11852. <method name="containsKey" return="boolean"
  11853. abstract="false" native="false" synchronized="false"
  11854. static="false" final="false" visibility="public"
  11855. deprecated="not deprecated">
  11856. <param name="key" type="java.lang.Object"/>
  11857. <doc>
  11858. <![CDATA[{@inheritDoc}]]>
  11859. </doc>
  11860. </method>
  11861. <method name="containsValue" return="boolean"
  11862. abstract="false" native="false" synchronized="false"
  11863. static="false" final="false" visibility="public"
  11864. deprecated="not deprecated">
  11865. <param name="value" type="java.lang.Object"/>
  11866. <doc>
  11867. <![CDATA[{@inheritDoc}]]>
  11868. </doc>
  11869. </method>
  11870. <method name="entrySet" return="java.util.Set"
  11871. abstract="false" native="false" synchronized="false"
  11872. static="false" final="false" visibility="public"
  11873. deprecated="not deprecated">
  11874. <doc>
  11875. <![CDATA[{@inheritDoc}]]>
  11876. </doc>
  11877. </method>
  11878. <method name="get" return="org.apache.hadoop.io.Writable"
  11879. abstract="false" native="false" synchronized="false"
  11880. static="false" final="false" visibility="public"
  11881. deprecated="not deprecated">
  11882. <param name="key" type="java.lang.Object"/>
  11883. <doc>
  11884. <![CDATA[{@inheritDoc}]]>
  11885. </doc>
  11886. </method>
  11887. <method name="isEmpty" return="boolean"
  11888. abstract="false" native="false" synchronized="false"
  11889. static="false" final="false" visibility="public"
  11890. deprecated="not deprecated">
  11891. <doc>
  11892. <![CDATA[{@inheritDoc}]]>
  11893. </doc>
  11894. </method>
  11895. <method name="keySet" return="java.util.Set"
  11896. abstract="false" native="false" synchronized="false"
  11897. static="false" final="false" visibility="public"
  11898. deprecated="not deprecated">
  11899. <doc>
  11900. <![CDATA[{@inheritDoc}]]>
  11901. </doc>
  11902. </method>
  11903. <method name="put" return="org.apache.hadoop.io.Writable"
  11904. abstract="false" native="false" synchronized="false"
  11905. static="false" final="false" visibility="public"
  11906. deprecated="not deprecated">
  11907. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11908. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11909. <doc>
  11910. <![CDATA[{@inheritDoc}]]>
  11911. </doc>
  11912. </method>
  11913. <method name="putAll"
  11914. abstract="false" native="false" synchronized="false"
  11915. static="false" final="false" visibility="public"
  11916. deprecated="not deprecated">
  11917. <param name="t" type="java.util.Map"/>
  11918. <doc>
  11919. <![CDATA[{@inheritDoc}]]>
  11920. </doc>
  11921. </method>
  11922. <method name="remove" return="org.apache.hadoop.io.Writable"
  11923. abstract="false" native="false" synchronized="false"
  11924. static="false" final="false" visibility="public"
  11925. deprecated="not deprecated">
  11926. <param name="key" type="java.lang.Object"/>
  11927. <doc>
  11928. <![CDATA[{@inheritDoc}]]>
  11929. </doc>
  11930. </method>
  11931. <method name="size" return="int"
  11932. abstract="false" native="false" synchronized="false"
  11933. static="false" final="false" visibility="public"
  11934. deprecated="not deprecated">
  11935. <doc>
  11936. <![CDATA[{@inheritDoc}]]>
  11937. </doc>
  11938. </method>
  11939. <method name="values" return="java.util.Collection"
  11940. abstract="false" native="false" synchronized="false"
  11941. static="false" final="false" visibility="public"
  11942. deprecated="not deprecated">
  11943. <doc>
  11944. <![CDATA[{@inheritDoc}]]>
  11945. </doc>
  11946. </method>
  11947. <method name="write"
  11948. abstract="false" native="false" synchronized="false"
  11949. static="false" final="false" visibility="public"
  11950. deprecated="not deprecated">
  11951. <param name="out" type="java.io.DataOutput"/>
  11952. <exception name="IOException" type="java.io.IOException"/>
  11953. <doc>
  11954. <![CDATA[{@inheritDoc}]]>
  11955. </doc>
  11956. </method>
  11957. <method name="readFields"
  11958. abstract="false" native="false" synchronized="false"
  11959. static="false" final="false" visibility="public"
  11960. deprecated="not deprecated">
  11961. <param name="in" type="java.io.DataInput"/>
  11962. <exception name="IOException" type="java.io.IOException"/>
  11963. <doc>
  11964. <![CDATA[{@inheritDoc}]]>
  11965. </doc>
  11966. </method>
  11967. <doc>
  11968. <![CDATA[A Writable Map.]]>
  11969. </doc>
  11970. </class>
  11971. <!-- end class org.apache.hadoop.io.MapWritable -->
  11972. <!-- start class org.apache.hadoop.io.MD5Hash -->
  11973. <class name="MD5Hash" extends="java.lang.Object"
  11974. abstract="false"
  11975. static="false" final="false" visibility="public"
  11976. deprecated="not deprecated">
  11977. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11978. <constructor name="MD5Hash"
  11979. static="false" final="false" visibility="public"
  11980. deprecated="not deprecated">
  11981. <doc>
  11982. <![CDATA[Constructs an MD5Hash.]]>
  11983. </doc>
  11984. </constructor>
  11985. <constructor name="MD5Hash" type="java.lang.String"
  11986. static="false" final="false" visibility="public"
  11987. deprecated="not deprecated">
  11988. <doc>
  11989. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  11990. </doc>
  11991. </constructor>
  11992. <constructor name="MD5Hash" type="byte[]"
  11993. static="false" final="false" visibility="public"
  11994. deprecated="not deprecated">
  11995. <doc>
  11996. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  11997. </doc>
  11998. </constructor>
  11999. <method name="readFields"
  12000. abstract="false" native="false" synchronized="false"
  12001. static="false" final="false" visibility="public"
  12002. deprecated="not deprecated">
  12003. <param name="in" type="java.io.DataInput"/>
  12004. <exception name="IOException" type="java.io.IOException"/>
  12005. </method>
  12006. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  12007. abstract="false" native="false" synchronized="false"
  12008. static="true" final="false" visibility="public"
  12009. deprecated="not deprecated">
  12010. <param name="in" type="java.io.DataInput"/>
  12011. <exception name="IOException" type="java.io.IOException"/>
  12012. <doc>
  12013. <![CDATA[Constructs, reads and returns an instance.]]>
  12014. </doc>
  12015. </method>
  12016. <method name="write"
  12017. abstract="false" native="false" synchronized="false"
  12018. static="false" final="false" visibility="public"
  12019. deprecated="not deprecated">
  12020. <param name="out" type="java.io.DataOutput"/>
  12021. <exception name="IOException" type="java.io.IOException"/>
  12022. </method>
  12023. <method name="set"
  12024. abstract="false" native="false" synchronized="false"
  12025. static="false" final="false" visibility="public"
  12026. deprecated="not deprecated">
  12027. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12028. <doc>
  12029. <![CDATA[Copy the contents of another instance into this instance.]]>
  12030. </doc>
  12031. </method>
  12032. <method name="getDigest" return="byte[]"
  12033. abstract="false" native="false" synchronized="false"
  12034. static="false" final="false" visibility="public"
  12035. deprecated="not deprecated">
  12036. <doc>
  12037. <![CDATA[Returns the digest bytes.]]>
  12038. </doc>
  12039. </method>
  12040. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12041. abstract="false" native="false" synchronized="false"
  12042. static="true" final="false" visibility="public"
  12043. deprecated="not deprecated">
  12044. <param name="data" type="byte[]"/>
  12045. <doc>
  12046. <![CDATA[Construct a hash value for a byte array.]]>
  12047. </doc>
  12048. </method>
  12049. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12050. abstract="false" native="false" synchronized="false"
  12051. static="true" final="false" visibility="public"
  12052. deprecated="not deprecated">
  12053. <param name="in" type="java.io.InputStream"/>
  12054. <exception name="IOException" type="java.io.IOException"/>
  12055. <doc>
  12056. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12057. </doc>
  12058. </method>
  12059. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12060. abstract="false" native="false" synchronized="false"
  12061. static="true" final="false" visibility="public"
  12062. deprecated="not deprecated">
  12063. <param name="data" type="byte[]"/>
  12064. <param name="start" type="int"/>
  12065. <param name="len" type="int"/>
  12066. <doc>
  12067. <![CDATA[Construct a hash value for a byte array.]]>
  12068. </doc>
  12069. </method>
  12070. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12071. abstract="false" native="false" synchronized="false"
  12072. static="true" final="false" visibility="public"
  12073. deprecated="not deprecated">
  12074. <param name="string" type="java.lang.String"/>
  12075. <doc>
  12076. <![CDATA[Construct a hash value for a String.]]>
  12077. </doc>
  12078. </method>
  12079. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12080. abstract="false" native="false" synchronized="false"
  12081. static="true" final="false" visibility="public"
  12082. deprecated="not deprecated">
  12083. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12084. <doc>
  12085. <![CDATA[Construct a hash value for a String.]]>
  12086. </doc>
  12087. </method>
  12088. <method name="halfDigest" return="long"
  12089. abstract="false" native="false" synchronized="false"
  12090. static="false" final="false" visibility="public"
  12091. deprecated="not deprecated">
  12092. <doc>
  12093. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12094. </doc>
  12095. </method>
  12096. <method name="quarterDigest" return="int"
  12097. abstract="false" native="false" synchronized="false"
  12098. static="false" final="false" visibility="public"
  12099. deprecated="not deprecated">
  12100. <doc>
  12101. <![CDATA[Return a 32-bit digest of the MD5.
  12102. @return the first 4 bytes of the md5]]>
  12103. </doc>
  12104. </method>
  12105. <method name="equals" return="boolean"
  12106. abstract="false" native="false" synchronized="false"
  12107. static="false" final="false" visibility="public"
  12108. deprecated="not deprecated">
  12109. <param name="o" type="java.lang.Object"/>
  12110. <doc>
  12111. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12112. same values.]]>
  12113. </doc>
  12114. </method>
  12115. <method name="hashCode" return="int"
  12116. abstract="false" native="false" synchronized="false"
  12117. static="false" final="false" visibility="public"
  12118. deprecated="not deprecated">
  12119. <doc>
  12120. <![CDATA[Returns a hash code value for this object.
  12121. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12122. </doc>
  12123. </method>
  12124. <method name="compareTo" return="int"
  12125. abstract="false" native="false" synchronized="false"
  12126. static="false" final="false" visibility="public"
  12127. deprecated="not deprecated">
  12128. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12129. <doc>
  12130. <![CDATA[Compares this object with the specified object for order.]]>
  12131. </doc>
  12132. </method>
  12133. <method name="toString" return="java.lang.String"
  12134. abstract="false" native="false" synchronized="false"
  12135. static="false" final="false" visibility="public"
  12136. deprecated="not deprecated">
  12137. <doc>
  12138. <![CDATA[Returns a string representation of this object.]]>
  12139. </doc>
  12140. </method>
  12141. <method name="setDigest"
  12142. abstract="false" native="false" synchronized="false"
  12143. static="false" final="false" visibility="public"
  12144. deprecated="not deprecated">
  12145. <param name="hex" type="java.lang.String"/>
  12146. <doc>
  12147. <![CDATA[Sets the digest value from a hex string.]]>
  12148. </doc>
  12149. </method>
  12150. <field name="MD5_LEN" type="int"
  12151. transient="false" volatile="false"
  12152. static="true" final="true" visibility="public"
  12153. deprecated="not deprecated">
  12154. </field>
  12155. <doc>
  12156. <![CDATA[A Writable for MD5 hash values.]]>
  12157. </doc>
  12158. </class>
  12159. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12160. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12161. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12162. abstract="false"
  12163. static="true" final="false" visibility="public"
  12164. deprecated="not deprecated">
  12165. <constructor name="MD5Hash.Comparator"
  12166. static="false" final="false" visibility="public"
  12167. deprecated="not deprecated">
  12168. </constructor>
  12169. <method name="compare" return="int"
  12170. abstract="false" native="false" synchronized="false"
  12171. static="false" final="false" visibility="public"
  12172. deprecated="not deprecated">
  12173. <param name="b1" type="byte[]"/>
  12174. <param name="s1" type="int"/>
  12175. <param name="l1" type="int"/>
  12176. <param name="b2" type="byte[]"/>
  12177. <param name="s2" type="int"/>
  12178. <param name="l2" type="int"/>
  12179. </method>
  12180. <doc>
  12181. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12182. </doc>
  12183. </class>
  12184. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12185. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12186. <class name="MultipleIOException" extends="java.io.IOException"
  12187. abstract="false"
  12188. static="false" final="false" visibility="public"
  12189. deprecated="not deprecated">
  12190. <method name="getExceptions" return="java.util.List"
  12191. abstract="false" native="false" synchronized="false"
  12192. static="false" final="false" visibility="public"
  12193. deprecated="not deprecated">
  12194. <doc>
  12195. <![CDATA[@return the underlying exceptions]]>
  12196. </doc>
  12197. </method>
  12198. <method name="createIOException" return="java.io.IOException"
  12199. abstract="false" native="false" synchronized="false"
  12200. static="true" final="false" visibility="public"
  12201. deprecated="not deprecated">
  12202. <param name="exceptions" type="java.util.List"/>
  12203. <doc>
  12204. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12205. </doc>
  12206. </method>
  12207. <doc>
  12208. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12209. </doc>
  12210. </class>
  12211. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12212. <!-- start class org.apache.hadoop.io.NullWritable -->
  12213. <class name="NullWritable" extends="java.lang.Object"
  12214. abstract="false"
  12215. static="false" final="false" visibility="public"
  12216. deprecated="not deprecated">
  12217. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12218. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12219. abstract="false" native="false" synchronized="false"
  12220. static="true" final="false" visibility="public"
  12221. deprecated="not deprecated">
  12222. <doc>
  12223. <![CDATA[Returns the single instance of this class.]]>
  12224. </doc>
  12225. </method>
  12226. <method name="toString" return="java.lang.String"
  12227. abstract="false" native="false" synchronized="false"
  12228. static="false" final="false" visibility="public"
  12229. deprecated="not deprecated">
  12230. </method>
  12231. <method name="hashCode" return="int"
  12232. abstract="false" native="false" synchronized="false"
  12233. static="false" final="false" visibility="public"
  12234. deprecated="not deprecated">
  12235. </method>
  12236. <method name="compareTo" return="int"
  12237. abstract="false" native="false" synchronized="false"
  12238. static="false" final="false" visibility="public"
  12239. deprecated="not deprecated">
  12240. <param name="other" type="java.lang.Object"/>
  12241. </method>
  12242. <method name="equals" return="boolean"
  12243. abstract="false" native="false" synchronized="false"
  12244. static="false" final="false" visibility="public"
  12245. deprecated="not deprecated">
  12246. <param name="other" type="java.lang.Object"/>
  12247. </method>
  12248. <method name="readFields"
  12249. abstract="false" native="false" synchronized="false"
  12250. static="false" final="false" visibility="public"
  12251. deprecated="not deprecated">
  12252. <param name="in" type="java.io.DataInput"/>
  12253. <exception name="IOException" type="java.io.IOException"/>
  12254. </method>
  12255. <method name="write"
  12256. abstract="false" native="false" synchronized="false"
  12257. static="false" final="false" visibility="public"
  12258. deprecated="not deprecated">
  12259. <param name="out" type="java.io.DataOutput"/>
  12260. <exception name="IOException" type="java.io.IOException"/>
  12261. </method>
  12262. <doc>
  12263. <![CDATA[Singleton Writable with no data.]]>
  12264. </doc>
  12265. </class>
  12266. <!-- end class org.apache.hadoop.io.NullWritable -->
  12267. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12268. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12269. abstract="false"
  12270. static="true" final="false" visibility="public"
  12271. deprecated="not deprecated">
  12272. <constructor name="NullWritable.Comparator"
  12273. static="false" final="false" visibility="public"
  12274. deprecated="not deprecated">
  12275. </constructor>
  12276. <method name="compare" return="int"
  12277. abstract="false" native="false" synchronized="false"
  12278. static="false" final="false" visibility="public"
  12279. deprecated="not deprecated">
  12280. <param name="b1" type="byte[]"/>
  12281. <param name="s1" type="int"/>
  12282. <param name="l1" type="int"/>
  12283. <param name="b2" type="byte[]"/>
  12284. <param name="s2" type="int"/>
  12285. <param name="l2" type="int"/>
  12286. <doc>
  12287. <![CDATA[Compare the buffers in serialized form.]]>
  12288. </doc>
  12289. </method>
  12290. <doc>
  12291. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12292. </doc>
  12293. </class>
  12294. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12295. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12296. <class name="ObjectWritable" extends="java.lang.Object"
  12297. abstract="false"
  12298. static="false" final="false" visibility="public"
  12299. deprecated="not deprecated">
  12300. <implements name="org.apache.hadoop.io.Writable"/>
  12301. <implements name="org.apache.hadoop.conf.Configurable"/>
  12302. <constructor name="ObjectWritable"
  12303. static="false" final="false" visibility="public"
  12304. deprecated="not deprecated">
  12305. </constructor>
  12306. <constructor name="ObjectWritable" type="java.lang.Object"
  12307. static="false" final="false" visibility="public"
  12308. deprecated="not deprecated">
  12309. </constructor>
  12310. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12311. static="false" final="false" visibility="public"
  12312. deprecated="not deprecated">
  12313. </constructor>
  12314. <method name="get" return="java.lang.Object"
  12315. abstract="false" native="false" synchronized="false"
  12316. static="false" final="false" visibility="public"
  12317. deprecated="not deprecated">
  12318. <doc>
  12319. <![CDATA[Return the instance, or null if none.]]>
  12320. </doc>
  12321. </method>
  12322. <method name="getDeclaredClass" return="java.lang.Class"
  12323. abstract="false" native="false" synchronized="false"
  12324. static="false" final="false" visibility="public"
  12325. deprecated="not deprecated">
  12326. <doc>
  12327. <![CDATA[Return the class this is meant to be.]]>
  12328. </doc>
  12329. </method>
  12330. <method name="set"
  12331. abstract="false" native="false" synchronized="false"
  12332. static="false" final="false" visibility="public"
  12333. deprecated="not deprecated">
  12334. <param name="instance" type="java.lang.Object"/>
  12335. <doc>
  12336. <![CDATA[Reset the instance.]]>
  12337. </doc>
  12338. </method>
  12339. <method name="toString" return="java.lang.String"
  12340. abstract="false" native="false" synchronized="false"
  12341. static="false" final="false" visibility="public"
  12342. deprecated="not deprecated">
  12343. </method>
  12344. <method name="readFields"
  12345. abstract="false" native="false" synchronized="false"
  12346. static="false" final="false" visibility="public"
  12347. deprecated="not deprecated">
  12348. <param name="in" type="java.io.DataInput"/>
  12349. <exception name="IOException" type="java.io.IOException"/>
  12350. </method>
  12351. <method name="write"
  12352. abstract="false" native="false" synchronized="false"
  12353. static="false" final="false" visibility="public"
  12354. deprecated="not deprecated">
  12355. <param name="out" type="java.io.DataOutput"/>
  12356. <exception name="IOException" type="java.io.IOException"/>
  12357. </method>
  12358. <method name="writeObject"
  12359. abstract="false" native="false" synchronized="false"
  12360. static="true" final="false" visibility="public"
  12361. deprecated="not deprecated">
  12362. <param name="out" type="java.io.DataOutput"/>
  12363. <param name="instance" type="java.lang.Object"/>
  12364. <param name="declaredClass" type="java.lang.Class"/>
  12365. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12366. <exception name="IOException" type="java.io.IOException"/>
  12367. <doc>
  12368. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12369. the preceding.]]>
  12370. </doc>
  12371. </method>
  12372. <method name="readObject" return="java.lang.Object"
  12373. abstract="false" native="false" synchronized="false"
  12374. static="true" final="false" visibility="public"
  12375. deprecated="not deprecated">
  12376. <param name="in" type="java.io.DataInput"/>
  12377. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12378. <exception name="IOException" type="java.io.IOException"/>
  12379. <doc>
  12380. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12381. the preceding.]]>
  12382. </doc>
  12383. </method>
  12384. <method name="readObject" return="java.lang.Object"
  12385. abstract="false" native="false" synchronized="false"
  12386. static="true" final="false" visibility="public"
  12387. deprecated="not deprecated">
  12388. <param name="in" type="java.io.DataInput"/>
  12389. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12391. <exception name="IOException" type="java.io.IOException"/>
  12392. <doc>
  12393. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12394. the preceding.]]>
  12395. </doc>
  12396. </method>
  12397. <method name="setConf"
  12398. abstract="false" native="false" synchronized="false"
  12399. static="false" final="false" visibility="public"
  12400. deprecated="not deprecated">
  12401. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12402. </method>
  12403. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12404. abstract="false" native="false" synchronized="false"
  12405. static="false" final="false" visibility="public"
  12406. deprecated="not deprecated">
  12407. </method>
  12408. <doc>
  12409. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12410. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12411. </doc>
  12412. </class>
  12413. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12414. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12415. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12416. abstract="false"
  12417. static="false" final="false" visibility="public"
  12418. deprecated="not deprecated">
  12419. <constructor name="OutputBuffer"
  12420. static="false" final="false" visibility="public"
  12421. deprecated="not deprecated">
  12422. <doc>
  12423. <![CDATA[Constructs a new empty buffer.]]>
  12424. </doc>
  12425. </constructor>
  12426. <method name="getData" return="byte[]"
  12427. abstract="false" native="false" synchronized="false"
  12428. static="false" final="false" visibility="public"
  12429. deprecated="not deprecated">
  12430. <doc>
  12431. <![CDATA[Returns the current contents of the buffer.
  12432. Data is only valid to {@link #getLength()}.]]>
  12433. </doc>
  12434. </method>
  12435. <method name="getLength" return="int"
  12436. abstract="false" native="false" synchronized="false"
  12437. static="false" final="false" visibility="public"
  12438. deprecated="not deprecated">
  12439. <doc>
  12440. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12441. </doc>
  12442. </method>
  12443. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12444. abstract="false" native="false" synchronized="false"
  12445. static="false" final="false" visibility="public"
  12446. deprecated="not deprecated">
  12447. <doc>
  12448. <![CDATA[Resets the buffer to empty.]]>
  12449. </doc>
  12450. </method>
  12451. <method name="write"
  12452. abstract="false" native="false" synchronized="false"
  12453. static="false" final="false" visibility="public"
  12454. deprecated="not deprecated">
  12455. <param name="in" type="java.io.InputStream"/>
  12456. <param name="length" type="int"/>
  12457. <exception name="IOException" type="java.io.IOException"/>
  12458. <doc>
  12459. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12460. </doc>
  12461. </method>
  12462. <doc>
  12463. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12464. buffer.
  12465. <p>This saves memory over creating a new OutputStream and
  12466. ByteArrayOutputStream each time data is written.
  12467. <p>Typical usage is something like the following:<pre>
  12468. OutputBuffer buffer = new OutputBuffer();
  12469. while (... loop condition ...) {
  12470. buffer.reset();
  12471. ... write buffer using OutputStream methods ...
  12472. byte[] data = buffer.getData();
  12473. int dataLength = buffer.getLength();
  12474. ... write data to its ultimate destination ...
  12475. }
  12476. </pre>
  12477. @see DataOutputBuffer
  12478. @see InputBuffer]]>
  12479. </doc>
  12480. </class>
  12481. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12482. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12483. <interface name="RawComparator" abstract="true"
  12484. static="false" final="false" visibility="public"
  12485. deprecated="not deprecated">
  12486. <implements name="java.util.Comparator"/>
  12487. <method name="compare" return="int"
  12488. abstract="false" native="false" synchronized="false"
  12489. static="false" final="false" visibility="public"
  12490. deprecated="not deprecated">
  12491. <param name="b1" type="byte[]"/>
  12492. <param name="s1" type="int"/>
  12493. <param name="l1" type="int"/>
  12494. <param name="b2" type="byte[]"/>
  12495. <param name="s2" type="int"/>
  12496. <param name="l2" type="int"/>
  12497. </method>
  12498. <doc>
  12499. <![CDATA[<p>
  12500. A {@link Comparator} that operates directly on byte representations of
  12501. objects.
  12502. </p>
  12503. @param <T>
  12504. @see DeserializerComparator]]>
  12505. </doc>
  12506. </interface>
  12507. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12508. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12509. <class name="SecureIOUtils" extends="java.lang.Object"
  12510. abstract="false"
  12511. static="false" final="false" visibility="public"
  12512. deprecated="not deprecated">
  12513. <constructor name="SecureIOUtils"
  12514. static="false" final="false" visibility="public"
  12515. deprecated="not deprecated">
  12516. </constructor>
  12517. <method name="openForRead" return="java.io.FileInputStream"
  12518. abstract="false" native="false" synchronized="false"
  12519. static="true" final="false" visibility="public"
  12520. deprecated="not deprecated">
  12521. <param name="f" type="java.io.File"/>
  12522. <param name="expectedOwner" type="java.lang.String"/>
  12523. <exception name="IOException" type="java.io.IOException"/>
  12524. <doc>
  12525. <![CDATA[Open the given File for read access, verifying the expected user
  12526. constraints.
  12527. @param f the file that we are trying to open
  12528. @param expectedOwner the expected user owner for the file
  12529. @throws IOException if an IO Error occurred, or the user does not
  12530. match]]>
  12531. </doc>
  12532. </method>
  12533. <method name="createForWrite" return="java.io.FileOutputStream"
  12534. abstract="false" native="false" synchronized="false"
  12535. static="true" final="false" visibility="public"
  12536. deprecated="not deprecated">
  12537. <param name="f" type="java.io.File"/>
  12538. <param name="permissions" type="int"/>
  12539. <exception name="IOException" type="java.io.IOException"/>
  12540. <doc>
  12541. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12542. @param f the file that we want to create
  12543. @param permissions we want to have on the file (if security is enabled)
  12544. @throws AlreadyExistsException if the file already exists
  12545. @throws IOException if any other error occurred]]>
  12546. </doc>
  12547. </method>
  12548. <doc>
  12549. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12550. disk. The main issue this class tries to handle is that of symlink traversal.
  12551. <br/>
  12552. An example of such an attack is:
  12553. <ol>
  12554. <li> Malicious user removes his task's syslog file, and puts a link to the
  12555. jobToken file of a target user.</li>
  12556. <li> Malicious user tries to open the syslog file via the servlet on the
  12557. tasktracker.</li>
  12558. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12559. of the jobToken file. The malicious user can now access potentially sensitive
  12560. map outputs, etc. of the target user's job.</li>
  12561. </ol>
  12562. A similar attack is possible involving the
  12563. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12564. with unsecure write to a file.
  12565. <br/>]]>
  12566. </doc>
  12567. </class>
  12568. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12569. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12570. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12571. abstract="false"
  12572. static="true" final="false" visibility="public"
  12573. deprecated="not deprecated">
  12574. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12575. static="false" final="false" visibility="public"
  12576. deprecated="not deprecated">
  12577. </constructor>
  12578. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12579. static="false" final="false" visibility="public"
  12580. deprecated="not deprecated">
  12581. </constructor>
  12582. <doc>
  12583. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12584. because another file already existed at that path.]]>
  12585. </doc>
  12586. </class>
  12587. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12588. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12589. <class name="SequenceFile" extends="java.lang.Object"
  12590. abstract="false"
  12591. static="false" final="false" visibility="public"
  12592. deprecated="not deprecated">
  12593. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12594. abstract="false" native="false" synchronized="false"
  12595. static="true" final="false" visibility="public"
  12596. deprecated="Use
  12597. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12598. to get {@link CompressionType} for job-outputs.">
  12599. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12600. <doc>
  12601. <![CDATA[Get the compression type for the reduce outputs
  12602. @param job the job config to look in
  12603. @return the kind of compression to use
  12604. @deprecated Use
  12605. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12606. to get {@link CompressionType} for job-outputs.]]>
  12607. </doc>
  12608. </method>
  12609. <method name="setCompressionType"
  12610. abstract="false" native="false" synchronized="false"
  12611. static="true" final="false" visibility="public"
  12612. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12613. the {@link CompressionType} while creating the {@link SequenceFile} or
  12614. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12615. to specify the {@link CompressionType} for job-outputs.
  12616. or">
  12617. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12618. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12619. <doc>
  12620. <![CDATA[Set the compression type for sequence files.
  12621. @param job the configuration to modify
  12622. @param val the new compression type (none, block, record)
  12623. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  12624. the {@link CompressionType} while creating the {@link SequenceFile} or
  12625. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12626. to specify the {@link CompressionType} for job-outputs.
  12627. or]]>
  12628. </doc>
  12629. </method>
  12630. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12631. abstract="false" native="false" synchronized="false"
  12632. static="true" final="false" visibility="public"
  12633. deprecated="not deprecated">
  12634. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12635. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12636. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12637. <param name="keyClass" type="java.lang.Class"/>
  12638. <param name="valClass" type="java.lang.Class"/>
  12639. <exception name="IOException" type="java.io.IOException"/>
  12640. <doc>
  12641. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12642. @param fs The configured filesystem.
  12643. @param conf The configuration.
  12644. @param name The name of the file.
  12645. @param keyClass The 'key' type.
  12646. @param valClass The 'value' type.
  12647. @return Returns the handle to the constructed SequenceFile Writer.
  12648. @throws IOException]]>
  12649. </doc>
  12650. </method>
  12651. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12652. abstract="false" native="false" synchronized="false"
  12653. static="true" final="false" visibility="public"
  12654. deprecated="not deprecated">
  12655. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12656. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12657. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12658. <param name="keyClass" type="java.lang.Class"/>
  12659. <param name="valClass" type="java.lang.Class"/>
  12660. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12661. <exception name="IOException" type="java.io.IOException"/>
  12662. <doc>
  12663. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12664. @param fs The configured filesystem.
  12665. @param conf The configuration.
  12666. @param name The name of the file.
  12667. @param keyClass The 'key' type.
  12668. @param valClass The 'value' type.
  12669. @param compressionType The compression type.
  12670. @return Returns the handle to the constructed SequenceFile Writer.
  12671. @throws IOException]]>
  12672. </doc>
  12673. </method>
  12674. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12675. abstract="false" native="false" synchronized="false"
  12676. static="true" final="false" visibility="public"
  12677. deprecated="not deprecated">
  12678. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12679. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12680. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12681. <param name="keyClass" type="java.lang.Class"/>
  12682. <param name="valClass" type="java.lang.Class"/>
  12683. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12684. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12685. <exception name="IOException" type="java.io.IOException"/>
  12686. <doc>
  12687. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12688. @param fs The configured filesystem.
  12689. @param conf The configuration.
  12690. @param name The name of the file.
  12691. @param keyClass The 'key' type.
  12692. @param valClass The 'value' type.
  12693. @param compressionType The compression type.
  12694. @param progress The Progressable object to track progress.
  12695. @return Returns the handle to the constructed SequenceFile Writer.
  12696. @throws IOException]]>
  12697. </doc>
  12698. </method>
  12699. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12700. abstract="false" native="false" synchronized="false"
  12701. static="true" final="false" visibility="public"
  12702. deprecated="not deprecated">
  12703. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12704. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12705. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12706. <param name="keyClass" type="java.lang.Class"/>
  12707. <param name="valClass" type="java.lang.Class"/>
  12708. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12709. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12710. <exception name="IOException" type="java.io.IOException"/>
  12711. <doc>
  12712. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12713. @param fs The configured filesystem.
  12714. @param conf The configuration.
  12715. @param name The name of the file.
  12716. @param keyClass The 'key' type.
  12717. @param valClass The 'value' type.
  12718. @param compressionType The compression type.
  12719. @param codec The compression codec.
  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="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12734. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12735. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12736. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12737. <exception name="IOException" type="java.io.IOException"/>
  12738. <doc>
  12739. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12740. @param fs The configured filesystem.
  12741. @param conf The configuration.
  12742. @param name The name of the file.
  12743. @param keyClass The 'key' type.
  12744. @param valClass The 'value' type.
  12745. @param compressionType The compression type.
  12746. @param codec The compression codec.
  12747. @param progress The Progressable object to track progress.
  12748. @param metadata The metadata of the file.
  12749. @return Returns the handle to the constructed SequenceFile Writer.
  12750. @throws IOException]]>
  12751. </doc>
  12752. </method>
  12753. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12754. abstract="false" native="false" synchronized="false"
  12755. static="true" final="false" visibility="public"
  12756. deprecated="not deprecated">
  12757. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12758. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12759. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12760. <param name="keyClass" type="java.lang.Class"/>
  12761. <param name="valClass" type="java.lang.Class"/>
  12762. <param name="bufferSize" type="int"/>
  12763. <param name="replication" type="short"/>
  12764. <param name="blockSize" type="long"/>
  12765. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12766. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12767. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12768. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12769. <exception name="IOException" type="java.io.IOException"/>
  12770. <doc>
  12771. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12772. @param fs The configured filesystem.
  12773. @param conf The configuration.
  12774. @param name The name of the file.
  12775. @param keyClass The 'key' type.
  12776. @param valClass The 'value' type.
  12777. @param bufferSize buffer size for the underlaying outputstream.
  12778. @param replication replication factor for the file.
  12779. @param blockSize block size for the file.
  12780. @param compressionType The compression type.
  12781. @param codec The compression codec.
  12782. @param progress The Progressable object to track progress.
  12783. @param metadata The metadata of the file.
  12784. @return Returns the handle to the constructed SequenceFile Writer.
  12785. @throws IOException]]>
  12786. </doc>
  12787. </method>
  12788. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12789. abstract="false" native="false" synchronized="false"
  12790. static="true" final="false" visibility="public"
  12791. deprecated="not deprecated">
  12792. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12793. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12794. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12795. <param name="keyClass" type="java.lang.Class"/>
  12796. <param name="valClass" type="java.lang.Class"/>
  12797. <param name="bufferSize" type="int"/>
  12798. <param name="replication" type="short"/>
  12799. <param name="blockSize" type="long"/>
  12800. <param name="createParent" type="boolean"/>
  12801. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12802. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12803. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12804. <exception name="IOException" type="java.io.IOException"/>
  12805. <doc>
  12806. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12807. @param fs The configured filesystem.
  12808. @param conf The configuration.
  12809. @param name The name of the file.
  12810. @param keyClass The 'key' type.
  12811. @param valClass The 'value' type.
  12812. @param bufferSize buffer size for the underlaying outputstream.
  12813. @param replication replication factor for the file.
  12814. @param blockSize block size for the file.
  12815. @param createParent create parent directory if non-existent
  12816. @param compressionType The compression type.
  12817. @param codec The compression codec.
  12818. @param progress The Progressable object to track progress.
  12819. @param metadata The metadata of the file.
  12820. @return Returns the handle to the constructed SequenceFile Writer.
  12821. @throws IOException]]>
  12822. </doc>
  12823. </method>
  12824. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12825. abstract="false" native="false" synchronized="false"
  12826. static="true" final="false" visibility="public"
  12827. deprecated="not deprecated">
  12828. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12829. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12830. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12831. <param name="keyClass" type="java.lang.Class"/>
  12832. <param name="valClass" type="java.lang.Class"/>
  12833. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12834. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12835. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12836. <exception name="IOException" type="java.io.IOException"/>
  12837. <doc>
  12838. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12839. @param fs The configured filesystem.
  12840. @param conf The configuration.
  12841. @param name The name of the file.
  12842. @param keyClass The 'key' type.
  12843. @param valClass The 'value' type.
  12844. @param compressionType The compression type.
  12845. @param codec The compression codec.
  12846. @param progress The Progressable object to track progress.
  12847. @return Returns the handle to the constructed SequenceFile Writer.
  12848. @throws IOException]]>
  12849. </doc>
  12850. </method>
  12851. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12852. abstract="false" native="false" synchronized="false"
  12853. static="true" final="false" visibility="public"
  12854. deprecated="not deprecated">
  12855. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12856. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12857. <param name="keyClass" type="java.lang.Class"/>
  12858. <param name="valClass" type="java.lang.Class"/>
  12859. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12860. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12861. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12862. <exception name="IOException" type="java.io.IOException"/>
  12863. <doc>
  12864. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12865. @param conf The configuration.
  12866. @param out The stream on top which the writer is to be constructed.
  12867. @param keyClass The 'key' type.
  12868. @param valClass The 'value' type.
  12869. @param compressionType The compression type.
  12870. @param codec The compression codec.
  12871. @param metadata The metadata of the file.
  12872. @return Returns the handle to the constructed SequenceFile Writer.
  12873. @throws IOException]]>
  12874. </doc>
  12875. </method>
  12876. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12877. abstract="false" native="false" synchronized="false"
  12878. static="true" final="false" visibility="public"
  12879. deprecated="not deprecated">
  12880. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12881. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12882. <param name="keyClass" type="java.lang.Class"/>
  12883. <param name="valClass" type="java.lang.Class"/>
  12884. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12885. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12886. <exception name="IOException" type="java.io.IOException"/>
  12887. <doc>
  12888. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12889. @param conf The configuration.
  12890. @param out The stream on top which the writer is to be constructed.
  12891. @param keyClass The 'key' type.
  12892. @param valClass The 'value' type.
  12893. @param compressionType The compression type.
  12894. @param codec The compression codec.
  12895. @return Returns the handle to the constructed SequenceFile Writer.
  12896. @throws IOException]]>
  12897. </doc>
  12898. </method>
  12899. <field name="SYNC_INTERVAL" type="int"
  12900. transient="false" volatile="false"
  12901. static="true" final="true" visibility="public"
  12902. deprecated="not deprecated">
  12903. <doc>
  12904. <![CDATA[The number of bytes between sync points.]]>
  12905. </doc>
  12906. </field>
  12907. <doc>
  12908. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  12909. pairs.
  12910. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  12911. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  12912. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  12913. {@link CompressionType} used to compress key/value pairs:
  12914. <ol>
  12915. <li>
  12916. <code>Writer</code> : Uncompressed records.
  12917. </li>
  12918. <li>
  12919. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  12920. values.
  12921. </li>
  12922. <li>
  12923. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  12924. values are collected in 'blocks'
  12925. separately and compressed. The size of
  12926. the 'block' is configurable.
  12927. </ol>
  12928. <p>The actual compression algorithm used to compress key and/or values can be
  12929. specified by using the appropriate {@link CompressionCodec}.</p>
  12930. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  12931. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  12932. <p>The {@link Reader} acts as the bridge and can read any of the above
  12933. <code>SequenceFile</code> formats.</p>
  12934. <h4 id="Formats">SequenceFile Formats</h4>
  12935. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  12936. depending on the <code>CompressionType</code> specified. All of them share a
  12937. <a href="#Header">common header</a> described below.
  12938. <h5 id="Header">SequenceFile Header</h5>
  12939. <ul>
  12940. <li>
  12941. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  12942. version number (e.g. SEQ4 or SEQ6)
  12943. </li>
  12944. <li>
  12945. keyClassName -key class
  12946. </li>
  12947. <li>
  12948. valueClassName - value class
  12949. </li>
  12950. <li>
  12951. compression - A boolean which specifies if compression is turned on for
  12952. keys/values in this file.
  12953. </li>
  12954. <li>
  12955. blockCompression - A boolean which specifies if block-compression is
  12956. turned on for keys/values in this file.
  12957. </li>
  12958. <li>
  12959. compression codec - <code>CompressionCodec</code> class which is used for
  12960. compression of keys and/or values (if compression is
  12961. enabled).
  12962. </li>
  12963. <li>
  12964. metadata - {@link Metadata} for this file.
  12965. </li>
  12966. <li>
  12967. sync - A sync marker to denote end of the header.
  12968. </li>
  12969. </ul>
  12970. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  12971. <ul>
  12972. <li>
  12973. <a href="#Header">Header</a>
  12974. </li>
  12975. <li>
  12976. Record
  12977. <ul>
  12978. <li>Record length</li>
  12979. <li>Key length</li>
  12980. <li>Key</li>
  12981. <li>Value</li>
  12982. </ul>
  12983. </li>
  12984. <li>
  12985. A sync-marker every few <code>100</code> bytes or so.
  12986. </li>
  12987. </ul>
  12988. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  12989. <ul>
  12990. <li>
  12991. <a href="#Header">Header</a>
  12992. </li>
  12993. <li>
  12994. Record
  12995. <ul>
  12996. <li>Record length</li>
  12997. <li>Key length</li>
  12998. <li>Key</li>
  12999. <li><i>Compressed</i> Value</li>
  13000. </ul>
  13001. </li>
  13002. <li>
  13003. A sync-marker every few <code>100</code> bytes or so.
  13004. </li>
  13005. </ul>
  13006. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  13007. <ul>
  13008. <li>
  13009. <a href="#Header">Header</a>
  13010. </li>
  13011. <li>
  13012. Record <i>Block</i>
  13013. <ul>
  13014. <li>Compressed key-lengths block-size</li>
  13015. <li>Compressed key-lengths block</li>
  13016. <li>Compressed keys block-size</li>
  13017. <li>Compressed keys block</li>
  13018. <li>Compressed value-lengths block-size</li>
  13019. <li>Compressed value-lengths block</li>
  13020. <li>Compressed values block-size</li>
  13021. <li>Compressed values block</li>
  13022. </ul>
  13023. </li>
  13024. <li>
  13025. A sync-marker every few <code>100</code> bytes or so.
  13026. </li>
  13027. </ul>
  13028. <p>The compressed blocks of key lengths and value lengths consist of the
  13029. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13030. format.</p>
  13031. @see CompressionCodec]]>
  13032. </doc>
  13033. </class>
  13034. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13035. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13036. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13037. abstract="false"
  13038. static="true" final="true" visibility="public"
  13039. deprecated="not deprecated">
  13040. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13041. abstract="false" native="false" synchronized="false"
  13042. static="true" final="false" visibility="public"
  13043. deprecated="not deprecated">
  13044. </method>
  13045. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13046. abstract="false" native="false" synchronized="false"
  13047. static="true" final="false" visibility="public"
  13048. deprecated="not deprecated">
  13049. <param name="name" type="java.lang.String"/>
  13050. </method>
  13051. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13052. transient="false" volatile="false"
  13053. static="true" final="true" visibility="public"
  13054. deprecated="not deprecated">
  13055. <doc>
  13056. <![CDATA[Do not compress records.]]>
  13057. </doc>
  13058. </field>
  13059. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13060. transient="false" volatile="false"
  13061. static="true" final="true" visibility="public"
  13062. deprecated="not deprecated">
  13063. <doc>
  13064. <![CDATA[Compress values only, each separately.]]>
  13065. </doc>
  13066. </field>
  13067. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13068. transient="false" volatile="false"
  13069. static="true" final="true" visibility="public"
  13070. deprecated="not deprecated">
  13071. <doc>
  13072. <![CDATA[Compress sequences of records together in blocks.]]>
  13073. </doc>
  13074. </field>
  13075. <doc>
  13076. <![CDATA[The compression type used to compress key/value pairs in the
  13077. {@link SequenceFile}.
  13078. @see SequenceFile.Writer]]>
  13079. </doc>
  13080. </class>
  13081. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13082. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13083. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13084. abstract="false"
  13085. static="true" final="false" visibility="public"
  13086. deprecated="not deprecated">
  13087. <implements name="org.apache.hadoop.io.Writable"/>
  13088. <constructor name="SequenceFile.Metadata"
  13089. static="false" final="false" visibility="public"
  13090. deprecated="not deprecated">
  13091. </constructor>
  13092. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13093. static="false" final="false" visibility="public"
  13094. deprecated="not deprecated">
  13095. </constructor>
  13096. <method name="get" return="org.apache.hadoop.io.Text"
  13097. abstract="false" native="false" synchronized="false"
  13098. static="false" final="false" visibility="public"
  13099. deprecated="not deprecated">
  13100. <param name="name" type="org.apache.hadoop.io.Text"/>
  13101. </method>
  13102. <method name="set"
  13103. abstract="false" native="false" synchronized="false"
  13104. static="false" final="false" visibility="public"
  13105. deprecated="not deprecated">
  13106. <param name="name" type="org.apache.hadoop.io.Text"/>
  13107. <param name="value" type="org.apache.hadoop.io.Text"/>
  13108. </method>
  13109. <method name="getMetadata" return="java.util.TreeMap"
  13110. abstract="false" native="false" synchronized="false"
  13111. static="false" final="false" visibility="public"
  13112. deprecated="not deprecated">
  13113. </method>
  13114. <method name="write"
  13115. abstract="false" native="false" synchronized="false"
  13116. static="false" final="false" visibility="public"
  13117. deprecated="not deprecated">
  13118. <param name="out" type="java.io.DataOutput"/>
  13119. <exception name="IOException" type="java.io.IOException"/>
  13120. </method>
  13121. <method name="readFields"
  13122. abstract="false" native="false" synchronized="false"
  13123. static="false" final="false" visibility="public"
  13124. deprecated="not deprecated">
  13125. <param name="in" type="java.io.DataInput"/>
  13126. <exception name="IOException" type="java.io.IOException"/>
  13127. </method>
  13128. <method name="equals" return="boolean"
  13129. abstract="false" native="false" synchronized="false"
  13130. static="false" final="false" visibility="public"
  13131. deprecated="not deprecated">
  13132. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13133. </method>
  13134. <method name="hashCode" return="int"
  13135. abstract="false" native="false" synchronized="false"
  13136. static="false" final="false" visibility="public"
  13137. deprecated="not deprecated">
  13138. </method>
  13139. <method name="toString" return="java.lang.String"
  13140. abstract="false" native="false" synchronized="false"
  13141. static="false" final="false" visibility="public"
  13142. deprecated="not deprecated">
  13143. </method>
  13144. <doc>
  13145. <![CDATA[The class encapsulating with the metadata of a file.
  13146. The metadata of a file is a list of attribute name/value
  13147. pairs of Text type.]]>
  13148. </doc>
  13149. </class>
  13150. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13151. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13152. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13153. abstract="false"
  13154. static="true" final="false" visibility="public"
  13155. deprecated="not deprecated">
  13156. <implements name="java.io.Closeable"/>
  13157. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13158. static="false" final="false" visibility="public"
  13159. deprecated="not deprecated">
  13160. <exception name="IOException" type="java.io.IOException"/>
  13161. <doc>
  13162. <![CDATA[Open the named file.]]>
  13163. </doc>
  13164. </constructor>
  13165. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13166. abstract="false" native="false" synchronized="false"
  13167. static="false" final="false" visibility="protected"
  13168. deprecated="not deprecated">
  13169. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13170. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13171. <param name="bufferSize" type="int"/>
  13172. <param name="length" type="long"/>
  13173. <exception name="IOException" type="java.io.IOException"/>
  13174. <doc>
  13175. <![CDATA[Override this method to specialize the type of
  13176. {@link FSDataInputStream} returned.]]>
  13177. </doc>
  13178. </method>
  13179. <method name="close"
  13180. abstract="false" native="false" synchronized="true"
  13181. static="false" final="false" visibility="public"
  13182. deprecated="not deprecated">
  13183. <exception name="IOException" type="java.io.IOException"/>
  13184. <doc>
  13185. <![CDATA[Close the file.]]>
  13186. </doc>
  13187. </method>
  13188. <method name="getKeyClassName" return="java.lang.String"
  13189. abstract="false" native="false" synchronized="false"
  13190. static="false" final="false" visibility="public"
  13191. deprecated="not deprecated">
  13192. <doc>
  13193. <![CDATA[Returns the name of the key class.]]>
  13194. </doc>
  13195. </method>
  13196. <method name="getKeyClass" return="java.lang.Class"
  13197. abstract="false" native="false" synchronized="true"
  13198. static="false" final="false" visibility="public"
  13199. deprecated="not deprecated">
  13200. <doc>
  13201. <![CDATA[Returns the class of keys in this file.]]>
  13202. </doc>
  13203. </method>
  13204. <method name="getValueClassName" return="java.lang.String"
  13205. abstract="false" native="false" synchronized="false"
  13206. static="false" final="false" visibility="public"
  13207. deprecated="not deprecated">
  13208. <doc>
  13209. <![CDATA[Returns the name of the value class.]]>
  13210. </doc>
  13211. </method>
  13212. <method name="getValueClass" return="java.lang.Class"
  13213. abstract="false" native="false" synchronized="true"
  13214. static="false" final="false" visibility="public"
  13215. deprecated="not deprecated">
  13216. <doc>
  13217. <![CDATA[Returns the class of values in this file.]]>
  13218. </doc>
  13219. </method>
  13220. <method name="isCompressed" return="boolean"
  13221. abstract="false" native="false" synchronized="false"
  13222. static="false" final="false" visibility="public"
  13223. deprecated="not deprecated">
  13224. <doc>
  13225. <![CDATA[Returns true if values are compressed.]]>
  13226. </doc>
  13227. </method>
  13228. <method name="isBlockCompressed" return="boolean"
  13229. abstract="false" native="false" synchronized="false"
  13230. static="false" final="false" visibility="public"
  13231. deprecated="not deprecated">
  13232. <doc>
  13233. <![CDATA[Returns true if records are block-compressed.]]>
  13234. </doc>
  13235. </method>
  13236. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13237. abstract="false" native="false" synchronized="false"
  13238. static="false" final="false" visibility="public"
  13239. deprecated="not deprecated">
  13240. <doc>
  13241. <![CDATA[Returns the compression codec of data in this file.]]>
  13242. </doc>
  13243. </method>
  13244. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13245. abstract="false" native="false" synchronized="false"
  13246. static="false" final="false" visibility="public"
  13247. deprecated="not deprecated">
  13248. <doc>
  13249. <![CDATA[Returns the metadata object of the file]]>
  13250. </doc>
  13251. </method>
  13252. <method name="getCurrentValue"
  13253. abstract="false" native="false" synchronized="true"
  13254. static="false" final="false" visibility="public"
  13255. deprecated="not deprecated">
  13256. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13257. <exception name="IOException" type="java.io.IOException"/>
  13258. <doc>
  13259. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13260. @param val : The 'value' to be read.
  13261. @throws IOException]]>
  13262. </doc>
  13263. </method>
  13264. <method name="getCurrentValue" return="java.lang.Object"
  13265. abstract="false" native="false" synchronized="true"
  13266. static="false" final="false" visibility="public"
  13267. deprecated="not deprecated">
  13268. <param name="val" type="java.lang.Object"/>
  13269. <exception name="IOException" type="java.io.IOException"/>
  13270. <doc>
  13271. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13272. @param val : The 'value' to be read.
  13273. @throws IOException]]>
  13274. </doc>
  13275. </method>
  13276. <method name="next" return="boolean"
  13277. abstract="false" native="false" synchronized="true"
  13278. static="false" final="false" visibility="public"
  13279. deprecated="not deprecated">
  13280. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13281. <exception name="IOException" type="java.io.IOException"/>
  13282. <doc>
  13283. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13284. value. True if another entry exists, and false at end of file.]]>
  13285. </doc>
  13286. </method>
  13287. <method name="next" return="boolean"
  13288. abstract="false" native="false" synchronized="true"
  13289. static="false" final="false" visibility="public"
  13290. deprecated="not deprecated">
  13291. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13292. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13293. <exception name="IOException" type="java.io.IOException"/>
  13294. <doc>
  13295. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13296. <code>val</code>. Returns true if such a pair exists and false when at
  13297. end of file]]>
  13298. </doc>
  13299. </method>
  13300. <method name="next" return="int"
  13301. abstract="false" native="false" synchronized="true"
  13302. static="false" final="false" visibility="public"
  13303. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13304. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13305. <exception name="IOException" type="java.io.IOException"/>
  13306. <doc>
  13307. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13308. </doc>
  13309. </method>
  13310. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13311. abstract="false" native="false" synchronized="false"
  13312. static="false" final="false" visibility="public"
  13313. deprecated="not deprecated">
  13314. </method>
  13315. <method name="nextRaw" return="int"
  13316. abstract="false" native="false" synchronized="true"
  13317. static="false" final="false" visibility="public"
  13318. deprecated="not deprecated">
  13319. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13320. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13321. <exception name="IOException" type="java.io.IOException"/>
  13322. <doc>
  13323. <![CDATA[Read 'raw' records.
  13324. @param key - The buffer into which the key is read
  13325. @param val - The 'raw' value
  13326. @return Returns the total record length or -1 for end of file
  13327. @throws IOException]]>
  13328. </doc>
  13329. </method>
  13330. <method name="nextRawKey" return="int"
  13331. abstract="false" native="false" synchronized="false"
  13332. static="false" final="false" visibility="public"
  13333. deprecated="not deprecated">
  13334. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13335. <exception name="IOException" type="java.io.IOException"/>
  13336. <doc>
  13337. <![CDATA[Read 'raw' keys.
  13338. @param key - The buffer into which the key is read
  13339. @return Returns the key length or -1 for end of file
  13340. @throws IOException]]>
  13341. </doc>
  13342. </method>
  13343. <method name="next" return="java.lang.Object"
  13344. abstract="false" native="false" synchronized="true"
  13345. static="false" final="false" visibility="public"
  13346. deprecated="not deprecated">
  13347. <param name="key" type="java.lang.Object"/>
  13348. <exception name="IOException" type="java.io.IOException"/>
  13349. <doc>
  13350. <![CDATA[Read the next key in the file, skipping its
  13351. value. Return null at end of file.]]>
  13352. </doc>
  13353. </method>
  13354. <method name="nextRawValue" return="int"
  13355. abstract="false" native="false" synchronized="true"
  13356. static="false" final="false" visibility="public"
  13357. deprecated="not deprecated">
  13358. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13359. <exception name="IOException" type="java.io.IOException"/>
  13360. <doc>
  13361. <![CDATA[Read 'raw' values.
  13362. @param val - The 'raw' value
  13363. @return Returns the value length
  13364. @throws IOException]]>
  13365. </doc>
  13366. </method>
  13367. <method name="seek"
  13368. abstract="false" native="false" synchronized="true"
  13369. static="false" final="false" visibility="public"
  13370. deprecated="not deprecated">
  13371. <param name="position" type="long"/>
  13372. <exception name="IOException" type="java.io.IOException"/>
  13373. <doc>
  13374. <![CDATA[Set the current byte position in the input file.
  13375. <p>The position passed must be a position returned by {@link
  13376. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13377. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13378. </doc>
  13379. </method>
  13380. <method name="sync"
  13381. abstract="false" native="false" synchronized="true"
  13382. static="false" final="false" visibility="public"
  13383. deprecated="not deprecated">
  13384. <param name="position" type="long"/>
  13385. <exception name="IOException" type="java.io.IOException"/>
  13386. <doc>
  13387. <![CDATA[Seek to the next sync mark past a given position.]]>
  13388. </doc>
  13389. </method>
  13390. <method name="syncSeen" return="boolean"
  13391. abstract="false" native="false" synchronized="false"
  13392. static="false" final="false" visibility="public"
  13393. deprecated="not deprecated">
  13394. <doc>
  13395. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13396. </doc>
  13397. </method>
  13398. <method name="getPosition" return="long"
  13399. abstract="false" native="false" synchronized="true"
  13400. static="false" final="false" visibility="public"
  13401. deprecated="not deprecated">
  13402. <exception name="IOException" type="java.io.IOException"/>
  13403. <doc>
  13404. <![CDATA[Return the current byte position in the input file.]]>
  13405. </doc>
  13406. </method>
  13407. <method name="toString" return="java.lang.String"
  13408. abstract="false" native="false" synchronized="false"
  13409. static="false" final="false" visibility="public"
  13410. deprecated="not deprecated">
  13411. <doc>
  13412. <![CDATA[Returns the name of the file.]]>
  13413. </doc>
  13414. </method>
  13415. <doc>
  13416. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13417. </doc>
  13418. </class>
  13419. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13420. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13421. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13422. abstract="false"
  13423. static="true" final="false" visibility="public"
  13424. deprecated="not deprecated">
  13425. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13426. static="false" final="false" visibility="public"
  13427. deprecated="not deprecated">
  13428. <doc>
  13429. <![CDATA[Sort and merge files containing the named classes.]]>
  13430. </doc>
  13431. </constructor>
  13432. <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"
  13433. static="false" final="false" visibility="public"
  13434. deprecated="not deprecated">
  13435. <doc>
  13436. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13437. </doc>
  13438. </constructor>
  13439. <method name="setFactor"
  13440. abstract="false" native="false" synchronized="false"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. <param name="factor" type="int"/>
  13444. <doc>
  13445. <![CDATA[Set the number of streams to merge at once.]]>
  13446. </doc>
  13447. </method>
  13448. <method name="getFactor" return="int"
  13449. abstract="false" native="false" synchronized="false"
  13450. static="false" final="false" visibility="public"
  13451. deprecated="not deprecated">
  13452. <doc>
  13453. <![CDATA[Get the number of streams to merge at once.]]>
  13454. </doc>
  13455. </method>
  13456. <method name="setMemory"
  13457. abstract="false" native="false" synchronized="false"
  13458. static="false" final="false" visibility="public"
  13459. deprecated="not deprecated">
  13460. <param name="memory" type="int"/>
  13461. <doc>
  13462. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13463. </doc>
  13464. </method>
  13465. <method name="getMemory" return="int"
  13466. abstract="false" native="false" synchronized="false"
  13467. static="false" final="false" visibility="public"
  13468. deprecated="not deprecated">
  13469. <doc>
  13470. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13471. </doc>
  13472. </method>
  13473. <method name="setProgressable"
  13474. abstract="false" native="false" synchronized="false"
  13475. static="false" final="false" visibility="public"
  13476. deprecated="not deprecated">
  13477. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13478. <doc>
  13479. <![CDATA[Set the progressable object in order to report progress.]]>
  13480. </doc>
  13481. </method>
  13482. <method name="sort"
  13483. abstract="false" native="false" synchronized="false"
  13484. static="false" final="false" visibility="public"
  13485. deprecated="not deprecated">
  13486. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13487. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13488. <param name="deleteInput" type="boolean"/>
  13489. <exception name="IOException" type="java.io.IOException"/>
  13490. <doc>
  13491. <![CDATA[Perform a file sort from a set of input files into an output file.
  13492. @param inFiles the files to be sorted
  13493. @param outFile the sorted output file
  13494. @param deleteInput should the input files be deleted as they are read?]]>
  13495. </doc>
  13496. </method>
  13497. <method name="sortAndIterate" 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="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13502. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13503. <param name="deleteInput" type="boolean"/>
  13504. <exception name="IOException" type="java.io.IOException"/>
  13505. <doc>
  13506. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13507. @param inFiles the files to be sorted
  13508. @param tempDir the directory where temp files are created during sort
  13509. @param deleteInput should the input files be deleted as they are read?
  13510. @return iterator the RawKeyValueIterator]]>
  13511. </doc>
  13512. </method>
  13513. <method name="sort"
  13514. abstract="false" native="false" synchronized="false"
  13515. static="false" final="false" visibility="public"
  13516. deprecated="not deprecated">
  13517. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13518. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13519. <exception name="IOException" type="java.io.IOException"/>
  13520. <doc>
  13521. <![CDATA[The backwards compatible interface to sort.
  13522. @param inFile the input file to sort
  13523. @param outFile the sorted output file]]>
  13524. </doc>
  13525. </method>
  13526. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13527. abstract="false" native="false" synchronized="false"
  13528. static="false" final="false" visibility="public"
  13529. deprecated="not deprecated">
  13530. <param name="segments" type="java.util.List"/>
  13531. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13532. <exception name="IOException" type="java.io.IOException"/>
  13533. <doc>
  13534. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13535. @param segments the list of SegmentDescriptors
  13536. @param tmpDir the directory to write temporary files into
  13537. @return RawKeyValueIterator
  13538. @throws IOException]]>
  13539. </doc>
  13540. </method>
  13541. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13542. abstract="false" native="false" synchronized="false"
  13543. static="false" final="false" visibility="public"
  13544. deprecated="not deprecated">
  13545. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13546. <param name="deleteInputs" type="boolean"/>
  13547. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13548. <exception name="IOException" type="java.io.IOException"/>
  13549. <doc>
  13550. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13551. that is already set
  13552. @param inNames the array of path names
  13553. @param deleteInputs true if the input files should be deleted when
  13554. unnecessary
  13555. @param tmpDir the directory to write temporary files into
  13556. @return RawKeyValueIteratorMergeQueue
  13557. @throws IOException]]>
  13558. </doc>
  13559. </method>
  13560. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13561. abstract="false" native="false" synchronized="false"
  13562. static="false" final="false" visibility="public"
  13563. deprecated="not deprecated">
  13564. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13565. <param name="deleteInputs" type="boolean"/>
  13566. <param name="factor" type="int"/>
  13567. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13568. <exception name="IOException" type="java.io.IOException"/>
  13569. <doc>
  13570. <![CDATA[Merges the contents of files passed in Path[]
  13571. @param inNames the array of path names
  13572. @param deleteInputs true if the input files should be deleted when
  13573. unnecessary
  13574. @param factor the factor that will be used as the maximum merge fan-in
  13575. @param tmpDir the directory to write temporary files into
  13576. @return RawKeyValueIteratorMergeQueue
  13577. @throws IOException]]>
  13578. </doc>
  13579. </method>
  13580. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13581. abstract="false" native="false" synchronized="false"
  13582. static="false" final="false" visibility="public"
  13583. deprecated="not deprecated">
  13584. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13585. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13586. <param name="deleteInputs" type="boolean"/>
  13587. <exception name="IOException" type="java.io.IOException"/>
  13588. <doc>
  13589. <![CDATA[Merges the contents of files passed in Path[]
  13590. @param inNames the array of path names
  13591. @param tempDir the directory for creating temp files during merge
  13592. @param deleteInputs true if the input files should be deleted when
  13593. unnecessary
  13594. @return RawKeyValueIteratorMergeQueue
  13595. @throws IOException]]>
  13596. </doc>
  13597. </method>
  13598. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13599. abstract="false" native="false" synchronized="false"
  13600. static="false" final="false" visibility="public"
  13601. deprecated="not deprecated">
  13602. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13603. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13604. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13605. <exception name="IOException" type="java.io.IOException"/>
  13606. <doc>
  13607. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13608. corresponding Writer
  13609. @param inputFile the path of the input file whose attributes should be
  13610. cloned
  13611. @param outputFile the path of the output file
  13612. @param prog the Progressable to report status during the file write
  13613. @return Writer
  13614. @throws IOException]]>
  13615. </doc>
  13616. </method>
  13617. <method name="writeFile"
  13618. abstract="false" native="false" synchronized="false"
  13619. static="false" final="false" visibility="public"
  13620. deprecated="not deprecated">
  13621. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13622. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  13623. <exception name="IOException" type="java.io.IOException"/>
  13624. <doc>
  13625. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  13626. passed writer
  13627. @param records the RawKeyValueIterator
  13628. @param writer the Writer created earlier
  13629. @throws IOException]]>
  13630. </doc>
  13631. </method>
  13632. <method name="merge"
  13633. abstract="false" native="false" synchronized="false"
  13634. static="false" final="false" visibility="public"
  13635. deprecated="not deprecated">
  13636. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13637. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13638. <exception name="IOException" type="java.io.IOException"/>
  13639. <doc>
  13640. <![CDATA[Merge the provided files.
  13641. @param inFiles the array of input path names
  13642. @param outFile the final output file
  13643. @throws IOException]]>
  13644. </doc>
  13645. </method>
  13646. <doc>
  13647. <![CDATA[Sorts key/value pairs in a sequence-format file.
  13648. <p>For best performance, applications should make sure that the {@link
  13649. Writable#readFields(DataInput)} implementation of their keys is
  13650. very efficient. In particular, it should avoid allocating memory.]]>
  13651. </doc>
  13652. </class>
  13653. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  13654. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13655. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  13656. static="true" final="false" visibility="public"
  13657. deprecated="not deprecated">
  13658. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13659. abstract="false" native="false" synchronized="false"
  13660. static="false" final="false" visibility="public"
  13661. deprecated="not deprecated">
  13662. <exception name="IOException" type="java.io.IOException"/>
  13663. <doc>
  13664. <![CDATA[Gets the current raw key
  13665. @return DataOutputBuffer
  13666. @throws IOException]]>
  13667. </doc>
  13668. </method>
  13669. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13670. abstract="false" native="false" synchronized="false"
  13671. static="false" final="false" visibility="public"
  13672. deprecated="not deprecated">
  13673. <exception name="IOException" type="java.io.IOException"/>
  13674. <doc>
  13675. <![CDATA[Gets the current raw value
  13676. @return ValueBytes
  13677. @throws IOException]]>
  13678. </doc>
  13679. </method>
  13680. <method name="next" return="boolean"
  13681. abstract="false" native="false" synchronized="false"
  13682. static="false" final="false" visibility="public"
  13683. deprecated="not deprecated">
  13684. <exception name="IOException" type="java.io.IOException"/>
  13685. <doc>
  13686. <![CDATA[Sets up the current key and value (for getKey and getValue)
  13687. @return true if there exists a key/value, false otherwise
  13688. @throws IOException]]>
  13689. </doc>
  13690. </method>
  13691. <method name="close"
  13692. abstract="false" native="false" synchronized="false"
  13693. static="false" final="false" visibility="public"
  13694. deprecated="not deprecated">
  13695. <exception name="IOException" type="java.io.IOException"/>
  13696. <doc>
  13697. <![CDATA[closes the iterator so that the underlying streams can be closed
  13698. @throws IOException]]>
  13699. </doc>
  13700. </method>
  13701. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  13702. abstract="false" native="false" synchronized="false"
  13703. static="false" final="false" visibility="public"
  13704. deprecated="not deprecated">
  13705. <doc>
  13706. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  13707. indicating the bytes processed by the iterator so far]]>
  13708. </doc>
  13709. </method>
  13710. <doc>
  13711. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  13712. </doc>
  13713. </interface>
  13714. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13715. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13716. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  13717. abstract="false"
  13718. static="false" final="false" visibility="public"
  13719. deprecated="not deprecated">
  13720. <implements name="java.lang.Comparable"/>
  13721. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  13722. static="false" final="false" visibility="public"
  13723. deprecated="not deprecated">
  13724. <doc>
  13725. <![CDATA[Constructs a segment
  13726. @param segmentOffset the offset of the segment in the file
  13727. @param segmentLength the length of the segment
  13728. @param segmentPathName the path name of the file containing the segment]]>
  13729. </doc>
  13730. </constructor>
  13731. <method name="doSync"
  13732. abstract="false" native="false" synchronized="false"
  13733. static="false" final="false" visibility="public"
  13734. deprecated="not deprecated">
  13735. <doc>
  13736. <![CDATA[Do the sync checks]]>
  13737. </doc>
  13738. </method>
  13739. <method name="preserveInput"
  13740. abstract="false" native="false" synchronized="false"
  13741. static="false" final="false" visibility="public"
  13742. deprecated="not deprecated">
  13743. <param name="preserve" type="boolean"/>
  13744. <doc>
  13745. <![CDATA[Whether to delete the files when no longer needed]]>
  13746. </doc>
  13747. </method>
  13748. <method name="shouldPreserveInput" return="boolean"
  13749. abstract="false" native="false" synchronized="false"
  13750. static="false" final="false" visibility="public"
  13751. deprecated="not deprecated">
  13752. </method>
  13753. <method name="compareTo" return="int"
  13754. abstract="false" native="false" synchronized="false"
  13755. static="false" final="false" visibility="public"
  13756. deprecated="not deprecated">
  13757. <param name="o" type="java.lang.Object"/>
  13758. </method>
  13759. <method name="equals" return="boolean"
  13760. abstract="false" native="false" synchronized="false"
  13761. static="false" final="false" visibility="public"
  13762. deprecated="not deprecated">
  13763. <param name="o" type="java.lang.Object"/>
  13764. </method>
  13765. <method name="hashCode" return="int"
  13766. abstract="false" native="false" synchronized="false"
  13767. static="false" final="false" visibility="public"
  13768. deprecated="not deprecated">
  13769. </method>
  13770. <method name="nextRawKey" return="boolean"
  13771. abstract="false" native="false" synchronized="false"
  13772. static="false" final="false" visibility="public"
  13773. deprecated="not deprecated">
  13774. <exception name="IOException" type="java.io.IOException"/>
  13775. <doc>
  13776. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  13777. @return true if there is a key returned; false, otherwise
  13778. @throws IOException]]>
  13779. </doc>
  13780. </method>
  13781. <method name="nextRawValue" return="int"
  13782. abstract="false" native="false" synchronized="false"
  13783. static="false" final="false" visibility="public"
  13784. deprecated="not deprecated">
  13785. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13786. <exception name="IOException" type="java.io.IOException"/>
  13787. <doc>
  13788. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  13789. read earlier
  13790. @param rawValue
  13791. @return the length of the value
  13792. @throws IOException]]>
  13793. </doc>
  13794. </method>
  13795. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13796. abstract="false" native="false" synchronized="false"
  13797. static="false" final="false" visibility="public"
  13798. deprecated="not deprecated">
  13799. <doc>
  13800. <![CDATA[Returns the stored rawKey]]>
  13801. </doc>
  13802. </method>
  13803. <method name="cleanup"
  13804. abstract="false" native="false" synchronized="false"
  13805. static="false" final="false" visibility="public"
  13806. deprecated="not deprecated">
  13807. <exception name="IOException" type="java.io.IOException"/>
  13808. <doc>
  13809. <![CDATA[The default cleanup. Subclasses can override this with a custom
  13810. cleanup]]>
  13811. </doc>
  13812. </method>
  13813. <doc>
  13814. <![CDATA[This class defines a merge segment. This class can be subclassed to
  13815. provide a customized cleanup method implementation. In this
  13816. implementation, cleanup closes the file handle and deletes the file]]>
  13817. </doc>
  13818. </class>
  13819. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13820. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13821. <interface name="SequenceFile.ValueBytes" abstract="true"
  13822. static="true" final="false" visibility="public"
  13823. deprecated="not deprecated">
  13824. <method name="writeUncompressedBytes"
  13825. abstract="false" native="false" synchronized="false"
  13826. static="false" final="false" visibility="public"
  13827. deprecated="not deprecated">
  13828. <param name="outStream" type="java.io.DataOutputStream"/>
  13829. <exception name="IOException" type="java.io.IOException"/>
  13830. <doc>
  13831. <![CDATA[Writes the uncompressed bytes to the outStream.
  13832. @param outStream : Stream to write uncompressed bytes into.
  13833. @throws IOException]]>
  13834. </doc>
  13835. </method>
  13836. <method name="writeCompressedBytes"
  13837. abstract="false" native="false" synchronized="false"
  13838. static="false" final="false" visibility="public"
  13839. deprecated="not deprecated">
  13840. <param name="outStream" type="java.io.DataOutputStream"/>
  13841. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13842. <exception name="IOException" type="java.io.IOException"/>
  13843. <doc>
  13844. <![CDATA[Write compressed bytes to outStream.
  13845. Note: that it will NOT compress the bytes if they are not compressed.
  13846. @param outStream : Stream to write compressed bytes into.]]>
  13847. </doc>
  13848. </method>
  13849. <method name="getSize" return="int"
  13850. abstract="false" native="false" synchronized="false"
  13851. static="false" final="false" visibility="public"
  13852. deprecated="not deprecated">
  13853. <doc>
  13854. <![CDATA[Size of stored data.]]>
  13855. </doc>
  13856. </method>
  13857. <doc>
  13858. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  13859. </doc>
  13860. </interface>
  13861. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13862. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  13863. <class name="SequenceFile.Writer" extends="java.lang.Object"
  13864. abstract="false"
  13865. static="true" final="false" visibility="public"
  13866. deprecated="not deprecated">
  13867. <implements name="java.io.Closeable"/>
  13868. <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"
  13869. static="false" final="false" visibility="public"
  13870. deprecated="not deprecated">
  13871. <exception name="IOException" type="java.io.IOException"/>
  13872. <doc>
  13873. <![CDATA[Create the named file.]]>
  13874. </doc>
  13875. </constructor>
  13876. <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"
  13877. static="false" final="false" visibility="public"
  13878. deprecated="not deprecated">
  13879. <exception name="IOException" type="java.io.IOException"/>
  13880. <doc>
  13881. <![CDATA[Create the named file with write-progress reporter.]]>
  13882. </doc>
  13883. </constructor>
  13884. <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"
  13885. static="false" final="false" visibility="public"
  13886. deprecated="not deprecated">
  13887. <exception name="IOException" type="java.io.IOException"/>
  13888. <doc>
  13889. <![CDATA[Create the named file with write-progress reporter.]]>
  13890. </doc>
  13891. </constructor>
  13892. <method name="getKeyClass" return="java.lang.Class"
  13893. abstract="false" native="false" synchronized="false"
  13894. static="false" final="false" visibility="public"
  13895. deprecated="not deprecated">
  13896. <doc>
  13897. <![CDATA[Returns the class of keys in this file.]]>
  13898. </doc>
  13899. </method>
  13900. <method name="getValueClass" return="java.lang.Class"
  13901. abstract="false" native="false" synchronized="false"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. <doc>
  13905. <![CDATA[Returns the class of values in this file.]]>
  13906. </doc>
  13907. </method>
  13908. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13909. abstract="false" native="false" synchronized="false"
  13910. static="false" final="false" visibility="public"
  13911. deprecated="not deprecated">
  13912. <doc>
  13913. <![CDATA[Returns the compression codec of data in this file.]]>
  13914. </doc>
  13915. </method>
  13916. <method name="sync"
  13917. abstract="false" native="false" synchronized="false"
  13918. static="false" final="false" visibility="public"
  13919. deprecated="not deprecated">
  13920. <exception name="IOException" type="java.io.IOException"/>
  13921. <doc>
  13922. <![CDATA[create a sync point]]>
  13923. </doc>
  13924. </method>
  13925. <method name="syncFs"
  13926. abstract="false" native="false" synchronized="false"
  13927. static="false" final="false" visibility="public"
  13928. deprecated="not deprecated">
  13929. <exception name="IOException" type="java.io.IOException"/>
  13930. <doc>
  13931. <![CDATA[flush all currently written data to the file system]]>
  13932. </doc>
  13933. </method>
  13934. <method name="close"
  13935. abstract="false" native="false" synchronized="true"
  13936. static="false" final="false" visibility="public"
  13937. deprecated="not deprecated">
  13938. <exception name="IOException" type="java.io.IOException"/>
  13939. <doc>
  13940. <![CDATA[Close the file.]]>
  13941. </doc>
  13942. </method>
  13943. <method name="append"
  13944. abstract="false" native="false" synchronized="true"
  13945. static="false" final="false" visibility="public"
  13946. deprecated="not deprecated">
  13947. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13948. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13949. <exception name="IOException" type="java.io.IOException"/>
  13950. <doc>
  13951. <![CDATA[Append a key/value pair.]]>
  13952. </doc>
  13953. </method>
  13954. <method name="append"
  13955. abstract="false" native="false" synchronized="true"
  13956. static="false" final="false" visibility="public"
  13957. deprecated="not deprecated">
  13958. <param name="key" type="java.lang.Object"/>
  13959. <param name="val" type="java.lang.Object"/>
  13960. <exception name="IOException" type="java.io.IOException"/>
  13961. <doc>
  13962. <![CDATA[Append a key/value pair.]]>
  13963. </doc>
  13964. </method>
  13965. <method name="appendRaw"
  13966. abstract="false" native="false" synchronized="true"
  13967. static="false" final="false" visibility="public"
  13968. deprecated="not deprecated">
  13969. <param name="keyData" type="byte[]"/>
  13970. <param name="keyOffset" type="int"/>
  13971. <param name="keyLength" type="int"/>
  13972. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13973. <exception name="IOException" type="java.io.IOException"/>
  13974. </method>
  13975. <method name="getLength" return="long"
  13976. abstract="false" native="false" synchronized="true"
  13977. static="false" final="false" visibility="public"
  13978. deprecated="not deprecated">
  13979. <exception name="IOException" type="java.io.IOException"/>
  13980. <doc>
  13981. <![CDATA[Returns the current length of the output file.
  13982. <p>This always returns a synchronized position. In other words,
  13983. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  13984. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  13985. the key may be earlier in the file than key last written when this
  13986. method was called (e.g., with block-compression, it may be the first key
  13987. in the block that was being written when this method was called).]]>
  13988. </doc>
  13989. </method>
  13990. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13991. transient="false" volatile="false"
  13992. static="false" final="false" visibility="protected"
  13993. deprecated="not deprecated">
  13994. </field>
  13995. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13996. transient="false" volatile="false"
  13997. static="false" final="false" visibility="protected"
  13998. deprecated="not deprecated">
  13999. </field>
  14000. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14001. transient="false" volatile="false"
  14002. static="false" final="false" visibility="protected"
  14003. deprecated="not deprecated">
  14004. </field>
  14005. <doc>
  14006. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  14007. </doc>
  14008. </class>
  14009. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  14010. <!-- start class org.apache.hadoop.io.SetFile -->
  14011. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  14012. abstract="false"
  14013. static="false" final="false" visibility="public"
  14014. deprecated="not deprecated">
  14015. <constructor name="SetFile"
  14016. static="false" final="false" visibility="protected"
  14017. deprecated="not deprecated">
  14018. </constructor>
  14019. <doc>
  14020. <![CDATA[A file-based set of keys.]]>
  14021. </doc>
  14022. </class>
  14023. <!-- end class org.apache.hadoop.io.SetFile -->
  14024. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  14025. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  14026. abstract="false"
  14027. static="true" final="false" visibility="public"
  14028. deprecated="not deprecated">
  14029. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14030. static="false" final="false" visibility="public"
  14031. deprecated="not deprecated">
  14032. <exception name="IOException" type="java.io.IOException"/>
  14033. <doc>
  14034. <![CDATA[Construct a set reader for the named set.]]>
  14035. </doc>
  14036. </constructor>
  14037. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14038. static="false" final="false" visibility="public"
  14039. deprecated="not deprecated">
  14040. <exception name="IOException" type="java.io.IOException"/>
  14041. <doc>
  14042. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14043. </doc>
  14044. </constructor>
  14045. <method name="seek" return="boolean"
  14046. abstract="false" native="false" synchronized="false"
  14047. static="false" final="false" visibility="public"
  14048. deprecated="not deprecated">
  14049. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14050. <exception name="IOException" type="java.io.IOException"/>
  14051. </method>
  14052. <method name="next" return="boolean"
  14053. abstract="false" native="false" synchronized="false"
  14054. static="false" final="false" visibility="public"
  14055. deprecated="not deprecated">
  14056. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14057. <exception name="IOException" type="java.io.IOException"/>
  14058. <doc>
  14059. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14060. true if such a key exists and false when at the end of the set.]]>
  14061. </doc>
  14062. </method>
  14063. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14064. abstract="false" native="false" synchronized="false"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14068. <exception name="IOException" type="java.io.IOException"/>
  14069. <doc>
  14070. <![CDATA[Read the matching key from a set into <code>key</code>.
  14071. Returns <code>key</code>, or null if no match exists.]]>
  14072. </doc>
  14073. </method>
  14074. <doc>
  14075. <![CDATA[Provide access to an existing set file.]]>
  14076. </doc>
  14077. </class>
  14078. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14079. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14080. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14081. abstract="false"
  14082. static="true" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14085. static="false" final="false" visibility="public"
  14086. deprecated="pass a Configuration too">
  14087. <exception name="IOException" type="java.io.IOException"/>
  14088. <doc>
  14089. <![CDATA[Create the named set for keys of the named class.
  14090. @deprecated pass a Configuration too]]>
  14091. </doc>
  14092. </constructor>
  14093. <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"
  14094. static="false" final="false" visibility="public"
  14095. deprecated="not deprecated">
  14096. <exception name="IOException" type="java.io.IOException"/>
  14097. <doc>
  14098. <![CDATA[Create a set naming the element class and compression type.]]>
  14099. </doc>
  14100. </constructor>
  14101. <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"
  14102. static="false" final="false" visibility="public"
  14103. deprecated="not deprecated">
  14104. <exception name="IOException" type="java.io.IOException"/>
  14105. <doc>
  14106. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14107. </doc>
  14108. </constructor>
  14109. <method name="append"
  14110. abstract="false" native="false" synchronized="false"
  14111. static="false" final="false" visibility="public"
  14112. deprecated="not deprecated">
  14113. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14114. <exception name="IOException" type="java.io.IOException"/>
  14115. <doc>
  14116. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14117. previous key added to the set.]]>
  14118. </doc>
  14119. </method>
  14120. <doc>
  14121. <![CDATA[Write a new set file.]]>
  14122. </doc>
  14123. </class>
  14124. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14125. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14126. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14127. abstract="false"
  14128. static="false" final="false" visibility="public"
  14129. deprecated="not deprecated">
  14130. <implements name="java.util.SortedMap"/>
  14131. <constructor name="SortedMapWritable"
  14132. static="false" final="false" visibility="public"
  14133. deprecated="not deprecated">
  14134. <doc>
  14135. <![CDATA[default constructor.]]>
  14136. </doc>
  14137. </constructor>
  14138. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14139. static="false" final="false" visibility="public"
  14140. deprecated="not deprecated">
  14141. <doc>
  14142. <![CDATA[Copy constructor.
  14143. @param other the map to copy from]]>
  14144. </doc>
  14145. </constructor>
  14146. <method name="comparator" return="java.util.Comparator"
  14147. abstract="false" native="false" synchronized="false"
  14148. static="false" final="false" visibility="public"
  14149. deprecated="not deprecated">
  14150. <doc>
  14151. <![CDATA[{@inheritDoc}]]>
  14152. </doc>
  14153. </method>
  14154. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14155. abstract="false" native="false" synchronized="false"
  14156. static="false" final="false" visibility="public"
  14157. deprecated="not deprecated">
  14158. <doc>
  14159. <![CDATA[{@inheritDoc}]]>
  14160. </doc>
  14161. </method>
  14162. <method name="headMap" return="java.util.SortedMap"
  14163. abstract="false" native="false" synchronized="false"
  14164. static="false" final="false" visibility="public"
  14165. deprecated="not deprecated">
  14166. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14167. <doc>
  14168. <![CDATA[{@inheritDoc}]]>
  14169. </doc>
  14170. </method>
  14171. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14172. abstract="false" native="false" synchronized="false"
  14173. static="false" final="false" visibility="public"
  14174. deprecated="not deprecated">
  14175. <doc>
  14176. <![CDATA[{@inheritDoc}]]>
  14177. </doc>
  14178. </method>
  14179. <method name="subMap" return="java.util.SortedMap"
  14180. abstract="false" native="false" synchronized="false"
  14181. static="false" final="false" visibility="public"
  14182. deprecated="not deprecated">
  14183. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14184. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14185. <doc>
  14186. <![CDATA[{@inheritDoc}]]>
  14187. </doc>
  14188. </method>
  14189. <method name="tailMap" return="java.util.SortedMap"
  14190. abstract="false" native="false" synchronized="false"
  14191. static="false" final="false" visibility="public"
  14192. deprecated="not deprecated">
  14193. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14194. <doc>
  14195. <![CDATA[{@inheritDoc}]]>
  14196. </doc>
  14197. </method>
  14198. <method name="clear"
  14199. abstract="false" native="false" synchronized="false"
  14200. static="false" final="false" visibility="public"
  14201. deprecated="not deprecated">
  14202. <doc>
  14203. <![CDATA[{@inheritDoc}]]>
  14204. </doc>
  14205. </method>
  14206. <method name="containsKey" return="boolean"
  14207. abstract="false" native="false" synchronized="false"
  14208. static="false" final="false" visibility="public"
  14209. deprecated="not deprecated">
  14210. <param name="key" type="java.lang.Object"/>
  14211. <doc>
  14212. <![CDATA[{@inheritDoc}]]>
  14213. </doc>
  14214. </method>
  14215. <method name="containsValue" return="boolean"
  14216. abstract="false" native="false" synchronized="false"
  14217. static="false" final="false" visibility="public"
  14218. deprecated="not deprecated">
  14219. <param name="value" type="java.lang.Object"/>
  14220. <doc>
  14221. <![CDATA[{@inheritDoc}]]>
  14222. </doc>
  14223. </method>
  14224. <method name="entrySet" return="java.util.Set"
  14225. abstract="false" native="false" synchronized="false"
  14226. static="false" final="false" visibility="public"
  14227. deprecated="not deprecated">
  14228. <doc>
  14229. <![CDATA[{@inheritDoc}]]>
  14230. </doc>
  14231. </method>
  14232. <method name="get" return="org.apache.hadoop.io.Writable"
  14233. abstract="false" native="false" synchronized="false"
  14234. static="false" final="false" visibility="public"
  14235. deprecated="not deprecated">
  14236. <param name="key" type="java.lang.Object"/>
  14237. <doc>
  14238. <![CDATA[{@inheritDoc}]]>
  14239. </doc>
  14240. </method>
  14241. <method name="isEmpty" return="boolean"
  14242. abstract="false" native="false" synchronized="false"
  14243. static="false" final="false" visibility="public"
  14244. deprecated="not deprecated">
  14245. <doc>
  14246. <![CDATA[{@inheritDoc}]]>
  14247. </doc>
  14248. </method>
  14249. <method name="keySet" return="java.util.Set"
  14250. abstract="false" native="false" synchronized="false"
  14251. static="false" final="false" visibility="public"
  14252. deprecated="not deprecated">
  14253. <doc>
  14254. <![CDATA[{@inheritDoc}]]>
  14255. </doc>
  14256. </method>
  14257. <method name="put" return="org.apache.hadoop.io.Writable"
  14258. abstract="false" native="false" synchronized="false"
  14259. static="false" final="false" visibility="public"
  14260. deprecated="not deprecated">
  14261. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14262. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14263. <doc>
  14264. <![CDATA[{@inheritDoc}]]>
  14265. </doc>
  14266. </method>
  14267. <method name="putAll"
  14268. abstract="false" native="false" synchronized="false"
  14269. static="false" final="false" visibility="public"
  14270. deprecated="not deprecated">
  14271. <param name="t" type="java.util.Map"/>
  14272. <doc>
  14273. <![CDATA[{@inheritDoc}]]>
  14274. </doc>
  14275. </method>
  14276. <method name="remove" return="org.apache.hadoop.io.Writable"
  14277. abstract="false" native="false" synchronized="false"
  14278. static="false" final="false" visibility="public"
  14279. deprecated="not deprecated">
  14280. <param name="key" type="java.lang.Object"/>
  14281. <doc>
  14282. <![CDATA[{@inheritDoc}]]>
  14283. </doc>
  14284. </method>
  14285. <method name="size" return="int"
  14286. abstract="false" native="false" synchronized="false"
  14287. static="false" final="false" visibility="public"
  14288. deprecated="not deprecated">
  14289. <doc>
  14290. <![CDATA[{@inheritDoc}]]>
  14291. </doc>
  14292. </method>
  14293. <method name="values" return="java.util.Collection"
  14294. abstract="false" native="false" synchronized="false"
  14295. static="false" final="false" visibility="public"
  14296. deprecated="not deprecated">
  14297. <doc>
  14298. <![CDATA[{@inheritDoc}]]>
  14299. </doc>
  14300. </method>
  14301. <method name="readFields"
  14302. abstract="false" native="false" synchronized="false"
  14303. static="false" final="false" visibility="public"
  14304. deprecated="not deprecated">
  14305. <param name="in" type="java.io.DataInput"/>
  14306. <exception name="IOException" type="java.io.IOException"/>
  14307. <doc>
  14308. <![CDATA[{@inheritDoc}]]>
  14309. </doc>
  14310. </method>
  14311. <method name="write"
  14312. abstract="false" native="false" synchronized="false"
  14313. static="false" final="false" visibility="public"
  14314. deprecated="not deprecated">
  14315. <param name="out" type="java.io.DataOutput"/>
  14316. <exception name="IOException" type="java.io.IOException"/>
  14317. <doc>
  14318. <![CDATA[{@inheritDoc}]]>
  14319. </doc>
  14320. </method>
  14321. <doc>
  14322. <![CDATA[A Writable SortedMap.]]>
  14323. </doc>
  14324. </class>
  14325. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14326. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14327. <interface name="Stringifier" abstract="true"
  14328. static="false" final="false" visibility="public"
  14329. deprecated="not deprecated">
  14330. <implements name="java.io.Closeable"/>
  14331. <method name="toString" return="java.lang.String"
  14332. abstract="false" native="false" synchronized="false"
  14333. static="false" final="false" visibility="public"
  14334. deprecated="not deprecated">
  14335. <param name="obj" type="java.lang.Object"/>
  14336. <exception name="IOException" type="java.io.IOException"/>
  14337. <doc>
  14338. <![CDATA[Converts the object to a string representation
  14339. @param obj the object to convert
  14340. @return the string representation of the object
  14341. @throws IOException if the object cannot be converted]]>
  14342. </doc>
  14343. </method>
  14344. <method name="fromString" return="java.lang.Object"
  14345. abstract="false" native="false" synchronized="false"
  14346. static="false" final="false" visibility="public"
  14347. deprecated="not deprecated">
  14348. <param name="str" type="java.lang.String"/>
  14349. <exception name="IOException" type="java.io.IOException"/>
  14350. <doc>
  14351. <![CDATA[Restores the object from its string representation.
  14352. @param str the string representation of the object
  14353. @return restored object
  14354. @throws IOException if the object cannot be restored]]>
  14355. </doc>
  14356. </method>
  14357. <method name="close"
  14358. abstract="false" native="false" synchronized="false"
  14359. static="false" final="false" visibility="public"
  14360. deprecated="not deprecated">
  14361. <exception name="IOException" type="java.io.IOException"/>
  14362. <doc>
  14363. <![CDATA[Closes this object.
  14364. @throws IOException if an I/O error occurs]]>
  14365. </doc>
  14366. </method>
  14367. <doc>
  14368. <![CDATA[Stringifier interface offers two methods to convert an object
  14369. to a string representation and restore the object given its
  14370. string representation.
  14371. @param <T> the class of the objects to stringify]]>
  14372. </doc>
  14373. </interface>
  14374. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14375. <!-- start class org.apache.hadoop.io.Text -->
  14376. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14377. abstract="false"
  14378. static="false" final="false" visibility="public"
  14379. deprecated="not deprecated">
  14380. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14381. <constructor name="Text"
  14382. static="false" final="false" visibility="public"
  14383. deprecated="not deprecated">
  14384. </constructor>
  14385. <constructor name="Text" type="java.lang.String"
  14386. static="false" final="false" visibility="public"
  14387. deprecated="not deprecated">
  14388. <doc>
  14389. <![CDATA[Construct from a string.]]>
  14390. </doc>
  14391. </constructor>
  14392. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14393. static="false" final="false" visibility="public"
  14394. deprecated="not deprecated">
  14395. <doc>
  14396. <![CDATA[Construct from another text.]]>
  14397. </doc>
  14398. </constructor>
  14399. <constructor name="Text" type="byte[]"
  14400. static="false" final="false" visibility="public"
  14401. deprecated="not deprecated">
  14402. <doc>
  14403. <![CDATA[Construct from a byte array.]]>
  14404. </doc>
  14405. </constructor>
  14406. <method name="getBytes" return="byte[]"
  14407. abstract="false" native="false" synchronized="false"
  14408. static="false" final="false" visibility="public"
  14409. deprecated="not deprecated">
  14410. <doc>
  14411. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14412. valid.]]>
  14413. </doc>
  14414. </method>
  14415. <method name="getLength" return="int"
  14416. abstract="false" native="false" synchronized="false"
  14417. static="false" final="false" visibility="public"
  14418. deprecated="not deprecated">
  14419. <doc>
  14420. <![CDATA[Returns the number of bytes in the byte array]]>
  14421. </doc>
  14422. </method>
  14423. <method name="charAt" return="int"
  14424. abstract="false" native="false" synchronized="false"
  14425. static="false" final="false" visibility="public"
  14426. deprecated="not deprecated">
  14427. <param name="position" type="int"/>
  14428. <doc>
  14429. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14430. for the character at <code>position</code>. Note that this
  14431. method avoids using the converter or doing String instatiation
  14432. @return the Unicode scalar value at position or -1
  14433. if the position is invalid or points to a
  14434. trailing byte]]>
  14435. </doc>
  14436. </method>
  14437. <method name="find" return="int"
  14438. abstract="false" native="false" synchronized="false"
  14439. static="false" final="false" visibility="public"
  14440. deprecated="not deprecated">
  14441. <param name="what" type="java.lang.String"/>
  14442. </method>
  14443. <method name="find" return="int"
  14444. abstract="false" native="false" synchronized="false"
  14445. static="false" final="false" visibility="public"
  14446. deprecated="not deprecated">
  14447. <param name="what" type="java.lang.String"/>
  14448. <param name="start" type="int"/>
  14449. <doc>
  14450. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14451. buffer, starting as position <code>start</code>. The starting
  14452. position is measured in bytes and the return value is in
  14453. terms of byte position in the buffer. The backing buffer is
  14454. not converted to a string for this operation.
  14455. @return byte position of the first occurence of the search
  14456. string in the UTF-8 buffer or -1 if not found]]>
  14457. </doc>
  14458. </method>
  14459. <method name="set"
  14460. abstract="false" native="false" synchronized="false"
  14461. static="false" final="false" visibility="public"
  14462. deprecated="not deprecated">
  14463. <param name="string" type="java.lang.String"/>
  14464. <doc>
  14465. <![CDATA[Set to contain the contents of a string.]]>
  14466. </doc>
  14467. </method>
  14468. <method name="set"
  14469. abstract="false" native="false" synchronized="false"
  14470. static="false" final="false" visibility="public"
  14471. deprecated="not deprecated">
  14472. <param name="utf8" type="byte[]"/>
  14473. <doc>
  14474. <![CDATA[Set to a utf8 byte array]]>
  14475. </doc>
  14476. </method>
  14477. <method name="set"
  14478. abstract="false" native="false" synchronized="false"
  14479. static="false" final="false" visibility="public"
  14480. deprecated="not deprecated">
  14481. <param name="other" type="org.apache.hadoop.io.Text"/>
  14482. <doc>
  14483. <![CDATA[copy a text.]]>
  14484. </doc>
  14485. </method>
  14486. <method name="set"
  14487. abstract="false" native="false" synchronized="false"
  14488. static="false" final="false" visibility="public"
  14489. deprecated="not deprecated">
  14490. <param name="utf8" type="byte[]"/>
  14491. <param name="start" type="int"/>
  14492. <param name="len" type="int"/>
  14493. <doc>
  14494. <![CDATA[Set the Text to range of bytes
  14495. @param utf8 the data to copy from
  14496. @param start the first position of the new string
  14497. @param len the number of bytes of the new string]]>
  14498. </doc>
  14499. </method>
  14500. <method name="append"
  14501. abstract="false" native="false" synchronized="false"
  14502. static="false" final="false" visibility="public"
  14503. deprecated="not deprecated">
  14504. <param name="utf8" type="byte[]"/>
  14505. <param name="start" type="int"/>
  14506. <param name="len" type="int"/>
  14507. <doc>
  14508. <![CDATA[Append a range of bytes to the end of the given text
  14509. @param utf8 the data to copy from
  14510. @param start the first position to append from utf8
  14511. @param len the number of bytes to append]]>
  14512. </doc>
  14513. </method>
  14514. <method name="clear"
  14515. abstract="false" native="false" synchronized="false"
  14516. static="false" final="false" visibility="public"
  14517. deprecated="not deprecated">
  14518. <doc>
  14519. <![CDATA[Clear the string to empty.]]>
  14520. </doc>
  14521. </method>
  14522. <method name="toString" return="java.lang.String"
  14523. abstract="false" native="false" synchronized="false"
  14524. static="false" final="false" visibility="public"
  14525. deprecated="not deprecated">
  14526. <doc>
  14527. <![CDATA[Convert text back to string
  14528. @see java.lang.Object#toString()]]>
  14529. </doc>
  14530. </method>
  14531. <method name="readFields"
  14532. abstract="false" native="false" synchronized="false"
  14533. static="false" final="false" visibility="public"
  14534. deprecated="not deprecated">
  14535. <param name="in" type="java.io.DataInput"/>
  14536. <exception name="IOException" type="java.io.IOException"/>
  14537. <doc>
  14538. <![CDATA[deserialize]]>
  14539. </doc>
  14540. </method>
  14541. <method name="skip"
  14542. abstract="false" native="false" synchronized="false"
  14543. static="true" final="false" visibility="public"
  14544. deprecated="not deprecated">
  14545. <param name="in" type="java.io.DataInput"/>
  14546. <exception name="IOException" type="java.io.IOException"/>
  14547. <doc>
  14548. <![CDATA[Skips over one Text in the input.]]>
  14549. </doc>
  14550. </method>
  14551. <method name="write"
  14552. abstract="false" native="false" synchronized="false"
  14553. static="false" final="false" visibility="public"
  14554. deprecated="not deprecated">
  14555. <param name="out" type="java.io.DataOutput"/>
  14556. <exception name="IOException" type="java.io.IOException"/>
  14557. <doc>
  14558. <![CDATA[serialize
  14559. write this object to out
  14560. length uses zero-compressed encoding
  14561. @see Writable#write(DataOutput)]]>
  14562. </doc>
  14563. </method>
  14564. <method name="equals" return="boolean"
  14565. abstract="false" native="false" synchronized="false"
  14566. static="false" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. <param name="o" type="java.lang.Object"/>
  14569. <doc>
  14570. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14571. </doc>
  14572. </method>
  14573. <method name="hashCode" return="int"
  14574. abstract="false" native="false" synchronized="false"
  14575. static="false" final="false" visibility="public"
  14576. deprecated="not deprecated">
  14577. </method>
  14578. <method name="decode" return="java.lang.String"
  14579. abstract="false" native="false" synchronized="false"
  14580. static="true" final="false" visibility="public"
  14581. deprecated="not deprecated">
  14582. <param name="utf8" type="byte[]"/>
  14583. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14584. <doc>
  14585. <![CDATA[Converts the provided byte array to a String using the
  14586. UTF-8 encoding. If the input is malformed,
  14587. replace by a default value.]]>
  14588. </doc>
  14589. </method>
  14590. <method name="decode" return="java.lang.String"
  14591. abstract="false" native="false" synchronized="false"
  14592. static="true" final="false" visibility="public"
  14593. deprecated="not deprecated">
  14594. <param name="utf8" type="byte[]"/>
  14595. <param name="start" type="int"/>
  14596. <param name="length" type="int"/>
  14597. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14598. </method>
  14599. <method name="decode" return="java.lang.String"
  14600. abstract="false" native="false" synchronized="false"
  14601. static="true" final="false" visibility="public"
  14602. deprecated="not deprecated">
  14603. <param name="utf8" type="byte[]"/>
  14604. <param name="start" type="int"/>
  14605. <param name="length" type="int"/>
  14606. <param name="replace" type="boolean"/>
  14607. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14608. <doc>
  14609. <![CDATA[Converts the provided byte array to a String 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. </doc>
  14615. </method>
  14616. <method name="encode" return="java.nio.ByteBuffer"
  14617. abstract="false" native="false" synchronized="false"
  14618. static="true" final="false" visibility="public"
  14619. deprecated="not deprecated">
  14620. <param name="string" type="java.lang.String"/>
  14621. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14622. <doc>
  14623. <![CDATA[Converts the provided String to bytes using the
  14624. UTF-8 encoding. If the input is malformed,
  14625. invalid chars are replaced by a default value.
  14626. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14627. and length is ByteBuffer.limit()]]>
  14628. </doc>
  14629. </method>
  14630. <method name="encode" return="java.nio.ByteBuffer"
  14631. abstract="false" native="false" synchronized="false"
  14632. static="true" final="false" visibility="public"
  14633. deprecated="not deprecated">
  14634. <param name="string" type="java.lang.String"/>
  14635. <param name="replace" type="boolean"/>
  14636. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14637. <doc>
  14638. <![CDATA[Converts the provided String to bytes using the
  14639. UTF-8 encoding. If <code>replace</code> is true, then
  14640. malformed input is replaced with the
  14641. substitution character, which is U+FFFD. Otherwise the
  14642. method throws a MalformedInputException.
  14643. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14644. and length is ByteBuffer.limit()]]>
  14645. </doc>
  14646. </method>
  14647. <method name="readString" return="java.lang.String"
  14648. abstract="false" native="false" synchronized="false"
  14649. static="true" final="false" visibility="public"
  14650. deprecated="not deprecated">
  14651. <param name="in" type="java.io.DataInput"/>
  14652. <exception name="IOException" type="java.io.IOException"/>
  14653. <doc>
  14654. <![CDATA[Read a UTF8 encoded string from in]]>
  14655. </doc>
  14656. </method>
  14657. <method name="writeString" return="int"
  14658. abstract="false" native="false" synchronized="false"
  14659. static="true" final="false" visibility="public"
  14660. deprecated="not deprecated">
  14661. <param name="out" type="java.io.DataOutput"/>
  14662. <param name="s" type="java.lang.String"/>
  14663. <exception name="IOException" type="java.io.IOException"/>
  14664. <doc>
  14665. <![CDATA[Write a UTF8 encoded string to out]]>
  14666. </doc>
  14667. </method>
  14668. <method name="validateUTF8"
  14669. abstract="false" native="false" synchronized="false"
  14670. static="true" final="false" visibility="public"
  14671. deprecated="not deprecated">
  14672. <param name="utf8" type="byte[]"/>
  14673. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14674. <doc>
  14675. <![CDATA[Check if a byte array contains valid utf-8
  14676. @param utf8 byte array
  14677. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  14678. </doc>
  14679. </method>
  14680. <method name="validateUTF8"
  14681. abstract="false" native="false" synchronized="false"
  14682. static="true" final="false" visibility="public"
  14683. deprecated="not deprecated">
  14684. <param name="utf8" type="byte[]"/>
  14685. <param name="start" type="int"/>
  14686. <param name="len" type="int"/>
  14687. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14688. <doc>
  14689. <![CDATA[Check to see if a byte array is valid utf-8
  14690. @param utf8 the array of bytes
  14691. @param start the offset of the first byte in the array
  14692. @param len the length of the byte sequence
  14693. @throws MalformedInputException if the byte array contains invalid bytes]]>
  14694. </doc>
  14695. </method>
  14696. <method name="bytesToCodePoint" return="int"
  14697. abstract="false" native="false" synchronized="false"
  14698. static="true" final="false" visibility="public"
  14699. deprecated="not deprecated">
  14700. <param name="bytes" type="java.nio.ByteBuffer"/>
  14701. <doc>
  14702. <![CDATA[Returns the next code point at the current position in
  14703. the buffer. The buffer's position will be incremented.
  14704. Any mark set on this buffer will be changed by this method!]]>
  14705. </doc>
  14706. </method>
  14707. <method name="utf8Length" return="int"
  14708. abstract="false" native="false" synchronized="false"
  14709. static="true" final="false" visibility="public"
  14710. deprecated="not deprecated">
  14711. <param name="string" type="java.lang.String"/>
  14712. <doc>
  14713. <![CDATA[For the given string, returns the number of UTF-8 bytes
  14714. required to encode the string.
  14715. @param string text to encode
  14716. @return number of UTF-8 bytes required to encode]]>
  14717. </doc>
  14718. </method>
  14719. <doc>
  14720. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  14721. to serialize, deserialize, and compare texts at byte level. The type of
  14722. length is integer and is serialized using zero-compressed format. <p>In
  14723. addition, it provides methods for string traversal without converting the
  14724. byte array to a string. <p>Also includes utilities for
  14725. serializing/deserialing a string, coding/decoding a string, checking if a
  14726. byte array contains valid UTF8 code, calculating the length of an encoded
  14727. string.]]>
  14728. </doc>
  14729. </class>
  14730. <!-- end class org.apache.hadoop.io.Text -->
  14731. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  14732. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14733. abstract="false"
  14734. static="true" final="false" visibility="public"
  14735. deprecated="not deprecated">
  14736. <constructor name="Text.Comparator"
  14737. static="false" final="false" visibility="public"
  14738. deprecated="not deprecated">
  14739. </constructor>
  14740. <method name="compare" return="int"
  14741. abstract="false" native="false" synchronized="false"
  14742. static="false" final="false" visibility="public"
  14743. deprecated="not deprecated">
  14744. <param name="b1" type="byte[]"/>
  14745. <param name="s1" type="int"/>
  14746. <param name="l1" type="int"/>
  14747. <param name="b2" type="byte[]"/>
  14748. <param name="s2" type="int"/>
  14749. <param name="l2" type="int"/>
  14750. </method>
  14751. <doc>
  14752. <![CDATA[A WritableComparator optimized for Text keys.]]>
  14753. </doc>
  14754. </class>
  14755. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  14756. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  14757. <class name="TwoDArrayWritable" extends="java.lang.Object"
  14758. abstract="false"
  14759. static="false" final="false" visibility="public"
  14760. deprecated="not deprecated">
  14761. <implements name="org.apache.hadoop.io.Writable"/>
  14762. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  14763. static="false" final="false" visibility="public"
  14764. deprecated="not deprecated">
  14765. </constructor>
  14766. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  14767. static="false" final="false" visibility="public"
  14768. deprecated="not deprecated">
  14769. </constructor>
  14770. <method name="toArray" return="java.lang.Object"
  14771. abstract="false" native="false" synchronized="false"
  14772. static="false" final="false" visibility="public"
  14773. deprecated="not deprecated">
  14774. </method>
  14775. <method name="set"
  14776. abstract="false" native="false" synchronized="false"
  14777. static="false" final="false" visibility="public"
  14778. deprecated="not deprecated">
  14779. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  14780. </method>
  14781. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  14782. abstract="false" native="false" synchronized="false"
  14783. static="false" final="false" visibility="public"
  14784. deprecated="not deprecated">
  14785. </method>
  14786. <method name="readFields"
  14787. abstract="false" native="false" synchronized="false"
  14788. static="false" final="false" visibility="public"
  14789. deprecated="not deprecated">
  14790. <param name="in" type="java.io.DataInput"/>
  14791. <exception name="IOException" type="java.io.IOException"/>
  14792. </method>
  14793. <method name="write"
  14794. abstract="false" native="false" synchronized="false"
  14795. static="false" final="false" visibility="public"
  14796. deprecated="not deprecated">
  14797. <param name="out" type="java.io.DataOutput"/>
  14798. <exception name="IOException" type="java.io.IOException"/>
  14799. </method>
  14800. <doc>
  14801. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  14802. </doc>
  14803. </class>
  14804. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  14805. <!-- start class org.apache.hadoop.io.UTF8 -->
  14806. <class name="UTF8" extends="java.lang.Object"
  14807. abstract="false"
  14808. static="false" final="false" visibility="public"
  14809. deprecated="replaced by Text">
  14810. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14811. <constructor name="UTF8"
  14812. static="false" final="false" visibility="public"
  14813. deprecated="not deprecated">
  14814. </constructor>
  14815. <constructor name="UTF8" type="java.lang.String"
  14816. static="false" final="false" visibility="public"
  14817. deprecated="not deprecated">
  14818. <doc>
  14819. <![CDATA[Construct from a given string.]]>
  14820. </doc>
  14821. </constructor>
  14822. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  14823. static="false" final="false" visibility="public"
  14824. deprecated="not deprecated">
  14825. <doc>
  14826. <![CDATA[Construct from a given string.]]>
  14827. </doc>
  14828. </constructor>
  14829. <method name="getBytes" return="byte[]"
  14830. abstract="false" native="false" synchronized="false"
  14831. static="false" final="false" visibility="public"
  14832. deprecated="not deprecated">
  14833. <doc>
  14834. <![CDATA[The raw bytes.]]>
  14835. </doc>
  14836. </method>
  14837. <method name="getLength" return="int"
  14838. abstract="false" native="false" synchronized="false"
  14839. static="false" final="false" visibility="public"
  14840. deprecated="not deprecated">
  14841. <doc>
  14842. <![CDATA[The number of bytes in the encoded string.]]>
  14843. </doc>
  14844. </method>
  14845. <method name="set"
  14846. abstract="false" native="false" synchronized="false"
  14847. static="false" final="false" visibility="public"
  14848. deprecated="not deprecated">
  14849. <param name="string" type="java.lang.String"/>
  14850. <doc>
  14851. <![CDATA[Set to contain the contents of a string.]]>
  14852. </doc>
  14853. </method>
  14854. <method name="set"
  14855. abstract="false" native="false" synchronized="false"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  14859. <doc>
  14860. <![CDATA[Set to contain the contents of a string.]]>
  14861. </doc>
  14862. </method>
  14863. <method name="readFields"
  14864. abstract="false" native="false" synchronized="false"
  14865. static="false" final="false" visibility="public"
  14866. deprecated="not deprecated">
  14867. <param name="in" type="java.io.DataInput"/>
  14868. <exception name="IOException" type="java.io.IOException"/>
  14869. </method>
  14870. <method name="skip"
  14871. abstract="false" native="false" synchronized="false"
  14872. static="true" final="false" visibility="public"
  14873. deprecated="not deprecated">
  14874. <param name="in" type="java.io.DataInput"/>
  14875. <exception name="IOException" type="java.io.IOException"/>
  14876. <doc>
  14877. <![CDATA[Skips over one UTF8 in the input.]]>
  14878. </doc>
  14879. </method>
  14880. <method name="write"
  14881. abstract="false" native="false" synchronized="false"
  14882. static="false" final="false" visibility="public"
  14883. deprecated="not deprecated">
  14884. <param name="out" type="java.io.DataOutput"/>
  14885. <exception name="IOException" type="java.io.IOException"/>
  14886. </method>
  14887. <method name="compareTo" return="int"
  14888. abstract="false" native="false" synchronized="false"
  14889. static="false" final="false" visibility="public"
  14890. deprecated="not deprecated">
  14891. <param name="o" type="java.lang.Object"/>
  14892. <doc>
  14893. <![CDATA[Compare two UTF8s.]]>
  14894. </doc>
  14895. </method>
  14896. <method name="toString" return="java.lang.String"
  14897. abstract="false" native="false" synchronized="false"
  14898. static="false" final="false" visibility="public"
  14899. deprecated="not deprecated">
  14900. <doc>
  14901. <![CDATA[Convert to a String.]]>
  14902. </doc>
  14903. </method>
  14904. <method name="equals" return="boolean"
  14905. abstract="false" native="false" synchronized="false"
  14906. static="false" final="false" visibility="public"
  14907. deprecated="not deprecated">
  14908. <param name="o" type="java.lang.Object"/>
  14909. <doc>
  14910. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  14911. </doc>
  14912. </method>
  14913. <method name="hashCode" return="int"
  14914. abstract="false" native="false" synchronized="false"
  14915. static="false" final="false" visibility="public"
  14916. deprecated="not deprecated">
  14917. </method>
  14918. <method name="getBytes" return="byte[]"
  14919. abstract="false" native="false" synchronized="false"
  14920. static="true" final="false" visibility="public"
  14921. deprecated="not deprecated">
  14922. <param name="string" type="java.lang.String"/>
  14923. <doc>
  14924. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  14925. @see String#getBytes(String)]]>
  14926. </doc>
  14927. </method>
  14928. <method name="readString" return="java.lang.String"
  14929. abstract="false" native="false" synchronized="false"
  14930. static="true" final="false" visibility="public"
  14931. deprecated="not deprecated">
  14932. <param name="in" type="java.io.DataInput"/>
  14933. <exception name="IOException" type="java.io.IOException"/>
  14934. <doc>
  14935. <![CDATA[Read a UTF-8 encoded string.
  14936. @see DataInput#readUTF()]]>
  14937. </doc>
  14938. </method>
  14939. <method name="writeString" return="int"
  14940. abstract="false" native="false" synchronized="false"
  14941. static="true" final="false" visibility="public"
  14942. deprecated="not deprecated">
  14943. <param name="out" type="java.io.DataOutput"/>
  14944. <param name="s" type="java.lang.String"/>
  14945. <exception name="IOException" type="java.io.IOException"/>
  14946. <doc>
  14947. <![CDATA[Write a UTF-8 encoded string.
  14948. @see DataOutput#writeUTF(String)]]>
  14949. </doc>
  14950. </method>
  14951. <doc>
  14952. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  14953. <p>Also includes utilities for efficiently reading and writing UTF-8.
  14954. @deprecated replaced by Text]]>
  14955. </doc>
  14956. </class>
  14957. <!-- end class org.apache.hadoop.io.UTF8 -->
  14958. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  14959. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14960. abstract="false"
  14961. static="true" final="false" visibility="public"
  14962. deprecated="not deprecated">
  14963. <constructor name="UTF8.Comparator"
  14964. static="false" final="false" visibility="public"
  14965. deprecated="not deprecated">
  14966. </constructor>
  14967. <method name="compare" return="int"
  14968. abstract="false" native="false" synchronized="false"
  14969. static="false" final="false" visibility="public"
  14970. deprecated="not deprecated">
  14971. <param name="b1" type="byte[]"/>
  14972. <param name="s1" type="int"/>
  14973. <param name="l1" type="int"/>
  14974. <param name="b2" type="byte[]"/>
  14975. <param name="s2" type="int"/>
  14976. <param name="l2" type="int"/>
  14977. </method>
  14978. <doc>
  14979. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  14980. </doc>
  14981. </class>
  14982. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  14983. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  14984. <class name="VersionedWritable" extends="java.lang.Object"
  14985. abstract="true"
  14986. static="false" final="false" visibility="public"
  14987. deprecated="not deprecated">
  14988. <implements name="org.apache.hadoop.io.Writable"/>
  14989. <constructor name="VersionedWritable"
  14990. static="false" final="false" visibility="public"
  14991. deprecated="not deprecated">
  14992. </constructor>
  14993. <method name="getVersion" return="byte"
  14994. abstract="true" native="false" synchronized="false"
  14995. static="false" final="false" visibility="public"
  14996. deprecated="not deprecated">
  14997. <doc>
  14998. <![CDATA[Return the version number of the current implementation.]]>
  14999. </doc>
  15000. </method>
  15001. <method name="write"
  15002. abstract="false" native="false" synchronized="false"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. <param name="out" type="java.io.DataOutput"/>
  15006. <exception name="IOException" type="java.io.IOException"/>
  15007. </method>
  15008. <method name="readFields"
  15009. abstract="false" native="false" synchronized="false"
  15010. static="false" final="false" visibility="public"
  15011. deprecated="not deprecated">
  15012. <param name="in" type="java.io.DataInput"/>
  15013. <exception name="IOException" type="java.io.IOException"/>
  15014. </method>
  15015. <doc>
  15016. <![CDATA[A base class for Writables that provides version checking.
  15017. <p>This is useful when a class may evolve, so that instances written by the
  15018. old version of the class may still be processed by the new version. To
  15019. handle this situation, {@link #readFields(DataInput)}
  15020. implementations should catch {@link VersionMismatchException}.]]>
  15021. </doc>
  15022. </class>
  15023. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  15024. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  15025. <class name="VersionMismatchException" extends="java.io.IOException"
  15026. abstract="false"
  15027. static="false" final="false" visibility="public"
  15028. deprecated="not deprecated">
  15029. <constructor name="VersionMismatchException" type="byte, byte"
  15030. static="false" final="false" visibility="public"
  15031. deprecated="not deprecated">
  15032. </constructor>
  15033. <method name="toString" return="java.lang.String"
  15034. abstract="false" native="false" synchronized="false"
  15035. static="false" final="false" visibility="public"
  15036. deprecated="not deprecated">
  15037. <doc>
  15038. <![CDATA[Returns a string representation of this object.]]>
  15039. </doc>
  15040. </method>
  15041. <doc>
  15042. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15043. version of an object being read does not match the current implementation
  15044. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15045. </doc>
  15046. </class>
  15047. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15048. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15049. <class name="VIntWritable" extends="java.lang.Object"
  15050. abstract="false"
  15051. static="false" final="false" visibility="public"
  15052. deprecated="not deprecated">
  15053. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15054. <constructor name="VIntWritable"
  15055. static="false" final="false" visibility="public"
  15056. deprecated="not deprecated">
  15057. </constructor>
  15058. <constructor name="VIntWritable" type="int"
  15059. static="false" final="false" visibility="public"
  15060. deprecated="not deprecated">
  15061. </constructor>
  15062. <method name="set"
  15063. abstract="false" native="false" synchronized="false"
  15064. static="false" final="false" visibility="public"
  15065. deprecated="not deprecated">
  15066. <param name="value" type="int"/>
  15067. <doc>
  15068. <![CDATA[Set the value of this VIntWritable.]]>
  15069. </doc>
  15070. </method>
  15071. <method name="get" return="int"
  15072. abstract="false" native="false" synchronized="false"
  15073. static="false" final="false" visibility="public"
  15074. deprecated="not deprecated">
  15075. <doc>
  15076. <![CDATA[Return the value of this VIntWritable.]]>
  15077. </doc>
  15078. </method>
  15079. <method name="readFields"
  15080. abstract="false" native="false" synchronized="false"
  15081. static="false" final="false" visibility="public"
  15082. deprecated="not deprecated">
  15083. <param name="in" type="java.io.DataInput"/>
  15084. <exception name="IOException" type="java.io.IOException"/>
  15085. </method>
  15086. <method name="write"
  15087. abstract="false" native="false" synchronized="false"
  15088. static="false" final="false" visibility="public"
  15089. deprecated="not deprecated">
  15090. <param name="out" type="java.io.DataOutput"/>
  15091. <exception name="IOException" type="java.io.IOException"/>
  15092. </method>
  15093. <method name="equals" return="boolean"
  15094. abstract="false" native="false" synchronized="false"
  15095. static="false" final="false" visibility="public"
  15096. deprecated="not deprecated">
  15097. <param name="o" type="java.lang.Object"/>
  15098. <doc>
  15099. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15100. </doc>
  15101. </method>
  15102. <method name="hashCode" return="int"
  15103. abstract="false" native="false" synchronized="false"
  15104. static="false" final="false" visibility="public"
  15105. deprecated="not deprecated">
  15106. </method>
  15107. <method name="compareTo" return="int"
  15108. abstract="false" native="false" synchronized="false"
  15109. static="false" final="false" visibility="public"
  15110. deprecated="not deprecated">
  15111. <param name="o" type="java.lang.Object"/>
  15112. <doc>
  15113. <![CDATA[Compares two VIntWritables.]]>
  15114. </doc>
  15115. </method>
  15116. <method name="toString" return="java.lang.String"
  15117. abstract="false" native="false" synchronized="false"
  15118. static="false" final="false" visibility="public"
  15119. deprecated="not deprecated">
  15120. </method>
  15121. <doc>
  15122. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15123. Such values take between one and five bytes. Smaller values take fewer bytes.
  15124. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15125. </doc>
  15126. </class>
  15127. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15128. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15129. <class name="VLongWritable" extends="java.lang.Object"
  15130. abstract="false"
  15131. static="false" final="false" visibility="public"
  15132. deprecated="not deprecated">
  15133. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15134. <constructor name="VLongWritable"
  15135. static="false" final="false" visibility="public"
  15136. deprecated="not deprecated">
  15137. </constructor>
  15138. <constructor name="VLongWritable" type="long"
  15139. static="false" final="false" visibility="public"
  15140. deprecated="not deprecated">
  15141. </constructor>
  15142. <method name="set"
  15143. abstract="false" native="false" synchronized="false"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. <param name="value" type="long"/>
  15147. <doc>
  15148. <![CDATA[Set the value of this LongWritable.]]>
  15149. </doc>
  15150. </method>
  15151. <method name="get" return="long"
  15152. abstract="false" native="false" synchronized="false"
  15153. static="false" final="false" visibility="public"
  15154. deprecated="not deprecated">
  15155. <doc>
  15156. <![CDATA[Return the value of this LongWritable.]]>
  15157. </doc>
  15158. </method>
  15159. <method name="readFields"
  15160. abstract="false" native="false" synchronized="false"
  15161. static="false" final="false" visibility="public"
  15162. deprecated="not deprecated">
  15163. <param name="in" type="java.io.DataInput"/>
  15164. <exception name="IOException" type="java.io.IOException"/>
  15165. </method>
  15166. <method name="write"
  15167. abstract="false" native="false" synchronized="false"
  15168. static="false" final="false" visibility="public"
  15169. deprecated="not deprecated">
  15170. <param name="out" type="java.io.DataOutput"/>
  15171. <exception name="IOException" type="java.io.IOException"/>
  15172. </method>
  15173. <method name="equals" return="boolean"
  15174. abstract="false" native="false" synchronized="false"
  15175. static="false" final="false" visibility="public"
  15176. deprecated="not deprecated">
  15177. <param name="o" type="java.lang.Object"/>
  15178. <doc>
  15179. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15180. </doc>
  15181. </method>
  15182. <method name="hashCode" return="int"
  15183. abstract="false" native="false" synchronized="false"
  15184. static="false" final="false" visibility="public"
  15185. deprecated="not deprecated">
  15186. </method>
  15187. <method name="compareTo" return="int"
  15188. abstract="false" native="false" synchronized="false"
  15189. static="false" final="false" visibility="public"
  15190. deprecated="not deprecated">
  15191. <param name="o" type="java.lang.Object"/>
  15192. <doc>
  15193. <![CDATA[Compares two VLongWritables.]]>
  15194. </doc>
  15195. </method>
  15196. <method name="toString" return="java.lang.String"
  15197. abstract="false" native="false" synchronized="false"
  15198. static="false" final="false" visibility="public"
  15199. deprecated="not deprecated">
  15200. </method>
  15201. <doc>
  15202. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15203. between one and five bytes. Smaller values take fewer bytes.
  15204. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15205. </doc>
  15206. </class>
  15207. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15208. <!-- start interface org.apache.hadoop.io.Writable -->
  15209. <interface name="Writable" abstract="true"
  15210. static="false" final="false" visibility="public"
  15211. deprecated="not deprecated">
  15212. <method name="write"
  15213. abstract="false" native="false" synchronized="false"
  15214. static="false" final="false" visibility="public"
  15215. deprecated="not deprecated">
  15216. <param name="out" type="java.io.DataOutput"/>
  15217. <exception name="IOException" type="java.io.IOException"/>
  15218. <doc>
  15219. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15220. @param out <code>DataOuput</code> to serialize this object into.
  15221. @throws IOException]]>
  15222. </doc>
  15223. </method>
  15224. <method name="readFields"
  15225. abstract="false" native="false" synchronized="false"
  15226. static="false" final="false" visibility="public"
  15227. deprecated="not deprecated">
  15228. <param name="in" type="java.io.DataInput"/>
  15229. <exception name="IOException" type="java.io.IOException"/>
  15230. <doc>
  15231. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15232. <p>For efficiency, implementations should attempt to re-use storage in the
  15233. existing object where possible.</p>
  15234. @param in <code>DataInput</code> to deseriablize this object from.
  15235. @throws IOException]]>
  15236. </doc>
  15237. </method>
  15238. <doc>
  15239. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15240. protocol, based on {@link DataInput} and {@link DataOutput}.
  15241. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15242. framework implements this interface.</p>
  15243. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15244. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15245. and returns the instance.</p>
  15246. <p>Example:</p>
  15247. <p><blockquote><pre>
  15248. public class MyWritable implements Writable {
  15249. // Some data
  15250. private int counter;
  15251. private long timestamp;
  15252. public void write(DataOutput out) throws IOException {
  15253. out.writeInt(counter);
  15254. out.writeLong(timestamp);
  15255. }
  15256. public void readFields(DataInput in) throws IOException {
  15257. counter = in.readInt();
  15258. timestamp = in.readLong();
  15259. }
  15260. public static MyWritable read(DataInput in) throws IOException {
  15261. MyWritable w = new MyWritable();
  15262. w.readFields(in);
  15263. return w;
  15264. }
  15265. }
  15266. </pre></blockquote></p>]]>
  15267. </doc>
  15268. </interface>
  15269. <!-- end interface org.apache.hadoop.io.Writable -->
  15270. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15271. <interface name="WritableComparable" abstract="true"
  15272. static="false" final="false" visibility="public"
  15273. deprecated="not deprecated">
  15274. <implements name="org.apache.hadoop.io.Writable"/>
  15275. <implements name="java.lang.Comparable"/>
  15276. <doc>
  15277. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15278. <p><code>WritableComparable</code>s can be compared to each other, typically
  15279. via <code>Comparator</code>s. Any type which is to be used as a
  15280. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15281. interface.</p>
  15282. <p>Example:</p>
  15283. <p><blockquote><pre>
  15284. public class MyWritableComparable implements WritableComparable {
  15285. // Some data
  15286. private int counter;
  15287. private long timestamp;
  15288. public void write(DataOutput out) throws IOException {
  15289. out.writeInt(counter);
  15290. out.writeLong(timestamp);
  15291. }
  15292. public void readFields(DataInput in) throws IOException {
  15293. counter = in.readInt();
  15294. timestamp = in.readLong();
  15295. }
  15296. public int compareTo(MyWritableComparable w) {
  15297. int thisValue = this.value;
  15298. int thatValue = ((IntWritable)o).value;
  15299. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15300. }
  15301. }
  15302. </pre></blockquote></p>]]>
  15303. </doc>
  15304. </interface>
  15305. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15306. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15307. <class name="WritableComparator" extends="java.lang.Object"
  15308. abstract="false"
  15309. static="false" final="false" visibility="public"
  15310. deprecated="not deprecated">
  15311. <implements name="org.apache.hadoop.io.RawComparator"/>
  15312. <constructor name="WritableComparator" type="java.lang.Class"
  15313. static="false" final="false" visibility="protected"
  15314. deprecated="not deprecated">
  15315. <doc>
  15316. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15317. </doc>
  15318. </constructor>
  15319. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15320. static="false" final="false" visibility="protected"
  15321. deprecated="not deprecated">
  15322. </constructor>
  15323. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15324. abstract="false" native="false" synchronized="true"
  15325. static="true" final="false" visibility="public"
  15326. deprecated="not deprecated">
  15327. <param name="c" type="java.lang.Class"/>
  15328. <doc>
  15329. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15330. </doc>
  15331. </method>
  15332. <method name="define"
  15333. abstract="false" native="false" synchronized="true"
  15334. static="true" final="false" visibility="public"
  15335. deprecated="not deprecated">
  15336. <param name="c" type="java.lang.Class"/>
  15337. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15338. <doc>
  15339. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15340. implementation.]]>
  15341. </doc>
  15342. </method>
  15343. <method name="getKeyClass" return="java.lang.Class"
  15344. abstract="false" native="false" synchronized="false"
  15345. static="false" final="false" visibility="public"
  15346. deprecated="not deprecated">
  15347. <doc>
  15348. <![CDATA[Returns the WritableComparable implementation class.]]>
  15349. </doc>
  15350. </method>
  15351. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15352. abstract="false" native="false" synchronized="false"
  15353. static="false" final="false" visibility="public"
  15354. deprecated="not deprecated">
  15355. <doc>
  15356. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15357. </doc>
  15358. </method>
  15359. <method name="compare" return="int"
  15360. abstract="false" native="false" synchronized="false"
  15361. static="false" final="false" visibility="public"
  15362. deprecated="not deprecated">
  15363. <param name="b1" type="byte[]"/>
  15364. <param name="s1" type="int"/>
  15365. <param name="l1" type="int"/>
  15366. <param name="b2" type="byte[]"/>
  15367. <param name="s2" type="int"/>
  15368. <param name="l2" type="int"/>
  15369. <doc>
  15370. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15371. <p>The default implementation reads the data into two {@link
  15372. WritableComparable}s (using {@link
  15373. Writable#readFields(DataInput)}, then calls {@link
  15374. #compare(WritableComparable,WritableComparable)}.]]>
  15375. </doc>
  15376. </method>
  15377. <method name="compare" return="int"
  15378. abstract="false" native="false" synchronized="false"
  15379. static="false" final="false" visibility="public"
  15380. deprecated="not deprecated">
  15381. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15382. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15383. <doc>
  15384. <![CDATA[Compare two WritableComparables.
  15385. <p> The default implementation uses the natural ordering, calling {@link
  15386. Comparable#compareTo(Object)}.]]>
  15387. </doc>
  15388. </method>
  15389. <method name="compare" return="int"
  15390. abstract="false" native="false" synchronized="false"
  15391. static="false" final="false" visibility="public"
  15392. deprecated="not deprecated">
  15393. <param name="a" type="java.lang.Object"/>
  15394. <param name="b" type="java.lang.Object"/>
  15395. </method>
  15396. <method name="compareBytes" return="int"
  15397. abstract="false" native="false" synchronized="false"
  15398. static="true" final="false" visibility="public"
  15399. deprecated="not deprecated">
  15400. <param name="b1" type="byte[]"/>
  15401. <param name="s1" type="int"/>
  15402. <param name="l1" type="int"/>
  15403. <param name="b2" type="byte[]"/>
  15404. <param name="s2" type="int"/>
  15405. <param name="l2" type="int"/>
  15406. <doc>
  15407. <![CDATA[Lexicographic order of binary data.]]>
  15408. </doc>
  15409. </method>
  15410. <method name="hashBytes" return="int"
  15411. abstract="false" native="false" synchronized="false"
  15412. static="true" final="false" visibility="public"
  15413. deprecated="not deprecated">
  15414. <param name="bytes" type="byte[]"/>
  15415. <param name="offset" type="int"/>
  15416. <param name="length" type="int"/>
  15417. <doc>
  15418. <![CDATA[Compute hash for binary data.]]>
  15419. </doc>
  15420. </method>
  15421. <method name="hashBytes" return="int"
  15422. abstract="false" native="false" synchronized="false"
  15423. static="true" final="false" visibility="public"
  15424. deprecated="not deprecated">
  15425. <param name="bytes" type="byte[]"/>
  15426. <param name="length" type="int"/>
  15427. <doc>
  15428. <![CDATA[Compute hash for binary data.]]>
  15429. </doc>
  15430. </method>
  15431. <method name="readUnsignedShort" return="int"
  15432. abstract="false" native="false" synchronized="false"
  15433. static="true" final="false" visibility="public"
  15434. deprecated="not deprecated">
  15435. <param name="bytes" type="byte[]"/>
  15436. <param name="start" type="int"/>
  15437. <doc>
  15438. <![CDATA[Parse an unsigned short from a byte array.]]>
  15439. </doc>
  15440. </method>
  15441. <method name="readInt" return="int"
  15442. abstract="false" native="false" synchronized="false"
  15443. static="true" final="false" visibility="public"
  15444. deprecated="not deprecated">
  15445. <param name="bytes" type="byte[]"/>
  15446. <param name="start" type="int"/>
  15447. <doc>
  15448. <![CDATA[Parse an integer from a byte array.]]>
  15449. </doc>
  15450. </method>
  15451. <method name="readFloat" return="float"
  15452. abstract="false" native="false" synchronized="false"
  15453. static="true" final="false" visibility="public"
  15454. deprecated="not deprecated">
  15455. <param name="bytes" type="byte[]"/>
  15456. <param name="start" type="int"/>
  15457. <doc>
  15458. <![CDATA[Parse a float from a byte array.]]>
  15459. </doc>
  15460. </method>
  15461. <method name="readLong" return="long"
  15462. abstract="false" native="false" synchronized="false"
  15463. static="true" final="false" visibility="public"
  15464. deprecated="not deprecated">
  15465. <param name="bytes" type="byte[]"/>
  15466. <param name="start" type="int"/>
  15467. <doc>
  15468. <![CDATA[Parse a long from a byte array.]]>
  15469. </doc>
  15470. </method>
  15471. <method name="readDouble" return="double"
  15472. abstract="false" native="false" synchronized="false"
  15473. static="true" final="false" visibility="public"
  15474. deprecated="not deprecated">
  15475. <param name="bytes" type="byte[]"/>
  15476. <param name="start" type="int"/>
  15477. <doc>
  15478. <![CDATA[Parse a double from a byte array.]]>
  15479. </doc>
  15480. </method>
  15481. <method name="readVLong" return="long"
  15482. abstract="false" native="false" synchronized="false"
  15483. static="true" final="false" visibility="public"
  15484. deprecated="not deprecated">
  15485. <param name="bytes" type="byte[]"/>
  15486. <param name="start" type="int"/>
  15487. <exception name="IOException" type="java.io.IOException"/>
  15488. <doc>
  15489. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15490. @param bytes byte array with decode long
  15491. @param start starting index
  15492. @throws java.io.IOException
  15493. @return deserialized long]]>
  15494. </doc>
  15495. </method>
  15496. <method name="readVInt" return="int"
  15497. abstract="false" native="false" synchronized="false"
  15498. static="true" final="false" visibility="public"
  15499. deprecated="not deprecated">
  15500. <param name="bytes" type="byte[]"/>
  15501. <param name="start" type="int"/>
  15502. <exception name="IOException" type="java.io.IOException"/>
  15503. <doc>
  15504. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15505. @param bytes byte array with the encoded integer
  15506. @param start start index
  15507. @throws java.io.IOException
  15508. @return deserialized integer]]>
  15509. </doc>
  15510. </method>
  15511. <doc>
  15512. <![CDATA[A Comparator for {@link WritableComparable}s.
  15513. <p>This base implemenation uses the natural ordering. To define alternate
  15514. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15515. <p>One may optimize compare-intensive operations by overriding
  15516. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15517. provided to assist in optimized implementations of this method.]]>
  15518. </doc>
  15519. </class>
  15520. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15521. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15522. <class name="WritableFactories" extends="java.lang.Object"
  15523. abstract="false"
  15524. static="false" final="false" visibility="public"
  15525. deprecated="not deprecated">
  15526. <method name="setFactory"
  15527. abstract="false" native="false" synchronized="true"
  15528. static="true" final="false" visibility="public"
  15529. deprecated="not deprecated">
  15530. <param name="c" type="java.lang.Class"/>
  15531. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15532. <doc>
  15533. <![CDATA[Define a factory for a class.]]>
  15534. </doc>
  15535. </method>
  15536. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15537. abstract="false" native="false" synchronized="true"
  15538. static="true" final="false" visibility="public"
  15539. deprecated="not deprecated">
  15540. <param name="c" type="java.lang.Class"/>
  15541. <doc>
  15542. <![CDATA[Define a factory for a class.]]>
  15543. </doc>
  15544. </method>
  15545. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15546. abstract="false" native="false" synchronized="false"
  15547. static="true" final="false" visibility="public"
  15548. deprecated="not deprecated">
  15549. <param name="c" type="java.lang.Class"/>
  15550. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15551. <doc>
  15552. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15553. </doc>
  15554. </method>
  15555. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15556. abstract="false" native="false" synchronized="false"
  15557. static="true" final="false" visibility="public"
  15558. deprecated="not deprecated">
  15559. <param name="c" type="java.lang.Class"/>
  15560. <doc>
  15561. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15562. </doc>
  15563. </method>
  15564. <doc>
  15565. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15566. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15567. </doc>
  15568. </class>
  15569. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15570. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15571. <interface name="WritableFactory" abstract="true"
  15572. static="false" final="false" visibility="public"
  15573. deprecated="not deprecated">
  15574. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15575. abstract="false" native="false" synchronized="false"
  15576. static="false" final="false" visibility="public"
  15577. deprecated="not deprecated">
  15578. <doc>
  15579. <![CDATA[Return a new instance.]]>
  15580. </doc>
  15581. </method>
  15582. <doc>
  15583. <![CDATA[A factory for a class of Writable.
  15584. @see WritableFactories]]>
  15585. </doc>
  15586. </interface>
  15587. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  15588. <!-- start class org.apache.hadoop.io.WritableName -->
  15589. <class name="WritableName" extends="java.lang.Object"
  15590. abstract="false"
  15591. static="false" final="false" visibility="public"
  15592. deprecated="not deprecated">
  15593. <method name="setName"
  15594. abstract="false" native="false" synchronized="true"
  15595. static="true" final="false" visibility="public"
  15596. deprecated="not deprecated">
  15597. <param name="writableClass" type="java.lang.Class"/>
  15598. <param name="name" type="java.lang.String"/>
  15599. <doc>
  15600. <![CDATA[Set the name that a class should be known as to something other than the
  15601. class name.]]>
  15602. </doc>
  15603. </method>
  15604. <method name="addName"
  15605. abstract="false" native="false" synchronized="true"
  15606. static="true" final="false" visibility="public"
  15607. deprecated="not deprecated">
  15608. <param name="writableClass" type="java.lang.Class"/>
  15609. <param name="name" type="java.lang.String"/>
  15610. <doc>
  15611. <![CDATA[Add an alternate name for a class.]]>
  15612. </doc>
  15613. </method>
  15614. <method name="getName" return="java.lang.String"
  15615. abstract="false" native="false" synchronized="true"
  15616. static="true" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. <param name="writableClass" type="java.lang.Class"/>
  15619. <doc>
  15620. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  15621. </doc>
  15622. </method>
  15623. <method name="getClass" return="java.lang.Class"
  15624. abstract="false" native="false" synchronized="true"
  15625. static="true" final="false" visibility="public"
  15626. deprecated="not deprecated">
  15627. <param name="name" type="java.lang.String"/>
  15628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15629. <exception name="IOException" type="java.io.IOException"/>
  15630. <doc>
  15631. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  15632. </doc>
  15633. </method>
  15634. <doc>
  15635. <![CDATA[Utility to permit renaming of Writable implementation classes without
  15636. invalidiating files that contain their class name.]]>
  15637. </doc>
  15638. </class>
  15639. <!-- end class org.apache.hadoop.io.WritableName -->
  15640. <!-- start class org.apache.hadoop.io.WritableUtils -->
  15641. <class name="WritableUtils" extends="java.lang.Object"
  15642. abstract="false"
  15643. static="false" final="true" visibility="public"
  15644. deprecated="not deprecated">
  15645. <constructor name="WritableUtils"
  15646. static="false" final="false" visibility="public"
  15647. deprecated="not deprecated">
  15648. </constructor>
  15649. <method name="readCompressedByteArray" return="byte[]"
  15650. abstract="false" native="false" synchronized="false"
  15651. static="true" final="false" visibility="public"
  15652. deprecated="not deprecated">
  15653. <param name="in" type="java.io.DataInput"/>
  15654. <exception name="IOException" type="java.io.IOException"/>
  15655. </method>
  15656. <method name="skipCompressedByteArray"
  15657. abstract="false" native="false" synchronized="false"
  15658. static="true" final="false" visibility="public"
  15659. deprecated="not deprecated">
  15660. <param name="in" type="java.io.DataInput"/>
  15661. <exception name="IOException" type="java.io.IOException"/>
  15662. </method>
  15663. <method name="writeCompressedByteArray" return="int"
  15664. abstract="false" native="false" synchronized="false"
  15665. static="true" final="false" visibility="public"
  15666. deprecated="not deprecated">
  15667. <param name="out" type="java.io.DataOutput"/>
  15668. <param name="bytes" type="byte[]"/>
  15669. <exception name="IOException" type="java.io.IOException"/>
  15670. </method>
  15671. <method name="readCompressedString" return="java.lang.String"
  15672. abstract="false" native="false" synchronized="false"
  15673. static="true" final="false" visibility="public"
  15674. deprecated="not deprecated">
  15675. <param name="in" type="java.io.DataInput"/>
  15676. <exception name="IOException" type="java.io.IOException"/>
  15677. </method>
  15678. <method name="writeCompressedString" return="int"
  15679. abstract="false" native="false" synchronized="false"
  15680. static="true" final="false" visibility="public"
  15681. deprecated="not deprecated">
  15682. <param name="out" type="java.io.DataOutput"/>
  15683. <param name="s" type="java.lang.String"/>
  15684. <exception name="IOException" type="java.io.IOException"/>
  15685. </method>
  15686. <method name="writeString"
  15687. abstract="false" native="false" synchronized="false"
  15688. static="true" final="false" visibility="public"
  15689. deprecated="not deprecated">
  15690. <param name="out" type="java.io.DataOutput"/>
  15691. <param name="s" type="java.lang.String"/>
  15692. <exception name="IOException" type="java.io.IOException"/>
  15693. </method>
  15694. <method name="readString" return="java.lang.String"
  15695. abstract="false" native="false" synchronized="false"
  15696. static="true" final="false" visibility="public"
  15697. deprecated="not deprecated">
  15698. <param name="in" type="java.io.DataInput"/>
  15699. <exception name="IOException" type="java.io.IOException"/>
  15700. </method>
  15701. <method name="writeStringArray"
  15702. abstract="false" native="false" synchronized="false"
  15703. static="true" final="false" visibility="public"
  15704. deprecated="not deprecated">
  15705. <param name="out" type="java.io.DataOutput"/>
  15706. <param name="s" type="java.lang.String[]"/>
  15707. <exception name="IOException" type="java.io.IOException"/>
  15708. </method>
  15709. <method name="writeCompressedStringArray"
  15710. abstract="false" native="false" synchronized="false"
  15711. static="true" final="false" visibility="public"
  15712. deprecated="not deprecated">
  15713. <param name="out" type="java.io.DataOutput"/>
  15714. <param name="s" type="java.lang.String[]"/>
  15715. <exception name="IOException" type="java.io.IOException"/>
  15716. </method>
  15717. <method name="readStringArray" return="java.lang.String[]"
  15718. abstract="false" native="false" synchronized="false"
  15719. static="true" final="false" visibility="public"
  15720. deprecated="not deprecated">
  15721. <param name="in" type="java.io.DataInput"/>
  15722. <exception name="IOException" type="java.io.IOException"/>
  15723. </method>
  15724. <method name="readCompressedStringArray" return="java.lang.String[]"
  15725. abstract="false" native="false" synchronized="false"
  15726. static="true" final="false" visibility="public"
  15727. deprecated="not deprecated">
  15728. <param name="in" type="java.io.DataInput"/>
  15729. <exception name="IOException" type="java.io.IOException"/>
  15730. </method>
  15731. <method name="displayByteArray"
  15732. abstract="false" native="false" synchronized="false"
  15733. static="true" final="false" visibility="public"
  15734. deprecated="not deprecated">
  15735. <param name="record" type="byte[]"/>
  15736. </method>
  15737. <method name="clone" return="org.apache.hadoop.io.Writable"
  15738. abstract="false" native="false" synchronized="false"
  15739. static="true" final="false" visibility="public"
  15740. deprecated="not deprecated">
  15741. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  15742. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15743. <doc>
  15744. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  15745. @param orig The object to copy
  15746. @return The copied object]]>
  15747. </doc>
  15748. </method>
  15749. <method name="cloneInto"
  15750. abstract="false" native="false" synchronized="false"
  15751. static="true" final="false" visibility="public"
  15752. deprecated="use ReflectionUtils.cloneInto instead.">
  15753. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  15754. <param name="src" type="org.apache.hadoop.io.Writable"/>
  15755. <exception name="IOException" type="java.io.IOException"/>
  15756. <doc>
  15757. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  15758. @param dst the object to copy from
  15759. @param src the object to copy into, which is destroyed
  15760. @throws IOException
  15761. @deprecated use ReflectionUtils.cloneInto instead.]]>
  15762. </doc>
  15763. </method>
  15764. <method name="writeVInt"
  15765. abstract="false" native="false" synchronized="false"
  15766. static="true" final="false" visibility="public"
  15767. deprecated="not deprecated">
  15768. <param name="stream" type="java.io.DataOutput"/>
  15769. <param name="i" type="int"/>
  15770. <exception name="IOException" type="java.io.IOException"/>
  15771. <doc>
  15772. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  15773. For -120 <= i <= 127, only one byte is used with the actual value.
  15774. For other values of i, the first byte value indicates whether the
  15775. integer is positive or negative, and the number of bytes that follow.
  15776. If the first byte value v is between -121 and -124, the following integer
  15777. is positive, with number of bytes that follow are -(v+120).
  15778. If the first byte value v is between -125 and -128, the following integer
  15779. is negative, with number of bytes that follow are -(v+124). Bytes are
  15780. stored in the high-non-zero-byte-first order.
  15781. @param stream Binary output stream
  15782. @param i Integer to be serialized
  15783. @throws java.io.IOException]]>
  15784. </doc>
  15785. </method>
  15786. <method name="writeVLong"
  15787. abstract="false" native="false" synchronized="false"
  15788. static="true" final="false" visibility="public"
  15789. deprecated="not deprecated">
  15790. <param name="stream" type="java.io.DataOutput"/>
  15791. <param name="i" type="long"/>
  15792. <exception name="IOException" type="java.io.IOException"/>
  15793. <doc>
  15794. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  15795. For -112 <= i <= 127, only one byte is used with the actual value.
  15796. For other values of i, the first byte value indicates whether the
  15797. long is positive or negative, and the number of bytes that follow.
  15798. If the first byte value v is between -113 and -120, the following long
  15799. is positive, with number of bytes that follow are -(v+112).
  15800. If the first byte value v is between -121 and -128, the following long
  15801. is negative, with number of bytes that follow are -(v+120). Bytes are
  15802. stored in the high-non-zero-byte-first order.
  15803. @param stream Binary output stream
  15804. @param i Long to be serialized
  15805. @throws java.io.IOException]]>
  15806. </doc>
  15807. </method>
  15808. <method name="readVLong" return="long"
  15809. abstract="false" native="false" synchronized="false"
  15810. static="true" final="false" visibility="public"
  15811. deprecated="not deprecated">
  15812. <param name="stream" type="java.io.DataInput"/>
  15813. <exception name="IOException" type="java.io.IOException"/>
  15814. <doc>
  15815. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  15816. @param stream Binary input stream
  15817. @throws java.io.IOException
  15818. @return deserialized long from stream.]]>
  15819. </doc>
  15820. </method>
  15821. <method name="readVInt" return="int"
  15822. abstract="false" native="false" synchronized="false"
  15823. static="true" final="false" visibility="public"
  15824. deprecated="not deprecated">
  15825. <param name="stream" type="java.io.DataInput"/>
  15826. <exception name="IOException" type="java.io.IOException"/>
  15827. <doc>
  15828. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  15829. @param stream Binary input stream
  15830. @throws java.io.IOException
  15831. @return deserialized integer from stream.]]>
  15832. </doc>
  15833. </method>
  15834. <method name="isNegativeVInt" return="boolean"
  15835. abstract="false" native="false" synchronized="false"
  15836. static="true" final="false" visibility="public"
  15837. deprecated="not deprecated">
  15838. <param name="value" type="byte"/>
  15839. <doc>
  15840. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  15841. @param value the first byte
  15842. @return is the value negative]]>
  15843. </doc>
  15844. </method>
  15845. <method name="decodeVIntSize" return="int"
  15846. abstract="false" native="false" synchronized="false"
  15847. static="true" final="false" visibility="public"
  15848. deprecated="not deprecated">
  15849. <param name="value" type="byte"/>
  15850. <doc>
  15851. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  15852. @param value the first byte of the vint/vlong
  15853. @return the total number of bytes (1 to 9)]]>
  15854. </doc>
  15855. </method>
  15856. <method name="getVIntSize" return="int"
  15857. abstract="false" native="false" synchronized="false"
  15858. static="true" final="false" visibility="public"
  15859. deprecated="not deprecated">
  15860. <param name="i" type="long"/>
  15861. <doc>
  15862. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  15863. @return the encoded length]]>
  15864. </doc>
  15865. </method>
  15866. <method name="readEnum" return="java.lang.Enum"
  15867. abstract="false" native="false" synchronized="false"
  15868. static="true" final="false" visibility="public"
  15869. deprecated="not deprecated">
  15870. <param name="in" type="java.io.DataInput"/>
  15871. <param name="enumType" type="java.lang.Class"/>
  15872. <exception name="IOException" type="java.io.IOException"/>
  15873. <doc>
  15874. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  15875. using String values.
  15876. @param <T> Enum type
  15877. @param in DataInput to read from
  15878. @param enumType Class type of Enum
  15879. @return Enum represented by String read from DataInput
  15880. @throws IOException]]>
  15881. </doc>
  15882. </method>
  15883. <method name="writeEnum"
  15884. abstract="false" native="false" synchronized="false"
  15885. static="true" final="false" visibility="public"
  15886. deprecated="not deprecated">
  15887. <param name="out" type="java.io.DataOutput"/>
  15888. <param name="enumVal" type="java.lang.Enum"/>
  15889. <exception name="IOException" type="java.io.IOException"/>
  15890. <doc>
  15891. <![CDATA[writes String value of enum to DataOutput.
  15892. @param out Dataoutput stream
  15893. @param enumVal enum value
  15894. @throws IOException]]>
  15895. </doc>
  15896. </method>
  15897. <method name="skipFully"
  15898. abstract="false" native="false" synchronized="false"
  15899. static="true" final="false" visibility="public"
  15900. deprecated="not deprecated">
  15901. <param name="in" type="java.io.DataInput"/>
  15902. <param name="len" type="int"/>
  15903. <exception name="IOException" type="java.io.IOException"/>
  15904. <doc>
  15905. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  15906. @param in input stream
  15907. @param len number of bytes to skip
  15908. @throws IOException when skipped less number of bytes]]>
  15909. </doc>
  15910. </method>
  15911. <method name="toByteArray" return="byte[]"
  15912. abstract="false" native="false" synchronized="false"
  15913. static="true" final="false" visibility="public"
  15914. deprecated="not deprecated">
  15915. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  15916. <doc>
  15917. <![CDATA[Convert writables to a byte array]]>
  15918. </doc>
  15919. </method>
  15920. </class>
  15921. <!-- end class org.apache.hadoop.io.WritableUtils -->
  15922. </package>
  15923. <package name="org.apache.hadoop.io.compress">
  15924. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15925. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  15926. abstract="false"
  15927. static="false" final="false" visibility="public"
  15928. deprecated="not deprecated">
  15929. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  15930. static="false" final="false" visibility="public"
  15931. deprecated="not deprecated">
  15932. <doc>
  15933. <![CDATA[Create a {@link BlockCompressorStream}.
  15934. @param out stream
  15935. @param compressor compressor to be used
  15936. @param bufferSize size of buffer
  15937. @param compressionOverhead maximum 'overhead' of the compression
  15938. algorithm with given bufferSize]]>
  15939. </doc>
  15940. </constructor>
  15941. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  15942. static="false" final="false" visibility="public"
  15943. deprecated="not deprecated">
  15944. <doc>
  15945. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  15946. compressor.
  15947. Use default of 512 as bufferSize and compressionOverhead of
  15948. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  15949. @param out stream
  15950. @param compressor compressor to be used]]>
  15951. </doc>
  15952. </constructor>
  15953. <method name="write"
  15954. abstract="false" native="false" synchronized="false"
  15955. static="false" final="false" visibility="public"
  15956. deprecated="not deprecated">
  15957. <param name="b" type="byte[]"/>
  15958. <param name="off" type="int"/>
  15959. <param name="len" type="int"/>
  15960. <exception name="IOException" type="java.io.IOException"/>
  15961. <doc>
  15962. <![CDATA[Write the data provided to the compression codec, compressing no more
  15963. than the buffer size less the compression overhead as specified during
  15964. construction for each block.
  15965. Each block contains the uncompressed length for the block, followed by
  15966. one or more length-prefixed blocks of compressed data.]]>
  15967. </doc>
  15968. </method>
  15969. <method name="finish"
  15970. abstract="false" native="false" synchronized="false"
  15971. static="false" final="false" visibility="public"
  15972. deprecated="not deprecated">
  15973. <exception name="IOException" type="java.io.IOException"/>
  15974. </method>
  15975. <method name="compress"
  15976. abstract="false" native="false" synchronized="false"
  15977. static="false" final="false" visibility="protected"
  15978. deprecated="not deprecated">
  15979. <exception name="IOException" type="java.io.IOException"/>
  15980. </method>
  15981. <doc>
  15982. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  15983. with 'block-based' based compression algorithms, as opposed to
  15984. 'stream-based' compression algorithms.
  15985. It should be noted that this wrapper does not guarantee that blocks will
  15986. be sized for the compressor. If the
  15987. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  15988. effect meaningful compression, it is responsible for it.]]>
  15989. </doc>
  15990. </class>
  15991. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15992. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15993. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  15994. abstract="false"
  15995. static="false" final="false" visibility="public"
  15996. deprecated="not deprecated">
  15997. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15998. static="false" final="false" visibility="public"
  15999. deprecated="not deprecated">
  16000. <doc>
  16001. <![CDATA[Create a {@link BlockDecompressorStream}.
  16002. @param in input stream
  16003. @param decompressor decompressor to use
  16004. @param bufferSize size of buffer]]>
  16005. </doc>
  16006. </constructor>
  16007. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16008. static="false" final="false" visibility="public"
  16009. deprecated="not deprecated">
  16010. <doc>
  16011. <![CDATA[Create a {@link BlockDecompressorStream}.
  16012. @param in input stream
  16013. @param decompressor decompressor to use]]>
  16014. </doc>
  16015. </constructor>
  16016. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  16017. static="false" final="false" visibility="protected"
  16018. deprecated="not deprecated">
  16019. </constructor>
  16020. <method name="decompress" return="int"
  16021. abstract="false" native="false" synchronized="false"
  16022. static="false" final="false" visibility="protected"
  16023. deprecated="not deprecated">
  16024. <param name="b" type="byte[]"/>
  16025. <param name="off" type="int"/>
  16026. <param name="len" type="int"/>
  16027. <exception name="IOException" type="java.io.IOException"/>
  16028. </method>
  16029. <method name="getCompressedData" return="int"
  16030. abstract="false" native="false" synchronized="false"
  16031. static="false" final="false" visibility="protected"
  16032. deprecated="not deprecated">
  16033. <exception name="IOException" type="java.io.IOException"/>
  16034. </method>
  16035. <method name="resetState"
  16036. abstract="false" native="false" synchronized="false"
  16037. static="false" final="false" visibility="public"
  16038. deprecated="not deprecated">
  16039. <exception name="IOException" type="java.io.IOException"/>
  16040. </method>
  16041. <doc>
  16042. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16043. with 'block-based' based compression algorithms, as opposed to
  16044. 'stream-based' compression algorithms.]]>
  16045. </doc>
  16046. </class>
  16047. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16048. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16049. <class name="BZip2Codec" extends="java.lang.Object"
  16050. abstract="false"
  16051. static="false" final="false" visibility="public"
  16052. deprecated="not deprecated">
  16053. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  16054. <constructor name="BZip2Codec"
  16055. static="false" final="false" visibility="public"
  16056. deprecated="not deprecated">
  16057. <doc>
  16058. <![CDATA[Creates a new instance of BZip2Codec]]>
  16059. </doc>
  16060. </constructor>
  16061. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16062. abstract="false" native="false" synchronized="false"
  16063. static="false" final="false" visibility="public"
  16064. deprecated="not deprecated">
  16065. <param name="out" type="java.io.OutputStream"/>
  16066. <exception name="IOException" type="java.io.IOException"/>
  16067. <doc>
  16068. <![CDATA[Creates CompressionOutputStream for BZip2
  16069. @param out
  16070. The output Stream
  16071. @return The BZip2 CompressionOutputStream
  16072. @throws java.io.IOException
  16073. Throws IO exception]]>
  16074. </doc>
  16075. </method>
  16076. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16077. abstract="false" native="false" synchronized="false"
  16078. static="false" final="false" visibility="public"
  16079. deprecated="not deprecated">
  16080. <param name="out" type="java.io.OutputStream"/>
  16081. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16082. <exception name="IOException" type="java.io.IOException"/>
  16083. <doc>
  16084. <![CDATA[This functionality is currently not supported.
  16085. @throws java.lang.UnsupportedOperationException
  16086. Throws UnsupportedOperationException]]>
  16087. </doc>
  16088. </method>
  16089. <method name="getCompressorType" return="java.lang.Class"
  16090. abstract="false" native="false" synchronized="false"
  16091. static="false" final="false" visibility="public"
  16092. deprecated="not deprecated">
  16093. <doc>
  16094. <![CDATA[This functionality is currently not supported.
  16095. @throws java.lang.UnsupportedOperationException
  16096. Throws UnsupportedOperationException]]>
  16097. </doc>
  16098. </method>
  16099. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16100. abstract="false" native="false" synchronized="false"
  16101. static="false" final="false" visibility="public"
  16102. deprecated="not deprecated">
  16103. <doc>
  16104. <![CDATA[This functionality is currently not supported.
  16105. @throws java.lang.UnsupportedOperationException
  16106. Throws UnsupportedOperationException]]>
  16107. </doc>
  16108. </method>
  16109. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16110. abstract="false" native="false" synchronized="false"
  16111. static="false" final="false" visibility="public"
  16112. deprecated="not deprecated">
  16113. <param name="in" type="java.io.InputStream"/>
  16114. <exception name="IOException" type="java.io.IOException"/>
  16115. <doc>
  16116. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16117. @param in
  16118. The InputStream
  16119. @return Returns CompressionInputStream for BZip2
  16120. @throws java.io.IOException
  16121. Throws IOException]]>
  16122. </doc>
  16123. </method>
  16124. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16125. abstract="false" native="false" synchronized="false"
  16126. static="false" final="false" visibility="public"
  16127. deprecated="not deprecated">
  16128. <param name="in" type="java.io.InputStream"/>
  16129. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16130. <exception name="IOException" type="java.io.IOException"/>
  16131. <doc>
  16132. <![CDATA[This functionality is currently not supported.
  16133. @throws java.lang.UnsupportedOperationException
  16134. Throws UnsupportedOperationException]]>
  16135. </doc>
  16136. </method>
  16137. <method name="getDecompressorType" return="java.lang.Class"
  16138. abstract="false" native="false" synchronized="false"
  16139. static="false" final="false" visibility="public"
  16140. deprecated="not deprecated">
  16141. <doc>
  16142. <![CDATA[This functionality is currently not supported.
  16143. @throws java.lang.UnsupportedOperationException
  16144. Throws UnsupportedOperationException]]>
  16145. </doc>
  16146. </method>
  16147. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16148. abstract="false" native="false" synchronized="false"
  16149. static="false" final="false" visibility="public"
  16150. deprecated="not deprecated">
  16151. <doc>
  16152. <![CDATA[This functionality is currently not supported.
  16153. @throws java.lang.UnsupportedOperationException
  16154. Throws UnsupportedOperationException]]>
  16155. </doc>
  16156. </method>
  16157. <method name="getDefaultExtension" return="java.lang.String"
  16158. abstract="false" native="false" synchronized="false"
  16159. static="false" final="false" visibility="public"
  16160. deprecated="not deprecated">
  16161. <doc>
  16162. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16163. @return A String telling the default bzip2 file extension]]>
  16164. </doc>
  16165. </method>
  16166. <doc>
  16167. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16168. compression and decompression. Currently we dont have an implementation of
  16169. the Compressor and Decompressor interfaces, so those methods of
  16170. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16171. UnsupportedOperationException.]]>
  16172. </doc>
  16173. </class>
  16174. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16175. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16176. <class name="CodecPool" extends="java.lang.Object"
  16177. abstract="false"
  16178. static="false" final="false" visibility="public"
  16179. deprecated="not deprecated">
  16180. <constructor name="CodecPool"
  16181. static="false" final="false" visibility="public"
  16182. deprecated="not deprecated">
  16183. </constructor>
  16184. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16185. abstract="false" native="false" synchronized="false"
  16186. static="true" final="false" visibility="public"
  16187. deprecated="not deprecated">
  16188. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16189. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16190. <doc>
  16191. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16192. pool or a new one.
  16193. @param codec the <code>CompressionCodec</code> for which to get the
  16194. <code>Compressor</code>
  16195. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16196. @return <code>Compressor</code> for the given
  16197. <code>CompressionCodec</code> from the pool or a new one]]>
  16198. </doc>
  16199. </method>
  16200. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16201. abstract="false" native="false" synchronized="false"
  16202. static="true" final="false" visibility="public"
  16203. deprecated="not deprecated">
  16204. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16205. </method>
  16206. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16207. abstract="false" native="false" synchronized="false"
  16208. static="true" final="false" visibility="public"
  16209. deprecated="not deprecated">
  16210. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16211. <doc>
  16212. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16213. pool or a new one.
  16214. @param codec the <code>CompressionCodec</code> for which to get the
  16215. <code>Decompressor</code>
  16216. @return <code>Decompressor</code> for the given
  16217. <code>CompressionCodec</code> the pool or a new one]]>
  16218. </doc>
  16219. </method>
  16220. <method name="returnCompressor"
  16221. abstract="false" native="false" synchronized="false"
  16222. static="true" final="false" visibility="public"
  16223. deprecated="not deprecated">
  16224. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16225. <doc>
  16226. <![CDATA[Return the {@link Compressor} to the pool.
  16227. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16228. </doc>
  16229. </method>
  16230. <method name="returnDecompressor"
  16231. abstract="false" native="false" synchronized="false"
  16232. static="true" final="false" visibility="public"
  16233. deprecated="not deprecated">
  16234. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16235. <doc>
  16236. <![CDATA[Return the {@link Decompressor} to the pool.
  16237. @param decompressor the <code>Decompressor</code> to be returned to the
  16238. pool]]>
  16239. </doc>
  16240. </method>
  16241. <doc>
  16242. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16243. (possibly native) compression/decompression codecs.]]>
  16244. </doc>
  16245. </class>
  16246. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16247. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16248. <interface name="CompressionCodec" abstract="true"
  16249. static="false" final="false" visibility="public"
  16250. deprecated="not deprecated">
  16251. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16252. abstract="false" native="false" synchronized="false"
  16253. static="false" final="false" visibility="public"
  16254. deprecated="not deprecated">
  16255. <param name="out" type="java.io.OutputStream"/>
  16256. <exception name="IOException" type="java.io.IOException"/>
  16257. <doc>
  16258. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16259. {@link OutputStream}.
  16260. @param out the location for the final output stream
  16261. @return a stream the user can write uncompressed data to have it compressed
  16262. @throws IOException]]>
  16263. </doc>
  16264. </method>
  16265. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16266. abstract="false" native="false" synchronized="false"
  16267. static="false" final="false" visibility="public"
  16268. deprecated="not deprecated">
  16269. <param name="out" type="java.io.OutputStream"/>
  16270. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16271. <exception name="IOException" type="java.io.IOException"/>
  16272. <doc>
  16273. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16274. {@link OutputStream} with the given {@link Compressor}.
  16275. @param out the location for the final output stream
  16276. @param compressor compressor to use
  16277. @return a stream the user can write uncompressed data to have it compressed
  16278. @throws IOException]]>
  16279. </doc>
  16280. </method>
  16281. <method name="getCompressorType" return="java.lang.Class"
  16282. abstract="false" native="false" synchronized="false"
  16283. static="false" final="false" visibility="public"
  16284. deprecated="not deprecated">
  16285. <doc>
  16286. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16287. @return the type of compressor needed by this codec.]]>
  16288. </doc>
  16289. </method>
  16290. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16291. abstract="false" native="false" synchronized="false"
  16292. static="false" final="false" visibility="public"
  16293. deprecated="not deprecated">
  16294. <doc>
  16295. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16296. @return a new compressor for use by this codec]]>
  16297. </doc>
  16298. </method>
  16299. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16300. abstract="false" native="false" synchronized="false"
  16301. static="false" final="false" visibility="public"
  16302. deprecated="not deprecated">
  16303. <param name="in" type="java.io.InputStream"/>
  16304. <exception name="IOException" type="java.io.IOException"/>
  16305. <doc>
  16306. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16307. @param in the stream to read compressed bytes from
  16308. @return a stream to read uncompressed bytes from
  16309. @throws IOException]]>
  16310. </doc>
  16311. </method>
  16312. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16313. abstract="false" native="false" synchronized="false"
  16314. static="false" final="false" visibility="public"
  16315. deprecated="not deprecated">
  16316. <param name="in" type="java.io.InputStream"/>
  16317. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16318. <exception name="IOException" type="java.io.IOException"/>
  16319. <doc>
  16320. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16321. {@link InputStream} with the given {@link Decompressor}.
  16322. @param in the stream to read compressed bytes from
  16323. @param decompressor decompressor to use
  16324. @return a stream to read uncompressed bytes from
  16325. @throws IOException]]>
  16326. </doc>
  16327. </method>
  16328. <method name="getDecompressorType" return="java.lang.Class"
  16329. abstract="false" native="false" synchronized="false"
  16330. static="false" final="false" visibility="public"
  16331. deprecated="not deprecated">
  16332. <doc>
  16333. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16334. @return the type of decompressor needed by this codec.]]>
  16335. </doc>
  16336. </method>
  16337. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16338. abstract="false" native="false" synchronized="false"
  16339. static="false" final="false" visibility="public"
  16340. deprecated="not deprecated">
  16341. <doc>
  16342. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16343. @return a new decompressor for use by this codec]]>
  16344. </doc>
  16345. </method>
  16346. <method name="getDefaultExtension" return="java.lang.String"
  16347. abstract="false" native="false" synchronized="false"
  16348. static="false" final="false" visibility="public"
  16349. deprecated="not deprecated">
  16350. <doc>
  16351. <![CDATA[Get the default filename extension for this kind of compression.
  16352. @return the extension including the '.']]>
  16353. </doc>
  16354. </method>
  16355. <doc>
  16356. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16357. </doc>
  16358. </interface>
  16359. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16360. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16361. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16362. abstract="false"
  16363. static="false" final="false" visibility="public"
  16364. deprecated="not deprecated">
  16365. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16366. static="false" final="false" visibility="public"
  16367. deprecated="not deprecated">
  16368. <doc>
  16369. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16370. and register them. Defaults to gzip and zip.]]>
  16371. </doc>
  16372. </constructor>
  16373. <method name="toString" return="java.lang.String"
  16374. abstract="false" native="false" synchronized="false"
  16375. static="false" final="false" visibility="public"
  16376. deprecated="not deprecated">
  16377. <doc>
  16378. <![CDATA[Print the extension map out as a string.]]>
  16379. </doc>
  16380. </method>
  16381. <method name="getCodecClasses" return="java.util.List"
  16382. abstract="false" native="false" synchronized="false"
  16383. static="true" final="false" visibility="public"
  16384. deprecated="not deprecated">
  16385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16386. <doc>
  16387. <![CDATA[Get the list of codecs listed in the configuration
  16388. @param conf the configuration to look in
  16389. @return a list of the Configuration classes or null if the attribute
  16390. was not set]]>
  16391. </doc>
  16392. </method>
  16393. <method name="setCodecClasses"
  16394. abstract="false" native="false" synchronized="false"
  16395. static="true" final="false" visibility="public"
  16396. deprecated="not deprecated">
  16397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16398. <param name="classes" type="java.util.List"/>
  16399. <doc>
  16400. <![CDATA[Sets a list of codec classes in the configuration.
  16401. @param conf the configuration to modify
  16402. @param classes the list of classes to set]]>
  16403. </doc>
  16404. </method>
  16405. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16406. abstract="false" native="false" synchronized="false"
  16407. static="false" final="false" visibility="public"
  16408. deprecated="not deprecated">
  16409. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16410. <doc>
  16411. <![CDATA[Find the relevant compression codec for the given file based on its
  16412. filename suffix.
  16413. @param file the filename to check
  16414. @return the codec object]]>
  16415. </doc>
  16416. </method>
  16417. <method name="removeSuffix" return="java.lang.String"
  16418. abstract="false" native="false" synchronized="false"
  16419. static="true" final="false" visibility="public"
  16420. deprecated="not deprecated">
  16421. <param name="filename" type="java.lang.String"/>
  16422. <param name="suffix" type="java.lang.String"/>
  16423. <doc>
  16424. <![CDATA[Removes a suffix from a filename, if it has it.
  16425. @param filename the filename to strip
  16426. @param suffix the suffix to remove
  16427. @return the shortened filename]]>
  16428. </doc>
  16429. </method>
  16430. <method name="main"
  16431. abstract="false" native="false" synchronized="false"
  16432. static="true" final="false" visibility="public"
  16433. deprecated="not deprecated">
  16434. <param name="args" type="java.lang.String[]"/>
  16435. <exception name="Exception" type="java.lang.Exception"/>
  16436. <doc>
  16437. <![CDATA[A little test program.
  16438. @param args]]>
  16439. </doc>
  16440. </method>
  16441. <field name="LOG" type="org.apache.commons.logging.Log"
  16442. transient="false" volatile="false"
  16443. static="true" final="true" visibility="public"
  16444. deprecated="not deprecated">
  16445. </field>
  16446. <doc>
  16447. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16448. </doc>
  16449. </class>
  16450. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16451. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16452. <class name="CompressionInputStream" extends="java.io.InputStream"
  16453. abstract="true"
  16454. static="false" final="false" visibility="public"
  16455. deprecated="not deprecated">
  16456. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16457. static="false" final="false" visibility="protected"
  16458. deprecated="not deprecated">
  16459. <doc>
  16460. <![CDATA[Create a compression input stream that reads
  16461. the decompressed bytes from the given stream.
  16462. @param in The input stream to be compressed.]]>
  16463. </doc>
  16464. </constructor>
  16465. <method name="close"
  16466. abstract="false" native="false" synchronized="false"
  16467. static="false" final="false" visibility="public"
  16468. deprecated="not deprecated">
  16469. <exception name="IOException" type="java.io.IOException"/>
  16470. </method>
  16471. <method name="read" return="int"
  16472. abstract="true" native="false" synchronized="false"
  16473. static="false" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. <param name="b" type="byte[]"/>
  16476. <param name="off" type="int"/>
  16477. <param name="len" type="int"/>
  16478. <exception name="IOException" type="java.io.IOException"/>
  16479. <doc>
  16480. <![CDATA[Read bytes from the stream.
  16481. Made abstract to prevent leakage to underlying stream.]]>
  16482. </doc>
  16483. </method>
  16484. <method name="resetState"
  16485. abstract="true" native="false" synchronized="false"
  16486. static="false" final="false" visibility="public"
  16487. deprecated="not deprecated">
  16488. <exception name="IOException" type="java.io.IOException"/>
  16489. <doc>
  16490. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16491. as the underlying stream may have been repositioned.]]>
  16492. </doc>
  16493. </method>
  16494. <field name="in" type="java.io.InputStream"
  16495. transient="false" volatile="false"
  16496. static="false" final="true" visibility="protected"
  16497. deprecated="not deprecated">
  16498. <doc>
  16499. <![CDATA[The input stream to be compressed.]]>
  16500. </doc>
  16501. </field>
  16502. <doc>
  16503. <![CDATA[A compression input stream.
  16504. <p>Implementations are assumed to be buffered. This permits clients to
  16505. reposition the underlying input stream then call {@link #resetState()},
  16506. without having to also synchronize client buffers.]]>
  16507. </doc>
  16508. </class>
  16509. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  16510. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16511. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  16512. abstract="true"
  16513. static="false" final="false" visibility="public"
  16514. deprecated="not deprecated">
  16515. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  16516. static="false" final="false" visibility="protected"
  16517. deprecated="not deprecated">
  16518. <doc>
  16519. <![CDATA[Create a compression output stream that writes
  16520. the compressed bytes to the given stream.
  16521. @param out]]>
  16522. </doc>
  16523. </constructor>
  16524. <method name="close"
  16525. abstract="false" native="false" synchronized="false"
  16526. static="false" final="false" visibility="public"
  16527. deprecated="not deprecated">
  16528. <exception name="IOException" type="java.io.IOException"/>
  16529. </method>
  16530. <method name="flush"
  16531. abstract="false" native="false" synchronized="false"
  16532. static="false" final="false" visibility="public"
  16533. deprecated="not deprecated">
  16534. <exception name="IOException" type="java.io.IOException"/>
  16535. </method>
  16536. <method name="write"
  16537. abstract="true" native="false" synchronized="false"
  16538. static="false" final="false" visibility="public"
  16539. deprecated="not deprecated">
  16540. <param name="b" type="byte[]"/>
  16541. <param name="off" type="int"/>
  16542. <param name="len" type="int"/>
  16543. <exception name="IOException" type="java.io.IOException"/>
  16544. <doc>
  16545. <![CDATA[Write compressed bytes to the stream.
  16546. Made abstract to prevent leakage to underlying stream.]]>
  16547. </doc>
  16548. </method>
  16549. <method name="finish"
  16550. abstract="true" native="false" synchronized="false"
  16551. static="false" final="false" visibility="public"
  16552. deprecated="not deprecated">
  16553. <exception name="IOException" type="java.io.IOException"/>
  16554. <doc>
  16555. <![CDATA[Finishes writing compressed data to the output stream
  16556. without closing the underlying stream.]]>
  16557. </doc>
  16558. </method>
  16559. <method name="resetState"
  16560. abstract="true" native="false" synchronized="false"
  16561. static="false" final="false" visibility="public"
  16562. deprecated="not deprecated">
  16563. <exception name="IOException" type="java.io.IOException"/>
  16564. <doc>
  16565. <![CDATA[Reset the compression to the initial state.
  16566. Does not reset the underlying stream.]]>
  16567. </doc>
  16568. </method>
  16569. <field name="out" type="java.io.OutputStream"
  16570. transient="false" volatile="false"
  16571. static="false" final="true" visibility="protected"
  16572. deprecated="not deprecated">
  16573. <doc>
  16574. <![CDATA[The output stream to be compressed.]]>
  16575. </doc>
  16576. </field>
  16577. <doc>
  16578. <![CDATA[A compression output stream.]]>
  16579. </doc>
  16580. </class>
  16581. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16582. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  16583. <interface name="Compressor" abstract="true"
  16584. static="false" final="false" visibility="public"
  16585. deprecated="not deprecated">
  16586. <method name="setInput"
  16587. abstract="false" native="false" synchronized="false"
  16588. static="false" final="false" visibility="public"
  16589. deprecated="not deprecated">
  16590. <param name="b" type="byte[]"/>
  16591. <param name="off" type="int"/>
  16592. <param name="len" type="int"/>
  16593. <doc>
  16594. <![CDATA[Sets input data for compression.
  16595. This should be called whenever #needsInput() returns
  16596. <code>true</code> indicating that more input data is required.
  16597. @param b Input data
  16598. @param off Start offset
  16599. @param len Length]]>
  16600. </doc>
  16601. </method>
  16602. <method name="needsInput" return="boolean"
  16603. abstract="false" native="false" synchronized="false"
  16604. static="false" final="false" visibility="public"
  16605. deprecated="not deprecated">
  16606. <doc>
  16607. <![CDATA[Returns true if the input data buffer is empty and
  16608. #setInput() should be called to provide more input.
  16609. @return <code>true</code> if the input data buffer is empty and
  16610. #setInput() should be called in order to provide more input.]]>
  16611. </doc>
  16612. </method>
  16613. <method name="setDictionary"
  16614. abstract="false" native="false" synchronized="false"
  16615. static="false" final="false" visibility="public"
  16616. deprecated="not deprecated">
  16617. <param name="b" type="byte[]"/>
  16618. <param name="off" type="int"/>
  16619. <param name="len" type="int"/>
  16620. <doc>
  16621. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16622. is used when the history buffer can be predetermined.
  16623. @param b Dictionary data bytes
  16624. @param off Start offset
  16625. @param len Length]]>
  16626. </doc>
  16627. </method>
  16628. <method name="getBytesRead" return="long"
  16629. abstract="false" native="false" synchronized="false"
  16630. static="false" final="false" visibility="public"
  16631. deprecated="not deprecated">
  16632. <doc>
  16633. <![CDATA[Return number of uncompressed bytes input so far.]]>
  16634. </doc>
  16635. </method>
  16636. <method name="getBytesWritten" return="long"
  16637. abstract="false" native="false" synchronized="false"
  16638. static="false" final="false" visibility="public"
  16639. deprecated="not deprecated">
  16640. <doc>
  16641. <![CDATA[Return number of compressed bytes output so far.]]>
  16642. </doc>
  16643. </method>
  16644. <method name="finish"
  16645. abstract="false" native="false" synchronized="false"
  16646. static="false" final="false" visibility="public"
  16647. deprecated="not deprecated">
  16648. <doc>
  16649. <![CDATA[When called, indicates that compression should end
  16650. with the current contents of the input buffer.]]>
  16651. </doc>
  16652. </method>
  16653. <method name="finished" return="boolean"
  16654. abstract="false" native="false" synchronized="false"
  16655. static="false" final="false" visibility="public"
  16656. deprecated="not deprecated">
  16657. <doc>
  16658. <![CDATA[Returns true if the end of the compressed
  16659. data output stream has been reached.
  16660. @return <code>true</code> if the end of the compressed
  16661. data output stream has been reached.]]>
  16662. </doc>
  16663. </method>
  16664. <method name="compress" return="int"
  16665. abstract="false" native="false" synchronized="false"
  16666. static="false" final="false" visibility="public"
  16667. deprecated="not deprecated">
  16668. <param name="b" type="byte[]"/>
  16669. <param name="off" type="int"/>
  16670. <param name="len" type="int"/>
  16671. <exception name="IOException" type="java.io.IOException"/>
  16672. <doc>
  16673. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  16674. of bytes of compressed data. A return value of 0 indicates that
  16675. needsInput() should be called in order to determine if more input
  16676. data is required.
  16677. @param b Buffer for the compressed data
  16678. @param off Start offset of the data
  16679. @param len Size of the buffer
  16680. @return The actual number of bytes of compressed data.]]>
  16681. </doc>
  16682. </method>
  16683. <method name="reset"
  16684. abstract="false" native="false" synchronized="false"
  16685. static="false" final="false" visibility="public"
  16686. deprecated="not deprecated">
  16687. <doc>
  16688. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  16689. </doc>
  16690. </method>
  16691. <method name="end"
  16692. abstract="false" native="false" synchronized="false"
  16693. static="false" final="false" visibility="public"
  16694. deprecated="not deprecated">
  16695. <doc>
  16696. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  16697. </doc>
  16698. </method>
  16699. <method name="reinit"
  16700. abstract="false" native="false" synchronized="false"
  16701. static="false" final="false" visibility="public"
  16702. deprecated="not deprecated">
  16703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16704. <doc>
  16705. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  16706. the given Configuration
  16707. @param conf Configuration from which new setting are fetched]]>
  16708. </doc>
  16709. </method>
  16710. <doc>
  16711. <![CDATA[Specification of a stream-based 'compressor' which can be
  16712. plugged into a {@link CompressionOutputStream} to compress data.
  16713. This is modelled after {@link java.util.zip.Deflater}]]>
  16714. </doc>
  16715. </interface>
  16716. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  16717. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  16718. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  16719. abstract="false"
  16720. static="false" final="false" visibility="public"
  16721. deprecated="not deprecated">
  16722. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  16723. static="false" final="false" visibility="public"
  16724. deprecated="not deprecated">
  16725. </constructor>
  16726. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16727. static="false" final="false" visibility="public"
  16728. deprecated="not deprecated">
  16729. </constructor>
  16730. <constructor name="CompressorStream" type="java.io.OutputStream"
  16731. static="false" final="false" visibility="protected"
  16732. deprecated="not deprecated">
  16733. <doc>
  16734. <![CDATA[Allow derived classes to directly set the underlying stream.
  16735. @param out Underlying output stream.]]>
  16736. </doc>
  16737. </constructor>
  16738. <method name="write"
  16739. abstract="false" native="false" synchronized="false"
  16740. static="false" final="false" visibility="public"
  16741. deprecated="not deprecated">
  16742. <param name="b" type="byte[]"/>
  16743. <param name="off" type="int"/>
  16744. <param name="len" type="int"/>
  16745. <exception name="IOException" type="java.io.IOException"/>
  16746. </method>
  16747. <method name="compress"
  16748. abstract="false" native="false" synchronized="false"
  16749. static="false" final="false" visibility="protected"
  16750. deprecated="not deprecated">
  16751. <exception name="IOException" type="java.io.IOException"/>
  16752. </method>
  16753. <method name="finish"
  16754. abstract="false" native="false" synchronized="false"
  16755. static="false" final="false" visibility="public"
  16756. deprecated="not deprecated">
  16757. <exception name="IOException" type="java.io.IOException"/>
  16758. </method>
  16759. <method name="resetState"
  16760. abstract="false" native="false" synchronized="false"
  16761. static="false" final="false" visibility="public"
  16762. deprecated="not deprecated">
  16763. <exception name="IOException" type="java.io.IOException"/>
  16764. </method>
  16765. <method name="close"
  16766. abstract="false" native="false" synchronized="false"
  16767. static="false" final="false" visibility="public"
  16768. deprecated="not deprecated">
  16769. <exception name="IOException" type="java.io.IOException"/>
  16770. </method>
  16771. <method name="write"
  16772. abstract="false" native="false" synchronized="false"
  16773. static="false" final="false" visibility="public"
  16774. deprecated="not deprecated">
  16775. <param name="b" type="int"/>
  16776. <exception name="IOException" type="java.io.IOException"/>
  16777. </method>
  16778. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  16779. transient="false" volatile="false"
  16780. static="false" final="false" visibility="protected"
  16781. deprecated="not deprecated">
  16782. </field>
  16783. <field name="buffer" type="byte[]"
  16784. transient="false" volatile="false"
  16785. static="false" final="false" visibility="protected"
  16786. deprecated="not deprecated">
  16787. </field>
  16788. <field name="closed" type="boolean"
  16789. transient="false" volatile="false"
  16790. static="false" final="false" visibility="protected"
  16791. deprecated="not deprecated">
  16792. </field>
  16793. </class>
  16794. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  16795. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  16796. <interface name="Decompressor" abstract="true"
  16797. static="false" final="false" visibility="public"
  16798. deprecated="not deprecated">
  16799. <method name="setInput"
  16800. abstract="false" native="false" synchronized="false"
  16801. static="false" final="false" visibility="public"
  16802. deprecated="not deprecated">
  16803. <param name="b" type="byte[]"/>
  16804. <param name="off" type="int"/>
  16805. <param name="len" type="int"/>
  16806. <doc>
  16807. <![CDATA[Sets input data for decompression.
  16808. This should be called if and only if {@link #needsInput()} returns
  16809. <code>true</code> indicating that more input data is required.
  16810. (Both native and non-native versions of various Decompressors require
  16811. that the data passed in via <code>b[]</code> remain unmodified until
  16812. the caller is explicitly notified--via {@link #needsInput()}--that the
  16813. buffer may be safely modified. With this requirement, an extra
  16814. buffer-copy can be avoided.)
  16815. @param b Input data
  16816. @param off Start offset
  16817. @param len Length]]>
  16818. </doc>
  16819. </method>
  16820. <method name="needsInput" return="boolean"
  16821. abstract="false" native="false" synchronized="false"
  16822. static="false" final="false" visibility="public"
  16823. deprecated="not deprecated">
  16824. <doc>
  16825. <![CDATA[Returns true if the input data buffer is empty and
  16826. {@link #setInput(byte[], int, int)} should be called to
  16827. provide more input.
  16828. @return <code>true</code> if the input data buffer is empty and
  16829. {@link #setInput(byte[], int, int)} should be called in
  16830. order to provide more input.]]>
  16831. </doc>
  16832. </method>
  16833. <method name="setDictionary"
  16834. abstract="false" native="false" synchronized="false"
  16835. static="false" final="false" visibility="public"
  16836. deprecated="not deprecated">
  16837. <param name="b" type="byte[]"/>
  16838. <param name="off" type="int"/>
  16839. <param name="len" type="int"/>
  16840. <doc>
  16841. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16842. is used when the history buffer can be predetermined.
  16843. @param b Dictionary data bytes
  16844. @param off Start offset
  16845. @param len Length]]>
  16846. </doc>
  16847. </method>
  16848. <method name="needsDictionary" return="boolean"
  16849. abstract="false" native="false" synchronized="false"
  16850. static="false" final="false" visibility="public"
  16851. deprecated="not deprecated">
  16852. <doc>
  16853. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  16854. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  16855. </doc>
  16856. </method>
  16857. <method name="finished" return="boolean"
  16858. abstract="false" native="false" synchronized="false"
  16859. static="false" final="false" visibility="public"
  16860. deprecated="not deprecated">
  16861. <doc>
  16862. <![CDATA[Returns true if the end of the decompressed
  16863. data output stream has been reached.
  16864. @return <code>true</code> if the end of the decompressed
  16865. data output stream has been reached.]]>
  16866. </doc>
  16867. </method>
  16868. <method name="decompress" return="int"
  16869. abstract="false" native="false" synchronized="false"
  16870. static="false" final="false" visibility="public"
  16871. deprecated="not deprecated">
  16872. <param name="b" type="byte[]"/>
  16873. <param name="off" type="int"/>
  16874. <param name="len" type="int"/>
  16875. <exception name="IOException" type="java.io.IOException"/>
  16876. <doc>
  16877. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  16878. of bytes of uncompressed data. A return value of 0 indicates that
  16879. {@link #needsInput()} should be called in order to determine if more
  16880. input data is required.
  16881. @param b Buffer for the compressed data
  16882. @param off Start offset of the data
  16883. @param len Size of the buffer
  16884. @return The actual number of bytes of compressed data.
  16885. @throws IOException]]>
  16886. </doc>
  16887. </method>
  16888. <method name="getRemaining" return="int"
  16889. abstract="false" native="false" synchronized="false"
  16890. static="false" final="false" visibility="public"
  16891. deprecated="not deprecated">
  16892. <doc>
  16893. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  16894. typically called after the decompressor has finished decompressing
  16895. the current gzip stream (a.k.a. "member").]]>
  16896. </doc>
  16897. </method>
  16898. <method name="reset"
  16899. abstract="false" native="false" synchronized="false"
  16900. static="false" final="false" visibility="public"
  16901. deprecated="not deprecated">
  16902. <doc>
  16903. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  16904. input data can be processed.]]>
  16905. </doc>
  16906. </method>
  16907. <method name="end"
  16908. abstract="false" native="false" synchronized="false"
  16909. static="false" final="false" visibility="public"
  16910. deprecated="not deprecated">
  16911. <doc>
  16912. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  16913. </doc>
  16914. </method>
  16915. <doc>
  16916. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  16917. plugged into a {@link CompressionInputStream} to compress data.
  16918. This is modelled after {@link java.util.zip.Inflater}]]>
  16919. </doc>
  16920. </interface>
  16921. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  16922. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  16923. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  16924. abstract="false"
  16925. static="false" final="false" visibility="public"
  16926. deprecated="not deprecated">
  16927. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16928. static="false" final="false" visibility="public"
  16929. deprecated="not deprecated">
  16930. </constructor>
  16931. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16932. static="false" final="false" visibility="public"
  16933. deprecated="not deprecated">
  16934. </constructor>
  16935. <constructor name="DecompressorStream" type="java.io.InputStream"
  16936. static="false" final="false" visibility="protected"
  16937. deprecated="not deprecated">
  16938. <doc>
  16939. <![CDATA[Allow derived classes to directly set the underlying stream.
  16940. @param in Underlying input stream.]]>
  16941. </doc>
  16942. </constructor>
  16943. <method name="read" return="int"
  16944. abstract="false" native="false" synchronized="false"
  16945. static="false" final="false" visibility="public"
  16946. deprecated="not deprecated">
  16947. <exception name="IOException" type="java.io.IOException"/>
  16948. </method>
  16949. <method name="read" return="int"
  16950. abstract="false" native="false" synchronized="false"
  16951. static="false" final="false" visibility="public"
  16952. deprecated="not deprecated">
  16953. <param name="b" type="byte[]"/>
  16954. <param name="off" type="int"/>
  16955. <param name="len" type="int"/>
  16956. <exception name="IOException" type="java.io.IOException"/>
  16957. </method>
  16958. <method name="decompress" return="int"
  16959. abstract="false" native="false" synchronized="false"
  16960. static="false" final="false" visibility="protected"
  16961. deprecated="not deprecated">
  16962. <param name="b" type="byte[]"/>
  16963. <param name="off" type="int"/>
  16964. <param name="len" type="int"/>
  16965. <exception name="IOException" type="java.io.IOException"/>
  16966. </method>
  16967. <method name="getCompressedData" return="int"
  16968. abstract="false" native="false" synchronized="false"
  16969. static="false" final="false" visibility="protected"
  16970. deprecated="not deprecated">
  16971. <exception name="IOException" type="java.io.IOException"/>
  16972. </method>
  16973. <method name="checkStream"
  16974. abstract="false" native="false" synchronized="false"
  16975. static="false" final="false" visibility="protected"
  16976. deprecated="not deprecated">
  16977. <exception name="IOException" type="java.io.IOException"/>
  16978. </method>
  16979. <method name="resetState"
  16980. abstract="false" native="false" synchronized="false"
  16981. static="false" final="false" visibility="public"
  16982. deprecated="not deprecated">
  16983. <exception name="IOException" type="java.io.IOException"/>
  16984. </method>
  16985. <method name="skip" return="long"
  16986. abstract="false" native="false" synchronized="false"
  16987. static="false" final="false" visibility="public"
  16988. deprecated="not deprecated">
  16989. <param name="n" type="long"/>
  16990. <exception name="IOException" type="java.io.IOException"/>
  16991. </method>
  16992. <method name="available" return="int"
  16993. abstract="false" native="false" synchronized="false"
  16994. static="false" final="false" visibility="public"
  16995. deprecated="not deprecated">
  16996. <exception name="IOException" type="java.io.IOException"/>
  16997. </method>
  16998. <method name="close"
  16999. abstract="false" native="false" synchronized="false"
  17000. static="false" final="false" visibility="public"
  17001. deprecated="not deprecated">
  17002. <exception name="IOException" type="java.io.IOException"/>
  17003. </method>
  17004. <method name="markSupported" return="boolean"
  17005. abstract="false" native="false" synchronized="false"
  17006. static="false" final="false" visibility="public"
  17007. deprecated="not deprecated">
  17008. </method>
  17009. <method name="mark"
  17010. abstract="false" native="false" synchronized="true"
  17011. static="false" final="false" visibility="public"
  17012. deprecated="not deprecated">
  17013. <param name="readlimit" type="int"/>
  17014. </method>
  17015. <method name="reset"
  17016. abstract="false" native="false" synchronized="true"
  17017. static="false" final="false" visibility="public"
  17018. deprecated="not deprecated">
  17019. <exception name="IOException" type="java.io.IOException"/>
  17020. </method>
  17021. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  17022. transient="false" volatile="false"
  17023. static="false" final="false" visibility="protected"
  17024. deprecated="not deprecated">
  17025. </field>
  17026. <field name="buffer" type="byte[]"
  17027. transient="false" volatile="false"
  17028. static="false" final="false" visibility="protected"
  17029. deprecated="not deprecated">
  17030. </field>
  17031. <field name="eof" type="boolean"
  17032. transient="false" volatile="false"
  17033. static="false" final="false" visibility="protected"
  17034. deprecated="not deprecated">
  17035. </field>
  17036. <field name="closed" type="boolean"
  17037. transient="false" volatile="false"
  17038. static="false" final="false" visibility="protected"
  17039. deprecated="not deprecated">
  17040. </field>
  17041. </class>
  17042. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17043. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17044. <class name="DefaultCodec" extends="java.lang.Object"
  17045. abstract="false"
  17046. static="false" final="false" visibility="public"
  17047. deprecated="not deprecated">
  17048. <implements name="org.apache.hadoop.conf.Configurable"/>
  17049. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17050. <constructor name="DefaultCodec"
  17051. static="false" final="false" visibility="public"
  17052. deprecated="not deprecated">
  17053. </constructor>
  17054. <method name="setConf"
  17055. abstract="false" native="false" synchronized="false"
  17056. static="false" final="false" visibility="public"
  17057. deprecated="not deprecated">
  17058. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17059. </method>
  17060. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17061. abstract="false" native="false" synchronized="false"
  17062. static="false" final="false" visibility="public"
  17063. deprecated="not deprecated">
  17064. </method>
  17065. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17066. abstract="false" native="false" synchronized="false"
  17067. static="false" final="false" visibility="public"
  17068. deprecated="not deprecated">
  17069. <param name="out" type="java.io.OutputStream"/>
  17070. <exception name="IOException" type="java.io.IOException"/>
  17071. </method>
  17072. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17073. abstract="false" native="false" synchronized="false"
  17074. static="false" final="false" visibility="public"
  17075. deprecated="not deprecated">
  17076. <param name="out" type="java.io.OutputStream"/>
  17077. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17078. <exception name="IOException" type="java.io.IOException"/>
  17079. </method>
  17080. <method name="getCompressorType" return="java.lang.Class"
  17081. abstract="false" native="false" synchronized="false"
  17082. static="false" final="false" visibility="public"
  17083. deprecated="not deprecated">
  17084. </method>
  17085. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17086. abstract="false" native="false" synchronized="false"
  17087. static="false" final="false" visibility="public"
  17088. deprecated="not deprecated">
  17089. </method>
  17090. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17091. abstract="false" native="false" synchronized="false"
  17092. static="false" final="false" visibility="public"
  17093. deprecated="not deprecated">
  17094. <param name="in" type="java.io.InputStream"/>
  17095. <exception name="IOException" type="java.io.IOException"/>
  17096. </method>
  17097. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17098. abstract="false" native="false" synchronized="false"
  17099. static="false" final="false" visibility="public"
  17100. deprecated="not deprecated">
  17101. <param name="in" type="java.io.InputStream"/>
  17102. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17103. <exception name="IOException" type="java.io.IOException"/>
  17104. </method>
  17105. <method name="getDecompressorType" return="java.lang.Class"
  17106. abstract="false" native="false" synchronized="false"
  17107. static="false" final="false" visibility="public"
  17108. deprecated="not deprecated">
  17109. </method>
  17110. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17111. abstract="false" native="false" synchronized="false"
  17112. static="false" final="false" visibility="public"
  17113. deprecated="not deprecated">
  17114. </method>
  17115. <method name="getDefaultExtension" return="java.lang.String"
  17116. abstract="false" native="false" synchronized="false"
  17117. static="false" final="false" visibility="public"
  17118. deprecated="not deprecated">
  17119. </method>
  17120. </class>
  17121. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17122. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17123. <interface name="DoNotPool" abstract="true"
  17124. static="false" final="false" visibility="public"
  17125. deprecated="not deprecated">
  17126. <implements name="java.lang.annotation.Annotation"/>
  17127. <doc>
  17128. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17129. type as not to be pooled.]]>
  17130. </doc>
  17131. </interface>
  17132. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17133. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17134. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17135. abstract="false"
  17136. static="false" final="false" visibility="public"
  17137. deprecated="not deprecated">
  17138. <constructor name="GzipCodec"
  17139. static="false" final="false" visibility="public"
  17140. deprecated="not deprecated">
  17141. </constructor>
  17142. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17143. abstract="false" native="false" synchronized="false"
  17144. static="false" final="false" visibility="public"
  17145. deprecated="not deprecated">
  17146. <param name="out" type="java.io.OutputStream"/>
  17147. <exception name="IOException" type="java.io.IOException"/>
  17148. </method>
  17149. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17150. abstract="false" native="false" synchronized="false"
  17151. static="false" final="false" visibility="public"
  17152. deprecated="not deprecated">
  17153. <param name="out" type="java.io.OutputStream"/>
  17154. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17155. <exception name="IOException" type="java.io.IOException"/>
  17156. </method>
  17157. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17158. abstract="false" native="false" synchronized="false"
  17159. static="false" final="false" visibility="public"
  17160. deprecated="not deprecated">
  17161. </method>
  17162. <method name="getCompressorType" return="java.lang.Class"
  17163. abstract="false" native="false" synchronized="false"
  17164. static="false" final="false" visibility="public"
  17165. deprecated="not deprecated">
  17166. </method>
  17167. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17168. abstract="false" native="false" synchronized="false"
  17169. static="false" final="false" visibility="public"
  17170. deprecated="not deprecated">
  17171. <param name="in" type="java.io.InputStream"/>
  17172. <exception name="IOException" type="java.io.IOException"/>
  17173. </method>
  17174. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17175. abstract="false" native="false" synchronized="false"
  17176. static="false" final="false" visibility="public"
  17177. deprecated="not deprecated">
  17178. <param name="in" type="java.io.InputStream"/>
  17179. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17180. <exception name="IOException" type="java.io.IOException"/>
  17181. </method>
  17182. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17183. abstract="false" native="false" synchronized="false"
  17184. static="false" final="false" visibility="public"
  17185. deprecated="not deprecated">
  17186. </method>
  17187. <method name="getDecompressorType" return="java.lang.Class"
  17188. abstract="false" native="false" synchronized="false"
  17189. static="false" final="false" visibility="public"
  17190. deprecated="not deprecated">
  17191. </method>
  17192. <method name="getDefaultExtension" return="java.lang.String"
  17193. abstract="false" native="false" synchronized="false"
  17194. static="false" final="false" visibility="public"
  17195. deprecated="not deprecated">
  17196. </method>
  17197. <doc>
  17198. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17199. </doc>
  17200. </class>
  17201. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17202. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17203. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17204. abstract="false"
  17205. static="true" final="false" visibility="protected"
  17206. deprecated="not deprecated">
  17207. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17208. static="false" final="false" visibility="public"
  17209. deprecated="not deprecated">
  17210. <exception name="IOException" type="java.io.IOException"/>
  17211. </constructor>
  17212. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17213. static="false" final="false" visibility="protected"
  17214. deprecated="not deprecated">
  17215. <doc>
  17216. <![CDATA[Allow children types to put a different type in here.
  17217. @param out the Deflater stream to use]]>
  17218. </doc>
  17219. </constructor>
  17220. <method name="close"
  17221. abstract="false" native="false" synchronized="false"
  17222. static="false" final="false" visibility="public"
  17223. deprecated="not deprecated">
  17224. <exception name="IOException" type="java.io.IOException"/>
  17225. </method>
  17226. <method name="flush"
  17227. abstract="false" native="false" synchronized="false"
  17228. static="false" final="false" visibility="public"
  17229. deprecated="not deprecated">
  17230. <exception name="IOException" type="java.io.IOException"/>
  17231. </method>
  17232. <method name="write"
  17233. abstract="false" native="false" synchronized="false"
  17234. static="false" final="false" visibility="public"
  17235. deprecated="not deprecated">
  17236. <param name="b" type="int"/>
  17237. <exception name="IOException" type="java.io.IOException"/>
  17238. </method>
  17239. <method name="write"
  17240. abstract="false" native="false" synchronized="false"
  17241. static="false" final="false" visibility="public"
  17242. deprecated="not deprecated">
  17243. <param name="data" type="byte[]"/>
  17244. <param name="offset" type="int"/>
  17245. <param name="length" type="int"/>
  17246. <exception name="IOException" type="java.io.IOException"/>
  17247. </method>
  17248. <method name="finish"
  17249. abstract="false" native="false" synchronized="false"
  17250. static="false" final="false" visibility="public"
  17251. deprecated="not deprecated">
  17252. <exception name="IOException" type="java.io.IOException"/>
  17253. </method>
  17254. <method name="resetState"
  17255. abstract="false" native="false" synchronized="false"
  17256. static="false" final="false" visibility="public"
  17257. deprecated="not deprecated">
  17258. <exception name="IOException" type="java.io.IOException"/>
  17259. </method>
  17260. <doc>
  17261. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17262. a CompressionOutputStream.]]>
  17263. </doc>
  17264. </class>
  17265. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17266. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  17267. <class name="SnappyCodec" extends="java.lang.Object"
  17268. abstract="false"
  17269. static="false" final="false" visibility="public"
  17270. deprecated="not deprecated">
  17271. <implements name="org.apache.hadoop.conf.Configurable"/>
  17272. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17273. <constructor name="SnappyCodec"
  17274. static="false" final="false" visibility="public"
  17275. deprecated="not deprecated">
  17276. </constructor>
  17277. <method name="setConf"
  17278. abstract="false" native="false" synchronized="false"
  17279. static="false" final="false" visibility="public"
  17280. deprecated="not deprecated">
  17281. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17282. <doc>
  17283. <![CDATA[Set the configuration to be used by this object.
  17284. @param conf the configuration object.]]>
  17285. </doc>
  17286. </method>
  17287. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17288. abstract="false" native="false" synchronized="false"
  17289. static="false" final="false" visibility="public"
  17290. deprecated="not deprecated">
  17291. <doc>
  17292. <![CDATA[Return the configuration used by this object.
  17293. @return the configuration object used by this objec.]]>
  17294. </doc>
  17295. </method>
  17296. <method name="isNativeSnappyLoaded" return="boolean"
  17297. abstract="false" native="false" synchronized="false"
  17298. static="true" final="false" visibility="public"
  17299. deprecated="not deprecated">
  17300. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17301. <doc>
  17302. <![CDATA[Are the native snappy libraries loaded & initialized?
  17303. @param conf configuration
  17304. @return true if loaded & initialized, otherwise false]]>
  17305. </doc>
  17306. </method>
  17307. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17308. abstract="false" native="false" synchronized="false"
  17309. static="false" final="false" visibility="public"
  17310. deprecated="not deprecated">
  17311. <param name="out" type="java.io.OutputStream"/>
  17312. <exception name="IOException" type="java.io.IOException"/>
  17313. <doc>
  17314. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17315. {@link OutputStream}.
  17316. @param out the location for the final output stream
  17317. @return a stream the user can write uncompressed data to have it compressed
  17318. @throws IOException]]>
  17319. </doc>
  17320. </method>
  17321. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17322. abstract="false" native="false" synchronized="false"
  17323. static="false" final="false" visibility="public"
  17324. deprecated="not deprecated">
  17325. <param name="out" type="java.io.OutputStream"/>
  17326. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17327. <exception name="IOException" type="java.io.IOException"/>
  17328. <doc>
  17329. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17330. {@link OutputStream} with the given {@link Compressor}.
  17331. @param out the location for the final output stream
  17332. @param compressor compressor to use
  17333. @return a stream the user can write uncompressed data to have it compressed
  17334. @throws IOException]]>
  17335. </doc>
  17336. </method>
  17337. <method name="getCompressorType" return="java.lang.Class"
  17338. abstract="false" native="false" synchronized="false"
  17339. static="false" final="false" visibility="public"
  17340. deprecated="not deprecated">
  17341. <doc>
  17342. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  17343. @return the type of compressor needed by this codec.]]>
  17344. </doc>
  17345. </method>
  17346. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17347. abstract="false" native="false" synchronized="false"
  17348. static="false" final="false" visibility="public"
  17349. deprecated="not deprecated">
  17350. <doc>
  17351. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  17352. @return a new compressor for use by this codec]]>
  17353. </doc>
  17354. </method>
  17355. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17356. abstract="false" native="false" synchronized="false"
  17357. static="false" final="false" visibility="public"
  17358. deprecated="not deprecated">
  17359. <param name="in" type="java.io.InputStream"/>
  17360. <exception name="IOException" type="java.io.IOException"/>
  17361. <doc>
  17362. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17363. input stream.
  17364. @param in the stream to read compressed bytes from
  17365. @return a stream to read uncompressed bytes from
  17366. @throws IOException]]>
  17367. </doc>
  17368. </method>
  17369. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17370. abstract="false" native="false" synchronized="false"
  17371. static="false" final="false" visibility="public"
  17372. deprecated="not deprecated">
  17373. <param name="in" type="java.io.InputStream"/>
  17374. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17375. <exception name="IOException" type="java.io.IOException"/>
  17376. <doc>
  17377. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17378. {@link InputStream} with the given {@link Decompressor}.
  17379. @param in the stream to read compressed bytes from
  17380. @param decompressor decompressor to use
  17381. @return a stream to read uncompressed bytes from
  17382. @throws IOException]]>
  17383. </doc>
  17384. </method>
  17385. <method name="getDecompressorType" return="java.lang.Class"
  17386. abstract="false" native="false" synchronized="false"
  17387. static="false" final="false" visibility="public"
  17388. deprecated="not deprecated">
  17389. <doc>
  17390. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  17391. @return the type of decompressor needed by this codec.]]>
  17392. </doc>
  17393. </method>
  17394. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17395. abstract="false" native="false" synchronized="false"
  17396. static="false" final="false" visibility="public"
  17397. deprecated="not deprecated">
  17398. <doc>
  17399. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  17400. @return a new decompressor for use by this codec]]>
  17401. </doc>
  17402. </method>
  17403. <method name="getDefaultExtension" return="java.lang.String"
  17404. abstract="false" native="false" synchronized="false"
  17405. static="false" final="false" visibility="public"
  17406. deprecated="not deprecated">
  17407. <doc>
  17408. <![CDATA[Get the default filename extension for this kind of compression.
  17409. @return <code>.snappy</code>.]]>
  17410. </doc>
  17411. </method>
  17412. <doc>
  17413. <![CDATA[This class creates snappy compressors/decompressors.]]>
  17414. </doc>
  17415. </class>
  17416. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  17417. </package>
  17418. <package name="org.apache.hadoop.io.compress.bzip2">
  17419. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17420. <interface name="BZip2Constants" abstract="true"
  17421. static="false" final="false" visibility="public"
  17422. deprecated="not deprecated">
  17423. <field name="baseBlockSize" type="int"
  17424. transient="false" volatile="false"
  17425. static="true" final="true" visibility="public"
  17426. deprecated="not deprecated">
  17427. </field>
  17428. <field name="MAX_ALPHA_SIZE" type="int"
  17429. transient="false" volatile="false"
  17430. static="true" final="true" visibility="public"
  17431. deprecated="not deprecated">
  17432. </field>
  17433. <field name="MAX_CODE_LEN" type="int"
  17434. transient="false" volatile="false"
  17435. static="true" final="true" visibility="public"
  17436. deprecated="not deprecated">
  17437. </field>
  17438. <field name="RUNA" type="int"
  17439. transient="false" volatile="false"
  17440. static="true" final="true" visibility="public"
  17441. deprecated="not deprecated">
  17442. </field>
  17443. <field name="RUNB" type="int"
  17444. transient="false" volatile="false"
  17445. static="true" final="true" visibility="public"
  17446. deprecated="not deprecated">
  17447. </field>
  17448. <field name="N_GROUPS" type="int"
  17449. transient="false" volatile="false"
  17450. static="true" final="true" visibility="public"
  17451. deprecated="not deprecated">
  17452. </field>
  17453. <field name="G_SIZE" type="int"
  17454. transient="false" volatile="false"
  17455. static="true" final="true" visibility="public"
  17456. deprecated="not deprecated">
  17457. </field>
  17458. <field name="N_ITERS" type="int"
  17459. transient="false" volatile="false"
  17460. static="true" final="true" visibility="public"
  17461. deprecated="not deprecated">
  17462. </field>
  17463. <field name="MAX_SELECTORS" type="int"
  17464. transient="false" volatile="false"
  17465. static="true" final="true" visibility="public"
  17466. deprecated="not deprecated">
  17467. </field>
  17468. <field name="NUM_OVERSHOOT_BYTES" type="int"
  17469. transient="false" volatile="false"
  17470. static="true" final="true" visibility="public"
  17471. deprecated="not deprecated">
  17472. </field>
  17473. <field name="rNums" type="int[]"
  17474. transient="false" volatile="false"
  17475. static="true" final="true" visibility="public"
  17476. deprecated="not deprecated">
  17477. <doc>
  17478. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  17479. is.
  17480. <p>
  17481. FIXME: This array should be in a private or package private location,
  17482. since it could be modified by malicious code.
  17483. </p>]]>
  17484. </doc>
  17485. </field>
  17486. <doc>
  17487. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  17488. and static data.
  17489. <p>
  17490. This interface is public for historical purposes. You should have no need to
  17491. use it.
  17492. </p>]]>
  17493. </doc>
  17494. </interface>
  17495. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17496. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17497. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  17498. abstract="false"
  17499. static="false" final="false" visibility="public"
  17500. deprecated="not deprecated">
  17501. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17502. <constructor name="BZip2DummyCompressor"
  17503. static="false" final="false" visibility="public"
  17504. deprecated="not deprecated">
  17505. </constructor>
  17506. <method name="compress" return="int"
  17507. abstract="false" native="false" synchronized="false"
  17508. static="false" final="false" visibility="public"
  17509. deprecated="not deprecated">
  17510. <param name="b" type="byte[]"/>
  17511. <param name="off" type="int"/>
  17512. <param name="len" type="int"/>
  17513. <exception name="IOException" type="java.io.IOException"/>
  17514. </method>
  17515. <method name="end"
  17516. abstract="false" native="false" synchronized="false"
  17517. static="false" final="false" visibility="public"
  17518. deprecated="not deprecated">
  17519. </method>
  17520. <method name="finish"
  17521. abstract="false" native="false" synchronized="false"
  17522. static="false" final="false" visibility="public"
  17523. deprecated="not deprecated">
  17524. </method>
  17525. <method name="finished" return="boolean"
  17526. abstract="false" native="false" synchronized="false"
  17527. static="false" final="false" visibility="public"
  17528. deprecated="not deprecated">
  17529. </method>
  17530. <method name="getBytesRead" return="long"
  17531. abstract="false" native="false" synchronized="false"
  17532. static="false" final="false" visibility="public"
  17533. deprecated="not deprecated">
  17534. </method>
  17535. <method name="getBytesWritten" return="long"
  17536. abstract="false" native="false" synchronized="false"
  17537. static="false" final="false" visibility="public"
  17538. deprecated="not deprecated">
  17539. </method>
  17540. <method name="needsInput" return="boolean"
  17541. abstract="false" native="false" synchronized="false"
  17542. static="false" final="false" visibility="public"
  17543. deprecated="not deprecated">
  17544. </method>
  17545. <method name="reset"
  17546. abstract="false" native="false" synchronized="false"
  17547. static="false" final="false" visibility="public"
  17548. deprecated="not deprecated">
  17549. </method>
  17550. <method name="setDictionary"
  17551. abstract="false" native="false" synchronized="false"
  17552. static="false" final="false" visibility="public"
  17553. deprecated="not deprecated">
  17554. <param name="b" type="byte[]"/>
  17555. <param name="off" type="int"/>
  17556. <param name="len" type="int"/>
  17557. </method>
  17558. <method name="setInput"
  17559. abstract="false" native="false" synchronized="false"
  17560. static="false" final="false" visibility="public"
  17561. deprecated="not deprecated">
  17562. <param name="b" type="byte[]"/>
  17563. <param name="off" type="int"/>
  17564. <param name="len" type="int"/>
  17565. </method>
  17566. <method name="reinit"
  17567. abstract="false" native="false" synchronized="false"
  17568. static="false" final="false" visibility="public"
  17569. deprecated="not deprecated">
  17570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17571. </method>
  17572. <doc>
  17573. <![CDATA[This is a dummy compressor for BZip2.]]>
  17574. </doc>
  17575. </class>
  17576. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17577. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17578. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  17579. abstract="false"
  17580. static="false" final="false" visibility="public"
  17581. deprecated="not deprecated">
  17582. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17583. <constructor name="BZip2DummyDecompressor"
  17584. static="false" final="false" visibility="public"
  17585. deprecated="not deprecated">
  17586. </constructor>
  17587. <method name="decompress" return="int"
  17588. abstract="false" native="false" synchronized="false"
  17589. static="false" final="false" visibility="public"
  17590. deprecated="not deprecated">
  17591. <param name="b" type="byte[]"/>
  17592. <param name="off" type="int"/>
  17593. <param name="len" type="int"/>
  17594. <exception name="IOException" type="java.io.IOException"/>
  17595. </method>
  17596. <method name="end"
  17597. abstract="false" native="false" synchronized="false"
  17598. static="false" final="false" visibility="public"
  17599. deprecated="not deprecated">
  17600. </method>
  17601. <method name="finished" return="boolean"
  17602. abstract="false" native="false" synchronized="false"
  17603. static="false" final="false" visibility="public"
  17604. deprecated="not deprecated">
  17605. </method>
  17606. <method name="needsDictionary" return="boolean"
  17607. abstract="false" native="false" synchronized="false"
  17608. static="false" final="false" visibility="public"
  17609. deprecated="not deprecated">
  17610. </method>
  17611. <method name="needsInput" return="boolean"
  17612. abstract="false" native="false" synchronized="false"
  17613. static="false" final="false" visibility="public"
  17614. deprecated="not deprecated">
  17615. </method>
  17616. <method name="getRemaining" return="int"
  17617. abstract="false" native="false" synchronized="false"
  17618. static="false" final="false" visibility="public"
  17619. deprecated="not deprecated">
  17620. </method>
  17621. <method name="reset"
  17622. abstract="false" native="false" synchronized="false"
  17623. static="false" final="false" visibility="public"
  17624. deprecated="not deprecated">
  17625. </method>
  17626. <method name="setDictionary"
  17627. abstract="false" native="false" synchronized="false"
  17628. static="false" final="false" visibility="public"
  17629. deprecated="not deprecated">
  17630. <param name="b" type="byte[]"/>
  17631. <param name="off" type="int"/>
  17632. <param name="len" type="int"/>
  17633. </method>
  17634. <method name="setInput"
  17635. abstract="false" native="false" synchronized="false"
  17636. static="false" final="false" visibility="public"
  17637. deprecated="not deprecated">
  17638. <param name="b" type="byte[]"/>
  17639. <param name="off" type="int"/>
  17640. <param name="len" type="int"/>
  17641. </method>
  17642. <doc>
  17643. <![CDATA[This is a dummy decompressor for BZip2.]]>
  17644. </doc>
  17645. </class>
  17646. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17647. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17648. <class name="CBZip2InputStream" extends="java.io.InputStream"
  17649. abstract="false"
  17650. static="false" final="false" visibility="public"
  17651. deprecated="not deprecated">
  17652. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17653. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  17654. static="false" final="false" visibility="public"
  17655. deprecated="not deprecated">
  17656. <exception name="IOException" type="java.io.IOException"/>
  17657. <doc>
  17658. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  17659. specified stream.
  17660. <p>
  17661. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  17662. constructor expects the next byte in the stream to be the first one after
  17663. the magic. Thus callers have to skip the first two bytes. Otherwise this
  17664. constructor will throw an exception.
  17665. </p>
  17666. @throws IOException
  17667. if the stream content is malformed or an I/O error occurs.
  17668. @throws NullPointerException
  17669. if <tt>in == null</tt>]]>
  17670. </doc>
  17671. </constructor>
  17672. <method name="read" return="int"
  17673. abstract="false" native="false" synchronized="false"
  17674. static="false" final="false" visibility="public"
  17675. deprecated="not deprecated">
  17676. <exception name="IOException" type="java.io.IOException"/>
  17677. </method>
  17678. <method name="read" return="int"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="false" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <param name="dest" type="byte[]"/>
  17683. <param name="offs" type="int"/>
  17684. <param name="len" type="int"/>
  17685. <exception name="IOException" type="java.io.IOException"/>
  17686. </method>
  17687. <method name="close"
  17688. abstract="false" native="false" synchronized="false"
  17689. static="false" final="false" visibility="public"
  17690. deprecated="not deprecated">
  17691. <exception name="IOException" type="java.io.IOException"/>
  17692. </method>
  17693. <doc>
  17694. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  17695. header chars) to be read as any other stream.
  17696. <p>
  17697. The decompression requires large amounts of memory. Thus you should call the
  17698. {@link #close() close()} method as soon as possible, to force
  17699. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  17700. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  17701. usage.
  17702. </p>
  17703. <p>
  17704. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  17705. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  17706. Thus you should consider to use a buffered source stream.
  17707. </p>
  17708. <p>
  17709. Instances of this class are not threadsafe.
  17710. </p>]]>
  17711. </doc>
  17712. </class>
  17713. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17714. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  17715. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  17716. abstract="false"
  17717. static="false" final="false" visibility="public"
  17718. deprecated="not deprecated">
  17719. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17720. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  17721. static="false" final="false" visibility="public"
  17722. deprecated="not deprecated">
  17723. <exception name="IOException" type="java.io.IOException"/>
  17724. <doc>
  17725. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  17726. <p>
  17727. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17728. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17729. constructor.
  17730. </p>
  17731. @param out *
  17732. the destination stream.
  17733. @throws IOException
  17734. if an I/O error occurs in the specified stream.
  17735. @throws NullPointerException
  17736. if <code>out == null</code>.]]>
  17737. </doc>
  17738. </constructor>
  17739. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  17740. static="false" final="false" visibility="public"
  17741. deprecated="not deprecated">
  17742. <exception name="IOException" type="java.io.IOException"/>
  17743. <doc>
  17744. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  17745. <p>
  17746. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17747. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17748. constructor.
  17749. </p>
  17750. @param out
  17751. the destination stream.
  17752. @param blockSize
  17753. the blockSize as 100k units.
  17754. @throws IOException
  17755. if an I/O error occurs in the specified stream.
  17756. @throws IllegalArgumentException
  17757. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  17758. @throws NullPointerException
  17759. if <code>out == null</code>.
  17760. @see #MIN_BLOCKSIZE
  17761. @see #MAX_BLOCKSIZE]]>
  17762. </doc>
  17763. </constructor>
  17764. <method name="hbMakeCodeLengths"
  17765. abstract="false" native="false" synchronized="false"
  17766. static="true" final="false" visibility="protected"
  17767. deprecated="not deprecated">
  17768. <param name="len" type="char[]"/>
  17769. <param name="freq" type="int[]"/>
  17770. <param name="alphaSize" type="int"/>
  17771. <param name="maxLen" type="int"/>
  17772. <doc>
  17773. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  17774. don't know what it does then you don't need it.]]>
  17775. </doc>
  17776. </method>
  17777. <method name="chooseBlockSize" return="int"
  17778. abstract="false" native="false" synchronized="false"
  17779. static="true" final="false" visibility="public"
  17780. deprecated="not deprecated">
  17781. <param name="inputLength" type="long"/>
  17782. <doc>
  17783. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  17784. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  17785. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  17786. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  17787. always.
  17788. @param inputLength
  17789. The length of the data which will be compressed by
  17790. <tt>CBZip2OutputStream</tt>.]]>
  17791. </doc>
  17792. </method>
  17793. <method name="write"
  17794. abstract="false" native="false" synchronized="false"
  17795. static="false" final="false" visibility="public"
  17796. deprecated="not deprecated">
  17797. <param name="b" type="int"/>
  17798. <exception name="IOException" type="java.io.IOException"/>
  17799. </method>
  17800. <method name="finalize"
  17801. abstract="false" native="false" synchronized="false"
  17802. static="false" final="false" visibility="protected"
  17803. deprecated="not deprecated">
  17804. <exception name="Throwable" type="java.lang.Throwable"/>
  17805. <doc>
  17806. <![CDATA[Overriden to close the stream.]]>
  17807. </doc>
  17808. </method>
  17809. <method name="finish"
  17810. abstract="false" native="false" synchronized="false"
  17811. static="false" final="false" visibility="public"
  17812. deprecated="not deprecated">
  17813. <exception name="IOException" type="java.io.IOException"/>
  17814. </method>
  17815. <method name="close"
  17816. abstract="false" native="false" synchronized="false"
  17817. static="false" final="false" visibility="public"
  17818. deprecated="not deprecated">
  17819. <exception name="IOException" type="java.io.IOException"/>
  17820. </method>
  17821. <method name="flush"
  17822. abstract="false" native="false" synchronized="false"
  17823. static="false" final="false" visibility="public"
  17824. deprecated="not deprecated">
  17825. <exception name="IOException" type="java.io.IOException"/>
  17826. </method>
  17827. <method name="getBlockSize" return="int"
  17828. abstract="false" native="false" synchronized="false"
  17829. static="false" final="true" visibility="public"
  17830. deprecated="not deprecated">
  17831. <doc>
  17832. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  17833. </doc>
  17834. </method>
  17835. <method name="write"
  17836. abstract="false" native="false" synchronized="false"
  17837. static="false" final="false" visibility="public"
  17838. deprecated="not deprecated">
  17839. <param name="buf" type="byte[]"/>
  17840. <param name="offs" type="int"/>
  17841. <param name="len" type="int"/>
  17842. <exception name="IOException" type="java.io.IOException"/>
  17843. </method>
  17844. <field name="MIN_BLOCKSIZE" type="int"
  17845. transient="false" volatile="false"
  17846. static="true" final="true" visibility="public"
  17847. deprecated="not deprecated">
  17848. <doc>
  17849. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  17850. </doc>
  17851. </field>
  17852. <field name="MAX_BLOCKSIZE" type="int"
  17853. transient="false" volatile="false"
  17854. static="true" final="true" visibility="public"
  17855. deprecated="not deprecated">
  17856. <doc>
  17857. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  17858. </doc>
  17859. </field>
  17860. <field name="SETMASK" type="int"
  17861. transient="false" volatile="false"
  17862. static="true" final="true" visibility="protected"
  17863. deprecated="not deprecated">
  17864. <doc>
  17865. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17866. don't know what it means then you don't need it.]]>
  17867. </doc>
  17868. </field>
  17869. <field name="CLEARMASK" type="int"
  17870. transient="false" volatile="false"
  17871. static="true" final="true" visibility="protected"
  17872. deprecated="not deprecated">
  17873. <doc>
  17874. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17875. don't know what it means then you don't need it.]]>
  17876. </doc>
  17877. </field>
  17878. <field name="GREATER_ICOST" type="int"
  17879. transient="false" volatile="false"
  17880. static="true" final="true" visibility="protected"
  17881. deprecated="not deprecated">
  17882. <doc>
  17883. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17884. don't know what it means then you don't need it.]]>
  17885. </doc>
  17886. </field>
  17887. <field name="LESSER_ICOST" type="int"
  17888. transient="false" volatile="false"
  17889. static="true" final="true" visibility="protected"
  17890. deprecated="not deprecated">
  17891. <doc>
  17892. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17893. don't know what it means then you don't need it.]]>
  17894. </doc>
  17895. </field>
  17896. <field name="SMALL_THRESH" type="int"
  17897. transient="false" volatile="false"
  17898. static="true" final="true" visibility="protected"
  17899. deprecated="not deprecated">
  17900. <doc>
  17901. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17902. don't know what it means then you don't need it.]]>
  17903. </doc>
  17904. </field>
  17905. <field name="DEPTH_THRESH" type="int"
  17906. transient="false" volatile="false"
  17907. static="true" final="true" visibility="protected"
  17908. deprecated="not deprecated">
  17909. <doc>
  17910. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17911. don't know what it means then you don't need it.]]>
  17912. </doc>
  17913. </field>
  17914. <field name="WORK_FACTOR" type="int"
  17915. transient="false" volatile="false"
  17916. static="true" final="true" visibility="protected"
  17917. deprecated="not deprecated">
  17918. <doc>
  17919. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17920. don't know what it means then you don't need it.]]>
  17921. </doc>
  17922. </field>
  17923. <field name="QSORT_STACK_SIZE" type="int"
  17924. transient="false" volatile="false"
  17925. static="true" final="true" visibility="protected"
  17926. deprecated="not deprecated">
  17927. <doc>
  17928. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17929. don't know what it means then you don't need it.
  17930. <p>
  17931. If you are ever unlucky/improbable enough to get a stack overflow whilst
  17932. sorting, increase the following constant and try again. In practice I
  17933. have never seen the stack go above 27 elems, so the following limit seems
  17934. very generous.
  17935. </p>]]>
  17936. </doc>
  17937. </field>
  17938. <doc>
  17939. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  17940. header chars) into another stream.
  17941. <p>
  17942. The compression requires large amounts of memory. Thus you should call the
  17943. {@link #close() close()} method as soon as possible, to force
  17944. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  17945. </p>
  17946. <p>
  17947. You can shrink the amount of allocated memory and maybe raise the compression
  17948. speed by choosing a lower blocksize, which in turn may cause a lower
  17949. compression ratio. You can avoid unnecessary memory allocation by avoiding
  17950. using a blocksize which is bigger than the size of the input.
  17951. </p>
  17952. <p>
  17953. You can compute the memory usage for compressing by the following formula:
  17954. </p>
  17955. <pre>
  17956. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  17957. </pre>
  17958. <p>
  17959. To get the memory required for decompression by {@link CBZip2InputStream
  17960. CBZip2InputStream} use
  17961. </p>
  17962. <pre>
  17963. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  17964. </pre>
  17965. <table width="100%" border="1">
  17966. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  17967. </colgroup>
  17968. <tr>
  17969. <th colspan="3">Memory usage by blocksize</th>
  17970. </tr>
  17971. <tr>
  17972. <th align="right">Blocksize</th> <th align="right">Compression<br>
  17973. memory usage</th> <th align="right">Decompression<br>
  17974. memory usage</th>
  17975. </tr>
  17976. <tr>
  17977. <td align="right">100k</td>
  17978. <td align="right">1300k</td>
  17979. <td align="right">565k</td>
  17980. </tr>
  17981. <tr>
  17982. <td align="right">200k</td>
  17983. <td align="right">2200k</td>
  17984. <td align="right">1065k</td>
  17985. </tr>
  17986. <tr>
  17987. <td align="right">300k</td>
  17988. <td align="right">3100k</td>
  17989. <td align="right">1565k</td>
  17990. </tr>
  17991. <tr>
  17992. <td align="right">400k</td>
  17993. <td align="right">4000k</td>
  17994. <td align="right">2065k</td>
  17995. </tr>
  17996. <tr>
  17997. <td align="right">500k</td>
  17998. <td align="right">4900k</td>
  17999. <td align="right">2565k</td>
  18000. </tr>
  18001. <tr>
  18002. <td align="right">600k</td>
  18003. <td align="right">5800k</td>
  18004. <td align="right">3065k</td>
  18005. </tr>
  18006. <tr>
  18007. <td align="right">700k</td>
  18008. <td align="right">6700k</td>
  18009. <td align="right">3565k</td>
  18010. </tr>
  18011. <tr>
  18012. <td align="right">800k</td>
  18013. <td align="right">7600k</td>
  18014. <td align="right">4065k</td>
  18015. </tr>
  18016. <tr>
  18017. <td align="right">900k</td>
  18018. <td align="right">8500k</td>
  18019. <td align="right">4565k</td>
  18020. </tr>
  18021. </table>
  18022. <p>
  18023. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  18024. bzipped input is smaller than one block.
  18025. </p>
  18026. <p>
  18027. Instances of this class are not threadsafe.
  18028. </p>
  18029. <p>
  18030. TODO: Update to BZip2 1.0.1
  18031. </p>]]>
  18032. </doc>
  18033. </class>
  18034. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18035. </package>
  18036. <package name="org.apache.hadoop.io.compress.snappy">
  18037. <!-- start class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18038. <class name="LoadSnappy" extends="java.lang.Object"
  18039. abstract="false"
  18040. static="false" final="false" visibility="public"
  18041. deprecated="not deprecated">
  18042. <constructor name="LoadSnappy"
  18043. static="false" final="false" visibility="public"
  18044. deprecated="not deprecated">
  18045. </constructor>
  18046. <method name="isAvailable" return="boolean"
  18047. abstract="false" native="false" synchronized="false"
  18048. static="true" final="false" visibility="public"
  18049. deprecated="not deprecated">
  18050. <doc>
  18051. <![CDATA[Returns if Snappy native library is loaded.
  18052. @return <code>true</code> if Snappy native library is loaded,
  18053. <code>false</code> if not.]]>
  18054. </doc>
  18055. </method>
  18056. <method name="isLoaded" return="boolean"
  18057. abstract="false" native="false" synchronized="false"
  18058. static="true" final="false" visibility="public"
  18059. deprecated="not deprecated">
  18060. <doc>
  18061. <![CDATA[Returns if Snappy native library is loaded.
  18062. @return <code>true</code> if Snappy native library is loaded,
  18063. <code>false</code> if not.]]>
  18064. </doc>
  18065. </method>
  18066. <doc>
  18067. <![CDATA[Determines if Snappy native library is available and loads it if available.]]>
  18068. </doc>
  18069. </class>
  18070. <!-- end class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18071. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18072. <class name="SnappyCompressor" extends="java.lang.Object"
  18073. abstract="false"
  18074. static="false" final="false" visibility="public"
  18075. deprecated="not deprecated">
  18076. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18077. <constructor name="SnappyCompressor" type="int"
  18078. static="false" final="false" visibility="public"
  18079. deprecated="not deprecated">
  18080. <doc>
  18081. <![CDATA[Creates a new compressor.
  18082. @param directBufferSize size of the direct buffer to be used.]]>
  18083. </doc>
  18084. </constructor>
  18085. <constructor name="SnappyCompressor"
  18086. static="false" final="false" visibility="public"
  18087. deprecated="not deprecated">
  18088. <doc>
  18089. <![CDATA[Creates a new compressor with the default buffer size.]]>
  18090. </doc>
  18091. </constructor>
  18092. <method name="setInput"
  18093. abstract="false" native="false" synchronized="true"
  18094. static="false" final="false" visibility="public"
  18095. deprecated="not deprecated">
  18096. <param name="b" type="byte[]"/>
  18097. <param name="off" type="int"/>
  18098. <param name="len" type="int"/>
  18099. <doc>
  18100. <![CDATA[Sets input data for compression.
  18101. This should be called whenever #needsInput() returns
  18102. <code>true</code> indicating that more input data is required.
  18103. @param b Input data
  18104. @param off Start offset
  18105. @param len Length]]>
  18106. </doc>
  18107. </method>
  18108. <method name="setDictionary"
  18109. abstract="false" native="false" synchronized="true"
  18110. static="false" final="false" visibility="public"
  18111. deprecated="not deprecated">
  18112. <param name="b" type="byte[]"/>
  18113. <param name="off" type="int"/>
  18114. <param name="len" type="int"/>
  18115. <doc>
  18116. <![CDATA[Does nothing.]]>
  18117. </doc>
  18118. </method>
  18119. <method name="needsInput" return="boolean"
  18120. abstract="false" native="false" synchronized="true"
  18121. static="false" final="false" visibility="public"
  18122. deprecated="not deprecated">
  18123. <doc>
  18124. <![CDATA[Returns true if the input data buffer is empty and
  18125. #setInput() should be called to provide more input.
  18126. @return <code>true</code> if the input data buffer is empty and
  18127. #setInput() should be called in order to provide more input.]]>
  18128. </doc>
  18129. </method>
  18130. <method name="finish"
  18131. abstract="false" native="false" synchronized="true"
  18132. static="false" final="false" visibility="public"
  18133. deprecated="not deprecated">
  18134. <doc>
  18135. <![CDATA[When called, indicates that compression should end
  18136. with the current contents of the input buffer.]]>
  18137. </doc>
  18138. </method>
  18139. <method name="finished" return="boolean"
  18140. abstract="false" native="false" synchronized="true"
  18141. static="false" final="false" visibility="public"
  18142. deprecated="not deprecated">
  18143. <doc>
  18144. <![CDATA[Returns true if the end of the compressed
  18145. data output stream has been reached.
  18146. @return <code>true</code> if the end of the compressed
  18147. data output stream has been reached.]]>
  18148. </doc>
  18149. </method>
  18150. <method name="compress" return="int"
  18151. abstract="false" native="false" synchronized="true"
  18152. static="false" final="false" visibility="public"
  18153. deprecated="not deprecated">
  18154. <param name="b" type="byte[]"/>
  18155. <param name="off" type="int"/>
  18156. <param name="len" type="int"/>
  18157. <exception name="IOException" type="java.io.IOException"/>
  18158. <doc>
  18159. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  18160. of bytes of compressed data. A return value of 0 indicates that
  18161. needsInput() should be called in order to determine if more input
  18162. data is required.
  18163. @param b Buffer for the compressed data
  18164. @param off Start offset of the data
  18165. @param len Size of the buffer
  18166. @return The actual number of bytes of compressed data.]]>
  18167. </doc>
  18168. </method>
  18169. <method name="reset"
  18170. abstract="false" native="false" synchronized="true"
  18171. static="false" final="false" visibility="public"
  18172. deprecated="not deprecated">
  18173. <doc>
  18174. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  18175. </doc>
  18176. </method>
  18177. <method name="reinit"
  18178. abstract="false" native="false" synchronized="true"
  18179. static="false" final="false" visibility="public"
  18180. deprecated="not deprecated">
  18181. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18182. <doc>
  18183. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  18184. the given Configuration
  18185. @param conf Configuration from which new setting are fetched]]>
  18186. </doc>
  18187. </method>
  18188. <method name="getBytesRead" return="long"
  18189. abstract="false" native="false" synchronized="true"
  18190. static="false" final="false" visibility="public"
  18191. deprecated="not deprecated">
  18192. <doc>
  18193. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  18194. </doc>
  18195. </method>
  18196. <method name="getBytesWritten" return="long"
  18197. abstract="false" native="false" synchronized="true"
  18198. static="false" final="false" visibility="public"
  18199. deprecated="not deprecated">
  18200. <doc>
  18201. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  18202. </doc>
  18203. </method>
  18204. <method name="end"
  18205. abstract="false" native="false" synchronized="true"
  18206. static="false" final="false" visibility="public"
  18207. deprecated="not deprecated">
  18208. <doc>
  18209. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  18210. </doc>
  18211. </method>
  18212. <doc>
  18213. <![CDATA[A {@link Compressor} based on the snappy compression algorithm.
  18214. http://code.google.com/p/snappy/]]>
  18215. </doc>
  18216. </class>
  18217. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18218. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18219. <class name="SnappyDecompressor" extends="java.lang.Object"
  18220. abstract="false"
  18221. static="false" final="false" visibility="public"
  18222. deprecated="not deprecated">
  18223. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18224. <constructor name="SnappyDecompressor" type="int"
  18225. static="false" final="false" visibility="public"
  18226. deprecated="not deprecated">
  18227. <doc>
  18228. <![CDATA[Creates a new compressor.
  18229. @param directBufferSize size of the direct buffer to be used.]]>
  18230. </doc>
  18231. </constructor>
  18232. <constructor name="SnappyDecompressor"
  18233. static="false" final="false" visibility="public"
  18234. deprecated="not deprecated">
  18235. <doc>
  18236. <![CDATA[Creates a new decompressor with the default buffer size.]]>
  18237. </doc>
  18238. </constructor>
  18239. <method name="setInput"
  18240. abstract="false" native="false" synchronized="true"
  18241. static="false" final="false" visibility="public"
  18242. deprecated="not deprecated">
  18243. <param name="b" type="byte[]"/>
  18244. <param name="off" type="int"/>
  18245. <param name="len" type="int"/>
  18246. <doc>
  18247. <![CDATA[Sets input data for decompression.
  18248. This should be called if and only if {@link #needsInput()} returns
  18249. <code>true</code> indicating that more input data is required.
  18250. (Both native and non-native versions of various Decompressors require
  18251. that the data passed in via <code>b[]</code> remain unmodified until
  18252. the caller is explicitly notified--via {@link #needsInput()}--that the
  18253. buffer may be safely modified. With this requirement, an extra
  18254. buffer-copy can be avoided.)
  18255. @param b Input data
  18256. @param off Start offset
  18257. @param len Length]]>
  18258. </doc>
  18259. </method>
  18260. <method name="setDictionary"
  18261. abstract="false" native="false" synchronized="true"
  18262. static="false" final="false" visibility="public"
  18263. deprecated="not deprecated">
  18264. <param name="b" type="byte[]"/>
  18265. <param name="off" type="int"/>
  18266. <param name="len" type="int"/>
  18267. <doc>
  18268. <![CDATA[Does nothing.]]>
  18269. </doc>
  18270. </method>
  18271. <method name="needsInput" return="boolean"
  18272. abstract="false" native="false" synchronized="true"
  18273. static="false" final="false" visibility="public"
  18274. deprecated="not deprecated">
  18275. <doc>
  18276. <![CDATA[Returns true if the input data buffer is empty and
  18277. {@link #setInput(byte[], int, int)} should be called to
  18278. provide more input.
  18279. @return <code>true</code> if the input data buffer is empty and
  18280. {@link #setInput(byte[], int, int)} should be called in
  18281. order to provide more input.]]>
  18282. </doc>
  18283. </method>
  18284. <method name="needsDictionary" return="boolean"
  18285. abstract="false" native="false" synchronized="true"
  18286. static="false" final="false" visibility="public"
  18287. deprecated="not deprecated">
  18288. <doc>
  18289. <![CDATA[Returns <code>false</code>.
  18290. @return <code>false</code>.]]>
  18291. </doc>
  18292. </method>
  18293. <method name="finished" return="boolean"
  18294. abstract="false" native="false" synchronized="true"
  18295. static="false" final="false" visibility="public"
  18296. deprecated="not deprecated">
  18297. <doc>
  18298. <![CDATA[Returns true if the end of the decompressed
  18299. data output stream has been reached.
  18300. @return <code>true</code> if the end of the decompressed
  18301. data output stream has been reached.]]>
  18302. </doc>
  18303. </method>
  18304. <method name="decompress" return="int"
  18305. abstract="false" native="false" synchronized="true"
  18306. static="false" final="false" visibility="public"
  18307. deprecated="not deprecated">
  18308. <param name="b" type="byte[]"/>
  18309. <param name="off" type="int"/>
  18310. <param name="len" type="int"/>
  18311. <exception name="IOException" type="java.io.IOException"/>
  18312. <doc>
  18313. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  18314. of bytes of uncompressed data. A return value of 0 indicates that
  18315. {@link #needsInput()} should be called in order to determine if more
  18316. input data is required.
  18317. @param b Buffer for the compressed data
  18318. @param off Start offset of the data
  18319. @param len Size of the buffer
  18320. @return The actual number of bytes of compressed data.
  18321. @throws IOException]]>
  18322. </doc>
  18323. </method>
  18324. <method name="getRemaining" return="int"
  18325. abstract="false" native="false" synchronized="true"
  18326. static="false" final="false" visibility="public"
  18327. deprecated="not deprecated">
  18328. <doc>
  18329. <![CDATA[Returns <code>0</code>.
  18330. @return <code>0</code>.]]>
  18331. </doc>
  18332. </method>
  18333. <method name="reset"
  18334. abstract="false" native="false" synchronized="true"
  18335. static="false" final="false" visibility="public"
  18336. deprecated="not deprecated">
  18337. </method>
  18338. <method name="end"
  18339. abstract="false" native="false" synchronized="true"
  18340. static="false" final="false" visibility="public"
  18341. deprecated="not deprecated">
  18342. <doc>
  18343. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  18344. input data can be processed.]]>
  18345. </doc>
  18346. </method>
  18347. <doc>
  18348. <![CDATA[A {@link Decompressor} based on the snappy compression algorithm.
  18349. http://code.google.com/p/snappy/]]>
  18350. </doc>
  18351. </class>
  18352. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18353. </package>
  18354. <package name="org.apache.hadoop.io.compress.zlib">
  18355. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  18356. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  18357. abstract="false"
  18358. static="false" final="false" visibility="public"
  18359. deprecated="not deprecated">
  18360. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18361. <constructor name="BuiltInGzipDecompressor"
  18362. static="false" final="false" visibility="public"
  18363. deprecated="not deprecated">
  18364. <doc>
  18365. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  18366. </doc>
  18367. </constructor>
  18368. <method name="needsInput" return="boolean"
  18369. abstract="false" native="false" synchronized="true"
  18370. static="false" final="false" visibility="public"
  18371. deprecated="not deprecated">
  18372. <doc>
  18373. <![CDATA[{@inheritDoc}]]>
  18374. </doc>
  18375. </method>
  18376. <method name="setInput"
  18377. abstract="false" native="false" synchronized="true"
  18378. static="false" final="false" visibility="public"
  18379. deprecated="not deprecated">
  18380. <param name="b" type="byte[]"/>
  18381. <param name="off" type="int"/>
  18382. <param name="len" type="int"/>
  18383. <doc>
  18384. <![CDATA[{@inheritDoc}]]>
  18385. </doc>
  18386. </method>
  18387. <method name="decompress" return="int"
  18388. abstract="false" native="false" synchronized="true"
  18389. static="false" final="false" visibility="public"
  18390. deprecated="not deprecated">
  18391. <param name="b" type="byte[]"/>
  18392. <param name="off" type="int"/>
  18393. <param name="len" type="int"/>
  18394. <exception name="IOException" type="java.io.IOException"/>
  18395. <doc>
  18396. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  18397. provided buffer.
  18398. @return the number of decompressed bytes placed into b]]>
  18399. </doc>
  18400. </method>
  18401. <method name="getBytesRead" return="long"
  18402. abstract="false" native="false" synchronized="true"
  18403. static="false" final="false" visibility="public"
  18404. deprecated="not deprecated">
  18405. <doc>
  18406. <![CDATA[Returns the total number of compressed bytes input so far, including
  18407. gzip header/trailer bytes.</p>
  18408. @return the total (non-negative) number of compressed bytes read so far]]>
  18409. </doc>
  18410. </method>
  18411. <method name="getRemaining" return="int"
  18412. abstract="false" native="false" synchronized="true"
  18413. static="false" final="false" visibility="public"
  18414. deprecated="not deprecated">
  18415. <doc>
  18416. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  18417. called when finished() is true to determine amount of post-gzip-stream
  18418. data. Note that, other than the finished state with concatenated data
  18419. after the end of the current gzip stream, this will never return a
  18420. non-zero value unless called after {@link #setInput(byte[] b, int off,
  18421. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  18422. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  18423. always returns zero, except in finished state with concatenated data.)</p>
  18424. @return the total (non-negative) number of unprocessed bytes in input]]>
  18425. </doc>
  18426. </method>
  18427. <method name="needsDictionary" return="boolean"
  18428. abstract="false" native="false" synchronized="true"
  18429. static="false" final="false" visibility="public"
  18430. deprecated="not deprecated">
  18431. <doc>
  18432. <![CDATA[{@inheritDoc}]]>
  18433. </doc>
  18434. </method>
  18435. <method name="setDictionary"
  18436. abstract="false" native="false" synchronized="true"
  18437. static="false" final="false" visibility="public"
  18438. deprecated="not deprecated">
  18439. <param name="b" type="byte[]"/>
  18440. <param name="off" type="int"/>
  18441. <param name="len" type="int"/>
  18442. <doc>
  18443. <![CDATA[{@inheritDoc}]]>
  18444. </doc>
  18445. </method>
  18446. <method name="finished" return="boolean"
  18447. abstract="false" native="false" synchronized="true"
  18448. static="false" final="false" visibility="public"
  18449. deprecated="not deprecated">
  18450. <doc>
  18451. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  18452. reached.</p>]]>
  18453. </doc>
  18454. </method>
  18455. <method name="reset"
  18456. abstract="false" native="false" synchronized="true"
  18457. static="false" final="false" visibility="public"
  18458. deprecated="not deprecated">
  18459. <doc>
  18460. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  18461. current gzip substream is finished.</p>]]>
  18462. </doc>
  18463. </method>
  18464. <method name="end"
  18465. abstract="false" native="false" synchronized="true"
  18466. static="false" final="false" visibility="public"
  18467. deprecated="not deprecated">
  18468. <doc>
  18469. <![CDATA[{@inheritDoc}]]>
  18470. </doc>
  18471. </method>
  18472. <doc>
  18473. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  18474. http://www.gzip.org/]]>
  18475. </doc>
  18476. </class>
  18477. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  18478. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  18479. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  18480. abstract="false"
  18481. static="false" final="false" visibility="public"
  18482. deprecated="not deprecated">
  18483. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18484. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  18485. static="false" final="false" visibility="public"
  18486. deprecated="not deprecated">
  18487. </constructor>
  18488. <constructor name="BuiltInZlibDeflater" type="int"
  18489. static="false" final="false" visibility="public"
  18490. deprecated="not deprecated">
  18491. </constructor>
  18492. <constructor name="BuiltInZlibDeflater"
  18493. static="false" final="false" visibility="public"
  18494. deprecated="not deprecated">
  18495. </constructor>
  18496. <method name="compress" return="int"
  18497. abstract="false" native="false" synchronized="true"
  18498. static="false" final="false" visibility="public"
  18499. deprecated="not deprecated">
  18500. <param name="b" type="byte[]"/>
  18501. <param name="off" type="int"/>
  18502. <param name="len" type="int"/>
  18503. <exception name="IOException" type="java.io.IOException"/>
  18504. </method>
  18505. <method name="reinit"
  18506. abstract="false" native="false" synchronized="false"
  18507. static="false" final="false" visibility="public"
  18508. deprecated="not deprecated">
  18509. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18510. <doc>
  18511. <![CDATA[reinit the compressor with the given configuration. It will reset the
  18512. compressor's compression level and compression strategy. Different from
  18513. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  18514. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  18515. It will use DEFAULT_STRATEGY as default if the configured compression
  18516. strategy is not supported.]]>
  18517. </doc>
  18518. </method>
  18519. <doc>
  18520. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  18521. to org.apache.hadoop.io.compress.Compressor interface.]]>
  18522. </doc>
  18523. </class>
  18524. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  18525. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  18526. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  18527. abstract="false"
  18528. static="false" final="false" visibility="public"
  18529. deprecated="not deprecated">
  18530. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18531. <constructor name="BuiltInZlibInflater" type="boolean"
  18532. static="false" final="false" visibility="public"
  18533. deprecated="not deprecated">
  18534. </constructor>
  18535. <constructor name="BuiltInZlibInflater"
  18536. static="false" final="false" visibility="public"
  18537. deprecated="not deprecated">
  18538. </constructor>
  18539. <method name="decompress" return="int"
  18540. abstract="false" native="false" synchronized="true"
  18541. static="false" final="false" visibility="public"
  18542. deprecated="not deprecated">
  18543. <param name="b" type="byte[]"/>
  18544. <param name="off" type="int"/>
  18545. <param name="len" type="int"/>
  18546. <exception name="IOException" type="java.io.IOException"/>
  18547. </method>
  18548. <doc>
  18549. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  18550. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  18551. </doc>
  18552. </class>
  18553. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  18554. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  18555. <class name="ZlibCompressor" extends="java.lang.Object"
  18556. abstract="false"
  18557. static="false" final="false" visibility="public"
  18558. deprecated="not deprecated">
  18559. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18560. <constructor name="ZlibCompressor"
  18561. static="false" final="false" visibility="public"
  18562. deprecated="not deprecated">
  18563. <doc>
  18564. <![CDATA[Creates a new compressor with the default compression level.
  18565. Compressed data will be generated in ZLIB format.]]>
  18566. </doc>
  18567. </constructor>
  18568. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  18569. static="false" final="false" visibility="public"
  18570. deprecated="not deprecated">
  18571. <doc>
  18572. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  18573. </doc>
  18574. </constructor>
  18575. <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"
  18576. static="false" final="false" visibility="public"
  18577. deprecated="not deprecated">
  18578. <doc>
  18579. <![CDATA[Creates a new compressor using the specified compression level.
  18580. Compressed data will be generated in ZLIB format.
  18581. @param level Compression level #CompressionLevel
  18582. @param strategy Compression strategy #CompressionStrategy
  18583. @param header Compression header #CompressionHeader
  18584. @param directBufferSize Size of the direct buffer to be used.]]>
  18585. </doc>
  18586. </constructor>
  18587. <method name="construct"
  18588. abstract="false" native="false" synchronized="false"
  18589. static="false" final="true" visibility="protected"
  18590. deprecated="not deprecated">
  18591. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  18592. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  18593. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  18594. <param name="directBufferSize" type="int"/>
  18595. </method>
  18596. <method name="reinit"
  18597. abstract="false" native="false" synchronized="true"
  18598. static="false" final="false" visibility="public"
  18599. deprecated="not deprecated">
  18600. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18601. <doc>
  18602. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  18603. the given Configuration. It will reset the compressor's compression level
  18604. and compression strategy.
  18605. @param conf Configuration storing new settings]]>
  18606. </doc>
  18607. </method>
  18608. <method name="setInput"
  18609. abstract="false" native="false" synchronized="true"
  18610. static="false" final="false" visibility="public"
  18611. deprecated="not deprecated">
  18612. <param name="b" type="byte[]"/>
  18613. <param name="off" type="int"/>
  18614. <param name="len" type="int"/>
  18615. </method>
  18616. <method name="setDictionary"
  18617. abstract="false" native="false" synchronized="true"
  18618. static="false" final="false" visibility="public"
  18619. deprecated="not deprecated">
  18620. <param name="b" type="byte[]"/>
  18621. <param name="off" type="int"/>
  18622. <param name="len" type="int"/>
  18623. </method>
  18624. <method name="needsInput" return="boolean"
  18625. abstract="false" native="false" synchronized="false"
  18626. static="false" final="false" visibility="public"
  18627. deprecated="not deprecated">
  18628. </method>
  18629. <method name="finish"
  18630. abstract="false" native="false" synchronized="true"
  18631. static="false" final="false" visibility="public"
  18632. deprecated="not deprecated">
  18633. </method>
  18634. <method name="finished" return="boolean"
  18635. abstract="false" native="false" synchronized="true"
  18636. static="false" final="false" visibility="public"
  18637. deprecated="not deprecated">
  18638. </method>
  18639. <method name="compress" return="int"
  18640. abstract="false" native="false" synchronized="true"
  18641. static="false" final="false" visibility="public"
  18642. deprecated="not deprecated">
  18643. <param name="b" type="byte[]"/>
  18644. <param name="off" type="int"/>
  18645. <param name="len" type="int"/>
  18646. <exception name="IOException" type="java.io.IOException"/>
  18647. </method>
  18648. <method name="getBytesWritten" return="long"
  18649. abstract="false" native="false" synchronized="true"
  18650. static="false" final="false" visibility="public"
  18651. deprecated="not deprecated">
  18652. <doc>
  18653. <![CDATA[Returns the total number of compressed bytes output so far.
  18654. @return the total (non-negative) number of compressed bytes output so far]]>
  18655. </doc>
  18656. </method>
  18657. <method name="getBytesRead" return="long"
  18658. abstract="false" native="false" synchronized="true"
  18659. static="false" final="false" visibility="public"
  18660. deprecated="not deprecated">
  18661. <doc>
  18662. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  18663. @return the total (non-negative) number of uncompressed bytes input so far]]>
  18664. </doc>
  18665. </method>
  18666. <method name="reset"
  18667. abstract="false" native="false" synchronized="true"
  18668. static="false" final="false" visibility="public"
  18669. deprecated="not deprecated">
  18670. </method>
  18671. <method name="end"
  18672. abstract="false" native="false" synchronized="true"
  18673. static="false" final="false" visibility="public"
  18674. deprecated="not deprecated">
  18675. </method>
  18676. <doc>
  18677. <![CDATA[A {@link Compressor} based on the popular
  18678. zlib compression algorithm.
  18679. http://www.zlib.net/]]>
  18680. </doc>
  18681. </class>
  18682. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  18683. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  18684. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  18685. abstract="false"
  18686. static="true" final="true" visibility="public"
  18687. deprecated="not deprecated">
  18688. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  18689. abstract="false" native="false" synchronized="false"
  18690. static="true" final="false" visibility="public"
  18691. deprecated="not deprecated">
  18692. </method>
  18693. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18694. abstract="false" native="false" synchronized="false"
  18695. static="true" final="false" visibility="public"
  18696. deprecated="not deprecated">
  18697. <param name="name" type="java.lang.String"/>
  18698. </method>
  18699. <method name="windowBits" return="int"
  18700. abstract="false" native="false" synchronized="false"
  18701. static="false" final="false" visibility="public"
  18702. deprecated="not deprecated">
  18703. </method>
  18704. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18705. transient="false" volatile="false"
  18706. static="true" final="true" visibility="public"
  18707. deprecated="not deprecated">
  18708. <doc>
  18709. <![CDATA[No headers/trailers/checksums.]]>
  18710. </doc>
  18711. </field>
  18712. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18713. transient="false" volatile="false"
  18714. static="true" final="true" visibility="public"
  18715. deprecated="not deprecated">
  18716. <doc>
  18717. <![CDATA[Default headers/trailers/checksums.]]>
  18718. </doc>
  18719. </field>
  18720. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18721. transient="false" volatile="false"
  18722. static="true" final="true" visibility="public"
  18723. deprecated="not deprecated">
  18724. <doc>
  18725. <![CDATA[Simple gzip headers/trailers.]]>
  18726. </doc>
  18727. </field>
  18728. <doc>
  18729. <![CDATA[The type of header for compressed data.]]>
  18730. </doc>
  18731. </class>
  18732. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  18733. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18734. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  18735. abstract="false"
  18736. static="true" final="true" visibility="public"
  18737. deprecated="not deprecated">
  18738. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  18739. abstract="false" native="false" synchronized="false"
  18740. static="true" final="false" visibility="public"
  18741. deprecated="not deprecated">
  18742. </method>
  18743. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18744. abstract="false" native="false" synchronized="false"
  18745. static="true" final="false" visibility="public"
  18746. deprecated="not deprecated">
  18747. <param name="name" type="java.lang.String"/>
  18748. </method>
  18749. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18750. transient="false" volatile="false"
  18751. static="true" final="true" visibility="public"
  18752. deprecated="not deprecated">
  18753. <doc>
  18754. <![CDATA[Compression level for no compression.]]>
  18755. </doc>
  18756. </field>
  18757. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18758. transient="false" volatile="false"
  18759. static="true" final="true" visibility="public"
  18760. deprecated="not deprecated">
  18761. <doc>
  18762. <![CDATA[Compression level for fastest compression.]]>
  18763. </doc>
  18764. </field>
  18765. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18766. transient="false" volatile="false"
  18767. static="true" final="true" visibility="public"
  18768. deprecated="not deprecated">
  18769. <doc>
  18770. <![CDATA[Compression level for best compression.]]>
  18771. </doc>
  18772. </field>
  18773. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18774. transient="false" volatile="false"
  18775. static="true" final="true" visibility="public"
  18776. deprecated="not deprecated">
  18777. <doc>
  18778. <![CDATA[Default compression level.]]>
  18779. </doc>
  18780. </field>
  18781. <doc>
  18782. <![CDATA[The compression level for zlib library.]]>
  18783. </doc>
  18784. </class>
  18785. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18786. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18787. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  18788. abstract="false"
  18789. static="true" final="true" visibility="public"
  18790. deprecated="not deprecated">
  18791. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  18792. abstract="false" native="false" synchronized="false"
  18793. static="true" final="false" visibility="public"
  18794. deprecated="not deprecated">
  18795. </method>
  18796. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18797. abstract="false" native="false" synchronized="false"
  18798. static="true" final="false" visibility="public"
  18799. deprecated="not deprecated">
  18800. <param name="name" type="java.lang.String"/>
  18801. </method>
  18802. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18803. transient="false" volatile="false"
  18804. static="true" final="true" visibility="public"
  18805. deprecated="not deprecated">
  18806. <doc>
  18807. <![CDATA[Compression strategy best used for data consisting mostly of small
  18808. values with a somewhat random distribution. Forces more Huffman coding
  18809. and less string matching.]]>
  18810. </doc>
  18811. </field>
  18812. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18813. transient="false" volatile="false"
  18814. static="true" final="true" visibility="public"
  18815. deprecated="not deprecated">
  18816. <doc>
  18817. <![CDATA[Compression strategy for Huffman coding only.]]>
  18818. </doc>
  18819. </field>
  18820. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18821. transient="false" volatile="false"
  18822. static="true" final="true" visibility="public"
  18823. deprecated="not deprecated">
  18824. <doc>
  18825. <![CDATA[Compression strategy to limit match distances to one
  18826. (run-length encoding).]]>
  18827. </doc>
  18828. </field>
  18829. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18830. transient="false" volatile="false"
  18831. static="true" final="true" visibility="public"
  18832. deprecated="not deprecated">
  18833. <doc>
  18834. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  18835. allowing for a simpler decoder for special applications.]]>
  18836. </doc>
  18837. </field>
  18838. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18839. transient="false" volatile="false"
  18840. static="true" final="true" visibility="public"
  18841. deprecated="not deprecated">
  18842. <doc>
  18843. <![CDATA[Default compression strategy.]]>
  18844. </doc>
  18845. </field>
  18846. <doc>
  18847. <![CDATA[The compression level for zlib library.]]>
  18848. </doc>
  18849. </class>
  18850. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18851. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18852. <class name="ZlibDecompressor" extends="java.lang.Object"
  18853. abstract="false"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18857. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  18858. static="false" final="false" visibility="public"
  18859. deprecated="not deprecated">
  18860. <doc>
  18861. <![CDATA[Creates a new decompressor.]]>
  18862. </doc>
  18863. </constructor>
  18864. <constructor name="ZlibDecompressor"
  18865. static="false" final="false" visibility="public"
  18866. deprecated="not deprecated">
  18867. </constructor>
  18868. <method name="setInput"
  18869. abstract="false" native="false" synchronized="true"
  18870. static="false" final="false" visibility="public"
  18871. deprecated="not deprecated">
  18872. <param name="b" type="byte[]"/>
  18873. <param name="off" type="int"/>
  18874. <param name="len" type="int"/>
  18875. </method>
  18876. <method name="setDictionary"
  18877. abstract="false" native="false" synchronized="true"
  18878. static="false" final="false" visibility="public"
  18879. deprecated="not deprecated">
  18880. <param name="b" type="byte[]"/>
  18881. <param name="off" type="int"/>
  18882. <param name="len" type="int"/>
  18883. </method>
  18884. <method name="needsInput" return="boolean"
  18885. abstract="false" native="false" synchronized="true"
  18886. static="false" final="false" visibility="public"
  18887. deprecated="not deprecated">
  18888. </method>
  18889. <method name="needsDictionary" return="boolean"
  18890. abstract="false" native="false" synchronized="true"
  18891. static="false" final="false" visibility="public"
  18892. deprecated="not deprecated">
  18893. </method>
  18894. <method name="finished" return="boolean"
  18895. abstract="false" native="false" synchronized="true"
  18896. static="false" final="false" visibility="public"
  18897. deprecated="not deprecated">
  18898. </method>
  18899. <method name="decompress" return="int"
  18900. abstract="false" native="false" synchronized="true"
  18901. static="false" final="false" visibility="public"
  18902. deprecated="not deprecated">
  18903. <param name="b" type="byte[]"/>
  18904. <param name="off" type="int"/>
  18905. <param name="len" type="int"/>
  18906. <exception name="IOException" type="java.io.IOException"/>
  18907. </method>
  18908. <method name="getBytesWritten" return="long"
  18909. abstract="false" native="false" synchronized="true"
  18910. static="false" final="false" visibility="public"
  18911. deprecated="not deprecated">
  18912. <doc>
  18913. <![CDATA[Returns the total number of uncompressed bytes output so far.
  18914. @return the total (non-negative) number of uncompressed bytes output so far]]>
  18915. </doc>
  18916. </method>
  18917. <method name="getBytesRead" return="long"
  18918. abstract="false" native="false" synchronized="true"
  18919. static="false" final="false" visibility="public"
  18920. deprecated="not deprecated">
  18921. <doc>
  18922. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  18923. @return the total (non-negative) number of compressed bytes input so far]]>
  18924. </doc>
  18925. </method>
  18926. <method name="getRemaining" return="int"
  18927. abstract="false" native="false" synchronized="true"
  18928. static="false" final="false" visibility="public"
  18929. deprecated="not deprecated">
  18930. <doc>
  18931. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  18932. called when finished() is true to determine amount of post-gzip-stream
  18933. data.</p>
  18934. @return the total (non-negative) number of unprocessed bytes in input]]>
  18935. </doc>
  18936. </method>
  18937. <method name="reset"
  18938. abstract="false" native="false" synchronized="true"
  18939. static="false" final="false" visibility="public"
  18940. deprecated="not deprecated">
  18941. <doc>
  18942. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  18943. </doc>
  18944. </method>
  18945. <method name="end"
  18946. abstract="false" native="false" synchronized="true"
  18947. static="false" final="false" visibility="public"
  18948. deprecated="not deprecated">
  18949. </method>
  18950. <method name="finalize"
  18951. abstract="false" native="false" synchronized="false"
  18952. static="false" final="false" visibility="protected"
  18953. deprecated="not deprecated">
  18954. </method>
  18955. <doc>
  18956. <![CDATA[A {@link Decompressor} based on the popular
  18957. zlib compression algorithm.
  18958. http://www.zlib.net/]]>
  18959. </doc>
  18960. </class>
  18961. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18962. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  18963. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  18964. abstract="false"
  18965. static="true" final="true" visibility="public"
  18966. deprecated="not deprecated">
  18967. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  18968. abstract="false" native="false" synchronized="false"
  18969. static="true" final="false" visibility="public"
  18970. deprecated="not deprecated">
  18971. </method>
  18972. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18973. abstract="false" native="false" synchronized="false"
  18974. static="true" final="false" visibility="public"
  18975. deprecated="not deprecated">
  18976. <param name="name" type="java.lang.String"/>
  18977. </method>
  18978. <method name="windowBits" return="int"
  18979. abstract="false" native="false" synchronized="false"
  18980. static="false" final="false" visibility="public"
  18981. deprecated="not deprecated">
  18982. </method>
  18983. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18984. transient="false" volatile="false"
  18985. static="true" final="true" visibility="public"
  18986. deprecated="not deprecated">
  18987. <doc>
  18988. <![CDATA[No headers/trailers/checksums.]]>
  18989. </doc>
  18990. </field>
  18991. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18992. transient="false" volatile="false"
  18993. static="true" final="true" visibility="public"
  18994. deprecated="not deprecated">
  18995. <doc>
  18996. <![CDATA[Default headers/trailers/checksums.]]>
  18997. </doc>
  18998. </field>
  18999. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19000. transient="false" volatile="false"
  19001. static="true" final="true" visibility="public"
  19002. deprecated="not deprecated">
  19003. <doc>
  19004. <![CDATA[Simple gzip headers/trailers.]]>
  19005. </doc>
  19006. </field>
  19007. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19008. transient="false" volatile="false"
  19009. static="true" final="true" visibility="public"
  19010. deprecated="not deprecated">
  19011. <doc>
  19012. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  19013. </doc>
  19014. </field>
  19015. <doc>
  19016. <![CDATA[The headers to detect from compressed data.]]>
  19017. </doc>
  19018. </class>
  19019. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19020. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19021. <class name="ZlibFactory" extends="java.lang.Object"
  19022. abstract="false"
  19023. static="false" final="false" visibility="public"
  19024. deprecated="not deprecated">
  19025. <constructor name="ZlibFactory"
  19026. static="false" final="false" visibility="public"
  19027. deprecated="not deprecated">
  19028. </constructor>
  19029. <method name="isNativeZlibLoaded" return="boolean"
  19030. abstract="false" native="false" synchronized="false"
  19031. static="true" final="false" visibility="public"
  19032. deprecated="not deprecated">
  19033. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19034. <doc>
  19035. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  19036. can be loaded for this job.
  19037. @param conf configuration
  19038. @return <code>true</code> if native-zlib is loaded & initialized
  19039. and can be loaded for this job, else <code>false</code>]]>
  19040. </doc>
  19041. </method>
  19042. <method name="getZlibCompressorType" return="java.lang.Class"
  19043. abstract="false" native="false" synchronized="false"
  19044. static="true" final="false" visibility="public"
  19045. deprecated="not deprecated">
  19046. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19047. <doc>
  19048. <![CDATA[Return the appropriate type of the zlib compressor.
  19049. @param conf configuration
  19050. @return the appropriate type of the zlib compressor.]]>
  19051. </doc>
  19052. </method>
  19053. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19054. abstract="false" native="false" synchronized="false"
  19055. static="true" final="false" visibility="public"
  19056. deprecated="not deprecated">
  19057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19058. <doc>
  19059. <![CDATA[Return the appropriate implementation of the zlib compressor.
  19060. @param conf configuration
  19061. @return the appropriate implementation of the zlib compressor.]]>
  19062. </doc>
  19063. </method>
  19064. <method name="getZlibDecompressorType" return="java.lang.Class"
  19065. abstract="false" native="false" synchronized="false"
  19066. static="true" final="false" visibility="public"
  19067. deprecated="not deprecated">
  19068. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19069. <doc>
  19070. <![CDATA[Return the appropriate type of the zlib decompressor.
  19071. @param conf configuration
  19072. @return the appropriate type of the zlib decompressor.]]>
  19073. </doc>
  19074. </method>
  19075. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19076. abstract="false" native="false" synchronized="false"
  19077. static="true" final="false" visibility="public"
  19078. deprecated="not deprecated">
  19079. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19080. <doc>
  19081. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  19082. @param conf configuration
  19083. @return the appropriate implementation of the zlib decompressor.]]>
  19084. </doc>
  19085. </method>
  19086. <method name="setCompressionStrategy"
  19087. abstract="false" native="false" synchronized="false"
  19088. static="true" final="false" visibility="public"
  19089. deprecated="not deprecated">
  19090. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19091. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19092. </method>
  19093. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19094. abstract="false" native="false" synchronized="false"
  19095. static="true" final="false" visibility="public"
  19096. deprecated="not deprecated">
  19097. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19098. </method>
  19099. <method name="setCompressionLevel"
  19100. abstract="false" native="false" synchronized="false"
  19101. static="true" final="false" visibility="public"
  19102. deprecated="not deprecated">
  19103. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19104. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19105. </method>
  19106. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19107. abstract="false" native="false" synchronized="false"
  19108. static="true" final="false" visibility="public"
  19109. deprecated="not deprecated">
  19110. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19111. </method>
  19112. <doc>
  19113. <![CDATA[A collection of factories to create the right
  19114. zlib/gzip compressor/decompressor instances.]]>
  19115. </doc>
  19116. </class>
  19117. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19118. </package>
  19119. <package name="org.apache.hadoop.io.file.tfile">
  19120. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  19121. <class name="ByteArray" extends="java.lang.Object"
  19122. abstract="false"
  19123. static="false" final="true" visibility="public"
  19124. deprecated="not deprecated">
  19125. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19126. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  19127. static="false" final="false" visibility="public"
  19128. deprecated="not deprecated">
  19129. <doc>
  19130. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  19131. @param other]]>
  19132. </doc>
  19133. </constructor>
  19134. <constructor name="ByteArray" type="byte[]"
  19135. static="false" final="false" visibility="public"
  19136. deprecated="not deprecated">
  19137. <doc>
  19138. <![CDATA[Wrap a whole byte array as a RawComparable.
  19139. @param buffer
  19140. the byte array buffer.]]>
  19141. </doc>
  19142. </constructor>
  19143. <constructor name="ByteArray" type="byte[], int, int"
  19144. static="false" final="false" visibility="public"
  19145. deprecated="not deprecated">
  19146. <doc>
  19147. <![CDATA[Wrap a partial byte array as a RawComparable.
  19148. @param buffer
  19149. the byte array buffer.
  19150. @param offset
  19151. the starting offset
  19152. @param len
  19153. the length of the consecutive bytes to be wrapped.]]>
  19154. </doc>
  19155. </constructor>
  19156. <method name="buffer" return="byte[]"
  19157. abstract="false" native="false" synchronized="false"
  19158. static="false" final="false" visibility="public"
  19159. deprecated="not deprecated">
  19160. <doc>
  19161. <![CDATA[@return the underlying buffer.]]>
  19162. </doc>
  19163. </method>
  19164. <method name="offset" return="int"
  19165. abstract="false" native="false" synchronized="false"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <doc>
  19169. <![CDATA[@return the offset in the buffer.]]>
  19170. </doc>
  19171. </method>
  19172. <method name="size" return="int"
  19173. abstract="false" native="false" synchronized="false"
  19174. static="false" final="false" visibility="public"
  19175. deprecated="not deprecated">
  19176. <doc>
  19177. <![CDATA[@return the size of the byte array.]]>
  19178. </doc>
  19179. </method>
  19180. <doc>
  19181. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  19182. as RawComparable objects.]]>
  19183. </doc>
  19184. </class>
  19185. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  19186. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19187. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  19188. abstract="false"
  19189. static="false" final="false" visibility="public"
  19190. deprecated="not deprecated">
  19191. <doc>
  19192. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  19193. </doc>
  19194. </class>
  19195. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19196. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19197. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  19198. abstract="false"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. <doc>
  19202. <![CDATA[Exception - No such Meta Block with the given name.]]>
  19203. </doc>
  19204. </class>
  19205. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19206. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19207. <interface name="RawComparable" abstract="true"
  19208. static="false" final="false" visibility="public"
  19209. deprecated="not deprecated">
  19210. <method name="buffer" return="byte[]"
  19211. abstract="false" native="false" synchronized="false"
  19212. static="false" final="false" visibility="public"
  19213. deprecated="not deprecated">
  19214. <doc>
  19215. <![CDATA[Get the underlying byte array.
  19216. @return The underlying byte array.]]>
  19217. </doc>
  19218. </method>
  19219. <method name="offset" return="int"
  19220. abstract="false" native="false" synchronized="false"
  19221. static="false" final="false" visibility="public"
  19222. deprecated="not deprecated">
  19223. <doc>
  19224. <![CDATA[Get the offset of the first byte in the byte array.
  19225. @return The offset of the first byte in the byte array.]]>
  19226. </doc>
  19227. </method>
  19228. <method name="size" return="int"
  19229. abstract="false" native="false" synchronized="false"
  19230. static="false" final="false" visibility="public"
  19231. deprecated="not deprecated">
  19232. <doc>
  19233. <![CDATA[Get the size of the byte range in the byte array.
  19234. @return The size of the byte range in the byte array.]]>
  19235. </doc>
  19236. </method>
  19237. <doc>
  19238. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  19239. This is useful in places where we need a single object reference to specify a
  19240. range of bytes in a byte array, such as {@link Comparable} or
  19241. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  19242. The actual comparison among RawComparable's requires an external
  19243. RawComparator and it is applications' responsibility to ensure two
  19244. RawComparable are supposed to be semantically comparable with the same
  19245. RawComparator.]]>
  19246. </doc>
  19247. </interface>
  19248. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19249. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  19250. <class name="TFile" extends="java.lang.Object"
  19251. abstract="false"
  19252. static="false" final="false" visibility="public"
  19253. deprecated="not deprecated">
  19254. <method name="makeComparator" return="java.util.Comparator"
  19255. abstract="false" native="false" synchronized="false"
  19256. static="true" final="false" visibility="public"
  19257. deprecated="not deprecated">
  19258. <param name="name" type="java.lang.String"/>
  19259. <doc>
  19260. <![CDATA[Make a raw comparator from a string name.
  19261. @param name
  19262. Comparator name
  19263. @return A RawComparable comparator.]]>
  19264. </doc>
  19265. </method>
  19266. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  19267. abstract="false" native="false" synchronized="false"
  19268. static="true" final="false" visibility="public"
  19269. deprecated="not deprecated">
  19270. <doc>
  19271. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  19272. TFile.Writer.
  19273. @return Array of strings, each represents a supported compression
  19274. algorithm. Currently, the following compression algorithms are
  19275. supported.
  19276. <ul>
  19277. <li>"none" - No compression.
  19278. <li>"lzo" - LZO compression.
  19279. <li>"gz" - GZIP compression.
  19280. </ul>]]>
  19281. </doc>
  19282. </method>
  19283. <method name="main"
  19284. abstract="false" native="false" synchronized="false"
  19285. static="true" final="false" visibility="public"
  19286. deprecated="not deprecated">
  19287. <param name="args" type="java.lang.String[]"/>
  19288. <doc>
  19289. <![CDATA[Dumping the TFile information.
  19290. @param args
  19291. A list of TFile paths.]]>
  19292. </doc>
  19293. </method>
  19294. <field name="COMPRESSION_GZ" type="java.lang.String"
  19295. transient="false" volatile="false"
  19296. static="true" final="true" visibility="public"
  19297. deprecated="not deprecated">
  19298. <doc>
  19299. <![CDATA[compression: gzip]]>
  19300. </doc>
  19301. </field>
  19302. <field name="COMPRESSION_LZO" type="java.lang.String"
  19303. transient="false" volatile="false"
  19304. static="true" final="true" visibility="public"
  19305. deprecated="not deprecated">
  19306. <doc>
  19307. <![CDATA[compression: lzo]]>
  19308. </doc>
  19309. </field>
  19310. <field name="COMPRESSION_NONE" type="java.lang.String"
  19311. transient="false" volatile="false"
  19312. static="true" final="true" visibility="public"
  19313. deprecated="not deprecated">
  19314. <doc>
  19315. <![CDATA[compression: none]]>
  19316. </doc>
  19317. </field>
  19318. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  19319. transient="false" volatile="false"
  19320. static="true" final="true" visibility="public"
  19321. deprecated="not deprecated">
  19322. <doc>
  19323. <![CDATA[comparator: memcmp]]>
  19324. </doc>
  19325. </field>
  19326. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  19327. transient="false" volatile="false"
  19328. static="true" final="true" visibility="public"
  19329. deprecated="not deprecated">
  19330. <doc>
  19331. <![CDATA[comparator prefix: java class]]>
  19332. </doc>
  19333. </field>
  19334. <doc>
  19335. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  19336. bytes. Keys are restricted to 64KB, value length is not restricted
  19337. (practically limited to the available disk storage). TFile further provides
  19338. the following features:
  19339. <ul>
  19340. <li>Block Compression.
  19341. <li>Named meta data blocks.
  19342. <li>Sorted or unsorted keys.
  19343. <li>Seek by key or by file offset.
  19344. </ul>
  19345. The memory footprint of a TFile includes the following:
  19346. <ul>
  19347. <li>Some constant overhead of reading or writing a compressed block.
  19348. <ul>
  19349. <li>Each compressed block requires one compression/decompression codec for
  19350. I/O.
  19351. <li>Temporary space to buffer the key.
  19352. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  19353. chunk encoded, so that we buffer at most one chunk of user data. By default,
  19354. the chunk buffer is 1MB. Reading chunked value does not require additional
  19355. memory.
  19356. </ul>
  19357. <li>TFile index, which is proportional to the total number of Data Blocks.
  19358. The total amount of memory needed to hold the index can be estimated as
  19359. (56+AvgKeySize)*NumBlocks.
  19360. <li>MetaBlock index, which is proportional to the total number of Meta
  19361. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  19362. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  19363. </ul>
  19364. <p>
  19365. The behavior of TFile can be customized by the following variables through
  19366. Configuration:
  19367. <ul>
  19368. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  19369. to 1MB. Values of the length less than the chunk size is guaranteed to have
  19370. known value length in read time (See
  19371. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  19372. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  19373. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  19374. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  19375. FSDataInputStream. Integer (in bytes). Default to 256KB.
  19376. </ul>
  19377. <p>
  19378. Suggestions on performance optimization.
  19379. <ul>
  19380. <li>Minimum block size. We recommend a setting of minimum block size between
  19381. 256KB to 1MB for general usage. Larger block size is preferred if files are
  19382. primarily for sequential access. However, it would lead to inefficient random
  19383. access (because there are more data to decompress). Smaller blocks are good
  19384. for random access, but require more memory to hold the block index, and may
  19385. be slower to create (because we must flush the compressor stream at the
  19386. conclusion of each data block, which leads to an FS I/O flush). Further, due
  19387. to the internal caching in Compression codec, the smallest possible block
  19388. size would be around 20KB-30KB.
  19389. <li>The current implementation does not offer true multi-threading for
  19390. reading. The implementation uses FSDataInputStream seek()+read(), which is
  19391. shown to be much faster than positioned-read call in single thread mode.
  19392. However, it also means that if multiple threads attempt to access the same
  19393. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  19394. sequentially even if they access different DFS blocks.
  19395. <li>Compression codec. Use "none" if the data is not very compressable (by
  19396. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  19397. as the starting point for experimenting. "gz" overs slightly better
  19398. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  19399. decompress, comparing to "lzo".
  19400. <li>File system buffering, if the underlying FSDataInputStream and
  19401. FSDataOutputStream is already adequately buffered; or if applications
  19402. reads/writes keys and values in large buffers, we can reduce the sizes of
  19403. input/output buffering in TFile layer by setting the configuration parameters
  19404. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  19405. </ul>
  19406. Some design rationale behind TFile can be found at <a
  19407. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  19408. </doc>
  19409. </class>
  19410. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  19411. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  19412. <class name="TFile.Reader" extends="java.lang.Object"
  19413. abstract="false"
  19414. static="true" final="false" visibility="public"
  19415. deprecated="not deprecated">
  19416. <implements name="java.io.Closeable"/>
  19417. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  19418. static="false" final="false" visibility="public"
  19419. deprecated="not deprecated">
  19420. <exception name="IOException" type="java.io.IOException"/>
  19421. <doc>
  19422. <![CDATA[Constructor
  19423. @param fsdis
  19424. FS input stream of the TFile.
  19425. @param fileLength
  19426. The length of TFile. This is required because we have no easy
  19427. way of knowing the actual size of the input file through the
  19428. File input stream.
  19429. @param conf
  19430. @throws IOException]]>
  19431. </doc>
  19432. </constructor>
  19433. <method name="close"
  19434. abstract="false" native="false" synchronized="false"
  19435. static="false" final="false" visibility="public"
  19436. deprecated="not deprecated">
  19437. <exception name="IOException" type="java.io.IOException"/>
  19438. <doc>
  19439. <![CDATA[Close the reader. The state of the Reader object is undefined after
  19440. close. Calling close() for multiple times has no effect.]]>
  19441. </doc>
  19442. </method>
  19443. <method name="getComparatorName" return="java.lang.String"
  19444. abstract="false" native="false" synchronized="false"
  19445. static="false" final="false" visibility="public"
  19446. deprecated="not deprecated">
  19447. <doc>
  19448. <![CDATA[Get the string representation of the comparator.
  19449. @return If the TFile is not sorted by keys, an empty string will be
  19450. returned. Otherwise, the actual comparator string that is
  19451. provided during the TFile creation time will be returned.]]>
  19452. </doc>
  19453. </method>
  19454. <method name="isSorted" return="boolean"
  19455. abstract="false" native="false" synchronized="false"
  19456. static="false" final="false" visibility="public"
  19457. deprecated="not deprecated">
  19458. <doc>
  19459. <![CDATA[Is the TFile sorted?
  19460. @return true if TFile is sorted.]]>
  19461. </doc>
  19462. </method>
  19463. <method name="getEntryCount" return="long"
  19464. abstract="false" native="false" synchronized="false"
  19465. static="false" final="false" visibility="public"
  19466. deprecated="not deprecated">
  19467. <doc>
  19468. <![CDATA[Get the number of key-value pair entries in TFile.
  19469. @return the number of key-value pairs in TFile]]>
  19470. </doc>
  19471. </method>
  19472. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  19473. abstract="false" native="false" synchronized="false"
  19474. static="false" final="false" visibility="public"
  19475. deprecated="not deprecated">
  19476. <exception name="IOException" type="java.io.IOException"/>
  19477. <doc>
  19478. <![CDATA[Get the first key in the TFile.
  19479. @return The first key in the TFile.
  19480. @throws IOException]]>
  19481. </doc>
  19482. </method>
  19483. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  19484. abstract="false" native="false" synchronized="false"
  19485. static="false" final="false" visibility="public"
  19486. deprecated="not deprecated">
  19487. <exception name="IOException" type="java.io.IOException"/>
  19488. <doc>
  19489. <![CDATA[Get the last key in the TFile.
  19490. @return The last key in the TFile.
  19491. @throws IOException]]>
  19492. </doc>
  19493. </method>
  19494. <method name="getEntryComparator" return="java.util.Comparator"
  19495. abstract="false" native="false" synchronized="false"
  19496. static="false" final="false" visibility="public"
  19497. deprecated="not deprecated">
  19498. <doc>
  19499. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  19500. stores the entries in a collection (such as PriorityQueue) and perform
  19501. sorting or comparison among entries based on the keys without copying out
  19502. the key.
  19503. @return An Entry Comparator..]]>
  19504. </doc>
  19505. </method>
  19506. <method name="getComparator" return="java.util.Comparator"
  19507. abstract="false" native="false" synchronized="false"
  19508. static="false" final="false" visibility="public"
  19509. deprecated="not deprecated">
  19510. <doc>
  19511. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  19512. string comparator representation.
  19513. @return a Comparator that can compare RawComparable's.]]>
  19514. </doc>
  19515. </method>
  19516. <method name="getMetaBlock" return="java.io.DataInputStream"
  19517. abstract="false" native="false" synchronized="false"
  19518. static="false" final="false" visibility="public"
  19519. deprecated="not deprecated">
  19520. <param name="name" type="java.lang.String"/>
  19521. <exception name="IOException" type="java.io.IOException"/>
  19522. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  19523. <doc>
  19524. <![CDATA[Stream access to a meta block.``
  19525. @param name
  19526. The name of the meta block.
  19527. @return The input stream.
  19528. @throws IOException
  19529. on I/O error.
  19530. @throws MetaBlockDoesNotExist
  19531. If the meta block with the name does not exist.]]>
  19532. </doc>
  19533. </method>
  19534. <method name="getRecordNumNear" return="long"
  19535. abstract="false" native="false" synchronized="false"
  19536. static="false" final="false" visibility="public"
  19537. deprecated="not deprecated">
  19538. <param name="offset" type="long"/>
  19539. <exception name="IOException" type="java.io.IOException"/>
  19540. <doc>
  19541. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  19542. whose byte offset in the TFile is greater than or equal to the specified
  19543. offset.
  19544. @param offset
  19545. the user supplied offset.
  19546. @return the RecordNum to the corresponding entry. If no such entry
  19547. exists, it returns the total entry count.
  19548. @throws IOException]]>
  19549. </doc>
  19550. </method>
  19551. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  19552. abstract="false" native="false" synchronized="false"
  19553. static="false" final="false" visibility="public"
  19554. deprecated="not deprecated">
  19555. <param name="offset" type="long"/>
  19556. <exception name="IOException" type="java.io.IOException"/>
  19557. <doc>
  19558. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  19559. than or equal to the specified offset.
  19560. @param offset
  19561. The file offset.
  19562. @return the key that fits the requirement; or null if no such key exists
  19563. (which could happen if the offset is close to the end of the
  19564. TFile).
  19565. @throws IOException]]>
  19566. </doc>
  19567. </method>
  19568. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19569. abstract="false" native="false" synchronized="false"
  19570. static="false" final="false" visibility="public"
  19571. deprecated="not deprecated">
  19572. <exception name="IOException" type="java.io.IOException"/>
  19573. <doc>
  19574. <![CDATA[Get a scanner than can scan the whole TFile.
  19575. @return The scanner object. A valid Scanner is always returned even if
  19576. the TFile is empty.
  19577. @throws IOException]]>
  19578. </doc>
  19579. </method>
  19580. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19581. abstract="false" native="false" synchronized="false"
  19582. static="false" final="false" visibility="public"
  19583. deprecated="not deprecated">
  19584. <param name="offset" type="long"/>
  19585. <param name="length" type="long"/>
  19586. <exception name="IOException" type="java.io.IOException"/>
  19587. <doc>
  19588. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  19589. @param offset
  19590. The beginning byte offset in the TFile.
  19591. @param length
  19592. The length of the region.
  19593. @return The actual coverage of the returned scanner tries to match the
  19594. specified byte-region but always round up to the compression
  19595. block boundaries. It is possible that the returned scanner
  19596. contains zero key-value pairs even if length is positive.
  19597. @throws IOException]]>
  19598. </doc>
  19599. </method>
  19600. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19601. abstract="false" native="false" synchronized="false"
  19602. static="false" final="false" visibility="public"
  19603. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  19604. <param name="beginKey" type="byte[]"/>
  19605. <param name="endKey" type="byte[]"/>
  19606. <exception name="IOException" type="java.io.IOException"/>
  19607. <doc>
  19608. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  19609. @param beginKey
  19610. Begin key of the scan (inclusive). If null, scan from the first
  19611. key-value entry of the TFile.
  19612. @param endKey
  19613. End key of the scan (exclusive). If null, scan up to the last
  19614. key-value entry of the TFile.
  19615. @return The actual coverage of the returned scanner will cover all keys
  19616. greater than or equal to the beginKey and less than the endKey.
  19617. @throws IOException
  19618. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  19619. </doc>
  19620. </method>
  19621. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19622. abstract="false" native="false" synchronized="false"
  19623. static="false" final="false" visibility="public"
  19624. deprecated="not deprecated">
  19625. <param name="beginKey" type="byte[]"/>
  19626. <param name="endKey" type="byte[]"/>
  19627. <exception name="IOException" type="java.io.IOException"/>
  19628. <doc>
  19629. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  19630. @param beginKey
  19631. Begin key of the scan (inclusive). If null, scan from the first
  19632. key-value entry of the TFile.
  19633. @param endKey
  19634. End key of the scan (exclusive). If null, scan up to the last
  19635. key-value entry of the TFile.
  19636. @return The actual coverage of the returned scanner will cover all keys
  19637. greater than or equal to the beginKey and less than the endKey.
  19638. @throws IOException]]>
  19639. </doc>
  19640. </method>
  19641. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19642. abstract="false" native="false" synchronized="false"
  19643. static="false" final="false" visibility="public"
  19644. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  19645. instead.">
  19646. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19647. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19648. <exception name="IOException" type="java.io.IOException"/>
  19649. <doc>
  19650. <![CDATA[Get a scanner that covers a specific key range.
  19651. @param beginKey
  19652. Begin key of the scan (inclusive). If null, scan from the first
  19653. key-value entry of the TFile.
  19654. @param endKey
  19655. End key of the scan (exclusive). If null, scan up to the last
  19656. key-value entry of the TFile.
  19657. @return The actual coverage of the returned scanner will cover all keys
  19658. greater than or equal to the beginKey and less than the endKey.
  19659. @throws IOException
  19660. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  19661. instead.]]>
  19662. </doc>
  19663. </method>
  19664. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19665. abstract="false" native="false" synchronized="false"
  19666. static="false" final="false" visibility="public"
  19667. deprecated="not deprecated">
  19668. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19669. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19670. <exception name="IOException" type="java.io.IOException"/>
  19671. <doc>
  19672. <![CDATA[Get a scanner that covers a specific key range.
  19673. @param beginKey
  19674. Begin key of the scan (inclusive). If null, scan from the first
  19675. key-value entry of the TFile.
  19676. @param endKey
  19677. End key of the scan (exclusive). If null, scan up to the last
  19678. key-value entry of the TFile.
  19679. @return The actual coverage of the returned scanner will cover all keys
  19680. greater than or equal to the beginKey and less than the endKey.
  19681. @throws IOException]]>
  19682. </doc>
  19683. </method>
  19684. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19685. abstract="false" native="false" synchronized="false"
  19686. static="false" final="false" visibility="public"
  19687. deprecated="not deprecated">
  19688. <param name="beginRecNum" type="long"/>
  19689. <param name="endRecNum" type="long"/>
  19690. <exception name="IOException" type="java.io.IOException"/>
  19691. <doc>
  19692. <![CDATA[Create a scanner that covers a range of records.
  19693. @param beginRecNum
  19694. The RecordNum for the first record (inclusive).
  19695. @param endRecNum
  19696. The RecordNum for the last record (exclusive). To scan the whole
  19697. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  19698. @return The TFile scanner that covers the specified range of records.
  19699. @throws IOException]]>
  19700. </doc>
  19701. </method>
  19702. <doc>
  19703. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  19704. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  19705. ) , a portion of TFile based on byte offsets (
  19706. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  19707. fall in a certain key range (for sorted TFile only,
  19708. {@link Reader#createScannerByKey(byte[], byte[])} or
  19709. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  19710. </doc>
  19711. </class>
  19712. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  19713. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19714. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  19715. abstract="false"
  19716. static="true" final="false" visibility="public"
  19717. deprecated="not deprecated">
  19718. <implements name="java.io.Closeable"/>
  19719. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  19720. static="false" final="false" visibility="protected"
  19721. deprecated="not deprecated">
  19722. <exception name="IOException" type="java.io.IOException"/>
  19723. <doc>
  19724. <![CDATA[Constructor
  19725. @param reader
  19726. The TFile reader object.
  19727. @param offBegin
  19728. Begin byte-offset of the scan.
  19729. @param offEnd
  19730. End byte-offset of the scan.
  19731. @throws IOException
  19732. The offsets will be rounded to the beginning of a compressed
  19733. block whose offset is greater than or equal to the specified
  19734. offset.]]>
  19735. </doc>
  19736. </constructor>
  19737. <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"
  19738. static="false" final="false" visibility="protected"
  19739. deprecated="not deprecated">
  19740. <exception name="IOException" type="java.io.IOException"/>
  19741. <doc>
  19742. <![CDATA[Constructor
  19743. @param reader
  19744. The TFile reader object.
  19745. @param beginKey
  19746. Begin key of the scan. If null, scan from the first <K,V>
  19747. entry of the TFile.
  19748. @param endKey
  19749. End key of the scan. If null, scan up to the last <K, V> entry
  19750. of the TFile.
  19751. @throws IOException]]>
  19752. </doc>
  19753. </constructor>
  19754. <method name="seekTo" return="boolean"
  19755. abstract="false" native="false" synchronized="false"
  19756. static="false" final="false" visibility="public"
  19757. deprecated="not deprecated">
  19758. <param name="key" type="byte[]"/>
  19759. <exception name="IOException" type="java.io.IOException"/>
  19760. <doc>
  19761. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19762. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  19763. returned by the previous entry() call will be invalid.
  19764. @param key
  19765. The input key
  19766. @return true if we find an equal key.
  19767. @throws IOException]]>
  19768. </doc>
  19769. </method>
  19770. <method name="seekTo" return="boolean"
  19771. abstract="false" native="false" synchronized="false"
  19772. static="false" final="false" visibility="public"
  19773. deprecated="not deprecated">
  19774. <param name="key" type="byte[]"/>
  19775. <param name="keyOffset" type="int"/>
  19776. <param name="keyLen" type="int"/>
  19777. <exception name="IOException" type="java.io.IOException"/>
  19778. <doc>
  19779. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19780. to the input key. The entry returned by the previous entry() call will
  19781. be invalid.
  19782. @param key
  19783. The input key
  19784. @param keyOffset
  19785. offset in the key buffer.
  19786. @param keyLen
  19787. key buffer length.
  19788. @return true if we find an equal key; false otherwise.
  19789. @throws IOException]]>
  19790. </doc>
  19791. </method>
  19792. <method name="rewind"
  19793. abstract="false" native="false" synchronized="false"
  19794. static="false" final="false" visibility="public"
  19795. deprecated="not deprecated">
  19796. <exception name="IOException" type="java.io.IOException"/>
  19797. <doc>
  19798. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  19799. previous entry() call will be invalid.
  19800. @throws IOException]]>
  19801. </doc>
  19802. </method>
  19803. <method name="seekToEnd"
  19804. abstract="false" native="false" synchronized="false"
  19805. static="false" final="false" visibility="public"
  19806. deprecated="not deprecated">
  19807. <exception name="IOException" type="java.io.IOException"/>
  19808. <doc>
  19809. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  19810. entry() call will be invalid.
  19811. @throws IOException]]>
  19812. </doc>
  19813. </method>
  19814. <method name="lowerBound"
  19815. abstract="false" native="false" synchronized="false"
  19816. static="false" final="false" visibility="public"
  19817. deprecated="not deprecated">
  19818. <param name="key" type="byte[]"/>
  19819. <exception name="IOException" type="java.io.IOException"/>
  19820. <doc>
  19821. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19822. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  19823. entry returned by the previous entry() call will be invalid.
  19824. @param key
  19825. The input key
  19826. @throws IOException]]>
  19827. </doc>
  19828. </method>
  19829. <method name="lowerBound"
  19830. abstract="false" native="false" synchronized="false"
  19831. static="false" final="false" visibility="public"
  19832. deprecated="not deprecated">
  19833. <param name="key" type="byte[]"/>
  19834. <param name="keyOffset" type="int"/>
  19835. <param name="keyLen" type="int"/>
  19836. <exception name="IOException" type="java.io.IOException"/>
  19837. <doc>
  19838. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19839. to the input key. The entry returned by the previous entry() call will
  19840. be invalid.
  19841. @param key
  19842. The input key
  19843. @param keyOffset
  19844. offset in the key buffer.
  19845. @param keyLen
  19846. key buffer length.
  19847. @throws IOException]]>
  19848. </doc>
  19849. </method>
  19850. <method name="upperBound"
  19851. abstract="false" native="false" synchronized="false"
  19852. static="false" final="false" visibility="public"
  19853. deprecated="not deprecated">
  19854. <param name="key" type="byte[]"/>
  19855. <exception name="IOException" type="java.io.IOException"/>
  19856. <doc>
  19857. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19858. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  19859. returned by the previous entry() call will be invalid.
  19860. @param key
  19861. The input key
  19862. @throws IOException]]>
  19863. </doc>
  19864. </method>
  19865. <method name="upperBound"
  19866. abstract="false" native="false" synchronized="false"
  19867. static="false" final="false" visibility="public"
  19868. deprecated="not deprecated">
  19869. <param name="key" type="byte[]"/>
  19870. <param name="keyOffset" type="int"/>
  19871. <param name="keyLen" type="int"/>
  19872. <exception name="IOException" type="java.io.IOException"/>
  19873. <doc>
  19874. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19875. the input key. The entry returned by the previous entry() call will be
  19876. invalid.
  19877. @param key
  19878. The input key
  19879. @param keyOffset
  19880. offset in the key buffer.
  19881. @param keyLen
  19882. key buffer length.
  19883. @throws IOException]]>
  19884. </doc>
  19885. </method>
  19886. <method name="advance" return="boolean"
  19887. abstract="false" native="false" synchronized="false"
  19888. static="false" final="false" visibility="public"
  19889. deprecated="not deprecated">
  19890. <exception name="IOException" type="java.io.IOException"/>
  19891. <doc>
  19892. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  19893. previous entry() call will be invalid.
  19894. @return true if the cursor successfully moves. False when cursor is
  19895. already at the end location and cannot be advanced.
  19896. @throws IOException]]>
  19897. </doc>
  19898. </method>
  19899. <method name="close"
  19900. abstract="false" native="false" synchronized="false"
  19901. static="false" final="false" visibility="public"
  19902. deprecated="not deprecated">
  19903. <exception name="IOException" type="java.io.IOException"/>
  19904. <doc>
  19905. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  19906. scanner after calling close is not defined. The entry returned by the
  19907. previous entry() call will be invalid.]]>
  19908. </doc>
  19909. </method>
  19910. <method name="atEnd" return="boolean"
  19911. abstract="false" native="false" synchronized="false"
  19912. static="false" final="false" visibility="public"
  19913. deprecated="not deprecated">
  19914. <doc>
  19915. <![CDATA[Is cursor at the end location?
  19916. @return true if the cursor is at the end location.]]>
  19917. </doc>
  19918. </method>
  19919. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  19920. abstract="false" native="false" synchronized="false"
  19921. static="false" final="false" visibility="public"
  19922. deprecated="not deprecated">
  19923. <exception name="IOException" type="java.io.IOException"/>
  19924. <doc>
  19925. <![CDATA[Get an entry to access the key and value.
  19926. @return The Entry object to access the key and value.
  19927. @throws IOException]]>
  19928. </doc>
  19929. </method>
  19930. <method name="getRecordNum" return="long"
  19931. abstract="false" native="false" synchronized="false"
  19932. static="false" final="false" visibility="public"
  19933. deprecated="not deprecated">
  19934. <exception name="IOException" type="java.io.IOException"/>
  19935. <doc>
  19936. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  19937. @return The RecordNum corresponding to the entry pointed by the cursor.
  19938. @throws IOException]]>
  19939. </doc>
  19940. </method>
  19941. <doc>
  19942. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  19943. creation, points to the first key-value pair in the scan range. If the
  19944. scan range is empty, the cursor will point to the end of the scan range.
  19945. <p>
  19946. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  19947. location of the scanner.
  19948. <p>
  19949. Use {@link Scanner#advance()} to move the cursor to the next key-value
  19950. pair (or end if none exists). Use seekTo methods (
  19951. {@link Scanner#seekTo(byte[])} or
  19952. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  19953. location in the covered range (including backward seeking). Use
  19954. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  19955. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  19956. <p>
  19957. Actual keys and values may be obtained through {@link Scanner.Entry}
  19958. object, which is obtained through {@link Scanner#entry()}.]]>
  19959. </doc>
  19960. </class>
  19961. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19962. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19963. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  19964. abstract="false"
  19965. static="false" final="false" visibility="public"
  19966. deprecated="not deprecated">
  19967. <implements name="java.lang.Comparable"/>
  19968. <constructor name="TFile.Reader.Scanner.Entry"
  19969. static="false" final="false" visibility="public"
  19970. deprecated="not deprecated">
  19971. </constructor>
  19972. <method name="getKeyLength" return="int"
  19973. abstract="false" native="false" synchronized="false"
  19974. static="false" final="false" visibility="public"
  19975. deprecated="not deprecated">
  19976. <doc>
  19977. <![CDATA[Get the length of the key.
  19978. @return the length of the key.]]>
  19979. </doc>
  19980. </method>
  19981. <method name="get"
  19982. abstract="false" native="false" synchronized="false"
  19983. static="false" final="false" visibility="public"
  19984. deprecated="not deprecated">
  19985. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  19986. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  19987. <exception name="IOException" type="java.io.IOException"/>
  19988. <doc>
  19989. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  19990. equivalent to getKey(key); getValue(value);
  19991. @param key
  19992. BytesWritable to hold key.
  19993. @param value
  19994. BytesWritable to hold value
  19995. @throws IOException]]>
  19996. </doc>
  19997. </method>
  19998. <method name="getKey" return="int"
  19999. abstract="false" native="false" synchronized="false"
  20000. static="false" final="false" visibility="public"
  20001. deprecated="not deprecated">
  20002. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20003. <exception name="IOException" type="java.io.IOException"/>
  20004. <doc>
  20005. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  20006. automatically resized to the actual key size.
  20007. @param key
  20008. BytesWritable to hold the key.
  20009. @throws IOException]]>
  20010. </doc>
  20011. </method>
  20012. <method name="getValue" return="long"
  20013. abstract="false" native="false" synchronized="false"
  20014. static="false" final="false" visibility="public"
  20015. deprecated="not deprecated">
  20016. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20017. <exception name="IOException" type="java.io.IOException"/>
  20018. <doc>
  20019. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  20020. automatically resized to the actual value size. The implementation
  20021. directly uses the buffer inside BytesWritable for storing the value.
  20022. The call does not require the value length to be known.
  20023. @param value
  20024. @throws IOException]]>
  20025. </doc>
  20026. </method>
  20027. <method name="writeKey" return="int"
  20028. abstract="false" native="false" synchronized="false"
  20029. static="false" final="false" visibility="public"
  20030. deprecated="not deprecated">
  20031. <param name="out" type="java.io.OutputStream"/>
  20032. <exception name="IOException" type="java.io.IOException"/>
  20033. <doc>
  20034. <![CDATA[Writing the key to the output stream. This method avoids copying key
  20035. buffer from Scanner into user buffer, then writing to the output
  20036. stream.
  20037. @param out
  20038. The output stream
  20039. @return the length of the key.
  20040. @throws IOException]]>
  20041. </doc>
  20042. </method>
  20043. <method name="writeValue" return="long"
  20044. abstract="false" native="false" synchronized="false"
  20045. static="false" final="false" visibility="public"
  20046. deprecated="not deprecated">
  20047. <param name="out" type="java.io.OutputStream"/>
  20048. <exception name="IOException" type="java.io.IOException"/>
  20049. <doc>
  20050. <![CDATA[Writing the value to the output stream. This method avoids copying
  20051. value data from Scanner into user buffer, then writing to the output
  20052. stream. It does not require the value length to be known.
  20053. @param out
  20054. The output stream
  20055. @return the length of the value
  20056. @throws IOException]]>
  20057. </doc>
  20058. </method>
  20059. <method name="getKey" return="int"
  20060. abstract="false" native="false" synchronized="false"
  20061. static="false" final="false" visibility="public"
  20062. deprecated="not deprecated">
  20063. <param name="buf" type="byte[]"/>
  20064. <exception name="IOException" type="java.io.IOException"/>
  20065. <doc>
  20066. <![CDATA[Copy the key into user supplied buffer.
  20067. @param buf
  20068. The buffer supplied by user. The length of the buffer must
  20069. not be shorter than the key length.
  20070. @return The length of the key.
  20071. @throws IOException]]>
  20072. </doc>
  20073. </method>
  20074. <method name="getKey" return="int"
  20075. abstract="false" native="false" synchronized="false"
  20076. static="false" final="false" visibility="public"
  20077. deprecated="not deprecated">
  20078. <param name="buf" type="byte[]"/>
  20079. <param name="offset" type="int"/>
  20080. <exception name="IOException" type="java.io.IOException"/>
  20081. <doc>
  20082. <![CDATA[Copy the key into user supplied buffer.
  20083. @param buf
  20084. The buffer supplied by user.
  20085. @param offset
  20086. The starting offset of the user buffer where we should copy
  20087. the key into. Requiring the key-length + offset no greater
  20088. than the buffer length.
  20089. @return The length of the key.
  20090. @throws IOException]]>
  20091. </doc>
  20092. </method>
  20093. <method name="getKeyStream" return="java.io.DataInputStream"
  20094. abstract="false" native="false" synchronized="false"
  20095. static="false" final="false" visibility="public"
  20096. deprecated="not deprecated">
  20097. <doc>
  20098. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  20099. user objects.
  20100. @return The input stream.]]>
  20101. </doc>
  20102. </method>
  20103. <method name="getValueLength" return="int"
  20104. abstract="false" native="false" synchronized="false"
  20105. static="false" final="false" visibility="public"
  20106. deprecated="not deprecated">
  20107. <doc>
  20108. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  20109. true.
  20110. @return the length of the value.]]>
  20111. </doc>
  20112. </method>
  20113. <method name="getValue" return="int"
  20114. abstract="false" native="false" synchronized="false"
  20115. static="false" final="false" visibility="public"
  20116. deprecated="not deprecated">
  20117. <param name="buf" type="byte[]"/>
  20118. <exception name="IOException" type="java.io.IOException"/>
  20119. <doc>
  20120. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20121. large enough to hold the whole value. The value part of the key-value
  20122. pair pointed by the current cursor is not cached and can only be
  20123. examined once. Calling any of the following functions more than once
  20124. without moving the cursor will result in exception:
  20125. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20126. {@link #getValueStream}.
  20127. @return the length of the value. Does not require
  20128. isValueLengthKnown() to be true.
  20129. @throws IOException]]>
  20130. </doc>
  20131. </method>
  20132. <method name="getValue" return="int"
  20133. abstract="false" native="false" synchronized="false"
  20134. static="false" final="false" visibility="public"
  20135. deprecated="not deprecated">
  20136. <param name="buf" type="byte[]"/>
  20137. <param name="offset" type="int"/>
  20138. <exception name="IOException" type="java.io.IOException"/>
  20139. <doc>
  20140. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20141. large enough to hold the whole value (starting from the offset). The
  20142. value part of the key-value pair pointed by the current cursor is not
  20143. cached and can only be examined once. Calling any of the following
  20144. functions more than once without moving the cursor will result in
  20145. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20146. {@link #getValueStream}.
  20147. @return the length of the value. Does not require
  20148. isValueLengthKnown() to be true.
  20149. @throws IOException]]>
  20150. </doc>
  20151. </method>
  20152. <method name="getValueStream" return="java.io.DataInputStream"
  20153. abstract="false" native="false" synchronized="false"
  20154. static="false" final="false" visibility="public"
  20155. deprecated="not deprecated">
  20156. <exception name="IOException" type="java.io.IOException"/>
  20157. <doc>
  20158. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  20159. by the current cursor is not cached and can only be examined once.
  20160. Calling any of the following functions more than once without moving
  20161. the cursor will result in exception: {@link #getValue(byte[])},
  20162. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  20163. @return The input stream for reading the value.
  20164. @throws IOException]]>
  20165. </doc>
  20166. </method>
  20167. <method name="isValueLengthKnown" return="boolean"
  20168. abstract="false" native="false" synchronized="false"
  20169. static="false" final="false" visibility="public"
  20170. deprecated="not deprecated">
  20171. <doc>
  20172. <![CDATA[Check whether it is safe to call getValueLength().
  20173. @return true if value length is known before hand. Values less than
  20174. the chunk size will always have their lengths known before
  20175. hand. Values that are written out as a whole (with advertised
  20176. length up-front) will always have their lengths known in
  20177. read.]]>
  20178. </doc>
  20179. </method>
  20180. <method name="compareTo" return="int"
  20181. abstract="false" native="false" synchronized="false"
  20182. static="false" final="false" visibility="public"
  20183. deprecated="not deprecated">
  20184. <param name="buf" type="byte[]"/>
  20185. <doc>
  20186. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  20187. key.length).
  20188. @param buf
  20189. The key buffer.
  20190. @return comparison result between the entry key with the input key.]]>
  20191. </doc>
  20192. </method>
  20193. <method name="compareTo" return="int"
  20194. abstract="false" native="false" synchronized="false"
  20195. static="false" final="false" visibility="public"
  20196. deprecated="not deprecated">
  20197. <param name="buf" type="byte[]"/>
  20198. <param name="offset" type="int"/>
  20199. <param name="length" type="int"/>
  20200. <doc>
  20201. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  20202. ByteArray(buf, offset, length)
  20203. @param buf
  20204. The key buffer
  20205. @param offset
  20206. offset into the key buffer.
  20207. @param length
  20208. the length of the key.
  20209. @return comparison result between the entry key with the input key.]]>
  20210. </doc>
  20211. </method>
  20212. <method name="compareTo" return="int"
  20213. abstract="false" native="false" synchronized="false"
  20214. static="false" final="false" visibility="public"
  20215. deprecated="not deprecated">
  20216. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20217. <doc>
  20218. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  20219. Entries are stored in a collection, and we want to compare a user
  20220. supplied key.]]>
  20221. </doc>
  20222. </method>
  20223. <method name="equals" return="boolean"
  20224. abstract="false" native="false" synchronized="false"
  20225. static="false" final="false" visibility="public"
  20226. deprecated="not deprecated">
  20227. <param name="other" type="java.lang.Object"/>
  20228. <doc>
  20229. <![CDATA[Compare whether this and other points to the same key value.]]>
  20230. </doc>
  20231. </method>
  20232. <method name="hashCode" return="int"
  20233. abstract="false" native="false" synchronized="false"
  20234. static="false" final="false" visibility="public"
  20235. deprecated="not deprecated">
  20236. </method>
  20237. <doc>
  20238. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  20239. </doc>
  20240. </class>
  20241. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20242. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  20243. <class name="TFile.Writer" extends="java.lang.Object"
  20244. abstract="false"
  20245. static="true" final="false" visibility="public"
  20246. deprecated="not deprecated">
  20247. <implements name="java.io.Closeable"/>
  20248. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  20249. static="false" final="false" visibility="public"
  20250. deprecated="not deprecated">
  20251. <exception name="IOException" type="java.io.IOException"/>
  20252. <doc>
  20253. <![CDATA[Constructor
  20254. @param fsdos
  20255. output stream for writing. Must be at position 0.
  20256. @param minBlockSize
  20257. Minimum compressed block size in bytes. A compression block will
  20258. not be closed until it reaches this size except for the last
  20259. block.
  20260. @param compressName
  20261. Name of the compression algorithm. Must be one of the strings
  20262. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  20263. @param comparator
  20264. Leave comparator as null or empty string if TFile is not sorted.
  20265. Otherwise, provide the string name for the comparison algorithm
  20266. for keys. Two kinds of comparators are supported.
  20267. <ul>
  20268. <li>Algorithmic comparator: binary comparators that is language
  20269. independent. Currently, only "memcmp" is supported.
  20270. <li>Language-specific comparator: binary comparators that can
  20271. only be constructed in specific language. For Java, the syntax
  20272. is "jclass:", followed by the class name of the RawComparator.
  20273. Currently, we only support RawComparators that can be
  20274. constructed through the default constructor (with no
  20275. parameters). Parameterized RawComparators such as
  20276. {@link WritableComparator} or
  20277. {@link JavaSerializationComparator} may not be directly used.
  20278. One should write a wrapper class that inherits from such classes
  20279. and use its default constructor to perform proper
  20280. initialization.
  20281. </ul>
  20282. @param conf
  20283. The configuration object.
  20284. @throws IOException]]>
  20285. </doc>
  20286. </constructor>
  20287. <method name="close"
  20288. abstract="false" native="false" synchronized="false"
  20289. static="false" final="false" visibility="public"
  20290. deprecated="not deprecated">
  20291. <exception name="IOException" type="java.io.IOException"/>
  20292. <doc>
  20293. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  20294. being thrown. Future close calls will have no effect.
  20295. The underlying FSDataOutputStream is not closed.]]>
  20296. </doc>
  20297. </method>
  20298. <method name="append"
  20299. abstract="false" native="false" synchronized="false"
  20300. static="false" final="false" visibility="public"
  20301. deprecated="not deprecated">
  20302. <param name="key" type="byte[]"/>
  20303. <param name="value" type="byte[]"/>
  20304. <exception name="IOException" type="java.io.IOException"/>
  20305. <doc>
  20306. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  20307. append(key, 0, key.length, value, 0, value.length)
  20308. @param key
  20309. Buffer for key.
  20310. @param value
  20311. Buffer for value.
  20312. @throws IOException]]>
  20313. </doc>
  20314. </method>
  20315. <method name="append"
  20316. abstract="false" native="false" synchronized="false"
  20317. static="false" final="false" visibility="public"
  20318. deprecated="not deprecated">
  20319. <param name="key" type="byte[]"/>
  20320. <param name="koff" type="int"/>
  20321. <param name="klen" type="int"/>
  20322. <param name="value" type="byte[]"/>
  20323. <param name="voff" type="int"/>
  20324. <param name="vlen" type="int"/>
  20325. <exception name="IOException" type="java.io.IOException"/>
  20326. <doc>
  20327. <![CDATA[Adding a new key-value pair to TFile.
  20328. @param key
  20329. buffer for key.
  20330. @param koff
  20331. offset in key buffer.
  20332. @param klen
  20333. length of key.
  20334. @param value
  20335. buffer for value.
  20336. @param voff
  20337. offset in value buffer.
  20338. @param vlen
  20339. length of value.
  20340. @throws IOException
  20341. Upon IO errors.
  20342. <p>
  20343. If an exception is thrown, the TFile will be in an inconsistent
  20344. state. The only legitimate call after that would be close]]>
  20345. </doc>
  20346. </method>
  20347. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  20348. abstract="false" native="false" synchronized="false"
  20349. static="false" final="false" visibility="public"
  20350. deprecated="not deprecated">
  20351. <param name="length" type="int"/>
  20352. <exception name="IOException" type="java.io.IOException"/>
  20353. <doc>
  20354. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  20355. called when there is no active Key appending stream or value appending
  20356. stream.
  20357. @param length
  20358. The expected length of the key. If length of the key is not
  20359. known, set length = -1. Otherwise, the application must write
  20360. exactly as many bytes as specified here before calling close on
  20361. the returned output stream.
  20362. @return The key appending output stream.
  20363. @throws IOException]]>
  20364. </doc>
  20365. </method>
  20366. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  20367. abstract="false" native="false" synchronized="false"
  20368. static="false" final="false" visibility="public"
  20369. deprecated="not deprecated">
  20370. <param name="length" type="int"/>
  20371. <exception name="IOException" type="java.io.IOException"/>
  20372. <doc>
  20373. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  20374. called right after a key appending operation (the key append stream must
  20375. be closed).
  20376. @param length
  20377. The expected length of the value. If length of the value is not
  20378. known, set length = -1. Otherwise, the application must write
  20379. exactly as many bytes as specified here before calling close on
  20380. the returned output stream. Advertising the value size up-front
  20381. guarantees that the value is encoded in one chunk, and avoids
  20382. intermediate chunk buffering.
  20383. @throws IOException]]>
  20384. </doc>
  20385. </method>
  20386. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  20387. abstract="false" native="false" synchronized="false"
  20388. static="false" final="false" visibility="public"
  20389. deprecated="not deprecated">
  20390. <param name="name" type="java.lang.String"/>
  20391. <param name="compressName" type="java.lang.String"/>
  20392. <exception name="IOException" type="java.io.IOException"/>
  20393. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  20394. <doc>
  20395. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  20396. be called when there is a key append stream or value append stream
  20397. active. No more key-value insertion is allowed after a meta data block
  20398. has been added to TFile.
  20399. @param name
  20400. Name of the meta block.
  20401. @param compressName
  20402. Name of the compression algorithm to be used. Must be one of the
  20403. strings returned by
  20404. {@link TFile#getSupportedCompressionAlgorithms()}.
  20405. @return A DataOutputStream that can be used to write Meta Block data.
  20406. Closing the stream would signal the ending of the block.
  20407. @throws IOException
  20408. @throws MetaBlockAlreadyExists
  20409. the Meta Block with the same name already exists.]]>
  20410. </doc>
  20411. </method>
  20412. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  20413. abstract="false" native="false" synchronized="false"
  20414. static="false" final="false" visibility="public"
  20415. deprecated="not deprecated">
  20416. <param name="name" type="java.lang.String"/>
  20417. <exception name="IOException" type="java.io.IOException"/>
  20418. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  20419. <doc>
  20420. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  20421. be called when there is a key append stream or value append stream
  20422. active. No more key-value insertion is allowed after a meta data block
  20423. has been added to TFile. Data will be compressed using the default
  20424. compressor as defined in Writer's constructor.
  20425. @param name
  20426. Name of the meta block.
  20427. @return A DataOutputStream that can be used to write Meta Block data.
  20428. Closing the stream would signal the ending of the block.
  20429. @throws IOException
  20430. @throws MetaBlockAlreadyExists
  20431. the Meta Block with the same name already exists.]]>
  20432. </doc>
  20433. </method>
  20434. <doc>
  20435. <![CDATA[TFile Writer.]]>
  20436. </doc>
  20437. </class>
  20438. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  20439. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  20440. <class name="Utils" extends="java.lang.Object"
  20441. abstract="false"
  20442. static="false" final="true" visibility="public"
  20443. deprecated="not deprecated">
  20444. <method name="writeVInt"
  20445. abstract="false" native="false" synchronized="false"
  20446. static="true" final="false" visibility="public"
  20447. deprecated="not deprecated">
  20448. <param name="out" type="java.io.DataOutput"/>
  20449. <param name="n" type="int"/>
  20450. <exception name="IOException" type="java.io.IOException"/>
  20451. <doc>
  20452. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  20453. <code>Utils#writeVLong(out, n)</code>.
  20454. @param out
  20455. output stream
  20456. @param n
  20457. The integer to be encoded
  20458. @throws IOException
  20459. @see Utils#writeVLong(DataOutput, long)]]>
  20460. </doc>
  20461. </method>
  20462. <method name="writeVLong"
  20463. abstract="false" native="false" synchronized="false"
  20464. static="true" final="false" visibility="public"
  20465. deprecated="not deprecated">
  20466. <param name="out" type="java.io.DataOutput"/>
  20467. <param name="n" type="long"/>
  20468. <exception name="IOException" type="java.io.IOException"/>
  20469. <doc>
  20470. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  20471. <ul>
  20472. <li>if n in [-32, 127): encode in one byte with the actual value.
  20473. Otherwise,
  20474. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  20475. byte[1]=n&0xff. Otherwise,
  20476. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  20477. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  20478. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  20479. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  20480. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  20481. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  20482. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  20483. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  20484. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  20485. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  20486. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  20487. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  20488. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  20489. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  20490. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  20491. byte[7]=n&0xff;
  20492. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  20493. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  20494. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  20495. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  20496. </ul>
  20497. @param out
  20498. output stream
  20499. @param n
  20500. the integer number
  20501. @throws IOException]]>
  20502. </doc>
  20503. </method>
  20504. <method name="readVInt" return="int"
  20505. abstract="false" native="false" synchronized="false"
  20506. static="true" final="false" visibility="public"
  20507. deprecated="not deprecated">
  20508. <param name="in" type="java.io.DataInput"/>
  20509. <exception name="IOException" type="java.io.IOException"/>
  20510. <doc>
  20511. <![CDATA[Decoding the variable-length integer. Synonymous to
  20512. <code>(int)Utils#readVLong(in)</code>.
  20513. @param in
  20514. input stream
  20515. @return the decoded integer
  20516. @throws IOException
  20517. @see Utils#readVLong(DataInput)]]>
  20518. </doc>
  20519. </method>
  20520. <method name="readVLong" return="long"
  20521. abstract="false" native="false" synchronized="false"
  20522. static="true" final="false" visibility="public"
  20523. deprecated="not deprecated">
  20524. <param name="in" type="java.io.DataInput"/>
  20525. <exception name="IOException" type="java.io.IOException"/>
  20526. <doc>
  20527. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  20528. is FB, and the following bytes are NB[*].
  20529. <ul>
  20530. <li>if (FB >= -32), return (long)FB;
  20531. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  20532. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  20533. NB[1]&0xff;
  20534. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  20535. (NB[1]&0xff)<<8 + NB[2]&0xff;
  20536. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  20537. big-endian integer.
  20538. @param in
  20539. input stream
  20540. @return the decoded long integer.
  20541. @throws IOException]]>
  20542. </doc>
  20543. </method>
  20544. <method name="writeString"
  20545. abstract="false" native="false" synchronized="false"
  20546. static="true" final="false" visibility="public"
  20547. deprecated="not deprecated">
  20548. <param name="out" type="java.io.DataOutput"/>
  20549. <param name="s" type="java.lang.String"/>
  20550. <exception name="IOException" type="java.io.IOException"/>
  20551. <doc>
  20552. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  20553. @param out
  20554. @param s
  20555. @throws IOException]]>
  20556. </doc>
  20557. </method>
  20558. <method name="readString" return="java.lang.String"
  20559. abstract="false" native="false" synchronized="false"
  20560. static="true" final="false" visibility="public"
  20561. deprecated="not deprecated">
  20562. <param name="in" type="java.io.DataInput"/>
  20563. <exception name="IOException" type="java.io.IOException"/>
  20564. <doc>
  20565. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  20566. @param in
  20567. The input stream.
  20568. @return The string
  20569. @throws IOException]]>
  20570. </doc>
  20571. </method>
  20572. <method name="lowerBound" return="int"
  20573. abstract="false" native="false" synchronized="false"
  20574. static="true" final="false" visibility="public"
  20575. deprecated="not deprecated">
  20576. <param name="list" type="java.util.List"/>
  20577. <param name="key" type="java.lang.Object"/>
  20578. <param name="cmp" type="java.util.Comparator"/>
  20579. <doc>
  20580. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20581. that compares greater than or equal to key.
  20582. @param <T>
  20583. Type of the input key.
  20584. @param list
  20585. The list
  20586. @param key
  20587. The input key.
  20588. @param cmp
  20589. Comparator for the key.
  20590. @return The index to the desired element if it exists; or list.size()
  20591. otherwise.]]>
  20592. </doc>
  20593. </method>
  20594. <method name="upperBound" return="int"
  20595. abstract="false" native="false" synchronized="false"
  20596. static="true" final="false" visibility="public"
  20597. deprecated="not deprecated">
  20598. <param name="list" type="java.util.List"/>
  20599. <param name="key" type="java.lang.Object"/>
  20600. <param name="cmp" type="java.util.Comparator"/>
  20601. <doc>
  20602. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20603. that compares greater than the input key.
  20604. @param <T>
  20605. Type of the input key.
  20606. @param list
  20607. The list
  20608. @param key
  20609. The input key.
  20610. @param cmp
  20611. Comparator for the key.
  20612. @return The index to the desired element if it exists; or list.size()
  20613. otherwise.]]>
  20614. </doc>
  20615. </method>
  20616. <method name="lowerBound" return="int"
  20617. abstract="false" native="false" synchronized="false"
  20618. static="true" final="false" visibility="public"
  20619. deprecated="not deprecated">
  20620. <param name="list" type="java.util.List"/>
  20621. <param name="key" type="java.lang.Object"/>
  20622. <doc>
  20623. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20624. that compares greater than or equal to key.
  20625. @param <T>
  20626. Type of the input key.
  20627. @param list
  20628. The list
  20629. @param key
  20630. The input key.
  20631. @return The index to the desired element if it exists; or list.size()
  20632. otherwise.]]>
  20633. </doc>
  20634. </method>
  20635. <method name="upperBound" return="int"
  20636. abstract="false" native="false" synchronized="false"
  20637. static="true" final="false" visibility="public"
  20638. deprecated="not deprecated">
  20639. <param name="list" type="java.util.List"/>
  20640. <param name="key" type="java.lang.Object"/>
  20641. <doc>
  20642. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20643. that compares greater than the input key.
  20644. @param <T>
  20645. Type of the input key.
  20646. @param list
  20647. The list
  20648. @param key
  20649. The input key.
  20650. @return The index to the desired element if it exists; or list.size()
  20651. otherwise.]]>
  20652. </doc>
  20653. </method>
  20654. <doc>
  20655. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  20656. </doc>
  20657. </class>
  20658. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  20659. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  20660. <class name="Utils.Version" extends="java.lang.Object"
  20661. abstract="false"
  20662. static="true" final="true" visibility="public"
  20663. deprecated="not deprecated">
  20664. <implements name="java.lang.Comparable"/>
  20665. <constructor name="Utils.Version" type="java.io.DataInput"
  20666. static="false" final="false" visibility="public"
  20667. deprecated="not deprecated">
  20668. <exception name="IOException" type="java.io.IOException"/>
  20669. <doc>
  20670. <![CDATA[Construct the Version object by reading from the input stream.
  20671. @param in
  20672. input stream
  20673. @throws IOException]]>
  20674. </doc>
  20675. </constructor>
  20676. <constructor name="Utils.Version" type="short, short"
  20677. static="false" final="false" visibility="public"
  20678. deprecated="not deprecated">
  20679. <doc>
  20680. <![CDATA[Constructor.
  20681. @param major
  20682. major version.
  20683. @param minor
  20684. minor version.]]>
  20685. </doc>
  20686. </constructor>
  20687. <method name="write"
  20688. abstract="false" native="false" synchronized="false"
  20689. static="false" final="false" visibility="public"
  20690. deprecated="not deprecated">
  20691. <param name="out" type="java.io.DataOutput"/>
  20692. <exception name="IOException" type="java.io.IOException"/>
  20693. <doc>
  20694. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  20695. major version followed by minor version, both as big-endian short
  20696. integers.
  20697. @param out
  20698. The DataOutput object.
  20699. @throws IOException]]>
  20700. </doc>
  20701. </method>
  20702. <method name="getMajor" return="int"
  20703. abstract="false" native="false" synchronized="false"
  20704. static="false" final="false" visibility="public"
  20705. deprecated="not deprecated">
  20706. <doc>
  20707. <![CDATA[Get the major version.
  20708. @return Major version.]]>
  20709. </doc>
  20710. </method>
  20711. <method name="getMinor" return="int"
  20712. abstract="false" native="false" synchronized="false"
  20713. static="false" final="false" visibility="public"
  20714. deprecated="not deprecated">
  20715. <doc>
  20716. <![CDATA[Get the minor version.
  20717. @return The minor version.]]>
  20718. </doc>
  20719. </method>
  20720. <method name="size" return="int"
  20721. abstract="false" native="false" synchronized="false"
  20722. static="true" final="false" visibility="public"
  20723. deprecated="not deprecated">
  20724. <doc>
  20725. <![CDATA[Get the size of the serialized Version object.
  20726. @return serialized size of the version object.]]>
  20727. </doc>
  20728. </method>
  20729. <method name="toString" return="java.lang.String"
  20730. abstract="false" native="false" synchronized="false"
  20731. static="false" final="false" visibility="public"
  20732. deprecated="not deprecated">
  20733. <doc>
  20734. <![CDATA[Return a string representation of the version.]]>
  20735. </doc>
  20736. </method>
  20737. <method name="compatibleWith" return="boolean"
  20738. abstract="false" native="false" synchronized="false"
  20739. static="false" final="false" visibility="public"
  20740. deprecated="not deprecated">
  20741. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20742. <doc>
  20743. <![CDATA[Test compatibility.
  20744. @param other
  20745. The Version object to test compatibility with.
  20746. @return true if both versions have the same major version number; false
  20747. otherwise.]]>
  20748. </doc>
  20749. </method>
  20750. <method name="compareTo" return="int"
  20751. abstract="false" native="false" synchronized="false"
  20752. static="false" final="false" visibility="public"
  20753. deprecated="not deprecated">
  20754. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20755. <doc>
  20756. <![CDATA[Compare this version with another version.]]>
  20757. </doc>
  20758. </method>
  20759. <method name="equals" return="boolean"
  20760. abstract="false" native="false" synchronized="false"
  20761. static="false" final="false" visibility="public"
  20762. deprecated="not deprecated">
  20763. <param name="other" type="java.lang.Object"/>
  20764. </method>
  20765. <method name="hashCode" return="int"
  20766. abstract="false" native="false" synchronized="false"
  20767. static="false" final="false" visibility="public"
  20768. deprecated="not deprecated">
  20769. </method>
  20770. <doc>
  20771. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  20772. this class to maintain version information in their meta blocks.
  20773. A version number consists of a major version and a minor version. The
  20774. suggested usage of major and minor version number is to increment major
  20775. version number when the new storage format is not backward compatible, and
  20776. increment the minor version otherwise.]]>
  20777. </doc>
  20778. </class>
  20779. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  20780. </package>
  20781. <package name="org.apache.hadoop.io.nativeio">
  20782. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  20783. <class name="Errno" extends="java.lang.Enum"
  20784. abstract="false"
  20785. static="false" final="true" visibility="public"
  20786. deprecated="not deprecated">
  20787. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  20788. abstract="false" native="false" synchronized="false"
  20789. static="true" final="false" visibility="public"
  20790. deprecated="not deprecated">
  20791. </method>
  20792. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  20793. abstract="false" native="false" synchronized="false"
  20794. static="true" final="false" visibility="public"
  20795. deprecated="not deprecated">
  20796. <param name="name" type="java.lang.String"/>
  20797. </method>
  20798. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  20799. transient="false" volatile="false"
  20800. static="true" final="true" visibility="public"
  20801. deprecated="not deprecated">
  20802. </field>
  20803. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  20804. transient="false" volatile="false"
  20805. static="true" final="true" visibility="public"
  20806. deprecated="not deprecated">
  20807. </field>
  20808. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  20809. transient="false" volatile="false"
  20810. static="true" final="true" visibility="public"
  20811. deprecated="not deprecated">
  20812. </field>
  20813. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  20814. transient="false" volatile="false"
  20815. static="true" final="true" visibility="public"
  20816. deprecated="not deprecated">
  20817. </field>
  20818. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  20819. transient="false" volatile="false"
  20820. static="true" final="true" visibility="public"
  20821. deprecated="not deprecated">
  20822. </field>
  20823. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  20824. transient="false" volatile="false"
  20825. static="true" final="true" visibility="public"
  20826. deprecated="not deprecated">
  20827. </field>
  20828. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  20829. transient="false" volatile="false"
  20830. static="true" final="true" visibility="public"
  20831. deprecated="not deprecated">
  20832. </field>
  20833. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  20834. transient="false" volatile="false"
  20835. static="true" final="true" visibility="public"
  20836. deprecated="not deprecated">
  20837. </field>
  20838. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  20839. transient="false" volatile="false"
  20840. static="true" final="true" visibility="public"
  20841. deprecated="not deprecated">
  20842. </field>
  20843. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  20844. transient="false" volatile="false"
  20845. static="true" final="true" visibility="public"
  20846. deprecated="not deprecated">
  20847. </field>
  20848. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  20849. transient="false" volatile="false"
  20850. static="true" final="true" visibility="public"
  20851. deprecated="not deprecated">
  20852. </field>
  20853. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  20854. transient="false" volatile="false"
  20855. static="true" final="true" visibility="public"
  20856. deprecated="not deprecated">
  20857. </field>
  20858. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  20859. transient="false" volatile="false"
  20860. static="true" final="true" visibility="public"
  20861. deprecated="not deprecated">
  20862. </field>
  20863. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  20864. transient="false" volatile="false"
  20865. static="true" final="true" visibility="public"
  20866. deprecated="not deprecated">
  20867. </field>
  20868. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  20869. transient="false" volatile="false"
  20870. static="true" final="true" visibility="public"
  20871. deprecated="not deprecated">
  20872. </field>
  20873. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  20874. transient="false" volatile="false"
  20875. static="true" final="true" visibility="public"
  20876. deprecated="not deprecated">
  20877. </field>
  20878. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  20879. transient="false" volatile="false"
  20880. static="true" final="true" visibility="public"
  20881. deprecated="not deprecated">
  20882. </field>
  20883. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  20884. transient="false" volatile="false"
  20885. static="true" final="true" visibility="public"
  20886. deprecated="not deprecated">
  20887. </field>
  20888. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  20889. transient="false" volatile="false"
  20890. static="true" final="true" visibility="public"
  20891. deprecated="not deprecated">
  20892. </field>
  20893. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20894. transient="false" volatile="false"
  20895. static="true" final="true" visibility="public"
  20896. deprecated="not deprecated">
  20897. </field>
  20898. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20899. transient="false" volatile="false"
  20900. static="true" final="true" visibility="public"
  20901. deprecated="not deprecated">
  20902. </field>
  20903. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  20904. transient="false" volatile="false"
  20905. static="true" final="true" visibility="public"
  20906. deprecated="not deprecated">
  20907. </field>
  20908. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20909. transient="false" volatile="false"
  20910. static="true" final="true" visibility="public"
  20911. deprecated="not deprecated">
  20912. </field>
  20913. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20914. transient="false" volatile="false"
  20915. static="true" final="true" visibility="public"
  20916. deprecated="not deprecated">
  20917. </field>
  20918. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  20919. transient="false" volatile="false"
  20920. static="true" final="true" visibility="public"
  20921. deprecated="not deprecated">
  20922. </field>
  20923. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  20924. transient="false" volatile="false"
  20925. static="true" final="true" visibility="public"
  20926. deprecated="not deprecated">
  20927. </field>
  20928. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  20929. transient="false" volatile="false"
  20930. static="true" final="true" visibility="public"
  20931. deprecated="not deprecated">
  20932. </field>
  20933. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  20934. transient="false" volatile="false"
  20935. static="true" final="true" visibility="public"
  20936. deprecated="not deprecated">
  20937. </field>
  20938. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20939. transient="false" volatile="false"
  20940. static="true" final="true" visibility="public"
  20941. deprecated="not deprecated">
  20942. </field>
  20943. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  20944. transient="false" volatile="false"
  20945. static="true" final="true" visibility="public"
  20946. deprecated="not deprecated">
  20947. </field>
  20948. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  20949. transient="false" volatile="false"
  20950. static="true" final="true" visibility="public"
  20951. deprecated="not deprecated">
  20952. </field>
  20953. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20954. transient="false" volatile="false"
  20955. static="true" final="true" visibility="public"
  20956. deprecated="not deprecated">
  20957. </field>
  20958. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  20959. transient="false" volatile="false"
  20960. static="true" final="true" visibility="public"
  20961. deprecated="not deprecated">
  20962. </field>
  20963. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  20964. transient="false" volatile="false"
  20965. static="true" final="true" visibility="public"
  20966. deprecated="not deprecated">
  20967. </field>
  20968. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  20969. transient="false" volatile="false"
  20970. static="true" final="true" visibility="public"
  20971. deprecated="not deprecated">
  20972. </field>
  20973. <doc>
  20974. <![CDATA[Enum representing POSIX errno values.]]>
  20975. </doc>
  20976. </class>
  20977. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  20978. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  20979. <class name="NativeIO" extends="java.lang.Object"
  20980. abstract="false"
  20981. static="false" final="false" visibility="public"
  20982. deprecated="not deprecated">
  20983. <constructor name="NativeIO"
  20984. static="false" final="false" visibility="public"
  20985. deprecated="not deprecated">
  20986. </constructor>
  20987. <method name="isAvailable" return="boolean"
  20988. abstract="false" native="false" synchronized="false"
  20989. static="true" final="false" visibility="public"
  20990. deprecated="not deprecated">
  20991. <doc>
  20992. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  20993. </doc>
  20994. </method>
  20995. <method name="open" return="java.io.FileDescriptor"
  20996. abstract="false" native="true" synchronized="false"
  20997. static="true" final="false" visibility="public"
  20998. deprecated="not deprecated">
  20999. <param name="path" type="java.lang.String"/>
  21000. <param name="flags" type="int"/>
  21001. <param name="mode" type="int"/>
  21002. <exception name="IOException" type="java.io.IOException"/>
  21003. <doc>
  21004. <![CDATA[Wrapper around open(2)]]>
  21005. </doc>
  21006. </method>
  21007. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  21008. abstract="false" native="true" synchronized="false"
  21009. static="true" final="false" visibility="public"
  21010. deprecated="not deprecated">
  21011. <param name="fd" type="java.io.FileDescriptor"/>
  21012. <exception name="IOException" type="java.io.IOException"/>
  21013. <doc>
  21014. <![CDATA[Wrapper around fstat(2)]]>
  21015. </doc>
  21016. </method>
  21017. <method name="chmod"
  21018. abstract="false" native="true" synchronized="false"
  21019. static="true" final="false" visibility="public"
  21020. deprecated="not deprecated">
  21021. <param name="path" type="java.lang.String"/>
  21022. <param name="mode" type="int"/>
  21023. <exception name="IOException" type="java.io.IOException"/>
  21024. <doc>
  21025. <![CDATA[Wrapper around chmod(2)]]>
  21026. </doc>
  21027. </method>
  21028. <method name="getOwner" return="java.lang.String"
  21029. abstract="false" native="false" synchronized="false"
  21030. static="true" final="false" visibility="public"
  21031. deprecated="not deprecated">
  21032. <param name="fd" type="java.io.FileDescriptor"/>
  21033. <exception name="IOException" type="java.io.IOException"/>
  21034. </method>
  21035. <field name="O_RDONLY" type="int"
  21036. transient="false" volatile="false"
  21037. static="true" final="true" visibility="public"
  21038. deprecated="not deprecated">
  21039. </field>
  21040. <field name="O_WRONLY" type="int"
  21041. transient="false" volatile="false"
  21042. static="true" final="true" visibility="public"
  21043. deprecated="not deprecated">
  21044. </field>
  21045. <field name="O_RDWR" type="int"
  21046. transient="false" volatile="false"
  21047. static="true" final="true" visibility="public"
  21048. deprecated="not deprecated">
  21049. </field>
  21050. <field name="O_CREAT" type="int"
  21051. transient="false" volatile="false"
  21052. static="true" final="true" visibility="public"
  21053. deprecated="not deprecated">
  21054. </field>
  21055. <field name="O_EXCL" type="int"
  21056. transient="false" volatile="false"
  21057. static="true" final="true" visibility="public"
  21058. deprecated="not deprecated">
  21059. </field>
  21060. <field name="O_NOCTTY" type="int"
  21061. transient="false" volatile="false"
  21062. static="true" final="true" visibility="public"
  21063. deprecated="not deprecated">
  21064. </field>
  21065. <field name="O_TRUNC" type="int"
  21066. transient="false" volatile="false"
  21067. static="true" final="true" visibility="public"
  21068. deprecated="not deprecated">
  21069. </field>
  21070. <field name="O_APPEND" type="int"
  21071. transient="false" volatile="false"
  21072. static="true" final="true" visibility="public"
  21073. deprecated="not deprecated">
  21074. </field>
  21075. <field name="O_NONBLOCK" type="int"
  21076. transient="false" volatile="false"
  21077. static="true" final="true" visibility="public"
  21078. deprecated="not deprecated">
  21079. </field>
  21080. <field name="O_SYNC" type="int"
  21081. transient="false" volatile="false"
  21082. static="true" final="true" visibility="public"
  21083. deprecated="not deprecated">
  21084. </field>
  21085. <field name="O_ASYNC" type="int"
  21086. transient="false" volatile="false"
  21087. static="true" final="true" visibility="public"
  21088. deprecated="not deprecated">
  21089. </field>
  21090. <field name="O_FSYNC" type="int"
  21091. transient="false" volatile="false"
  21092. static="true" final="true" visibility="public"
  21093. deprecated="not deprecated">
  21094. </field>
  21095. <field name="O_NDELAY" type="int"
  21096. transient="false" volatile="false"
  21097. static="true" final="true" visibility="public"
  21098. deprecated="not deprecated">
  21099. </field>
  21100. <doc>
  21101. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  21102. These functions should generally be used alongside a fallback to another
  21103. more portable mechanism.]]>
  21104. </doc>
  21105. </class>
  21106. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  21107. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21108. <class name="NativeIO.Stat" extends="java.lang.Object"
  21109. abstract="false"
  21110. static="true" final="false" visibility="public"
  21111. deprecated="not deprecated">
  21112. <method name="toString" return="java.lang.String"
  21113. abstract="false" native="false" synchronized="false"
  21114. static="false" final="false" visibility="public"
  21115. deprecated="not deprecated">
  21116. </method>
  21117. <method name="getOwner" return="java.lang.String"
  21118. abstract="false" native="false" synchronized="false"
  21119. static="false" final="false" visibility="public"
  21120. deprecated="not deprecated">
  21121. </method>
  21122. <method name="getMode" return="int"
  21123. abstract="false" native="false" synchronized="false"
  21124. static="false" final="false" visibility="public"
  21125. deprecated="not deprecated">
  21126. </method>
  21127. <field name="S_IFMT" type="int"
  21128. transient="false" volatile="false"
  21129. static="true" final="true" visibility="public"
  21130. deprecated="not deprecated">
  21131. </field>
  21132. <field name="S_IFIFO" type="int"
  21133. transient="false" volatile="false"
  21134. static="true" final="true" visibility="public"
  21135. deprecated="not deprecated">
  21136. </field>
  21137. <field name="S_IFCHR" type="int"
  21138. transient="false" volatile="false"
  21139. static="true" final="true" visibility="public"
  21140. deprecated="not deprecated">
  21141. </field>
  21142. <field name="S_IFDIR" type="int"
  21143. transient="false" volatile="false"
  21144. static="true" final="true" visibility="public"
  21145. deprecated="not deprecated">
  21146. </field>
  21147. <field name="S_IFBLK" type="int"
  21148. transient="false" volatile="false"
  21149. static="true" final="true" visibility="public"
  21150. deprecated="not deprecated">
  21151. </field>
  21152. <field name="S_IFREG" type="int"
  21153. transient="false" volatile="false"
  21154. static="true" final="true" visibility="public"
  21155. deprecated="not deprecated">
  21156. </field>
  21157. <field name="S_IFLNK" type="int"
  21158. transient="false" volatile="false"
  21159. static="true" final="true" visibility="public"
  21160. deprecated="not deprecated">
  21161. </field>
  21162. <field name="S_IFSOCK" type="int"
  21163. transient="false" volatile="false"
  21164. static="true" final="true" visibility="public"
  21165. deprecated="not deprecated">
  21166. </field>
  21167. <field name="S_IFWHT" type="int"
  21168. transient="false" volatile="false"
  21169. static="true" final="true" visibility="public"
  21170. deprecated="not deprecated">
  21171. </field>
  21172. <field name="S_ISUID" type="int"
  21173. transient="false" volatile="false"
  21174. static="true" final="true" visibility="public"
  21175. deprecated="not deprecated">
  21176. </field>
  21177. <field name="S_ISGID" type="int"
  21178. transient="false" volatile="false"
  21179. static="true" final="true" visibility="public"
  21180. deprecated="not deprecated">
  21181. </field>
  21182. <field name="S_ISVTX" type="int"
  21183. transient="false" volatile="false"
  21184. static="true" final="true" visibility="public"
  21185. deprecated="not deprecated">
  21186. </field>
  21187. <field name="S_IRUSR" type="int"
  21188. transient="false" volatile="false"
  21189. static="true" final="true" visibility="public"
  21190. deprecated="not deprecated">
  21191. </field>
  21192. <field name="S_IWUSR" type="int"
  21193. transient="false" volatile="false"
  21194. static="true" final="true" visibility="public"
  21195. deprecated="not deprecated">
  21196. </field>
  21197. <field name="S_IXUSR" type="int"
  21198. transient="false" volatile="false"
  21199. static="true" final="true" visibility="public"
  21200. deprecated="not deprecated">
  21201. </field>
  21202. <doc>
  21203. <![CDATA[Result type of the fstat call]]>
  21204. </doc>
  21205. </class>
  21206. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21207. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  21208. <class name="NativeIOException" extends="java.io.IOException"
  21209. abstract="false"
  21210. static="false" final="false" visibility="public"
  21211. deprecated="not deprecated">
  21212. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  21213. static="false" final="false" visibility="public"
  21214. deprecated="not deprecated">
  21215. </constructor>
  21216. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  21217. abstract="false" native="false" synchronized="false"
  21218. static="false" final="false" visibility="public"
  21219. deprecated="not deprecated">
  21220. </method>
  21221. <method name="toString" return="java.lang.String"
  21222. abstract="false" native="false" synchronized="false"
  21223. static="false" final="false" visibility="public"
  21224. deprecated="not deprecated">
  21225. </method>
  21226. <doc>
  21227. <![CDATA[An exception generated by a call to the native IO code.
  21228. These exceptions simply wrap <i>errno</i> result codes.]]>
  21229. </doc>
  21230. </class>
  21231. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  21232. </package>
  21233. <package name="org.apache.hadoop.io.retry">
  21234. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  21235. <class name="RetryPolicies" extends="java.lang.Object"
  21236. abstract="false"
  21237. static="false" final="false" visibility="public"
  21238. deprecated="not deprecated">
  21239. <constructor name="RetryPolicies"
  21240. static="false" final="false" visibility="public"
  21241. deprecated="not deprecated">
  21242. </constructor>
  21243. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21244. abstract="false" native="false" synchronized="false"
  21245. static="true" final="true" visibility="public"
  21246. deprecated="not deprecated">
  21247. <param name="maxRetries" type="int"/>
  21248. <param name="sleepTime" type="long"/>
  21249. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21250. <doc>
  21251. <![CDATA[<p>
  21252. Keep trying a limited number of times, waiting a fixed time between attempts,
  21253. and then fail by re-throwing the exception.
  21254. </p>]]>
  21255. </doc>
  21256. </method>
  21257. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21258. abstract="false" native="false" synchronized="false"
  21259. static="true" final="true" visibility="public"
  21260. deprecated="not deprecated">
  21261. <param name="maxTime" type="long"/>
  21262. <param name="sleepTime" type="long"/>
  21263. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21264. <doc>
  21265. <![CDATA[<p>
  21266. Keep trying for a maximum time, waiting a fixed time between attempts,
  21267. and then fail by re-throwing the exception.
  21268. </p>]]>
  21269. </doc>
  21270. </method>
  21271. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21272. abstract="false" native="false" synchronized="false"
  21273. static="true" final="true" visibility="public"
  21274. deprecated="not deprecated">
  21275. <param name="maxRetries" type="int"/>
  21276. <param name="sleepTime" type="long"/>
  21277. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21278. <doc>
  21279. <![CDATA[<p>
  21280. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21281. and then fail by re-throwing the exception.
  21282. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  21283. </p>]]>
  21284. </doc>
  21285. </method>
  21286. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  21287. abstract="false" native="false" synchronized="false"
  21288. static="true" final="true" visibility="public"
  21289. deprecated="not deprecated">
  21290. <param name="maxRetries" type="int"/>
  21291. <param name="sleepTime" type="long"/>
  21292. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21293. <doc>
  21294. <![CDATA[<p>
  21295. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21296. and then fail by re-throwing the exception.
  21297. The time between attempts is <code>sleepTime</code> mutliplied by a random
  21298. number in the range of [0, 2 to the number of retries)
  21299. </p>]]>
  21300. </doc>
  21301. </method>
  21302. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21303. abstract="false" native="false" synchronized="false"
  21304. static="true" final="true" visibility="public"
  21305. deprecated="not deprecated">
  21306. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21307. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  21308. <doc>
  21309. <![CDATA[<p>
  21310. Set a default policy with some explicit handlers for specific exceptions.
  21311. </p>]]>
  21312. </doc>
  21313. </method>
  21314. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21315. abstract="false" native="false" synchronized="false"
  21316. static="true" final="true" visibility="public"
  21317. deprecated="not deprecated">
  21318. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21319. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  21320. <doc>
  21321. <![CDATA[<p>
  21322. A retry policy for RemoteException
  21323. Set a default policy with some explicit handlers for specific exceptions.
  21324. </p>]]>
  21325. </doc>
  21326. </method>
  21327. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21328. transient="false" volatile="false"
  21329. static="true" final="true" visibility="public"
  21330. deprecated="not deprecated">
  21331. <doc>
  21332. <![CDATA[<p>
  21333. Try once, and fail by re-throwing the exception.
  21334. This corresponds to having no retry mechanism in place.
  21335. </p>]]>
  21336. </doc>
  21337. </field>
  21338. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21339. transient="false" volatile="false"
  21340. static="true" final="true" visibility="public"
  21341. deprecated="not deprecated">
  21342. <doc>
  21343. <![CDATA[<p>
  21344. Try once, and fail silently for <code>void</code> methods, or by
  21345. re-throwing the exception for non-<code>void</code> methods.
  21346. </p>]]>
  21347. </doc>
  21348. </field>
  21349. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  21350. transient="false" volatile="false"
  21351. static="true" final="true" visibility="public"
  21352. deprecated="not deprecated">
  21353. <doc>
  21354. <![CDATA[<p>
  21355. Keep trying forever.
  21356. </p>]]>
  21357. </doc>
  21358. </field>
  21359. <doc>
  21360. <![CDATA[<p>
  21361. A collection of useful implementations of {@link RetryPolicy}.
  21362. </p>]]>
  21363. </doc>
  21364. </class>
  21365. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  21366. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  21367. <interface name="RetryPolicy" abstract="true"
  21368. static="false" final="false" visibility="public"
  21369. deprecated="not deprecated">
  21370. <method name="shouldRetry" return="boolean"
  21371. abstract="false" native="false" synchronized="false"
  21372. static="false" final="false" visibility="public"
  21373. deprecated="not deprecated">
  21374. <param name="e" type="java.lang.Exception"/>
  21375. <param name="retries" type="int"/>
  21376. <exception name="Exception" type="java.lang.Exception"/>
  21377. <doc>
  21378. <![CDATA[<p>
  21379. Determines whether the framework should retry a
  21380. method for the given exception, and the number
  21381. of retries that have been made for that operation
  21382. so far.
  21383. </p>
  21384. @param e The exception that caused the method to fail.
  21385. @param retries The number of times the method has been retried.
  21386. @return <code>true</code> if the method should be retried,
  21387. <code>false</code> if the method should not be retried
  21388. but shouldn't fail with an exception (only for void methods).
  21389. @throws Exception The re-thrown exception <code>e</code> indicating
  21390. that the method failed and should not be retried further.]]>
  21391. </doc>
  21392. </method>
  21393. <doc>
  21394. <![CDATA[<p>
  21395. Specifies a policy for retrying method failures.
  21396. Implementations of this interface should be immutable.
  21397. </p>]]>
  21398. </doc>
  21399. </interface>
  21400. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  21401. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  21402. <class name="RetryProxy" extends="java.lang.Object"
  21403. abstract="false"
  21404. static="false" final="false" visibility="public"
  21405. deprecated="not deprecated">
  21406. <constructor name="RetryProxy"
  21407. static="false" final="false" visibility="public"
  21408. deprecated="not deprecated">
  21409. </constructor>
  21410. <method name="create" return="java.lang.Object"
  21411. abstract="false" native="false" synchronized="false"
  21412. static="true" final="false" visibility="public"
  21413. deprecated="not deprecated">
  21414. <param name="iface" type="java.lang.Class"/>
  21415. <param name="implementation" type="java.lang.Object"/>
  21416. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21417. <doc>
  21418. <![CDATA[<p>
  21419. Create a proxy for an interface of an implementation class
  21420. using the same retry policy for each method in the interface.
  21421. </p>
  21422. @param iface the interface that the retry will implement
  21423. @param implementation the instance whose methods should be retried
  21424. @param retryPolicy the policy for retirying method call failures
  21425. @return the retry proxy]]>
  21426. </doc>
  21427. </method>
  21428. <method name="create" return="java.lang.Object"
  21429. abstract="false" native="false" synchronized="false"
  21430. static="true" final="false" visibility="public"
  21431. deprecated="not deprecated">
  21432. <param name="iface" type="java.lang.Class"/>
  21433. <param name="implementation" type="java.lang.Object"/>
  21434. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  21435. <doc>
  21436. <![CDATA[<p>
  21437. Create a proxy for an interface of an implementation class
  21438. using the a set of retry policies specified by method name.
  21439. If no retry policy is defined for a method then a default of
  21440. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  21441. </p>
  21442. @param iface the interface that the retry will implement
  21443. @param implementation the instance whose methods should be retried
  21444. @param methodNameToPolicyMap a map of method names to retry policies
  21445. @return the retry proxy]]>
  21446. </doc>
  21447. </method>
  21448. <doc>
  21449. <![CDATA[<p>
  21450. A factory for creating retry proxies.
  21451. </p>]]>
  21452. </doc>
  21453. </class>
  21454. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  21455. </package>
  21456. <package name="org.apache.hadoop.io.serializer">
  21457. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  21458. <interface name="Deserializer" abstract="true"
  21459. static="false" final="false" visibility="public"
  21460. deprecated="not deprecated">
  21461. <method name="open"
  21462. abstract="false" native="false" synchronized="false"
  21463. static="false" final="false" visibility="public"
  21464. deprecated="not deprecated">
  21465. <param name="in" type="java.io.InputStream"/>
  21466. <exception name="IOException" type="java.io.IOException"/>
  21467. <doc>
  21468. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  21469. </doc>
  21470. </method>
  21471. <method name="deserialize" return="java.lang.Object"
  21472. abstract="false" native="false" synchronized="false"
  21473. static="false" final="false" visibility="public"
  21474. deprecated="not deprecated">
  21475. <param name="t" type="java.lang.Object"/>
  21476. <exception name="IOException" type="java.io.IOException"/>
  21477. <doc>
  21478. <![CDATA[<p>
  21479. Deserialize the next object from the underlying input stream.
  21480. If the object <code>t</code> is non-null then this deserializer
  21481. <i>may</i> set its internal state to the next object read from the input
  21482. stream. Otherwise, if the object <code>t</code> is null a new
  21483. deserialized object will be created.
  21484. </p>
  21485. @return the deserialized object]]>
  21486. </doc>
  21487. </method>
  21488. <method name="close"
  21489. abstract="false" native="false" synchronized="false"
  21490. static="false" final="false" visibility="public"
  21491. deprecated="not deprecated">
  21492. <exception name="IOException" type="java.io.IOException"/>
  21493. <doc>
  21494. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  21495. </doc>
  21496. </method>
  21497. <doc>
  21498. <![CDATA[<p>
  21499. Provides a facility for deserializing objects of type <T> from an
  21500. {@link InputStream}.
  21501. </p>
  21502. <p>
  21503. Deserializers are stateful, but must not buffer the input since
  21504. other producers may read from the input between calls to
  21505. {@link #deserialize(Object)}.
  21506. </p>
  21507. @param <T>]]>
  21508. </doc>
  21509. </interface>
  21510. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  21511. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  21512. <class name="DeserializerComparator" extends="java.lang.Object"
  21513. abstract="true"
  21514. static="false" final="false" visibility="public"
  21515. deprecated="not deprecated">
  21516. <implements name="org.apache.hadoop.io.RawComparator"/>
  21517. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  21518. static="false" final="false" visibility="protected"
  21519. deprecated="not deprecated">
  21520. <exception name="IOException" type="java.io.IOException"/>
  21521. </constructor>
  21522. <method name="compare" return="int"
  21523. abstract="false" native="false" synchronized="false"
  21524. static="false" final="false" visibility="public"
  21525. deprecated="not deprecated">
  21526. <param name="b1" type="byte[]"/>
  21527. <param name="s1" type="int"/>
  21528. <param name="l1" type="int"/>
  21529. <param name="b2" type="byte[]"/>
  21530. <param name="s2" type="int"/>
  21531. <param name="l2" type="int"/>
  21532. </method>
  21533. <doc>
  21534. <![CDATA[<p>
  21535. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  21536. the objects to be compared so that the standard {@link Comparator} can
  21537. be used to compare them.
  21538. </p>
  21539. <p>
  21540. One may optimize compare-intensive operations by using a custom
  21541. implementation of {@link RawComparator} that operates directly
  21542. on byte representations.
  21543. </p>
  21544. @param <T>]]>
  21545. </doc>
  21546. </class>
  21547. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  21548. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  21549. <class name="JavaSerialization" extends="java.lang.Object"
  21550. abstract="false"
  21551. static="false" final="false" visibility="public"
  21552. deprecated="not deprecated">
  21553. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  21554. <constructor name="JavaSerialization"
  21555. static="false" final="false" visibility="public"
  21556. deprecated="not deprecated">
  21557. </constructor>
  21558. <method name="accept" return="boolean"
  21559. abstract="false" native="false" synchronized="false"
  21560. static="false" final="false" visibility="public"
  21561. deprecated="not deprecated">
  21562. <param name="c" type="java.lang.Class"/>
  21563. </method>
  21564. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21565. abstract="false" native="false" synchronized="false"
  21566. static="false" final="false" visibility="public"
  21567. deprecated="not deprecated">
  21568. <param name="c" type="java.lang.Class"/>
  21569. </method>
  21570. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21571. abstract="false" native="false" synchronized="false"
  21572. static="false" final="false" visibility="public"
  21573. deprecated="not deprecated">
  21574. <param name="c" type="java.lang.Class"/>
  21575. </method>
  21576. <doc>
  21577. <![CDATA[<p>
  21578. An experimental {@link Serialization} for Java {@link Serializable} classes.
  21579. </p>
  21580. @see JavaSerializationComparator]]>
  21581. </doc>
  21582. </class>
  21583. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  21584. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21585. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  21586. abstract="false"
  21587. static="false" final="false" visibility="public"
  21588. deprecated="not deprecated">
  21589. <constructor name="JavaSerializationComparator"
  21590. static="false" final="false" visibility="public"
  21591. deprecated="not deprecated">
  21592. <exception name="IOException" type="java.io.IOException"/>
  21593. </constructor>
  21594. <method name="compare" return="int"
  21595. abstract="false" native="false" synchronized="false"
  21596. static="false" final="false" visibility="public"
  21597. deprecated="not deprecated">
  21598. <param name="o1" type="java.io.Serializable"/>
  21599. <param name="o2" type="java.io.Serializable"/>
  21600. </method>
  21601. <doc>
  21602. <![CDATA[<p>
  21603. A {@link RawComparator} that uses a {@link JavaSerialization}
  21604. {@link Deserializer} to deserialize objects that are then compared via
  21605. their {@link Comparable} interfaces.
  21606. </p>
  21607. @param <T>
  21608. @see JavaSerialization]]>
  21609. </doc>
  21610. </class>
  21611. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21612. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  21613. <interface name="Serialization" abstract="true"
  21614. static="false" final="false" visibility="public"
  21615. deprecated="not deprecated">
  21616. <method name="accept" return="boolean"
  21617. abstract="false" native="false" synchronized="false"
  21618. static="false" final="false" visibility="public"
  21619. deprecated="not deprecated">
  21620. <param name="c" type="java.lang.Class"/>
  21621. <doc>
  21622. <![CDATA[Allows clients to test whether this {@link Serialization}
  21623. supports the given class.]]>
  21624. </doc>
  21625. </method>
  21626. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21627. abstract="false" native="false" synchronized="false"
  21628. static="false" final="false" visibility="public"
  21629. deprecated="not deprecated">
  21630. <param name="c" type="java.lang.Class"/>
  21631. <doc>
  21632. <![CDATA[@return a {@link Serializer} for the given class.]]>
  21633. </doc>
  21634. </method>
  21635. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21636. abstract="false" native="false" synchronized="false"
  21637. static="false" final="false" visibility="public"
  21638. deprecated="not deprecated">
  21639. <param name="c" type="java.lang.Class"/>
  21640. <doc>
  21641. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  21642. </doc>
  21643. </method>
  21644. <doc>
  21645. <![CDATA[<p>
  21646. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  21647. </p>
  21648. @param <T>]]>
  21649. </doc>
  21650. </interface>
  21651. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  21652. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  21653. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  21654. abstract="false"
  21655. static="false" final="false" visibility="public"
  21656. deprecated="not deprecated">
  21657. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  21658. static="false" final="false" visibility="public"
  21659. deprecated="not deprecated">
  21660. <doc>
  21661. <![CDATA[<p>
  21662. Serializations are found by reading the <code>io.serializations</code>
  21663. property from <code>conf</code>, which is a comma-delimited list of
  21664. classnames.
  21665. </p>]]>
  21666. </doc>
  21667. </constructor>
  21668. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21669. abstract="false" native="false" synchronized="false"
  21670. static="false" final="false" visibility="public"
  21671. deprecated="not deprecated">
  21672. <param name="c" type="java.lang.Class"/>
  21673. </method>
  21674. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21675. abstract="false" native="false" synchronized="false"
  21676. static="false" final="false" visibility="public"
  21677. deprecated="not deprecated">
  21678. <param name="c" type="java.lang.Class"/>
  21679. </method>
  21680. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  21681. abstract="false" native="false" synchronized="false"
  21682. static="false" final="false" visibility="public"
  21683. deprecated="not deprecated">
  21684. <param name="c" type="java.lang.Class"/>
  21685. </method>
  21686. <doc>
  21687. <![CDATA[<p>
  21688. A factory for {@link Serialization}s.
  21689. </p>]]>
  21690. </doc>
  21691. </class>
  21692. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  21693. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  21694. <interface name="Serializer" abstract="true"
  21695. static="false" final="false" visibility="public"
  21696. deprecated="not deprecated">
  21697. <method name="open"
  21698. abstract="false" native="false" synchronized="false"
  21699. static="false" final="false" visibility="public"
  21700. deprecated="not deprecated">
  21701. <param name="out" type="java.io.OutputStream"/>
  21702. <exception name="IOException" type="java.io.IOException"/>
  21703. <doc>
  21704. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  21705. </doc>
  21706. </method>
  21707. <method name="serialize"
  21708. abstract="false" native="false" synchronized="false"
  21709. static="false" final="false" visibility="public"
  21710. deprecated="not deprecated">
  21711. <param name="t" type="java.lang.Object"/>
  21712. <exception name="IOException" type="java.io.IOException"/>
  21713. <doc>
  21714. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  21715. </doc>
  21716. </method>
  21717. <method name="close"
  21718. abstract="false" native="false" synchronized="false"
  21719. static="false" final="false" visibility="public"
  21720. deprecated="not deprecated">
  21721. <exception name="IOException" type="java.io.IOException"/>
  21722. <doc>
  21723. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  21724. </doc>
  21725. </method>
  21726. <doc>
  21727. <![CDATA[<p>
  21728. Provides a facility for serializing objects of type <T> to an
  21729. {@link OutputStream}.
  21730. </p>
  21731. <p>
  21732. Serializers are stateful, but must not buffer the output since
  21733. other producers may write to the output between calls to
  21734. {@link #serialize(Object)}.
  21735. </p>
  21736. @param <T>]]>
  21737. </doc>
  21738. </interface>
  21739. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  21740. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  21741. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  21742. abstract="false"
  21743. static="false" final="false" visibility="public"
  21744. deprecated="not deprecated">
  21745. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  21746. <constructor name="WritableSerialization"
  21747. static="false" final="false" visibility="public"
  21748. deprecated="not deprecated">
  21749. </constructor>
  21750. <method name="accept" return="boolean"
  21751. abstract="false" native="false" synchronized="false"
  21752. static="false" final="false" visibility="public"
  21753. deprecated="not deprecated">
  21754. <param name="c" type="java.lang.Class"/>
  21755. </method>
  21756. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21757. abstract="false" native="false" synchronized="false"
  21758. static="false" final="false" visibility="public"
  21759. deprecated="not deprecated">
  21760. <param name="c" type="java.lang.Class"/>
  21761. </method>
  21762. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21763. abstract="false" native="false" synchronized="false"
  21764. static="false" final="false" visibility="public"
  21765. deprecated="not deprecated">
  21766. <param name="c" type="java.lang.Class"/>
  21767. </method>
  21768. <doc>
  21769. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  21770. {@link Writable#write(java.io.DataOutput)} and
  21771. {@link Writable#readFields(java.io.DataInput)}.]]>
  21772. </doc>
  21773. </class>
  21774. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  21775. </package>
  21776. <package name="org.apache.hadoop.ipc">
  21777. <!-- start class org.apache.hadoop.ipc.Client -->
  21778. <class name="Client" extends="java.lang.Object"
  21779. abstract="false"
  21780. static="false" final="false" visibility="public"
  21781. deprecated="not deprecated">
  21782. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  21783. static="false" final="false" visibility="public"
  21784. deprecated="not deprecated">
  21785. <doc>
  21786. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  21787. class.]]>
  21788. </doc>
  21789. </constructor>
  21790. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  21791. static="false" final="false" visibility="public"
  21792. deprecated="not deprecated">
  21793. <doc>
  21794. <![CDATA[Construct an IPC client with the default SocketFactory
  21795. @param valueClass
  21796. @param conf]]>
  21797. </doc>
  21798. </constructor>
  21799. <method name="setPingInterval"
  21800. abstract="false" native="false" synchronized="false"
  21801. static="true" final="true" visibility="public"
  21802. deprecated="not deprecated">
  21803. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21804. <param name="pingInterval" type="int"/>
  21805. <doc>
  21806. <![CDATA[set the ping interval value in configuration
  21807. @param conf Configuration
  21808. @param pingInterval the ping interval]]>
  21809. </doc>
  21810. </method>
  21811. <method name="stop"
  21812. abstract="false" native="false" synchronized="false"
  21813. static="false" final="false" visibility="public"
  21814. deprecated="not deprecated">
  21815. <doc>
  21816. <![CDATA[Stop all threads related to this client. No further calls may be made
  21817. using this client.]]>
  21818. </doc>
  21819. </method>
  21820. <method name="call" return="org.apache.hadoop.io.Writable"
  21821. abstract="false" native="false" synchronized="false"
  21822. static="false" final="false" visibility="public"
  21823. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21824. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21825. <param name="address" type="java.net.InetSocketAddress"/>
  21826. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21827. <exception name="IOException" type="java.io.IOException"/>
  21828. <doc>
  21829. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21830. <code>address</code>, returning the value. Throws exceptions if there are
  21831. network problems or if the remote code threw an exception.
  21832. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21833. </doc>
  21834. </method>
  21835. <method name="call" return="org.apache.hadoop.io.Writable"
  21836. abstract="false" native="false" synchronized="false"
  21837. static="false" final="false" visibility="public"
  21838. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21839. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21840. <param name="addr" type="java.net.InetSocketAddress"/>
  21841. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21842. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21843. <exception name="IOException" type="java.io.IOException"/>
  21844. <doc>
  21845. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21846. <code>address</code> with the <code>ticket</code> credentials, returning
  21847. the value.
  21848. Throws exceptions if there are network problems or if the remote code
  21849. threw an exception.
  21850. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21851. </doc>
  21852. </method>
  21853. <method name="call" return="org.apache.hadoop.io.Writable"
  21854. abstract="false" native="false" synchronized="false"
  21855. static="false" final="false" visibility="public"
  21856. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21857. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21858. <param name="addr" type="java.net.InetSocketAddress"/>
  21859. <param name="protocol" type="java.lang.Class"/>
  21860. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21861. <param name="rpcTimeout" type="int"/>
  21862. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21863. <exception name="IOException" type="java.io.IOException"/>
  21864. <doc>
  21865. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21866. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21867. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  21868. timeout, returning the value.
  21869. Throws exceptions if there are network problems or if the remote code
  21870. threw an exception.
  21871. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21872. </doc>
  21873. </method>
  21874. <method name="call" return="org.apache.hadoop.io.Writable"
  21875. abstract="false" native="false" synchronized="false"
  21876. static="false" final="false" visibility="public"
  21877. deprecated="not deprecated">
  21878. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21879. <param name="addr" type="java.net.InetSocketAddress"/>
  21880. <param name="protocol" type="java.lang.Class"/>
  21881. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21882. <param name="rpcTimeout" type="int"/>
  21883. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21884. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21885. <exception name="IOException" type="java.io.IOException"/>
  21886. <doc>
  21887. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21888. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21889. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  21890. and <code>conf</code> as configuration for this connection, returning the
  21891. value. Throws exceptions if there are network problems or if the remote code
  21892. threw an exception.]]>
  21893. </doc>
  21894. </method>
  21895. <method name="call" return="org.apache.hadoop.io.Writable"
  21896. abstract="false" native="false" synchronized="false"
  21897. static="false" final="false" visibility="public"
  21898. deprecated="not deprecated">
  21899. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21900. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  21901. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21902. <exception name="IOException" type="java.io.IOException"/>
  21903. <doc>
  21904. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  21905. <code>remoteId</code>, returning the value.
  21906. Throws exceptions if there are network problems or if the remote code
  21907. threw an exception.]]>
  21908. </doc>
  21909. </method>
  21910. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21911. abstract="false" native="false" synchronized="false"
  21912. static="false" final="false" visibility="public"
  21913. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21914. Class, UserGroupInformation, Configuration)} instead">
  21915. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21916. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21917. <exception name="IOException" type="java.io.IOException"/>
  21918. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21919. <doc>
  21920. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21921. Class, UserGroupInformation, Configuration)} instead]]>
  21922. </doc>
  21923. </method>
  21924. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21925. abstract="false" native="false" synchronized="false"
  21926. static="false" final="false" visibility="public"
  21927. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21928. Class, UserGroupInformation, Configuration)} instead">
  21929. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21930. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21931. <param name="protocol" type="java.lang.Class"/>
  21932. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21933. <exception name="IOException" type="java.io.IOException"/>
  21934. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21935. <doc>
  21936. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21937. Class, UserGroupInformation, Configuration)} instead]]>
  21938. </doc>
  21939. </method>
  21940. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21941. abstract="false" native="false" synchronized="false"
  21942. static="false" final="false" visibility="public"
  21943. deprecated="not deprecated">
  21944. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21945. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21946. <param name="protocol" type="java.lang.Class"/>
  21947. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21948. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21949. <exception name="IOException" type="java.io.IOException"/>
  21950. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21951. <doc>
  21952. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  21953. corresponding address. When all values are available, or have timed out
  21954. or errored, the collected results are returned in an array. The array
  21955. contains nulls for calls that timed out or errored.]]>
  21956. </doc>
  21957. </method>
  21958. <field name="LOG" type="org.apache.commons.logging.Log"
  21959. transient="false" volatile="false"
  21960. static="true" final="true" visibility="public"
  21961. deprecated="not deprecated">
  21962. </field>
  21963. <doc>
  21964. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  21965. parameter, and return a {@link Writable} as their value. A service runs on
  21966. a port and is defined by a parameter class and a value class.
  21967. @see Server]]>
  21968. </doc>
  21969. </class>
  21970. <!-- end class org.apache.hadoop.ipc.Client -->
  21971. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  21972. <class name="RemoteException" extends="java.io.IOException"
  21973. abstract="false"
  21974. static="false" final="false" visibility="public"
  21975. deprecated="not deprecated">
  21976. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  21977. static="false" final="false" visibility="public"
  21978. deprecated="not deprecated">
  21979. </constructor>
  21980. <method name="getClassName" return="java.lang.String"
  21981. abstract="false" native="false" synchronized="false"
  21982. static="false" final="false" visibility="public"
  21983. deprecated="not deprecated">
  21984. </method>
  21985. <method name="unwrapRemoteException" return="java.io.IOException"
  21986. abstract="false" native="false" synchronized="false"
  21987. static="false" final="false" visibility="public"
  21988. deprecated="not deprecated">
  21989. <param name="lookupTypes" type="java.lang.Class[]"/>
  21990. <doc>
  21991. <![CDATA[If this remote exception wraps up one of the lookupTypes
  21992. then return this exception.
  21993. <p>
  21994. Unwraps any IOException.
  21995. @param lookupTypes the desired exception class.
  21996. @return IOException, which is either the lookupClass exception or this.]]>
  21997. </doc>
  21998. </method>
  21999. <method name="unwrapRemoteException" return="java.io.IOException"
  22000. abstract="false" native="false" synchronized="false"
  22001. static="false" final="false" visibility="public"
  22002. deprecated="not deprecated">
  22003. <doc>
  22004. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  22005. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  22006. a <code>String</code> as a parameter.
  22007. Otherwise it returns this.
  22008. @return <code>Throwable]]>
  22009. </doc>
  22010. </method>
  22011. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  22012. abstract="false" native="false" synchronized="false"
  22013. static="true" final="false" visibility="public"
  22014. deprecated="not deprecated">
  22015. <param name="attrs" type="org.xml.sax.Attributes"/>
  22016. <doc>
  22017. <![CDATA[Create RemoteException from attributes]]>
  22018. </doc>
  22019. </method>
  22020. </class>
  22021. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  22022. <!-- start class org.apache.hadoop.ipc.RPC -->
  22023. <class name="RPC" extends="java.lang.Object"
  22024. abstract="false"
  22025. static="false" final="false" visibility="public"
  22026. deprecated="not deprecated">
  22027. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22028. abstract="false" native="false" synchronized="false"
  22029. static="true" final="false" visibility="public"
  22030. deprecated="not deprecated">
  22031. <param name="protocol" type="java.lang.Class"/>
  22032. <param name="clientVersion" type="long"/>
  22033. <param name="addr" type="java.net.InetSocketAddress"/>
  22034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22035. <exception name="IOException" type="java.io.IOException"/>
  22036. </method>
  22037. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22038. abstract="false" native="false" synchronized="false"
  22039. static="true" final="false" visibility="public"
  22040. deprecated="not deprecated">
  22041. <param name="protocol" type="java.lang.Class"/>
  22042. <param name="clientVersion" type="long"/>
  22043. <param name="addr" type="java.net.InetSocketAddress"/>
  22044. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22045. <param name="factory" type="javax.net.SocketFactory"/>
  22046. <exception name="IOException" type="java.io.IOException"/>
  22047. <doc>
  22048. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22049. talking to a server at the named address.]]>
  22050. </doc>
  22051. </method>
  22052. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22053. abstract="false" native="false" synchronized="false"
  22054. static="true" final="false" visibility="public"
  22055. deprecated="not deprecated">
  22056. <param name="protocol" type="java.lang.Class"/>
  22057. <param name="clientVersion" type="long"/>
  22058. <param name="addr" type="java.net.InetSocketAddress"/>
  22059. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22060. <param name="factory" type="javax.net.SocketFactory"/>
  22061. <param name="rpcTimeout" type="int"/>
  22062. <exception name="IOException" type="java.io.IOException"/>
  22063. <doc>
  22064. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22065. talking to a server at the named address.]]>
  22066. </doc>
  22067. </method>
  22068. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22069. abstract="false" native="false" synchronized="false"
  22070. static="true" final="false" visibility="public"
  22071. deprecated="not deprecated">
  22072. <param name="protocol" type="java.lang.Class"/>
  22073. <param name="clientVersion" type="long"/>
  22074. <param name="addr" type="java.net.InetSocketAddress"/>
  22075. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22077. <param name="factory" type="javax.net.SocketFactory"/>
  22078. <exception name="IOException" type="java.io.IOException"/>
  22079. <doc>
  22080. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22081. talking to a server at the named address.]]>
  22082. </doc>
  22083. </method>
  22084. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22085. abstract="false" native="false" synchronized="false"
  22086. static="true" final="false" visibility="public"
  22087. deprecated="not deprecated">
  22088. <param name="protocol" type="java.lang.Class"/>
  22089. <param name="clientVersion" type="long"/>
  22090. <param name="addr" type="java.net.InetSocketAddress"/>
  22091. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22092. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22093. <param name="factory" type="javax.net.SocketFactory"/>
  22094. <param name="rpcTimeout" type="int"/>
  22095. <exception name="IOException" type="java.io.IOException"/>
  22096. <doc>
  22097. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22098. talking to a server at the named address.]]>
  22099. </doc>
  22100. </method>
  22101. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22102. abstract="false" native="false" synchronized="false"
  22103. static="true" final="false" visibility="public"
  22104. deprecated="not deprecated">
  22105. <param name="protocol" type="java.lang.Class"/>
  22106. <param name="clientVersion" type="long"/>
  22107. <param name="addr" type="java.net.InetSocketAddress"/>
  22108. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22109. <exception name="IOException" type="java.io.IOException"/>
  22110. <doc>
  22111. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  22112. @param protocol
  22113. @param clientVersion
  22114. @param addr
  22115. @param conf
  22116. @return a proxy instance
  22117. @throws IOException]]>
  22118. </doc>
  22119. </method>
  22120. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22121. abstract="false" native="false" synchronized="false"
  22122. static="true" final="false" visibility="public"
  22123. deprecated="not deprecated">
  22124. <param name="protocol" type="java.lang.Class"/>
  22125. <param name="clientVersion" type="long"/>
  22126. <param name="addr" type="java.net.InetSocketAddress"/>
  22127. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22128. <param name="rpcTimeout" type="int"/>
  22129. <exception name="IOException" type="java.io.IOException"/>
  22130. </method>
  22131. <method name="stopProxy"
  22132. abstract="false" native="false" synchronized="false"
  22133. static="true" final="false" visibility="public"
  22134. deprecated="not deprecated">
  22135. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  22136. <doc>
  22137. <![CDATA[Stop this proxy and release its invoker's resource
  22138. @param proxy the proxy to be stopped]]>
  22139. </doc>
  22140. </method>
  22141. <method name="call" return="java.lang.Object[]"
  22142. abstract="false" native="false" synchronized="false"
  22143. static="true" final="false" visibility="public"
  22144. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  22145. <param name="method" type="java.lang.reflect.Method"/>
  22146. <param name="params" type="java.lang.Object[][]"/>
  22147. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  22148. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22149. <exception name="IOException" type="java.io.IOException"/>
  22150. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22151. <doc>
  22152. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  22153. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  22154. </doc>
  22155. </method>
  22156. <method name="call" return="java.lang.Object[]"
  22157. abstract="false" native="false" synchronized="false"
  22158. static="true" final="false" visibility="public"
  22159. deprecated="not deprecated">
  22160. <param name="method" type="java.lang.reflect.Method"/>
  22161. <param name="params" type="java.lang.Object[][]"/>
  22162. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  22163. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22164. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22165. <exception name="IOException" type="java.io.IOException"/>
  22166. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22167. <doc>
  22168. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  22169. </doc>
  22170. </method>
  22171. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  22172. abstract="false" native="false" synchronized="false"
  22173. static="true" final="false" visibility="public"
  22174. deprecated="not deprecated">
  22175. <param name="instance" type="java.lang.Object"/>
  22176. <param name="bindAddress" type="java.lang.String"/>
  22177. <param name="port" type="int"/>
  22178. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22179. <exception name="IOException" type="java.io.IOException"/>
  22180. <doc>
  22181. <![CDATA[Construct a server for a protocol implementation instance listening on a
  22182. port and address.]]>
  22183. </doc>
  22184. </method>
  22185. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  22186. abstract="false" native="false" synchronized="false"
  22187. static="true" final="false" visibility="public"
  22188. deprecated="not deprecated">
  22189. <param name="instance" type="java.lang.Object"/>
  22190. <param name="bindAddress" type="java.lang.String"/>
  22191. <param name="port" type="int"/>
  22192. <param name="numHandlers" type="int"/>
  22193. <param name="verbose" type="boolean"/>
  22194. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22195. <exception name="IOException" type="java.io.IOException"/>
  22196. <doc>
  22197. <![CDATA[Construct a server for a protocol implementation instance listening on a
  22198. port and address.]]>
  22199. </doc>
  22200. </method>
  22201. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  22202. abstract="false" native="false" synchronized="false"
  22203. static="true" final="false" visibility="public"
  22204. deprecated="not deprecated">
  22205. <param name="instance" type="java.lang.Object"/>
  22206. <param name="bindAddress" type="java.lang.String"/>
  22207. <param name="port" type="int"/>
  22208. <param name="numHandlers" type="int"/>
  22209. <param name="verbose" type="boolean"/>
  22210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22211. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  22212. <exception name="IOException" type="java.io.IOException"/>
  22213. <doc>
  22214. <![CDATA[Construct a server for a protocol implementation instance listening on a
  22215. port and address, with a secret manager.]]>
  22216. </doc>
  22217. </method>
  22218. <doc>
  22219. <![CDATA[A simple RPC mechanism.
  22220. A <i>protocol</i> is a Java interface. All parameters and return types must
  22221. be one of:
  22222. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  22223. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  22224. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  22225. <li>a {@link String}; or</li>
  22226. <li>a {@link Writable}; or</li>
  22227. <li>an array of the above types</li> </ul>
  22228. All methods in the protocol should throw only IOException. No field data of
  22229. the protocol instance is transmitted.]]>
  22230. </doc>
  22231. </class>
  22232. <!-- end class org.apache.hadoop.ipc.RPC -->
  22233. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  22234. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  22235. abstract="false"
  22236. static="true" final="false" visibility="public"
  22237. deprecated="not deprecated">
  22238. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  22239. static="false" final="false" visibility="public"
  22240. deprecated="not deprecated">
  22241. <exception name="IOException" type="java.io.IOException"/>
  22242. <doc>
  22243. <![CDATA[Construct an RPC server.
  22244. @param instance the instance whose methods will be called
  22245. @param conf the configuration to use
  22246. @param bindAddress the address to bind on to listen for connection
  22247. @param port the port to listen for connections on]]>
  22248. </doc>
  22249. </constructor>
  22250. <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"
  22251. static="false" final="false" visibility="public"
  22252. deprecated="not deprecated">
  22253. <exception name="IOException" type="java.io.IOException"/>
  22254. <doc>
  22255. <![CDATA[Construct an RPC server.
  22256. @param instance the instance whose methods will be called
  22257. @param conf the configuration to use
  22258. @param bindAddress the address to bind on to listen for connection
  22259. @param port the port to listen for connections on
  22260. @param numHandlers the number of method handler threads to run
  22261. @param verbose whether each call should be logged]]>
  22262. </doc>
  22263. </constructor>
  22264. <method name="call" return="org.apache.hadoop.io.Writable"
  22265. abstract="false" native="false" synchronized="false"
  22266. static="false" final="false" visibility="public"
  22267. deprecated="not deprecated">
  22268. <param name="protocol" type="java.lang.Class"/>
  22269. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22270. <param name="receivedTime" type="long"/>
  22271. <exception name="IOException" type="java.io.IOException"/>
  22272. </method>
  22273. <doc>
  22274. <![CDATA[An RPC Server.]]>
  22275. </doc>
  22276. </class>
  22277. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  22278. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  22279. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  22280. abstract="false"
  22281. static="true" final="false" visibility="public"
  22282. deprecated="not deprecated">
  22283. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  22284. static="false" final="false" visibility="public"
  22285. deprecated="not deprecated">
  22286. <doc>
  22287. <![CDATA[Create a version mismatch exception
  22288. @param interfaceName the name of the protocol mismatch
  22289. @param clientVersion the client's version of the protocol
  22290. @param serverVersion the server's version of the protocol]]>
  22291. </doc>
  22292. </constructor>
  22293. <method name="getInterfaceName" return="java.lang.String"
  22294. abstract="false" native="false" synchronized="false"
  22295. static="false" final="false" visibility="public"
  22296. deprecated="not deprecated">
  22297. <doc>
  22298. <![CDATA[Get the interface name
  22299. @return the java class name
  22300. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  22301. </doc>
  22302. </method>
  22303. <method name="getClientVersion" return="long"
  22304. abstract="false" native="false" synchronized="false"
  22305. static="false" final="false" visibility="public"
  22306. deprecated="not deprecated">
  22307. <doc>
  22308. <![CDATA[Get the client's preferred version]]>
  22309. </doc>
  22310. </method>
  22311. <method name="getServerVersion" return="long"
  22312. abstract="false" native="false" synchronized="false"
  22313. static="false" final="false" visibility="public"
  22314. deprecated="not deprecated">
  22315. <doc>
  22316. <![CDATA[Get the server's agreed to version.]]>
  22317. </doc>
  22318. </method>
  22319. <doc>
  22320. <![CDATA[A version mismatch for the RPC protocol.]]>
  22321. </doc>
  22322. </class>
  22323. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  22324. <!-- start class org.apache.hadoop.ipc.Server -->
  22325. <class name="Server" extends="java.lang.Object"
  22326. abstract="true"
  22327. static="false" final="false" visibility="public"
  22328. deprecated="not deprecated">
  22329. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  22330. static="false" final="false" visibility="protected"
  22331. deprecated="not deprecated">
  22332. <exception name="IOException" type="java.io.IOException"/>
  22333. </constructor>
  22334. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  22335. static="false" final="false" visibility="protected"
  22336. deprecated="not deprecated">
  22337. <exception name="IOException" type="java.io.IOException"/>
  22338. </constructor>
  22339. <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"
  22340. static="false" final="false" visibility="protected"
  22341. deprecated="not deprecated">
  22342. <exception name="IOException" type="java.io.IOException"/>
  22343. <doc>
  22344. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  22345. be of the named class. The <code>handlerCount</handlerCount> determines
  22346. the number of handler threads that will be used to process calls.]]>
  22347. </doc>
  22348. </constructor>
  22349. <method name="get" return="org.apache.hadoop.ipc.Server"
  22350. abstract="false" native="false" synchronized="false"
  22351. static="true" final="false" visibility="public"
  22352. deprecated="not deprecated">
  22353. <doc>
  22354. <![CDATA[Returns the server instance called under or null. May be called under
  22355. {@link #call(Writable, long)} implementations, and under {@link Writable}
  22356. methods of paramters and return values. Permits applications to access
  22357. the server context.]]>
  22358. </doc>
  22359. </method>
  22360. <method name="getRemoteIp" return="java.net.InetAddress"
  22361. abstract="false" native="false" synchronized="false"
  22362. static="true" final="false" visibility="public"
  22363. deprecated="not deprecated">
  22364. <doc>
  22365. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  22366. Returns null incase of an error.]]>
  22367. </doc>
  22368. </method>
  22369. <method name="getRemoteAddress" return="java.lang.String"
  22370. abstract="false" native="false" synchronized="false"
  22371. static="true" final="false" visibility="public"
  22372. deprecated="not deprecated">
  22373. <doc>
  22374. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  22375. Returns null in case of an error.]]>
  22376. </doc>
  22377. </method>
  22378. <method name="bind"
  22379. abstract="false" native="false" synchronized="false"
  22380. static="true" final="false" visibility="public"
  22381. deprecated="not deprecated">
  22382. <param name="socket" type="java.net.ServerSocket"/>
  22383. <param name="address" type="java.net.InetSocketAddress"/>
  22384. <param name="backlog" type="int"/>
  22385. <exception name="IOException" type="java.io.IOException"/>
  22386. <doc>
  22387. <![CDATA[A convenience method to bind to a given address and report
  22388. better exceptions if the address is not a valid host.
  22389. @param socket the socket to bind
  22390. @param address the address to bind to
  22391. @param backlog the number of connections allowed in the queue
  22392. @throws BindException if the address can't be bound
  22393. @throws UnknownHostException if the address isn't a valid host name
  22394. @throws IOException other random errors from bind]]>
  22395. </doc>
  22396. </method>
  22397. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22398. abstract="false" native="false" synchronized="false"
  22399. static="false" final="false" visibility="public"
  22400. deprecated="not deprecated">
  22401. <doc>
  22402. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  22403. @return rpc metrics]]>
  22404. </doc>
  22405. </method>
  22406. <method name="setSocketSendBufSize"
  22407. abstract="false" native="false" synchronized="false"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. <param name="size" type="int"/>
  22411. <doc>
  22412. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  22413. </doc>
  22414. </method>
  22415. <method name="start"
  22416. abstract="false" native="false" synchronized="true"
  22417. static="false" final="false" visibility="public"
  22418. deprecated="not deprecated">
  22419. <doc>
  22420. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  22421. </doc>
  22422. </method>
  22423. <method name="stop"
  22424. abstract="false" native="false" synchronized="true"
  22425. static="false" final="false" visibility="public"
  22426. deprecated="not deprecated">
  22427. <doc>
  22428. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  22429. </doc>
  22430. </method>
  22431. <method name="join"
  22432. abstract="false" native="false" synchronized="true"
  22433. static="false" final="false" visibility="public"
  22434. deprecated="not deprecated">
  22435. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22436. <doc>
  22437. <![CDATA[Wait for the server to be stopped.
  22438. Does not wait for all subthreads to finish.
  22439. See {@link #stop()}.]]>
  22440. </doc>
  22441. </method>
  22442. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  22443. abstract="false" native="false" synchronized="true"
  22444. static="false" final="false" visibility="public"
  22445. deprecated="not deprecated">
  22446. <doc>
  22447. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  22448. @return the socket (ip+port) on which the RPC server is listening to.]]>
  22449. </doc>
  22450. </method>
  22451. <method name="call" return="org.apache.hadoop.io.Writable"
  22452. abstract="false" native="false" synchronized="false"
  22453. static="false" final="false" visibility="public"
  22454. deprecated="Use {@link #call(Class, Writable, long)} instead">
  22455. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22456. <param name="receiveTime" type="long"/>
  22457. <exception name="IOException" type="java.io.IOException"/>
  22458. <doc>
  22459. <![CDATA[Called for each call.
  22460. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  22461. </doc>
  22462. </method>
  22463. <method name="call" return="org.apache.hadoop.io.Writable"
  22464. abstract="true" native="false" synchronized="false"
  22465. static="false" final="false" visibility="public"
  22466. deprecated="not deprecated">
  22467. <param name="protocol" type="java.lang.Class"/>
  22468. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22469. <param name="receiveTime" type="long"/>
  22470. <exception name="IOException" type="java.io.IOException"/>
  22471. <doc>
  22472. <![CDATA[Called for each call.]]>
  22473. </doc>
  22474. </method>
  22475. <method name="authorize"
  22476. abstract="false" native="false" synchronized="false"
  22477. static="false" final="false" visibility="public"
  22478. deprecated="not deprecated">
  22479. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  22480. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  22481. <param name="addr" type="java.net.InetAddress"/>
  22482. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  22483. <doc>
  22484. <![CDATA[Authorize the incoming client connection.
  22485. @param user client user
  22486. @param connection incoming connection
  22487. @param addr InetAddress of incoming connection
  22488. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  22489. </doc>
  22490. </method>
  22491. <method name="getNumOpenConnections" return="int"
  22492. abstract="false" native="false" synchronized="false"
  22493. static="false" final="false" visibility="public"
  22494. deprecated="not deprecated">
  22495. <doc>
  22496. <![CDATA[The number of open RPC conections
  22497. @return the number of open rpc connections]]>
  22498. </doc>
  22499. </method>
  22500. <method name="getCallQueueLen" return="int"
  22501. abstract="false" native="false" synchronized="false"
  22502. static="false" final="false" visibility="public"
  22503. deprecated="not deprecated">
  22504. <doc>
  22505. <![CDATA[The number of rpc calls in the queue.
  22506. @return The number of rpc calls in the queue.]]>
  22507. </doc>
  22508. </method>
  22509. <field name="HEADER" type="java.nio.ByteBuffer"
  22510. transient="false" volatile="false"
  22511. static="true" final="true" visibility="public"
  22512. deprecated="not deprecated">
  22513. <doc>
  22514. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  22515. </doc>
  22516. </field>
  22517. <field name="CURRENT_VERSION" type="byte"
  22518. transient="false" volatile="false"
  22519. static="true" final="true" visibility="public"
  22520. deprecated="not deprecated">
  22521. </field>
  22522. <field name="LOG" type="org.apache.commons.logging.Log"
  22523. transient="false" volatile="false"
  22524. static="true" final="true" visibility="public"
  22525. deprecated="not deprecated">
  22526. </field>
  22527. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22528. transient="false" volatile="false"
  22529. static="false" final="false" visibility="protected"
  22530. deprecated="not deprecated">
  22531. </field>
  22532. <doc>
  22533. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  22534. parameter, and return a {@link Writable} as their value. A service runs on
  22535. a port and is defined by a parameter class and a value class.
  22536. @see Client]]>
  22537. </doc>
  22538. </class>
  22539. <!-- end class org.apache.hadoop.ipc.Server -->
  22540. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  22541. <class name="Server.Connection" extends="java.lang.Object"
  22542. abstract="false"
  22543. static="false" final="false" visibility="public"
  22544. deprecated="not deprecated">
  22545. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  22546. static="false" final="false" visibility="public"
  22547. deprecated="not deprecated">
  22548. </constructor>
  22549. <method name="toString" return="java.lang.String"
  22550. abstract="false" native="false" synchronized="false"
  22551. static="false" final="false" visibility="public"
  22552. deprecated="not deprecated">
  22553. </method>
  22554. <method name="getHostAddress" return="java.lang.String"
  22555. abstract="false" native="false" synchronized="false"
  22556. static="false" final="false" visibility="public"
  22557. deprecated="not deprecated">
  22558. </method>
  22559. <method name="getHostInetAddress" return="java.net.InetAddress"
  22560. abstract="false" native="false" synchronized="false"
  22561. static="false" final="false" visibility="public"
  22562. deprecated="not deprecated">
  22563. </method>
  22564. <method name="setLastContact"
  22565. abstract="false" native="false" synchronized="false"
  22566. static="false" final="false" visibility="public"
  22567. deprecated="not deprecated">
  22568. <param name="lastContact" type="long"/>
  22569. </method>
  22570. <method name="getLastContact" return="long"
  22571. abstract="false" native="false" synchronized="false"
  22572. static="false" final="false" visibility="public"
  22573. deprecated="not deprecated">
  22574. </method>
  22575. <method name="readAndProcess" return="int"
  22576. abstract="false" native="false" synchronized="false"
  22577. static="false" final="false" visibility="public"
  22578. deprecated="not deprecated">
  22579. <exception name="IOException" type="java.io.IOException"/>
  22580. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22581. </method>
  22582. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  22583. transient="false" volatile="false"
  22584. static="false" final="false" visibility="public"
  22585. deprecated="not deprecated">
  22586. </field>
  22587. <doc>
  22588. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  22589. </doc>
  22590. </class>
  22591. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  22592. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  22593. <interface name="VersionedProtocol" abstract="true"
  22594. static="false" final="false" visibility="public"
  22595. deprecated="not deprecated">
  22596. <method name="getProtocolVersion" return="long"
  22597. abstract="false" native="false" synchronized="false"
  22598. static="false" final="false" visibility="public"
  22599. deprecated="not deprecated">
  22600. <param name="protocol" type="java.lang.String"/>
  22601. <param name="clientVersion" type="long"/>
  22602. <exception name="IOException" type="java.io.IOException"/>
  22603. <doc>
  22604. <![CDATA[Return protocol version corresponding to protocol interface.
  22605. @param protocol The classname of the protocol interface
  22606. @param clientVersion The version of the protocol that the client speaks
  22607. @return the version that the server will speak]]>
  22608. </doc>
  22609. </method>
  22610. <doc>
  22611. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  22612. Subclasses of this interface are also supposed to have
  22613. a static final long versionID field.]]>
  22614. </doc>
  22615. </interface>
  22616. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  22617. </package>
  22618. <package name="org.apache.hadoop.ipc.metrics">
  22619. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  22620. <class name="RpcInstrumentation" extends="java.lang.Object"
  22621. abstract="false"
  22622. static="false" final="false" visibility="public"
  22623. deprecated="not deprecated">
  22624. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  22625. <method name="getMetrics"
  22626. abstract="false" native="false" synchronized="false"
  22627. static="false" final="false" visibility="public"
  22628. deprecated="not deprecated">
  22629. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  22630. <param name="all" type="boolean"/>
  22631. </method>
  22632. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22633. abstract="false" native="false" synchronized="false"
  22634. static="true" final="false" visibility="public"
  22635. deprecated="not deprecated">
  22636. <param name="serverName" type="java.lang.String"/>
  22637. <param name="port" type="int"/>
  22638. <doc>
  22639. <![CDATA[Create an RPC instrumentation object
  22640. @param serverName name of the server
  22641. @param port the RPC port
  22642. @return the instrumentation object]]>
  22643. </doc>
  22644. </method>
  22645. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22646. abstract="false" native="false" synchronized="false"
  22647. static="true" final="false" visibility="public"
  22648. deprecated="not deprecated">
  22649. <param name="serverName" type="java.lang.String"/>
  22650. <param name="port" type="int"/>
  22651. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  22652. <doc>
  22653. <![CDATA[Create an RPC instrumentation object
  22654. Mostly useful for testing.
  22655. @param serverName name of the server
  22656. @param port the RPC port
  22657. @param ms the metrics system object
  22658. @return the instrumentation object]]>
  22659. </doc>
  22660. </method>
  22661. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  22662. abstract="false" native="false" synchronized="false"
  22663. static="false" final="false" visibility="public"
  22664. deprecated="not deprecated">
  22665. <doc>
  22666. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  22667. </doc>
  22668. </method>
  22669. <method name="incrAuthenticationFailures"
  22670. abstract="false" native="false" synchronized="false"
  22671. static="false" final="false" visibility="public"
  22672. deprecated="not deprecated">
  22673. <doc>
  22674. <![CDATA[One authentication failure event]]>
  22675. </doc>
  22676. </method>
  22677. <method name="incrAuthenticationSuccesses"
  22678. abstract="false" native="false" synchronized="false"
  22679. static="false" final="false" visibility="public"
  22680. deprecated="not deprecated">
  22681. <doc>
  22682. <![CDATA[One authentication success event]]>
  22683. </doc>
  22684. </method>
  22685. <method name="incrAuthorizationSuccesses"
  22686. abstract="false" native="false" synchronized="false"
  22687. static="false" final="false" visibility="public"
  22688. deprecated="not deprecated">
  22689. <doc>
  22690. <![CDATA[One authorization success event]]>
  22691. </doc>
  22692. </method>
  22693. <method name="incrAuthorizationFailures"
  22694. abstract="false" native="false" synchronized="false"
  22695. static="false" final="false" visibility="public"
  22696. deprecated="not deprecated">
  22697. <doc>
  22698. <![CDATA[One authorization failure event]]>
  22699. </doc>
  22700. </method>
  22701. <method name="shutdown"
  22702. abstract="false" native="false" synchronized="false"
  22703. static="false" final="false" visibility="public"
  22704. deprecated="not deprecated">
  22705. <doc>
  22706. <![CDATA[Shutdown the instrumentation for the process]]>
  22707. </doc>
  22708. </method>
  22709. <method name="incrSentBytes"
  22710. abstract="false" native="false" synchronized="false"
  22711. static="false" final="false" visibility="public"
  22712. deprecated="not deprecated">
  22713. <param name="count" type="int"/>
  22714. <doc>
  22715. <![CDATA[Increment sent bytes by count
  22716. @param count to increment]]>
  22717. </doc>
  22718. </method>
  22719. <method name="incrReceivedBytes"
  22720. abstract="false" native="false" synchronized="false"
  22721. static="false" final="false" visibility="public"
  22722. deprecated="not deprecated">
  22723. <param name="count" type="int"/>
  22724. <doc>
  22725. <![CDATA[Increment received bytes by count
  22726. @param count to increment]]>
  22727. </doc>
  22728. </method>
  22729. <method name="addRpcQueueTime"
  22730. abstract="false" native="false" synchronized="false"
  22731. static="false" final="false" visibility="public"
  22732. deprecated="not deprecated">
  22733. <param name="qTime" type="int"/>
  22734. <doc>
  22735. <![CDATA[Add an RPC queue time sample
  22736. @param qTime]]>
  22737. </doc>
  22738. </method>
  22739. <method name="addRpcProcessingTime"
  22740. abstract="false" native="false" synchronized="false"
  22741. static="false" final="false" visibility="public"
  22742. deprecated="not deprecated">
  22743. <param name="processingTime" type="int"/>
  22744. <doc>
  22745. <![CDATA[Add an RPC processing time sample
  22746. @param processingTime]]>
  22747. </doc>
  22748. </method>
  22749. <method name="addRpcProcessingTime"
  22750. abstract="false" native="false" synchronized="false"
  22751. static="false" final="false" visibility="public"
  22752. deprecated="not deprecated">
  22753. <param name="methodName" type="java.lang.String"/>
  22754. <param name="processingTime" type="int"/>
  22755. <doc>
  22756. <![CDATA[Add an RPC processing time sample for a particular RPC method
  22757. @param methodName method name of the RPC
  22758. @param processingTime elapsed processing time of the RPC]]>
  22759. </doc>
  22760. </method>
  22761. <doc>
  22762. <![CDATA[The RPC metrics instrumentation]]>
  22763. </doc>
  22764. </class>
  22765. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  22766. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22767. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  22768. abstract="false"
  22769. static="true" final="false" visibility="public"
  22770. deprecated="not deprecated">
  22771. <method name="addRpcProcessingTime"
  22772. abstract="false" native="false" synchronized="true"
  22773. static="false" final="false" visibility="public"
  22774. deprecated="not deprecated">
  22775. <param name="methodName" type="java.lang.String"/>
  22776. <param name="processingTime" type="int"/>
  22777. </method>
  22778. <doc>
  22779. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  22780. easy and efficient filtering]]>
  22781. </doc>
  22782. </class>
  22783. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22784. </package>
  22785. <package name="org.apache.hadoop.jmx">
  22786. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  22787. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  22788. abstract="false"
  22789. static="false" final="false" visibility="public"
  22790. deprecated="not deprecated">
  22791. <constructor name="JMXJsonServlet"
  22792. static="false" final="false" visibility="public"
  22793. deprecated="not deprecated">
  22794. </constructor>
  22795. <method name="init"
  22796. abstract="false" native="false" synchronized="false"
  22797. static="false" final="false" visibility="public"
  22798. deprecated="not deprecated">
  22799. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22800. <doc>
  22801. <![CDATA[Initialize this servlet.]]>
  22802. </doc>
  22803. </method>
  22804. <method name="doGet"
  22805. abstract="false" native="false" synchronized="false"
  22806. static="false" final="false" visibility="public"
  22807. deprecated="not deprecated">
  22808. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22809. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22810. <doc>
  22811. <![CDATA[Process a GET request for the specified resource.
  22812. @param request
  22813. The servlet request we are processing
  22814. @param response
  22815. The servlet response we are creating]]>
  22816. </doc>
  22817. </method>
  22818. <field name="mBeanServer" type="javax.management.MBeanServer"
  22819. transient="true" volatile="false"
  22820. static="false" final="false" visibility="protected"
  22821. deprecated="not deprecated">
  22822. <doc>
  22823. <![CDATA[MBean server.]]>
  22824. </doc>
  22825. </field>
  22826. <doc>
  22827. <![CDATA[Provides Read only web access to JMX.
  22828. <p>
  22829. This servlet generally will be placed under the /jmx URL for each
  22830. HttpServer. It provides read only
  22831. access to JMX metrics. The optional <code>qry</code> parameter
  22832. may be used to query only a subset of the JMX Beans. This query
  22833. functionality is provided through the
  22834. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  22835. method.
  22836. <p>
  22837. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  22838. all hadoop metrics exposed through JMX.
  22839. <p>
  22840. If the <code>qry</code> parameter is not formatted correctly then a
  22841. 400 BAD REQUEST http response code will be returned.
  22842. <p>
  22843. The return format is JSON and in the form
  22844. <p>
  22845. <code><pre>
  22846. {
  22847. "beans" : [
  22848. {
  22849. "name":"bean-name"
  22850. ...
  22851. }
  22852. ]
  22853. }
  22854. </pre></code>
  22855. <p>
  22856. The servlet attempts to convert the the JMXBeans into JSON. Each
  22857. bean's attributes will be converted to a JSON object member.
  22858. If the attribute is a boolean, a number, a string, or an array
  22859. it will be converted to the JSON equivalent.
  22860. If the value is a {@link CompositeData} then it will be converted
  22861. to a JSON object with the keys as the name of the JSON member and
  22862. the value is converted following these same rules.
  22863. If the value is a {@link TabularData} then it will be converted
  22864. to an array of the {@link CompositeData} elements that it contains.
  22865. All other objects will be converted to a string and output as such.
  22866. The bean's name and modelerType will be returned for all beans.]]>
  22867. </doc>
  22868. </class>
  22869. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  22870. </package>
  22871. <package name="org.apache.hadoop.log">
  22872. <!-- start class org.apache.hadoop.log.EventCounter -->
  22873. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  22874. abstract="false"
  22875. static="false" final="false" visibility="public"
  22876. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  22877. <constructor name="EventCounter"
  22878. static="false" final="false" visibility="public"
  22879. deprecated="not deprecated">
  22880. </constructor>
  22881. <doc>
  22882. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22883. fatal, error and warn. The class name is used in log4j.properties
  22884. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  22885. </doc>
  22886. </class>
  22887. <!-- end class org.apache.hadoop.log.EventCounter -->
  22888. <!-- start class org.apache.hadoop.log.LogLevel -->
  22889. <class name="LogLevel" extends="java.lang.Object"
  22890. abstract="false"
  22891. static="false" final="false" visibility="public"
  22892. deprecated="not deprecated">
  22893. <constructor name="LogLevel"
  22894. static="false" final="false" visibility="public"
  22895. deprecated="not deprecated">
  22896. </constructor>
  22897. <method name="main"
  22898. abstract="false" native="false" synchronized="false"
  22899. static="true" final="false" visibility="public"
  22900. deprecated="not deprecated">
  22901. <param name="args" type="java.lang.String[]"/>
  22902. <doc>
  22903. <![CDATA[A command line implementation]]>
  22904. </doc>
  22905. </method>
  22906. <field name="USAGES" type="java.lang.String"
  22907. transient="false" volatile="false"
  22908. static="true" final="true" visibility="public"
  22909. deprecated="not deprecated">
  22910. </field>
  22911. <doc>
  22912. <![CDATA[Change log level in runtime.]]>
  22913. </doc>
  22914. </class>
  22915. <!-- end class org.apache.hadoop.log.LogLevel -->
  22916. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  22917. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  22918. abstract="false"
  22919. static="true" final="false" visibility="public"
  22920. deprecated="not deprecated">
  22921. <constructor name="LogLevel.Servlet"
  22922. static="false" final="false" visibility="public"
  22923. deprecated="not deprecated">
  22924. </constructor>
  22925. <method name="doGet"
  22926. abstract="false" native="false" synchronized="false"
  22927. static="false" final="false" visibility="public"
  22928. deprecated="not deprecated">
  22929. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22930. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22931. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22932. <exception name="IOException" type="java.io.IOException"/>
  22933. </method>
  22934. <doc>
  22935. <![CDATA[A servlet implementation]]>
  22936. </doc>
  22937. </class>
  22938. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  22939. </package>
  22940. <package name="org.apache.hadoop.log.metrics">
  22941. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  22942. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  22943. abstract="false"
  22944. static="false" final="false" visibility="public"
  22945. deprecated="not deprecated">
  22946. <constructor name="EventCounter"
  22947. static="false" final="false" visibility="public"
  22948. deprecated="not deprecated">
  22949. </constructor>
  22950. <method name="getFatal" return="long"
  22951. abstract="false" native="false" synchronized="false"
  22952. static="true" final="false" visibility="public"
  22953. deprecated="not deprecated">
  22954. </method>
  22955. <method name="getError" return="long"
  22956. abstract="false" native="false" synchronized="false"
  22957. static="true" final="false" visibility="public"
  22958. deprecated="not deprecated">
  22959. </method>
  22960. <method name="getWarn" return="long"
  22961. abstract="false" native="false" synchronized="false"
  22962. static="true" final="false" visibility="public"
  22963. deprecated="not deprecated">
  22964. </method>
  22965. <method name="getInfo" return="long"
  22966. abstract="false" native="false" synchronized="false"
  22967. static="true" final="false" visibility="public"
  22968. deprecated="not deprecated">
  22969. </method>
  22970. <method name="append"
  22971. abstract="false" native="false" synchronized="false"
  22972. static="false" final="false" visibility="public"
  22973. deprecated="not deprecated">
  22974. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  22975. </method>
  22976. <method name="close"
  22977. abstract="false" native="false" synchronized="false"
  22978. static="false" final="false" visibility="public"
  22979. deprecated="not deprecated">
  22980. </method>
  22981. <method name="requiresLayout" return="boolean"
  22982. abstract="false" native="false" synchronized="false"
  22983. static="false" final="false" visibility="public"
  22984. deprecated="not deprecated">
  22985. </method>
  22986. <doc>
  22987. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22988. fatal, error and warn. The class name is used in log4j.properties]]>
  22989. </doc>
  22990. </class>
  22991. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  22992. </package>
  22993. <package name="org.apache.hadoop.metrics">
  22994. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  22995. <class name="ContextFactory" extends="java.lang.Object"
  22996. abstract="false"
  22997. static="false" final="false" visibility="public"
  22998. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22999. <constructor name="ContextFactory"
  23000. static="false" final="false" visibility="protected"
  23001. deprecated="not deprecated">
  23002. <doc>
  23003. <![CDATA[Creates a new instance of ContextFactory]]>
  23004. </doc>
  23005. </constructor>
  23006. <method name="getAttribute" return="java.lang.Object"
  23007. abstract="false" native="false" synchronized="false"
  23008. static="false" final="false" visibility="public"
  23009. deprecated="not deprecated">
  23010. <param name="attributeName" type="java.lang.String"/>
  23011. <doc>
  23012. <![CDATA[Returns the value of the named attribute, or null if there is no
  23013. attribute of that name.
  23014. @param attributeName the attribute name
  23015. @return the attribute value]]>
  23016. </doc>
  23017. </method>
  23018. <method name="getAttributeNames" return="java.lang.String[]"
  23019. abstract="false" native="false" synchronized="false"
  23020. static="false" final="false" visibility="public"
  23021. deprecated="not deprecated">
  23022. <doc>
  23023. <![CDATA[Returns the names of all the factory's attributes.
  23024. @return the attribute names]]>
  23025. </doc>
  23026. </method>
  23027. <method name="setAttribute"
  23028. abstract="false" native="false" synchronized="false"
  23029. static="false" final="false" visibility="public"
  23030. deprecated="not deprecated">
  23031. <param name="attributeName" type="java.lang.String"/>
  23032. <param name="value" type="java.lang.Object"/>
  23033. <doc>
  23034. <![CDATA[Sets the named factory attribute to the specified value, creating it
  23035. if it did not already exist. If the value is null, this is the same as
  23036. calling removeAttribute.
  23037. @param attributeName the attribute name
  23038. @param value the new attribute value]]>
  23039. </doc>
  23040. </method>
  23041. <method name="removeAttribute"
  23042. abstract="false" native="false" synchronized="false"
  23043. static="false" final="false" visibility="public"
  23044. deprecated="not deprecated">
  23045. <param name="attributeName" type="java.lang.String"/>
  23046. <doc>
  23047. <![CDATA[Removes the named attribute if it exists.
  23048. @param attributeName the attribute name]]>
  23049. </doc>
  23050. </method>
  23051. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23052. abstract="false" native="false" synchronized="true"
  23053. static="false" final="false" visibility="public"
  23054. deprecated="not deprecated">
  23055. <param name="refName" type="java.lang.String"/>
  23056. <param name="contextName" type="java.lang.String"/>
  23057. <exception name="IOException" type="java.io.IOException"/>
  23058. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23059. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23060. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23061. <doc>
  23062. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  23063. using the factory's current configuration attributes. <p/>
  23064. When constructing the instance, if the factory property
  23065. <i>contextName</i>.class</code> exists,
  23066. its value is taken to be the name of the class to instantiate. Otherwise,
  23067. the default is to create an instance of
  23068. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  23069. dummy "no-op" context which will cause all metric data to be discarded.
  23070. @param contextName the name of the context
  23071. @return the named MetricsContext]]>
  23072. </doc>
  23073. </method>
  23074. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23075. abstract="false" native="false" synchronized="true"
  23076. static="false" final="false" visibility="public"
  23077. deprecated="not deprecated">
  23078. <param name="contextName" type="java.lang.String"/>
  23079. <exception name="IOException" type="java.io.IOException"/>
  23080. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23081. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23082. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23083. </method>
  23084. <method name="getAllContexts" return="java.util.Collection"
  23085. abstract="false" native="false" synchronized="true"
  23086. static="false" final="false" visibility="public"
  23087. deprecated="not deprecated">
  23088. <doc>
  23089. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  23090. </doc>
  23091. </method>
  23092. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  23093. abstract="false" native="false" synchronized="true"
  23094. static="true" final="false" visibility="public"
  23095. deprecated="not deprecated">
  23096. <param name="contextName" type="java.lang.String"/>
  23097. <doc>
  23098. <![CDATA[Returns a "null" context - one which does nothing.]]>
  23099. </doc>
  23100. </method>
  23101. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23102. abstract="false" native="false" synchronized="true"
  23103. static="true" final="false" visibility="public"
  23104. deprecated="not deprecated">
  23105. <exception name="IOException" type="java.io.IOException"/>
  23106. <doc>
  23107. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  23108. necessary. <p/>
  23109. When the instance is constructed, this method checks if the file
  23110. <code>hadoop-metrics.properties</code> exists on the class path. If it
  23111. exists, it must be in the format defined by java.util.Properties, and all
  23112. the properties in the file are set as attributes on the newly created
  23113. ContextFactory instance.
  23114. @return the singleton ContextFactory instance]]>
  23115. </doc>
  23116. </method>
  23117. <doc>
  23118. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  23119. of this class, use the static <code>getFactory()</code> method.
  23120. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23121. </doc>
  23122. </class>
  23123. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  23124. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  23125. <interface name="MetricsContext" abstract="true"
  23126. static="false" final="false" visibility="public"
  23127. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23128. <method name="init"
  23129. abstract="false" native="false" synchronized="false"
  23130. static="false" final="false" visibility="public"
  23131. deprecated="not deprecated">
  23132. <param name="contextName" type="java.lang.String"/>
  23133. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23134. <doc>
  23135. <![CDATA[Initialize this context.
  23136. @param contextName The given name for this context
  23137. @param factory The creator of this context]]>
  23138. </doc>
  23139. </method>
  23140. <method name="getContextName" return="java.lang.String"
  23141. abstract="false" native="false" synchronized="false"
  23142. static="false" final="false" visibility="public"
  23143. deprecated="not deprecated">
  23144. <doc>
  23145. <![CDATA[Returns the context name.
  23146. @return the context name]]>
  23147. </doc>
  23148. </method>
  23149. <method name="startMonitoring"
  23150. abstract="false" native="false" synchronized="false"
  23151. static="false" final="false" visibility="public"
  23152. deprecated="not deprecated">
  23153. <exception name="IOException" type="java.io.IOException"/>
  23154. <doc>
  23155. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  23156. updated.]]>
  23157. </doc>
  23158. </method>
  23159. <method name="stopMonitoring"
  23160. abstract="false" native="false" synchronized="false"
  23161. static="false" final="false" visibility="public"
  23162. deprecated="not deprecated">
  23163. <doc>
  23164. <![CDATA[Stops monitoring. This does not free any data that the implementation
  23165. may have buffered for sending at the next timer event. It
  23166. is OK to call <code>startMonitoring()</code> again after calling
  23167. this.
  23168. @see #close()]]>
  23169. </doc>
  23170. </method>
  23171. <method name="isMonitoring" return="boolean"
  23172. abstract="false" native="false" synchronized="false"
  23173. static="false" final="false" visibility="public"
  23174. deprecated="not deprecated">
  23175. <doc>
  23176. <![CDATA[Returns true if monitoring is currently in progress.]]>
  23177. </doc>
  23178. </method>
  23179. <method name="close"
  23180. abstract="false" native="false" synchronized="false"
  23181. static="false" final="false" visibility="public"
  23182. deprecated="not deprecated">
  23183. <doc>
  23184. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  23185. object to its initial state.]]>
  23186. </doc>
  23187. </method>
  23188. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23189. abstract="false" native="false" synchronized="false"
  23190. static="false" final="false" visibility="public"
  23191. deprecated="not deprecated">
  23192. <param name="recordName" type="java.lang.String"/>
  23193. <doc>
  23194. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  23195. Throws an exception if the metrics implementation is configured with a fixed
  23196. set of record names and <code>recordName</code> is not in that set.
  23197. @param recordName the name of the record
  23198. @throws MetricsException if recordName conflicts with configuration data]]>
  23199. </doc>
  23200. </method>
  23201. <method name="registerUpdater"
  23202. abstract="false" native="false" synchronized="false"
  23203. static="false" final="false" visibility="public"
  23204. deprecated="not deprecated">
  23205. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23206. <doc>
  23207. <![CDATA[Registers a callback to be called at regular time intervals, as
  23208. determined by the implementation-class specific configuration.
  23209. @param updater object to be run periodically; it should updated
  23210. some metrics records and then return]]>
  23211. </doc>
  23212. </method>
  23213. <method name="unregisterUpdater"
  23214. abstract="false" native="false" synchronized="false"
  23215. static="false" final="false" visibility="public"
  23216. deprecated="not deprecated">
  23217. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23218. <doc>
  23219. <![CDATA[Removes a callback, if it exists.
  23220. @param updater object to be removed from the callback list]]>
  23221. </doc>
  23222. </method>
  23223. <method name="getPeriod" return="int"
  23224. abstract="false" native="false" synchronized="false"
  23225. static="false" final="false" visibility="public"
  23226. deprecated="not deprecated">
  23227. <doc>
  23228. <![CDATA[Returns the timer period.]]>
  23229. </doc>
  23230. </method>
  23231. <method name="getAllRecords" return="java.util.Map"
  23232. abstract="false" native="false" synchronized="false"
  23233. static="false" final="false" visibility="public"
  23234. deprecated="not deprecated">
  23235. <doc>
  23236. <![CDATA[Retrieves all the records managed by this MetricsContext.
  23237. Useful for monitoring systems that are polling-based.
  23238. @return A non-null map from all record names to the records managed.]]>
  23239. </doc>
  23240. </method>
  23241. <field name="DEFAULT_PERIOD" type="int"
  23242. transient="false" volatile="false"
  23243. static="true" final="true" visibility="public"
  23244. deprecated="not deprecated">
  23245. <doc>
  23246. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  23247. </doc>
  23248. </field>
  23249. <doc>
  23250. <![CDATA[The main interface to the metrics package.
  23251. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23252. </doc>
  23253. </interface>
  23254. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  23255. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  23256. <class name="MetricsException" extends="java.lang.RuntimeException"
  23257. abstract="false"
  23258. static="false" final="false" visibility="public"
  23259. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  23260. <constructor name="MetricsException"
  23261. static="false" final="false" visibility="public"
  23262. deprecated="not deprecated">
  23263. <doc>
  23264. <![CDATA[Creates a new instance of MetricsException]]>
  23265. </doc>
  23266. </constructor>
  23267. <constructor name="MetricsException" type="java.lang.String"
  23268. static="false" final="false" visibility="public"
  23269. deprecated="not deprecated">
  23270. <doc>
  23271. <![CDATA[Creates a new instance of MetricsException
  23272. @param message an error message]]>
  23273. </doc>
  23274. </constructor>
  23275. <doc>
  23276. <![CDATA[General-purpose, unchecked metrics exception.
  23277. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  23278. </doc>
  23279. </class>
  23280. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  23281. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  23282. <interface name="MetricsRecord" abstract="true"
  23283. static="false" final="false" visibility="public"
  23284. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23285. <method name="getRecordName" return="java.lang.String"
  23286. abstract="false" native="false" synchronized="false"
  23287. static="false" final="false" visibility="public"
  23288. deprecated="not deprecated">
  23289. <doc>
  23290. <![CDATA[Returns the record name.
  23291. @return the record name]]>
  23292. </doc>
  23293. </method>
  23294. <method name="setTag"
  23295. abstract="false" native="false" synchronized="false"
  23296. static="false" final="false" visibility="public"
  23297. deprecated="not deprecated">
  23298. <param name="tagName" type="java.lang.String"/>
  23299. <param name="tagValue" type="java.lang.String"/>
  23300. <doc>
  23301. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  23302. which is treated the same as an empty String.
  23303. @param tagName name of the tag
  23304. @param tagValue new value of the tag
  23305. @throws MetricsException if the tagName conflicts with the configuration]]>
  23306. </doc>
  23307. </method>
  23308. <method name="setTag"
  23309. abstract="false" native="false" synchronized="false"
  23310. static="false" final="false" visibility="public"
  23311. deprecated="not deprecated">
  23312. <param name="tagName" type="java.lang.String"/>
  23313. <param name="tagValue" type="int"/>
  23314. <doc>
  23315. <![CDATA[Sets the named tag to the specified value.
  23316. @param tagName name of the tag
  23317. @param tagValue new value of the tag
  23318. @throws MetricsException if the tagName conflicts with the configuration]]>
  23319. </doc>
  23320. </method>
  23321. <method name="setTag"
  23322. abstract="false" native="false" synchronized="false"
  23323. static="false" final="false" visibility="public"
  23324. deprecated="not deprecated">
  23325. <param name="tagName" type="java.lang.String"/>
  23326. <param name="tagValue" type="long"/>
  23327. <doc>
  23328. <![CDATA[Sets the named tag to the specified value.
  23329. @param tagName name of the tag
  23330. @param tagValue new value of the tag
  23331. @throws MetricsException if the tagName conflicts with the configuration]]>
  23332. </doc>
  23333. </method>
  23334. <method name="setTag"
  23335. abstract="false" native="false" synchronized="false"
  23336. static="false" final="false" visibility="public"
  23337. deprecated="not deprecated">
  23338. <param name="tagName" type="java.lang.String"/>
  23339. <param name="tagValue" type="short"/>
  23340. <doc>
  23341. <![CDATA[Sets the named tag to the specified value.
  23342. @param tagName name of the tag
  23343. @param tagValue new value of the tag
  23344. @throws MetricsException if the tagName conflicts with the configuration]]>
  23345. </doc>
  23346. </method>
  23347. <method name="setTag"
  23348. abstract="false" native="false" synchronized="false"
  23349. static="false" final="false" visibility="public"
  23350. deprecated="not deprecated">
  23351. <param name="tagName" type="java.lang.String"/>
  23352. <param name="tagValue" type="byte"/>
  23353. <doc>
  23354. <![CDATA[Sets the named tag to the specified value.
  23355. @param tagName name of the tag
  23356. @param tagValue new value of the tag
  23357. @throws MetricsException if the tagName conflicts with the configuration]]>
  23358. </doc>
  23359. </method>
  23360. <method name="removeTag"
  23361. abstract="false" native="false" synchronized="false"
  23362. static="false" final="false" visibility="public"
  23363. deprecated="not deprecated">
  23364. <param name="tagName" type="java.lang.String"/>
  23365. <doc>
  23366. <![CDATA[Removes any tag of the specified name.
  23367. @param tagName name of a tag]]>
  23368. </doc>
  23369. </method>
  23370. <method name="setMetric"
  23371. abstract="false" native="false" synchronized="false"
  23372. static="false" final="false" visibility="public"
  23373. deprecated="not deprecated">
  23374. <param name="metricName" type="java.lang.String"/>
  23375. <param name="metricValue" type="int"/>
  23376. <doc>
  23377. <![CDATA[Sets the named metric to the specified value.
  23378. @param metricName name of the metric
  23379. @param metricValue new value of the metric
  23380. @throws MetricsException if the metricName or the type of the metricValue
  23381. conflicts with the configuration]]>
  23382. </doc>
  23383. </method>
  23384. <method name="setMetric"
  23385. abstract="false" native="false" synchronized="false"
  23386. static="false" final="false" visibility="public"
  23387. deprecated="not deprecated">
  23388. <param name="metricName" type="java.lang.String"/>
  23389. <param name="metricValue" type="long"/>
  23390. <doc>
  23391. <![CDATA[Sets the named metric to the specified value.
  23392. @param metricName name of the metric
  23393. @param metricValue new value of the metric
  23394. @throws MetricsException if the metricName or the type of the metricValue
  23395. conflicts with the configuration]]>
  23396. </doc>
  23397. </method>
  23398. <method name="setMetric"
  23399. abstract="false" native="false" synchronized="false"
  23400. static="false" final="false" visibility="public"
  23401. deprecated="not deprecated">
  23402. <param name="metricName" type="java.lang.String"/>
  23403. <param name="metricValue" type="short"/>
  23404. <doc>
  23405. <![CDATA[Sets the named metric to the specified value.
  23406. @param metricName name of the metric
  23407. @param metricValue new value of the metric
  23408. @throws MetricsException if the metricName or the type of the metricValue
  23409. conflicts with the configuration]]>
  23410. </doc>
  23411. </method>
  23412. <method name="setMetric"
  23413. abstract="false" native="false" synchronized="false"
  23414. static="false" final="false" visibility="public"
  23415. deprecated="not deprecated">
  23416. <param name="metricName" type="java.lang.String"/>
  23417. <param name="metricValue" type="byte"/>
  23418. <doc>
  23419. <![CDATA[Sets the named metric to the specified value.
  23420. @param metricName name of the metric
  23421. @param metricValue new value of the metric
  23422. @throws MetricsException if the metricName or the type of the metricValue
  23423. conflicts with the configuration]]>
  23424. </doc>
  23425. </method>
  23426. <method name="setMetric"
  23427. abstract="false" native="false" synchronized="false"
  23428. static="false" final="false" visibility="public"
  23429. deprecated="not deprecated">
  23430. <param name="metricName" type="java.lang.String"/>
  23431. <param name="metricValue" type="float"/>
  23432. <doc>
  23433. <![CDATA[Sets the named metric to the specified value.
  23434. @param metricName name of the metric
  23435. @param metricValue new value of the metric
  23436. @throws MetricsException if the metricName or the type of the metricValue
  23437. conflicts with the configuration]]>
  23438. </doc>
  23439. </method>
  23440. <method name="incrMetric"
  23441. abstract="false" native="false" synchronized="false"
  23442. static="false" final="false" visibility="public"
  23443. deprecated="not deprecated">
  23444. <param name="metricName" type="java.lang.String"/>
  23445. <param name="metricValue" type="int"/>
  23446. <doc>
  23447. <![CDATA[Increments the named metric by the specified value.
  23448. @param metricName name of the metric
  23449. @param metricValue incremental value
  23450. @throws MetricsException if the metricName or the type of the metricValue
  23451. conflicts with the configuration]]>
  23452. </doc>
  23453. </method>
  23454. <method name="incrMetric"
  23455. abstract="false" native="false" synchronized="false"
  23456. static="false" final="false" visibility="public"
  23457. deprecated="not deprecated">
  23458. <param name="metricName" type="java.lang.String"/>
  23459. <param name="metricValue" type="long"/>
  23460. <doc>
  23461. <![CDATA[Increments the named metric by the specified value.
  23462. @param metricName name of the metric
  23463. @param metricValue incremental value
  23464. @throws MetricsException if the metricName or the type of the metricValue
  23465. conflicts with the configuration]]>
  23466. </doc>
  23467. </method>
  23468. <method name="incrMetric"
  23469. abstract="false" native="false" synchronized="false"
  23470. static="false" final="false" visibility="public"
  23471. deprecated="not deprecated">
  23472. <param name="metricName" type="java.lang.String"/>
  23473. <param name="metricValue" type="short"/>
  23474. <doc>
  23475. <![CDATA[Increments the named metric by the specified value.
  23476. @param metricName name of the metric
  23477. @param metricValue incremental value
  23478. @throws MetricsException if the metricName or the type of the metricValue
  23479. conflicts with the configuration]]>
  23480. </doc>
  23481. </method>
  23482. <method name="incrMetric"
  23483. abstract="false" native="false" synchronized="false"
  23484. static="false" final="false" visibility="public"
  23485. deprecated="not deprecated">
  23486. <param name="metricName" type="java.lang.String"/>
  23487. <param name="metricValue" type="byte"/>
  23488. <doc>
  23489. <![CDATA[Increments the named metric by the specified value.
  23490. @param metricName name of the metric
  23491. @param metricValue incremental value
  23492. @throws MetricsException if the metricName or the type of the metricValue
  23493. conflicts with the configuration]]>
  23494. </doc>
  23495. </method>
  23496. <method name="incrMetric"
  23497. abstract="false" native="false" synchronized="false"
  23498. static="false" final="false" visibility="public"
  23499. deprecated="not deprecated">
  23500. <param name="metricName" type="java.lang.String"/>
  23501. <param name="metricValue" type="float"/>
  23502. <doc>
  23503. <![CDATA[Increments the named metric by the specified value.
  23504. @param metricName name of the metric
  23505. @param metricValue incremental value
  23506. @throws MetricsException if the metricName or the type of the metricValue
  23507. conflicts with the configuration]]>
  23508. </doc>
  23509. </method>
  23510. <method name="update"
  23511. abstract="false" native="false" synchronized="false"
  23512. static="false" final="false" visibility="public"
  23513. deprecated="not deprecated">
  23514. <doc>
  23515. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  23516. If the tag values match an existing row, that row is updated;
  23517. otherwise, a new row is added.]]>
  23518. </doc>
  23519. </method>
  23520. <method name="remove"
  23521. abstract="false" native="false" synchronized="false"
  23522. static="false" final="false" visibility="public"
  23523. deprecated="not deprecated">
  23524. <doc>
  23525. <![CDATA[Removes, from the buffered data table, all rows having tags
  23526. that equal the tags that have been set on this record. For example,
  23527. if there are no tags on this record, all rows for this record name
  23528. would be removed. Or, if there is a single tag on this record, then
  23529. just rows containing a tag with the same name and value would be removed.]]>
  23530. </doc>
  23531. </method>
  23532. <doc>
  23533. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  23534. system. <p/>
  23535. A record name identifies the kind of data to be reported. For example, a
  23536. program reporting statistics relating to the disks on a computer might use
  23537. a record name "diskStats".<p/>
  23538. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  23539. continue the example, the "diskStats" record might use a tag named
  23540. "diskName" to identify a particular disk. Sometimes it is useful to have
  23541. more than one tag, so there might also be a "diskType" with value "ide" or
  23542. "scsi" or whatever.<p/>
  23543. A record also has zero or more <i>metrics</i>. These are the named
  23544. values that are to be reported to the metrics system. In the "diskStats"
  23545. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  23546. "kbReadPerSecond", etc.<p/>
  23547. The general procedure for using a MetricsRecord is to fill in its tag and
  23548. metric values, and then call <code>update()</code> to pass the record to the
  23549. client library.
  23550. Metric data is not immediately sent to the metrics system
  23551. each time that <code>update()</code> is called.
  23552. An internal table is maintained, identified by the record name. This
  23553. table has columns
  23554. corresponding to the tag and the metric names, and rows
  23555. corresponding to each unique set of tag values. An update
  23556. either modifies an existing row in the table, or adds a new row with a set of
  23557. tag values that are different from all the other rows. Note that if there
  23558. are no tags, then there can be at most one row in the table. <p/>
  23559. Once a row is added to the table, its data will be sent to the metrics system
  23560. on every timer period, whether or not it has been updated since the previous
  23561. timer period. If this is inappropriate, for example if metrics were being
  23562. reported by some transient object in an application, the <code>remove()</code>
  23563. method can be used to remove the row and thus stop the data from being
  23564. sent.<p/>
  23565. Note that the <code>update()</code> method is atomic. This means that it is
  23566. safe for different threads to be updating the same metric. More precisely,
  23567. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  23568. with the same set of tag names and tag values. Different threads should
  23569. <b>not</b> use the same MetricsRecord instance at the same time.
  23570. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23571. </doc>
  23572. </interface>
  23573. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  23574. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  23575. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  23576. abstract="false"
  23577. static="false" final="false" visibility="public"
  23578. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23579. <constructor name="MetricsServlet"
  23580. static="false" final="false" visibility="public"
  23581. deprecated="not deprecated">
  23582. </constructor>
  23583. <method name="doGet"
  23584. abstract="false" native="false" synchronized="false"
  23585. static="false" final="false" visibility="public"
  23586. deprecated="not deprecated">
  23587. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23588. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23589. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23590. <exception name="IOException" type="java.io.IOException"/>
  23591. </method>
  23592. <doc>
  23593. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  23594. textual representation (no promises are made for parseability), and
  23595. users can use "?format=json" for parseable output.
  23596. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23597. </doc>
  23598. </class>
  23599. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  23600. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  23601. <class name="MetricsUtil" extends="java.lang.Object"
  23602. abstract="false"
  23603. static="false" final="false" visibility="public"
  23604. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23605. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23606. abstract="false" native="false" synchronized="false"
  23607. static="true" final="false" visibility="public"
  23608. deprecated="not deprecated">
  23609. <param name="contextName" type="java.lang.String"/>
  23610. </method>
  23611. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23612. abstract="false" native="false" synchronized="false"
  23613. static="true" final="false" visibility="public"
  23614. deprecated="not deprecated">
  23615. <param name="refName" type="java.lang.String"/>
  23616. <param name="contextName" type="java.lang.String"/>
  23617. <doc>
  23618. <![CDATA[Utility method to return the named context.
  23619. If the desired context cannot be created for any reason, the exception
  23620. is logged, and a null context is returned.]]>
  23621. </doc>
  23622. </method>
  23623. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23624. abstract="false" native="false" synchronized="false"
  23625. static="true" final="false" visibility="public"
  23626. deprecated="not deprecated">
  23627. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23628. <param name="recordName" type="java.lang.String"/>
  23629. <doc>
  23630. <![CDATA[Utility method to create and return new metrics record instance within the
  23631. given context. This record is tagged with the host name.
  23632. @param context the context
  23633. @param recordName name of the record
  23634. @return newly created metrics record]]>
  23635. </doc>
  23636. </method>
  23637. <field name="LOG" type="org.apache.commons.logging.Log"
  23638. transient="false" volatile="false"
  23639. static="true" final="true" visibility="public"
  23640. deprecated="not deprecated">
  23641. </field>
  23642. <doc>
  23643. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  23644. For examples of usage, see NameNodeMetrics.
  23645. @see org.apache.hadoop.metrics.MetricsRecord
  23646. @see org.apache.hadoop.metrics.MetricsContext
  23647. @see org.apache.hadoop.metrics.ContextFactory
  23648. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23649. </doc>
  23650. </class>
  23651. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  23652. <!-- start interface org.apache.hadoop.metrics.Updater -->
  23653. <interface name="Updater" abstract="true"
  23654. static="false" final="false" visibility="public"
  23655. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23656. <method name="doUpdates"
  23657. abstract="false" native="false" synchronized="false"
  23658. static="false" final="false" visibility="public"
  23659. deprecated="not deprecated">
  23660. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23661. <doc>
  23662. <![CDATA[Timer-based call-back from the metric library.]]>
  23663. </doc>
  23664. </method>
  23665. <doc>
  23666. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  23667. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23668. </doc>
  23669. </interface>
  23670. <!-- end interface org.apache.hadoop.metrics.Updater -->
  23671. </package>
  23672. <package name="org.apache.hadoop.metrics.file">
  23673. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  23674. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23675. abstract="false"
  23676. static="false" final="false" visibility="public"
  23677. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  23678. <constructor name="FileContext"
  23679. static="false" final="false" visibility="public"
  23680. deprecated="not deprecated">
  23681. <doc>
  23682. <![CDATA[Creates a new instance of FileContext]]>
  23683. </doc>
  23684. </constructor>
  23685. <method name="init"
  23686. abstract="false" native="false" synchronized="false"
  23687. static="false" final="false" visibility="public"
  23688. deprecated="not deprecated">
  23689. <param name="contextName" type="java.lang.String"/>
  23690. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23691. </method>
  23692. <method name="getFileName" return="java.lang.String"
  23693. abstract="false" native="false" synchronized="false"
  23694. static="false" final="false" visibility="public"
  23695. deprecated="not deprecated">
  23696. <doc>
  23697. <![CDATA[Returns the configured file name, or null.]]>
  23698. </doc>
  23699. </method>
  23700. <method name="startMonitoring"
  23701. abstract="false" native="false" synchronized="false"
  23702. static="false" final="false" visibility="public"
  23703. deprecated="not deprecated">
  23704. <exception name="IOException" type="java.io.IOException"/>
  23705. <doc>
  23706. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  23707. file specified by the <code>fileName</code> attribute,
  23708. if specified. Otherwise the data will be written to standard
  23709. output.]]>
  23710. </doc>
  23711. </method>
  23712. <method name="stopMonitoring"
  23713. abstract="false" native="false" synchronized="false"
  23714. static="false" final="false" visibility="public"
  23715. deprecated="not deprecated">
  23716. <doc>
  23717. <![CDATA[Stops monitoring, closing the file.
  23718. @see #close()]]>
  23719. </doc>
  23720. </method>
  23721. <method name="emitRecord"
  23722. abstract="false" native="false" synchronized="false"
  23723. static="false" final="false" visibility="public"
  23724. deprecated="not deprecated">
  23725. <param name="contextName" type="java.lang.String"/>
  23726. <param name="recordName" type="java.lang.String"/>
  23727. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23728. <doc>
  23729. <![CDATA[Emits a metrics record to a file.]]>
  23730. </doc>
  23731. </method>
  23732. <method name="flush"
  23733. abstract="false" native="false" synchronized="false"
  23734. static="false" final="false" visibility="public"
  23735. deprecated="not deprecated">
  23736. <doc>
  23737. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  23738. </doc>
  23739. </method>
  23740. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  23741. transient="false" volatile="false"
  23742. static="true" final="true" visibility="protected"
  23743. deprecated="not deprecated">
  23744. </field>
  23745. <field name="PERIOD_PROPERTY" type="java.lang.String"
  23746. transient="false" volatile="false"
  23747. static="true" final="true" visibility="protected"
  23748. deprecated="not deprecated">
  23749. </field>
  23750. <doc>
  23751. <![CDATA[Metrics context for writing metrics to a file.<p/>
  23752. This class is configured by setting ContextFactory attributes which in turn
  23753. are usually configured through a properties file. All the attributes are
  23754. prefixed by the contextName. For example, the properties file might contain:
  23755. <pre>
  23756. myContextName.fileName=/tmp/metrics.log
  23757. myContextName.period=5
  23758. </pre>
  23759. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  23760. </doc>
  23761. </class>
  23762. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  23763. </package>
  23764. <package name="org.apache.hadoop.metrics.ganglia">
  23765. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23766. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23767. abstract="false"
  23768. static="false" final="false" visibility="public"
  23769. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23770. <constructor name="GangliaContext"
  23771. static="false" final="false" visibility="public"
  23772. deprecated="not deprecated">
  23773. <doc>
  23774. <![CDATA[Creates a new instance of GangliaContext]]>
  23775. </doc>
  23776. </constructor>
  23777. <method name="init"
  23778. abstract="false" native="false" synchronized="false"
  23779. static="false" final="false" visibility="public"
  23780. deprecated="not deprecated">
  23781. <param name="contextName" type="java.lang.String"/>
  23782. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23783. </method>
  23784. <method name="emitRecord"
  23785. abstract="false" native="false" synchronized="false"
  23786. static="false" final="false" visibility="public"
  23787. deprecated="not deprecated">
  23788. <param name="contextName" type="java.lang.String"/>
  23789. <param name="recordName" type="java.lang.String"/>
  23790. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23791. <exception name="IOException" type="java.io.IOException"/>
  23792. </method>
  23793. <method name="emitMetric"
  23794. abstract="false" native="false" synchronized="false"
  23795. static="false" final="false" visibility="protected"
  23796. deprecated="not deprecated">
  23797. <param name="name" type="java.lang.String"/>
  23798. <param name="type" type="java.lang.String"/>
  23799. <param name="value" type="java.lang.String"/>
  23800. <exception name="IOException" type="java.io.IOException"/>
  23801. </method>
  23802. <method name="getUnits" return="java.lang.String"
  23803. abstract="false" native="false" synchronized="false"
  23804. static="false" final="false" visibility="protected"
  23805. deprecated="not deprecated">
  23806. <param name="metricName" type="java.lang.String"/>
  23807. </method>
  23808. <method name="getSlope" return="int"
  23809. abstract="false" native="false" synchronized="false"
  23810. static="false" final="false" visibility="protected"
  23811. deprecated="not deprecated">
  23812. <param name="metricName" type="java.lang.String"/>
  23813. </method>
  23814. <method name="getTmax" return="int"
  23815. abstract="false" native="false" synchronized="false"
  23816. static="false" final="false" visibility="protected"
  23817. deprecated="not deprecated">
  23818. <param name="metricName" type="java.lang.String"/>
  23819. </method>
  23820. <method name="getDmax" return="int"
  23821. abstract="false" native="false" synchronized="false"
  23822. static="false" final="false" visibility="protected"
  23823. deprecated="not deprecated">
  23824. <param name="metricName" type="java.lang.String"/>
  23825. </method>
  23826. <method name="xdr_string"
  23827. abstract="false" native="false" synchronized="false"
  23828. static="false" final="false" visibility="protected"
  23829. deprecated="not deprecated">
  23830. <param name="s" type="java.lang.String"/>
  23831. <doc>
  23832. <![CDATA[Puts a string into the buffer by first writing the size of the string
  23833. as an int, followed by the bytes of the string, padded if necessary to
  23834. a multiple of 4.]]>
  23835. </doc>
  23836. </method>
  23837. <method name="xdr_int"
  23838. abstract="false" native="false" synchronized="false"
  23839. static="false" final="false" visibility="protected"
  23840. deprecated="not deprecated">
  23841. <param name="i" type="int"/>
  23842. <doc>
  23843. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  23844. </doc>
  23845. </method>
  23846. <field name="buffer" type="byte[]"
  23847. transient="false" volatile="false"
  23848. static="false" final="false" visibility="protected"
  23849. deprecated="not deprecated">
  23850. </field>
  23851. <field name="offset" type="int"
  23852. transient="false" volatile="false"
  23853. static="false" final="false" visibility="protected"
  23854. deprecated="not deprecated">
  23855. </field>
  23856. <field name="metricsServers" type="java.util.List"
  23857. transient="false" volatile="false"
  23858. static="false" final="false" visibility="protected"
  23859. deprecated="not deprecated">
  23860. </field>
  23861. <field name="datagramSocket" type="java.net.DatagramSocket"
  23862. transient="false" volatile="false"
  23863. static="false" final="false" visibility="protected"
  23864. deprecated="not deprecated">
  23865. </field>
  23866. <doc>
  23867. <![CDATA[Context for sending metrics to Ganglia.
  23868. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23869. </doc>
  23870. </class>
  23871. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23872. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23873. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  23874. abstract="false"
  23875. static="false" final="false" visibility="public"
  23876. deprecated="not deprecated">
  23877. <constructor name="GangliaContext31"
  23878. static="false" final="false" visibility="public"
  23879. deprecated="not deprecated">
  23880. </constructor>
  23881. <method name="init"
  23882. abstract="false" native="false" synchronized="false"
  23883. static="false" final="false" visibility="public"
  23884. deprecated="not deprecated">
  23885. <param name="contextName" type="java.lang.String"/>
  23886. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23887. </method>
  23888. <method name="emitMetric"
  23889. abstract="false" native="false" synchronized="false"
  23890. static="false" final="false" visibility="protected"
  23891. deprecated="not deprecated">
  23892. <param name="name" type="java.lang.String"/>
  23893. <param name="type" type="java.lang.String"/>
  23894. <param name="value" type="java.lang.String"/>
  23895. <exception name="IOException" type="java.io.IOException"/>
  23896. </method>
  23897. <doc>
  23898. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  23899. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  23900. </doc>
  23901. </class>
  23902. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23903. </package>
  23904. <package name="org.apache.hadoop.metrics.jvm">
  23905. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  23906. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  23907. abstract="false"
  23908. static="false" final="false" visibility="public"
  23909. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  23910. <constructor name="EventCounter"
  23911. static="false" final="false" visibility="public"
  23912. deprecated="not deprecated">
  23913. </constructor>
  23914. <doc>
  23915. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23916. fatal, error and warn.
  23917. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  23918. </doc>
  23919. </class>
  23920. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  23921. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23922. <class name="JvmMetrics" extends="java.lang.Object"
  23923. abstract="false"
  23924. static="false" final="false" visibility="public"
  23925. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23926. <implements name="org.apache.hadoop.metrics.Updater"/>
  23927. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23928. abstract="false" native="false" synchronized="true"
  23929. static="true" final="false" visibility="public"
  23930. deprecated="not deprecated">
  23931. <param name="processName" type="java.lang.String"/>
  23932. <param name="sessionId" type="java.lang.String"/>
  23933. </method>
  23934. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23935. abstract="false" native="false" synchronized="true"
  23936. static="true" final="false" visibility="public"
  23937. deprecated="not deprecated">
  23938. <param name="processName" type="java.lang.String"/>
  23939. <param name="sessionId" type="java.lang.String"/>
  23940. <param name="recordName" type="java.lang.String"/>
  23941. </method>
  23942. <method name="doUpdates"
  23943. abstract="false" native="false" synchronized="false"
  23944. static="false" final="false" visibility="public"
  23945. deprecated="not deprecated">
  23946. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23947. <doc>
  23948. <![CDATA[This will be called periodically (with the period being configuration
  23949. dependent).]]>
  23950. </doc>
  23951. </method>
  23952. <doc>
  23953. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  23954. Any application can create an instance of this class in order to emit
  23955. Java VM metrics.
  23956. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23957. </doc>
  23958. </class>
  23959. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23960. </package>
  23961. <package name="org.apache.hadoop.metrics.spi">
  23962. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23963. <class name="AbstractMetricsContext" extends="java.lang.Object"
  23964. abstract="true"
  23965. static="false" final="false" visibility="public"
  23966. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23967. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  23968. <constructor name="AbstractMetricsContext"
  23969. static="false" final="false" visibility="protected"
  23970. deprecated="not deprecated">
  23971. <doc>
  23972. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  23973. </doc>
  23974. </constructor>
  23975. <method name="init"
  23976. abstract="false" native="false" synchronized="false"
  23977. static="false" final="false" visibility="public"
  23978. deprecated="not deprecated">
  23979. <param name="contextName" type="java.lang.String"/>
  23980. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23981. <doc>
  23982. <![CDATA[Initializes the context.]]>
  23983. </doc>
  23984. </method>
  23985. <method name="getAttribute" return="java.lang.String"
  23986. abstract="false" native="false" synchronized="false"
  23987. static="false" final="false" visibility="protected"
  23988. deprecated="not deprecated">
  23989. <param name="attributeName" type="java.lang.String"/>
  23990. <doc>
  23991. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  23992. </doc>
  23993. </method>
  23994. <method name="getAttributeTable" return="java.util.Map"
  23995. abstract="false" native="false" synchronized="false"
  23996. static="false" final="false" visibility="protected"
  23997. deprecated="not deprecated">
  23998. <param name="tableName" type="java.lang.String"/>
  23999. <doc>
  24000. <![CDATA[Returns an attribute-value map derived from the factory attributes
  24001. by finding all factory attributes that begin with
  24002. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  24003. those attributes with the contextName and tableName stripped off.]]>
  24004. </doc>
  24005. </method>
  24006. <method name="getContextName" return="java.lang.String"
  24007. abstract="false" native="false" synchronized="false"
  24008. static="false" final="false" visibility="public"
  24009. deprecated="not deprecated">
  24010. <doc>
  24011. <![CDATA[Returns the context name.]]>
  24012. </doc>
  24013. </method>
  24014. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24015. abstract="false" native="false" synchronized="false"
  24016. static="false" final="false" visibility="public"
  24017. deprecated="not deprecated">
  24018. <doc>
  24019. <![CDATA[Returns the factory by which this context was created.]]>
  24020. </doc>
  24021. </method>
  24022. <method name="startMonitoring"
  24023. abstract="false" native="false" synchronized="true"
  24024. static="false" final="false" visibility="public"
  24025. deprecated="not deprecated">
  24026. <exception name="IOException" type="java.io.IOException"/>
  24027. <doc>
  24028. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  24029. </doc>
  24030. </method>
  24031. <method name="stopMonitoring"
  24032. abstract="false" native="false" synchronized="true"
  24033. static="false" final="false" visibility="public"
  24034. deprecated="not deprecated">
  24035. <doc>
  24036. <![CDATA[Stops monitoring. This does not free buffered data.
  24037. @see #close()]]>
  24038. </doc>
  24039. </method>
  24040. <method name="isMonitoring" return="boolean"
  24041. abstract="false" native="false" synchronized="false"
  24042. static="false" final="false" visibility="public"
  24043. deprecated="not deprecated">
  24044. <doc>
  24045. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24046. </doc>
  24047. </method>
  24048. <method name="close"
  24049. abstract="false" native="false" synchronized="true"
  24050. static="false" final="false" visibility="public"
  24051. deprecated="not deprecated">
  24052. <doc>
  24053. <![CDATA[Stops monitoring and frees buffered data, returning this
  24054. object to its initial state.]]>
  24055. </doc>
  24056. </method>
  24057. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24058. abstract="false" native="false" synchronized="true"
  24059. static="false" final="true" visibility="public"
  24060. deprecated="not deprecated">
  24061. <param name="recordName" type="java.lang.String"/>
  24062. <doc>
  24063. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  24064. Throws an exception if the metrics implementation is configured with a fixed
  24065. set of record names and <code>recordName</code> is not in that set.
  24066. @param recordName the name of the record
  24067. @throws MetricsException if recordName conflicts with configuration data]]>
  24068. </doc>
  24069. </method>
  24070. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24071. abstract="false" native="false" synchronized="false"
  24072. static="false" final="false" visibility="protected"
  24073. deprecated="not deprecated">
  24074. <param name="recordName" type="java.lang.String"/>
  24075. <doc>
  24076. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  24077. @param recordName the name of the record
  24078. @return newly created instance of MetricsRecordImpl or subclass]]>
  24079. </doc>
  24080. </method>
  24081. <method name="registerUpdater"
  24082. abstract="false" native="false" synchronized="true"
  24083. static="false" final="false" visibility="public"
  24084. deprecated="not deprecated">
  24085. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24086. <doc>
  24087. <![CDATA[Registers a callback to be called at time intervals determined by
  24088. the configuration.
  24089. @param updater object to be run periodically; it should update
  24090. some metrics records]]>
  24091. </doc>
  24092. </method>
  24093. <method name="unregisterUpdater"
  24094. abstract="false" native="false" synchronized="true"
  24095. static="false" final="false" visibility="public"
  24096. deprecated="not deprecated">
  24097. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24098. <doc>
  24099. <![CDATA[Removes a callback, if it exists.
  24100. @param updater object to be removed from the callback list]]>
  24101. </doc>
  24102. </method>
  24103. <method name="getAllRecords" return="java.util.Map"
  24104. abstract="false" native="false" synchronized="true"
  24105. static="false" final="false" visibility="public"
  24106. deprecated="not deprecated">
  24107. <doc>
  24108. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24109. Useful for monitoring systems that are polling-based.
  24110. @return A non-null collection of all monitoring records.]]>
  24111. </doc>
  24112. </method>
  24113. <method name="emitRecord"
  24114. abstract="true" native="false" synchronized="false"
  24115. static="false" final="false" visibility="protected"
  24116. deprecated="not deprecated">
  24117. <param name="contextName" type="java.lang.String"/>
  24118. <param name="recordName" type="java.lang.String"/>
  24119. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24120. <exception name="IOException" type="java.io.IOException"/>
  24121. <doc>
  24122. <![CDATA[Sends a record to the metrics system.]]>
  24123. </doc>
  24124. </method>
  24125. <method name="flush"
  24126. abstract="false" native="false" synchronized="false"
  24127. static="false" final="false" visibility="protected"
  24128. deprecated="not deprecated">
  24129. <exception name="IOException" type="java.io.IOException"/>
  24130. <doc>
  24131. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  24132. Subclasses may override it in order to perform some kind of flush.]]>
  24133. </doc>
  24134. </method>
  24135. <method name="update"
  24136. abstract="false" native="false" synchronized="false"
  24137. static="false" final="false" visibility="protected"
  24138. deprecated="not deprecated">
  24139. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24140. <doc>
  24141. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  24142. the internal table of metric data.]]>
  24143. </doc>
  24144. </method>
  24145. <method name="remove"
  24146. abstract="false" native="false" synchronized="false"
  24147. static="false" final="false" visibility="protected"
  24148. deprecated="not deprecated">
  24149. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24150. <doc>
  24151. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  24152. the internal table of metric data. A row matches if it has the same
  24153. tag names and values as record, but it may also have additional
  24154. tags.]]>
  24155. </doc>
  24156. </method>
  24157. <method name="getPeriod" return="int"
  24158. abstract="false" native="false" synchronized="false"
  24159. static="false" final="false" visibility="public"
  24160. deprecated="not deprecated">
  24161. <doc>
  24162. <![CDATA[Returns the timer period.]]>
  24163. </doc>
  24164. </method>
  24165. <method name="setPeriod"
  24166. abstract="false" native="false" synchronized="false"
  24167. static="false" final="false" visibility="protected"
  24168. deprecated="not deprecated">
  24169. <param name="period" type="int"/>
  24170. <doc>
  24171. <![CDATA[Sets the timer period]]>
  24172. </doc>
  24173. </method>
  24174. <method name="parseAndSetPeriod"
  24175. abstract="false" native="false" synchronized="false"
  24176. static="false" final="false" visibility="protected"
  24177. deprecated="not deprecated">
  24178. <param name="attributeName" type="java.lang.String"/>
  24179. <doc>
  24180. <![CDATA[If a period is set in the attribute passed in, override
  24181. the default with it.]]>
  24182. </doc>
  24183. </method>
  24184. <doc>
  24185. <![CDATA[The main class of the Service Provider Interface. This class should be
  24186. extended in order to integrate the Metrics API with a specific metrics
  24187. client library. <p/>
  24188. This class implements the internal table of metric data, and the timer
  24189. on which data is to be sent to the metrics system. Subclasses must
  24190. override the abstract <code>emitRecord</code> method in order to transmit
  24191. the data. <p/>
  24192. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24193. </doc>
  24194. </class>
  24195. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24196. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  24197. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  24198. abstract="false"
  24199. static="true" final="false" visibility="public"
  24200. deprecated="not deprecated">
  24201. </class>
  24202. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  24203. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  24204. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  24205. abstract="false"
  24206. static="true" final="false" visibility="public"
  24207. deprecated="not deprecated">
  24208. <method name="containsAll" return="boolean"
  24209. abstract="false" native="false" synchronized="false"
  24210. static="false" final="false" visibility="public"
  24211. deprecated="not deprecated">
  24212. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  24213. <doc>
  24214. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  24215. </doc>
  24216. </method>
  24217. </class>
  24218. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  24219. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  24220. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24221. abstract="false"
  24222. static="false" final="false" visibility="public"
  24223. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24224. <constructor name="CompositeContext"
  24225. static="false" final="false" visibility="public"
  24226. deprecated="not deprecated">
  24227. </constructor>
  24228. <method name="init"
  24229. abstract="false" native="false" synchronized="false"
  24230. static="false" final="false" visibility="public"
  24231. deprecated="not deprecated">
  24232. <param name="contextName" type="java.lang.String"/>
  24233. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24234. </method>
  24235. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24236. abstract="false" native="false" synchronized="false"
  24237. static="false" final="false" visibility="public"
  24238. deprecated="not deprecated">
  24239. <param name="recordName" type="java.lang.String"/>
  24240. </method>
  24241. <method name="emitRecord"
  24242. abstract="false" native="false" synchronized="false"
  24243. static="false" final="false" visibility="protected"
  24244. deprecated="not deprecated">
  24245. <param name="contextName" type="java.lang.String"/>
  24246. <param name="recordName" type="java.lang.String"/>
  24247. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24248. <exception name="IOException" type="java.io.IOException"/>
  24249. </method>
  24250. <method name="flush"
  24251. abstract="false" native="false" synchronized="false"
  24252. static="false" final="false" visibility="protected"
  24253. deprecated="not deprecated">
  24254. <exception name="IOException" type="java.io.IOException"/>
  24255. </method>
  24256. <method name="startMonitoring"
  24257. abstract="false" native="false" synchronized="false"
  24258. static="false" final="false" visibility="public"
  24259. deprecated="not deprecated">
  24260. <exception name="IOException" type="java.io.IOException"/>
  24261. </method>
  24262. <method name="stopMonitoring"
  24263. abstract="false" native="false" synchronized="false"
  24264. static="false" final="false" visibility="public"
  24265. deprecated="not deprecated">
  24266. </method>
  24267. <method name="isMonitoring" return="boolean"
  24268. abstract="false" native="false" synchronized="false"
  24269. static="false" final="false" visibility="public"
  24270. deprecated="not deprecated">
  24271. <doc>
  24272. <![CDATA[Return true if all subcontexts are monitoring.]]>
  24273. </doc>
  24274. </method>
  24275. <method name="close"
  24276. abstract="false" native="false" synchronized="false"
  24277. static="false" final="false" visibility="public"
  24278. deprecated="not deprecated">
  24279. </method>
  24280. <method name="registerUpdater"
  24281. abstract="false" native="false" synchronized="false"
  24282. static="false" final="false" visibility="public"
  24283. deprecated="not deprecated">
  24284. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24285. </method>
  24286. <method name="unregisterUpdater"
  24287. abstract="false" native="false" synchronized="false"
  24288. static="false" final="false" visibility="public"
  24289. deprecated="not deprecated">
  24290. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24291. </method>
  24292. <doc>
  24293. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24294. </doc>
  24295. </class>
  24296. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  24297. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  24298. <class name="MetricsRecordImpl" extends="java.lang.Object"
  24299. abstract="false"
  24300. static="false" final="false" visibility="public"
  24301. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24302. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  24303. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24304. static="false" final="false" visibility="protected"
  24305. deprecated="not deprecated">
  24306. <doc>
  24307. <![CDATA[Creates a new instance of FileRecord]]>
  24308. </doc>
  24309. </constructor>
  24310. <method name="getRecordName" return="java.lang.String"
  24311. abstract="false" native="false" synchronized="false"
  24312. static="false" final="false" visibility="public"
  24313. deprecated="not deprecated">
  24314. <doc>
  24315. <![CDATA[Returns the record name.
  24316. @return the record name]]>
  24317. </doc>
  24318. </method>
  24319. <method name="setTag"
  24320. abstract="false" native="false" synchronized="false"
  24321. static="false" final="false" visibility="public"
  24322. deprecated="not deprecated">
  24323. <param name="tagName" type="java.lang.String"/>
  24324. <param name="tagValue" type="java.lang.String"/>
  24325. <doc>
  24326. <![CDATA[Sets the named tag to the specified value.
  24327. @param tagName name of the tag
  24328. @param tagValue new value of the tag
  24329. @throws MetricsException if the tagName conflicts with the configuration]]>
  24330. </doc>
  24331. </method>
  24332. <method name="setTag"
  24333. abstract="false" native="false" synchronized="false"
  24334. static="false" final="false" visibility="public"
  24335. deprecated="not deprecated">
  24336. <param name="tagName" type="java.lang.String"/>
  24337. <param name="tagValue" type="int"/>
  24338. <doc>
  24339. <![CDATA[Sets the named tag to the specified value.
  24340. @param tagName name of the tag
  24341. @param tagValue new value of the tag
  24342. @throws MetricsException if the tagName conflicts with the configuration]]>
  24343. </doc>
  24344. </method>
  24345. <method name="setTag"
  24346. abstract="false" native="false" synchronized="false"
  24347. static="false" final="false" visibility="public"
  24348. deprecated="not deprecated">
  24349. <param name="tagName" type="java.lang.String"/>
  24350. <param name="tagValue" type="long"/>
  24351. <doc>
  24352. <![CDATA[Sets the named tag to the specified value.
  24353. @param tagName name of the tag
  24354. @param tagValue new value of the tag
  24355. @throws MetricsException if the tagName conflicts with the configuration]]>
  24356. </doc>
  24357. </method>
  24358. <method name="setTag"
  24359. abstract="false" native="false" synchronized="false"
  24360. static="false" final="false" visibility="public"
  24361. deprecated="not deprecated">
  24362. <param name="tagName" type="java.lang.String"/>
  24363. <param name="tagValue" type="short"/>
  24364. <doc>
  24365. <![CDATA[Sets the named tag to the specified value.
  24366. @param tagName name of the tag
  24367. @param tagValue new value of the tag
  24368. @throws MetricsException if the tagName conflicts with the configuration]]>
  24369. </doc>
  24370. </method>
  24371. <method name="setTag"
  24372. abstract="false" native="false" synchronized="false"
  24373. static="false" final="false" visibility="public"
  24374. deprecated="not deprecated">
  24375. <param name="tagName" type="java.lang.String"/>
  24376. <param name="tagValue" type="byte"/>
  24377. <doc>
  24378. <![CDATA[Sets the named tag to the specified value.
  24379. @param tagName name of the tag
  24380. @param tagValue new value of the tag
  24381. @throws MetricsException if the tagName conflicts with the configuration]]>
  24382. </doc>
  24383. </method>
  24384. <method name="removeTag"
  24385. abstract="false" native="false" synchronized="false"
  24386. static="false" final="false" visibility="public"
  24387. deprecated="not deprecated">
  24388. <param name="tagName" type="java.lang.String"/>
  24389. <doc>
  24390. <![CDATA[Removes any tag of the specified name.]]>
  24391. </doc>
  24392. </method>
  24393. <method name="setMetric"
  24394. abstract="false" native="false" synchronized="false"
  24395. static="false" final="false" visibility="public"
  24396. deprecated="not deprecated">
  24397. <param name="metricName" type="java.lang.String"/>
  24398. <param name="metricValue" type="int"/>
  24399. <doc>
  24400. <![CDATA[Sets the named metric to the specified value.
  24401. @param metricName name of the metric
  24402. @param metricValue new value of the metric
  24403. @throws MetricsException if the metricName or the type of the metricValue
  24404. conflicts with the configuration]]>
  24405. </doc>
  24406. </method>
  24407. <method name="setMetric"
  24408. abstract="false" native="false" synchronized="false"
  24409. static="false" final="false" visibility="public"
  24410. deprecated="not deprecated">
  24411. <param name="metricName" type="java.lang.String"/>
  24412. <param name="metricValue" type="long"/>
  24413. <doc>
  24414. <![CDATA[Sets the named metric to the specified value.
  24415. @param metricName name of the metric
  24416. @param metricValue new value of the metric
  24417. @throws MetricsException if the metricName or the type of the metricValue
  24418. conflicts with the configuration]]>
  24419. </doc>
  24420. </method>
  24421. <method name="setMetric"
  24422. abstract="false" native="false" synchronized="false"
  24423. static="false" final="false" visibility="public"
  24424. deprecated="not deprecated">
  24425. <param name="metricName" type="java.lang.String"/>
  24426. <param name="metricValue" type="short"/>
  24427. <doc>
  24428. <![CDATA[Sets the named metric to the specified value.
  24429. @param metricName name of the metric
  24430. @param metricValue new value of the metric
  24431. @throws MetricsException if the metricName or the type of the metricValue
  24432. conflicts with the configuration]]>
  24433. </doc>
  24434. </method>
  24435. <method name="setMetric"
  24436. abstract="false" native="false" synchronized="false"
  24437. static="false" final="false" visibility="public"
  24438. deprecated="not deprecated">
  24439. <param name="metricName" type="java.lang.String"/>
  24440. <param name="metricValue" type="byte"/>
  24441. <doc>
  24442. <![CDATA[Sets the named metric to the specified value.
  24443. @param metricName name of the metric
  24444. @param metricValue new value of the metric
  24445. @throws MetricsException if the metricName or the type of the metricValue
  24446. conflicts with the configuration]]>
  24447. </doc>
  24448. </method>
  24449. <method name="setMetric"
  24450. abstract="false" native="false" synchronized="false"
  24451. static="false" final="false" visibility="public"
  24452. deprecated="not deprecated">
  24453. <param name="metricName" type="java.lang.String"/>
  24454. <param name="metricValue" type="float"/>
  24455. <doc>
  24456. <![CDATA[Sets the named metric to the specified value.
  24457. @param metricName name of the metric
  24458. @param metricValue new value of the metric
  24459. @throws MetricsException if the metricName or the type of the metricValue
  24460. conflicts with the configuration]]>
  24461. </doc>
  24462. </method>
  24463. <method name="incrMetric"
  24464. abstract="false" native="false" synchronized="false"
  24465. static="false" final="false" visibility="public"
  24466. deprecated="not deprecated">
  24467. <param name="metricName" type="java.lang.String"/>
  24468. <param name="metricValue" type="int"/>
  24469. <doc>
  24470. <![CDATA[Increments the named metric by the specified value.
  24471. @param metricName name of the metric
  24472. @param metricValue incremental value
  24473. @throws MetricsException if the metricName or the type of the metricValue
  24474. conflicts with the configuration]]>
  24475. </doc>
  24476. </method>
  24477. <method name="incrMetric"
  24478. abstract="false" native="false" synchronized="false"
  24479. static="false" final="false" visibility="public"
  24480. deprecated="not deprecated">
  24481. <param name="metricName" type="java.lang.String"/>
  24482. <param name="metricValue" type="long"/>
  24483. <doc>
  24484. <![CDATA[Increments the named metric by the specified value.
  24485. @param metricName name of the metric
  24486. @param metricValue incremental value
  24487. @throws MetricsException if the metricName or the type of the metricValue
  24488. conflicts with the configuration]]>
  24489. </doc>
  24490. </method>
  24491. <method name="incrMetric"
  24492. abstract="false" native="false" synchronized="false"
  24493. static="false" final="false" visibility="public"
  24494. deprecated="not deprecated">
  24495. <param name="metricName" type="java.lang.String"/>
  24496. <param name="metricValue" type="short"/>
  24497. <doc>
  24498. <![CDATA[Increments the named metric by the specified value.
  24499. @param metricName name of the metric
  24500. @param metricValue incremental value
  24501. @throws MetricsException if the metricName or the type of the metricValue
  24502. conflicts with the configuration]]>
  24503. </doc>
  24504. </method>
  24505. <method name="incrMetric"
  24506. abstract="false" native="false" synchronized="false"
  24507. static="false" final="false" visibility="public"
  24508. deprecated="not deprecated">
  24509. <param name="metricName" type="java.lang.String"/>
  24510. <param name="metricValue" type="byte"/>
  24511. <doc>
  24512. <![CDATA[Increments the named metric by the specified value.
  24513. @param metricName name of the metric
  24514. @param metricValue incremental value
  24515. @throws MetricsException if the metricName or the type of the metricValue
  24516. conflicts with the configuration]]>
  24517. </doc>
  24518. </method>
  24519. <method name="incrMetric"
  24520. abstract="false" native="false" synchronized="false"
  24521. static="false" final="false" visibility="public"
  24522. deprecated="not deprecated">
  24523. <param name="metricName" type="java.lang.String"/>
  24524. <param name="metricValue" type="float"/>
  24525. <doc>
  24526. <![CDATA[Increments the named metric by the specified value.
  24527. @param metricName name of the metric
  24528. @param metricValue incremental value
  24529. @throws MetricsException if the metricName or the type of the metricValue
  24530. conflicts with the configuration]]>
  24531. </doc>
  24532. </method>
  24533. <method name="update"
  24534. abstract="false" native="false" synchronized="false"
  24535. static="false" final="false" visibility="public"
  24536. deprecated="not deprecated">
  24537. <doc>
  24538. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24539. If the tag values match an existing row, that row is updated;
  24540. otherwise, a new row is added.]]>
  24541. </doc>
  24542. </method>
  24543. <method name="remove"
  24544. abstract="false" native="false" synchronized="false"
  24545. static="false" final="false" visibility="public"
  24546. deprecated="not deprecated">
  24547. <doc>
  24548. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  24549. that equal the tags that have been set on this record.]]>
  24550. </doc>
  24551. </method>
  24552. <doc>
  24553. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  24554. from which it was created, and delegates back to it on <code>update</code>
  24555. and <code>remove()</code>.
  24556. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24557. </doc>
  24558. </class>
  24559. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  24560. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  24561. <class name="MetricValue" extends="java.lang.Object"
  24562. abstract="false"
  24563. static="false" final="false" visibility="public"
  24564. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24565. <constructor name="MetricValue" type="java.lang.Number, boolean"
  24566. static="false" final="false" visibility="public"
  24567. deprecated="not deprecated">
  24568. <doc>
  24569. <![CDATA[Creates a new instance of MetricValue]]>
  24570. </doc>
  24571. </constructor>
  24572. <method name="isIncrement" return="boolean"
  24573. abstract="false" native="false" synchronized="false"
  24574. static="false" final="false" visibility="public"
  24575. deprecated="not deprecated">
  24576. </method>
  24577. <method name="isAbsolute" return="boolean"
  24578. abstract="false" native="false" synchronized="false"
  24579. static="false" final="false" visibility="public"
  24580. deprecated="not deprecated">
  24581. </method>
  24582. <method name="getNumber" return="java.lang.Number"
  24583. abstract="false" native="false" synchronized="false"
  24584. static="false" final="false" visibility="public"
  24585. deprecated="not deprecated">
  24586. </method>
  24587. <field name="ABSOLUTE" type="boolean"
  24588. transient="false" volatile="false"
  24589. static="true" final="true" visibility="public"
  24590. deprecated="not deprecated">
  24591. </field>
  24592. <field name="INCREMENT" type="boolean"
  24593. transient="false" volatile="false"
  24594. static="true" final="true" visibility="public"
  24595. deprecated="not deprecated">
  24596. </field>
  24597. <doc>
  24598. <![CDATA[A Number that is either an absolute or an incremental amount.
  24599. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24600. </doc>
  24601. </class>
  24602. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  24603. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  24604. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24605. abstract="false"
  24606. static="false" final="false" visibility="public"
  24607. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24608. <constructor name="NoEmitMetricsContext"
  24609. static="false" final="false" visibility="public"
  24610. deprecated="not deprecated">
  24611. <doc>
  24612. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  24613. </doc>
  24614. </constructor>
  24615. <method name="init"
  24616. abstract="false" native="false" synchronized="false"
  24617. static="false" final="false" visibility="public"
  24618. deprecated="not deprecated">
  24619. <param name="contextName" type="java.lang.String"/>
  24620. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24621. </method>
  24622. <method name="emitRecord"
  24623. abstract="false" native="false" synchronized="false"
  24624. static="false" final="false" visibility="protected"
  24625. deprecated="not deprecated">
  24626. <param name="contextName" type="java.lang.String"/>
  24627. <param name="recordName" type="java.lang.String"/>
  24628. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24629. <doc>
  24630. <![CDATA[Do-nothing version of emitRecord]]>
  24631. </doc>
  24632. </method>
  24633. <doc>
  24634. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  24635. does save it for retrieval with getAllRecords().
  24636. This is useful if you want to support {@link MetricsServlet}, but
  24637. not emit metrics in any other way.
  24638. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24639. </doc>
  24640. </class>
  24641. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  24642. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  24643. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24644. abstract="false"
  24645. static="false" final="false" visibility="public"
  24646. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24647. <constructor name="NullContext"
  24648. static="false" final="false" visibility="public"
  24649. deprecated="not deprecated">
  24650. <doc>
  24651. <![CDATA[Creates a new instance of NullContext]]>
  24652. </doc>
  24653. </constructor>
  24654. <method name="startMonitoring"
  24655. abstract="false" native="false" synchronized="false"
  24656. static="false" final="false" visibility="public"
  24657. deprecated="not deprecated">
  24658. <doc>
  24659. <![CDATA[Do-nothing version of startMonitoring]]>
  24660. </doc>
  24661. </method>
  24662. <method name="emitRecord"
  24663. abstract="false" native="false" synchronized="false"
  24664. static="false" final="false" visibility="protected"
  24665. deprecated="not deprecated">
  24666. <param name="contextName" type="java.lang.String"/>
  24667. <param name="recordName" type="java.lang.String"/>
  24668. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24669. <doc>
  24670. <![CDATA[Do-nothing version of emitRecord]]>
  24671. </doc>
  24672. </method>
  24673. <method name="update"
  24674. abstract="false" native="false" synchronized="false"
  24675. static="false" final="false" visibility="protected"
  24676. deprecated="not deprecated">
  24677. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24678. <doc>
  24679. <![CDATA[Do-nothing version of update]]>
  24680. </doc>
  24681. </method>
  24682. <method name="remove"
  24683. abstract="false" native="false" synchronized="false"
  24684. static="false" final="false" visibility="protected"
  24685. deprecated="not deprecated">
  24686. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24687. <doc>
  24688. <![CDATA[Do-nothing version of remove]]>
  24689. </doc>
  24690. </method>
  24691. <doc>
  24692. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  24693. default context, so that no performance data is emitted if no configuration
  24694. data is found.
  24695. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24696. </doc>
  24697. </class>
  24698. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  24699. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24700. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24701. abstract="false"
  24702. static="false" final="false" visibility="public"
  24703. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24704. <constructor name="NullContextWithUpdateThread"
  24705. static="false" final="false" visibility="public"
  24706. deprecated="not deprecated">
  24707. <doc>
  24708. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  24709. </doc>
  24710. </constructor>
  24711. <method name="init"
  24712. abstract="false" native="false" synchronized="false"
  24713. static="false" final="false" visibility="public"
  24714. deprecated="not deprecated">
  24715. <param name="contextName" type="java.lang.String"/>
  24716. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24717. </method>
  24718. <method name="emitRecord"
  24719. abstract="false" native="false" synchronized="false"
  24720. static="false" final="false" visibility="protected"
  24721. deprecated="not deprecated">
  24722. <param name="contextName" type="java.lang.String"/>
  24723. <param name="recordName" type="java.lang.String"/>
  24724. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24725. <doc>
  24726. <![CDATA[Do-nothing version of emitRecord]]>
  24727. </doc>
  24728. </method>
  24729. <method name="update"
  24730. abstract="false" native="false" synchronized="false"
  24731. static="false" final="false" visibility="protected"
  24732. deprecated="not deprecated">
  24733. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24734. <doc>
  24735. <![CDATA[Do-nothing version of update]]>
  24736. </doc>
  24737. </method>
  24738. <method name="remove"
  24739. abstract="false" native="false" synchronized="false"
  24740. static="false" final="false" visibility="protected"
  24741. deprecated="not deprecated">
  24742. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24743. <doc>
  24744. <![CDATA[Do-nothing version of remove]]>
  24745. </doc>
  24746. </method>
  24747. <doc>
  24748. <![CDATA[A null context which has a thread calling
  24749. periodically when monitoring is started. This keeps the data sampled
  24750. correctly.
  24751. In all other respects, this is like the NULL context: No data is emitted.
  24752. This is suitable for Monitoring systems like JMX which reads the metrics
  24753. when someone reads the data from JMX.
  24754. The default impl of start and stop monitoring:
  24755. is the AbstractMetricsContext is good enough.
  24756. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24757. </doc>
  24758. </class>
  24759. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24760. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  24761. <class name="OutputRecord" extends="java.lang.Object"
  24762. abstract="false"
  24763. static="false" final="false" visibility="public"
  24764. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24765. <method name="getTagNames" return="java.util.Set"
  24766. abstract="false" native="false" synchronized="false"
  24767. static="false" final="false" visibility="public"
  24768. deprecated="not deprecated">
  24769. <doc>
  24770. <![CDATA[Returns the set of tag names]]>
  24771. </doc>
  24772. </method>
  24773. <method name="getTag" return="java.lang.Object"
  24774. abstract="false" native="false" synchronized="false"
  24775. static="false" final="false" visibility="public"
  24776. deprecated="not deprecated">
  24777. <param name="name" type="java.lang.String"/>
  24778. <doc>
  24779. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  24780. @return the tag value, or null if there is no such tag]]>
  24781. </doc>
  24782. </method>
  24783. <method name="getMetricNames" return="java.util.Set"
  24784. abstract="false" native="false" synchronized="false"
  24785. static="false" final="false" visibility="public"
  24786. deprecated="not deprecated">
  24787. <doc>
  24788. <![CDATA[Returns the set of metric names.]]>
  24789. </doc>
  24790. </method>
  24791. <method name="getMetric" return="java.lang.Number"
  24792. abstract="false" native="false" synchronized="false"
  24793. static="false" final="false" visibility="public"
  24794. deprecated="not deprecated">
  24795. <param name="name" type="java.lang.String"/>
  24796. <doc>
  24797. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  24798. </doc>
  24799. </method>
  24800. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  24801. abstract="false" native="false" synchronized="false"
  24802. static="false" final="false" visibility="public"
  24803. deprecated="not deprecated">
  24804. <doc>
  24805. <![CDATA[Returns a copy of this record's tags.]]>
  24806. </doc>
  24807. </method>
  24808. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  24809. abstract="false" native="false" synchronized="false"
  24810. static="false" final="false" visibility="public"
  24811. deprecated="not deprecated">
  24812. <doc>
  24813. <![CDATA[Returns a copy of this record's metrics.]]>
  24814. </doc>
  24815. </method>
  24816. <doc>
  24817. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  24818. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24819. </doc>
  24820. </class>
  24821. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  24822. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  24823. <class name="Util" extends="java.lang.Object"
  24824. abstract="false"
  24825. static="false" final="false" visibility="public"
  24826. deprecated="not deprecated">
  24827. <method name="parse" return="java.util.List"
  24828. abstract="false" native="false" synchronized="false"
  24829. static="true" final="false" visibility="public"
  24830. deprecated="not deprecated">
  24831. <param name="specs" type="java.lang.String"/>
  24832. <param name="defaultPort" type="int"/>
  24833. <doc>
  24834. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  24835. of the form <i>hostname</i> or <i>hostname:port</i>. If
  24836. the specs string is null, defaults to localhost:defaultPort.
  24837. @return a list of InetSocketAddress objects.]]>
  24838. </doc>
  24839. </method>
  24840. <doc>
  24841. <![CDATA[Static utility methods]]>
  24842. </doc>
  24843. </class>
  24844. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  24845. </package>
  24846. <package name="org.apache.hadoop.metrics.util">
  24847. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  24848. <class name="MBeanUtil" extends="java.lang.Object"
  24849. abstract="false"
  24850. static="false" final="false" visibility="public"
  24851. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  24852. <constructor name="MBeanUtil"
  24853. static="false" final="false" visibility="public"
  24854. deprecated="not deprecated">
  24855. </constructor>
  24856. <method name="registerMBean" return="javax.management.ObjectName"
  24857. abstract="false" native="false" synchronized="false"
  24858. static="true" final="false" visibility="public"
  24859. deprecated="not deprecated">
  24860. <param name="serviceName" type="java.lang.String"/>
  24861. <param name="nameName" type="java.lang.String"/>
  24862. <param name="theMbean" type="java.lang.Object"/>
  24863. <doc>
  24864. <![CDATA[Register the MBean using our standard MBeanName format
  24865. "hadoop:service=<serviceName>,name=<nameName>"
  24866. Where the <serviceName> and <nameName> are the supplied parameters
  24867. @param serviceName
  24868. @param nameName
  24869. @param theMbean - the MBean to register
  24870. @return the named used to register the MBean]]>
  24871. </doc>
  24872. </method>
  24873. <method name="unregisterMBean"
  24874. abstract="false" native="false" synchronized="false"
  24875. static="true" final="false" visibility="public"
  24876. deprecated="not deprecated">
  24877. <param name="mbeanName" type="javax.management.ObjectName"/>
  24878. </method>
  24879. <doc>
  24880. <![CDATA[This util class provides a method to register an MBean using
  24881. our standard naming convention as described in the doc
  24882. for {@link #registerMBean(String, String, Object)}
  24883. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  24884. </doc>
  24885. </class>
  24886. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  24887. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  24888. <class name="MetricsBase" extends="java.lang.Object"
  24889. abstract="true"
  24890. static="false" final="false" visibility="public"
  24891. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24892. <constructor name="MetricsBase" type="java.lang.String"
  24893. static="false" final="false" visibility="protected"
  24894. deprecated="not deprecated">
  24895. </constructor>
  24896. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  24897. static="false" final="false" visibility="protected"
  24898. deprecated="not deprecated">
  24899. </constructor>
  24900. <method name="pushMetric"
  24901. abstract="true" native="false" synchronized="false"
  24902. static="false" final="false" visibility="public"
  24903. deprecated="not deprecated">
  24904. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24905. </method>
  24906. <method name="getName" return="java.lang.String"
  24907. abstract="false" native="false" synchronized="false"
  24908. static="false" final="false" visibility="public"
  24909. deprecated="not deprecated">
  24910. </method>
  24911. <method name="getDescription" return="java.lang.String"
  24912. abstract="false" native="false" synchronized="false"
  24913. static="false" final="false" visibility="public"
  24914. deprecated="not deprecated">
  24915. </method>
  24916. <field name="NO_DESCRIPTION" type="java.lang.String"
  24917. transient="false" volatile="false"
  24918. static="true" final="true" visibility="public"
  24919. deprecated="not deprecated">
  24920. </field>
  24921. <doc>
  24922. <![CDATA[This is base class for all metrics
  24923. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24924. </doc>
  24925. </class>
  24926. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  24927. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24928. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  24929. abstract="true"
  24930. static="false" final="false" visibility="public"
  24931. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24932. <implements name="javax.management.DynamicMBean"/>
  24933. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24934. static="false" final="false" visibility="protected"
  24935. deprecated="not deprecated">
  24936. </constructor>
  24937. <method name="getAttribute" return="java.lang.Object"
  24938. abstract="false" native="false" synchronized="false"
  24939. static="false" final="false" visibility="public"
  24940. deprecated="not deprecated">
  24941. <param name="attributeName" type="java.lang.String"/>
  24942. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24943. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24944. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24945. </method>
  24946. <method name="getAttributes" return="javax.management.AttributeList"
  24947. abstract="false" native="false" synchronized="false"
  24948. static="false" final="false" visibility="public"
  24949. deprecated="not deprecated">
  24950. <param name="attributeNames" type="java.lang.String[]"/>
  24951. </method>
  24952. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  24953. abstract="false" native="false" synchronized="false"
  24954. static="false" final="false" visibility="public"
  24955. deprecated="not deprecated">
  24956. </method>
  24957. <method name="invoke" return="java.lang.Object"
  24958. abstract="false" native="false" synchronized="false"
  24959. static="false" final="false" visibility="public"
  24960. deprecated="not deprecated">
  24961. <param name="actionName" type="java.lang.String"/>
  24962. <param name="parms" type="java.lang.Object[]"/>
  24963. <param name="signature" type="java.lang.String[]"/>
  24964. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24965. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24966. </method>
  24967. <method name="setAttribute"
  24968. abstract="false" native="false" synchronized="false"
  24969. static="false" final="false" visibility="public"
  24970. deprecated="not deprecated">
  24971. <param name="attribute" type="javax.management.Attribute"/>
  24972. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24973. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  24974. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24975. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24976. </method>
  24977. <method name="setAttributes" return="javax.management.AttributeList"
  24978. abstract="false" native="false" synchronized="false"
  24979. static="false" final="false" visibility="public"
  24980. deprecated="not deprecated">
  24981. <param name="attributes" type="javax.management.AttributeList"/>
  24982. </method>
  24983. <doc>
  24984. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  24985. metrics.
  24986. The metrics constructors registers metrics in a registry.
  24987. Different categories of metrics should be in differnt classes with their own
  24988. registry (as in NameNodeMetrics and DataNodeMetrics).
  24989. Then the MBean can be created passing the registry to the constructor.
  24990. The MBean should be then registered using a mbean name (example):
  24991. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  24992. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  24993. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  24994. "TestStatistics", theMBean);
  24995. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24996. </doc>
  24997. </class>
  24998. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24999. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25000. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25001. abstract="false"
  25002. static="false" final="false" visibility="public"
  25003. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  25004. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25005. static="false" final="false" visibility="public"
  25006. deprecated="not deprecated">
  25007. <doc>
  25008. <![CDATA[Constructor - create a new metric
  25009. @param nam the name of the metrics to be used to publish the metric
  25010. @param registry - where the metrics object will be registered]]>
  25011. </doc>
  25012. </constructor>
  25013. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25014. static="false" final="false" visibility="public"
  25015. deprecated="not deprecated">
  25016. <doc>
  25017. <![CDATA[Constructor - create a new metric
  25018. @param nam the name of the metrics to be used to publish the metric
  25019. @param registry - where the metrics object will be registered
  25020. A description of {@link #NO_DESCRIPTION} is used]]>
  25021. </doc>
  25022. </constructor>
  25023. <method name="set"
  25024. abstract="false" native="false" synchronized="true"
  25025. static="false" final="false" visibility="public"
  25026. deprecated="not deprecated">
  25027. <param name="newValue" type="int"/>
  25028. <doc>
  25029. <![CDATA[Set the value
  25030. @param newValue]]>
  25031. </doc>
  25032. </method>
  25033. <method name="get" return="int"
  25034. abstract="false" native="false" synchronized="true"
  25035. static="false" final="false" visibility="public"
  25036. deprecated="not deprecated">
  25037. <doc>
  25038. <![CDATA[Get value
  25039. @return the value last set]]>
  25040. </doc>
  25041. </method>
  25042. <method name="pushMetric"
  25043. abstract="false" native="false" synchronized="true"
  25044. static="false" final="false" visibility="public"
  25045. deprecated="not deprecated">
  25046. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25047. <doc>
  25048. <![CDATA[Push the metric to the mr.
  25049. The metric is pushed only if it was updated since last push
  25050. Note this does NOT push to JMX
  25051. (JMX gets the info via {@link #get()}
  25052. @param mr]]>
  25053. </doc>
  25054. </method>
  25055. <doc>
  25056. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  25057. but changes only when it is set.
  25058. Each time its value is set, it is published only *once* at the next update
  25059. call.
  25060. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  25061. </doc>
  25062. </class>
  25063. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25064. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  25065. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25066. abstract="false"
  25067. static="false" final="false" visibility="public"
  25068. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25069. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25070. static="false" final="false" visibility="public"
  25071. deprecated="not deprecated">
  25072. <doc>
  25073. <![CDATA[Constructor - create a new metric
  25074. @param nam the name of the metrics to be used to publish the metric
  25075. @param registry - where the metrics object will be registered]]>
  25076. </doc>
  25077. </constructor>
  25078. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25079. static="false" final="false" visibility="public"
  25080. deprecated="not deprecated">
  25081. <doc>
  25082. <![CDATA[Constructor - create a new metric
  25083. @param nam the name of the metrics to be used to publish the metric
  25084. @param registry - where the metrics object will be registered
  25085. A description of {@link #NO_DESCRIPTION} is used]]>
  25086. </doc>
  25087. </constructor>
  25088. <method name="set"
  25089. abstract="false" native="false" synchronized="true"
  25090. static="false" final="false" visibility="public"
  25091. deprecated="not deprecated">
  25092. <param name="newValue" type="long"/>
  25093. <doc>
  25094. <![CDATA[Set the value
  25095. @param newValue]]>
  25096. </doc>
  25097. </method>
  25098. <method name="get" return="long"
  25099. abstract="false" native="false" synchronized="true"
  25100. static="false" final="false" visibility="public"
  25101. deprecated="not deprecated">
  25102. <doc>
  25103. <![CDATA[Get value
  25104. @return the value last set]]>
  25105. </doc>
  25106. </method>
  25107. <method name="pushMetric"
  25108. abstract="false" native="false" synchronized="true"
  25109. static="false" final="false" visibility="public"
  25110. deprecated="not deprecated">
  25111. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25112. <doc>
  25113. <![CDATA[Push the metric to the mr.
  25114. The metric is pushed only if it was updated since last push
  25115. Note this does NOT push to JMX
  25116. (JMX gets the info via {@link #get()}
  25117. @param mr]]>
  25118. </doc>
  25119. </method>
  25120. <doc>
  25121. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  25122. but changes only when it is set.
  25123. Each time its value is set, it is published only *once* at the next update
  25124. call.
  25125. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25126. </doc>
  25127. </class>
  25128. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  25129. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  25130. <class name="MetricsRegistry" extends="java.lang.Object"
  25131. abstract="false"
  25132. static="false" final="false" visibility="public"
  25133. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  25134. <constructor name="MetricsRegistry"
  25135. static="false" final="false" visibility="public"
  25136. deprecated="not deprecated">
  25137. </constructor>
  25138. <method name="size" return="int"
  25139. abstract="false" native="false" synchronized="false"
  25140. static="false" final="false" visibility="public"
  25141. deprecated="not deprecated">
  25142. <doc>
  25143. <![CDATA[@return number of metrics in the registry]]>
  25144. </doc>
  25145. </method>
  25146. <method name="add"
  25147. abstract="false" native="false" synchronized="true"
  25148. static="false" final="false" visibility="public"
  25149. deprecated="not deprecated">
  25150. <param name="metricsName" type="java.lang.String"/>
  25151. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  25152. <doc>
  25153. <![CDATA[Add a new metrics to the registry
  25154. @param metricsName - the name
  25155. @param theMetricsObj - the metrics
  25156. @throws IllegalArgumentException if a name is already registered]]>
  25157. </doc>
  25158. </method>
  25159. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  25160. abstract="false" native="false" synchronized="true"
  25161. static="false" final="false" visibility="public"
  25162. deprecated="not deprecated">
  25163. <param name="metricsName" type="java.lang.String"/>
  25164. <doc>
  25165. <![CDATA[@param metricsName
  25166. @return the metrics if there is one registered by the supplied name.
  25167. Returns null if none is registered]]>
  25168. </doc>
  25169. </method>
  25170. <method name="getKeyList" return="java.util.Collection"
  25171. abstract="false" native="false" synchronized="true"
  25172. static="false" final="false" visibility="public"
  25173. deprecated="not deprecated">
  25174. <doc>
  25175. <![CDATA[@return the list of metrics names]]>
  25176. </doc>
  25177. </method>
  25178. <method name="getMetricsList" return="java.util.Collection"
  25179. abstract="false" native="false" synchronized="true"
  25180. static="false" final="false" visibility="public"
  25181. deprecated="not deprecated">
  25182. <doc>
  25183. <![CDATA[@return the list of metrics]]>
  25184. </doc>
  25185. </method>
  25186. <doc>
  25187. <![CDATA[This is the registry for metrics.
  25188. Related set of metrics should be declared in a holding class and registered
  25189. in a registry for those metrics which is also stored in the the holding class.
  25190. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  25191. </doc>
  25192. </class>
  25193. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  25194. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  25195. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25196. abstract="false"
  25197. static="false" final="false" visibility="public"
  25198. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  25199. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25200. static="false" final="false" visibility="public"
  25201. deprecated="not deprecated">
  25202. <doc>
  25203. <![CDATA[Constructor - create a new metric
  25204. @param nam the name of the metrics to be used to publish the metric
  25205. @param registry - where the metrics object will be registered
  25206. @param description - the description]]>
  25207. </doc>
  25208. </constructor>
  25209. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25210. static="false" final="false" visibility="public"
  25211. deprecated="not deprecated">
  25212. <doc>
  25213. <![CDATA[Constructor - create a new metric
  25214. @param nam the name of the metrics to be used to publish the metric
  25215. @param registry - where the metrics object will be registered
  25216. A description of {@link #NO_DESCRIPTION} is used]]>
  25217. </doc>
  25218. </constructor>
  25219. <method name="inc"
  25220. abstract="false" native="false" synchronized="true"
  25221. static="false" final="false" visibility="public"
  25222. deprecated="not deprecated">
  25223. <param name="incr" type="int"/>
  25224. <doc>
  25225. <![CDATA[Inc metrics for incr vlaue
  25226. @param incr - number of operations]]>
  25227. </doc>
  25228. </method>
  25229. <method name="inc"
  25230. abstract="false" native="false" synchronized="true"
  25231. static="false" final="false" visibility="public"
  25232. deprecated="not deprecated">
  25233. <doc>
  25234. <![CDATA[Inc metrics by one]]>
  25235. </doc>
  25236. </method>
  25237. <method name="pushMetric"
  25238. abstract="false" native="false" synchronized="true"
  25239. static="false" final="false" visibility="public"
  25240. deprecated="not deprecated">
  25241. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25242. <doc>
  25243. <![CDATA[Push the delta metrics to the mr.
  25244. The delta is since the last push/interval.
  25245. Note this does NOT push to JMX
  25246. (JMX gets the info via {@link #previousIntervalValue}
  25247. @param mr]]>
  25248. </doc>
  25249. </method>
  25250. <method name="getPreviousIntervalValue" return="int"
  25251. abstract="false" native="false" synchronized="true"
  25252. static="false" final="false" visibility="public"
  25253. deprecated="not deprecated">
  25254. <doc>
  25255. <![CDATA[The Value at the Previous interval
  25256. @return prev interval value]]>
  25257. </doc>
  25258. </method>
  25259. <method name="getCurrentIntervalValue" return="int"
  25260. abstract="false" native="false" synchronized="true"
  25261. static="false" final="false" visibility="public"
  25262. deprecated="not deprecated">
  25263. <doc>
  25264. <![CDATA[The Value at the current interval
  25265. @return prev interval value]]>
  25266. </doc>
  25267. </method>
  25268. <doc>
  25269. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  25270. varies over time (e.g. number of files created). The metrics is accumulated
  25271. over an interval (set in the metrics config file); the metrics is
  25272. published at the end of each interval and then
  25273. reset to zero. Hence the counter has the value in the current interval.
  25274. Note if one wants a time associated with the metric then use
  25275. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  25276. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  25277. </doc>
  25278. </class>
  25279. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  25280. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  25281. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25282. abstract="false"
  25283. static="false" final="false" visibility="public"
  25284. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  25285. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25286. static="false" final="false" visibility="public"
  25287. deprecated="not deprecated">
  25288. <doc>
  25289. <![CDATA[Constructor - create a new metric
  25290. @param nam the name of the metrics to be used to publish the metric
  25291. @param registry - where the metrics object will be registered]]>
  25292. </doc>
  25293. </constructor>
  25294. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25295. static="false" final="false" visibility="public"
  25296. deprecated="not deprecated">
  25297. <doc>
  25298. <![CDATA[Constructor - create a new metric
  25299. @param nam the name of the metrics to be used to publish the metric
  25300. @param registry - where the metrics object will be registered
  25301. A description of {@link #NO_DESCRIPTION} is used]]>
  25302. </doc>
  25303. </constructor>
  25304. <method name="inc"
  25305. abstract="false" native="false" synchronized="true"
  25306. static="false" final="false" visibility="public"
  25307. deprecated="not deprecated">
  25308. <param name="incr" type="long"/>
  25309. <doc>
  25310. <![CDATA[Inc metrics for incr vlaue
  25311. @param incr - number of operations]]>
  25312. </doc>
  25313. </method>
  25314. <method name="inc"
  25315. abstract="false" native="false" synchronized="true"
  25316. static="false" final="false" visibility="public"
  25317. deprecated="not deprecated">
  25318. <doc>
  25319. <![CDATA[Inc metrics by one]]>
  25320. </doc>
  25321. </method>
  25322. <method name="pushMetric"
  25323. abstract="false" native="false" synchronized="true"
  25324. static="false" final="false" visibility="public"
  25325. deprecated="not deprecated">
  25326. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25327. <doc>
  25328. <![CDATA[Push the delta metrics to the mr.
  25329. The delta is since the last push/interval.
  25330. Note this does NOT push to JMX
  25331. (JMX gets the info via {@link #previousIntervalValue}
  25332. @param mr]]>
  25333. </doc>
  25334. </method>
  25335. <method name="getPreviousIntervalValue" return="long"
  25336. abstract="false" native="false" synchronized="true"
  25337. static="false" final="false" visibility="public"
  25338. deprecated="not deprecated">
  25339. <doc>
  25340. <![CDATA[The Value at the Previous interval
  25341. @return prev interval value]]>
  25342. </doc>
  25343. </method>
  25344. <method name="getCurrentIntervalValue" return="long"
  25345. abstract="false" native="false" synchronized="true"
  25346. static="false" final="false" visibility="public"
  25347. deprecated="not deprecated">
  25348. <doc>
  25349. <![CDATA[The Value at the current interval
  25350. @return prev interval value]]>
  25351. </doc>
  25352. </method>
  25353. <doc>
  25354. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  25355. varies over time (e.g. number of files created). The metrics is accumulated
  25356. over an interval (set in the metrics config file); the metrics is
  25357. published at the end of each interval and then
  25358. reset to zero. Hence the counter has the value in the current interval.
  25359. Note if one wants a time associated with the metric then use
  25360. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  25361. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  25362. </doc>
  25363. </class>
  25364. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  25365. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  25366. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25367. abstract="false"
  25368. static="false" final="false" visibility="public"
  25369. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  25370. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25371. static="false" final="false" visibility="public"
  25372. deprecated="not deprecated">
  25373. <doc>
  25374. <![CDATA[Constructor - create a new metric
  25375. @param nam the name of the metrics to be used to publish the metric
  25376. @param registry - where the metrics object will be registered]]>
  25377. </doc>
  25378. </constructor>
  25379. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25380. static="false" final="false" visibility="public"
  25381. deprecated="not deprecated">
  25382. <doc>
  25383. <![CDATA[Constructor - create a new metric
  25384. @param nam the name of the metrics to be used to publish the metric
  25385. @param registry - where the metrics object will be registered
  25386. A description of {@link #NO_DESCRIPTION} is used]]>
  25387. </doc>
  25388. </constructor>
  25389. <method name="inc"
  25390. abstract="false" native="false" synchronized="true"
  25391. static="false" final="false" visibility="public"
  25392. deprecated="not deprecated">
  25393. <param name="numOps" type="int"/>
  25394. <param name="time" type="long"/>
  25395. <doc>
  25396. <![CDATA[Increment the metrics for numOps operations
  25397. @param numOps - number of operations
  25398. @param time - time for numOps operations]]>
  25399. </doc>
  25400. </method>
  25401. <method name="inc"
  25402. abstract="false" native="false" synchronized="true"
  25403. static="false" final="false" visibility="public"
  25404. deprecated="not deprecated">
  25405. <param name="time" type="long"/>
  25406. <doc>
  25407. <![CDATA[Increment the metrics for one operation
  25408. @param time for one operation]]>
  25409. </doc>
  25410. </method>
  25411. <method name="pushMetric"
  25412. abstract="false" native="false" synchronized="true"
  25413. static="false" final="false" visibility="public"
  25414. deprecated="not deprecated">
  25415. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25416. <doc>
  25417. <![CDATA[Push the delta metrics to the mr.
  25418. The delta is since the last push/interval.
  25419. Note this does NOT push to JMX
  25420. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  25421. {@link #getPreviousIntervalNumOps()}
  25422. @param mr]]>
  25423. </doc>
  25424. </method>
  25425. <method name="getPreviousIntervalNumOps" return="int"
  25426. abstract="false" native="false" synchronized="true"
  25427. static="false" final="false" visibility="public"
  25428. deprecated="not deprecated">
  25429. <doc>
  25430. <![CDATA[The number of operations in the previous interval
  25431. @return - ops in prev interval]]>
  25432. </doc>
  25433. </method>
  25434. <method name="getPreviousIntervalAverageTime" return="long"
  25435. abstract="false" native="false" synchronized="true"
  25436. static="false" final="false" visibility="public"
  25437. deprecated="not deprecated">
  25438. <doc>
  25439. <![CDATA[The average rate of an operation in the previous interval
  25440. @return - the average rate.]]>
  25441. </doc>
  25442. </method>
  25443. <method name="getMinTime" return="long"
  25444. abstract="false" native="false" synchronized="true"
  25445. static="false" final="false" visibility="public"
  25446. deprecated="not deprecated">
  25447. <doc>
  25448. <![CDATA[The min time for a single operation since the last reset
  25449. {@link #resetMinMax()}
  25450. @return min time for an operation]]>
  25451. </doc>
  25452. </method>
  25453. <method name="getMaxTime" return="long"
  25454. abstract="false" native="false" synchronized="true"
  25455. static="false" final="false" visibility="public"
  25456. deprecated="not deprecated">
  25457. <doc>
  25458. <![CDATA[The max time for a single operation since the last reset
  25459. {@link #resetMinMax()}
  25460. @return max time for an operation]]>
  25461. </doc>
  25462. </method>
  25463. <method name="resetMinMax"
  25464. abstract="false" native="false" synchronized="true"
  25465. static="false" final="false" visibility="public"
  25466. deprecated="not deprecated">
  25467. <doc>
  25468. <![CDATA[Reset the min max values]]>
  25469. </doc>
  25470. </method>
  25471. <doc>
  25472. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  25473. naturally varies over time (e.g. time taken to create a file).
  25474. The rate is averaged at each interval heart beat (the interval
  25475. is set in the metrics config file).
  25476. This class also keeps track of the min and max rates along with
  25477. a method to reset the min-max.
  25478. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  25479. </doc>
  25480. </class>
  25481. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  25482. </package>
  25483. <package name="org.apache.hadoop.metrics2">
  25484. <!-- start class org.apache.hadoop.metrics2.Metric -->
  25485. <class name="Metric" extends="java.lang.Object"
  25486. abstract="true"
  25487. static="false" final="false" visibility="public"
  25488. deprecated="not deprecated">
  25489. <constructor name="Metric" type="java.lang.String"
  25490. static="false" final="false" visibility="public"
  25491. deprecated="not deprecated">
  25492. <doc>
  25493. <![CDATA[Construct the metric with name only
  25494. @param name of the metric]]>
  25495. </doc>
  25496. </constructor>
  25497. <constructor name="Metric" type="java.lang.String, java.lang.String"
  25498. static="false" final="false" visibility="public"
  25499. deprecated="not deprecated">
  25500. <doc>
  25501. <![CDATA[Construct the metric with a name and a description
  25502. @param name of the metric
  25503. @param desc description of the metric]]>
  25504. </doc>
  25505. </constructor>
  25506. <method name="name" return="java.lang.String"
  25507. abstract="false" native="false" synchronized="false"
  25508. static="false" final="false" visibility="public"
  25509. deprecated="not deprecated">
  25510. <doc>
  25511. <![CDATA[Get the name of the metric
  25512. @return the name]]>
  25513. </doc>
  25514. </method>
  25515. <method name="description" return="java.lang.String"
  25516. abstract="false" native="false" synchronized="false"
  25517. static="false" final="false" visibility="public"
  25518. deprecated="not deprecated">
  25519. <doc>
  25520. <![CDATA[Get the description of the metric
  25521. @return the description]]>
  25522. </doc>
  25523. </method>
  25524. <method name="value" return="java.lang.Number"
  25525. abstract="true" native="false" synchronized="false"
  25526. static="false" final="false" visibility="public"
  25527. deprecated="not deprecated">
  25528. <doc>
  25529. <![CDATA[Get the value of the metric
  25530. @return the value of the metric]]>
  25531. </doc>
  25532. </method>
  25533. <method name="visit"
  25534. abstract="true" native="false" synchronized="false"
  25535. static="false" final="false" visibility="public"
  25536. deprecated="not deprecated">
  25537. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  25538. <doc>
  25539. <![CDATA[Accept a visitor interface
  25540. @param visitor of the metric]]>
  25541. </doc>
  25542. </method>
  25543. <method name="equals" return="boolean"
  25544. abstract="false" native="false" synchronized="false"
  25545. static="false" final="false" visibility="public"
  25546. deprecated="not deprecated">
  25547. <param name="obj" type="java.lang.Object"/>
  25548. </method>
  25549. <method name="hashCode" return="int"
  25550. abstract="false" native="false" synchronized="false"
  25551. static="false" final="false" visibility="public"
  25552. deprecated="not deprecated">
  25553. </method>
  25554. <method name="toString" return="java.lang.String"
  25555. abstract="false" native="false" synchronized="false"
  25556. static="false" final="false" visibility="public"
  25557. deprecated="not deprecated">
  25558. </method>
  25559. <field name="NO_DESCRIPTION" type="java.lang.String"
  25560. transient="false" volatile="false"
  25561. static="true" final="true" visibility="public"
  25562. deprecated="not deprecated">
  25563. </field>
  25564. <doc>
  25565. <![CDATA[The immutable metric]]>
  25566. </doc>
  25567. </class>
  25568. <!-- end class org.apache.hadoop.metrics2.Metric -->
  25569. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  25570. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  25571. abstract="true"
  25572. static="false" final="false" visibility="public"
  25573. deprecated="not deprecated">
  25574. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  25575. static="false" final="false" visibility="public"
  25576. deprecated="not deprecated">
  25577. <doc>
  25578. <![CDATA[Construct a counter metric
  25579. @param name of the metric
  25580. @param description of the metric]]>
  25581. </doc>
  25582. </constructor>
  25583. <method name="value" return="java.lang.Number"
  25584. abstract="true" native="false" synchronized="false"
  25585. static="false" final="false" visibility="public"
  25586. deprecated="not deprecated">
  25587. </method>
  25588. <doc>
  25589. <![CDATA[A generic immutable counter metric type
  25590. @param <T> value type of the metric]]>
  25591. </doc>
  25592. </class>
  25593. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  25594. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  25595. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  25596. abstract="true"
  25597. static="false" final="false" visibility="public"
  25598. deprecated="not deprecated">
  25599. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  25600. static="false" final="false" visibility="public"
  25601. deprecated="not deprecated">
  25602. <doc>
  25603. <![CDATA[Construct a gauge metric
  25604. @param name of the metric
  25605. @param description of the metric]]>
  25606. </doc>
  25607. </constructor>
  25608. <method name="value" return="java.lang.Number"
  25609. abstract="true" native="false" synchronized="false"
  25610. static="false" final="false" visibility="public"
  25611. deprecated="not deprecated">
  25612. </method>
  25613. <doc>
  25614. <![CDATA[A generic immutable gauge metric
  25615. @param <T> value type of the metric]]>
  25616. </doc>
  25617. </class>
  25618. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  25619. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  25620. <interface name="MetricsBuilder" abstract="true"
  25621. static="false" final="false" visibility="public"
  25622. deprecated="not deprecated">
  25623. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25624. abstract="false" native="false" synchronized="false"
  25625. static="false" final="false" visibility="public"
  25626. deprecated="not deprecated">
  25627. <param name="name" type="java.lang.String"/>
  25628. <doc>
  25629. <![CDATA[Add a metrics record
  25630. @param name of the record
  25631. @return a metrics record builder for the record]]>
  25632. </doc>
  25633. </method>
  25634. <doc>
  25635. <![CDATA[The metrics builder interface]]>
  25636. </doc>
  25637. </interface>
  25638. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  25639. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  25640. <class name="MetricsException" extends="java.lang.RuntimeException"
  25641. abstract="false"
  25642. static="false" final="false" visibility="public"
  25643. deprecated="not deprecated">
  25644. <constructor name="MetricsException" type="java.lang.String"
  25645. static="false" final="false" visibility="public"
  25646. deprecated="not deprecated">
  25647. <doc>
  25648. <![CDATA[Construct the exception with a message
  25649. @param message for the exception]]>
  25650. </doc>
  25651. </constructor>
  25652. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  25653. static="false" final="false" visibility="public"
  25654. deprecated="not deprecated">
  25655. <doc>
  25656. <![CDATA[Construct the exception with a message and a cause
  25657. @param message for the exception
  25658. @param cause of the exception]]>
  25659. </doc>
  25660. </constructor>
  25661. <constructor name="MetricsException" type="java.lang.Throwable"
  25662. static="false" final="false" visibility="public"
  25663. deprecated="not deprecated">
  25664. <doc>
  25665. <![CDATA[Construct the exception with a cause
  25666. @param cause of the exception]]>
  25667. </doc>
  25668. </constructor>
  25669. <doc>
  25670. <![CDATA[A general metrics exception wrapper]]>
  25671. </doc>
  25672. </class>
  25673. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  25674. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  25675. <class name="MetricsFilter" extends="java.lang.Object"
  25676. abstract="true"
  25677. static="false" final="false" visibility="public"
  25678. deprecated="not deprecated">
  25679. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25680. <constructor name="MetricsFilter"
  25681. static="false" final="false" visibility="public"
  25682. deprecated="not deprecated">
  25683. </constructor>
  25684. <method name="init"
  25685. abstract="true" native="false" synchronized="false"
  25686. static="false" final="false" visibility="public"
  25687. deprecated="not deprecated">
  25688. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25689. </method>
  25690. <method name="accepts" return="boolean"
  25691. abstract="true" native="false" synchronized="false"
  25692. static="false" final="false" visibility="public"
  25693. deprecated="not deprecated">
  25694. <param name="name" type="java.lang.String"/>
  25695. <doc>
  25696. <![CDATA[Whether to accept the name
  25697. @param name to filter on
  25698. @return true to accept; false otherwise.]]>
  25699. </doc>
  25700. </method>
  25701. <method name="accepts" return="boolean"
  25702. abstract="true" native="false" synchronized="false"
  25703. static="false" final="false" visibility="public"
  25704. deprecated="not deprecated">
  25705. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25706. <doc>
  25707. <![CDATA[Whether to accept the tag
  25708. @param tag to filter on
  25709. @return true to accept; false otherwise]]>
  25710. </doc>
  25711. </method>
  25712. <method name="accepts" return="boolean"
  25713. abstract="true" native="false" synchronized="false"
  25714. static="false" final="false" visibility="public"
  25715. deprecated="not deprecated">
  25716. <param name="tags" type="java.lang.Iterable"/>
  25717. <doc>
  25718. <![CDATA[Whether to accept the tags
  25719. @param tags to filter on
  25720. @return true to accept; false otherwise]]>
  25721. </doc>
  25722. </method>
  25723. <method name="accepts" return="boolean"
  25724. abstract="false" native="false" synchronized="false"
  25725. static="false" final="false" visibility="public"
  25726. deprecated="not deprecated">
  25727. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25728. <doc>
  25729. <![CDATA[Whether to accept the record
  25730. @param record to filter on
  25731. @return true to accept; false otherwise.]]>
  25732. </doc>
  25733. </method>
  25734. <doc>
  25735. <![CDATA[The metrics filter interface]]>
  25736. </doc>
  25737. </class>
  25738. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  25739. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25740. <interface name="MetricsPlugin" abstract="true"
  25741. static="false" final="false" visibility="public"
  25742. deprecated="not deprecated">
  25743. <method name="init"
  25744. abstract="false" native="false" synchronized="false"
  25745. static="false" final="false" visibility="public"
  25746. deprecated="not deprecated">
  25747. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25748. <doc>
  25749. <![CDATA[Initialize the plugin
  25750. @param conf the configuration object for the plugin]]>
  25751. </doc>
  25752. </method>
  25753. <doc>
  25754. <![CDATA[A fairly generic plugin interface]]>
  25755. </doc>
  25756. </interface>
  25757. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25758. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  25759. <interface name="MetricsRecord" abstract="true"
  25760. static="false" final="false" visibility="public"
  25761. deprecated="not deprecated">
  25762. <method name="timestamp" return="long"
  25763. abstract="false" native="false" synchronized="false"
  25764. static="false" final="false" visibility="public"
  25765. deprecated="not deprecated">
  25766. <doc>
  25767. <![CDATA[Get the timestamp of the metrics
  25768. @return the timestamp]]>
  25769. </doc>
  25770. </method>
  25771. <method name="name" return="java.lang.String"
  25772. abstract="false" native="false" synchronized="false"
  25773. static="false" final="false" visibility="public"
  25774. deprecated="not deprecated">
  25775. <doc>
  25776. <![CDATA[Get the record name of the metrics
  25777. @return the record name]]>
  25778. </doc>
  25779. </method>
  25780. <method name="context" return="java.lang.String"
  25781. abstract="false" native="false" synchronized="false"
  25782. static="false" final="false" visibility="public"
  25783. deprecated="not deprecated">
  25784. <doc>
  25785. <![CDATA[Get the context name of the metrics
  25786. @return the context name]]>
  25787. </doc>
  25788. </method>
  25789. <method name="tags" return="java.lang.Iterable"
  25790. abstract="false" native="false" synchronized="false"
  25791. static="false" final="false" visibility="public"
  25792. deprecated="not deprecated">
  25793. <doc>
  25794. <![CDATA[Get the tags of the record
  25795. @return the tags]]>
  25796. </doc>
  25797. </method>
  25798. <method name="metrics" return="java.lang.Iterable"
  25799. abstract="false" native="false" synchronized="false"
  25800. static="false" final="false" visibility="public"
  25801. deprecated="not deprecated">
  25802. <doc>
  25803. <![CDATA[Get the metrics of the record
  25804. @return the metrics]]>
  25805. </doc>
  25806. </method>
  25807. <doc>
  25808. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  25809. </doc>
  25810. </interface>
  25811. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  25812. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25813. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  25814. abstract="true"
  25815. static="false" final="false" visibility="public"
  25816. deprecated="not deprecated">
  25817. <constructor name="MetricsRecordBuilder"
  25818. static="false" final="false" visibility="public"
  25819. deprecated="not deprecated">
  25820. </constructor>
  25821. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25822. abstract="true" native="false" synchronized="false"
  25823. static="false" final="false" visibility="public"
  25824. deprecated="not deprecated">
  25825. <param name="name" type="java.lang.String"/>
  25826. <param name="description" type="java.lang.String"/>
  25827. <param name="value" type="java.lang.String"/>
  25828. <doc>
  25829. <![CDATA[Add a metrics tag
  25830. @param name of the tag
  25831. @param description of the tag
  25832. @param value of the tag
  25833. @return self]]>
  25834. </doc>
  25835. </method>
  25836. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25837. abstract="true" native="false" synchronized="false"
  25838. static="false" final="false" visibility="public"
  25839. deprecated="not deprecated">
  25840. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25841. <doc>
  25842. <![CDATA[Add an immutable metrics tag object
  25843. @param tag a pre-made tag object (potentially save an object construction)
  25844. @return self]]>
  25845. </doc>
  25846. </method>
  25847. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25848. abstract="true" native="false" synchronized="false"
  25849. static="false" final="false" visibility="public"
  25850. deprecated="not deprecated">
  25851. <param name="value" type="java.lang.String"/>
  25852. <doc>
  25853. <![CDATA[Set the context tag
  25854. @param value of the context
  25855. @return self]]>
  25856. </doc>
  25857. </method>
  25858. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25859. abstract="true" native="false" synchronized="false"
  25860. static="false" final="false" visibility="public"
  25861. deprecated="not deprecated">
  25862. <param name="name" type="java.lang.String"/>
  25863. <param name="description" type="java.lang.String"/>
  25864. <param name="value" type="int"/>
  25865. <doc>
  25866. <![CDATA[Add an int counter metric
  25867. @param name of the metric
  25868. @param description of the metric
  25869. @param value of the metric
  25870. @return self]]>
  25871. </doc>
  25872. </method>
  25873. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25874. abstract="true" native="false" synchronized="false"
  25875. static="false" final="false" visibility="public"
  25876. deprecated="not deprecated">
  25877. <param name="name" type="java.lang.String"/>
  25878. <param name="description" type="java.lang.String"/>
  25879. <param name="value" type="long"/>
  25880. <doc>
  25881. <![CDATA[Add an long counter metric
  25882. @param name of the metric
  25883. @param description of the metric
  25884. @param value of the metric
  25885. @return self]]>
  25886. </doc>
  25887. </method>
  25888. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25889. abstract="true" native="false" synchronized="false"
  25890. static="false" final="false" visibility="public"
  25891. deprecated="not deprecated">
  25892. <param name="name" type="java.lang.String"/>
  25893. <param name="description" type="java.lang.String"/>
  25894. <param name="value" type="int"/>
  25895. <doc>
  25896. <![CDATA[Add a int gauge metric
  25897. @param name of the metric
  25898. @param description of the metric
  25899. @param value of the metric
  25900. @return self]]>
  25901. </doc>
  25902. </method>
  25903. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25904. abstract="true" native="false" synchronized="false"
  25905. static="false" final="false" visibility="public"
  25906. deprecated="not deprecated">
  25907. <param name="name" type="java.lang.String"/>
  25908. <param name="description" type="java.lang.String"/>
  25909. <param name="value" type="long"/>
  25910. <doc>
  25911. <![CDATA[Add a long gauge metric
  25912. @param name of the metric
  25913. @param description of the metric
  25914. @param value of the metric
  25915. @return self]]>
  25916. </doc>
  25917. </method>
  25918. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25919. abstract="true" native="false" synchronized="false"
  25920. static="false" final="false" visibility="public"
  25921. deprecated="not deprecated">
  25922. <param name="name" type="java.lang.String"/>
  25923. <param name="description" type="java.lang.String"/>
  25924. <param name="value" type="float"/>
  25925. <doc>
  25926. <![CDATA[Add a float gauge metric
  25927. @param name of the metric
  25928. @param description of the metric
  25929. @param value of the metric
  25930. @return self]]>
  25931. </doc>
  25932. </method>
  25933. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25934. abstract="true" native="false" synchronized="false"
  25935. static="false" final="false" visibility="public"
  25936. deprecated="not deprecated">
  25937. <param name="name" type="java.lang.String"/>
  25938. <param name="description" type="java.lang.String"/>
  25939. <param name="value" type="double"/>
  25940. <doc>
  25941. <![CDATA[Add a double gauge metric
  25942. @param name of the metric
  25943. @param description of the metric
  25944. @param value of the metric
  25945. @return self]]>
  25946. </doc>
  25947. </method>
  25948. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25949. abstract="true" native="false" synchronized="false"
  25950. static="false" final="false" visibility="public"
  25951. deprecated="not deprecated">
  25952. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  25953. <doc>
  25954. <![CDATA[Add a pre-made immutable metric object
  25955. @param metric the pre-made metric to save an object construction
  25956. @return self]]>
  25957. </doc>
  25958. </method>
  25959. <doc>
  25960. <![CDATA[The metrics record builder interface]]>
  25961. </doc>
  25962. </class>
  25963. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25964. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  25965. <interface name="MetricsSink" abstract="true"
  25966. static="false" final="false" visibility="public"
  25967. deprecated="not deprecated">
  25968. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25969. <method name="putMetrics"
  25970. abstract="false" native="false" synchronized="false"
  25971. static="false" final="false" visibility="public"
  25972. deprecated="not deprecated">
  25973. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25974. <doc>
  25975. <![CDATA[Put a metrics record in the sink
  25976. @param record the record to put]]>
  25977. </doc>
  25978. </method>
  25979. <method name="flush"
  25980. abstract="false" native="false" synchronized="false"
  25981. static="false" final="false" visibility="public"
  25982. deprecated="not deprecated">
  25983. <doc>
  25984. <![CDATA[Flush any buffered metrics]]>
  25985. </doc>
  25986. </method>
  25987. <doc>
  25988. <![CDATA[The metrics sink interface]]>
  25989. </doc>
  25990. </interface>
  25991. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  25992. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  25993. <interface name="MetricsSource" abstract="true"
  25994. static="false" final="false" visibility="public"
  25995. deprecated="not deprecated">
  25996. <method name="getMetrics"
  25997. abstract="false" native="false" synchronized="false"
  25998. static="false" final="false" visibility="public"
  25999. deprecated="not deprecated">
  26000. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  26001. <param name="all" type="boolean"/>
  26002. <doc>
  26003. <![CDATA[Get metrics from the source
  26004. @param builder to contain the resulting metrics snapshot
  26005. @param all if true, return all metrics even if unchanged.]]>
  26006. </doc>
  26007. </method>
  26008. <doc>
  26009. <![CDATA[The metrics source interface]]>
  26010. </doc>
  26011. </interface>
  26012. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  26013. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  26014. <interface name="MetricsSystem" abstract="true"
  26015. static="false" final="false" visibility="public"
  26016. deprecated="not deprecated">
  26017. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  26018. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26019. abstract="false" native="false" synchronized="false"
  26020. static="false" final="false" visibility="public"
  26021. deprecated="not deprecated">
  26022. <param name="name" type="java.lang.String"/>
  26023. <param name="desc" type="java.lang.String"/>
  26024. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26025. <doc>
  26026. <![CDATA[Register a metrics source
  26027. @param <T> the type of the source
  26028. @param source to register
  26029. @param name of the source. Must be unique.
  26030. @param desc the description of the source.
  26031. @return the source
  26032. @exception MetricsException]]>
  26033. </doc>
  26034. </method>
  26035. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26036. abstract="false" native="false" synchronized="false"
  26037. static="false" final="false" visibility="public"
  26038. deprecated="not deprecated">
  26039. <param name="name" type="java.lang.String"/>
  26040. <param name="desc" type="java.lang.String"/>
  26041. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26042. <doc>
  26043. <![CDATA[Register a metrics sink
  26044. @param <T> the type of the sink
  26045. @param sink to register
  26046. @param name of the sink. Must be unique.
  26047. @param desc the description of the sink
  26048. @return the sink
  26049. @exception MetricsException]]>
  26050. </doc>
  26051. </method>
  26052. <method name="register"
  26053. abstract="false" native="false" synchronized="false"
  26054. static="false" final="false" visibility="public"
  26055. deprecated="not deprecated">
  26056. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26057. <doc>
  26058. <![CDATA[Register a callback interface for JMX events
  26059. @param callback the callback object implementing the MBean interface.]]>
  26060. </doc>
  26061. </method>
  26062. <method name="shutdown"
  26063. abstract="false" native="false" synchronized="false"
  26064. static="false" final="false" visibility="public"
  26065. deprecated="not deprecated">
  26066. <doc>
  26067. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  26068. The MetricsSystemMXBean will be unregistered.]]>
  26069. </doc>
  26070. </method>
  26071. <doc>
  26072. <![CDATA[The metrics system interface]]>
  26073. </doc>
  26074. </interface>
  26075. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  26076. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  26077. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  26078. abstract="true"
  26079. static="true" final="false" visibility="public"
  26080. deprecated="not deprecated">
  26081. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26082. <constructor name="MetricsSystem.AbstractCallback"
  26083. static="false" final="false" visibility="public"
  26084. deprecated="not deprecated">
  26085. </constructor>
  26086. <method name="preStart"
  26087. abstract="false" native="false" synchronized="false"
  26088. static="false" final="false" visibility="public"
  26089. deprecated="not deprecated">
  26090. </method>
  26091. <method name="postStart"
  26092. abstract="false" native="false" synchronized="false"
  26093. static="false" final="false" visibility="public"
  26094. deprecated="not deprecated">
  26095. </method>
  26096. <method name="preStop"
  26097. abstract="false" native="false" synchronized="false"
  26098. static="false" final="false" visibility="public"
  26099. deprecated="not deprecated">
  26100. </method>
  26101. <method name="postStop"
  26102. abstract="false" native="false" synchronized="false"
  26103. static="false" final="false" visibility="public"
  26104. deprecated="not deprecated">
  26105. </method>
  26106. <doc>
  26107. <![CDATA[Convenient abstract class for implementing callback interface]]>
  26108. </doc>
  26109. </class>
  26110. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  26111. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  26112. <interface name="MetricsSystem.Callback" abstract="true"
  26113. static="true" final="false" visibility="public"
  26114. deprecated="not deprecated">
  26115. <method name="preStart"
  26116. abstract="false" native="false" synchronized="false"
  26117. static="false" final="false" visibility="public"
  26118. deprecated="not deprecated">
  26119. <doc>
  26120. <![CDATA[Called before start()]]>
  26121. </doc>
  26122. </method>
  26123. <method name="postStart"
  26124. abstract="false" native="false" synchronized="false"
  26125. static="false" final="false" visibility="public"
  26126. deprecated="not deprecated">
  26127. <doc>
  26128. <![CDATA[Called after start()]]>
  26129. </doc>
  26130. </method>
  26131. <method name="preStop"
  26132. abstract="false" native="false" synchronized="false"
  26133. static="false" final="false" visibility="public"
  26134. deprecated="not deprecated">
  26135. <doc>
  26136. <![CDATA[Called before stop()]]>
  26137. </doc>
  26138. </method>
  26139. <method name="postStop"
  26140. abstract="false" native="false" synchronized="false"
  26141. static="false" final="false" visibility="public"
  26142. deprecated="not deprecated">
  26143. <doc>
  26144. <![CDATA[Called after stop()]]>
  26145. </doc>
  26146. </method>
  26147. <doc>
  26148. <![CDATA[The metrics system callback interface]]>
  26149. </doc>
  26150. </interface>
  26151. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  26152. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26153. <interface name="MetricsSystemMXBean" abstract="true"
  26154. static="false" final="false" visibility="public"
  26155. deprecated="not deprecated">
  26156. <method name="start"
  26157. abstract="false" native="false" synchronized="false"
  26158. static="false" final="false" visibility="public"
  26159. deprecated="not deprecated">
  26160. <doc>
  26161. <![CDATA[Start the metrics system
  26162. @exception MetricsException]]>
  26163. </doc>
  26164. </method>
  26165. <method name="stop"
  26166. abstract="false" native="false" synchronized="false"
  26167. static="false" final="false" visibility="public"
  26168. deprecated="not deprecated">
  26169. <doc>
  26170. <![CDATA[Stop the metrics system
  26171. @exception MetricsException]]>
  26172. </doc>
  26173. </method>
  26174. <method name="refreshMBeans"
  26175. abstract="false" native="false" synchronized="false"
  26176. static="false" final="false" visibility="public"
  26177. deprecated="not deprecated">
  26178. <doc>
  26179. <![CDATA[Force a refresh of MBeans
  26180. @exception MetricsException]]>
  26181. </doc>
  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. <doc>
  26188. <![CDATA[@return the current config
  26189. Note, avoid getConfig, as it'll turn it into an attribute,
  26190. which doesn't support multiple lines in the values.
  26191. @exception MetricsException]]>
  26192. </doc>
  26193. </method>
  26194. <doc>
  26195. <![CDATA[The JMX interface to the metrics system]]>
  26196. </doc>
  26197. </interface>
  26198. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26199. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  26200. <class name="MetricsTag" extends="java.lang.Object"
  26201. abstract="false"
  26202. static="false" final="false" visibility="public"
  26203. deprecated="not deprecated">
  26204. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  26205. static="false" final="false" visibility="public"
  26206. deprecated="not deprecated">
  26207. <doc>
  26208. <![CDATA[Construct the tag with name, description and value
  26209. @param name of the tag
  26210. @param description of the tag
  26211. @param value of the tag]]>
  26212. </doc>
  26213. </constructor>
  26214. <method name="name" return="java.lang.String"
  26215. abstract="false" native="false" synchronized="false"
  26216. static="false" final="false" visibility="public"
  26217. deprecated="not deprecated">
  26218. <doc>
  26219. <![CDATA[Get the name of the tag
  26220. @return the name]]>
  26221. </doc>
  26222. </method>
  26223. <method name="description" return="java.lang.String"
  26224. abstract="false" native="false" synchronized="false"
  26225. static="false" final="false" visibility="public"
  26226. deprecated="not deprecated">
  26227. <doc>
  26228. <![CDATA[Get the description of the tag
  26229. @return the description]]>
  26230. </doc>
  26231. </method>
  26232. <method name="value" return="java.lang.String"
  26233. abstract="false" native="false" synchronized="false"
  26234. static="false" final="false" visibility="public"
  26235. deprecated="not deprecated">
  26236. <doc>
  26237. <![CDATA[Get the value of the tag
  26238. @return the value]]>
  26239. </doc>
  26240. </method>
  26241. <method name="equals" return="boolean"
  26242. abstract="false" native="false" synchronized="false"
  26243. static="false" final="false" visibility="public"
  26244. deprecated="not deprecated">
  26245. <param name="obj" type="java.lang.Object"/>
  26246. </method>
  26247. <method name="hashCode" return="int"
  26248. abstract="false" native="false" synchronized="false"
  26249. static="false" final="false" visibility="public"
  26250. deprecated="not deprecated">
  26251. </method>
  26252. <method name="toString" return="java.lang.String"
  26253. abstract="false" native="false" synchronized="false"
  26254. static="false" final="false" visibility="public"
  26255. deprecated="not deprecated">
  26256. </method>
  26257. <doc>
  26258. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  26259. </doc>
  26260. </class>
  26261. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  26262. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  26263. <interface name="MetricsVisitor" abstract="true"
  26264. static="false" final="false" visibility="public"
  26265. deprecated="not deprecated">
  26266. <method name="gauge"
  26267. abstract="false" native="false" synchronized="false"
  26268. static="false" final="false" visibility="public"
  26269. deprecated="not deprecated">
  26270. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  26271. <param name="value" type="int"/>
  26272. <doc>
  26273. <![CDATA[Callback for int value gauges
  26274. @param metric the metric object
  26275. @param value of the metric]]>
  26276. </doc>
  26277. </method>
  26278. <method name="gauge"
  26279. abstract="false" native="false" synchronized="false"
  26280. static="false" final="false" visibility="public"
  26281. deprecated="not deprecated">
  26282. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  26283. <param name="value" type="long"/>
  26284. <doc>
  26285. <![CDATA[Callback for long value gauges
  26286. @param metric the metric object
  26287. @param value of the metric]]>
  26288. </doc>
  26289. </method>
  26290. <method name="gauge"
  26291. abstract="false" native="false" synchronized="false"
  26292. static="false" final="false" visibility="public"
  26293. deprecated="not deprecated">
  26294. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  26295. <param name="value" type="float"/>
  26296. <doc>
  26297. <![CDATA[Callback for float value gauges
  26298. @param metric the metric object
  26299. @param value of the metric]]>
  26300. </doc>
  26301. </method>
  26302. <method name="gauge"
  26303. abstract="false" native="false" synchronized="false"
  26304. static="false" final="false" visibility="public"
  26305. deprecated="not deprecated">
  26306. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  26307. <param name="value" type="double"/>
  26308. <doc>
  26309. <![CDATA[Callback for double value gauges
  26310. @param metric the metric object
  26311. @param value of the metric]]>
  26312. </doc>
  26313. </method>
  26314. <method name="counter"
  26315. abstract="false" native="false" synchronized="false"
  26316. static="false" final="false" visibility="public"
  26317. deprecated="not deprecated">
  26318. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  26319. <param name="value" type="int"/>
  26320. <doc>
  26321. <![CDATA[Callback for integer value counters
  26322. @param metric the metric object
  26323. @param value of the metric]]>
  26324. </doc>
  26325. </method>
  26326. <method name="counter"
  26327. abstract="false" native="false" synchronized="false"
  26328. static="false" final="false" visibility="public"
  26329. deprecated="not deprecated">
  26330. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  26331. <param name="value" type="long"/>
  26332. <doc>
  26333. <![CDATA[Callback for long value counters
  26334. @param metric the metric object
  26335. @param value of the metric]]>
  26336. </doc>
  26337. </method>
  26338. <doc>
  26339. <![CDATA[A visitor interface for metrics]]>
  26340. </doc>
  26341. </interface>
  26342. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  26343. </package>
  26344. <package name="org.apache.hadoop.metrics2.filter">
  26345. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  26346. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  26347. abstract="false"
  26348. static="false" final="false" visibility="public"
  26349. deprecated="not deprecated">
  26350. <constructor name="GlobFilter"
  26351. static="false" final="false" visibility="public"
  26352. deprecated="not deprecated">
  26353. </constructor>
  26354. <method name="compile" return="java.util.regex.Pattern"
  26355. abstract="false" native="false" synchronized="false"
  26356. static="false" final="false" visibility="protected"
  26357. deprecated="not deprecated">
  26358. <param name="s" type="java.lang.String"/>
  26359. </method>
  26360. <doc>
  26361. <![CDATA[A glob pattern filter for metrics]]>
  26362. </doc>
  26363. </class>
  26364. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  26365. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  26366. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  26367. abstract="false"
  26368. static="false" final="false" visibility="public"
  26369. deprecated="not deprecated">
  26370. <constructor name="RegexFilter"
  26371. static="false" final="false" visibility="public"
  26372. deprecated="not deprecated">
  26373. </constructor>
  26374. <method name="compile" return="java.util.regex.Pattern"
  26375. abstract="false" native="false" synchronized="false"
  26376. static="false" final="false" visibility="protected"
  26377. deprecated="not deprecated">
  26378. <param name="s" type="java.lang.String"/>
  26379. </method>
  26380. <doc>
  26381. <![CDATA[A regex pattern filter for metrics]]>
  26382. </doc>
  26383. </class>
  26384. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  26385. </package>
  26386. <package name="org.apache.hadoop.metrics2.impl">
  26387. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  26388. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  26389. abstract="false"
  26390. static="false" final="false" visibility="public"
  26391. deprecated="not deprecated">
  26392. <doc>
  26393. <![CDATA[The metrics configuration runtime exception]]>
  26394. </doc>
  26395. </class>
  26396. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  26397. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  26398. <class name="MetricsRecordImpl" extends="java.lang.Object"
  26399. abstract="false"
  26400. static="false" final="false" visibility="public"
  26401. deprecated="not deprecated">
  26402. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  26403. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  26404. static="false" final="false" visibility="public"
  26405. deprecated="not deprecated">
  26406. <doc>
  26407. <![CDATA[Construct a metrics record
  26408. @param name of the record
  26409. @param timestamp of the record
  26410. @param tags of the record
  26411. @param metrics of the record]]>
  26412. </doc>
  26413. </constructor>
  26414. <method name="timestamp" return="long"
  26415. abstract="false" native="false" synchronized="false"
  26416. static="false" final="false" visibility="public"
  26417. deprecated="not deprecated">
  26418. </method>
  26419. <method name="name" return="java.lang.String"
  26420. abstract="false" native="false" synchronized="false"
  26421. static="false" final="false" visibility="public"
  26422. deprecated="not deprecated">
  26423. </method>
  26424. <method name="context" return="java.lang.String"
  26425. abstract="false" native="false" synchronized="false"
  26426. static="false" final="false" visibility="public"
  26427. deprecated="not deprecated">
  26428. </method>
  26429. <method name="tags" return="java.lang.Iterable"
  26430. abstract="false" native="false" synchronized="false"
  26431. static="false" final="false" visibility="public"
  26432. deprecated="not deprecated">
  26433. </method>
  26434. <method name="metrics" return="java.lang.Iterable"
  26435. abstract="false" native="false" synchronized="false"
  26436. static="false" final="false" visibility="public"
  26437. deprecated="not deprecated">
  26438. </method>
  26439. <method name="equals" return="boolean"
  26440. abstract="false" native="false" synchronized="false"
  26441. static="false" final="false" visibility="public"
  26442. deprecated="not deprecated">
  26443. <param name="obj" type="java.lang.Object"/>
  26444. </method>
  26445. <method name="hashCode" return="int"
  26446. abstract="false" native="false" synchronized="false"
  26447. static="false" final="false" visibility="public"
  26448. deprecated="not deprecated">
  26449. </method>
  26450. <method name="toString" return="java.lang.String"
  26451. abstract="false" native="false" synchronized="false"
  26452. static="false" final="false" visibility="public"
  26453. deprecated="not deprecated">
  26454. </method>
  26455. <field name="CONTEXT_KEY" type="java.lang.String"
  26456. transient="false" volatile="false"
  26457. static="true" final="true" visibility="protected"
  26458. deprecated="not deprecated">
  26459. </field>
  26460. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  26461. transient="false" volatile="false"
  26462. static="true" final="true" visibility="protected"
  26463. deprecated="not deprecated">
  26464. </field>
  26465. </class>
  26466. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  26467. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  26468. <class name="MetricsSystemImpl" extends="java.lang.Object"
  26469. abstract="false"
  26470. static="false" final="false" visibility="public"
  26471. deprecated="not deprecated">
  26472. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  26473. <constructor name="MetricsSystemImpl" type="java.lang.String"
  26474. static="false" final="false" visibility="public"
  26475. deprecated="not deprecated">
  26476. <doc>
  26477. <![CDATA[Construct the metrics system
  26478. @param prefix for the system]]>
  26479. </doc>
  26480. </constructor>
  26481. <constructor name="MetricsSystemImpl"
  26482. static="false" final="false" visibility="public"
  26483. deprecated="not deprecated">
  26484. <doc>
  26485. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  26486. </doc>
  26487. </constructor>
  26488. <method name="init"
  26489. abstract="false" native="false" synchronized="true"
  26490. static="false" final="false" visibility="public"
  26491. deprecated="not deprecated">
  26492. <param name="prefix" type="java.lang.String"/>
  26493. <doc>
  26494. <![CDATA[Initialized the metrics system with a prefix.
  26495. @param prefix the system will look for configs with the prefix]]>
  26496. </doc>
  26497. </method>
  26498. <method name="start"
  26499. abstract="false" native="false" synchronized="true"
  26500. static="false" final="false" visibility="public"
  26501. deprecated="not deprecated">
  26502. </method>
  26503. <method name="stop"
  26504. abstract="false" native="false" synchronized="true"
  26505. static="false" final="false" visibility="public"
  26506. deprecated="not deprecated">
  26507. </method>
  26508. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26509. abstract="false" native="false" synchronized="true"
  26510. static="false" final="false" visibility="public"
  26511. deprecated="not deprecated">
  26512. <param name="name" type="java.lang.String"/>
  26513. <param name="desc" type="java.lang.String"/>
  26514. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26515. </method>
  26516. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26517. abstract="false" native="false" synchronized="true"
  26518. static="false" final="false" visibility="public"
  26519. deprecated="not deprecated">
  26520. <param name="name" type="java.lang.String"/>
  26521. <param name="description" type="java.lang.String"/>
  26522. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26523. </method>
  26524. <method name="register"
  26525. abstract="false" native="false" synchronized="true"
  26526. static="false" final="false" visibility="public"
  26527. deprecated="not deprecated">
  26528. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26529. </method>
  26530. <method name="refreshMBeans"
  26531. abstract="false" native="false" synchronized="true"
  26532. static="false" final="false" visibility="public"
  26533. deprecated="not deprecated">
  26534. </method>
  26535. <method name="currentConfig" return="java.lang.String"
  26536. abstract="false" native="false" synchronized="true"
  26537. static="false" final="false" visibility="public"
  26538. deprecated="not deprecated">
  26539. </method>
  26540. <method name="shutdown"
  26541. abstract="false" native="false" synchronized="true"
  26542. static="false" final="false" visibility="public"
  26543. deprecated="not deprecated">
  26544. </method>
  26545. <doc>
  26546. <![CDATA[A base class for metrics system singletons]]>
  26547. </doc>
  26548. </class>
  26549. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  26550. </package>
  26551. <package name="org.apache.hadoop.metrics2.lib">
  26552. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  26553. <class name="AbstractMetricsSource" extends="java.lang.Object"
  26554. abstract="true"
  26555. static="false" final="false" visibility="public"
  26556. deprecated="not deprecated">
  26557. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  26558. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  26559. static="false" final="false" visibility="public"
  26560. deprecated="not deprecated">
  26561. <doc>
  26562. <![CDATA[Construct the source with name and a mutable metrics factory
  26563. @param name of the default record
  26564. @param mf the factory to create mutable metrics]]>
  26565. </doc>
  26566. </constructor>
  26567. <constructor name="AbstractMetricsSource" type="java.lang.String"
  26568. static="false" final="false" visibility="public"
  26569. deprecated="not deprecated">
  26570. <doc>
  26571. <![CDATA[Construct the source with a name with a default factory
  26572. @param name of the default record]]>
  26573. </doc>
  26574. </constructor>
  26575. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26576. abstract="false" native="false" synchronized="false"
  26577. static="false" final="false" visibility="public"
  26578. deprecated="not deprecated">
  26579. <doc>
  26580. <![CDATA[@return the registry for mutable metrics]]>
  26581. </doc>
  26582. </method>
  26583. <method name="getMetrics"
  26584. abstract="false" native="false" synchronized="false"
  26585. static="false" final="false" visibility="public"
  26586. deprecated="not deprecated">
  26587. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  26588. <param name="all" type="boolean"/>
  26589. </method>
  26590. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26591. transient="false" volatile="false"
  26592. static="false" final="true" visibility="protected"
  26593. deprecated="not deprecated">
  26594. </field>
  26595. <doc>
  26596. <![CDATA[A convenient base class for writing metrics sources]]>
  26597. </doc>
  26598. </class>
  26599. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  26600. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26601. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  26602. abstract="false"
  26603. static="false" final="true" visibility="public"
  26604. deprecated="not deprecated">
  26605. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  26606. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  26607. abstract="false" native="false" synchronized="false"
  26608. static="true" final="false" visibility="public"
  26609. deprecated="not deprecated">
  26610. </method>
  26611. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26612. abstract="false" native="false" synchronized="false"
  26613. static="true" final="false" visibility="public"
  26614. deprecated="not deprecated">
  26615. <param name="name" type="java.lang.String"/>
  26616. </method>
  26617. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  26618. abstract="false" native="false" synchronized="false"
  26619. static="true" final="false" visibility="public"
  26620. deprecated="not deprecated">
  26621. <param name="prefix" type="java.lang.String"/>
  26622. <doc>
  26623. <![CDATA[Common static convenience method to initialize the metrics system
  26624. @param prefix for configuration
  26625. @return the metrics system instance]]>
  26626. </doc>
  26627. </method>
  26628. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26629. abstract="false" native="false" synchronized="false"
  26630. static="false" final="false" visibility="public"
  26631. deprecated="not deprecated">
  26632. <param name="name" type="java.lang.String"/>
  26633. <param name="desc" type="java.lang.String"/>
  26634. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26635. </method>
  26636. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  26637. abstract="false" native="false" synchronized="false"
  26638. static="true" final="false" visibility="public"
  26639. deprecated="not deprecated">
  26640. <param name="name" type="java.lang.String"/>
  26641. <param name="desc" type="java.lang.String"/>
  26642. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26643. <doc>
  26644. <![CDATA[Common static method to register a source
  26645. @param <T> type of the source
  26646. @param name of the source
  26647. @param desc description
  26648. @param source the source object to register
  26649. @return the source object]]>
  26650. </doc>
  26651. </method>
  26652. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26653. abstract="false" native="false" synchronized="false"
  26654. static="false" final="false" visibility="public"
  26655. deprecated="not deprecated">
  26656. <param name="name" type="java.lang.String"/>
  26657. <param name="desc" type="java.lang.String"/>
  26658. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26659. </method>
  26660. <method name="register"
  26661. abstract="false" native="false" synchronized="false"
  26662. static="false" final="false" visibility="public"
  26663. deprecated="not deprecated">
  26664. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26665. </method>
  26666. <method name="start"
  26667. abstract="false" native="false" synchronized="false"
  26668. static="false" final="false" visibility="public"
  26669. deprecated="not deprecated">
  26670. </method>
  26671. <method name="stop"
  26672. abstract="false" native="false" synchronized="false"
  26673. static="false" final="false" visibility="public"
  26674. deprecated="not deprecated">
  26675. </method>
  26676. <method name="refreshMBeans"
  26677. abstract="false" native="false" synchronized="false"
  26678. static="false" final="false" visibility="public"
  26679. deprecated="not deprecated">
  26680. </method>
  26681. <method name="currentConfig" return="java.lang.String"
  26682. abstract="false" native="false" synchronized="false"
  26683. static="false" final="false" visibility="public"
  26684. deprecated="not deprecated">
  26685. </method>
  26686. <method name="shutdown"
  26687. abstract="false" native="false" synchronized="false"
  26688. static="false" final="false" visibility="public"
  26689. deprecated="not deprecated">
  26690. </method>
  26691. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26692. transient="false" volatile="false"
  26693. static="true" final="true" visibility="public"
  26694. deprecated="not deprecated">
  26695. <doc>
  26696. <![CDATA[The singleton instance]]>
  26697. </doc>
  26698. </field>
  26699. <doc>
  26700. <![CDATA[The default metrics system singleton]]>
  26701. </doc>
  26702. </class>
  26703. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26704. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26705. <class name="MetricMutable" extends="java.lang.Object"
  26706. abstract="true"
  26707. static="false" final="false" visibility="public"
  26708. deprecated="not deprecated">
  26709. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  26710. static="false" final="false" visibility="public"
  26711. deprecated="not deprecated">
  26712. <doc>
  26713. <![CDATA[Construct a mutable metric
  26714. @param name of the metric
  26715. @param description of the metric]]>
  26716. </doc>
  26717. </constructor>
  26718. <method name="snapshot"
  26719. abstract="true" native="false" synchronized="false"
  26720. static="false" final="false" visibility="public"
  26721. deprecated="not deprecated">
  26722. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26723. <param name="all" type="boolean"/>
  26724. <doc>
  26725. <![CDATA[Get a snapshot/snapshot of the metric
  26726. @param builder the metrics record builder
  26727. @param all if true, snapshot unchanged metrics as well]]>
  26728. </doc>
  26729. </method>
  26730. <method name="snapshot"
  26731. abstract="false" native="false" synchronized="false"
  26732. static="false" final="false" visibility="public"
  26733. deprecated="not deprecated">
  26734. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26735. <doc>
  26736. <![CDATA[Get a sampe/snapshot of metric if changed
  26737. @param builder the metrics record builder]]>
  26738. </doc>
  26739. </method>
  26740. <method name="setChanged"
  26741. abstract="false" native="false" synchronized="false"
  26742. static="false" final="false" visibility="protected"
  26743. deprecated="not deprecated">
  26744. <doc>
  26745. <![CDATA[Set the changed flag in mutable operations]]>
  26746. </doc>
  26747. </method>
  26748. <method name="clearChanged"
  26749. abstract="false" native="false" synchronized="false"
  26750. static="false" final="false" visibility="protected"
  26751. deprecated="not deprecated">
  26752. <doc>
  26753. <![CDATA[Clear the changed flag in the snapshot operations]]>
  26754. </doc>
  26755. </method>
  26756. <method name="changed" return="boolean"
  26757. abstract="false" native="false" synchronized="false"
  26758. static="false" final="false" visibility="public"
  26759. deprecated="not deprecated">
  26760. <doc>
  26761. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  26762. </doc>
  26763. </method>
  26764. <field name="name" type="java.lang.String"
  26765. transient="false" volatile="false"
  26766. static="false" final="true" visibility="public"
  26767. deprecated="not deprecated">
  26768. <doc>
  26769. <![CDATA[name of the metric]]>
  26770. </doc>
  26771. </field>
  26772. <field name="description" type="java.lang.String"
  26773. transient="false" volatile="false"
  26774. static="false" final="true" visibility="public"
  26775. deprecated="not deprecated">
  26776. <doc>
  26777. <![CDATA[description of the metric]]>
  26778. </doc>
  26779. </field>
  26780. <doc>
  26781. <![CDATA[The mutable metric interface]]>
  26782. </doc>
  26783. </class>
  26784. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26785. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26786. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26787. abstract="true"
  26788. static="false" final="false" visibility="public"
  26789. deprecated="not deprecated">
  26790. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  26791. static="false" final="false" visibility="public"
  26792. deprecated="not deprecated">
  26793. <doc>
  26794. <![CDATA[Construct the metric with name and description
  26795. @param name
  26796. @param description]]>
  26797. </doc>
  26798. </constructor>
  26799. <method name="incr"
  26800. abstract="true" native="false" synchronized="false"
  26801. static="false" final="false" visibility="public"
  26802. deprecated="not deprecated">
  26803. <doc>
  26804. <![CDATA[Increment the metric value by 1.]]>
  26805. </doc>
  26806. </method>
  26807. <doc>
  26808. <![CDATA[The mutable counter (monotonically increasing) metric interface
  26809. @param <T> the type of the metric]]>
  26810. </doc>
  26811. </class>
  26812. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26813. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26814. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26815. abstract="false"
  26816. static="false" final="false" visibility="public"
  26817. deprecated="not deprecated">
  26818. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  26819. static="false" final="false" visibility="public"
  26820. deprecated="not deprecated">
  26821. <doc>
  26822. <![CDATA[Construct a mutable int counter
  26823. @param name of the counter
  26824. @param description of the counter
  26825. @param initValue the initial value of the counter]]>
  26826. </doc>
  26827. </constructor>
  26828. <method name="incr"
  26829. abstract="false" native="false" synchronized="true"
  26830. static="false" final="false" visibility="public"
  26831. deprecated="not deprecated">
  26832. </method>
  26833. <method name="incr"
  26834. abstract="false" native="false" synchronized="true"
  26835. static="false" final="false" visibility="public"
  26836. deprecated="not deprecated">
  26837. <param name="delta" type="int"/>
  26838. <doc>
  26839. <![CDATA[Increment the value by a delta
  26840. @param delta of the increment]]>
  26841. </doc>
  26842. </method>
  26843. <method name="snapshot"
  26844. abstract="false" native="false" synchronized="false"
  26845. static="false" final="false" visibility="public"
  26846. deprecated="not deprecated">
  26847. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26848. <param name="all" type="boolean"/>
  26849. </method>
  26850. <doc>
  26851. <![CDATA[A mutable int counter for implementing metrics sources]]>
  26852. </doc>
  26853. </class>
  26854. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26855. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26856. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26857. abstract="false"
  26858. static="false" final="false" visibility="public"
  26859. deprecated="not deprecated">
  26860. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  26861. static="false" final="false" visibility="public"
  26862. deprecated="not deprecated">
  26863. <doc>
  26864. <![CDATA[Construct a mutable long counter
  26865. @param name of the counter
  26866. @param description of the counter
  26867. @param initValue the initial value of the counter]]>
  26868. </doc>
  26869. </constructor>
  26870. <method name="incr"
  26871. abstract="false" native="false" synchronized="true"
  26872. static="false" final="false" visibility="public"
  26873. deprecated="not deprecated">
  26874. </method>
  26875. <method name="incr"
  26876. abstract="false" native="false" synchronized="true"
  26877. static="false" final="false" visibility="public"
  26878. deprecated="not deprecated">
  26879. <param name="delta" type="long"/>
  26880. <doc>
  26881. <![CDATA[Increment the value by a delta
  26882. @param delta of the increment]]>
  26883. </doc>
  26884. </method>
  26885. <method name="snapshot"
  26886. abstract="false" native="false" synchronized="false"
  26887. static="false" final="false" visibility="public"
  26888. deprecated="not deprecated">
  26889. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26890. <param name="all" type="boolean"/>
  26891. </method>
  26892. <doc>
  26893. <![CDATA[A mutable long counter]]>
  26894. </doc>
  26895. </class>
  26896. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26897. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  26898. <class name="MetricMutableFactory" extends="java.lang.Object"
  26899. abstract="false"
  26900. static="false" final="false" visibility="public"
  26901. deprecated="not deprecated">
  26902. <constructor name="MetricMutableFactory"
  26903. static="false" final="false" visibility="public"
  26904. deprecated="not deprecated">
  26905. </constructor>
  26906. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  26907. abstract="false" native="false" synchronized="false"
  26908. static="false" final="false" visibility="public"
  26909. deprecated="not deprecated">
  26910. <param name="name" type="java.lang.String"/>
  26911. <doc>
  26912. <![CDATA[Create a new mutable metric by name
  26913. Usually overridden by app specific factory
  26914. @param name of the metric
  26915. @return a new metric object]]>
  26916. </doc>
  26917. </method>
  26918. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26919. abstract="false" native="false" synchronized="false"
  26920. static="false" final="false" visibility="public"
  26921. deprecated="not deprecated">
  26922. <param name="name" type="java.lang.String"/>
  26923. <param name="description" type="java.lang.String"/>
  26924. <param name="initValue" type="int"/>
  26925. <doc>
  26926. <![CDATA[Create a mutable integer counter
  26927. @param name of the metric
  26928. @param description of the metric
  26929. @param initValue of the metric
  26930. @return a new metric object]]>
  26931. </doc>
  26932. </method>
  26933. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26934. abstract="false" native="false" synchronized="false"
  26935. static="false" final="false" visibility="public"
  26936. deprecated="not deprecated">
  26937. <param name="name" type="java.lang.String"/>
  26938. <doc>
  26939. <![CDATA[Create a mutable integer counter with name only.
  26940. Usually gets overridden.
  26941. @param name of the metric
  26942. @return a new metric object]]>
  26943. </doc>
  26944. </method>
  26945. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26946. abstract="false" native="false" synchronized="false"
  26947. static="false" final="false" visibility="public"
  26948. deprecated="not deprecated">
  26949. <param name="name" type="java.lang.String"/>
  26950. <param name="description" type="java.lang.String"/>
  26951. <param name="initValue" type="long"/>
  26952. <doc>
  26953. <![CDATA[Create a mutable long integer counter
  26954. @param name of the metric
  26955. @param description of the metric
  26956. @param initValue of the metric
  26957. @return a new metric object]]>
  26958. </doc>
  26959. </method>
  26960. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26961. abstract="false" native="false" synchronized="false"
  26962. static="false" final="false" visibility="public"
  26963. deprecated="not deprecated">
  26964. <param name="name" type="java.lang.String"/>
  26965. <doc>
  26966. <![CDATA[Create a mutable long integer counter with a name
  26967. Usually gets overridden.
  26968. @param name of the metric
  26969. @return a new metric object]]>
  26970. </doc>
  26971. </method>
  26972. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26973. abstract="false" native="false" synchronized="false"
  26974. static="false" final="false" visibility="public"
  26975. deprecated="not deprecated">
  26976. <param name="name" type="java.lang.String"/>
  26977. <param name="description" type="java.lang.String"/>
  26978. <param name="initValue" type="int"/>
  26979. <doc>
  26980. <![CDATA[Create a mutable integer gauge
  26981. @param name of the metric
  26982. @param description of the metric
  26983. @param initValue of the metric
  26984. @return a new metric object]]>
  26985. </doc>
  26986. </method>
  26987. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26988. abstract="false" native="false" synchronized="false"
  26989. static="false" final="false" visibility="public"
  26990. deprecated="not deprecated">
  26991. <param name="name" type="java.lang.String"/>
  26992. <doc>
  26993. <![CDATA[Create a mutable integer gauge with name only.
  26994. Usually gets overridden.
  26995. @param name of the metric
  26996. @return a new metric object]]>
  26997. </doc>
  26998. </method>
  26999. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27000. abstract="false" native="false" synchronized="false"
  27001. static="false" final="false" visibility="public"
  27002. deprecated="not deprecated">
  27003. <param name="name" type="java.lang.String"/>
  27004. <param name="description" type="java.lang.String"/>
  27005. <param name="initValue" type="long"/>
  27006. <doc>
  27007. <![CDATA[Create a mutable long integer gauge
  27008. @param name of the metric
  27009. @param description of the metric
  27010. @param initValue of the metric
  27011. @return a new metric object]]>
  27012. </doc>
  27013. </method>
  27014. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27015. abstract="false" native="false" synchronized="false"
  27016. static="false" final="false" visibility="public"
  27017. deprecated="not deprecated">
  27018. <param name="name" type="java.lang.String"/>
  27019. <doc>
  27020. <![CDATA[Create a mutable long integer gauge with name only.
  27021. Usually gets overridden.
  27022. @param name of the metric
  27023. @return a new metric object]]>
  27024. </doc>
  27025. </method>
  27026. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27027. abstract="false" native="false" synchronized="false"
  27028. static="false" final="false" visibility="public"
  27029. deprecated="not deprecated">
  27030. <param name="name" type="java.lang.String"/>
  27031. <param name="description" type="java.lang.String"/>
  27032. <param name="sampleName" type="java.lang.String"/>
  27033. <param name="valueName" type="java.lang.String"/>
  27034. <param name="extended" type="boolean"/>
  27035. <doc>
  27036. <![CDATA[Create a mutable stat metric
  27037. @param name of the metric
  27038. @param description of the metric
  27039. @param sampleName of the metric (e.g., ops)
  27040. @param valueName of the metric (e.g., time or latency)
  27041. @param extended if true, produces extended stat (stdev, min/max etc.)
  27042. @return a new metric object]]>
  27043. </doc>
  27044. </method>
  27045. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27046. abstract="false" native="false" synchronized="false"
  27047. static="false" final="false" visibility="public"
  27048. deprecated="not deprecated">
  27049. <param name="name" type="java.lang.String"/>
  27050. <doc>
  27051. <![CDATA[Create a mutable stat metric with name only.
  27052. Usually gets overridden.
  27053. @param name of the metric
  27054. @return a new metric object]]>
  27055. </doc>
  27056. </method>
  27057. <doc>
  27058. <![CDATA[Factory class for mutable metrics]]>
  27059. </doc>
  27060. </class>
  27061. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  27062. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27063. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27064. abstract="true"
  27065. static="false" final="false" visibility="public"
  27066. deprecated="not deprecated">
  27067. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  27068. static="false" final="false" visibility="public"
  27069. deprecated="not deprecated">
  27070. <doc>
  27071. <![CDATA[Construct the metric with name and description
  27072. @param name of the metric
  27073. @param description of the metric]]>
  27074. </doc>
  27075. </constructor>
  27076. <method name="incr"
  27077. abstract="true" native="false" synchronized="false"
  27078. static="false" final="false" visibility="public"
  27079. deprecated="not deprecated">
  27080. <doc>
  27081. <![CDATA[Increment the value of the metric by 1]]>
  27082. </doc>
  27083. </method>
  27084. <method name="decr"
  27085. abstract="true" native="false" synchronized="false"
  27086. static="false" final="false" visibility="public"
  27087. deprecated="not deprecated">
  27088. <doc>
  27089. <![CDATA[Decrement the value of the metric by 1]]>
  27090. </doc>
  27091. </method>
  27092. <doc>
  27093. <![CDATA[The mutable gauge metric interface
  27094. @param <T> the type of the metric]]>
  27095. </doc>
  27096. </class>
  27097. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27098. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  27099. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  27100. abstract="false"
  27101. static="false" final="false" visibility="public"
  27102. deprecated="not deprecated">
  27103. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  27104. static="false" final="false" visibility="public"
  27105. deprecated="not deprecated">
  27106. <doc>
  27107. <![CDATA[Construct a mutable int gauge metric
  27108. @param name of the gauge
  27109. @param description of the gauge
  27110. @param initValue the initial value of the gauge]]>
  27111. </doc>
  27112. </constructor>
  27113. <method name="incr"
  27114. abstract="false" native="false" synchronized="true"
  27115. static="false" final="false" visibility="public"
  27116. deprecated="not deprecated">
  27117. </method>
  27118. <method name="incr"
  27119. abstract="false" native="false" synchronized="true"
  27120. static="false" final="false" visibility="public"
  27121. deprecated="not deprecated">
  27122. <param name="delta" type="int"/>
  27123. <doc>
  27124. <![CDATA[Increment by delta
  27125. @param delta of the increment]]>
  27126. </doc>
  27127. </method>
  27128. <method name="decr"
  27129. abstract="false" native="false" synchronized="true"
  27130. static="false" final="false" visibility="public"
  27131. deprecated="not deprecated">
  27132. </method>
  27133. <method name="decr"
  27134. abstract="false" native="false" synchronized="true"
  27135. static="false" final="false" visibility="public"
  27136. deprecated="not deprecated">
  27137. <param name="delta" type="int"/>
  27138. <doc>
  27139. <![CDATA[decrement by delta
  27140. @param delta of the decrement]]>
  27141. </doc>
  27142. </method>
  27143. <method name="set"
  27144. abstract="false" native="false" synchronized="false"
  27145. static="false" final="false" visibility="public"
  27146. deprecated="not deprecated">
  27147. <param name="value" type="int"/>
  27148. <doc>
  27149. <![CDATA[Set the value of the metric
  27150. @param value to set]]>
  27151. </doc>
  27152. </method>
  27153. <method name="snapshot"
  27154. abstract="false" native="false" synchronized="false"
  27155. static="false" final="false" visibility="public"
  27156. deprecated="not deprecated">
  27157. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27158. <param name="all" type="boolean"/>
  27159. </method>
  27160. <doc>
  27161. <![CDATA[A mutable int gauge]]>
  27162. </doc>
  27163. </class>
  27164. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  27165. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  27166. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  27167. abstract="false"
  27168. static="false" final="false" visibility="public"
  27169. deprecated="not deprecated">
  27170. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  27171. static="false" final="false" visibility="public"
  27172. deprecated="not deprecated">
  27173. <doc>
  27174. <![CDATA[Construct a mutable long gauge metric
  27175. @param name of the gauge
  27176. @param description of the gauge
  27177. @param initValue the initial value of the gauge]]>
  27178. </doc>
  27179. </constructor>
  27180. <method name="incr"
  27181. abstract="false" native="false" synchronized="true"
  27182. static="false" final="false" visibility="public"
  27183. deprecated="not deprecated">
  27184. </method>
  27185. <method name="incr"
  27186. abstract="false" native="false" synchronized="true"
  27187. static="false" final="false" visibility="public"
  27188. deprecated="not deprecated">
  27189. <param name="delta" type="long"/>
  27190. <doc>
  27191. <![CDATA[Increment by delta
  27192. @param delta of the increment]]>
  27193. </doc>
  27194. </method>
  27195. <method name="decr"
  27196. abstract="false" native="false" synchronized="true"
  27197. static="false" final="false" visibility="public"
  27198. deprecated="not deprecated">
  27199. </method>
  27200. <method name="decr"
  27201. abstract="false" native="false" synchronized="true"
  27202. static="false" final="false" visibility="public"
  27203. deprecated="not deprecated">
  27204. <param name="delta" type="long"/>
  27205. <doc>
  27206. <![CDATA[decrement by delta
  27207. @param delta of the decrement]]>
  27208. </doc>
  27209. </method>
  27210. <method name="set"
  27211. abstract="false" native="false" synchronized="false"
  27212. static="false" final="false" visibility="public"
  27213. deprecated="not deprecated">
  27214. <param name="value" type="long"/>
  27215. <doc>
  27216. <![CDATA[Set the value of the metric
  27217. @param value to set]]>
  27218. </doc>
  27219. </method>
  27220. <method name="snapshot"
  27221. abstract="false" native="false" synchronized="false"
  27222. static="false" final="false" visibility="public"
  27223. deprecated="not deprecated">
  27224. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27225. <param name="all" type="boolean"/>
  27226. </method>
  27227. <doc>
  27228. <![CDATA[A mutable long gauge]]>
  27229. </doc>
  27230. </class>
  27231. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  27232. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  27233. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27234. abstract="false"
  27235. static="false" final="false" visibility="public"
  27236. deprecated="not deprecated">
  27237. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  27238. static="false" final="false" visibility="public"
  27239. deprecated="not deprecated">
  27240. <doc>
  27241. <![CDATA[Construct a sample statistics metric
  27242. @param name of the metric
  27243. @param description of the metric
  27244. @param sampleName of the metric (e.g. "ops")
  27245. @param valueName of the metric (e.g. "time", "latency")
  27246. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  27247. </doc>
  27248. </constructor>
  27249. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  27250. static="false" final="false" visibility="public"
  27251. deprecated="not deprecated">
  27252. <doc>
  27253. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  27254. @param name of the metric
  27255. @param description of the metric
  27256. @param sampleName of the metric (e.g. "ops")
  27257. @param valueName of the metric (e.g. "time", "latency")]]>
  27258. </doc>
  27259. </constructor>
  27260. <method name="add"
  27261. abstract="false" native="false" synchronized="true"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. <param name="numSamples" type="long"/>
  27265. <param name="sum" type="long"/>
  27266. <doc>
  27267. <![CDATA[Add a number of samples and their sum to the running stat
  27268. @param numSamples number of samples
  27269. @param sum of the samples]]>
  27270. </doc>
  27271. </method>
  27272. <method name="add"
  27273. abstract="false" native="false" synchronized="true"
  27274. static="false" final="false" visibility="public"
  27275. deprecated="not deprecated">
  27276. <param name="value" type="long"/>
  27277. <doc>
  27278. <![CDATA[Add a snapshot to the metric
  27279. @param value of the metric]]>
  27280. </doc>
  27281. </method>
  27282. <method name="snapshot"
  27283. abstract="false" native="false" synchronized="true"
  27284. static="false" final="false" visibility="public"
  27285. deprecated="not deprecated">
  27286. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27287. <param name="all" type="boolean"/>
  27288. </method>
  27289. <method name="resetMinMax"
  27290. abstract="false" native="false" synchronized="false"
  27291. static="false" final="false" visibility="public"
  27292. deprecated="not deprecated">
  27293. <doc>
  27294. <![CDATA[Reset the all time min max of the metric]]>
  27295. </doc>
  27296. </method>
  27297. <doc>
  27298. <![CDATA[A mutable metric with stats
  27299. Useful for keep throughput/latency stats.
  27300. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  27301. </doc>
  27302. </class>
  27303. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  27304. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  27305. <class name="MetricsRegistry" extends="java.lang.Object"
  27306. abstract="false"
  27307. static="false" final="false" visibility="public"
  27308. deprecated="not deprecated">
  27309. <constructor name="MetricsRegistry" type="java.lang.String"
  27310. static="false" final="false" visibility="public"
  27311. deprecated="not deprecated">
  27312. <doc>
  27313. <![CDATA[Construct the registry with a record name
  27314. @param name of the record of the metrics]]>
  27315. </doc>
  27316. </constructor>
  27317. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  27318. static="false" final="false" visibility="public"
  27319. deprecated="not deprecated">
  27320. <doc>
  27321. <![CDATA[Construct the registry with a name and a metric factory
  27322. @param name of the record of the metrics
  27323. @param factory for creating new mutable metrics]]>
  27324. </doc>
  27325. </constructor>
  27326. <method name="name" return="java.lang.String"
  27327. abstract="false" native="false" synchronized="false"
  27328. static="false" final="false" visibility="public"
  27329. deprecated="not deprecated">
  27330. <doc>
  27331. <![CDATA[@return the name of the metrics registry]]>
  27332. </doc>
  27333. </method>
  27334. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  27335. abstract="false" native="false" synchronized="false"
  27336. static="false" final="false" visibility="public"
  27337. deprecated="not deprecated">
  27338. <param name="name" type="java.lang.String"/>
  27339. <doc>
  27340. <![CDATA[Get a metric by name
  27341. @param name of the metric
  27342. @return the metric object]]>
  27343. </doc>
  27344. </method>
  27345. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  27346. abstract="false" native="false" synchronized="false"
  27347. static="false" final="false" visibility="public"
  27348. deprecated="not deprecated">
  27349. <param name="name" type="java.lang.String"/>
  27350. <param name="description" type="java.lang.String"/>
  27351. <param name="initValue" type="int"/>
  27352. <doc>
  27353. <![CDATA[Create a mutable integer counter
  27354. @param name of the metric
  27355. @param description of the metric
  27356. @param initValue of the metric
  27357. @return a new counter object]]>
  27358. </doc>
  27359. </method>
  27360. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  27361. abstract="false" native="false" synchronized="false"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. <param name="name" type="java.lang.String"/>
  27365. <param name="description" type="java.lang.String"/>
  27366. <param name="initValue" type="long"/>
  27367. <doc>
  27368. <![CDATA[Create a mutable long integer counter
  27369. @param name of the metric
  27370. @param description of the metric
  27371. @param initValue of the metric
  27372. @return a new counter object]]>
  27373. </doc>
  27374. </method>
  27375. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  27376. abstract="false" native="false" synchronized="false"
  27377. static="false" final="false" visibility="public"
  27378. deprecated="not deprecated">
  27379. <param name="name" type="java.lang.String"/>
  27380. <param name="description" type="java.lang.String"/>
  27381. <param name="initValue" type="int"/>
  27382. <doc>
  27383. <![CDATA[Create a mutable integer gauge
  27384. @param name of the metric
  27385. @param description of the metric
  27386. @param initValue of the metric
  27387. @return a new gauge object]]>
  27388. </doc>
  27389. </method>
  27390. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27391. abstract="false" native="false" synchronized="false"
  27392. static="false" final="false" visibility="public"
  27393. deprecated="not deprecated">
  27394. <param name="name" type="java.lang.String"/>
  27395. <param name="description" type="java.lang.String"/>
  27396. <param name="initValue" type="long"/>
  27397. <doc>
  27398. <![CDATA[Create a mutable long integer gauge
  27399. @param name of the metric
  27400. @param description of the metric
  27401. @param initValue of the metric
  27402. @return a new gauge object]]>
  27403. </doc>
  27404. </method>
  27405. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27406. abstract="false" native="false" synchronized="false"
  27407. static="false" final="false" visibility="public"
  27408. deprecated="not deprecated">
  27409. <param name="name" type="java.lang.String"/>
  27410. <param name="description" type="java.lang.String"/>
  27411. <param name="sampleName" type="java.lang.String"/>
  27412. <param name="valueName" type="java.lang.String"/>
  27413. <param name="extended" type="boolean"/>
  27414. <doc>
  27415. <![CDATA[Create a mutable metric with stats
  27416. @param name of the metric
  27417. @param description of the metric
  27418. @param sampleName of the metric (e.g., "ops")
  27419. @param valueName of the metric (e.g., "time" or "latency")
  27420. @param extended produce extended stat (stdev, min/max etc.) if true.
  27421. @return a new metric object]]>
  27422. </doc>
  27423. </method>
  27424. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27425. abstract="false" native="false" synchronized="false"
  27426. static="false" final="false" visibility="public"
  27427. deprecated="not deprecated">
  27428. <param name="name" type="java.lang.String"/>
  27429. <param name="description" type="java.lang.String"/>
  27430. <param name="sampleName" type="java.lang.String"/>
  27431. <param name="valueName" type="java.lang.String"/>
  27432. <doc>
  27433. <![CDATA[Create a mutable metric with stats
  27434. @param name of the metric
  27435. @param description of the metric
  27436. @param sampleName of the metric (e.g., "ops")
  27437. @param valueName of the metric (e.g., "time" or "latency")
  27438. @return a new metric object]]>
  27439. </doc>
  27440. </method>
  27441. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27442. abstract="false" native="false" synchronized="false"
  27443. static="false" final="false" visibility="public"
  27444. deprecated="not deprecated">
  27445. <param name="name" type="java.lang.String"/>
  27446. <doc>
  27447. <![CDATA[Create a mutable metric with stats using the name only
  27448. @param name of the metric
  27449. @return a new metric object]]>
  27450. </doc>
  27451. </method>
  27452. <method name="incr"
  27453. abstract="false" native="false" synchronized="false"
  27454. static="false" final="false" visibility="public"
  27455. deprecated="not deprecated">
  27456. <param name="name" type="java.lang.String"/>
  27457. <doc>
  27458. <![CDATA[Increment a metric by name.
  27459. @param name of the metric]]>
  27460. </doc>
  27461. </method>
  27462. <method name="incr"
  27463. abstract="false" native="false" synchronized="false"
  27464. static="false" final="false" visibility="public"
  27465. deprecated="not deprecated">
  27466. <param name="name" type="java.lang.String"/>
  27467. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  27468. <doc>
  27469. <![CDATA[Increment a metric by name.
  27470. @param name of the metric
  27471. @param factory to lazily create the metric if not null]]>
  27472. </doc>
  27473. </method>
  27474. <method name="decr"
  27475. abstract="false" native="false" synchronized="false"
  27476. static="false" final="false" visibility="public"
  27477. deprecated="not deprecated">
  27478. <param name="name" type="java.lang.String"/>
  27479. <doc>
  27480. <![CDATA[Decrement a metric by name.
  27481. @param name of the metric]]>
  27482. </doc>
  27483. </method>
  27484. <method name="decr"
  27485. abstract="false" native="false" synchronized="false"
  27486. static="false" final="false" visibility="public"
  27487. deprecated="not deprecated">
  27488. <param name="name" type="java.lang.String"/>
  27489. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  27490. <doc>
  27491. <![CDATA[Decrement a metric by name.
  27492. @param name of the metric
  27493. @param factory to lazily create the metric if not null]]>
  27494. </doc>
  27495. </method>
  27496. <method name="add"
  27497. abstract="false" native="false" synchronized="false"
  27498. static="false" final="false" visibility="public"
  27499. deprecated="not deprecated">
  27500. <param name="name" type="java.lang.String"/>
  27501. <param name="value" type="long"/>
  27502. <doc>
  27503. <![CDATA[Add a value to a metric by name.
  27504. @param name of the metric
  27505. @param value of the snapshot to add]]>
  27506. </doc>
  27507. </method>
  27508. <method name="add"
  27509. abstract="false" native="false" synchronized="false"
  27510. static="false" final="false" visibility="public"
  27511. deprecated="not deprecated">
  27512. <param name="name" type="java.lang.String"/>
  27513. <param name="value" type="long"/>
  27514. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  27515. <doc>
  27516. <![CDATA[Decrement a metric by name.
  27517. @param name of the metric
  27518. @param value of the snapshot to add
  27519. @param factory to lazily create the metric if not null]]>
  27520. </doc>
  27521. </method>
  27522. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27523. abstract="false" native="false" synchronized="false"
  27524. static="false" final="false" visibility="public"
  27525. deprecated="not deprecated">
  27526. <param name="name" type="java.lang.String"/>
  27527. <doc>
  27528. <![CDATA[Set the metrics context tag
  27529. @param name of the context
  27530. @return the registry itself as a convenience]]>
  27531. </doc>
  27532. </method>
  27533. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27534. abstract="false" native="false" synchronized="false"
  27535. static="false" final="false" visibility="public"
  27536. deprecated="not deprecated">
  27537. <param name="name" type="java.lang.String"/>
  27538. <param name="description" type="java.lang.String"/>
  27539. <param name="value" type="java.lang.String"/>
  27540. <doc>
  27541. <![CDATA[Add a tag to the metrics
  27542. @param name of the tag
  27543. @param description of the tag
  27544. @param value of the tag
  27545. @return the registry (for keep adding tags)]]>
  27546. </doc>
  27547. </method>
  27548. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27549. abstract="false" native="false" synchronized="false"
  27550. static="false" final="false" visibility="public"
  27551. deprecated="not deprecated">
  27552. <param name="name" type="java.lang.String"/>
  27553. <param name="description" type="java.lang.String"/>
  27554. <param name="value" type="java.lang.String"/>
  27555. <param name="override" type="boolean"/>
  27556. <doc>
  27557. <![CDATA[Add a tag to the metrics
  27558. @param name of the tag
  27559. @param description of the tag
  27560. @param value of the tag
  27561. @param override existing tag if true
  27562. @return the registry (for keep adding tags)]]>
  27563. </doc>
  27564. </method>
  27565. <method name="tags" return="java.util.Set"
  27566. abstract="false" native="false" synchronized="false"
  27567. static="false" final="false" visibility="public"
  27568. deprecated="not deprecated">
  27569. <doc>
  27570. <![CDATA[Get the tags
  27571. @return the tags set]]>
  27572. </doc>
  27573. </method>
  27574. <method name="metrics" return="java.util.Set"
  27575. abstract="false" native="false" synchronized="false"
  27576. static="false" final="false" visibility="public"
  27577. deprecated="not deprecated">
  27578. <doc>
  27579. <![CDATA[Get the metrics
  27580. @return the metrics set]]>
  27581. </doc>
  27582. </method>
  27583. <method name="snapshot"
  27584. abstract="false" native="false" synchronized="false"
  27585. static="false" final="false" visibility="public"
  27586. deprecated="not deprecated">
  27587. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27588. <param name="all" type="boolean"/>
  27589. <doc>
  27590. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  27591. @param builder to contain the metrics snapshot
  27592. @param all get all the metrics even if the values are not changed.]]>
  27593. </doc>
  27594. </method>
  27595. <field name="CONTEXT_KEY" type="java.lang.String"
  27596. transient="false" volatile="false"
  27597. static="true" final="true" visibility="public"
  27598. deprecated="not deprecated">
  27599. <doc>
  27600. <![CDATA[key for the context tag]]>
  27601. </doc>
  27602. </field>
  27603. <field name="CONTEXT_DESC" type="java.lang.String"
  27604. transient="false" volatile="false"
  27605. static="true" final="true" visibility="public"
  27606. deprecated="not deprecated">
  27607. <doc>
  27608. <![CDATA[description for the context tag]]>
  27609. </doc>
  27610. </field>
  27611. <doc>
  27612. <![CDATA[An optional metrics registry class for creating and maintaining a
  27613. collection of MetricsMutables, making writing metrics source easier.]]>
  27614. </doc>
  27615. </class>
  27616. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  27617. </package>
  27618. <package name="org.apache.hadoop.metrics2.sink">
  27619. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  27620. <class name="FileSink" extends="java.lang.Object"
  27621. abstract="false"
  27622. static="false" final="false" visibility="public"
  27623. deprecated="not deprecated">
  27624. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27625. <constructor name="FileSink"
  27626. static="false" final="false" visibility="public"
  27627. deprecated="not deprecated">
  27628. </constructor>
  27629. <method name="init"
  27630. abstract="false" native="false" synchronized="false"
  27631. static="false" final="false" visibility="public"
  27632. deprecated="not deprecated">
  27633. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27634. </method>
  27635. <method name="putMetrics"
  27636. abstract="false" native="false" synchronized="false"
  27637. static="false" final="false" visibility="public"
  27638. deprecated="not deprecated">
  27639. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27640. </method>
  27641. <method name="flush"
  27642. abstract="false" native="false" synchronized="false"
  27643. static="false" final="false" visibility="public"
  27644. deprecated="not deprecated">
  27645. </method>
  27646. </class>
  27647. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  27648. </package>
  27649. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  27650. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  27651. <class name="AbstractGangliaSink" extends="java.lang.Object"
  27652. abstract="true"
  27653. static="false" final="false" visibility="public"
  27654. deprecated="not deprecated">
  27655. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27656. <constructor name="AbstractGangliaSink"
  27657. static="false" final="false" visibility="public"
  27658. deprecated="not deprecated">
  27659. </constructor>
  27660. <method name="init"
  27661. abstract="false" native="false" synchronized="false"
  27662. static="false" final="false" visibility="public"
  27663. deprecated="not deprecated">
  27664. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27665. </method>
  27666. <method name="flush"
  27667. abstract="false" native="false" synchronized="false"
  27668. static="false" final="false" visibility="public"
  27669. deprecated="not deprecated">
  27670. </method>
  27671. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  27672. abstract="false" native="false" synchronized="false"
  27673. static="false" final="false" visibility="protected"
  27674. deprecated="not deprecated">
  27675. <param name="metricName" type="java.lang.String"/>
  27676. <doc>
  27677. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  27678. @param metricName
  27679. @return looked up GangliaConf]]>
  27680. </doc>
  27681. </method>
  27682. <method name="getHostName" return="java.lang.String"
  27683. abstract="false" native="false" synchronized="false"
  27684. static="false" final="false" visibility="protected"
  27685. deprecated="not deprecated">
  27686. <doc>
  27687. <![CDATA[@return the hostName]]>
  27688. </doc>
  27689. </method>
  27690. <method name="xdr_string"
  27691. abstract="false" native="false" synchronized="false"
  27692. static="false" final="false" visibility="protected"
  27693. deprecated="not deprecated">
  27694. <param name="s" type="java.lang.String"/>
  27695. <doc>
  27696. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  27697. int, followed by the bytes of the string, padded if necessary to a multiple
  27698. of 4.
  27699. @param s the string to be written to buffer at offset location]]>
  27700. </doc>
  27701. </method>
  27702. <method name="xdr_int"
  27703. abstract="false" native="false" synchronized="false"
  27704. static="false" final="false" visibility="protected"
  27705. deprecated="not deprecated">
  27706. <param name="i" type="int"/>
  27707. <doc>
  27708. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  27709. </doc>
  27710. </method>
  27711. <method name="emitToGangliaHosts"
  27712. abstract="false" native="false" synchronized="false"
  27713. static="false" final="false" visibility="protected"
  27714. deprecated="not deprecated">
  27715. <exception name="IOException" type="java.io.IOException"/>
  27716. <doc>
  27717. <![CDATA[Sends Ganglia Metrics to the configured hosts
  27718. @throws IOException]]>
  27719. </doc>
  27720. </method>
  27721. <method name="isSupportSparseMetrics" return="boolean"
  27722. abstract="false" native="false" synchronized="false"
  27723. static="false" final="false" visibility="protected"
  27724. deprecated="not deprecated">
  27725. <doc>
  27726. <![CDATA[@return whether sparse metrics are supported]]>
  27727. </doc>
  27728. </method>
  27729. <field name="LOG" type="org.apache.commons.logging.Log"
  27730. transient="false" volatile="false"
  27731. static="false" final="true" visibility="public"
  27732. deprecated="not deprecated">
  27733. </field>
  27734. <field name="DEFAULT_UNITS" type="java.lang.String"
  27735. transient="false" volatile="false"
  27736. static="true" final="true" visibility="public"
  27737. deprecated="not deprecated">
  27738. </field>
  27739. <field name="DEFAULT_TMAX" type="int"
  27740. transient="false" volatile="false"
  27741. static="true" final="true" visibility="public"
  27742. deprecated="not deprecated">
  27743. </field>
  27744. <field name="DEFAULT_DMAX" type="int"
  27745. transient="false" volatile="false"
  27746. static="true" final="true" visibility="public"
  27747. deprecated="not deprecated">
  27748. </field>
  27749. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27750. transient="false" volatile="false"
  27751. static="true" final="true" visibility="public"
  27752. deprecated="not deprecated">
  27753. </field>
  27754. <field name="DEFAULT_PORT" type="int"
  27755. transient="false" volatile="false"
  27756. static="true" final="true" visibility="public"
  27757. deprecated="not deprecated">
  27758. </field>
  27759. <field name="SERVERS_PROPERTY" type="java.lang.String"
  27760. transient="false" volatile="false"
  27761. static="true" final="true" visibility="public"
  27762. deprecated="not deprecated">
  27763. </field>
  27764. <field name="BUFFER_SIZE" type="int"
  27765. transient="false" volatile="false"
  27766. static="true" final="true" visibility="public"
  27767. deprecated="not deprecated">
  27768. </field>
  27769. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  27770. transient="false" volatile="false"
  27771. static="true" final="true" visibility="public"
  27772. deprecated="not deprecated">
  27773. </field>
  27774. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  27775. transient="false" volatile="false"
  27776. static="true" final="true" visibility="public"
  27777. deprecated="not deprecated">
  27778. </field>
  27779. <field name="EQUAL" type="java.lang.String"
  27780. transient="false" volatile="false"
  27781. static="true" final="true" visibility="public"
  27782. deprecated="not deprecated">
  27783. </field>
  27784. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  27785. transient="false" volatile="false"
  27786. static="false" final="true" visibility="protected"
  27787. deprecated="not deprecated">
  27788. <doc>
  27789. <![CDATA[Used for visiting Metrics]]>
  27790. </doc>
  27791. </field>
  27792. <doc>
  27793. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  27794. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  27795. As per the documentation, sink implementations doesn't have to worry about
  27796. thread safety. Hence the code wasn't written for thread safety and should
  27797. be modified in case the above assumption changes in the future.]]>
  27798. </doc>
  27799. </class>
  27800. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  27801. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27802. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  27803. abstract="false"
  27804. static="true" final="true" visibility="public"
  27805. deprecated="not deprecated">
  27806. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  27807. abstract="false" native="false" synchronized="false"
  27808. static="true" final="false" visibility="public"
  27809. deprecated="not deprecated">
  27810. </method>
  27811. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27812. abstract="false" native="false" synchronized="false"
  27813. static="true" final="false" visibility="public"
  27814. deprecated="not deprecated">
  27815. <param name="name" type="java.lang.String"/>
  27816. </method>
  27817. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27818. transient="false" volatile="false"
  27819. static="true" final="true" visibility="public"
  27820. deprecated="not deprecated">
  27821. </field>
  27822. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27823. transient="false" volatile="false"
  27824. static="true" final="true" visibility="public"
  27825. deprecated="not deprecated">
  27826. </field>
  27827. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27828. transient="false" volatile="false"
  27829. static="true" final="true" visibility="public"
  27830. deprecated="not deprecated">
  27831. </field>
  27832. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27833. transient="false" volatile="false"
  27834. static="true" final="true" visibility="public"
  27835. deprecated="not deprecated">
  27836. </field>
  27837. <doc>
  27838. <![CDATA[define enum for various type of conf]]>
  27839. </doc>
  27840. </class>
  27841. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27842. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27843. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  27844. abstract="false"
  27845. static="true" final="true" visibility="public"
  27846. deprecated="not deprecated">
  27847. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  27848. abstract="false" native="false" synchronized="false"
  27849. static="true" final="false" visibility="public"
  27850. deprecated="not deprecated">
  27851. </method>
  27852. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27853. abstract="false" native="false" synchronized="false"
  27854. static="true" final="false" visibility="public"
  27855. deprecated="not deprecated">
  27856. <param name="name" type="java.lang.String"/>
  27857. </method>
  27858. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27859. transient="false" volatile="false"
  27860. static="true" final="true" visibility="public"
  27861. deprecated="not deprecated">
  27862. </field>
  27863. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27864. transient="false" volatile="false"
  27865. static="true" final="true" visibility="public"
  27866. deprecated="not deprecated">
  27867. </field>
  27868. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27869. transient="false" volatile="false"
  27870. static="true" final="true" visibility="public"
  27871. deprecated="not deprecated">
  27872. </field>
  27873. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27874. transient="false" volatile="false"
  27875. static="true" final="true" visibility="public"
  27876. deprecated="not deprecated">
  27877. </field>
  27878. <doc>
  27879. <![CDATA[ganglia slope values which equal the ordinal]]>
  27880. </doc>
  27881. </class>
  27882. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27883. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27884. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  27885. abstract="false"
  27886. static="false" final="false" visibility="public"
  27887. deprecated="not deprecated">
  27888. <constructor name="GangliaSink30"
  27889. static="false" final="false" visibility="public"
  27890. deprecated="not deprecated">
  27891. </constructor>
  27892. <method name="putMetrics"
  27893. abstract="false" native="false" synchronized="false"
  27894. static="false" final="false" visibility="public"
  27895. deprecated="not deprecated">
  27896. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27897. </method>
  27898. <method name="emitMetric"
  27899. abstract="false" native="false" synchronized="false"
  27900. static="false" final="false" visibility="protected"
  27901. deprecated="not deprecated">
  27902. <param name="groupName" type="java.lang.String"/>
  27903. <param name="name" type="java.lang.String"/>
  27904. <param name="type" type="java.lang.String"/>
  27905. <param name="value" type="java.lang.String"/>
  27906. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27907. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27908. <exception name="IOException" type="java.io.IOException"/>
  27909. <doc>
  27910. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27911. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  27912. order to keep it in sync.
  27913. @param groupName The group name of the metric
  27914. @param name The metric name
  27915. @param type The type of the metric
  27916. @param value The value of the metric
  27917. @param gConf The GangliaConf for this metric
  27918. @param gSlope The slope for this metric
  27919. @throws IOException]]>
  27920. </doc>
  27921. </method>
  27922. <field name="LOG" type="org.apache.commons.logging.Log"
  27923. transient="false" volatile="false"
  27924. static="false" final="true" visibility="public"
  27925. deprecated="not deprecated">
  27926. </field>
  27927. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  27928. transient="false" volatile="false"
  27929. static="false" final="false" visibility="protected"
  27930. deprecated="not deprecated">
  27931. </field>
  27932. <doc>
  27933. <![CDATA[This code supports Ganglia 3.0]]>
  27934. </doc>
  27935. </class>
  27936. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27937. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27938. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  27939. abstract="false"
  27940. static="false" final="false" visibility="public"
  27941. deprecated="not deprecated">
  27942. <constructor name="GangliaSink31"
  27943. static="false" final="false" visibility="public"
  27944. deprecated="not deprecated">
  27945. </constructor>
  27946. <method name="emitMetric"
  27947. abstract="false" native="false" synchronized="false"
  27948. static="false" final="false" visibility="protected"
  27949. deprecated="not deprecated">
  27950. <param name="groupName" type="java.lang.String"/>
  27951. <param name="name" type="java.lang.String"/>
  27952. <param name="type" type="java.lang.String"/>
  27953. <param name="value" type="java.lang.String"/>
  27954. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27955. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27956. <exception name="IOException" type="java.io.IOException"/>
  27957. <doc>
  27958. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27959. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  27960. order to keep it in sync.
  27961. @param groupName The group name of the metric
  27962. @param name The metric name
  27963. @param type The type of the metric
  27964. @param value The value of the metric
  27965. @param gConf The GangliaConf for this metric
  27966. @param gSlope The slope for this metric
  27967. @throws IOException]]>
  27968. </doc>
  27969. </method>
  27970. <field name="LOG" type="org.apache.commons.logging.Log"
  27971. transient="false" volatile="false"
  27972. static="false" final="true" visibility="public"
  27973. deprecated="not deprecated">
  27974. </field>
  27975. <doc>
  27976. <![CDATA[This code supports Ganglia 3.1]]>
  27977. </doc>
  27978. </class>
  27979. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27980. </package>
  27981. <package name="org.apache.hadoop.metrics2.source">
  27982. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  27983. <class name="JvmMetricsSource" extends="java.lang.Object"
  27984. abstract="false"
  27985. static="false" final="false" visibility="public"
  27986. deprecated="not deprecated">
  27987. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27988. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27989. abstract="false" native="false" synchronized="false"
  27990. static="true" final="false" visibility="public"
  27991. deprecated="not deprecated">
  27992. <param name="processName" type="java.lang.String"/>
  27993. <param name="sessionId" type="java.lang.String"/>
  27994. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  27995. </method>
  27996. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27997. abstract="false" native="false" synchronized="false"
  27998. static="true" final="false" visibility="public"
  27999. deprecated="not deprecated">
  28000. <param name="processName" type="java.lang.String"/>
  28001. <param name="sessionId" type="java.lang.String"/>
  28002. </method>
  28003. <method name="getMetrics"
  28004. abstract="false" native="false" synchronized="false"
  28005. static="false" final="false" visibility="public"
  28006. deprecated="not deprecated">
  28007. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  28008. <param name="all" type="boolean"/>
  28009. </method>
  28010. </class>
  28011. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  28012. </package>
  28013. <package name="org.apache.hadoop.metrics2.util">
  28014. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  28015. <class name="Contracts" extends="java.lang.Object"
  28016. abstract="false"
  28017. static="false" final="false" visibility="public"
  28018. deprecated="not deprecated">
  28019. <method name="checkNotNull" return="java.lang.Object"
  28020. abstract="false" native="false" synchronized="false"
  28021. static="true" final="false" visibility="public"
  28022. deprecated="not deprecated">
  28023. <param name="ref" type="java.lang.Object"/>
  28024. <param name="msg" type="java.lang.Object"/>
  28025. <doc>
  28026. <![CDATA[Check that a reference is not null.
  28027. @param <T> type of the reference
  28028. @param ref the reference to check
  28029. @param msg the error message
  28030. @throws NullPointerException if {@code ref} is null
  28031. @return the checked reference for convenience]]>
  28032. </doc>
  28033. </method>
  28034. <method name="checkState"
  28035. abstract="false" native="false" synchronized="false"
  28036. static="true" final="false" visibility="public"
  28037. deprecated="not deprecated">
  28038. <param name="expression" type="boolean"/>
  28039. <param name="msg" type="java.lang.Object"/>
  28040. <doc>
  28041. <![CDATA[Check the state expression for false conditions
  28042. @param expression the boolean expression to check
  28043. @param msg the error message if {@code expression} is false
  28044. @throws IllegalStateException if {@code expression} is false]]>
  28045. </doc>
  28046. </method>
  28047. <method name="checkArg" return="java.lang.Object"
  28048. abstract="false" native="false" synchronized="false"
  28049. static="true" final="false" visibility="public"
  28050. deprecated="not deprecated">
  28051. <param name="arg" type="java.lang.Object"/>
  28052. <param name="expression" type="boolean"/>
  28053. <param name="msg" type="java.lang.Object"/>
  28054. <doc>
  28055. <![CDATA[Check an argument for false conditions
  28056. @param <T> type of the argument
  28057. @param arg the argument to check
  28058. @param expression the boolean expression for the condition
  28059. @param msg the error message if {@code expression} is false
  28060. @return the argument for convenience]]>
  28061. </doc>
  28062. </method>
  28063. <method name="checkArg" return="int"
  28064. abstract="false" native="false" synchronized="false"
  28065. static="true" final="false" visibility="public"
  28066. deprecated="not deprecated">
  28067. <param name="arg" type="int"/>
  28068. <param name="expression" type="boolean"/>
  28069. <param name="msg" type="java.lang.Object"/>
  28070. <doc>
  28071. <![CDATA[Check an argument for false conditions
  28072. @param arg the argument to check
  28073. @param expression the boolean expression for the condition
  28074. @param msg the error message if {@code expression} is false
  28075. @return the argument for convenience]]>
  28076. </doc>
  28077. </method>
  28078. <method name="checkArg" return="long"
  28079. abstract="false" native="false" synchronized="false"
  28080. static="true" final="false" visibility="public"
  28081. deprecated="not deprecated">
  28082. <param name="arg" type="long"/>
  28083. <param name="expression" type="boolean"/>
  28084. <param name="msg" type="java.lang.Object"/>
  28085. <doc>
  28086. <![CDATA[Check an argument for false conditions
  28087. @param arg the argument to check
  28088. @param expression the boolean expression for the condition
  28089. @param msg the error message if {@code expression} is false
  28090. @return the argument for convenience]]>
  28091. </doc>
  28092. </method>
  28093. <method name="checkArg" return="float"
  28094. abstract="false" native="false" synchronized="false"
  28095. static="true" final="false" visibility="public"
  28096. deprecated="not deprecated">
  28097. <param name="arg" type="float"/>
  28098. <param name="expression" type="boolean"/>
  28099. <param name="msg" type="java.lang.Object"/>
  28100. <doc>
  28101. <![CDATA[Check an argument for false conditions
  28102. @param arg the argument to check
  28103. @param expression the boolean expression for the condition
  28104. @param msg the error message if {@code expression} is false
  28105. @return the argument for convenience]]>
  28106. </doc>
  28107. </method>
  28108. <method name="checkArg" return="double"
  28109. abstract="false" native="false" synchronized="false"
  28110. static="true" final="false" visibility="public"
  28111. deprecated="not deprecated">
  28112. <param name="arg" type="double"/>
  28113. <param name="expression" type="boolean"/>
  28114. <param name="msg" type="java.lang.Object"/>
  28115. <doc>
  28116. <![CDATA[Check an argument for false conditions
  28117. @param arg the argument to check
  28118. @param expression the boolean expression for the condition
  28119. @param msg the error message if {@code expression} is false
  28120. @return the argument for convenience]]>
  28121. </doc>
  28122. </method>
  28123. <doc>
  28124. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  28125. </doc>
  28126. </class>
  28127. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  28128. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  28129. <class name="MBeans" extends="java.lang.Object"
  28130. abstract="false"
  28131. static="false" final="false" visibility="public"
  28132. deprecated="not deprecated">
  28133. <constructor name="MBeans"
  28134. static="false" final="false" visibility="public"
  28135. deprecated="not deprecated">
  28136. </constructor>
  28137. <method name="register" return="javax.management.ObjectName"
  28138. abstract="false" native="false" synchronized="false"
  28139. static="true" final="false" visibility="public"
  28140. deprecated="not deprecated">
  28141. <param name="serviceName" type="java.lang.String"/>
  28142. <param name="nameName" type="java.lang.String"/>
  28143. <param name="theMbean" type="java.lang.Object"/>
  28144. <doc>
  28145. <![CDATA[Register the MBean using our standard MBeanName format
  28146. "hadoop:service=<serviceName>,name=<nameName>"
  28147. Where the <serviceName> and <nameName> are the supplied parameters
  28148. @param serviceName
  28149. @param nameName
  28150. @param theMbean - the MBean to register
  28151. @return the named used to register the MBean]]>
  28152. </doc>
  28153. </method>
  28154. <method name="unregister"
  28155. abstract="false" native="false" synchronized="false"
  28156. static="true" final="false" visibility="public"
  28157. deprecated="not deprecated">
  28158. <param name="mbeanName" type="javax.management.ObjectName"/>
  28159. </method>
  28160. <doc>
  28161. <![CDATA[This util class provides a method to register an MBean using
  28162. our standard naming convention as described in the doc
  28163. for {link {@link #register(String, String, Object)}]]>
  28164. </doc>
  28165. </class>
  28166. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  28167. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  28168. <class name="MetricsCache" extends="java.lang.Object"
  28169. abstract="false"
  28170. static="false" final="false" visibility="public"
  28171. deprecated="not deprecated">
  28172. <constructor name="MetricsCache"
  28173. static="false" final="false" visibility="public"
  28174. deprecated="not deprecated">
  28175. </constructor>
  28176. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28177. abstract="false" native="false" synchronized="false"
  28178. static="false" final="false" visibility="public"
  28179. deprecated="not deprecated">
  28180. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28181. <param name="includingTags" type="boolean"/>
  28182. <doc>
  28183. <![CDATA[Update the cache and return the cached record
  28184. @param mr the update record
  28185. @param includingTags cache tag values (for later lookup by name) if true
  28186. @return the updated cached record]]>
  28187. </doc>
  28188. </method>
  28189. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28190. abstract="false" native="false" synchronized="false"
  28191. static="false" final="false" visibility="public"
  28192. deprecated="not deprecated">
  28193. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28194. </method>
  28195. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28196. abstract="false" native="false" synchronized="false"
  28197. static="false" final="false" visibility="public"
  28198. deprecated="not deprecated">
  28199. <param name="name" type="java.lang.String"/>
  28200. <param name="tags" type="java.util.Collection"/>
  28201. <doc>
  28202. <![CDATA[Get the cached record
  28203. @param name of the record
  28204. @param tags of the record
  28205. @return the cached record or null]]>
  28206. </doc>
  28207. </method>
  28208. <doc>
  28209. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  28210. </doc>
  28211. </class>
  28212. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  28213. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  28214. <class name="MetricsCache.Record" extends="java.lang.Object"
  28215. abstract="false"
  28216. static="true" final="false" visibility="public"
  28217. deprecated="not deprecated">
  28218. <constructor name="MetricsCache.Record"
  28219. static="false" final="false" visibility="public"
  28220. deprecated="not deprecated">
  28221. </constructor>
  28222. <method name="getTag" return="java.lang.String"
  28223. abstract="false" native="false" synchronized="false"
  28224. static="false" final="false" visibility="public"
  28225. deprecated="not deprecated">
  28226. <param name="key" type="java.lang.String"/>
  28227. <doc>
  28228. <![CDATA[Get the tag value
  28229. @param key name of the tag
  28230. @return the tag value]]>
  28231. </doc>
  28232. </method>
  28233. <method name="getMetric" return="java.lang.Number"
  28234. abstract="false" native="false" synchronized="false"
  28235. static="false" final="false" visibility="public"
  28236. deprecated="not deprecated">
  28237. <param name="key" type="java.lang.String"/>
  28238. <doc>
  28239. <![CDATA[Get the metric value
  28240. @param key name of the metric
  28241. @return the metric value]]>
  28242. </doc>
  28243. </method>
  28244. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  28245. abstract="false" native="false" synchronized="false"
  28246. static="false" final="false" visibility="public"
  28247. deprecated="not deprecated">
  28248. <param name="key" type="java.lang.String"/>
  28249. <doc>
  28250. <![CDATA[Get the metric value
  28251. @param key name of the metric
  28252. @return the metric value]]>
  28253. </doc>
  28254. </method>
  28255. <method name="metrics" return="java.util.Set"
  28256. abstract="false" native="false" synchronized="false"
  28257. static="false" final="false" visibility="public"
  28258. deprecated="not deprecated">
  28259. <doc>
  28260. <![CDATA[@return entry set of metrics]]>
  28261. </doc>
  28262. </method>
  28263. <method name="metricsEntrySet" return="java.util.Set"
  28264. abstract="false" native="false" synchronized="false"
  28265. static="false" final="false" visibility="public"
  28266. deprecated="not deprecated">
  28267. <doc>
  28268. <![CDATA[@return entry set of metrics]]>
  28269. </doc>
  28270. </method>
  28271. <doc>
  28272. <![CDATA[Cached record]]>
  28273. </doc>
  28274. </class>
  28275. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  28276. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  28277. <class name="SampleStat" extends="java.lang.Object"
  28278. abstract="false"
  28279. static="false" final="false" visibility="public"
  28280. deprecated="not deprecated">
  28281. <constructor name="SampleStat"
  28282. static="false" final="false" visibility="public"
  28283. deprecated="not deprecated">
  28284. <doc>
  28285. <![CDATA[Construct a new running sample stat]]>
  28286. </doc>
  28287. </constructor>
  28288. <method name="reset"
  28289. abstract="false" native="false" synchronized="false"
  28290. static="false" final="false" visibility="public"
  28291. deprecated="not deprecated">
  28292. </method>
  28293. <method name="copyTo"
  28294. abstract="false" native="false" synchronized="false"
  28295. static="false" final="false" visibility="public"
  28296. deprecated="not deprecated">
  28297. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  28298. <doc>
  28299. <![CDATA[Copy the values to other (saves object creation and gc.)
  28300. @param other the destination to hold our values]]>
  28301. </doc>
  28302. </method>
  28303. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  28304. abstract="false" native="false" synchronized="false"
  28305. static="false" final="false" visibility="public"
  28306. deprecated="not deprecated">
  28307. <param name="x" type="double"/>
  28308. <doc>
  28309. <![CDATA[Add a sample the running stat.
  28310. @param x the sample number
  28311. @return self]]>
  28312. </doc>
  28313. </method>
  28314. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  28315. abstract="false" native="false" synchronized="false"
  28316. static="false" final="false" visibility="public"
  28317. deprecated="not deprecated">
  28318. <param name="nSamples" type="long"/>
  28319. <param name="x" type="double"/>
  28320. <doc>
  28321. <![CDATA[Add some sample and a partial sum to the running stat.
  28322. Note, min/max is not evaluated using this method.
  28323. @param nSamples number of samples
  28324. @param x the partial sum
  28325. @return self]]>
  28326. </doc>
  28327. </method>
  28328. <method name="numSamples" return="long"
  28329. abstract="false" native="false" synchronized="false"
  28330. static="false" final="false" visibility="public"
  28331. deprecated="not deprecated">
  28332. <doc>
  28333. <![CDATA[@return the total number of samples]]>
  28334. </doc>
  28335. </method>
  28336. <method name="mean" return="double"
  28337. abstract="false" native="false" synchronized="false"
  28338. static="false" final="false" visibility="public"
  28339. deprecated="not deprecated">
  28340. <doc>
  28341. <![CDATA[@return the arithmetic mean of the samples]]>
  28342. </doc>
  28343. </method>
  28344. <method name="variance" return="double"
  28345. abstract="false" native="false" synchronized="false"
  28346. static="false" final="false" visibility="public"
  28347. deprecated="not deprecated">
  28348. <doc>
  28349. <![CDATA[@return the variance of the samples]]>
  28350. </doc>
  28351. </method>
  28352. <method name="stddev" return="double"
  28353. abstract="false" native="false" synchronized="false"
  28354. static="false" final="false" visibility="public"
  28355. deprecated="not deprecated">
  28356. <doc>
  28357. <![CDATA[@return the standard deviation of the samples]]>
  28358. </doc>
  28359. </method>
  28360. <method name="min" return="double"
  28361. abstract="false" native="false" synchronized="false"
  28362. static="false" final="false" visibility="public"
  28363. deprecated="not deprecated">
  28364. <doc>
  28365. <![CDATA[@return the minimum value of the samples]]>
  28366. </doc>
  28367. </method>
  28368. <method name="max" return="double"
  28369. abstract="false" native="false" synchronized="false"
  28370. static="false" final="false" visibility="public"
  28371. deprecated="not deprecated">
  28372. <doc>
  28373. <![CDATA[@return the maximum value of the samples]]>
  28374. </doc>
  28375. </method>
  28376. <doc>
  28377. <![CDATA[Helper to compute running sample stats]]>
  28378. </doc>
  28379. </class>
  28380. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  28381. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  28382. <class name="SampleStat.MinMax" extends="java.lang.Object"
  28383. abstract="false"
  28384. static="true" final="false" visibility="public"
  28385. deprecated="not deprecated">
  28386. <constructor name="SampleStat.MinMax"
  28387. static="false" final="false" visibility="public"
  28388. deprecated="not deprecated">
  28389. </constructor>
  28390. <method name="add"
  28391. abstract="false" native="false" synchronized="false"
  28392. static="false" final="false" visibility="public"
  28393. deprecated="not deprecated">
  28394. <param name="value" type="double"/>
  28395. </method>
  28396. <method name="min" return="double"
  28397. abstract="false" native="false" synchronized="false"
  28398. static="false" final="false" visibility="public"
  28399. deprecated="not deprecated">
  28400. </method>
  28401. <method name="max" return="double"
  28402. abstract="false" native="false" synchronized="false"
  28403. static="false" final="false" visibility="public"
  28404. deprecated="not deprecated">
  28405. </method>
  28406. <method name="reset"
  28407. abstract="false" native="false" synchronized="false"
  28408. static="false" final="false" visibility="public"
  28409. deprecated="not deprecated">
  28410. </method>
  28411. <method name="reset"
  28412. abstract="false" native="false" synchronized="false"
  28413. static="false" final="false" visibility="public"
  28414. deprecated="not deprecated">
  28415. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  28416. </method>
  28417. <doc>
  28418. <![CDATA[Helper to keep running min/max]]>
  28419. </doc>
  28420. </class>
  28421. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  28422. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  28423. <class name="Servers" extends="java.lang.Object"
  28424. abstract="false"
  28425. static="false" final="false" visibility="public"
  28426. deprecated="not deprecated">
  28427. <method name="parse" return="java.util.List"
  28428. abstract="false" native="false" synchronized="false"
  28429. static="true" final="false" visibility="public"
  28430. deprecated="not deprecated">
  28431. <param name="specs" type="java.lang.String"/>
  28432. <param name="defaultPort" type="int"/>
  28433. <doc>
  28434. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  28435. of the form <i>hostname</i> or <i>hostname:port</i>. If
  28436. the specs string is null, defaults to localhost:defaultPort.
  28437. @param specs server specs (see description)
  28438. @param defaultPort the default port if not specified
  28439. @return a list of InetSocketAddress objects.]]>
  28440. </doc>
  28441. </method>
  28442. <doc>
  28443. <![CDATA[Helpers to handle server addresses]]>
  28444. </doc>
  28445. </class>
  28446. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  28447. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  28448. <class name="TryIterator" extends="java.lang.Object"
  28449. abstract="true"
  28450. static="false" final="false" visibility="public"
  28451. deprecated="not deprecated">
  28452. <implements name="java.util.Iterator"/>
  28453. <constructor name="TryIterator"
  28454. static="false" final="false" visibility="public"
  28455. deprecated="not deprecated">
  28456. </constructor>
  28457. <method name="tryNext" return="java.lang.Object"
  28458. abstract="true" native="false" synchronized="false"
  28459. static="false" final="false" visibility="protected"
  28460. deprecated="not deprecated">
  28461. <doc>
  28462. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  28463. infinite loop could occur. If this method throws an exception, any
  28464. further attempts to use the iterator would result in an
  28465. {@link IllegalStateException}.
  28466. @return the next element if there is one or return {@link #done()}]]>
  28467. </doc>
  28468. </method>
  28469. <method name="done" return="java.lang.Object"
  28470. abstract="false" native="false" synchronized="false"
  28471. static="false" final="true" visibility="protected"
  28472. deprecated="not deprecated">
  28473. <doc>
  28474. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  28475. when there are no more elements left in the iteration.
  28476. @return null as a convenience to implement {@link #tryNext()}]]>
  28477. </doc>
  28478. </method>
  28479. <method name="hasNext" return="boolean"
  28480. abstract="false" native="false" synchronized="false"
  28481. static="false" final="true" visibility="public"
  28482. deprecated="not deprecated">
  28483. <doc>
  28484. <![CDATA[@return true if we have a next element or false otherwise.]]>
  28485. </doc>
  28486. </method>
  28487. <method name="next" return="java.lang.Object"
  28488. abstract="false" native="false" synchronized="false"
  28489. static="false" final="true" visibility="public"
  28490. deprecated="not deprecated">
  28491. <doc>
  28492. <![CDATA[@return the next element if we have one.]]>
  28493. </doc>
  28494. </method>
  28495. <method name="current" return="java.lang.Object"
  28496. abstract="false" native="false" synchronized="false"
  28497. static="false" final="true" visibility="public"
  28498. deprecated="not deprecated">
  28499. <doc>
  28500. <![CDATA[@return the current element without advancing the iterator]]>
  28501. </doc>
  28502. </method>
  28503. <method name="remove"
  28504. abstract="false" native="false" synchronized="false"
  28505. static="false" final="true" visibility="public"
  28506. deprecated="not deprecated">
  28507. <doc>
  28508. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  28509. </doc>
  28510. </method>
  28511. <doc>
  28512. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  28513. This class also makes writing filtering iterators easier, where the only
  28514. way to discover the end of data is by trying to read it. The same applies
  28515. to writing iterator wrappers around stream read calls.
  28516. One only needs to implement the tryNext() method and call done() when done.
  28517. @param <T> the type of the iterator]]>
  28518. </doc>
  28519. </class>
  28520. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  28521. </package>
  28522. <package name="org.apache.hadoop.net">
  28523. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28524. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  28525. abstract="false"
  28526. static="false" final="false" visibility="public"
  28527. deprecated="not deprecated">
  28528. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  28529. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28530. static="false" final="false" visibility="public"
  28531. deprecated="not deprecated">
  28532. </constructor>
  28533. <method name="resolve" return="java.util.List"
  28534. abstract="false" native="false" synchronized="false"
  28535. static="false" final="false" visibility="public"
  28536. deprecated="not deprecated">
  28537. <param name="names" type="java.util.List"/>
  28538. </method>
  28539. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28540. transient="false" volatile="false"
  28541. static="false" final="false" visibility="protected"
  28542. deprecated="not deprecated">
  28543. </field>
  28544. <doc>
  28545. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  28546. raw DNSToSwitchMapping and stores the resolved network location in
  28547. a cache. The following calls to a resolved network location
  28548. will get its location from the cache.]]>
  28549. </doc>
  28550. </class>
  28551. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28552. <!-- start class org.apache.hadoop.net.DNS -->
  28553. <class name="DNS" extends="java.lang.Object"
  28554. abstract="false"
  28555. static="false" final="false" visibility="public"
  28556. deprecated="not deprecated">
  28557. <constructor name="DNS"
  28558. static="false" final="false" visibility="public"
  28559. deprecated="not deprecated">
  28560. </constructor>
  28561. <method name="reverseDns" return="java.lang.String"
  28562. abstract="false" native="false" synchronized="false"
  28563. static="true" final="false" visibility="public"
  28564. deprecated="not deprecated">
  28565. <param name="hostIp" type="java.net.InetAddress"/>
  28566. <param name="ns" type="java.lang.String"/>
  28567. <exception name="NamingException" type="javax.naming.NamingException"/>
  28568. <doc>
  28569. <![CDATA[Returns the hostname associated with the specified IP address by the
  28570. provided nameserver.
  28571. @param hostIp
  28572. The address to reverse lookup
  28573. @param ns
  28574. The host name of a reachable DNS server
  28575. @return The host name associated with the provided IP
  28576. @throws NamingException
  28577. If a NamingException is encountered]]>
  28578. </doc>
  28579. </method>
  28580. <method name="getIPs" return="java.lang.String[]"
  28581. abstract="false" native="false" synchronized="false"
  28582. static="true" final="false" visibility="public"
  28583. deprecated="not deprecated">
  28584. <param name="strInterface" type="java.lang.String"/>
  28585. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28586. <doc>
  28587. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  28588. textual form.
  28589. @param strInterface
  28590. The name of the network interface to query (e.g. eth0)
  28591. @return A string vector of all the IPs associated with the provided
  28592. interface
  28593. @throws UnknownHostException
  28594. If an UnknownHostException is encountered in querying the
  28595. default interface]]>
  28596. </doc>
  28597. </method>
  28598. <method name="getDefaultIP" return="java.lang.String"
  28599. abstract="false" native="false" synchronized="false"
  28600. static="true" final="false" visibility="public"
  28601. deprecated="not deprecated">
  28602. <param name="strInterface" type="java.lang.String"/>
  28603. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28604. <doc>
  28605. <![CDATA[Returns the first available IP address associated with the provided
  28606. network interface
  28607. @param strInterface
  28608. The name of the network interface to query (e.g. eth0)
  28609. @return The IP address in text form
  28610. @throws UnknownHostException
  28611. If one is encountered in querying the default interface]]>
  28612. </doc>
  28613. </method>
  28614. <method name="getHosts" return="java.lang.String[]"
  28615. abstract="false" native="false" synchronized="false"
  28616. static="true" final="false" visibility="public"
  28617. deprecated="not deprecated">
  28618. <param name="strInterface" type="java.lang.String"/>
  28619. <param name="nameserver" type="java.lang.String"/>
  28620. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28621. <doc>
  28622. <![CDATA[Returns all the host names associated by the provided nameserver with the
  28623. address bound to the specified network interface
  28624. @param strInterface
  28625. The name of the network interface to query (e.g. eth0)
  28626. @param nameserver
  28627. The DNS host name
  28628. @return A string vector of all host names associated with the IPs tied to
  28629. the specified interface
  28630. @throws UnknownHostException]]>
  28631. </doc>
  28632. </method>
  28633. <method name="getHosts" return="java.lang.String[]"
  28634. abstract="false" native="false" synchronized="false"
  28635. static="true" final="false" visibility="public"
  28636. deprecated="not deprecated">
  28637. <param name="strInterface" type="java.lang.String"/>
  28638. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28639. <doc>
  28640. <![CDATA[Returns all the host names associated by the default nameserver with the
  28641. address bound to the specified network interface
  28642. @param strInterface
  28643. The name of the network interface to query (e.g. eth0)
  28644. @return The list of host names associated with IPs bound to the network
  28645. interface
  28646. @throws UnknownHostException
  28647. If one is encountered while querying the deault interface]]>
  28648. </doc>
  28649. </method>
  28650. <method name="getDefaultHost" return="java.lang.String"
  28651. abstract="false" native="false" synchronized="false"
  28652. static="true" final="false" visibility="public"
  28653. deprecated="not deprecated">
  28654. <param name="strInterface" type="java.lang.String"/>
  28655. <param name="nameserver" type="java.lang.String"/>
  28656. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28657. <doc>
  28658. <![CDATA[Returns the default (first) host name associated by the provided
  28659. nameserver with the address bound to the specified network interface
  28660. @param strInterface
  28661. The name of the network interface to query (e.g. eth0)
  28662. @param nameserver
  28663. The DNS host name
  28664. @return The default host names associated with IPs bound to the network
  28665. interface
  28666. @throws UnknownHostException
  28667. If one is encountered while querying the deault interface]]>
  28668. </doc>
  28669. </method>
  28670. <method name="getDefaultHost" return="java.lang.String"
  28671. abstract="false" native="false" synchronized="false"
  28672. static="true" final="false" visibility="public"
  28673. deprecated="not deprecated">
  28674. <param name="strInterface" type="java.lang.String"/>
  28675. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28676. <doc>
  28677. <![CDATA[Returns the default (first) host name associated by the default
  28678. nameserver with the address bound to the specified network interface
  28679. @param strInterface
  28680. The name of the network interface to query (e.g. eth0)
  28681. @return The default host name associated with IPs bound to the network
  28682. interface
  28683. @throws UnknownHostException
  28684. If one is encountered while querying the deault interface]]>
  28685. </doc>
  28686. </method>
  28687. <doc>
  28688. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  28689. the querying of specific network interfaces or nameservers.]]>
  28690. </doc>
  28691. </class>
  28692. <!-- end class org.apache.hadoop.net.DNS -->
  28693. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28694. <interface name="DNSToSwitchMapping" abstract="true"
  28695. static="false" final="false" visibility="public"
  28696. deprecated="not deprecated">
  28697. <method name="resolve" return="java.util.List"
  28698. abstract="false" native="false" synchronized="false"
  28699. static="false" final="false" visibility="public"
  28700. deprecated="not deprecated">
  28701. <param name="names" type="java.util.List"/>
  28702. <doc>
  28703. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  28704. switch information (network paths). One-to-one correspondence must be
  28705. maintained between the elements in the lists.
  28706. Consider an element in the argument list - x.y.com. The switch information
  28707. that is returned must be a network path of the form /foo/rack,
  28708. where / is the root, and 'foo' is the switch where 'rack' is connected.
  28709. Note the hostname/ip-address is not part of the returned path.
  28710. The network topology of the cluster would determine the number of
  28711. components in the network path.
  28712. @param names
  28713. @return list of resolved network paths]]>
  28714. </doc>
  28715. </method>
  28716. <doc>
  28717. <![CDATA[An interface that should be implemented to allow pluggable
  28718. DNS-name/IP-address to RackID resolvers.]]>
  28719. </doc>
  28720. </interface>
  28721. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28722. <!-- start class org.apache.hadoop.net.NetUtils -->
  28723. <class name="NetUtils" extends="java.lang.Object"
  28724. abstract="false"
  28725. static="false" final="false" visibility="public"
  28726. deprecated="not deprecated">
  28727. <constructor name="NetUtils"
  28728. static="false" final="false" visibility="public"
  28729. deprecated="not deprecated">
  28730. </constructor>
  28731. <method name="getSocketFactory" return="javax.net.SocketFactory"
  28732. abstract="false" native="false" synchronized="false"
  28733. static="true" final="false" visibility="public"
  28734. deprecated="not deprecated">
  28735. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28736. <param name="clazz" type="java.lang.Class"/>
  28737. <doc>
  28738. <![CDATA[Get the socket factory for the given class according to its
  28739. configuration parameter
  28740. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  28741. such parameter exists then fall back on the default socket factory as
  28742. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  28743. this default socket factory is not configured, then fall back on the JVM
  28744. default socket factory.
  28745. @param conf the configuration
  28746. @param clazz the class (usually a {@link VersionedProtocol})
  28747. @return a socket factory]]>
  28748. </doc>
  28749. </method>
  28750. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  28751. abstract="false" native="false" synchronized="false"
  28752. static="true" final="false" visibility="public"
  28753. deprecated="not deprecated">
  28754. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28755. <doc>
  28756. <![CDATA[Get the default socket factory as specified by the configuration
  28757. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  28758. @param conf the configuration
  28759. @return the default socket factory as specified in the configuration or
  28760. the JVM default socket factory if the configuration does not
  28761. contain a default socket factory property.]]>
  28762. </doc>
  28763. </method>
  28764. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  28765. abstract="false" native="false" synchronized="false"
  28766. static="true" final="false" visibility="public"
  28767. deprecated="not deprecated">
  28768. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28769. <param name="propValue" type="java.lang.String"/>
  28770. <doc>
  28771. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  28772. given proxy URI corresponds to an absence of configuration parameter,
  28773. returns null. If the URI is malformed raises an exception.
  28774. @param propValue the property which is the class name of the
  28775. SocketFactory to instantiate; assumed non null and non empty.
  28776. @return a socket factory as defined in the property value.]]>
  28777. </doc>
  28778. </method>
  28779. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28780. abstract="false" native="false" synchronized="false"
  28781. static="true" final="false" visibility="public"
  28782. deprecated="not deprecated">
  28783. <param name="target" type="java.lang.String"/>
  28784. <doc>
  28785. <![CDATA[Util method to build socket addr from either:
  28786. <host>:<post>
  28787. <fs>://<host>:<port>/<path>]]>
  28788. </doc>
  28789. </method>
  28790. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28791. abstract="false" native="false" synchronized="false"
  28792. static="true" final="false" visibility="public"
  28793. deprecated="not deprecated">
  28794. <param name="target" type="java.lang.String"/>
  28795. <param name="defaultPort" type="int"/>
  28796. <doc>
  28797. <![CDATA[Util method to build socket addr from either:
  28798. <host>
  28799. <host>:<post>
  28800. <fs>://<host>:<port>/<path>]]>
  28801. </doc>
  28802. </method>
  28803. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  28804. abstract="false" native="false" synchronized="false"
  28805. static="true" final="false" visibility="public"
  28806. deprecated="not deprecated">
  28807. <param name="host" type="java.lang.String"/>
  28808. <param name="port" type="int"/>
  28809. <doc>
  28810. <![CDATA[Create a socket address with the given host and port. The hostname
  28811. might be replaced with another host that was set via
  28812. {@link #addStaticResolution(String, String)}. The value of
  28813. hadoop.security.token.service.use_ip will determine whether the
  28814. standard java host resolver is used, or if the fully qualified resolver
  28815. is used.
  28816. @param host the hostname or IP use to instantiate the object
  28817. @param port the port number
  28818. @return InetSocketAddress]]>
  28819. </doc>
  28820. </method>
  28821. <method name="getCanonicalUri" return="java.net.URI"
  28822. abstract="false" native="false" synchronized="false"
  28823. static="true" final="false" visibility="public"
  28824. deprecated="not deprecated">
  28825. <param name="uri" type="java.net.URI"/>
  28826. <param name="defaultPort" type="int"/>
  28827. <doc>
  28828. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  28829. @param uri to resolve
  28830. @param defaultPort if none is given
  28831. @return URI
  28832. @throws UnknownHostException]]>
  28833. </doc>
  28834. </method>
  28835. <method name="getServerAddress" return="java.lang.String"
  28836. abstract="false" native="false" synchronized="false"
  28837. static="true" final="false" visibility="public"
  28838. deprecated="not deprecated">
  28839. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28840. <param name="oldBindAddressName" type="java.lang.String"/>
  28841. <param name="oldPortName" type="java.lang.String"/>
  28842. <param name="newBindAddressName" type="java.lang.String"/>
  28843. <doc>
  28844. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  28845. to a single colon separated one.
  28846. @param conf the configuration to check
  28847. @param oldBindAddressName the old address attribute name
  28848. @param oldPortName the old port attribute name
  28849. @param newBindAddressName the new combined name
  28850. @return the complete address from the configuration]]>
  28851. </doc>
  28852. </method>
  28853. <method name="addStaticResolution"
  28854. abstract="false" native="false" synchronized="false"
  28855. static="true" final="false" visibility="public"
  28856. deprecated="not deprecated">
  28857. <param name="host" type="java.lang.String"/>
  28858. <param name="resolvedName" type="java.lang.String"/>
  28859. <doc>
  28860. <![CDATA[Adds a static resolution for host. This can be used for setting up
  28861. hostnames with names that are fake to point to a well known host. For e.g.
  28862. in some testcases we require to have daemons with different hostnames
  28863. running on the same machine. In order to create connections to these
  28864. daemons, one can set up mappings from those hostnames to "localhost".
  28865. {@link NetUtils#getStaticResolution(String)} can be used to query for
  28866. the actual hostname.
  28867. @param host
  28868. @param resolvedName]]>
  28869. </doc>
  28870. </method>
  28871. <method name="getStaticResolution" return="java.lang.String"
  28872. abstract="false" native="false" synchronized="false"
  28873. static="true" final="false" visibility="public"
  28874. deprecated="not deprecated">
  28875. <param name="host" type="java.lang.String"/>
  28876. <doc>
  28877. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  28878. have been set earlier using
  28879. {@link NetUtils#addStaticResolution(String, String)}
  28880. @param host
  28881. @return the resolution]]>
  28882. </doc>
  28883. </method>
  28884. <method name="getAllStaticResolutions" return="java.util.List"
  28885. abstract="false" native="false" synchronized="false"
  28886. static="true" final="false" visibility="public"
  28887. deprecated="not deprecated">
  28888. <doc>
  28889. <![CDATA[This is used to get all the resolutions that were added using
  28890. {@link NetUtils#addStaticResolution(String, String)}. The return
  28891. value is a List each element of which contains an array of String
  28892. of the form String[0]=hostname, String[1]=resolved-hostname
  28893. @return the list of resolutions]]>
  28894. </doc>
  28895. </method>
  28896. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  28897. abstract="false" native="false" synchronized="false"
  28898. static="true" final="false" visibility="public"
  28899. deprecated="not deprecated">
  28900. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  28901. <doc>
  28902. <![CDATA[Returns InetSocketAddress that a client can use to
  28903. connect to the server. Server.getListenerAddress() is not correct when
  28904. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  28905. the getListenerAddress() returns "0.0.0.0:port".
  28906. @param server
  28907. @return socket address that a client can use to connect to the server.]]>
  28908. </doc>
  28909. </method>
  28910. <method name="getInputStream" return="java.io.InputStream"
  28911. abstract="false" native="false" synchronized="false"
  28912. static="true" final="false" visibility="public"
  28913. deprecated="not deprecated">
  28914. <param name="socket" type="java.net.Socket"/>
  28915. <exception name="IOException" type="java.io.IOException"/>
  28916. <doc>
  28917. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  28918. From documentation for {@link #getInputStream(Socket, long)}:<br>
  28919. Returns InputStream for the socket. If the socket has an associated
  28920. SocketChannel then it returns a
  28921. {@link SocketInputStream} with the given timeout. If the socket does not
  28922. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28923. case, the timeout argument is ignored and the timeout set with
  28924. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28925. Any socket created using socket factories returned by {@link NetUtils},
  28926. must use this interface instead of {@link Socket#getInputStream()}.
  28927. @see #getInputStream(Socket, long)
  28928. @param socket
  28929. @return InputStream for reading from the socket.
  28930. @throws IOException]]>
  28931. </doc>
  28932. </method>
  28933. <method name="getInputStream" return="java.io.InputStream"
  28934. abstract="false" native="false" synchronized="false"
  28935. static="true" final="false" visibility="public"
  28936. deprecated="not deprecated">
  28937. <param name="socket" type="java.net.Socket"/>
  28938. <param name="timeout" type="long"/>
  28939. <exception name="IOException" type="java.io.IOException"/>
  28940. <doc>
  28941. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  28942. SocketChannel then it returns a
  28943. {@link SocketInputStream} with the given timeout. If the socket does not
  28944. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28945. case, the timeout argument is ignored and the timeout set with
  28946. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28947. Any socket created using socket factories returned by {@link NetUtils},
  28948. must use this interface instead of {@link Socket#getInputStream()}.
  28949. @see Socket#getChannel()
  28950. @param socket
  28951. @param timeout timeout in milliseconds. This may not always apply. zero
  28952. for waiting as long as necessary.
  28953. @return InputStream for reading from the socket.
  28954. @throws IOException]]>
  28955. </doc>
  28956. </method>
  28957. <method name="getOutputStream" return="java.io.OutputStream"
  28958. abstract="false" native="false" synchronized="false"
  28959. static="true" final="false" visibility="public"
  28960. deprecated="not deprecated">
  28961. <param name="socket" type="java.net.Socket"/>
  28962. <exception name="IOException" type="java.io.IOException"/>
  28963. <doc>
  28964. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  28965. wait until data is available.<br><br>
  28966. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  28967. Returns OutputStream for the socket. If the socket has an associated
  28968. SocketChannel then it returns a
  28969. {@link SocketOutputStream} with the given timeout. If the socket does not
  28970. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28971. case, the timeout argument is ignored and the write will wait until
  28972. data is available.<br><br>
  28973. Any socket created using socket factories returned by {@link NetUtils},
  28974. must use this interface instead of {@link Socket#getOutputStream()}.
  28975. @see #getOutputStream(Socket, long)
  28976. @param socket
  28977. @return OutputStream for writing to the socket.
  28978. @throws IOException]]>
  28979. </doc>
  28980. </method>
  28981. <method name="getOutputStream" return="java.io.OutputStream"
  28982. abstract="false" native="false" synchronized="false"
  28983. static="true" final="false" visibility="public"
  28984. deprecated="not deprecated">
  28985. <param name="socket" type="java.net.Socket"/>
  28986. <param name="timeout" type="long"/>
  28987. <exception name="IOException" type="java.io.IOException"/>
  28988. <doc>
  28989. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  28990. SocketChannel then it returns a
  28991. {@link SocketOutputStream} with the given timeout. If the socket does not
  28992. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28993. case, the timeout argument is ignored and the write will wait until
  28994. data is available.<br><br>
  28995. Any socket created using socket factories returned by {@link NetUtils},
  28996. must use this interface instead of {@link Socket#getOutputStream()}.
  28997. @see Socket#getChannel()
  28998. @param socket
  28999. @param timeout timeout in milliseconds. This may not always apply. zero
  29000. for waiting as long as necessary.
  29001. @return OutputStream for writing to the socket.
  29002. @throws IOException]]>
  29003. </doc>
  29004. </method>
  29005. <method name="connect"
  29006. abstract="false" native="false" synchronized="false"
  29007. static="true" final="false" visibility="public"
  29008. deprecated="not deprecated">
  29009. <param name="socket" type="java.net.Socket"/>
  29010. <param name="endpoint" type="java.net.SocketAddress"/>
  29011. <param name="timeout" type="int"/>
  29012. <exception name="IOException" type="java.io.IOException"/>
  29013. <doc>
  29014. <![CDATA[This is a drop-in replacement for
  29015. {@link Socket#connect(SocketAddress, int)}.
  29016. In the case of normal sockets that don't have associated channels, this
  29017. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  29018. <code>socket.getChannel()</code> returns a non-null channel,
  29019. connect is implemented using Hadoop's selectors. This is done mainly
  29020. to avoid Sun's connect implementation from creating thread-local
  29021. selectors, since Hadoop does not have control on when these are closed
  29022. and could end up taking all the available file descriptors.
  29023. @see java.net.Socket#connect(java.net.SocketAddress, int)
  29024. @param socket
  29025. @param endpoint
  29026. @param timeout - timeout in milliseconds]]>
  29027. </doc>
  29028. </method>
  29029. <method name="normalizeHostName" return="java.lang.String"
  29030. abstract="false" native="false" synchronized="false"
  29031. static="true" final="false" visibility="public"
  29032. deprecated="not deprecated">
  29033. <param name="name" type="java.lang.String"/>
  29034. <doc>
  29035. <![CDATA[Given a string representation of a host, return its ip address
  29036. in textual presentation.
  29037. @param name a string representation of a host:
  29038. either a textual representation its IP address or its host name
  29039. @return its IP address in the string format]]>
  29040. </doc>
  29041. </method>
  29042. <method name="normalizeHostNames" return="java.util.List"
  29043. abstract="false" native="false" synchronized="false"
  29044. static="true" final="false" visibility="public"
  29045. deprecated="not deprecated">
  29046. <param name="names" type="java.util.Collection"/>
  29047. <doc>
  29048. <![CDATA[Given a collection of string representation of hosts, return a list of
  29049. corresponding IP addresses in the textual representation.
  29050. @param names a collection of string representations of hosts
  29051. @return a list of corresponding IP addresses in the string format
  29052. @see #normalizeHostName(String)]]>
  29053. </doc>
  29054. </method>
  29055. <method name="verifyHostnames"
  29056. abstract="false" native="false" synchronized="false"
  29057. static="true" final="false" visibility="public"
  29058. deprecated="not deprecated">
  29059. <param name="names" type="java.lang.String[]"/>
  29060. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29061. <doc>
  29062. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  29063. appear to be valid.
  29064. @param names - List of hostnames/IPs
  29065. @throws UnknownHostException]]>
  29066. </doc>
  29067. </method>
  29068. <method name="getLocalInetAddress" return="java.net.InetAddress"
  29069. abstract="false" native="false" synchronized="false"
  29070. static="true" final="false" visibility="public"
  29071. deprecated="not deprecated">
  29072. <param name="host" type="java.lang.String"/>
  29073. <exception name="SocketException" type="java.net.SocketException"/>
  29074. <doc>
  29075. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  29076. corresponding to that address.
  29077. @param host the specified host
  29078. @return a valid local {@link InetAddress} or null
  29079. @throws SocketException if an I/O error occurs]]>
  29080. </doc>
  29081. </method>
  29082. </class>
  29083. <!-- end class org.apache.hadoop.net.NetUtils -->
  29084. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  29085. <class name="NetworkTopology" extends="java.lang.Object"
  29086. abstract="false"
  29087. static="false" final="false" visibility="public"
  29088. deprecated="not deprecated">
  29089. <constructor name="NetworkTopology"
  29090. static="false" final="false" visibility="public"
  29091. deprecated="not deprecated">
  29092. </constructor>
  29093. <method name="add"
  29094. abstract="false" native="false" synchronized="false"
  29095. static="false" final="false" visibility="public"
  29096. deprecated="not deprecated">
  29097. <param name="node" type="org.apache.hadoop.net.Node"/>
  29098. <doc>
  29099. <![CDATA[Add a leaf node
  29100. Update node counter & rack counter if neccessary
  29101. @param node
  29102. node to be added
  29103. @exception IllegalArgumentException if add a node to a leave
  29104. or node to be added is not a leaf]]>
  29105. </doc>
  29106. </method>
  29107. <method name="remove"
  29108. abstract="false" native="false" synchronized="false"
  29109. static="false" final="false" visibility="public"
  29110. deprecated="not deprecated">
  29111. <param name="node" type="org.apache.hadoop.net.Node"/>
  29112. <doc>
  29113. <![CDATA[Remove a node
  29114. Update node counter & rack counter if neccessary
  29115. @param node
  29116. node to be removed]]>
  29117. </doc>
  29118. </method>
  29119. <method name="contains" return="boolean"
  29120. abstract="false" native="false" synchronized="false"
  29121. static="false" final="false" visibility="public"
  29122. deprecated="not deprecated">
  29123. <param name="node" type="org.apache.hadoop.net.Node"/>
  29124. <doc>
  29125. <![CDATA[Check if the tree contains node <i>node</i>
  29126. @param node
  29127. a node
  29128. @return true if <i>node</i> is already in the tree; false otherwise]]>
  29129. </doc>
  29130. </method>
  29131. <method name="getNode" return="org.apache.hadoop.net.Node"
  29132. abstract="false" native="false" synchronized="false"
  29133. static="false" final="false" visibility="public"
  29134. deprecated="not deprecated">
  29135. <param name="loc" type="java.lang.String"/>
  29136. <doc>
  29137. <![CDATA[Given a string representation of a node, return its reference
  29138. @param loc
  29139. a path-like string representation of a node
  29140. @return a reference to the node; null if the node is not in the tree]]>
  29141. </doc>
  29142. </method>
  29143. <method name="getNumOfRacks" return="int"
  29144. abstract="false" native="false" synchronized="false"
  29145. static="false" final="false" visibility="public"
  29146. deprecated="not deprecated">
  29147. <doc>
  29148. <![CDATA[Return the total number of racks]]>
  29149. </doc>
  29150. </method>
  29151. <method name="getNumOfLeaves" return="int"
  29152. abstract="false" native="false" synchronized="false"
  29153. static="false" final="false" visibility="public"
  29154. deprecated="not deprecated">
  29155. <doc>
  29156. <![CDATA[Return the total number of nodes]]>
  29157. </doc>
  29158. </method>
  29159. <method name="getDistance" return="int"
  29160. abstract="false" native="false" synchronized="false"
  29161. static="false" final="false" visibility="public"
  29162. deprecated="not deprecated">
  29163. <param name="node1" type="org.apache.hadoop.net.Node"/>
  29164. <param name="node2" type="org.apache.hadoop.net.Node"/>
  29165. <doc>
  29166. <![CDATA[Return the distance between two nodes
  29167. It is assumed that the distance from one node to its parent is 1
  29168. The distance between two nodes is calculated by summing up their distances
  29169. to their closest common ancestor.
  29170. @param node1 one node
  29171. @param node2 another node
  29172. @return the distance between node1 and node2
  29173. node1 or node2 do not belong to the cluster]]>
  29174. </doc>
  29175. </method>
  29176. <method name="isOnSameRack" return="boolean"
  29177. abstract="false" native="false" synchronized="false"
  29178. static="false" final="false" visibility="public"
  29179. deprecated="not deprecated">
  29180. <param name="node1" type="org.apache.hadoop.net.Node"/>
  29181. <param name="node2" type="org.apache.hadoop.net.Node"/>
  29182. <doc>
  29183. <![CDATA[Check if two nodes are on the same rack
  29184. @param node1 one node
  29185. @param node2 another node
  29186. @return true if node1 and node2 are pm the same rack; false otherwise
  29187. @exception IllegalArgumentException when either node1 or node2 is null, or
  29188. node1 or node2 do not belong to the cluster]]>
  29189. </doc>
  29190. </method>
  29191. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  29192. abstract="false" native="false" synchronized="false"
  29193. static="false" final="false" visibility="public"
  29194. deprecated="not deprecated">
  29195. <param name="scope" type="java.lang.String"/>
  29196. <doc>
  29197. <![CDATA[randomly choose one node from <i>scope</i>
  29198. if scope starts with ~, choose one from the all nodes except for the
  29199. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  29200. @param scope range of nodes from which a node will be choosen
  29201. @return the choosen node]]>
  29202. </doc>
  29203. </method>
  29204. <method name="countNumOfAvailableNodes" return="int"
  29205. abstract="false" native="false" synchronized="false"
  29206. static="false" final="false" visibility="public"
  29207. deprecated="not deprecated">
  29208. <param name="scope" type="java.lang.String"/>
  29209. <param name="excludedNodes" type="java.util.List"/>
  29210. <doc>
  29211. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  29212. if scope starts with ~, return the number of nodes that are not
  29213. in <i>scope</i> and <i>excludedNodes</i>;
  29214. @param scope a path string that may start with ~
  29215. @param excludedNodes a list of nodes
  29216. @return number of available nodes]]>
  29217. </doc>
  29218. </method>
  29219. <method name="toString" return="java.lang.String"
  29220. abstract="false" native="false" synchronized="false"
  29221. static="false" final="false" visibility="public"
  29222. deprecated="not deprecated">
  29223. <doc>
  29224. <![CDATA[convert a network tree to a string]]>
  29225. </doc>
  29226. </method>
  29227. <method name="pseudoSortByDistance"
  29228. abstract="false" native="false" synchronized="false"
  29229. static="false" final="false" visibility="public"
  29230. deprecated="not deprecated">
  29231. <param name="reader" type="org.apache.hadoop.net.Node"/>
  29232. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  29233. <doc>
  29234. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  29235. It linearly scans the array, if a local node is found, swap it with
  29236. the first element of the array.
  29237. If a local rack node is found, swap it with the first element following
  29238. the local node.
  29239. If neither local node or local rack node is found, put a random replica
  29240. location at postion 0.
  29241. It leaves the rest nodes untouched.]]>
  29242. </doc>
  29243. </method>
  29244. <field name="DEFAULT_RACK" type="java.lang.String"
  29245. transient="false" volatile="false"
  29246. static="true" final="true" visibility="public"
  29247. deprecated="not deprecated">
  29248. </field>
  29249. <field name="DEFAULT_HOST_LEVEL" type="int"
  29250. transient="false" volatile="false"
  29251. static="true" final="true" visibility="public"
  29252. deprecated="not deprecated">
  29253. </field>
  29254. <field name="LOG" type="org.apache.commons.logging.Log"
  29255. transient="false" volatile="false"
  29256. static="true" final="true" visibility="public"
  29257. deprecated="not deprecated">
  29258. </field>
  29259. <doc>
  29260. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  29261. network topology.
  29262. For example, a cluster may be consists of many data centers filled
  29263. with racks of computers.
  29264. In a network topology, leaves represent data nodes (computers) and inner
  29265. nodes represent switches/routers that manage traffic in/out of data centers
  29266. or racks.]]>
  29267. </doc>
  29268. </class>
  29269. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  29270. <!-- start interface org.apache.hadoop.net.Node -->
  29271. <interface name="Node" abstract="true"
  29272. static="false" final="false" visibility="public"
  29273. deprecated="not deprecated">
  29274. <method name="getNetworkLocation" return="java.lang.String"
  29275. abstract="false" native="false" synchronized="false"
  29276. static="false" final="false" visibility="public"
  29277. deprecated="not deprecated">
  29278. <doc>
  29279. <![CDATA[Return the string representation of this node's network location]]>
  29280. </doc>
  29281. </method>
  29282. <method name="setNetworkLocation"
  29283. abstract="false" native="false" synchronized="false"
  29284. static="false" final="false" visibility="public"
  29285. deprecated="not deprecated">
  29286. <param name="location" type="java.lang.String"/>
  29287. <doc>
  29288. <![CDATA[Set the node's network location]]>
  29289. </doc>
  29290. </method>
  29291. <method name="getName" return="java.lang.String"
  29292. abstract="false" native="false" synchronized="false"
  29293. static="false" final="false" visibility="public"
  29294. deprecated="not deprecated">
  29295. <doc>
  29296. <![CDATA[Return this node's name]]>
  29297. </doc>
  29298. </method>
  29299. <method name="getParent" return="org.apache.hadoop.net.Node"
  29300. abstract="false" native="false" synchronized="false"
  29301. static="false" final="false" visibility="public"
  29302. deprecated="not deprecated">
  29303. <doc>
  29304. <![CDATA[Return this node's parent]]>
  29305. </doc>
  29306. </method>
  29307. <method name="setParent"
  29308. abstract="false" native="false" synchronized="false"
  29309. static="false" final="false" visibility="public"
  29310. deprecated="not deprecated">
  29311. <param name="parent" type="org.apache.hadoop.net.Node"/>
  29312. <doc>
  29313. <![CDATA[Set this node's parent]]>
  29314. </doc>
  29315. </method>
  29316. <method name="getLevel" return="int"
  29317. abstract="false" native="false" synchronized="false"
  29318. static="false" final="false" visibility="public"
  29319. deprecated="not deprecated">
  29320. <doc>
  29321. <![CDATA[Return this node's level in the tree.
  29322. E.g. the root of a tree returns 0 and its children return 1]]>
  29323. </doc>
  29324. </method>
  29325. <method name="setLevel"
  29326. abstract="false" native="false" synchronized="false"
  29327. static="false" final="false" visibility="public"
  29328. deprecated="not deprecated">
  29329. <param name="i" type="int"/>
  29330. <doc>
  29331. <![CDATA[Set this node's level in the tree.]]>
  29332. </doc>
  29333. </method>
  29334. <doc>
  29335. <![CDATA[The interface defines a node in a network topology.
  29336. A node may be a leave representing a data node or an inner
  29337. node representing a datacenter or rack.
  29338. Each data has a name and its location in the network is
  29339. decided by a string with syntax similar to a file name.
  29340. For example, a data node's name is hostname:port# and if it's located at
  29341. rack "orange" in datacenter "dog", the string representation of its
  29342. network location is /dog/orange]]>
  29343. </doc>
  29344. </interface>
  29345. <!-- end interface org.apache.hadoop.net.Node -->
  29346. <!-- start class org.apache.hadoop.net.NodeBase -->
  29347. <class name="NodeBase" extends="java.lang.Object"
  29348. abstract="false"
  29349. static="false" final="false" visibility="public"
  29350. deprecated="not deprecated">
  29351. <implements name="org.apache.hadoop.net.Node"/>
  29352. <constructor name="NodeBase"
  29353. static="false" final="false" visibility="public"
  29354. deprecated="not deprecated">
  29355. <doc>
  29356. <![CDATA[Default constructor]]>
  29357. </doc>
  29358. </constructor>
  29359. <constructor name="NodeBase" type="java.lang.String"
  29360. static="false" final="false" visibility="public"
  29361. deprecated="not deprecated">
  29362. <doc>
  29363. <![CDATA[Construct a node from its path
  29364. @param path
  29365. a concatenation of this node's location, the path seperator, and its name]]>
  29366. </doc>
  29367. </constructor>
  29368. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <doc>
  29372. <![CDATA[Construct a node from its name and its location
  29373. @param name this node's name
  29374. @param location this node's location]]>
  29375. </doc>
  29376. </constructor>
  29377. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  29378. static="false" final="false" visibility="public"
  29379. deprecated="not deprecated">
  29380. <doc>
  29381. <![CDATA[Construct a node from its name and its location
  29382. @param name this node's name
  29383. @param location this node's location
  29384. @param parent this node's parent node
  29385. @param level this node's level in the tree]]>
  29386. </doc>
  29387. </constructor>
  29388. <method name="getName" return="java.lang.String"
  29389. abstract="false" native="false" synchronized="false"
  29390. static="false" final="false" visibility="public"
  29391. deprecated="not deprecated">
  29392. <doc>
  29393. <![CDATA[Return this node's name]]>
  29394. </doc>
  29395. </method>
  29396. <method name="getNetworkLocation" return="java.lang.String"
  29397. abstract="false" native="false" synchronized="false"
  29398. static="false" final="false" visibility="public"
  29399. deprecated="not deprecated">
  29400. <doc>
  29401. <![CDATA[Return this node's network location]]>
  29402. </doc>
  29403. </method>
  29404. <method name="setNetworkLocation"
  29405. abstract="false" native="false" synchronized="false"
  29406. static="false" final="false" visibility="public"
  29407. deprecated="not deprecated">
  29408. <param name="location" type="java.lang.String"/>
  29409. <doc>
  29410. <![CDATA[Set this node's network location]]>
  29411. </doc>
  29412. </method>
  29413. <method name="getPath" return="java.lang.String"
  29414. abstract="false" native="false" synchronized="false"
  29415. static="true" final="false" visibility="public"
  29416. deprecated="not deprecated">
  29417. <param name="node" type="org.apache.hadoop.net.Node"/>
  29418. <doc>
  29419. <![CDATA[Return this node's path]]>
  29420. </doc>
  29421. </method>
  29422. <method name="toString" return="java.lang.String"
  29423. abstract="false" native="false" synchronized="false"
  29424. static="false" final="false" visibility="public"
  29425. deprecated="not deprecated">
  29426. <doc>
  29427. <![CDATA[Return this node's string representation]]>
  29428. </doc>
  29429. </method>
  29430. <method name="normalize" return="java.lang.String"
  29431. abstract="false" native="false" synchronized="false"
  29432. static="true" final="false" visibility="public"
  29433. deprecated="not deprecated">
  29434. <param name="path" type="java.lang.String"/>
  29435. <doc>
  29436. <![CDATA[Normalize a path]]>
  29437. </doc>
  29438. </method>
  29439. <method name="getParent" return="org.apache.hadoop.net.Node"
  29440. abstract="false" native="false" synchronized="false"
  29441. static="false" final="false" visibility="public"
  29442. deprecated="not deprecated">
  29443. <doc>
  29444. <![CDATA[Return this node's parent]]>
  29445. </doc>
  29446. </method>
  29447. <method name="setParent"
  29448. abstract="false" native="false" synchronized="false"
  29449. static="false" final="false" visibility="public"
  29450. deprecated="not deprecated">
  29451. <param name="parent" type="org.apache.hadoop.net.Node"/>
  29452. <doc>
  29453. <![CDATA[Set this node's parent]]>
  29454. </doc>
  29455. </method>
  29456. <method name="getLevel" return="int"
  29457. abstract="false" native="false" synchronized="false"
  29458. static="false" final="false" visibility="public"
  29459. deprecated="not deprecated">
  29460. <doc>
  29461. <![CDATA[Return this node's level in the tree.
  29462. E.g. the root of a tree returns 0 and its children return 1]]>
  29463. </doc>
  29464. </method>
  29465. <method name="setLevel"
  29466. abstract="false" native="false" synchronized="false"
  29467. static="false" final="false" visibility="public"
  29468. deprecated="not deprecated">
  29469. <param name="level" type="int"/>
  29470. <doc>
  29471. <![CDATA[Set this node's level in the tree]]>
  29472. </doc>
  29473. </method>
  29474. <field name="PATH_SEPARATOR" type="char"
  29475. transient="false" volatile="false"
  29476. static="true" final="true" visibility="public"
  29477. deprecated="not deprecated">
  29478. </field>
  29479. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  29480. transient="false" volatile="false"
  29481. static="true" final="true" visibility="public"
  29482. deprecated="not deprecated">
  29483. </field>
  29484. <field name="ROOT" type="java.lang.String"
  29485. transient="false" volatile="false"
  29486. static="true" final="true" visibility="public"
  29487. deprecated="not deprecated">
  29488. </field>
  29489. <field name="name" type="java.lang.String"
  29490. transient="false" volatile="false"
  29491. static="false" final="false" visibility="protected"
  29492. deprecated="not deprecated">
  29493. </field>
  29494. <field name="location" type="java.lang.String"
  29495. transient="false" volatile="false"
  29496. static="false" final="false" visibility="protected"
  29497. deprecated="not deprecated">
  29498. </field>
  29499. <field name="level" type="int"
  29500. transient="false" volatile="false"
  29501. static="false" final="false" visibility="protected"
  29502. deprecated="not deprecated">
  29503. </field>
  29504. <field name="parent" type="org.apache.hadoop.net.Node"
  29505. transient="false" volatile="false"
  29506. static="false" final="false" visibility="protected"
  29507. deprecated="not deprecated">
  29508. </field>
  29509. <doc>
  29510. <![CDATA[A base class that implements interface Node]]>
  29511. </doc>
  29512. </class>
  29513. <!-- end class org.apache.hadoop.net.NodeBase -->
  29514. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  29515. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  29516. abstract="false"
  29517. static="false" final="true" visibility="public"
  29518. deprecated="not deprecated">
  29519. <implements name="org.apache.hadoop.conf.Configurable"/>
  29520. <constructor name="ScriptBasedMapping"
  29521. static="false" final="false" visibility="public"
  29522. deprecated="not deprecated">
  29523. </constructor>
  29524. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  29525. static="false" final="false" visibility="public"
  29526. deprecated="not deprecated">
  29527. </constructor>
  29528. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29529. abstract="false" native="false" synchronized="false"
  29530. static="false" final="false" visibility="public"
  29531. deprecated="not deprecated">
  29532. </method>
  29533. <method name="setConf"
  29534. abstract="false" native="false" synchronized="false"
  29535. static="false" final="false" visibility="public"
  29536. deprecated="not deprecated">
  29537. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29538. </method>
  29539. <doc>
  29540. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  29541. script configured via topology.script.file.name .]]>
  29542. </doc>
  29543. </class>
  29544. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  29545. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  29546. <class name="SocketInputStream" extends="java.io.InputStream"
  29547. abstract="false"
  29548. static="false" final="false" visibility="public"
  29549. deprecated="not deprecated">
  29550. <implements name="java.nio.channels.ReadableByteChannel"/>
  29551. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  29552. static="false" final="false" visibility="public"
  29553. deprecated="not deprecated">
  29554. <exception name="IOException" type="java.io.IOException"/>
  29555. <doc>
  29556. <![CDATA[Create a new input stream with the given timeout. If the timeout
  29557. is zero, it will be treated as infinite timeout. The socket's
  29558. channel will be configured to be non-blocking.
  29559. @param channel
  29560. Channel for reading, should also be a {@link SelectableChannel}.
  29561. The channel will be configured to be non-blocking.
  29562. @param timeout timeout in milliseconds. must not be negative.
  29563. @throws IOException]]>
  29564. </doc>
  29565. </constructor>
  29566. <constructor name="SocketInputStream" type="java.net.Socket, long"
  29567. static="false" final="false" visibility="public"
  29568. deprecated="not deprecated">
  29569. <exception name="IOException" type="java.io.IOException"/>
  29570. <doc>
  29571. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  29572. Create a new input stream with the given timeout. If the timeout
  29573. is zero, it will be treated as infinite timeout. The socket's
  29574. channel will be configured to be non-blocking.
  29575. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  29576. @param socket should have a channel associated with it.
  29577. @param timeout timeout timeout in milliseconds. must not be negative.
  29578. @throws IOException]]>
  29579. </doc>
  29580. </constructor>
  29581. <constructor name="SocketInputStream" type="java.net.Socket"
  29582. static="false" final="false" visibility="public"
  29583. deprecated="not deprecated">
  29584. <exception name="IOException" type="java.io.IOException"/>
  29585. <doc>
  29586. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  29587. :<br><br>
  29588. Create a new input stream with the given timeout. If the timeout
  29589. is zero, it will be treated as infinite timeout. The socket's
  29590. channel will be configured to be non-blocking.
  29591. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  29592. @param socket should have a channel associated with it.
  29593. @throws IOException]]>
  29594. </doc>
  29595. </constructor>
  29596. <method name="read" return="int"
  29597. abstract="false" native="false" synchronized="false"
  29598. static="false" final="false" visibility="public"
  29599. deprecated="not deprecated">
  29600. <exception name="IOException" type="java.io.IOException"/>
  29601. </method>
  29602. <method name="read" return="int"
  29603. abstract="false" native="false" synchronized="false"
  29604. static="false" final="false" visibility="public"
  29605. deprecated="not deprecated">
  29606. <param name="b" type="byte[]"/>
  29607. <param name="off" type="int"/>
  29608. <param name="len" type="int"/>
  29609. <exception name="IOException" type="java.io.IOException"/>
  29610. </method>
  29611. <method name="close"
  29612. abstract="false" native="false" synchronized="true"
  29613. static="false" final="false" visibility="public"
  29614. deprecated="not deprecated">
  29615. <exception name="IOException" type="java.io.IOException"/>
  29616. </method>
  29617. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  29618. abstract="false" native="false" synchronized="false"
  29619. static="false" final="false" visibility="public"
  29620. deprecated="not deprecated">
  29621. <doc>
  29622. <![CDATA[Returns underlying channel used by inputstream.
  29623. This is useful in certain cases like channel for
  29624. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  29625. </doc>
  29626. </method>
  29627. <method name="isOpen" return="boolean"
  29628. abstract="false" native="false" synchronized="false"
  29629. static="false" final="false" visibility="public"
  29630. deprecated="not deprecated">
  29631. </method>
  29632. <method name="read" return="int"
  29633. abstract="false" native="false" synchronized="false"
  29634. static="false" final="false" visibility="public"
  29635. deprecated="not deprecated">
  29636. <param name="dst" type="java.nio.ByteBuffer"/>
  29637. <exception name="IOException" type="java.io.IOException"/>
  29638. </method>
  29639. <method name="waitForReadable"
  29640. abstract="false" native="false" synchronized="false"
  29641. static="false" final="false" visibility="public"
  29642. deprecated="not deprecated">
  29643. <exception name="IOException" type="java.io.IOException"/>
  29644. <doc>
  29645. <![CDATA[waits for the underlying channel to be ready for reading.
  29646. The timeout specified for this stream applies to this wait.
  29647. @throws SocketTimeoutException
  29648. if select on the channel times out.
  29649. @throws IOException
  29650. if any other I/O error occurs.]]>
  29651. </doc>
  29652. </method>
  29653. <doc>
  29654. <![CDATA[This implements an input stream that can have a timeout while reading.
  29655. This sets non-blocking flag on the socket channel.
  29656. So after create this object, read() on
  29657. {@link Socket#getInputStream()} and write() on
  29658. {@link Socket#getOutputStream()} for the associated socket will throw
  29659. IllegalBlockingModeException.
  29660. Please use {@link SocketOutputStream} for writing.]]>
  29661. </doc>
  29662. </class>
  29663. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  29664. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  29665. <class name="SocketOutputStream" extends="java.io.OutputStream"
  29666. abstract="false"
  29667. static="false" final="false" visibility="public"
  29668. deprecated="not deprecated">
  29669. <implements name="java.nio.channels.WritableByteChannel"/>
  29670. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  29671. static="false" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. <exception name="IOException" type="java.io.IOException"/>
  29674. <doc>
  29675. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  29676. is zero, it will be treated as infinite timeout. The socket's
  29677. channel will be configured to be non-blocking.
  29678. @param channel
  29679. Channel for writing, should also be a {@link SelectableChannel}.
  29680. The channel will be configured to be non-blocking.
  29681. @param timeout timeout in milliseconds. must not be negative.
  29682. @throws IOException]]>
  29683. </doc>
  29684. </constructor>
  29685. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  29686. static="false" final="false" visibility="public"
  29687. deprecated="not deprecated">
  29688. <exception name="IOException" type="java.io.IOException"/>
  29689. <doc>
  29690. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  29691. Create a new ouput stream with the given timeout. If the timeout
  29692. is zero, it will be treated as infinite timeout. The socket's
  29693. channel will be configured to be non-blocking.
  29694. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  29695. @param socket should have a channel associated with it.
  29696. @param timeout timeout timeout in milliseconds. must not be negative.
  29697. @throws IOException]]>
  29698. </doc>
  29699. </constructor>
  29700. <method name="write"
  29701. abstract="false" native="false" synchronized="false"
  29702. static="false" final="false" visibility="public"
  29703. deprecated="not deprecated">
  29704. <param name="b" type="int"/>
  29705. <exception name="IOException" type="java.io.IOException"/>
  29706. </method>
  29707. <method name="write"
  29708. abstract="false" native="false" synchronized="false"
  29709. static="false" final="false" visibility="public"
  29710. deprecated="not deprecated">
  29711. <param name="b" type="byte[]"/>
  29712. <param name="off" type="int"/>
  29713. <param name="len" type="int"/>
  29714. <exception name="IOException" type="java.io.IOException"/>
  29715. </method>
  29716. <method name="close"
  29717. abstract="false" native="false" synchronized="true"
  29718. static="false" final="false" visibility="public"
  29719. deprecated="not deprecated">
  29720. <exception name="IOException" type="java.io.IOException"/>
  29721. </method>
  29722. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  29723. abstract="false" native="false" synchronized="false"
  29724. static="false" final="false" visibility="public"
  29725. deprecated="not deprecated">
  29726. <doc>
  29727. <![CDATA[Returns underlying channel used by this stream.
  29728. This is useful in certain cases like channel for
  29729. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  29730. </doc>
  29731. </method>
  29732. <method name="isOpen" return="boolean"
  29733. abstract="false" native="false" synchronized="false"
  29734. static="false" final="false" visibility="public"
  29735. deprecated="not deprecated">
  29736. </method>
  29737. <method name="write" return="int"
  29738. abstract="false" native="false" synchronized="false"
  29739. static="false" final="false" visibility="public"
  29740. deprecated="not deprecated">
  29741. <param name="src" type="java.nio.ByteBuffer"/>
  29742. <exception name="IOException" type="java.io.IOException"/>
  29743. </method>
  29744. <method name="waitForWritable"
  29745. abstract="false" native="false" synchronized="false"
  29746. static="false" final="false" visibility="public"
  29747. deprecated="not deprecated">
  29748. <exception name="IOException" type="java.io.IOException"/>
  29749. <doc>
  29750. <![CDATA[waits for the underlying channel to be ready for writing.
  29751. The timeout specified for this stream applies to this wait.
  29752. @throws SocketTimeoutException
  29753. if select on the channel times out.
  29754. @throws IOException
  29755. if any other I/O error occurs.]]>
  29756. </doc>
  29757. </method>
  29758. <method name="transferToFully"
  29759. abstract="false" native="false" synchronized="false"
  29760. static="false" final="false" visibility="public"
  29761. deprecated="not deprecated">
  29762. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  29763. <param name="position" type="long"/>
  29764. <param name="count" type="int"/>
  29765. <exception name="IOException" type="java.io.IOException"/>
  29766. <doc>
  29767. <![CDATA[Transfers data from FileChannel using
  29768. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  29769. Similar to readFully(), this waits till requested amount of
  29770. data is transfered.
  29771. @param fileCh FileChannel to transfer data from.
  29772. @param position position within the channel where the transfer begins
  29773. @param count number of bytes to transfer.
  29774. @throws EOFException
  29775. If end of input file is reached before requested number of
  29776. bytes are transfered.
  29777. @throws SocketTimeoutException
  29778. If this channel blocks transfer longer than timeout for
  29779. this stream.
  29780. @throws IOException Includes any exception thrown by
  29781. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  29782. </doc>
  29783. </method>
  29784. <doc>
  29785. <![CDATA[This implements an output stream that can have a timeout while writing.
  29786. This sets non-blocking flag on the socket channel.
  29787. So after creating this object , read() on
  29788. {@link Socket#getInputStream()} and write() on
  29789. {@link Socket#getOutputStream()} on the associated socket will throw
  29790. llegalBlockingModeException.
  29791. Please use {@link SocketInputStream} for reading.]]>
  29792. </doc>
  29793. </class>
  29794. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  29795. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  29796. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  29797. abstract="false"
  29798. static="false" final="false" visibility="public"
  29799. deprecated="not deprecated">
  29800. <implements name="org.apache.hadoop.conf.Configurable"/>
  29801. <constructor name="SocksSocketFactory"
  29802. static="false" final="false" visibility="public"
  29803. deprecated="not deprecated">
  29804. <doc>
  29805. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29806. </doc>
  29807. </constructor>
  29808. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  29809. static="false" final="false" visibility="public"
  29810. deprecated="not deprecated">
  29811. <doc>
  29812. <![CDATA[Constructor with a supplied Proxy
  29813. @param proxy the proxy to use to create sockets]]>
  29814. </doc>
  29815. </constructor>
  29816. <method name="createSocket" return="java.net.Socket"
  29817. abstract="false" native="false" synchronized="false"
  29818. static="false" final="false" visibility="public"
  29819. deprecated="not deprecated">
  29820. <exception name="IOException" type="java.io.IOException"/>
  29821. </method>
  29822. <method name="createSocket" return="java.net.Socket"
  29823. abstract="false" native="false" synchronized="false"
  29824. static="false" final="false" visibility="public"
  29825. deprecated="not deprecated">
  29826. <param name="addr" type="java.net.InetAddress"/>
  29827. <param name="port" type="int"/>
  29828. <exception name="IOException" type="java.io.IOException"/>
  29829. </method>
  29830. <method name="createSocket" return="java.net.Socket"
  29831. abstract="false" native="false" synchronized="false"
  29832. static="false" final="false" visibility="public"
  29833. deprecated="not deprecated">
  29834. <param name="addr" type="java.net.InetAddress"/>
  29835. <param name="port" type="int"/>
  29836. <param name="localHostAddr" type="java.net.InetAddress"/>
  29837. <param name="localPort" type="int"/>
  29838. <exception name="IOException" type="java.io.IOException"/>
  29839. </method>
  29840. <method name="createSocket" return="java.net.Socket"
  29841. abstract="false" native="false" synchronized="false"
  29842. static="false" final="false" visibility="public"
  29843. deprecated="not deprecated">
  29844. <param name="host" type="java.lang.String"/>
  29845. <param name="port" type="int"/>
  29846. <exception name="IOException" type="java.io.IOException"/>
  29847. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29848. </method>
  29849. <method name="createSocket" return="java.net.Socket"
  29850. abstract="false" native="false" synchronized="false"
  29851. static="false" final="false" visibility="public"
  29852. deprecated="not deprecated">
  29853. <param name="host" type="java.lang.String"/>
  29854. <param name="port" type="int"/>
  29855. <param name="localHostAddr" type="java.net.InetAddress"/>
  29856. <param name="localPort" type="int"/>
  29857. <exception name="IOException" type="java.io.IOException"/>
  29858. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29859. </method>
  29860. <method name="hashCode" return="int"
  29861. abstract="false" native="false" synchronized="false"
  29862. static="false" final="false" visibility="public"
  29863. deprecated="not deprecated">
  29864. </method>
  29865. <method name="equals" return="boolean"
  29866. abstract="false" native="false" synchronized="false"
  29867. static="false" final="false" visibility="public"
  29868. deprecated="not deprecated">
  29869. <param name="obj" type="java.lang.Object"/>
  29870. </method>
  29871. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29872. abstract="false" native="false" synchronized="false"
  29873. static="false" final="false" visibility="public"
  29874. deprecated="not deprecated">
  29875. </method>
  29876. <method name="setConf"
  29877. abstract="false" native="false" synchronized="false"
  29878. static="false" final="false" visibility="public"
  29879. deprecated="not deprecated">
  29880. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29881. </method>
  29882. <doc>
  29883. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29884. </doc>
  29885. </class>
  29886. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  29887. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  29888. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  29889. abstract="false"
  29890. static="false" final="false" visibility="public"
  29891. deprecated="not deprecated">
  29892. <constructor name="StandardSocketFactory"
  29893. static="false" final="false" visibility="public"
  29894. deprecated="not deprecated">
  29895. <doc>
  29896. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29897. </doc>
  29898. </constructor>
  29899. <method name="createSocket" return="java.net.Socket"
  29900. abstract="false" native="false" synchronized="false"
  29901. static="false" final="false" visibility="public"
  29902. deprecated="not deprecated">
  29903. <exception name="IOException" type="java.io.IOException"/>
  29904. </method>
  29905. <method name="createSocket" return="java.net.Socket"
  29906. abstract="false" native="false" synchronized="false"
  29907. static="false" final="false" visibility="public"
  29908. deprecated="not deprecated">
  29909. <param name="addr" type="java.net.InetAddress"/>
  29910. <param name="port" type="int"/>
  29911. <exception name="IOException" type="java.io.IOException"/>
  29912. </method>
  29913. <method name="createSocket" return="java.net.Socket"
  29914. abstract="false" native="false" synchronized="false"
  29915. static="false" final="false" visibility="public"
  29916. deprecated="not deprecated">
  29917. <param name="addr" type="java.net.InetAddress"/>
  29918. <param name="port" type="int"/>
  29919. <param name="localHostAddr" type="java.net.InetAddress"/>
  29920. <param name="localPort" type="int"/>
  29921. <exception name="IOException" type="java.io.IOException"/>
  29922. </method>
  29923. <method name="createSocket" return="java.net.Socket"
  29924. abstract="false" native="false" synchronized="false"
  29925. static="false" final="false" visibility="public"
  29926. deprecated="not deprecated">
  29927. <param name="host" type="java.lang.String"/>
  29928. <param name="port" type="int"/>
  29929. <exception name="IOException" type="java.io.IOException"/>
  29930. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29931. </method>
  29932. <method name="createSocket" return="java.net.Socket"
  29933. abstract="false" native="false" synchronized="false"
  29934. static="false" final="false" visibility="public"
  29935. deprecated="not deprecated">
  29936. <param name="host" type="java.lang.String"/>
  29937. <param name="port" type="int"/>
  29938. <param name="localHostAddr" type="java.net.InetAddress"/>
  29939. <param name="localPort" type="int"/>
  29940. <exception name="IOException" type="java.io.IOException"/>
  29941. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29942. </method>
  29943. <method name="equals" return="boolean"
  29944. abstract="false" native="false" synchronized="false"
  29945. static="false" final="false" visibility="public"
  29946. deprecated="not deprecated">
  29947. <param name="obj" type="java.lang.Object"/>
  29948. </method>
  29949. <method name="hashCode" return="int"
  29950. abstract="false" native="false" synchronized="false"
  29951. static="false" final="false" visibility="public"
  29952. deprecated="not deprecated">
  29953. </method>
  29954. <doc>
  29955. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29956. </doc>
  29957. </class>
  29958. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  29959. </package>
  29960. <package name="org.apache.hadoop.record">
  29961. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  29962. <class name="BinaryRecordInput" extends="java.lang.Object"
  29963. abstract="false"
  29964. static="false" final="false" visibility="public"
  29965. deprecated="not deprecated">
  29966. <implements name="org.apache.hadoop.record.RecordInput"/>
  29967. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  29968. static="false" final="false" visibility="public"
  29969. deprecated="not deprecated">
  29970. <doc>
  29971. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29972. </doc>
  29973. </constructor>
  29974. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  29975. static="false" final="false" visibility="public"
  29976. deprecated="not deprecated">
  29977. <doc>
  29978. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29979. </doc>
  29980. </constructor>
  29981. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  29982. abstract="false" native="false" synchronized="false"
  29983. static="true" final="false" visibility="public"
  29984. deprecated="not deprecated">
  29985. <param name="inp" type="java.io.DataInput"/>
  29986. <doc>
  29987. <![CDATA[Get a thread-local record input for the supplied DataInput.
  29988. @param inp data input stream
  29989. @return binary record input corresponding to the supplied DataInput.]]>
  29990. </doc>
  29991. </method>
  29992. <method name="readByte" return="byte"
  29993. abstract="false" native="false" synchronized="false"
  29994. static="false" final="false" visibility="public"
  29995. deprecated="not deprecated">
  29996. <param name="tag" type="java.lang.String"/>
  29997. <exception name="IOException" type="java.io.IOException"/>
  29998. </method>
  29999. <method name="readBool" return="boolean"
  30000. abstract="false" native="false" synchronized="false"
  30001. static="false" final="false" visibility="public"
  30002. deprecated="not deprecated">
  30003. <param name="tag" type="java.lang.String"/>
  30004. <exception name="IOException" type="java.io.IOException"/>
  30005. </method>
  30006. <method name="readInt" return="int"
  30007. abstract="false" native="false" synchronized="false"
  30008. static="false" final="false" visibility="public"
  30009. deprecated="not deprecated">
  30010. <param name="tag" type="java.lang.String"/>
  30011. <exception name="IOException" type="java.io.IOException"/>
  30012. </method>
  30013. <method name="readLong" return="long"
  30014. abstract="false" native="false" synchronized="false"
  30015. static="false" final="false" visibility="public"
  30016. deprecated="not deprecated">
  30017. <param name="tag" type="java.lang.String"/>
  30018. <exception name="IOException" type="java.io.IOException"/>
  30019. </method>
  30020. <method name="readFloat" return="float"
  30021. abstract="false" native="false" synchronized="false"
  30022. static="false" final="false" visibility="public"
  30023. deprecated="not deprecated">
  30024. <param name="tag" type="java.lang.String"/>
  30025. <exception name="IOException" type="java.io.IOException"/>
  30026. </method>
  30027. <method name="readDouble" return="double"
  30028. abstract="false" native="false" synchronized="false"
  30029. static="false" final="false" visibility="public"
  30030. deprecated="not deprecated">
  30031. <param name="tag" type="java.lang.String"/>
  30032. <exception name="IOException" type="java.io.IOException"/>
  30033. </method>
  30034. <method name="readString" return="java.lang.String"
  30035. abstract="false" native="false" synchronized="false"
  30036. static="false" final="false" visibility="public"
  30037. deprecated="not deprecated">
  30038. <param name="tag" type="java.lang.String"/>
  30039. <exception name="IOException" type="java.io.IOException"/>
  30040. </method>
  30041. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30042. abstract="false" native="false" synchronized="false"
  30043. static="false" final="false" visibility="public"
  30044. deprecated="not deprecated">
  30045. <param name="tag" type="java.lang.String"/>
  30046. <exception name="IOException" type="java.io.IOException"/>
  30047. </method>
  30048. <method name="startRecord"
  30049. abstract="false" native="false" synchronized="false"
  30050. static="false" final="false" visibility="public"
  30051. deprecated="not deprecated">
  30052. <param name="tag" type="java.lang.String"/>
  30053. <exception name="IOException" type="java.io.IOException"/>
  30054. </method>
  30055. <method name="endRecord"
  30056. abstract="false" native="false" synchronized="false"
  30057. static="false" final="false" visibility="public"
  30058. deprecated="not deprecated">
  30059. <param name="tag" type="java.lang.String"/>
  30060. <exception name="IOException" type="java.io.IOException"/>
  30061. </method>
  30062. <method name="startVector" return="org.apache.hadoop.record.Index"
  30063. abstract="false" native="false" synchronized="false"
  30064. static="false" final="false" visibility="public"
  30065. deprecated="not deprecated">
  30066. <param name="tag" type="java.lang.String"/>
  30067. <exception name="IOException" type="java.io.IOException"/>
  30068. </method>
  30069. <method name="endVector"
  30070. abstract="false" native="false" synchronized="false"
  30071. static="false" final="false" visibility="public"
  30072. deprecated="not deprecated">
  30073. <param name="tag" type="java.lang.String"/>
  30074. <exception name="IOException" type="java.io.IOException"/>
  30075. </method>
  30076. <method name="startMap" return="org.apache.hadoop.record.Index"
  30077. abstract="false" native="false" synchronized="false"
  30078. static="false" final="false" visibility="public"
  30079. deprecated="not deprecated">
  30080. <param name="tag" type="java.lang.String"/>
  30081. <exception name="IOException" type="java.io.IOException"/>
  30082. </method>
  30083. <method name="endMap"
  30084. abstract="false" native="false" synchronized="false"
  30085. static="false" final="false" visibility="public"
  30086. deprecated="not deprecated">
  30087. <param name="tag" type="java.lang.String"/>
  30088. <exception name="IOException" type="java.io.IOException"/>
  30089. </method>
  30090. </class>
  30091. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  30092. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  30093. <class name="BinaryRecordOutput" extends="java.lang.Object"
  30094. abstract="false"
  30095. static="false" final="false" visibility="public"
  30096. deprecated="not deprecated">
  30097. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30098. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  30099. static="false" final="false" visibility="public"
  30100. deprecated="not deprecated">
  30101. <doc>
  30102. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  30103. </doc>
  30104. </constructor>
  30105. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  30106. static="false" final="false" visibility="public"
  30107. deprecated="not deprecated">
  30108. <doc>
  30109. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  30110. </doc>
  30111. </constructor>
  30112. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  30113. abstract="false" native="false" synchronized="false"
  30114. static="true" final="false" visibility="public"
  30115. deprecated="not deprecated">
  30116. <param name="out" type="java.io.DataOutput"/>
  30117. <doc>
  30118. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  30119. @param out data output stream
  30120. @return binary record output corresponding to the supplied DataOutput.]]>
  30121. </doc>
  30122. </method>
  30123. <method name="writeByte"
  30124. abstract="false" native="false" synchronized="false"
  30125. static="false" final="false" visibility="public"
  30126. deprecated="not deprecated">
  30127. <param name="b" type="byte"/>
  30128. <param name="tag" type="java.lang.String"/>
  30129. <exception name="IOException" type="java.io.IOException"/>
  30130. </method>
  30131. <method name="writeBool"
  30132. abstract="false" native="false" synchronized="false"
  30133. static="false" final="false" visibility="public"
  30134. deprecated="not deprecated">
  30135. <param name="b" type="boolean"/>
  30136. <param name="tag" type="java.lang.String"/>
  30137. <exception name="IOException" type="java.io.IOException"/>
  30138. </method>
  30139. <method name="writeInt"
  30140. abstract="false" native="false" synchronized="false"
  30141. static="false" final="false" visibility="public"
  30142. deprecated="not deprecated">
  30143. <param name="i" type="int"/>
  30144. <param name="tag" type="java.lang.String"/>
  30145. <exception name="IOException" type="java.io.IOException"/>
  30146. </method>
  30147. <method name="writeLong"
  30148. abstract="false" native="false" synchronized="false"
  30149. static="false" final="false" visibility="public"
  30150. deprecated="not deprecated">
  30151. <param name="l" type="long"/>
  30152. <param name="tag" type="java.lang.String"/>
  30153. <exception name="IOException" type="java.io.IOException"/>
  30154. </method>
  30155. <method name="writeFloat"
  30156. abstract="false" native="false" synchronized="false"
  30157. static="false" final="false" visibility="public"
  30158. deprecated="not deprecated">
  30159. <param name="f" type="float"/>
  30160. <param name="tag" type="java.lang.String"/>
  30161. <exception name="IOException" type="java.io.IOException"/>
  30162. </method>
  30163. <method name="writeDouble"
  30164. abstract="false" native="false" synchronized="false"
  30165. static="false" final="false" visibility="public"
  30166. deprecated="not deprecated">
  30167. <param name="d" type="double"/>
  30168. <param name="tag" type="java.lang.String"/>
  30169. <exception name="IOException" type="java.io.IOException"/>
  30170. </method>
  30171. <method name="writeString"
  30172. abstract="false" native="false" synchronized="false"
  30173. static="false" final="false" visibility="public"
  30174. deprecated="not deprecated">
  30175. <param name="s" type="java.lang.String"/>
  30176. <param name="tag" type="java.lang.String"/>
  30177. <exception name="IOException" type="java.io.IOException"/>
  30178. </method>
  30179. <method name="writeBuffer"
  30180. abstract="false" native="false" synchronized="false"
  30181. static="false" final="false" visibility="public"
  30182. deprecated="not deprecated">
  30183. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30184. <param name="tag" type="java.lang.String"/>
  30185. <exception name="IOException" type="java.io.IOException"/>
  30186. </method>
  30187. <method name="startRecord"
  30188. abstract="false" native="false" synchronized="false"
  30189. static="false" final="false" visibility="public"
  30190. deprecated="not deprecated">
  30191. <param name="r" type="org.apache.hadoop.record.Record"/>
  30192. <param name="tag" type="java.lang.String"/>
  30193. <exception name="IOException" type="java.io.IOException"/>
  30194. </method>
  30195. <method name="endRecord"
  30196. abstract="false" native="false" synchronized="false"
  30197. static="false" final="false" visibility="public"
  30198. deprecated="not deprecated">
  30199. <param name="r" type="org.apache.hadoop.record.Record"/>
  30200. <param name="tag" type="java.lang.String"/>
  30201. <exception name="IOException" type="java.io.IOException"/>
  30202. </method>
  30203. <method name="startVector"
  30204. abstract="false" native="false" synchronized="false"
  30205. static="false" final="false" visibility="public"
  30206. deprecated="not deprecated">
  30207. <param name="v" type="java.util.ArrayList"/>
  30208. <param name="tag" type="java.lang.String"/>
  30209. <exception name="IOException" type="java.io.IOException"/>
  30210. </method>
  30211. <method name="endVector"
  30212. abstract="false" native="false" synchronized="false"
  30213. static="false" final="false" visibility="public"
  30214. deprecated="not deprecated">
  30215. <param name="v" type="java.util.ArrayList"/>
  30216. <param name="tag" type="java.lang.String"/>
  30217. <exception name="IOException" type="java.io.IOException"/>
  30218. </method>
  30219. <method name="startMap"
  30220. abstract="false" native="false" synchronized="false"
  30221. static="false" final="false" visibility="public"
  30222. deprecated="not deprecated">
  30223. <param name="v" type="java.util.TreeMap"/>
  30224. <param name="tag" type="java.lang.String"/>
  30225. <exception name="IOException" type="java.io.IOException"/>
  30226. </method>
  30227. <method name="endMap"
  30228. abstract="false" native="false" synchronized="false"
  30229. static="false" final="false" visibility="public"
  30230. deprecated="not deprecated">
  30231. <param name="v" type="java.util.TreeMap"/>
  30232. <param name="tag" type="java.lang.String"/>
  30233. <exception name="IOException" type="java.io.IOException"/>
  30234. </method>
  30235. </class>
  30236. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  30237. <!-- start class org.apache.hadoop.record.Buffer -->
  30238. <class name="Buffer" extends="java.lang.Object"
  30239. abstract="false"
  30240. static="false" final="false" visibility="public"
  30241. deprecated="not deprecated">
  30242. <implements name="java.lang.Comparable"/>
  30243. <implements name="java.lang.Cloneable"/>
  30244. <constructor name="Buffer"
  30245. static="false" final="false" visibility="public"
  30246. deprecated="not deprecated">
  30247. <doc>
  30248. <![CDATA[Create a zero-count sequence.]]>
  30249. </doc>
  30250. </constructor>
  30251. <constructor name="Buffer" type="byte[]"
  30252. static="false" final="false" visibility="public"
  30253. deprecated="not deprecated">
  30254. <doc>
  30255. <![CDATA[Create a Buffer using the byte array as the initial value.
  30256. @param bytes This array becomes the backing storage for the object.]]>
  30257. </doc>
  30258. </constructor>
  30259. <constructor name="Buffer" type="byte[], int, int"
  30260. static="false" final="false" visibility="public"
  30261. deprecated="not deprecated">
  30262. <doc>
  30263. <![CDATA[Create a Buffer using the byte range as the initial value.
  30264. @param bytes Copy of this array becomes the backing storage for the object.
  30265. @param offset offset into byte array
  30266. @param length length of data]]>
  30267. </doc>
  30268. </constructor>
  30269. <method name="set"
  30270. abstract="false" native="false" synchronized="false"
  30271. static="false" final="false" visibility="public"
  30272. deprecated="not deprecated">
  30273. <param name="bytes" type="byte[]"/>
  30274. <doc>
  30275. <![CDATA[Use the specified bytes array as underlying sequence.
  30276. @param bytes byte sequence]]>
  30277. </doc>
  30278. </method>
  30279. <method name="copy"
  30280. abstract="false" native="false" synchronized="false"
  30281. static="false" final="true" visibility="public"
  30282. deprecated="not deprecated">
  30283. <param name="bytes" type="byte[]"/>
  30284. <param name="offset" type="int"/>
  30285. <param name="length" type="int"/>
  30286. <doc>
  30287. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  30288. @param bytes byte array to be assigned
  30289. @param offset offset into byte array
  30290. @param length length of data]]>
  30291. </doc>
  30292. </method>
  30293. <method name="get" return="byte[]"
  30294. abstract="false" native="false" synchronized="false"
  30295. static="false" final="false" visibility="public"
  30296. deprecated="not deprecated">
  30297. <doc>
  30298. <![CDATA[Get the data from the Buffer.
  30299. @return The data is only valid between 0 and getCount() - 1.]]>
  30300. </doc>
  30301. </method>
  30302. <method name="getCount" return="int"
  30303. abstract="false" native="false" synchronized="false"
  30304. static="false" final="false" visibility="public"
  30305. deprecated="not deprecated">
  30306. <doc>
  30307. <![CDATA[Get the current count of the buffer.]]>
  30308. </doc>
  30309. </method>
  30310. <method name="getCapacity" return="int"
  30311. abstract="false" native="false" synchronized="false"
  30312. static="false" final="false" visibility="public"
  30313. deprecated="not deprecated">
  30314. <doc>
  30315. <![CDATA[Get the capacity, which is the maximum count that could handled without
  30316. resizing the backing storage.
  30317. @return The number of bytes]]>
  30318. </doc>
  30319. </method>
  30320. <method name="setCapacity"
  30321. abstract="false" native="false" synchronized="false"
  30322. static="false" final="false" visibility="public"
  30323. deprecated="not deprecated">
  30324. <param name="newCapacity" type="int"/>
  30325. <doc>
  30326. <![CDATA[Change the capacity of the backing storage.
  30327. The data is preserved if newCapacity >= getCount().
  30328. @param newCapacity The new capacity in bytes.]]>
  30329. </doc>
  30330. </method>
  30331. <method name="reset"
  30332. abstract="false" native="false" synchronized="false"
  30333. static="false" final="false" visibility="public"
  30334. deprecated="not deprecated">
  30335. <doc>
  30336. <![CDATA[Reset the buffer to 0 size]]>
  30337. </doc>
  30338. </method>
  30339. <method name="truncate"
  30340. abstract="false" native="false" synchronized="false"
  30341. static="false" final="false" visibility="public"
  30342. deprecated="not deprecated">
  30343. <doc>
  30344. <![CDATA[Change the capacity of the backing store to be the same as the current
  30345. count of buffer.]]>
  30346. </doc>
  30347. </method>
  30348. <method name="append"
  30349. abstract="false" native="false" synchronized="false"
  30350. static="false" final="false" visibility="public"
  30351. deprecated="not deprecated">
  30352. <param name="bytes" type="byte[]"/>
  30353. <param name="offset" type="int"/>
  30354. <param name="length" type="int"/>
  30355. <doc>
  30356. <![CDATA[Append specified bytes to the buffer.
  30357. @param bytes byte array to be appended
  30358. @param offset offset into byte array
  30359. @param length length of data]]>
  30360. </doc>
  30361. </method>
  30362. <method name="append"
  30363. abstract="false" native="false" synchronized="false"
  30364. static="false" final="false" visibility="public"
  30365. deprecated="not deprecated">
  30366. <param name="bytes" type="byte[]"/>
  30367. <doc>
  30368. <![CDATA[Append specified bytes to the buffer
  30369. @param bytes byte array to be appended]]>
  30370. </doc>
  30371. </method>
  30372. <method name="hashCode" return="int"
  30373. abstract="false" native="false" synchronized="false"
  30374. static="false" final="false" visibility="public"
  30375. deprecated="not deprecated">
  30376. </method>
  30377. <method name="compareTo" return="int"
  30378. abstract="false" native="false" synchronized="false"
  30379. static="false" final="false" visibility="public"
  30380. deprecated="not deprecated">
  30381. <param name="other" type="java.lang.Object"/>
  30382. <doc>
  30383. <![CDATA[Define the sort order of the Buffer.
  30384. @param other The other buffer
  30385. @return Positive if this is bigger than other, 0 if they are equal, and
  30386. negative if this is smaller than other.]]>
  30387. </doc>
  30388. </method>
  30389. <method name="equals" return="boolean"
  30390. abstract="false" native="false" synchronized="false"
  30391. static="false" final="false" visibility="public"
  30392. deprecated="not deprecated">
  30393. <param name="other" type="java.lang.Object"/>
  30394. </method>
  30395. <method name="toString" return="java.lang.String"
  30396. abstract="false" native="false" synchronized="false"
  30397. static="false" final="false" visibility="public"
  30398. deprecated="not deprecated">
  30399. </method>
  30400. <method name="toString" 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="charsetName" type="java.lang.String"/>
  30405. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30406. <doc>
  30407. <![CDATA[Convert the byte buffer to a string an specific character encoding
  30408. @param charsetName Valid Java Character Set Name]]>
  30409. </doc>
  30410. </method>
  30411. <method name="clone" return="java.lang.Object"
  30412. abstract="false" native="false" synchronized="false"
  30413. static="false" final="false" visibility="public"
  30414. deprecated="not deprecated">
  30415. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  30416. </method>
  30417. <doc>
  30418. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  30419. It is resizable and distinguishes between the count of the seqeunce and
  30420. the current capacity.]]>
  30421. </doc>
  30422. </class>
  30423. <!-- end class org.apache.hadoop.record.Buffer -->
  30424. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  30425. <class name="CsvRecordInput" extends="java.lang.Object"
  30426. abstract="false"
  30427. static="false" final="false" visibility="public"
  30428. deprecated="not deprecated">
  30429. <implements name="org.apache.hadoop.record.RecordInput"/>
  30430. <constructor name="CsvRecordInput" type="java.io.InputStream"
  30431. static="false" final="false" visibility="public"
  30432. deprecated="not deprecated">
  30433. <doc>
  30434. <![CDATA[Creates a new instance of CsvRecordInput]]>
  30435. </doc>
  30436. </constructor>
  30437. <method name="readByte" return="byte"
  30438. abstract="false" native="false" synchronized="false"
  30439. static="false" final="false" visibility="public"
  30440. deprecated="not deprecated">
  30441. <param name="tag" type="java.lang.String"/>
  30442. <exception name="IOException" type="java.io.IOException"/>
  30443. </method>
  30444. <method name="readBool" return="boolean"
  30445. abstract="false" native="false" synchronized="false"
  30446. static="false" final="false" visibility="public"
  30447. deprecated="not deprecated">
  30448. <param name="tag" type="java.lang.String"/>
  30449. <exception name="IOException" type="java.io.IOException"/>
  30450. </method>
  30451. <method name="readInt" return="int"
  30452. abstract="false" native="false" synchronized="false"
  30453. static="false" final="false" visibility="public"
  30454. deprecated="not deprecated">
  30455. <param name="tag" type="java.lang.String"/>
  30456. <exception name="IOException" type="java.io.IOException"/>
  30457. </method>
  30458. <method name="readLong" return="long"
  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. </method>
  30465. <method name="readFloat" return="float"
  30466. abstract="false" native="false" synchronized="false"
  30467. static="false" final="false" visibility="public"
  30468. deprecated="not deprecated">
  30469. <param name="tag" type="java.lang.String"/>
  30470. <exception name="IOException" type="java.io.IOException"/>
  30471. </method>
  30472. <method name="readDouble" return="double"
  30473. abstract="false" native="false" synchronized="false"
  30474. static="false" final="false" visibility="public"
  30475. deprecated="not deprecated">
  30476. <param name="tag" type="java.lang.String"/>
  30477. <exception name="IOException" type="java.io.IOException"/>
  30478. </method>
  30479. <method name="readString" return="java.lang.String"
  30480. abstract="false" native="false" synchronized="false"
  30481. static="false" final="false" visibility="public"
  30482. deprecated="not deprecated">
  30483. <param name="tag" type="java.lang.String"/>
  30484. <exception name="IOException" type="java.io.IOException"/>
  30485. </method>
  30486. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30487. abstract="false" native="false" synchronized="false"
  30488. static="false" final="false" visibility="public"
  30489. deprecated="not deprecated">
  30490. <param name="tag" type="java.lang.String"/>
  30491. <exception name="IOException" type="java.io.IOException"/>
  30492. </method>
  30493. <method name="startRecord"
  30494. abstract="false" native="false" synchronized="false"
  30495. static="false" final="false" visibility="public"
  30496. deprecated="not deprecated">
  30497. <param name="tag" type="java.lang.String"/>
  30498. <exception name="IOException" type="java.io.IOException"/>
  30499. </method>
  30500. <method name="endRecord"
  30501. abstract="false" native="false" synchronized="false"
  30502. static="false" final="false" visibility="public"
  30503. deprecated="not deprecated">
  30504. <param name="tag" type="java.lang.String"/>
  30505. <exception name="IOException" type="java.io.IOException"/>
  30506. </method>
  30507. <method name="startVector" return="org.apache.hadoop.record.Index"
  30508. abstract="false" native="false" synchronized="false"
  30509. static="false" final="false" visibility="public"
  30510. deprecated="not deprecated">
  30511. <param name="tag" type="java.lang.String"/>
  30512. <exception name="IOException" type="java.io.IOException"/>
  30513. </method>
  30514. <method name="endVector"
  30515. abstract="false" native="false" synchronized="false"
  30516. static="false" final="false" visibility="public"
  30517. deprecated="not deprecated">
  30518. <param name="tag" type="java.lang.String"/>
  30519. <exception name="IOException" type="java.io.IOException"/>
  30520. </method>
  30521. <method name="startMap" return="org.apache.hadoop.record.Index"
  30522. abstract="false" native="false" synchronized="false"
  30523. static="false" final="false" visibility="public"
  30524. deprecated="not deprecated">
  30525. <param name="tag" type="java.lang.String"/>
  30526. <exception name="IOException" type="java.io.IOException"/>
  30527. </method>
  30528. <method name="endMap"
  30529. abstract="false" native="false" synchronized="false"
  30530. static="false" final="false" visibility="public"
  30531. deprecated="not deprecated">
  30532. <param name="tag" type="java.lang.String"/>
  30533. <exception name="IOException" type="java.io.IOException"/>
  30534. </method>
  30535. </class>
  30536. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  30537. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  30538. <class name="CsvRecordOutput" extends="java.lang.Object"
  30539. abstract="false"
  30540. static="false" final="false" visibility="public"
  30541. deprecated="not deprecated">
  30542. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30543. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  30544. static="false" final="false" visibility="public"
  30545. deprecated="not deprecated">
  30546. <doc>
  30547. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  30548. </doc>
  30549. </constructor>
  30550. <method name="writeByte"
  30551. abstract="false" native="false" synchronized="false"
  30552. static="false" final="false" visibility="public"
  30553. deprecated="not deprecated">
  30554. <param name="b" type="byte"/>
  30555. <param name="tag" type="java.lang.String"/>
  30556. <exception name="IOException" type="java.io.IOException"/>
  30557. </method>
  30558. <method name="writeBool"
  30559. abstract="false" native="false" synchronized="false"
  30560. static="false" final="false" visibility="public"
  30561. deprecated="not deprecated">
  30562. <param name="b" type="boolean"/>
  30563. <param name="tag" type="java.lang.String"/>
  30564. <exception name="IOException" type="java.io.IOException"/>
  30565. </method>
  30566. <method name="writeInt"
  30567. abstract="false" native="false" synchronized="false"
  30568. static="false" final="false" visibility="public"
  30569. deprecated="not deprecated">
  30570. <param name="i" type="int"/>
  30571. <param name="tag" type="java.lang.String"/>
  30572. <exception name="IOException" type="java.io.IOException"/>
  30573. </method>
  30574. <method name="writeLong"
  30575. abstract="false" native="false" synchronized="false"
  30576. static="false" final="false" visibility="public"
  30577. deprecated="not deprecated">
  30578. <param name="l" type="long"/>
  30579. <param name="tag" type="java.lang.String"/>
  30580. <exception name="IOException" type="java.io.IOException"/>
  30581. </method>
  30582. <method name="writeFloat"
  30583. abstract="false" native="false" synchronized="false"
  30584. static="false" final="false" visibility="public"
  30585. deprecated="not deprecated">
  30586. <param name="f" type="float"/>
  30587. <param name="tag" type="java.lang.String"/>
  30588. <exception name="IOException" type="java.io.IOException"/>
  30589. </method>
  30590. <method name="writeDouble"
  30591. abstract="false" native="false" synchronized="false"
  30592. static="false" final="false" visibility="public"
  30593. deprecated="not deprecated">
  30594. <param name="d" type="double"/>
  30595. <param name="tag" type="java.lang.String"/>
  30596. <exception name="IOException" type="java.io.IOException"/>
  30597. </method>
  30598. <method name="writeString"
  30599. abstract="false" native="false" synchronized="false"
  30600. static="false" final="false" visibility="public"
  30601. deprecated="not deprecated">
  30602. <param name="s" type="java.lang.String"/>
  30603. <param name="tag" type="java.lang.String"/>
  30604. <exception name="IOException" type="java.io.IOException"/>
  30605. </method>
  30606. <method name="writeBuffer"
  30607. abstract="false" native="false" synchronized="false"
  30608. static="false" final="false" visibility="public"
  30609. deprecated="not deprecated">
  30610. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30611. <param name="tag" type="java.lang.String"/>
  30612. <exception name="IOException" type="java.io.IOException"/>
  30613. </method>
  30614. <method name="startRecord"
  30615. abstract="false" native="false" synchronized="false"
  30616. static="false" final="false" visibility="public"
  30617. deprecated="not deprecated">
  30618. <param name="r" type="org.apache.hadoop.record.Record"/>
  30619. <param name="tag" type="java.lang.String"/>
  30620. <exception name="IOException" type="java.io.IOException"/>
  30621. </method>
  30622. <method name="endRecord"
  30623. abstract="false" native="false" synchronized="false"
  30624. static="false" final="false" visibility="public"
  30625. deprecated="not deprecated">
  30626. <param name="r" type="org.apache.hadoop.record.Record"/>
  30627. <param name="tag" type="java.lang.String"/>
  30628. <exception name="IOException" type="java.io.IOException"/>
  30629. </method>
  30630. <method name="startVector"
  30631. abstract="false" native="false" synchronized="false"
  30632. static="false" final="false" visibility="public"
  30633. deprecated="not deprecated">
  30634. <param name="v" type="java.util.ArrayList"/>
  30635. <param name="tag" type="java.lang.String"/>
  30636. <exception name="IOException" type="java.io.IOException"/>
  30637. </method>
  30638. <method name="endVector"
  30639. abstract="false" native="false" synchronized="false"
  30640. static="false" final="false" visibility="public"
  30641. deprecated="not deprecated">
  30642. <param name="v" type="java.util.ArrayList"/>
  30643. <param name="tag" type="java.lang.String"/>
  30644. <exception name="IOException" type="java.io.IOException"/>
  30645. </method>
  30646. <method name="startMap"
  30647. abstract="false" native="false" synchronized="false"
  30648. static="false" final="false" visibility="public"
  30649. deprecated="not deprecated">
  30650. <param name="v" type="java.util.TreeMap"/>
  30651. <param name="tag" type="java.lang.String"/>
  30652. <exception name="IOException" type="java.io.IOException"/>
  30653. </method>
  30654. <method name="endMap"
  30655. abstract="false" native="false" synchronized="false"
  30656. static="false" final="false" visibility="public"
  30657. deprecated="not deprecated">
  30658. <param name="v" type="java.util.TreeMap"/>
  30659. <param name="tag" type="java.lang.String"/>
  30660. <exception name="IOException" type="java.io.IOException"/>
  30661. </method>
  30662. </class>
  30663. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  30664. <!-- start interface org.apache.hadoop.record.Index -->
  30665. <interface name="Index" abstract="true"
  30666. static="false" final="false" visibility="public"
  30667. deprecated="not deprecated">
  30668. <method name="done" return="boolean"
  30669. abstract="false" native="false" synchronized="false"
  30670. static="false" final="false" visibility="public"
  30671. deprecated="not deprecated">
  30672. </method>
  30673. <method name="incr"
  30674. abstract="false" native="false" synchronized="false"
  30675. static="false" final="false" visibility="public"
  30676. deprecated="not deprecated">
  30677. </method>
  30678. <doc>
  30679. <![CDATA[Interface that acts as an iterator for deserializing maps.
  30680. The deserializer returns an instance that the record uses to
  30681. read vectors and maps. An example of usage is as follows:
  30682. <code>
  30683. Index idx = startVector(...);
  30684. while (!idx.done()) {
  30685. .... // read element of a vector
  30686. idx.incr();
  30687. }
  30688. </code>]]>
  30689. </doc>
  30690. </interface>
  30691. <!-- end interface org.apache.hadoop.record.Index -->
  30692. <!-- start class org.apache.hadoop.record.Record -->
  30693. <class name="Record" extends="java.lang.Object"
  30694. abstract="true"
  30695. static="false" final="false" visibility="public"
  30696. deprecated="not deprecated">
  30697. <implements name="org.apache.hadoop.io.WritableComparable"/>
  30698. <implements name="java.lang.Cloneable"/>
  30699. <constructor name="Record"
  30700. static="false" final="false" visibility="public"
  30701. deprecated="not deprecated">
  30702. </constructor>
  30703. <method name="serialize"
  30704. abstract="true" native="false" synchronized="false"
  30705. static="false" final="false" visibility="public"
  30706. deprecated="not deprecated">
  30707. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30708. <param name="tag" type="java.lang.String"/>
  30709. <exception name="IOException" type="java.io.IOException"/>
  30710. <doc>
  30711. <![CDATA[Serialize a record with tag (ususally field name)
  30712. @param rout Record output destination
  30713. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  30714. </doc>
  30715. </method>
  30716. <method name="deserialize"
  30717. abstract="true" native="false" synchronized="false"
  30718. static="false" final="false" visibility="public"
  30719. deprecated="not deprecated">
  30720. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30721. <param name="tag" type="java.lang.String"/>
  30722. <exception name="IOException" type="java.io.IOException"/>
  30723. <doc>
  30724. <![CDATA[Deserialize a record with a tag (usually field name)
  30725. @param rin Record input source
  30726. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  30727. </doc>
  30728. </method>
  30729. <method name="compareTo" return="int"
  30730. abstract="true" native="false" synchronized="false"
  30731. static="false" final="false" visibility="public"
  30732. deprecated="not deprecated">
  30733. <param name="peer" type="java.lang.Object"/>
  30734. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  30735. </method>
  30736. <method name="serialize"
  30737. abstract="false" native="false" synchronized="false"
  30738. static="false" final="false" visibility="public"
  30739. deprecated="not deprecated">
  30740. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30741. <exception name="IOException" type="java.io.IOException"/>
  30742. <doc>
  30743. <![CDATA[Serialize a record without a tag
  30744. @param rout Record output destination]]>
  30745. </doc>
  30746. </method>
  30747. <method name="deserialize"
  30748. abstract="false" native="false" synchronized="false"
  30749. static="false" final="false" visibility="public"
  30750. deprecated="not deprecated">
  30751. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30752. <exception name="IOException" type="java.io.IOException"/>
  30753. <doc>
  30754. <![CDATA[Deserialize a record without a tag
  30755. @param rin Record input source]]>
  30756. </doc>
  30757. </method>
  30758. <method name="write"
  30759. abstract="false" native="false" synchronized="false"
  30760. static="false" final="false" visibility="public"
  30761. deprecated="not deprecated">
  30762. <param name="out" type="java.io.DataOutput"/>
  30763. <exception name="IOException" type="java.io.IOException"/>
  30764. </method>
  30765. <method name="readFields"
  30766. abstract="false" native="false" synchronized="false"
  30767. static="false" final="false" visibility="public"
  30768. deprecated="not deprecated">
  30769. <param name="din" type="java.io.DataInput"/>
  30770. <exception name="IOException" type="java.io.IOException"/>
  30771. </method>
  30772. <method name="toString" return="java.lang.String"
  30773. abstract="false" native="false" synchronized="false"
  30774. static="false" final="false" visibility="public"
  30775. deprecated="not deprecated">
  30776. </method>
  30777. <doc>
  30778. <![CDATA[Abstract class that is extended by generated classes.]]>
  30779. </doc>
  30780. </class>
  30781. <!-- end class org.apache.hadoop.record.Record -->
  30782. <!-- start class org.apache.hadoop.record.RecordComparator -->
  30783. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  30784. abstract="true"
  30785. static="false" final="false" visibility="public"
  30786. deprecated="not deprecated">
  30787. <constructor name="RecordComparator" type="java.lang.Class"
  30788. static="false" final="false" visibility="protected"
  30789. deprecated="not deprecated">
  30790. <doc>
  30791. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  30792. </doc>
  30793. </constructor>
  30794. <method name="compare" return="int"
  30795. abstract="true" native="false" synchronized="false"
  30796. static="false" final="false" visibility="public"
  30797. deprecated="not deprecated">
  30798. <param name="b1" type="byte[]"/>
  30799. <param name="s1" type="int"/>
  30800. <param name="l1" type="int"/>
  30801. <param name="b2" type="byte[]"/>
  30802. <param name="s2" type="int"/>
  30803. <param name="l2" type="int"/>
  30804. </method>
  30805. <method name="define"
  30806. abstract="false" native="false" synchronized="true"
  30807. static="true" final="false" visibility="public"
  30808. deprecated="not deprecated">
  30809. <param name="c" type="java.lang.Class"/>
  30810. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  30811. <doc>
  30812. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  30813. @param c record classs for which a raw comparator is provided
  30814. @param comparator Raw comparator instance for class c]]>
  30815. </doc>
  30816. </method>
  30817. <doc>
  30818. <![CDATA[A raw record comparator base class]]>
  30819. </doc>
  30820. </class>
  30821. <!-- end class org.apache.hadoop.record.RecordComparator -->
  30822. <!-- start interface org.apache.hadoop.record.RecordInput -->
  30823. <interface name="RecordInput" abstract="true"
  30824. static="false" final="false" visibility="public"
  30825. deprecated="not deprecated">
  30826. <method name="readByte" return="byte"
  30827. abstract="false" native="false" synchronized="false"
  30828. static="false" final="false" visibility="public"
  30829. deprecated="not deprecated">
  30830. <param name="tag" type="java.lang.String"/>
  30831. <exception name="IOException" type="java.io.IOException"/>
  30832. <doc>
  30833. <![CDATA[Read a byte from serialized record.
  30834. @param tag Used by tagged serialization formats (such as XML)
  30835. @return value read from serialized record.]]>
  30836. </doc>
  30837. </method>
  30838. <method name="readBool" return="boolean"
  30839. abstract="false" native="false" synchronized="false"
  30840. static="false" final="false" visibility="public"
  30841. deprecated="not deprecated">
  30842. <param name="tag" type="java.lang.String"/>
  30843. <exception name="IOException" type="java.io.IOException"/>
  30844. <doc>
  30845. <![CDATA[Read a boolean from serialized record.
  30846. @param tag Used by tagged serialization formats (such as XML)
  30847. @return value read from serialized record.]]>
  30848. </doc>
  30849. </method>
  30850. <method name="readInt" return="int"
  30851. abstract="false" native="false" synchronized="false"
  30852. static="false" final="false" visibility="public"
  30853. deprecated="not deprecated">
  30854. <param name="tag" type="java.lang.String"/>
  30855. <exception name="IOException" type="java.io.IOException"/>
  30856. <doc>
  30857. <![CDATA[Read an integer from serialized record.
  30858. @param tag Used by tagged serialization formats (such as XML)
  30859. @return value read from serialized record.]]>
  30860. </doc>
  30861. </method>
  30862. <method name="readLong" return="long"
  30863. abstract="false" native="false" synchronized="false"
  30864. static="false" final="false" visibility="public"
  30865. deprecated="not deprecated">
  30866. <param name="tag" type="java.lang.String"/>
  30867. <exception name="IOException" type="java.io.IOException"/>
  30868. <doc>
  30869. <![CDATA[Read a long integer from serialized record.
  30870. @param tag Used by tagged serialization formats (such as XML)
  30871. @return value read from serialized record.]]>
  30872. </doc>
  30873. </method>
  30874. <method name="readFloat" return="float"
  30875. abstract="false" native="false" synchronized="false"
  30876. static="false" final="false" visibility="public"
  30877. deprecated="not deprecated">
  30878. <param name="tag" type="java.lang.String"/>
  30879. <exception name="IOException" type="java.io.IOException"/>
  30880. <doc>
  30881. <![CDATA[Read a single-precision float from serialized record.
  30882. @param tag Used by tagged serialization formats (such as XML)
  30883. @return value read from serialized record.]]>
  30884. </doc>
  30885. </method>
  30886. <method name="readDouble" return="double"
  30887. abstract="false" native="false" synchronized="false"
  30888. static="false" final="false" visibility="public"
  30889. deprecated="not deprecated">
  30890. <param name="tag" type="java.lang.String"/>
  30891. <exception name="IOException" type="java.io.IOException"/>
  30892. <doc>
  30893. <![CDATA[Read a double-precision number from serialized record.
  30894. @param tag Used by tagged serialization formats (such as XML)
  30895. @return value read from serialized record.]]>
  30896. </doc>
  30897. </method>
  30898. <method name="readString" return="java.lang.String"
  30899. abstract="false" native="false" synchronized="false"
  30900. static="false" final="false" visibility="public"
  30901. deprecated="not deprecated">
  30902. <param name="tag" type="java.lang.String"/>
  30903. <exception name="IOException" type="java.io.IOException"/>
  30904. <doc>
  30905. <![CDATA[Read a UTF-8 encoded string from serialized record.
  30906. @param tag Used by tagged serialization formats (such as XML)
  30907. @return value read from serialized record.]]>
  30908. </doc>
  30909. </method>
  30910. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30911. abstract="false" native="false" synchronized="false"
  30912. static="false" final="false" visibility="public"
  30913. deprecated="not deprecated">
  30914. <param name="tag" type="java.lang.String"/>
  30915. <exception name="IOException" type="java.io.IOException"/>
  30916. <doc>
  30917. <![CDATA[Read byte array from serialized record.
  30918. @param tag Used by tagged serialization formats (such as XML)
  30919. @return value read from serialized record.]]>
  30920. </doc>
  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. <doc>
  30929. <![CDATA[Check the mark for start of the serialized record.
  30930. @param tag Used by tagged serialization formats (such as XML)]]>
  30931. </doc>
  30932. </method>
  30933. <method name="endRecord"
  30934. abstract="false" native="false" synchronized="false"
  30935. static="false" final="false" visibility="public"
  30936. deprecated="not deprecated">
  30937. <param name="tag" type="java.lang.String"/>
  30938. <exception name="IOException" type="java.io.IOException"/>
  30939. <doc>
  30940. <![CDATA[Check the mark for end of the serialized record.
  30941. @param tag Used by tagged serialization formats (such as XML)]]>
  30942. </doc>
  30943. </method>
  30944. <method name="startVector" return="org.apache.hadoop.record.Index"
  30945. abstract="false" native="false" synchronized="false"
  30946. static="false" final="false" visibility="public"
  30947. deprecated="not deprecated">
  30948. <param name="tag" type="java.lang.String"/>
  30949. <exception name="IOException" type="java.io.IOException"/>
  30950. <doc>
  30951. <![CDATA[Check the mark for start of the serialized vector.
  30952. @param tag Used by tagged serialization formats (such as XML)
  30953. @return Index that is used to count the number of elements.]]>
  30954. </doc>
  30955. </method>
  30956. <method name="endVector"
  30957. abstract="false" native="false" synchronized="false"
  30958. static="false" final="false" visibility="public"
  30959. deprecated="not deprecated">
  30960. <param name="tag" type="java.lang.String"/>
  30961. <exception name="IOException" type="java.io.IOException"/>
  30962. <doc>
  30963. <![CDATA[Check the mark for end of the serialized vector.
  30964. @param tag Used by tagged serialization formats (such as XML)]]>
  30965. </doc>
  30966. </method>
  30967. <method name="startMap" return="org.apache.hadoop.record.Index"
  30968. abstract="false" native="false" synchronized="false"
  30969. static="false" final="false" visibility="public"
  30970. deprecated="not deprecated">
  30971. <param name="tag" type="java.lang.String"/>
  30972. <exception name="IOException" type="java.io.IOException"/>
  30973. <doc>
  30974. <![CDATA[Check the mark for start of the serialized map.
  30975. @param tag Used by tagged serialization formats (such as XML)
  30976. @return Index that is used to count the number of map entries.]]>
  30977. </doc>
  30978. </method>
  30979. <method name="endMap"
  30980. abstract="false" native="false" synchronized="false"
  30981. static="false" final="false" visibility="public"
  30982. deprecated="not deprecated">
  30983. <param name="tag" type="java.lang.String"/>
  30984. <exception name="IOException" type="java.io.IOException"/>
  30985. <doc>
  30986. <![CDATA[Check the mark for end of the serialized map.
  30987. @param tag Used by tagged serialization formats (such as XML)]]>
  30988. </doc>
  30989. </method>
  30990. <doc>
  30991. <![CDATA[Interface that all the Deserializers have to implement.]]>
  30992. </doc>
  30993. </interface>
  30994. <!-- end interface org.apache.hadoop.record.RecordInput -->
  30995. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  30996. <interface name="RecordOutput" abstract="true"
  30997. static="false" final="false" visibility="public"
  30998. deprecated="not deprecated">
  30999. <method name="writeByte"
  31000. abstract="false" native="false" synchronized="false"
  31001. static="false" final="false" visibility="public"
  31002. deprecated="not deprecated">
  31003. <param name="b" type="byte"/>
  31004. <param name="tag" type="java.lang.String"/>
  31005. <exception name="IOException" type="java.io.IOException"/>
  31006. <doc>
  31007. <![CDATA[Write a byte to serialized record.
  31008. @param b Byte to be serialized
  31009. @param tag Used by tagged serialization formats (such as XML)
  31010. @throws IOException Indicates error in serialization]]>
  31011. </doc>
  31012. </method>
  31013. <method name="writeBool"
  31014. abstract="false" native="false" synchronized="false"
  31015. static="false" final="false" visibility="public"
  31016. deprecated="not deprecated">
  31017. <param name="b" type="boolean"/>
  31018. <param name="tag" type="java.lang.String"/>
  31019. <exception name="IOException" type="java.io.IOException"/>
  31020. <doc>
  31021. <![CDATA[Write a boolean to serialized record.
  31022. @param b Boolean to be serialized
  31023. @param tag Used by tagged serialization formats (such as XML)
  31024. @throws IOException Indicates error in serialization]]>
  31025. </doc>
  31026. </method>
  31027. <method name="writeInt"
  31028. abstract="false" native="false" synchronized="false"
  31029. static="false" final="false" visibility="public"
  31030. deprecated="not deprecated">
  31031. <param name="i" type="int"/>
  31032. <param name="tag" type="java.lang.String"/>
  31033. <exception name="IOException" type="java.io.IOException"/>
  31034. <doc>
  31035. <![CDATA[Write an integer to serialized record.
  31036. @param i Integer to be serialized
  31037. @param tag Used by tagged serialization formats (such as XML)
  31038. @throws IOException Indicates error in serialization]]>
  31039. </doc>
  31040. </method>
  31041. <method name="writeLong"
  31042. abstract="false" native="false" synchronized="false"
  31043. static="false" final="false" visibility="public"
  31044. deprecated="not deprecated">
  31045. <param name="l" type="long"/>
  31046. <param name="tag" type="java.lang.String"/>
  31047. <exception name="IOException" type="java.io.IOException"/>
  31048. <doc>
  31049. <![CDATA[Write a long integer to serialized record.
  31050. @param l Long to be serialized
  31051. @param tag Used by tagged serialization formats (such as XML)
  31052. @throws IOException Indicates error in serialization]]>
  31053. </doc>
  31054. </method>
  31055. <method name="writeFloat"
  31056. abstract="false" native="false" synchronized="false"
  31057. static="false" final="false" visibility="public"
  31058. deprecated="not deprecated">
  31059. <param name="f" type="float"/>
  31060. <param name="tag" type="java.lang.String"/>
  31061. <exception name="IOException" type="java.io.IOException"/>
  31062. <doc>
  31063. <![CDATA[Write a single-precision float to serialized record.
  31064. @param f Float to be serialized
  31065. @param tag Used by tagged serialization formats (such as XML)
  31066. @throws IOException Indicates error in serialization]]>
  31067. </doc>
  31068. </method>
  31069. <method name="writeDouble"
  31070. abstract="false" native="false" synchronized="false"
  31071. static="false" final="false" visibility="public"
  31072. deprecated="not deprecated">
  31073. <param name="d" type="double"/>
  31074. <param name="tag" type="java.lang.String"/>
  31075. <exception name="IOException" type="java.io.IOException"/>
  31076. <doc>
  31077. <![CDATA[Write a double precision floating point number to serialized record.
  31078. @param d Double to be serialized
  31079. @param tag Used by tagged serialization formats (such as XML)
  31080. @throws IOException Indicates error in serialization]]>
  31081. </doc>
  31082. </method>
  31083. <method name="writeString"
  31084. abstract="false" native="false" synchronized="false"
  31085. static="false" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <param name="s" type="java.lang.String"/>
  31088. <param name="tag" type="java.lang.String"/>
  31089. <exception name="IOException" type="java.io.IOException"/>
  31090. <doc>
  31091. <![CDATA[Write a unicode string to serialized record.
  31092. @param s String to be serialized
  31093. @param tag Used by tagged serialization formats (such as XML)
  31094. @throws IOException Indicates error in serialization]]>
  31095. </doc>
  31096. </method>
  31097. <method name="writeBuffer"
  31098. abstract="false" native="false" synchronized="false"
  31099. static="false" final="false" visibility="public"
  31100. deprecated="not deprecated">
  31101. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31102. <param name="tag" type="java.lang.String"/>
  31103. <exception name="IOException" type="java.io.IOException"/>
  31104. <doc>
  31105. <![CDATA[Write a buffer to serialized record.
  31106. @param buf Buffer to be serialized
  31107. @param tag Used by tagged serialization formats (such as XML)
  31108. @throws IOException Indicates error in serialization]]>
  31109. </doc>
  31110. </method>
  31111. <method name="startRecord"
  31112. abstract="false" native="false" synchronized="false"
  31113. static="false" final="false" visibility="public"
  31114. deprecated="not deprecated">
  31115. <param name="r" type="org.apache.hadoop.record.Record"/>
  31116. <param name="tag" type="java.lang.String"/>
  31117. <exception name="IOException" type="java.io.IOException"/>
  31118. <doc>
  31119. <![CDATA[Mark the start of a record to be serialized.
  31120. @param r Record to be serialized
  31121. @param tag Used by tagged serialization formats (such as XML)
  31122. @throws IOException Indicates error in serialization]]>
  31123. </doc>
  31124. </method>
  31125. <method name="endRecord"
  31126. abstract="false" native="false" synchronized="false"
  31127. static="false" final="false" visibility="public"
  31128. deprecated="not deprecated">
  31129. <param name="r" type="org.apache.hadoop.record.Record"/>
  31130. <param name="tag" type="java.lang.String"/>
  31131. <exception name="IOException" type="java.io.IOException"/>
  31132. <doc>
  31133. <![CDATA[Mark the end of a serialized record.
  31134. @param r Record to be serialized
  31135. @param tag Used by tagged serialization formats (such as XML)
  31136. @throws IOException Indicates error in serialization]]>
  31137. </doc>
  31138. </method>
  31139. <method name="startVector"
  31140. abstract="false" native="false" synchronized="false"
  31141. static="false" final="false" visibility="public"
  31142. deprecated="not deprecated">
  31143. <param name="v" type="java.util.ArrayList"/>
  31144. <param name="tag" type="java.lang.String"/>
  31145. <exception name="IOException" type="java.io.IOException"/>
  31146. <doc>
  31147. <![CDATA[Mark the start of a vector to be serialized.
  31148. @param v Vector to be serialized
  31149. @param tag Used by tagged serialization formats (such as XML)
  31150. @throws IOException Indicates error in serialization]]>
  31151. </doc>
  31152. </method>
  31153. <method name="endVector"
  31154. abstract="false" native="false" synchronized="false"
  31155. static="false" final="false" visibility="public"
  31156. deprecated="not deprecated">
  31157. <param name="v" type="java.util.ArrayList"/>
  31158. <param name="tag" type="java.lang.String"/>
  31159. <exception name="IOException" type="java.io.IOException"/>
  31160. <doc>
  31161. <![CDATA[Mark the end of a serialized vector.
  31162. @param v Vector to be serialized
  31163. @param tag Used by tagged serialization formats (such as XML)
  31164. @throws IOException Indicates error in serialization]]>
  31165. </doc>
  31166. </method>
  31167. <method name="startMap"
  31168. abstract="false" native="false" synchronized="false"
  31169. static="false" final="false" visibility="public"
  31170. deprecated="not deprecated">
  31171. <param name="m" type="java.util.TreeMap"/>
  31172. <param name="tag" type="java.lang.String"/>
  31173. <exception name="IOException" type="java.io.IOException"/>
  31174. <doc>
  31175. <![CDATA[Mark the start of a map to be serialized.
  31176. @param m Map to be serialized
  31177. @param tag Used by tagged serialization formats (such as XML)
  31178. @throws IOException Indicates error in serialization]]>
  31179. </doc>
  31180. </method>
  31181. <method name="endMap"
  31182. abstract="false" native="false" synchronized="false"
  31183. static="false" final="false" visibility="public"
  31184. deprecated="not deprecated">
  31185. <param name="m" type="java.util.TreeMap"/>
  31186. <param name="tag" type="java.lang.String"/>
  31187. <exception name="IOException" type="java.io.IOException"/>
  31188. <doc>
  31189. <![CDATA[Mark the end of a serialized map.
  31190. @param m Map to be serialized
  31191. @param tag Used by tagged serialization formats (such as XML)
  31192. @throws IOException Indicates error in serialization]]>
  31193. </doc>
  31194. </method>
  31195. <doc>
  31196. <![CDATA[Interface that alll the serializers have to implement.]]>
  31197. </doc>
  31198. </interface>
  31199. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  31200. <!-- start class org.apache.hadoop.record.Utils -->
  31201. <class name="Utils" extends="java.lang.Object"
  31202. abstract="false"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. <method name="readFloat" return="float"
  31206. abstract="false" native="false" synchronized="false"
  31207. static="true" final="false" visibility="public"
  31208. deprecated="not deprecated">
  31209. <param name="bytes" type="byte[]"/>
  31210. <param name="start" type="int"/>
  31211. <doc>
  31212. <![CDATA[Parse a float from a byte array.]]>
  31213. </doc>
  31214. </method>
  31215. <method name="readDouble" return="double"
  31216. abstract="false" native="false" synchronized="false"
  31217. static="true" final="false" visibility="public"
  31218. deprecated="not deprecated">
  31219. <param name="bytes" type="byte[]"/>
  31220. <param name="start" type="int"/>
  31221. <doc>
  31222. <![CDATA[Parse a double from a byte array.]]>
  31223. </doc>
  31224. </method>
  31225. <method name="readVLong" return="long"
  31226. abstract="false" native="false" synchronized="false"
  31227. static="true" final="false" visibility="public"
  31228. deprecated="not deprecated">
  31229. <param name="bytes" type="byte[]"/>
  31230. <param name="start" type="int"/>
  31231. <exception name="IOException" type="java.io.IOException"/>
  31232. <doc>
  31233. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  31234. @param bytes byte array with decode long
  31235. @param start starting index
  31236. @throws java.io.IOException
  31237. @return deserialized long]]>
  31238. </doc>
  31239. </method>
  31240. <method name="readVInt" return="int"
  31241. abstract="false" native="false" synchronized="false"
  31242. static="true" final="false" visibility="public"
  31243. deprecated="not deprecated">
  31244. <param name="bytes" type="byte[]"/>
  31245. <param name="start" type="int"/>
  31246. <exception name="IOException" type="java.io.IOException"/>
  31247. <doc>
  31248. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  31249. @param bytes byte array with the encoded integer
  31250. @param start start index
  31251. @throws java.io.IOException
  31252. @return deserialized integer]]>
  31253. </doc>
  31254. </method>
  31255. <method name="readVLong" return="long"
  31256. abstract="false" native="false" synchronized="false"
  31257. static="true" final="false" visibility="public"
  31258. deprecated="not deprecated">
  31259. <param name="in" type="java.io.DataInput"/>
  31260. <exception name="IOException" type="java.io.IOException"/>
  31261. <doc>
  31262. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  31263. @param in input stream
  31264. @throws java.io.IOException
  31265. @return deserialized long]]>
  31266. </doc>
  31267. </method>
  31268. <method name="readVInt" return="int"
  31269. abstract="false" native="false" synchronized="false"
  31270. static="true" final="false" visibility="public"
  31271. deprecated="not deprecated">
  31272. <param name="in" type="java.io.DataInput"/>
  31273. <exception name="IOException" type="java.io.IOException"/>
  31274. <doc>
  31275. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  31276. @param in input stream
  31277. @throws java.io.IOException
  31278. @return deserialized integer]]>
  31279. </doc>
  31280. </method>
  31281. <method name="getVIntSize" return="int"
  31282. abstract="false" native="false" synchronized="false"
  31283. static="true" final="false" visibility="public"
  31284. deprecated="not deprecated">
  31285. <param name="i" type="long"/>
  31286. <doc>
  31287. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  31288. @return the encoded length]]>
  31289. </doc>
  31290. </method>
  31291. <method name="writeVLong"
  31292. abstract="false" native="false" synchronized="false"
  31293. static="true" final="false" visibility="public"
  31294. deprecated="not deprecated">
  31295. <param name="stream" type="java.io.DataOutput"/>
  31296. <param name="i" type="long"/>
  31297. <exception name="IOException" type="java.io.IOException"/>
  31298. <doc>
  31299. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  31300. For -112 <= i <= 127, only one byte is used with the actual value.
  31301. For other values of i, the first byte value indicates whether the
  31302. long is positive or negative, and the number of bytes that follow.
  31303. If the first byte value v is between -113 and -120, the following long
  31304. is positive, with number of bytes that follow are -(v+112).
  31305. If the first byte value v is between -121 and -128, the following long
  31306. is negative, with number of bytes that follow are -(v+120). Bytes are
  31307. stored in the high-non-zero-byte-first order.
  31308. @param stream Binary output stream
  31309. @param i Long to be serialized
  31310. @throws java.io.IOException]]>
  31311. </doc>
  31312. </method>
  31313. <method name="writeVInt"
  31314. abstract="false" native="false" synchronized="false"
  31315. static="true" final="false" visibility="public"
  31316. deprecated="not deprecated">
  31317. <param name="stream" type="java.io.DataOutput"/>
  31318. <param name="i" type="int"/>
  31319. <exception name="IOException" type="java.io.IOException"/>
  31320. <doc>
  31321. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  31322. @param stream Binary output stream
  31323. @param i int to be serialized
  31324. @throws java.io.IOException]]>
  31325. </doc>
  31326. </method>
  31327. <method name="compareBytes" return="int"
  31328. abstract="false" native="false" synchronized="false"
  31329. static="true" final="false" visibility="public"
  31330. deprecated="not deprecated">
  31331. <param name="b1" type="byte[]"/>
  31332. <param name="s1" type="int"/>
  31333. <param name="l1" type="int"/>
  31334. <param name="b2" type="byte[]"/>
  31335. <param name="s2" type="int"/>
  31336. <param name="l2" type="int"/>
  31337. <doc>
  31338. <![CDATA[Lexicographic order of binary data.]]>
  31339. </doc>
  31340. </method>
  31341. <field name="hexchars" type="char[]"
  31342. transient="false" volatile="false"
  31343. static="true" final="true" visibility="public"
  31344. deprecated="not deprecated">
  31345. </field>
  31346. <doc>
  31347. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  31348. </doc>
  31349. </class>
  31350. <!-- end class org.apache.hadoop.record.Utils -->
  31351. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  31352. <class name="XmlRecordInput" extends="java.lang.Object"
  31353. abstract="false"
  31354. static="false" final="false" visibility="public"
  31355. deprecated="not deprecated">
  31356. <implements name="org.apache.hadoop.record.RecordInput"/>
  31357. <constructor name="XmlRecordInput" type="java.io.InputStream"
  31358. static="false" final="false" visibility="public"
  31359. deprecated="not deprecated">
  31360. <doc>
  31361. <![CDATA[Creates a new instance of XmlRecordInput]]>
  31362. </doc>
  31363. </constructor>
  31364. <method name="readByte" return="byte"
  31365. abstract="false" native="false" synchronized="false"
  31366. static="false" final="false" visibility="public"
  31367. deprecated="not deprecated">
  31368. <param name="tag" type="java.lang.String"/>
  31369. <exception name="IOException" type="java.io.IOException"/>
  31370. </method>
  31371. <method name="readBool" return="boolean"
  31372. abstract="false" native="false" synchronized="false"
  31373. static="false" final="false" visibility="public"
  31374. deprecated="not deprecated">
  31375. <param name="tag" type="java.lang.String"/>
  31376. <exception name="IOException" type="java.io.IOException"/>
  31377. </method>
  31378. <method name="readInt" return="int"
  31379. abstract="false" native="false" synchronized="false"
  31380. static="false" final="false" visibility="public"
  31381. deprecated="not deprecated">
  31382. <param name="tag" type="java.lang.String"/>
  31383. <exception name="IOException" type="java.io.IOException"/>
  31384. </method>
  31385. <method name="readLong" return="long"
  31386. abstract="false" native="false" synchronized="false"
  31387. static="false" final="false" visibility="public"
  31388. deprecated="not deprecated">
  31389. <param name="tag" type="java.lang.String"/>
  31390. <exception name="IOException" type="java.io.IOException"/>
  31391. </method>
  31392. <method name="readFloat" return="float"
  31393. abstract="false" native="false" synchronized="false"
  31394. static="false" final="false" visibility="public"
  31395. deprecated="not deprecated">
  31396. <param name="tag" type="java.lang.String"/>
  31397. <exception name="IOException" type="java.io.IOException"/>
  31398. </method>
  31399. <method name="readDouble" return="double"
  31400. abstract="false" native="false" synchronized="false"
  31401. static="false" final="false" visibility="public"
  31402. deprecated="not deprecated">
  31403. <param name="tag" type="java.lang.String"/>
  31404. <exception name="IOException" type="java.io.IOException"/>
  31405. </method>
  31406. <method name="readString" return="java.lang.String"
  31407. abstract="false" native="false" synchronized="false"
  31408. static="false" final="false" visibility="public"
  31409. deprecated="not deprecated">
  31410. <param name="tag" type="java.lang.String"/>
  31411. <exception name="IOException" type="java.io.IOException"/>
  31412. </method>
  31413. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31414. abstract="false" native="false" synchronized="false"
  31415. static="false" final="false" visibility="public"
  31416. deprecated="not deprecated">
  31417. <param name="tag" type="java.lang.String"/>
  31418. <exception name="IOException" type="java.io.IOException"/>
  31419. </method>
  31420. <method name="startRecord"
  31421. abstract="false" native="false" synchronized="false"
  31422. static="false" final="false" visibility="public"
  31423. deprecated="not deprecated">
  31424. <param name="tag" type="java.lang.String"/>
  31425. <exception name="IOException" type="java.io.IOException"/>
  31426. </method>
  31427. <method name="endRecord"
  31428. abstract="false" native="false" synchronized="false"
  31429. static="false" final="false" visibility="public"
  31430. deprecated="not deprecated">
  31431. <param name="tag" type="java.lang.String"/>
  31432. <exception name="IOException" type="java.io.IOException"/>
  31433. </method>
  31434. <method name="startVector" return="org.apache.hadoop.record.Index"
  31435. abstract="false" native="false" synchronized="false"
  31436. static="false" final="false" visibility="public"
  31437. deprecated="not deprecated">
  31438. <param name="tag" type="java.lang.String"/>
  31439. <exception name="IOException" type="java.io.IOException"/>
  31440. </method>
  31441. <method name="endVector"
  31442. abstract="false" native="false" synchronized="false"
  31443. static="false" final="false" visibility="public"
  31444. deprecated="not deprecated">
  31445. <param name="tag" type="java.lang.String"/>
  31446. <exception name="IOException" type="java.io.IOException"/>
  31447. </method>
  31448. <method name="startMap" return="org.apache.hadoop.record.Index"
  31449. abstract="false" native="false" synchronized="false"
  31450. static="false" final="false" visibility="public"
  31451. deprecated="not deprecated">
  31452. <param name="tag" type="java.lang.String"/>
  31453. <exception name="IOException" type="java.io.IOException"/>
  31454. </method>
  31455. <method name="endMap"
  31456. abstract="false" native="false" synchronized="false"
  31457. static="false" final="false" visibility="public"
  31458. deprecated="not deprecated">
  31459. <param name="tag" type="java.lang.String"/>
  31460. <exception name="IOException" type="java.io.IOException"/>
  31461. </method>
  31462. <doc>
  31463. <![CDATA[XML Deserializer.]]>
  31464. </doc>
  31465. </class>
  31466. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  31467. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  31468. <class name="XmlRecordOutput" extends="java.lang.Object"
  31469. abstract="false"
  31470. static="false" final="false" visibility="public"
  31471. deprecated="not deprecated">
  31472. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31473. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  31474. static="false" final="false" visibility="public"
  31475. deprecated="not deprecated">
  31476. <doc>
  31477. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  31478. </doc>
  31479. </constructor>
  31480. <method name="writeByte"
  31481. abstract="false" native="false" synchronized="false"
  31482. static="false" final="false" visibility="public"
  31483. deprecated="not deprecated">
  31484. <param name="b" type="byte"/>
  31485. <param name="tag" type="java.lang.String"/>
  31486. <exception name="IOException" type="java.io.IOException"/>
  31487. </method>
  31488. <method name="writeBool"
  31489. abstract="false" native="false" synchronized="false"
  31490. static="false" final="false" visibility="public"
  31491. deprecated="not deprecated">
  31492. <param name="b" type="boolean"/>
  31493. <param name="tag" type="java.lang.String"/>
  31494. <exception name="IOException" type="java.io.IOException"/>
  31495. </method>
  31496. <method name="writeInt"
  31497. abstract="false" native="false" synchronized="false"
  31498. static="false" final="false" visibility="public"
  31499. deprecated="not deprecated">
  31500. <param name="i" type="int"/>
  31501. <param name="tag" type="java.lang.String"/>
  31502. <exception name="IOException" type="java.io.IOException"/>
  31503. </method>
  31504. <method name="writeLong"
  31505. abstract="false" native="false" synchronized="false"
  31506. static="false" final="false" visibility="public"
  31507. deprecated="not deprecated">
  31508. <param name="l" type="long"/>
  31509. <param name="tag" type="java.lang.String"/>
  31510. <exception name="IOException" type="java.io.IOException"/>
  31511. </method>
  31512. <method name="writeFloat"
  31513. abstract="false" native="false" synchronized="false"
  31514. static="false" final="false" visibility="public"
  31515. deprecated="not deprecated">
  31516. <param name="f" type="float"/>
  31517. <param name="tag" type="java.lang.String"/>
  31518. <exception name="IOException" type="java.io.IOException"/>
  31519. </method>
  31520. <method name="writeDouble"
  31521. abstract="false" native="false" synchronized="false"
  31522. static="false" final="false" visibility="public"
  31523. deprecated="not deprecated">
  31524. <param name="d" type="double"/>
  31525. <param name="tag" type="java.lang.String"/>
  31526. <exception name="IOException" type="java.io.IOException"/>
  31527. </method>
  31528. <method name="writeString"
  31529. abstract="false" native="false" synchronized="false"
  31530. static="false" final="false" visibility="public"
  31531. deprecated="not deprecated">
  31532. <param name="s" type="java.lang.String"/>
  31533. <param name="tag" type="java.lang.String"/>
  31534. <exception name="IOException" type="java.io.IOException"/>
  31535. </method>
  31536. <method name="writeBuffer"
  31537. abstract="false" native="false" synchronized="false"
  31538. static="false" final="false" visibility="public"
  31539. deprecated="not deprecated">
  31540. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31541. <param name="tag" type="java.lang.String"/>
  31542. <exception name="IOException" type="java.io.IOException"/>
  31543. </method>
  31544. <method name="startRecord"
  31545. abstract="false" native="false" synchronized="false"
  31546. static="false" final="false" visibility="public"
  31547. deprecated="not deprecated">
  31548. <param name="r" type="org.apache.hadoop.record.Record"/>
  31549. <param name="tag" type="java.lang.String"/>
  31550. <exception name="IOException" type="java.io.IOException"/>
  31551. </method>
  31552. <method name="endRecord"
  31553. abstract="false" native="false" synchronized="false"
  31554. static="false" final="false" visibility="public"
  31555. deprecated="not deprecated">
  31556. <param name="r" type="org.apache.hadoop.record.Record"/>
  31557. <param name="tag" type="java.lang.String"/>
  31558. <exception name="IOException" type="java.io.IOException"/>
  31559. </method>
  31560. <method name="startVector"
  31561. abstract="false" native="false" synchronized="false"
  31562. static="false" final="false" visibility="public"
  31563. deprecated="not deprecated">
  31564. <param name="v" type="java.util.ArrayList"/>
  31565. <param name="tag" type="java.lang.String"/>
  31566. <exception name="IOException" type="java.io.IOException"/>
  31567. </method>
  31568. <method name="endVector"
  31569. abstract="false" native="false" synchronized="false"
  31570. static="false" final="false" visibility="public"
  31571. deprecated="not deprecated">
  31572. <param name="v" type="java.util.ArrayList"/>
  31573. <param name="tag" type="java.lang.String"/>
  31574. <exception name="IOException" type="java.io.IOException"/>
  31575. </method>
  31576. <method name="startMap"
  31577. abstract="false" native="false" synchronized="false"
  31578. static="false" final="false" visibility="public"
  31579. deprecated="not deprecated">
  31580. <param name="v" type="java.util.TreeMap"/>
  31581. <param name="tag" type="java.lang.String"/>
  31582. <exception name="IOException" type="java.io.IOException"/>
  31583. </method>
  31584. <method name="endMap"
  31585. abstract="false" native="false" synchronized="false"
  31586. static="false" final="false" visibility="public"
  31587. deprecated="not deprecated">
  31588. <param name="v" type="java.util.TreeMap"/>
  31589. <param name="tag" type="java.lang.String"/>
  31590. <exception name="IOException" type="java.io.IOException"/>
  31591. </method>
  31592. <doc>
  31593. <![CDATA[XML Serializer.]]>
  31594. </doc>
  31595. </class>
  31596. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  31597. </package>
  31598. <package name="org.apache.hadoop.record.compiler">
  31599. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  31600. <class name="CodeBuffer" extends="java.lang.Object"
  31601. abstract="false"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. <method name="toString" return="java.lang.String"
  31605. abstract="false" native="false" synchronized="false"
  31606. static="false" final="false" visibility="public"
  31607. deprecated="not deprecated">
  31608. </method>
  31609. <doc>
  31610. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  31611. </doc>
  31612. </class>
  31613. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  31614. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  31615. <class name="Consts" extends="java.lang.Object"
  31616. abstract="false"
  31617. static="false" final="false" visibility="public"
  31618. deprecated="not deprecated">
  31619. <field name="RIO_PREFIX" type="java.lang.String"
  31620. transient="false" volatile="false"
  31621. static="true" final="true" visibility="public"
  31622. deprecated="not deprecated">
  31623. </field>
  31624. <field name="RTI_VAR" type="java.lang.String"
  31625. transient="false" volatile="false"
  31626. static="true" final="true" visibility="public"
  31627. deprecated="not deprecated">
  31628. </field>
  31629. <field name="RTI_FILTER" type="java.lang.String"
  31630. transient="false" volatile="false"
  31631. static="true" final="true" visibility="public"
  31632. deprecated="not deprecated">
  31633. </field>
  31634. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  31635. transient="false" volatile="false"
  31636. static="true" final="true" visibility="public"
  31637. deprecated="not deprecated">
  31638. </field>
  31639. <field name="RECORD_OUTPUT" type="java.lang.String"
  31640. transient="false" volatile="false"
  31641. static="true" final="true" visibility="public"
  31642. deprecated="not deprecated">
  31643. </field>
  31644. <field name="RECORD_INPUT" type="java.lang.String"
  31645. transient="false" volatile="false"
  31646. static="true" final="true" visibility="public"
  31647. deprecated="not deprecated">
  31648. </field>
  31649. <field name="TAG" type="java.lang.String"
  31650. transient="false" volatile="false"
  31651. static="true" final="true" visibility="public"
  31652. deprecated="not deprecated">
  31653. </field>
  31654. <doc>
  31655. <![CDATA[const definitions for Record I/O compiler]]>
  31656. </doc>
  31657. </class>
  31658. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  31659. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  31660. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  31661. abstract="false"
  31662. static="false" final="false" visibility="public"
  31663. deprecated="not deprecated">
  31664. <constructor name="JBoolean"
  31665. static="false" final="false" visibility="public"
  31666. deprecated="not deprecated">
  31667. <doc>
  31668. <![CDATA[Creates a new instance of JBoolean]]>
  31669. </doc>
  31670. </constructor>
  31671. </class>
  31672. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  31673. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  31674. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  31675. abstract="false"
  31676. static="false" final="false" visibility="public"
  31677. deprecated="not deprecated">
  31678. <constructor name="JBuffer"
  31679. static="false" final="false" visibility="public"
  31680. deprecated="not deprecated">
  31681. <doc>
  31682. <![CDATA[Creates a new instance of JBuffer]]>
  31683. </doc>
  31684. </constructor>
  31685. <doc>
  31686. <![CDATA[Code generator for "buffer" type.]]>
  31687. </doc>
  31688. </class>
  31689. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  31690. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  31691. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  31692. abstract="false"
  31693. static="false" final="false" visibility="public"
  31694. deprecated="not deprecated">
  31695. <constructor name="JByte"
  31696. static="false" final="false" visibility="public"
  31697. deprecated="not deprecated">
  31698. </constructor>
  31699. <doc>
  31700. <![CDATA[Code generator for "byte" type.]]>
  31701. </doc>
  31702. </class>
  31703. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  31704. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  31705. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  31706. abstract="false"
  31707. static="false" final="false" visibility="public"
  31708. deprecated="not deprecated">
  31709. <constructor name="JDouble"
  31710. static="false" final="false" visibility="public"
  31711. deprecated="not deprecated">
  31712. <doc>
  31713. <![CDATA[Creates a new instance of JDouble]]>
  31714. </doc>
  31715. </constructor>
  31716. </class>
  31717. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  31718. <!-- start class org.apache.hadoop.record.compiler.JField -->
  31719. <class name="JField" extends="java.lang.Object"
  31720. abstract="false"
  31721. static="false" final="false" visibility="public"
  31722. deprecated="not deprecated">
  31723. <constructor name="JField" type="java.lang.String, java.lang.Object"
  31724. static="false" final="false" visibility="public"
  31725. deprecated="not deprecated">
  31726. <doc>
  31727. <![CDATA[Creates a new instance of JField]]>
  31728. </doc>
  31729. </constructor>
  31730. <doc>
  31731. <![CDATA[A thin wrappper around record field.]]>
  31732. </doc>
  31733. </class>
  31734. <!-- end class org.apache.hadoop.record.compiler.JField -->
  31735. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  31736. <class name="JFile" extends="java.lang.Object"
  31737. abstract="false"
  31738. static="false" final="false" visibility="public"
  31739. deprecated="not deprecated">
  31740. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  31741. static="false" final="false" visibility="public"
  31742. deprecated="not deprecated">
  31743. <doc>
  31744. <![CDATA[Creates a new instance of JFile
  31745. @param name possibly full pathname to the file
  31746. @param inclFiles included files (as JFile)
  31747. @param recList List of records defined within this file]]>
  31748. </doc>
  31749. </constructor>
  31750. <method name="genCode" return="int"
  31751. abstract="false" native="false" synchronized="false"
  31752. static="false" final="false" visibility="public"
  31753. deprecated="not deprecated">
  31754. <param name="language" type="java.lang.String"/>
  31755. <param name="destDir" type="java.lang.String"/>
  31756. <param name="options" type="java.util.ArrayList"/>
  31757. <exception name="IOException" type="java.io.IOException"/>
  31758. <doc>
  31759. <![CDATA[Generate record code in given language. Language should be all
  31760. lowercase.]]>
  31761. </doc>
  31762. </method>
  31763. <doc>
  31764. <![CDATA[Container for the Hadoop Record DDL.
  31765. The main components of the file are filename, list of included files,
  31766. and records defined in that file.]]>
  31767. </doc>
  31768. </class>
  31769. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  31770. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  31771. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  31772. abstract="false"
  31773. static="false" final="false" visibility="public"
  31774. deprecated="not deprecated">
  31775. <constructor name="JFloat"
  31776. static="false" final="false" visibility="public"
  31777. deprecated="not deprecated">
  31778. <doc>
  31779. <![CDATA[Creates a new instance of JFloat]]>
  31780. </doc>
  31781. </constructor>
  31782. </class>
  31783. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  31784. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  31785. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  31786. abstract="false"
  31787. static="false" final="false" visibility="public"
  31788. deprecated="not deprecated">
  31789. <constructor name="JInt"
  31790. static="false" final="false" visibility="public"
  31791. deprecated="not deprecated">
  31792. <doc>
  31793. <![CDATA[Creates a new instance of JInt]]>
  31794. </doc>
  31795. </constructor>
  31796. <doc>
  31797. <![CDATA[Code generator for "int" type]]>
  31798. </doc>
  31799. </class>
  31800. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  31801. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  31802. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  31803. abstract="false"
  31804. static="false" final="false" visibility="public"
  31805. deprecated="not deprecated">
  31806. <constructor name="JLong"
  31807. static="false" final="false" visibility="public"
  31808. deprecated="not deprecated">
  31809. <doc>
  31810. <![CDATA[Creates a new instance of JLong]]>
  31811. </doc>
  31812. </constructor>
  31813. <doc>
  31814. <![CDATA[Code generator for "long" type]]>
  31815. </doc>
  31816. </class>
  31817. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  31818. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  31819. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  31820. abstract="false"
  31821. static="false" final="false" visibility="public"
  31822. deprecated="not deprecated">
  31823. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  31824. static="false" final="false" visibility="public"
  31825. deprecated="not deprecated">
  31826. <doc>
  31827. <![CDATA[Creates a new instance of JMap]]>
  31828. </doc>
  31829. </constructor>
  31830. </class>
  31831. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  31832. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  31833. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  31834. abstract="false"
  31835. static="false" final="false" visibility="public"
  31836. deprecated="not deprecated">
  31837. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  31838. static="false" final="false" visibility="public"
  31839. deprecated="not deprecated">
  31840. <doc>
  31841. <![CDATA[Creates a new instance of JRecord]]>
  31842. </doc>
  31843. </constructor>
  31844. </class>
  31845. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  31846. <!-- start class org.apache.hadoop.record.compiler.JString -->
  31847. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  31848. abstract="false"
  31849. static="false" final="false" visibility="public"
  31850. deprecated="not deprecated">
  31851. <constructor name="JString"
  31852. static="false" final="false" visibility="public"
  31853. deprecated="not deprecated">
  31854. <doc>
  31855. <![CDATA[Creates a new instance of JString]]>
  31856. </doc>
  31857. </constructor>
  31858. </class>
  31859. <!-- end class org.apache.hadoop.record.compiler.JString -->
  31860. <!-- start class org.apache.hadoop.record.compiler.JType -->
  31861. <class name="JType" extends="java.lang.Object"
  31862. abstract="true"
  31863. static="false" final="false" visibility="public"
  31864. deprecated="not deprecated">
  31865. <constructor name="JType"
  31866. static="false" final="false" visibility="public"
  31867. deprecated="not deprecated">
  31868. </constructor>
  31869. <doc>
  31870. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  31871. </doc>
  31872. </class>
  31873. <!-- end class org.apache.hadoop.record.compiler.JType -->
  31874. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  31875. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  31876. abstract="false"
  31877. static="false" final="false" visibility="public"
  31878. deprecated="not deprecated">
  31879. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  31880. static="false" final="false" visibility="public"
  31881. deprecated="not deprecated">
  31882. <doc>
  31883. <![CDATA[Creates a new instance of JVector]]>
  31884. </doc>
  31885. </constructor>
  31886. </class>
  31887. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  31888. </package>
  31889. <package name="org.apache.hadoop.record.compiler.ant">
  31890. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  31891. <class name="RccTask" extends="org.apache.tools.ant.Task"
  31892. abstract="false"
  31893. static="false" final="false" visibility="public"
  31894. deprecated="not deprecated">
  31895. <constructor name="RccTask"
  31896. static="false" final="false" visibility="public"
  31897. deprecated="not deprecated">
  31898. <doc>
  31899. <![CDATA[Creates a new instance of RccTask]]>
  31900. </doc>
  31901. </constructor>
  31902. <method name="setLanguage"
  31903. abstract="false" native="false" synchronized="false"
  31904. static="false" final="false" visibility="public"
  31905. deprecated="not deprecated">
  31906. <param name="language" type="java.lang.String"/>
  31907. <doc>
  31908. <![CDATA[Sets the output language option
  31909. @param language "java"/"c++"]]>
  31910. </doc>
  31911. </method>
  31912. <method name="setFile"
  31913. abstract="false" native="false" synchronized="false"
  31914. static="false" final="false" visibility="public"
  31915. deprecated="not deprecated">
  31916. <param name="file" type="java.io.File"/>
  31917. <doc>
  31918. <![CDATA[Sets the record definition file attribute
  31919. @param file record definition file]]>
  31920. </doc>
  31921. </method>
  31922. <method name="setFailonerror"
  31923. abstract="false" native="false" synchronized="false"
  31924. static="false" final="false" visibility="public"
  31925. deprecated="not deprecated">
  31926. <param name="flag" type="boolean"/>
  31927. <doc>
  31928. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  31929. @param flag true will throw build exception in case of failure (default)]]>
  31930. </doc>
  31931. </method>
  31932. <method name="setDestdir"
  31933. abstract="false" native="false" synchronized="false"
  31934. static="false" final="false" visibility="public"
  31935. deprecated="not deprecated">
  31936. <param name="dir" type="java.io.File"/>
  31937. <doc>
  31938. <![CDATA[Sets directory where output files will be generated
  31939. @param dir output directory]]>
  31940. </doc>
  31941. </method>
  31942. <method name="addFileset"
  31943. abstract="false" native="false" synchronized="false"
  31944. static="false" final="false" visibility="public"
  31945. deprecated="not deprecated">
  31946. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  31947. <doc>
  31948. <![CDATA[Adds a fileset that can consist of one or more files
  31949. @param set Set of record definition files]]>
  31950. </doc>
  31951. </method>
  31952. <method name="execute"
  31953. abstract="false" native="false" synchronized="false"
  31954. static="false" final="false" visibility="public"
  31955. deprecated="not deprecated">
  31956. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  31957. <doc>
  31958. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  31959. </doc>
  31960. </method>
  31961. <doc>
  31962. <![CDATA[Hadoop record compiler ant Task
  31963. <p> This task takes the given record definition files and compiles them into
  31964. java or c++
  31965. files. It is then up to the user to compile the generated files.
  31966. <p> The task requires the <code>file</code> or the nested fileset element to be
  31967. specified. Optional attributes are <code>language</code> (set the output
  31968. language, default is "java"),
  31969. <code>destdir</code> (name of the destination directory for generated java/c++
  31970. code, default is ".") and <code>failonerror</code> (specifies error handling
  31971. behavior. default is true).
  31972. <p><h4>Usage</h4>
  31973. <pre>
  31974. &lt;recordcc
  31975. destdir="${basedir}/gensrc"
  31976. language="java"&gt;
  31977. &lt;fileset include="**\/*.jr" /&gt;
  31978. &lt;/recordcc&gt;
  31979. </pre>]]>
  31980. </doc>
  31981. </class>
  31982. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  31983. </package>
  31984. <package name="org.apache.hadoop.record.compiler.generated">
  31985. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  31986. <class name="ParseException" extends="java.lang.Exception"
  31987. abstract="false"
  31988. static="false" final="false" visibility="public"
  31989. deprecated="not deprecated">
  31990. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  31991. static="false" final="false" visibility="public"
  31992. deprecated="not deprecated">
  31993. <doc>
  31994. <![CDATA[This constructor is used by the method "generateParseException"
  31995. in the generated parser. Calling this constructor generates
  31996. a new object of this type with the fields "currentToken",
  31997. "expectedTokenSequences", and "tokenImage" set. The boolean
  31998. flag "specialConstructor" is also set to true to indicate that
  31999. this constructor was used to create this object.
  32000. This constructor calls its super class with the empty string
  32001. to force the "toString" method of parent class "Throwable" to
  32002. print the error message in the form:
  32003. ParseException: <result of getMessage>]]>
  32004. </doc>
  32005. </constructor>
  32006. <constructor name="ParseException"
  32007. static="false" final="false" visibility="public"
  32008. deprecated="not deprecated">
  32009. <doc>
  32010. <![CDATA[The following constructors are for use by you for whatever
  32011. purpose you can think of. Constructing the exception in this
  32012. manner makes the exception behave in the normal way - i.e., as
  32013. documented in the class "Throwable". The fields "errorToken",
  32014. "expectedTokenSequences", and "tokenImage" do not contain
  32015. relevant information. The JavaCC generated code does not use
  32016. these constructors.]]>
  32017. </doc>
  32018. </constructor>
  32019. <constructor name="ParseException" type="java.lang.String"
  32020. static="false" final="false" visibility="public"
  32021. deprecated="not deprecated">
  32022. </constructor>
  32023. <method name="getMessage" return="java.lang.String"
  32024. abstract="false" native="false" synchronized="false"
  32025. static="false" final="false" visibility="public"
  32026. deprecated="not deprecated">
  32027. <doc>
  32028. <![CDATA[This method has the standard behavior when this object has been
  32029. created using the standard constructors. Otherwise, it uses
  32030. "currentToken" and "expectedTokenSequences" to generate a parse
  32031. error message and returns it. If this object has been created
  32032. due to a parse error, and you do not catch it (it gets thrown
  32033. from the parser), then this method is called during the printing
  32034. of the final stack trace, and hence the correct error message
  32035. gets displayed.]]>
  32036. </doc>
  32037. </method>
  32038. <method name="add_escapes" return="java.lang.String"
  32039. abstract="false" native="false" synchronized="false"
  32040. static="false" final="false" visibility="protected"
  32041. deprecated="not deprecated">
  32042. <param name="str" type="java.lang.String"/>
  32043. <doc>
  32044. <![CDATA[Used to convert raw characters to their escaped version
  32045. when these raw version cannot be used as part of an ASCII
  32046. string literal.]]>
  32047. </doc>
  32048. </method>
  32049. <field name="specialConstructor" type="boolean"
  32050. transient="false" volatile="false"
  32051. static="false" final="false" visibility="protected"
  32052. deprecated="not deprecated">
  32053. <doc>
  32054. <![CDATA[This variable determines which constructor was used to create
  32055. this object and thereby affects the semantics of the
  32056. "getMessage" method (see below).]]>
  32057. </doc>
  32058. </field>
  32059. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32060. transient="false" volatile="false"
  32061. static="false" final="false" visibility="public"
  32062. deprecated="not deprecated">
  32063. <doc>
  32064. <![CDATA[This is the last token that has been consumed successfully. If
  32065. this object has been created due to a parse error, the token
  32066. followng this token will (therefore) be the first error token.]]>
  32067. </doc>
  32068. </field>
  32069. <field name="expectedTokenSequences" type="int[][]"
  32070. transient="false" volatile="false"
  32071. static="false" final="false" visibility="public"
  32072. deprecated="not deprecated">
  32073. <doc>
  32074. <![CDATA[Each entry in this array is an array of integers. Each array
  32075. of integers represents a sequence of tokens (by their ordinal
  32076. values) that is expected at this point of the parse.]]>
  32077. </doc>
  32078. </field>
  32079. <field name="tokenImage" type="java.lang.String[]"
  32080. transient="false" volatile="false"
  32081. static="false" final="false" visibility="public"
  32082. deprecated="not deprecated">
  32083. <doc>
  32084. <![CDATA[This is a reference to the "tokenImage" array of the generated
  32085. parser within which the parse error occurred. This array is
  32086. defined in the generated ...Constants interface.]]>
  32087. </doc>
  32088. </field>
  32089. <field name="eol" type="java.lang.String"
  32090. transient="false" volatile="false"
  32091. static="false" final="false" visibility="protected"
  32092. deprecated="not deprecated">
  32093. <doc>
  32094. <![CDATA[The end of line string for this machine.]]>
  32095. </doc>
  32096. </field>
  32097. <doc>
  32098. <![CDATA[This exception is thrown when parse errors are encountered.
  32099. You can explicitly create objects of this exception type by
  32100. calling the method generateParseException in the generated
  32101. parser.
  32102. You can modify this class to customize your error reporting
  32103. mechanisms so long as you retain the public fields.]]>
  32104. </doc>
  32105. </class>
  32106. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  32107. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  32108. <class name="Rcc" extends="java.lang.Object"
  32109. abstract="false"
  32110. static="false" final="false" visibility="public"
  32111. deprecated="not deprecated">
  32112. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  32113. <constructor name="Rcc" type="java.io.InputStream"
  32114. static="false" final="false" visibility="public"
  32115. deprecated="not deprecated">
  32116. </constructor>
  32117. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  32118. static="false" final="false" visibility="public"
  32119. deprecated="not deprecated">
  32120. </constructor>
  32121. <constructor name="Rcc" type="java.io.Reader"
  32122. static="false" final="false" visibility="public"
  32123. deprecated="not deprecated">
  32124. </constructor>
  32125. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  32126. static="false" final="false" visibility="public"
  32127. deprecated="not deprecated">
  32128. </constructor>
  32129. <method name="main"
  32130. abstract="false" native="false" synchronized="false"
  32131. static="true" final="false" visibility="public"
  32132. deprecated="not deprecated">
  32133. <param name="args" type="java.lang.String[]"/>
  32134. </method>
  32135. <method name="usage"
  32136. abstract="false" native="false" synchronized="false"
  32137. static="true" final="false" visibility="public"
  32138. deprecated="not deprecated">
  32139. </method>
  32140. <method name="driver" return="int"
  32141. abstract="false" native="false" synchronized="false"
  32142. static="true" final="false" visibility="public"
  32143. deprecated="not deprecated">
  32144. <param name="args" type="java.lang.String[]"/>
  32145. </method>
  32146. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  32147. abstract="false" native="false" synchronized="false"
  32148. static="false" final="true" visibility="public"
  32149. deprecated="not deprecated">
  32150. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32151. </method>
  32152. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  32153. abstract="false" native="false" synchronized="false"
  32154. static="false" final="true" visibility="public"
  32155. deprecated="not deprecated">
  32156. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32157. </method>
  32158. <method name="Module" return="java.util.ArrayList"
  32159. abstract="false" native="false" synchronized="false"
  32160. static="false" final="true" visibility="public"
  32161. deprecated="not deprecated">
  32162. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32163. </method>
  32164. <method name="ModuleName" return="java.lang.String"
  32165. abstract="false" native="false" synchronized="false"
  32166. static="false" final="true" visibility="public"
  32167. deprecated="not deprecated">
  32168. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32169. </method>
  32170. <method name="RecordList" return="java.util.ArrayList"
  32171. abstract="false" native="false" synchronized="false"
  32172. static="false" final="true" visibility="public"
  32173. deprecated="not deprecated">
  32174. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32175. </method>
  32176. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  32177. abstract="false" native="false" synchronized="false"
  32178. static="false" final="true" visibility="public"
  32179. deprecated="not deprecated">
  32180. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32181. </method>
  32182. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  32183. abstract="false" native="false" synchronized="false"
  32184. static="false" final="true" visibility="public"
  32185. deprecated="not deprecated">
  32186. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32187. </method>
  32188. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  32189. abstract="false" native="false" synchronized="false"
  32190. static="false" final="true" visibility="public"
  32191. deprecated="not deprecated">
  32192. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32193. </method>
  32194. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  32195. abstract="false" native="false" synchronized="false"
  32196. static="false" final="true" visibility="public"
  32197. deprecated="not deprecated">
  32198. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32199. </method>
  32200. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  32201. abstract="false" native="false" synchronized="false"
  32202. static="false" final="true" visibility="public"
  32203. deprecated="not deprecated">
  32204. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  32205. </method>
  32206. <method name="ReInit"
  32207. abstract="false" native="false" synchronized="false"
  32208. static="false" final="false" visibility="public"
  32209. deprecated="not deprecated">
  32210. <param name="stream" type="java.io.InputStream"/>
  32211. </method>
  32212. <method name="ReInit"
  32213. abstract="false" native="false" synchronized="false"
  32214. static="false" final="false" visibility="public"
  32215. deprecated="not deprecated">
  32216. <param name="stream" type="java.io.InputStream"/>
  32217. <param name="encoding" type="java.lang.String"/>
  32218. </method>
  32219. <method name="ReInit"
  32220. abstract="false" native="false" synchronized="false"
  32221. static="false" final="false" visibility="public"
  32222. deprecated="not deprecated">
  32223. <param name="stream" type="java.io.Reader"/>
  32224. </method>
  32225. <method name="ReInit"
  32226. abstract="false" native="false" synchronized="false"
  32227. static="false" final="false" visibility="public"
  32228. deprecated="not deprecated">
  32229. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  32230. </method>
  32231. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32232. abstract="false" native="false" synchronized="false"
  32233. static="false" final="true" visibility="public"
  32234. deprecated="not deprecated">
  32235. </method>
  32236. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32237. abstract="false" native="false" synchronized="false"
  32238. static="false" final="true" visibility="public"
  32239. deprecated="not deprecated">
  32240. <param name="index" type="int"/>
  32241. </method>
  32242. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  32243. abstract="false" native="false" synchronized="false"
  32244. static="false" final="false" visibility="public"
  32245. deprecated="not deprecated">
  32246. </method>
  32247. <method name="enable_tracing"
  32248. abstract="false" native="false" synchronized="false"
  32249. static="false" final="true" visibility="public"
  32250. deprecated="not deprecated">
  32251. </method>
  32252. <method name="disable_tracing"
  32253. abstract="false" native="false" synchronized="false"
  32254. static="false" final="true" visibility="public"
  32255. deprecated="not deprecated">
  32256. </method>
  32257. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  32258. transient="false" volatile="false"
  32259. static="false" final="false" visibility="public"
  32260. deprecated="not deprecated">
  32261. </field>
  32262. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  32263. transient="false" volatile="false"
  32264. static="false" final="false" visibility="public"
  32265. deprecated="not deprecated">
  32266. </field>
  32267. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  32268. transient="false" volatile="false"
  32269. static="false" final="false" visibility="public"
  32270. deprecated="not deprecated">
  32271. </field>
  32272. </class>
  32273. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  32274. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  32275. <interface name="RccConstants" abstract="true"
  32276. static="false" final="false" visibility="public"
  32277. deprecated="not deprecated">
  32278. <field name="EOF" type="int"
  32279. transient="false" volatile="false"
  32280. static="true" final="true" visibility="public"
  32281. deprecated="not deprecated">
  32282. </field>
  32283. <field name="MODULE_TKN" type="int"
  32284. transient="false" volatile="false"
  32285. static="true" final="true" visibility="public"
  32286. deprecated="not deprecated">
  32287. </field>
  32288. <field name="RECORD_TKN" type="int"
  32289. transient="false" volatile="false"
  32290. static="true" final="true" visibility="public"
  32291. deprecated="not deprecated">
  32292. </field>
  32293. <field name="INCLUDE_TKN" type="int"
  32294. transient="false" volatile="false"
  32295. static="true" final="true" visibility="public"
  32296. deprecated="not deprecated">
  32297. </field>
  32298. <field name="BYTE_TKN" type="int"
  32299. transient="false" volatile="false"
  32300. static="true" final="true" visibility="public"
  32301. deprecated="not deprecated">
  32302. </field>
  32303. <field name="BOOLEAN_TKN" type="int"
  32304. transient="false" volatile="false"
  32305. static="true" final="true" visibility="public"
  32306. deprecated="not deprecated">
  32307. </field>
  32308. <field name="INT_TKN" type="int"
  32309. transient="false" volatile="false"
  32310. static="true" final="true" visibility="public"
  32311. deprecated="not deprecated">
  32312. </field>
  32313. <field name="LONG_TKN" type="int"
  32314. transient="false" volatile="false"
  32315. static="true" final="true" visibility="public"
  32316. deprecated="not deprecated">
  32317. </field>
  32318. <field name="FLOAT_TKN" type="int"
  32319. transient="false" volatile="false"
  32320. static="true" final="true" visibility="public"
  32321. deprecated="not deprecated">
  32322. </field>
  32323. <field name="DOUBLE_TKN" type="int"
  32324. transient="false" volatile="false"
  32325. static="true" final="true" visibility="public"
  32326. deprecated="not deprecated">
  32327. </field>
  32328. <field name="USTRING_TKN" type="int"
  32329. transient="false" volatile="false"
  32330. static="true" final="true" visibility="public"
  32331. deprecated="not deprecated">
  32332. </field>
  32333. <field name="BUFFER_TKN" type="int"
  32334. transient="false" volatile="false"
  32335. static="true" final="true" visibility="public"
  32336. deprecated="not deprecated">
  32337. </field>
  32338. <field name="VECTOR_TKN" type="int"
  32339. transient="false" volatile="false"
  32340. static="true" final="true" visibility="public"
  32341. deprecated="not deprecated">
  32342. </field>
  32343. <field name="MAP_TKN" type="int"
  32344. transient="false" volatile="false"
  32345. static="true" final="true" visibility="public"
  32346. deprecated="not deprecated">
  32347. </field>
  32348. <field name="LBRACE_TKN" type="int"
  32349. transient="false" volatile="false"
  32350. static="true" final="true" visibility="public"
  32351. deprecated="not deprecated">
  32352. </field>
  32353. <field name="RBRACE_TKN" type="int"
  32354. transient="false" volatile="false"
  32355. static="true" final="true" visibility="public"
  32356. deprecated="not deprecated">
  32357. </field>
  32358. <field name="LT_TKN" type="int"
  32359. transient="false" volatile="false"
  32360. static="true" final="true" visibility="public"
  32361. deprecated="not deprecated">
  32362. </field>
  32363. <field name="GT_TKN" type="int"
  32364. transient="false" volatile="false"
  32365. static="true" final="true" visibility="public"
  32366. deprecated="not deprecated">
  32367. </field>
  32368. <field name="SEMICOLON_TKN" type="int"
  32369. transient="false" volatile="false"
  32370. static="true" final="true" visibility="public"
  32371. deprecated="not deprecated">
  32372. </field>
  32373. <field name="COMMA_TKN" type="int"
  32374. transient="false" volatile="false"
  32375. static="true" final="true" visibility="public"
  32376. deprecated="not deprecated">
  32377. </field>
  32378. <field name="DOT_TKN" type="int"
  32379. transient="false" volatile="false"
  32380. static="true" final="true" visibility="public"
  32381. deprecated="not deprecated">
  32382. </field>
  32383. <field name="CSTRING_TKN" type="int"
  32384. transient="false" volatile="false"
  32385. static="true" final="true" visibility="public"
  32386. deprecated="not deprecated">
  32387. </field>
  32388. <field name="IDENT_TKN" type="int"
  32389. transient="false" volatile="false"
  32390. static="true" final="true" visibility="public"
  32391. deprecated="not deprecated">
  32392. </field>
  32393. <field name="DEFAULT" type="int"
  32394. transient="false" volatile="false"
  32395. static="true" final="true" visibility="public"
  32396. deprecated="not deprecated">
  32397. </field>
  32398. <field name="WithinOneLineComment" type="int"
  32399. transient="false" volatile="false"
  32400. static="true" final="true" visibility="public"
  32401. deprecated="not deprecated">
  32402. </field>
  32403. <field name="WithinMultiLineComment" type="int"
  32404. transient="false" volatile="false"
  32405. static="true" final="true" visibility="public"
  32406. deprecated="not deprecated">
  32407. </field>
  32408. <field name="tokenImage" type="java.lang.String[]"
  32409. transient="false" volatile="false"
  32410. static="true" final="true" visibility="public"
  32411. deprecated="not deprecated">
  32412. </field>
  32413. </interface>
  32414. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  32415. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  32416. <class name="RccTokenManager" extends="java.lang.Object"
  32417. abstract="false"
  32418. static="false" final="false" visibility="public"
  32419. deprecated="not deprecated">
  32420. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  32421. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  32422. static="false" final="false" visibility="public"
  32423. deprecated="not deprecated">
  32424. </constructor>
  32425. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  32426. static="false" final="false" visibility="public"
  32427. deprecated="not deprecated">
  32428. </constructor>
  32429. <method name="setDebugStream"
  32430. abstract="false" native="false" synchronized="false"
  32431. static="false" final="false" visibility="public"
  32432. deprecated="not deprecated">
  32433. <param name="ds" type="java.io.PrintStream"/>
  32434. </method>
  32435. <method name="ReInit"
  32436. abstract="false" native="false" synchronized="false"
  32437. static="false" final="false" visibility="public"
  32438. deprecated="not deprecated">
  32439. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  32440. </method>
  32441. <method name="ReInit"
  32442. abstract="false" native="false" synchronized="false"
  32443. static="false" final="false" visibility="public"
  32444. deprecated="not deprecated">
  32445. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  32446. <param name="lexState" type="int"/>
  32447. </method>
  32448. <method name="SwitchTo"
  32449. abstract="false" native="false" synchronized="false"
  32450. static="false" final="false" visibility="public"
  32451. deprecated="not deprecated">
  32452. <param name="lexState" type="int"/>
  32453. </method>
  32454. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32455. abstract="false" native="false" synchronized="false"
  32456. static="false" final="false" visibility="protected"
  32457. deprecated="not deprecated">
  32458. </method>
  32459. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32460. abstract="false" native="false" synchronized="false"
  32461. static="false" final="false" visibility="public"
  32462. deprecated="not deprecated">
  32463. </method>
  32464. <field name="debugStream" type="java.io.PrintStream"
  32465. transient="false" volatile="false"
  32466. static="false" final="false" visibility="public"
  32467. deprecated="not deprecated">
  32468. </field>
  32469. <field name="jjstrLiteralImages" type="java.lang.String[]"
  32470. transient="false" volatile="false"
  32471. static="true" final="true" visibility="public"
  32472. deprecated="not deprecated">
  32473. </field>
  32474. <field name="lexStateNames" type="java.lang.String[]"
  32475. transient="false" volatile="false"
  32476. static="true" final="true" visibility="public"
  32477. deprecated="not deprecated">
  32478. </field>
  32479. <field name="jjnewLexState" type="int[]"
  32480. transient="false" volatile="false"
  32481. static="true" final="true" visibility="public"
  32482. deprecated="not deprecated">
  32483. </field>
  32484. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  32485. transient="false" volatile="false"
  32486. static="false" final="false" visibility="protected"
  32487. deprecated="not deprecated">
  32488. </field>
  32489. <field name="curChar" type="char"
  32490. transient="false" volatile="false"
  32491. static="false" final="false" visibility="protected"
  32492. deprecated="not deprecated">
  32493. </field>
  32494. </class>
  32495. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  32496. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32497. <class name="SimpleCharStream" extends="java.lang.Object"
  32498. abstract="false"
  32499. static="false" final="false" visibility="public"
  32500. deprecated="not deprecated">
  32501. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  32502. static="false" final="false" visibility="public"
  32503. deprecated="not deprecated">
  32504. </constructor>
  32505. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  32506. static="false" final="false" visibility="public"
  32507. deprecated="not deprecated">
  32508. </constructor>
  32509. <constructor name="SimpleCharStream" type="java.io.Reader"
  32510. static="false" final="false" visibility="public"
  32511. deprecated="not deprecated">
  32512. </constructor>
  32513. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  32514. static="false" final="false" visibility="public"
  32515. deprecated="not deprecated">
  32516. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32517. </constructor>
  32518. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  32519. static="false" final="false" visibility="public"
  32520. deprecated="not deprecated">
  32521. </constructor>
  32522. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  32523. static="false" final="false" visibility="public"
  32524. deprecated="not deprecated">
  32525. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32526. </constructor>
  32527. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  32528. static="false" final="false" visibility="public"
  32529. deprecated="not deprecated">
  32530. </constructor>
  32531. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  32532. static="false" final="false" visibility="public"
  32533. deprecated="not deprecated">
  32534. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32535. </constructor>
  32536. <constructor name="SimpleCharStream" type="java.io.InputStream"
  32537. static="false" final="false" visibility="public"
  32538. deprecated="not deprecated">
  32539. </constructor>
  32540. <method name="setTabSize"
  32541. abstract="false" native="false" synchronized="false"
  32542. static="false" final="false" visibility="protected"
  32543. deprecated="not deprecated">
  32544. <param name="i" type="int"/>
  32545. </method>
  32546. <method name="getTabSize" return="int"
  32547. abstract="false" native="false" synchronized="false"
  32548. static="false" final="false" visibility="protected"
  32549. deprecated="not deprecated">
  32550. <param name="i" type="int"/>
  32551. </method>
  32552. <method name="ExpandBuff"
  32553. abstract="false" native="false" synchronized="false"
  32554. static="false" final="false" visibility="protected"
  32555. deprecated="not deprecated">
  32556. <param name="wrapAround" type="boolean"/>
  32557. </method>
  32558. <method name="FillBuff"
  32559. abstract="false" native="false" synchronized="false"
  32560. static="false" final="false" visibility="protected"
  32561. deprecated="not deprecated">
  32562. <exception name="IOException" type="java.io.IOException"/>
  32563. </method>
  32564. <method name="BeginToken" return="char"
  32565. abstract="false" native="false" synchronized="false"
  32566. static="false" final="false" visibility="public"
  32567. deprecated="not deprecated">
  32568. <exception name="IOException" type="java.io.IOException"/>
  32569. </method>
  32570. <method name="UpdateLineColumn"
  32571. abstract="false" native="false" synchronized="false"
  32572. static="false" final="false" visibility="protected"
  32573. deprecated="not deprecated">
  32574. <param name="c" type="char"/>
  32575. </method>
  32576. <method name="readChar" return="char"
  32577. abstract="false" native="false" synchronized="false"
  32578. static="false" final="false" visibility="public"
  32579. deprecated="not deprecated">
  32580. <exception name="IOException" type="java.io.IOException"/>
  32581. </method>
  32582. <method name="getEndColumn" return="int"
  32583. abstract="false" native="false" synchronized="false"
  32584. static="false" final="false" visibility="public"
  32585. deprecated="not deprecated">
  32586. </method>
  32587. <method name="getEndLine" return="int"
  32588. abstract="false" native="false" synchronized="false"
  32589. static="false" final="false" visibility="public"
  32590. deprecated="not deprecated">
  32591. </method>
  32592. <method name="getBeginColumn" return="int"
  32593. abstract="false" native="false" synchronized="false"
  32594. static="false" final="false" visibility="public"
  32595. deprecated="not deprecated">
  32596. </method>
  32597. <method name="getBeginLine" return="int"
  32598. abstract="false" native="false" synchronized="false"
  32599. static="false" final="false" visibility="public"
  32600. deprecated="not deprecated">
  32601. </method>
  32602. <method name="backup"
  32603. abstract="false" native="false" synchronized="false"
  32604. static="false" final="false" visibility="public"
  32605. deprecated="not deprecated">
  32606. <param name="amount" type="int"/>
  32607. </method>
  32608. <method name="ReInit"
  32609. abstract="false" native="false" synchronized="false"
  32610. static="false" final="false" visibility="public"
  32611. deprecated="not deprecated">
  32612. <param name="dstream" type="java.io.Reader"/>
  32613. <param name="startline" type="int"/>
  32614. <param name="startcolumn" type="int"/>
  32615. <param name="buffersize" type="int"/>
  32616. </method>
  32617. <method name="ReInit"
  32618. abstract="false" native="false" synchronized="false"
  32619. static="false" final="false" visibility="public"
  32620. deprecated="not deprecated">
  32621. <param name="dstream" type="java.io.Reader"/>
  32622. <param name="startline" type="int"/>
  32623. <param name="startcolumn" type="int"/>
  32624. </method>
  32625. <method name="ReInit"
  32626. abstract="false" native="false" synchronized="false"
  32627. static="false" final="false" visibility="public"
  32628. deprecated="not deprecated">
  32629. <param name="dstream" type="java.io.Reader"/>
  32630. </method>
  32631. <method name="ReInit"
  32632. abstract="false" native="false" synchronized="false"
  32633. static="false" final="false" visibility="public"
  32634. deprecated="not deprecated">
  32635. <param name="dstream" type="java.io.InputStream"/>
  32636. <param name="encoding" type="java.lang.String"/>
  32637. <param name="startline" type="int"/>
  32638. <param name="startcolumn" type="int"/>
  32639. <param name="buffersize" type="int"/>
  32640. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32641. </method>
  32642. <method name="ReInit"
  32643. abstract="false" native="false" synchronized="false"
  32644. static="false" final="false" visibility="public"
  32645. deprecated="not deprecated">
  32646. <param name="dstream" type="java.io.InputStream"/>
  32647. <param name="startline" type="int"/>
  32648. <param name="startcolumn" type="int"/>
  32649. <param name="buffersize" type="int"/>
  32650. </method>
  32651. <method name="ReInit"
  32652. abstract="false" native="false" synchronized="false"
  32653. static="false" final="false" visibility="public"
  32654. deprecated="not deprecated">
  32655. <param name="dstream" type="java.io.InputStream"/>
  32656. <param name="encoding" type="java.lang.String"/>
  32657. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32658. </method>
  32659. <method name="ReInit"
  32660. abstract="false" native="false" synchronized="false"
  32661. static="false" final="false" visibility="public"
  32662. deprecated="not deprecated">
  32663. <param name="dstream" type="java.io.InputStream"/>
  32664. </method>
  32665. <method name="ReInit"
  32666. abstract="false" native="false" synchronized="false"
  32667. static="false" final="false" visibility="public"
  32668. deprecated="not deprecated">
  32669. <param name="dstream" type="java.io.InputStream"/>
  32670. <param name="encoding" type="java.lang.String"/>
  32671. <param name="startline" type="int"/>
  32672. <param name="startcolumn" type="int"/>
  32673. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32674. </method>
  32675. <method name="ReInit"
  32676. abstract="false" native="false" synchronized="false"
  32677. static="false" final="false" visibility="public"
  32678. deprecated="not deprecated">
  32679. <param name="dstream" type="java.io.InputStream"/>
  32680. <param name="startline" type="int"/>
  32681. <param name="startcolumn" type="int"/>
  32682. </method>
  32683. <method name="GetImage" return="java.lang.String"
  32684. abstract="false" native="false" synchronized="false"
  32685. static="false" final="false" visibility="public"
  32686. deprecated="not deprecated">
  32687. </method>
  32688. <method name="GetSuffix" return="char[]"
  32689. abstract="false" native="false" synchronized="false"
  32690. static="false" final="false" visibility="public"
  32691. deprecated="not deprecated">
  32692. <param name="len" type="int"/>
  32693. </method>
  32694. <method name="Done"
  32695. abstract="false" native="false" synchronized="false"
  32696. static="false" final="false" visibility="public"
  32697. deprecated="not deprecated">
  32698. </method>
  32699. <method name="adjustBeginLineColumn"
  32700. abstract="false" native="false" synchronized="false"
  32701. static="false" final="false" visibility="public"
  32702. deprecated="not deprecated">
  32703. <param name="newLine" type="int"/>
  32704. <param name="newCol" type="int"/>
  32705. <doc>
  32706. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  32707. </doc>
  32708. </method>
  32709. <field name="staticFlag" type="boolean"
  32710. transient="false" volatile="false"
  32711. static="true" final="true" visibility="public"
  32712. deprecated="not deprecated">
  32713. </field>
  32714. <field name="bufpos" type="int"
  32715. transient="false" volatile="false"
  32716. static="false" final="false" visibility="public"
  32717. deprecated="not deprecated">
  32718. </field>
  32719. <field name="bufline" type="int[]"
  32720. transient="false" volatile="false"
  32721. static="false" final="false" visibility="protected"
  32722. deprecated="not deprecated">
  32723. </field>
  32724. <field name="bufcolumn" type="int[]"
  32725. transient="false" volatile="false"
  32726. static="false" final="false" visibility="protected"
  32727. deprecated="not deprecated">
  32728. </field>
  32729. <field name="column" type="int"
  32730. transient="false" volatile="false"
  32731. static="false" final="false" visibility="protected"
  32732. deprecated="not deprecated">
  32733. </field>
  32734. <field name="line" type="int"
  32735. transient="false" volatile="false"
  32736. static="false" final="false" visibility="protected"
  32737. deprecated="not deprecated">
  32738. </field>
  32739. <field name="prevCharIsCR" type="boolean"
  32740. transient="false" volatile="false"
  32741. static="false" final="false" visibility="protected"
  32742. deprecated="not deprecated">
  32743. </field>
  32744. <field name="prevCharIsLF" type="boolean"
  32745. transient="false" volatile="false"
  32746. static="false" final="false" visibility="protected"
  32747. deprecated="not deprecated">
  32748. </field>
  32749. <field name="inputStream" type="java.io.Reader"
  32750. transient="false" volatile="false"
  32751. static="false" final="false" visibility="protected"
  32752. deprecated="not deprecated">
  32753. </field>
  32754. <field name="buffer" type="char[]"
  32755. transient="false" volatile="false"
  32756. static="false" final="false" visibility="protected"
  32757. deprecated="not deprecated">
  32758. </field>
  32759. <field name="maxNextCharInd" type="int"
  32760. transient="false" volatile="false"
  32761. static="false" final="false" visibility="protected"
  32762. deprecated="not deprecated">
  32763. </field>
  32764. <field name="inBuf" type="int"
  32765. transient="false" volatile="false"
  32766. static="false" final="false" visibility="protected"
  32767. deprecated="not deprecated">
  32768. </field>
  32769. <field name="tabSize" type="int"
  32770. transient="false" volatile="false"
  32771. static="false" final="false" visibility="protected"
  32772. deprecated="not deprecated">
  32773. </field>
  32774. <doc>
  32775. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  32776. contain only ASCII characters (without unicode processing).]]>
  32777. </doc>
  32778. </class>
  32779. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32780. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  32781. <class name="Token" extends="java.lang.Object"
  32782. abstract="false"
  32783. static="false" final="false" visibility="public"
  32784. deprecated="not deprecated">
  32785. <constructor name="Token"
  32786. static="false" final="false" visibility="public"
  32787. deprecated="not deprecated">
  32788. </constructor>
  32789. <method name="toString" return="java.lang.String"
  32790. abstract="false" native="false" synchronized="false"
  32791. static="false" final="false" visibility="public"
  32792. deprecated="not deprecated">
  32793. <doc>
  32794. <![CDATA[Returns the image.]]>
  32795. </doc>
  32796. </method>
  32797. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32798. abstract="false" native="false" synchronized="false"
  32799. static="true" final="true" visibility="public"
  32800. deprecated="not deprecated">
  32801. <param name="ofKind" type="int"/>
  32802. <doc>
  32803. <![CDATA[Returns a new Token object, by default. However, if you want, you
  32804. can create and return subclass objects based on the value of ofKind.
  32805. Simply add the cases to the switch for all those special cases.
  32806. For example, if you have a subclass of Token called IDToken that
  32807. you want to create if ofKind is ID, simlpy add something like :
  32808. case MyParserConstants.ID : return new IDToken();
  32809. to the following switch statement. Then you can cast matchedToken
  32810. variable to the appropriate type and use it in your lexical actions.]]>
  32811. </doc>
  32812. </method>
  32813. <field name="kind" type="int"
  32814. transient="false" volatile="false"
  32815. static="false" final="false" visibility="public"
  32816. deprecated="not deprecated">
  32817. <doc>
  32818. <![CDATA[An integer that describes the kind of this token. This numbering
  32819. system is determined by JavaCCParser, and a table of these numbers is
  32820. stored in the file ...Constants.java.]]>
  32821. </doc>
  32822. </field>
  32823. <field name="beginLine" type="int"
  32824. transient="false" volatile="false"
  32825. static="false" final="false" visibility="public"
  32826. deprecated="not deprecated">
  32827. <doc>
  32828. <![CDATA[beginLine and beginColumn describe the position of the first character
  32829. of this token; endLine and endColumn describe the position of the
  32830. last character of this token.]]>
  32831. </doc>
  32832. </field>
  32833. <field name="beginColumn" type="int"
  32834. transient="false" volatile="false"
  32835. static="false" final="false" visibility="public"
  32836. deprecated="not deprecated">
  32837. <doc>
  32838. <![CDATA[beginLine and beginColumn describe the position of the first character
  32839. of this token; endLine and endColumn describe the position of the
  32840. last character of this token.]]>
  32841. </doc>
  32842. </field>
  32843. <field name="endLine" type="int"
  32844. transient="false" volatile="false"
  32845. static="false" final="false" visibility="public"
  32846. deprecated="not deprecated">
  32847. <doc>
  32848. <![CDATA[beginLine and beginColumn describe the position of the first character
  32849. of this token; endLine and endColumn describe the position of the
  32850. last character of this token.]]>
  32851. </doc>
  32852. </field>
  32853. <field name="endColumn" type="int"
  32854. transient="false" volatile="false"
  32855. static="false" final="false" visibility="public"
  32856. deprecated="not deprecated">
  32857. <doc>
  32858. <![CDATA[beginLine and beginColumn describe the position of the first character
  32859. of this token; endLine and endColumn describe the position of the
  32860. last character of this token.]]>
  32861. </doc>
  32862. </field>
  32863. <field name="image" type="java.lang.String"
  32864. transient="false" volatile="false"
  32865. static="false" final="false" visibility="public"
  32866. deprecated="not deprecated">
  32867. <doc>
  32868. <![CDATA[The string image of the token.]]>
  32869. </doc>
  32870. </field>
  32871. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  32872. transient="false" volatile="false"
  32873. static="false" final="false" visibility="public"
  32874. deprecated="not deprecated">
  32875. <doc>
  32876. <![CDATA[A reference to the next regular (non-special) token from the input
  32877. stream. If this is the last token from the input stream, or if the
  32878. token manager has not read tokens beyond this one, this field is
  32879. set to null. This is true only if this token is also a regular
  32880. token. Otherwise, see below for a description of the contents of
  32881. this field.]]>
  32882. </doc>
  32883. </field>
  32884. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32885. transient="false" volatile="false"
  32886. static="false" final="false" visibility="public"
  32887. deprecated="not deprecated">
  32888. <doc>
  32889. <![CDATA[This field is used to access special tokens that occur prior to this
  32890. token, but after the immediately preceding regular (non-special) token.
  32891. If there are no such special tokens, this field is set to null.
  32892. When there are more than one such special token, this field refers
  32893. to the last of these special tokens, which in turn refers to the next
  32894. previous special token through its specialToken field, and so on
  32895. until the first special token (whose specialToken field is null).
  32896. The next fields of special tokens refer to other special tokens that
  32897. immediately follow it (without an intervening regular token). If there
  32898. is no such token, this field is null.]]>
  32899. </doc>
  32900. </field>
  32901. <doc>
  32902. <![CDATA[Describes the input token stream.]]>
  32903. </doc>
  32904. </class>
  32905. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  32906. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32907. <class name="TokenMgrError" extends="java.lang.Error"
  32908. abstract="false"
  32909. static="false" final="false" visibility="public"
  32910. deprecated="not deprecated">
  32911. <constructor name="TokenMgrError"
  32912. static="false" final="false" visibility="public"
  32913. deprecated="not deprecated">
  32914. </constructor>
  32915. <constructor name="TokenMgrError" type="java.lang.String, int"
  32916. static="false" final="false" visibility="public"
  32917. deprecated="not deprecated">
  32918. </constructor>
  32919. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  32920. static="false" final="false" visibility="public"
  32921. deprecated="not deprecated">
  32922. </constructor>
  32923. <method name="addEscapes" return="java.lang.String"
  32924. abstract="false" native="false" synchronized="false"
  32925. static="true" final="true" visibility="protected"
  32926. deprecated="not deprecated">
  32927. <param name="str" type="java.lang.String"/>
  32928. <doc>
  32929. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  32930. equivalents in the given string]]>
  32931. </doc>
  32932. </method>
  32933. <method name="LexicalError" return="java.lang.String"
  32934. abstract="false" native="false" synchronized="false"
  32935. static="true" final="false" visibility="protected"
  32936. deprecated="not deprecated">
  32937. <param name="EOFSeen" type="boolean"/>
  32938. <param name="lexState" type="int"/>
  32939. <param name="errorLine" type="int"/>
  32940. <param name="errorColumn" type="int"/>
  32941. <param name="errorAfter" type="java.lang.String"/>
  32942. <param name="curChar" type="char"/>
  32943. <doc>
  32944. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  32945. token manager to indicate a lexical error.
  32946. Parameters :
  32947. EOFSeen : indicates if EOF caused the lexicl error
  32948. curLexState : lexical state in which this error occured
  32949. errorLine : line number when the error occured
  32950. errorColumn : column number when the error occured
  32951. errorAfter : prefix that was seen before this error occured
  32952. curchar : the offending character
  32953. Note: You can customize the lexical error message by modifying this method.]]>
  32954. </doc>
  32955. </method>
  32956. <method name="getMessage" return="java.lang.String"
  32957. abstract="false" native="false" synchronized="false"
  32958. static="false" final="false" visibility="public"
  32959. deprecated="not deprecated">
  32960. <doc>
  32961. <![CDATA[You can also modify the body of this method to customize your error messages.
  32962. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  32963. of end-users concern, so you can return something like :
  32964. "Internal Error : Please file a bug report .... "
  32965. from this method for such cases in the release version of your parser.]]>
  32966. </doc>
  32967. </method>
  32968. </class>
  32969. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32970. </package>
  32971. <package name="org.apache.hadoop.record.meta">
  32972. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32973. <class name="FieldTypeInfo" extends="java.lang.Object"
  32974. abstract="false"
  32975. static="false" final="false" visibility="public"
  32976. deprecated="not deprecated">
  32977. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32978. abstract="false" native="false" synchronized="false"
  32979. static="false" final="false" visibility="public"
  32980. deprecated="not deprecated">
  32981. <doc>
  32982. <![CDATA[get the field's TypeID object]]>
  32983. </doc>
  32984. </method>
  32985. <method name="getFieldID" return="java.lang.String"
  32986. abstract="false" native="false" synchronized="false"
  32987. static="false" final="false" visibility="public"
  32988. deprecated="not deprecated">
  32989. <doc>
  32990. <![CDATA[get the field's id (name)]]>
  32991. </doc>
  32992. </method>
  32993. <method name="equals" return="boolean"
  32994. abstract="false" native="false" synchronized="false"
  32995. static="false" final="false" visibility="public"
  32996. deprecated="not deprecated">
  32997. <param name="o" type="java.lang.Object"/>
  32998. <doc>
  32999. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  33000. </doc>
  33001. </method>
  33002. <method name="hashCode" return="int"
  33003. abstract="false" native="false" synchronized="false"
  33004. static="false" final="false" visibility="public"
  33005. deprecated="not deprecated">
  33006. <doc>
  33007. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33008. be used as a hashmap key]]>
  33009. </doc>
  33010. </method>
  33011. <method name="equals" return="boolean"
  33012. abstract="false" native="false" synchronized="false"
  33013. static="false" final="false" visibility="public"
  33014. deprecated="not deprecated">
  33015. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  33016. </method>
  33017. <doc>
  33018. <![CDATA[Represents a type information for a field, which is made up of its
  33019. ID (name) and its type (a TypeID object).]]>
  33020. </doc>
  33021. </class>
  33022. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  33023. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  33024. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  33025. abstract="false"
  33026. static="false" final="false" visibility="public"
  33027. deprecated="not deprecated">
  33028. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  33029. static="false" final="false" visibility="public"
  33030. deprecated="not deprecated">
  33031. </constructor>
  33032. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33033. abstract="false" native="false" synchronized="false"
  33034. static="false" final="false" visibility="public"
  33035. deprecated="not deprecated">
  33036. <doc>
  33037. <![CDATA[get the TypeID of the map's key element]]>
  33038. </doc>
  33039. </method>
  33040. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33041. abstract="false" native="false" synchronized="false"
  33042. static="false" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. <doc>
  33045. <![CDATA[get the TypeID of the map's value element]]>
  33046. </doc>
  33047. </method>
  33048. <method name="equals" return="boolean"
  33049. abstract="false" native="false" synchronized="false"
  33050. static="false" final="false" visibility="public"
  33051. deprecated="not deprecated">
  33052. <param name="o" type="java.lang.Object"/>
  33053. <doc>
  33054. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  33055. same type]]>
  33056. </doc>
  33057. </method>
  33058. <method name="hashCode" return="int"
  33059. abstract="false" native="false" synchronized="false"
  33060. static="false" final="false" visibility="public"
  33061. deprecated="not deprecated">
  33062. <doc>
  33063. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33064. be used as a hashmap key]]>
  33065. </doc>
  33066. </method>
  33067. <doc>
  33068. <![CDATA[Represents typeID for a Map]]>
  33069. </doc>
  33070. </class>
  33071. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  33072. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  33073. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  33074. abstract="false"
  33075. static="false" final="false" visibility="public"
  33076. deprecated="not deprecated">
  33077. <constructor name="RecordTypeInfo"
  33078. static="false" final="false" visibility="public"
  33079. deprecated="not deprecated">
  33080. <doc>
  33081. <![CDATA[Create an empty RecordTypeInfo object.]]>
  33082. </doc>
  33083. </constructor>
  33084. <constructor name="RecordTypeInfo" type="java.lang.String"
  33085. static="false" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. <doc>
  33088. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  33089. @param name Name of the record]]>
  33090. </doc>
  33091. </constructor>
  33092. <method name="getName" return="java.lang.String"
  33093. abstract="false" native="false" synchronized="false"
  33094. static="false" final="false" visibility="public"
  33095. deprecated="not deprecated">
  33096. <doc>
  33097. <![CDATA[return the name of the record]]>
  33098. </doc>
  33099. </method>
  33100. <method name="setName"
  33101. abstract="false" native="false" synchronized="false"
  33102. static="false" final="false" visibility="public"
  33103. deprecated="not deprecated">
  33104. <param name="name" type="java.lang.String"/>
  33105. <doc>
  33106. <![CDATA[set the name of the record]]>
  33107. </doc>
  33108. </method>
  33109. <method name="addField"
  33110. abstract="false" native="false" synchronized="false"
  33111. static="false" final="false" visibility="public"
  33112. deprecated="not deprecated">
  33113. <param name="fieldName" type="java.lang.String"/>
  33114. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  33115. <doc>
  33116. <![CDATA[Add a field.
  33117. @param fieldName Name of the field
  33118. @param tid Type ID of the field]]>
  33119. </doc>
  33120. </method>
  33121. <method name="getFieldTypeInfos" return="java.util.Collection"
  33122. abstract="false" native="false" synchronized="false"
  33123. static="false" final="false" visibility="public"
  33124. deprecated="not deprecated">
  33125. <doc>
  33126. <![CDATA[Return a collection of field type infos]]>
  33127. </doc>
  33128. </method>
  33129. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  33130. abstract="false" native="false" synchronized="false"
  33131. static="false" final="false" visibility="public"
  33132. deprecated="not deprecated">
  33133. <param name="name" type="java.lang.String"/>
  33134. <doc>
  33135. <![CDATA[Return the type info of a nested record. We only consider nesting
  33136. to one level.
  33137. @param name Name of the nested record]]>
  33138. </doc>
  33139. </method>
  33140. <method name="serialize"
  33141. abstract="false" native="false" synchronized="false"
  33142. static="false" final="false" visibility="public"
  33143. deprecated="not deprecated">
  33144. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  33145. <param name="tag" type="java.lang.String"/>
  33146. <exception name="IOException" type="java.io.IOException"/>
  33147. <doc>
  33148. <![CDATA[Serialize the type information for a record]]>
  33149. </doc>
  33150. </method>
  33151. <method name="deserialize"
  33152. abstract="false" native="false" synchronized="false"
  33153. static="false" final="false" visibility="public"
  33154. deprecated="not deprecated">
  33155. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  33156. <param name="tag" type="java.lang.String"/>
  33157. <exception name="IOException" type="java.io.IOException"/>
  33158. <doc>
  33159. <![CDATA[Deserialize the type information for a record]]>
  33160. </doc>
  33161. </method>
  33162. <method name="compareTo" return="int"
  33163. abstract="false" native="false" synchronized="false"
  33164. static="false" final="false" visibility="public"
  33165. deprecated="not deprecated">
  33166. <param name="peer_" type="java.lang.Object"/>
  33167. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  33168. <doc>
  33169. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  33170. for anything besides de/serializing.
  33171. So we always throw an exception.
  33172. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  33173. </doc>
  33174. </method>
  33175. <doc>
  33176. <![CDATA[A record's Type Information object which can read/write itself.
  33177. Type information for a record comprises metadata about the record,
  33178. as well as a collection of type information for each field in the record.]]>
  33179. </doc>
  33180. </class>
  33181. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  33182. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  33183. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  33184. abstract="false"
  33185. static="false" final="false" visibility="public"
  33186. deprecated="not deprecated">
  33187. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  33188. static="false" final="false" visibility="public"
  33189. deprecated="not deprecated">
  33190. <doc>
  33191. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  33192. </doc>
  33193. </constructor>
  33194. <method name="getFieldTypeInfos" return="java.util.Collection"
  33195. abstract="false" native="false" synchronized="false"
  33196. static="false" final="false" visibility="public"
  33197. deprecated="not deprecated">
  33198. </method>
  33199. <doc>
  33200. <![CDATA[Represents typeID for a struct]]>
  33201. </doc>
  33202. </class>
  33203. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  33204. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  33205. <class name="TypeID" extends="java.lang.Object"
  33206. abstract="false"
  33207. static="false" final="false" visibility="public"
  33208. deprecated="not deprecated">
  33209. <method name="getTypeVal" return="byte"
  33210. abstract="false" native="false" synchronized="false"
  33211. static="false" final="false" visibility="public"
  33212. deprecated="not deprecated">
  33213. <doc>
  33214. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  33215. </doc>
  33216. </method>
  33217. <method name="equals" return="boolean"
  33218. abstract="false" native="false" synchronized="false"
  33219. static="false" final="false" visibility="public"
  33220. deprecated="not deprecated">
  33221. <param name="o" type="java.lang.Object"/>
  33222. <doc>
  33223. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  33224. </doc>
  33225. </method>
  33226. <method name="hashCode" return="int"
  33227. abstract="false" native="false" synchronized="false"
  33228. static="false" final="false" visibility="public"
  33229. deprecated="not deprecated">
  33230. <doc>
  33231. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33232. be used as a hashmap key]]>
  33233. </doc>
  33234. </method>
  33235. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33236. transient="false" volatile="false"
  33237. static="true" final="true" visibility="public"
  33238. deprecated="not deprecated">
  33239. <doc>
  33240. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  33241. </doc>
  33242. </field>
  33243. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33244. transient="false" volatile="false"
  33245. static="true" final="true" visibility="public"
  33246. deprecated="not deprecated">
  33247. </field>
  33248. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33249. transient="false" volatile="false"
  33250. static="true" final="true" visibility="public"
  33251. deprecated="not deprecated">
  33252. </field>
  33253. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33254. transient="false" volatile="false"
  33255. static="true" final="true" visibility="public"
  33256. deprecated="not deprecated">
  33257. </field>
  33258. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33259. transient="false" volatile="false"
  33260. static="true" final="true" visibility="public"
  33261. deprecated="not deprecated">
  33262. </field>
  33263. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33264. transient="false" volatile="false"
  33265. static="true" final="true" visibility="public"
  33266. deprecated="not deprecated">
  33267. </field>
  33268. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33269. transient="false" volatile="false"
  33270. static="true" final="true" visibility="public"
  33271. deprecated="not deprecated">
  33272. </field>
  33273. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33274. transient="false" volatile="false"
  33275. static="true" final="true" visibility="public"
  33276. deprecated="not deprecated">
  33277. </field>
  33278. <field name="typeVal" type="byte"
  33279. transient="false" volatile="false"
  33280. static="false" final="false" visibility="protected"
  33281. deprecated="not deprecated">
  33282. </field>
  33283. <doc>
  33284. <![CDATA[Represents typeID for basic types.]]>
  33285. </doc>
  33286. </class>
  33287. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  33288. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  33289. <class name="TypeID.RIOType" extends="java.lang.Object"
  33290. abstract="false"
  33291. static="true" final="true" visibility="public"
  33292. deprecated="not deprecated">
  33293. <constructor name="TypeID.RIOType"
  33294. static="false" final="false" visibility="public"
  33295. deprecated="not deprecated">
  33296. </constructor>
  33297. <field name="BOOL" type="byte"
  33298. transient="false" volatile="false"
  33299. static="true" final="true" visibility="public"
  33300. deprecated="not deprecated">
  33301. </field>
  33302. <field name="BUFFER" type="byte"
  33303. transient="false" volatile="false"
  33304. static="true" final="true" visibility="public"
  33305. deprecated="not deprecated">
  33306. </field>
  33307. <field name="BYTE" type="byte"
  33308. transient="false" volatile="false"
  33309. static="true" final="true" visibility="public"
  33310. deprecated="not deprecated">
  33311. </field>
  33312. <field name="DOUBLE" type="byte"
  33313. transient="false" volatile="false"
  33314. static="true" final="true" visibility="public"
  33315. deprecated="not deprecated">
  33316. </field>
  33317. <field name="FLOAT" type="byte"
  33318. transient="false" volatile="false"
  33319. static="true" final="true" visibility="public"
  33320. deprecated="not deprecated">
  33321. </field>
  33322. <field name="INT" type="byte"
  33323. transient="false" volatile="false"
  33324. static="true" final="true" visibility="public"
  33325. deprecated="not deprecated">
  33326. </field>
  33327. <field name="LONG" type="byte"
  33328. transient="false" volatile="false"
  33329. static="true" final="true" visibility="public"
  33330. deprecated="not deprecated">
  33331. </field>
  33332. <field name="MAP" type="byte"
  33333. transient="false" volatile="false"
  33334. static="true" final="true" visibility="public"
  33335. deprecated="not deprecated">
  33336. </field>
  33337. <field name="STRING" type="byte"
  33338. transient="false" volatile="false"
  33339. static="true" final="true" visibility="public"
  33340. deprecated="not deprecated">
  33341. </field>
  33342. <field name="STRUCT" type="byte"
  33343. transient="false" volatile="false"
  33344. static="true" final="true" visibility="public"
  33345. deprecated="not deprecated">
  33346. </field>
  33347. <field name="VECTOR" type="byte"
  33348. transient="false" volatile="false"
  33349. static="true" final="true" visibility="public"
  33350. deprecated="not deprecated">
  33351. </field>
  33352. <doc>
  33353. <![CDATA[constants representing the IDL types we support]]>
  33354. </doc>
  33355. </class>
  33356. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  33357. <!-- start class org.apache.hadoop.record.meta.Utils -->
  33358. <class name="Utils" extends="java.lang.Object"
  33359. abstract="false"
  33360. static="false" final="false" visibility="public"
  33361. deprecated="not deprecated">
  33362. <method name="skip"
  33363. abstract="false" native="false" synchronized="false"
  33364. static="true" final="false" visibility="public"
  33365. deprecated="not deprecated">
  33366. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  33367. <param name="tag" type="java.lang.String"/>
  33368. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  33369. <exception name="IOException" type="java.io.IOException"/>
  33370. <doc>
  33371. <![CDATA[read/skip bytes from stream based on a type]]>
  33372. </doc>
  33373. </method>
  33374. <doc>
  33375. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  33376. </doc>
  33377. </class>
  33378. <!-- end class org.apache.hadoop.record.meta.Utils -->
  33379. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  33380. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  33381. abstract="false"
  33382. static="false" final="false" visibility="public"
  33383. deprecated="not deprecated">
  33384. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  33385. static="false" final="false" visibility="public"
  33386. deprecated="not deprecated">
  33387. </constructor>
  33388. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33389. abstract="false" native="false" synchronized="false"
  33390. static="false" final="false" visibility="public"
  33391. deprecated="not deprecated">
  33392. </method>
  33393. <method name="equals" return="boolean"
  33394. abstract="false" native="false" synchronized="false"
  33395. static="false" final="false" visibility="public"
  33396. deprecated="not deprecated">
  33397. <param name="o" type="java.lang.Object"/>
  33398. <doc>
  33399. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  33400. same type]]>
  33401. </doc>
  33402. </method>
  33403. <method name="hashCode" return="int"
  33404. abstract="false" native="false" synchronized="false"
  33405. static="false" final="false" visibility="public"
  33406. deprecated="not deprecated">
  33407. <doc>
  33408. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33409. be used as a hashmap key]]>
  33410. </doc>
  33411. </method>
  33412. <doc>
  33413. <![CDATA[Represents typeID for vector.]]>
  33414. </doc>
  33415. </class>
  33416. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  33417. </package>
  33418. <package name="org.apache.hadoop.security">
  33419. <!-- start class org.apache.hadoop.security.AccessControlException -->
  33420. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  33421. abstract="false"
  33422. static="false" final="false" visibility="public"
  33423. deprecated="not deprecated">
  33424. <constructor name="AccessControlException"
  33425. static="false" final="false" visibility="public"
  33426. deprecated="not deprecated">
  33427. <doc>
  33428. <![CDATA[Default constructor is needed for unwrapping from
  33429. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  33430. </doc>
  33431. </constructor>
  33432. <constructor name="AccessControlException" type="java.lang.String"
  33433. static="false" final="false" visibility="public"
  33434. deprecated="not deprecated">
  33435. <doc>
  33436. <![CDATA[Constructs an {@link AccessControlException}
  33437. with the specified detail message.
  33438. @param s the detail message.]]>
  33439. </doc>
  33440. </constructor>
  33441. <constructor name="AccessControlException" type="java.lang.Throwable"
  33442. static="false" final="false" visibility="public"
  33443. deprecated="not deprecated">
  33444. <doc>
  33445. <![CDATA[Constructs a new exception with the specified cause and a detail
  33446. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  33447. typically contains the class and detail message of <tt>cause</tt>).
  33448. @param cause the cause (which is saved for later retrieval by the
  33449. {@link #getCause()} method). (A <tt>null</tt> value is
  33450. permitted, and indicates that the cause is nonexistent or
  33451. unknown.)]]>
  33452. </doc>
  33453. </constructor>
  33454. <doc>
  33455. <![CDATA[An exception class for access control related issues.]]>
  33456. </doc>
  33457. </class>
  33458. <!-- end class org.apache.hadoop.security.AccessControlException -->
  33459. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  33460. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  33461. abstract="false"
  33462. static="false" final="false" visibility="public"
  33463. deprecated="not deprecated">
  33464. <constructor name="AuthenticationFilterInitializer"
  33465. static="false" final="false" visibility="public"
  33466. deprecated="not deprecated">
  33467. </constructor>
  33468. <method name="initFilter"
  33469. abstract="false" native="false" synchronized="false"
  33470. static="false" final="false" visibility="public"
  33471. deprecated="not deprecated">
  33472. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  33473. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33474. <doc>
  33475. <![CDATA[Initializes Alfredo AuthenticationFilter.
  33476. <p/>
  33477. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  33478. configuration properties prefixed with "hadoop.http.authentication."
  33479. @param container The filter container
  33480. @param conf Configuration for run-time parameters]]>
  33481. </doc>
  33482. </method>
  33483. <doc>
  33484. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  33485. Kerberos HTTP SPENGO authentication.
  33486. <p/>
  33487. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  33488. authentication for Hadoop JobTracker, NameNode, DataNodes and
  33489. TaskTrackers.
  33490. <p/>
  33491. Refer to the <code>core-default.xml</code> file, after the comment
  33492. 'HTTP Authentication' for details on the configuration options.
  33493. All related configuration properties have 'hadoop.http.authentication.'
  33494. as prefix.]]>
  33495. </doc>
  33496. </class>
  33497. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  33498. <!-- start class org.apache.hadoop.security.Credentials -->
  33499. <class name="Credentials" extends="java.lang.Object"
  33500. abstract="false"
  33501. static="false" final="false" visibility="public"
  33502. deprecated="not deprecated">
  33503. <implements name="org.apache.hadoop.io.Writable"/>
  33504. <constructor name="Credentials"
  33505. static="false" final="false" visibility="public"
  33506. deprecated="not deprecated">
  33507. </constructor>
  33508. <method name="getSecretKey" return="byte[]"
  33509. abstract="false" native="false" synchronized="false"
  33510. static="false" final="false" visibility="public"
  33511. deprecated="not deprecated">
  33512. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33513. <doc>
  33514. <![CDATA[Returns the key bytes for the alias
  33515. @param alias the alias for the key
  33516. @return key for this alias]]>
  33517. </doc>
  33518. </method>
  33519. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  33520. abstract="false" native="false" synchronized="false"
  33521. static="false" final="false" visibility="public"
  33522. deprecated="not deprecated">
  33523. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33524. <doc>
  33525. <![CDATA[Returns the Token object for the alias
  33526. @param alias the alias for the Token
  33527. @return token for this alias]]>
  33528. </doc>
  33529. </method>
  33530. <method name="addToken"
  33531. abstract="false" native="false" synchronized="false"
  33532. static="false" final="false" visibility="public"
  33533. deprecated="not deprecated">
  33534. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33535. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  33536. <doc>
  33537. <![CDATA[Add a token in the storage (in memory)
  33538. @param alias the alias for the key
  33539. @param t the token object]]>
  33540. </doc>
  33541. </method>
  33542. <method name="getAllTokens" return="java.util.Collection"
  33543. abstract="false" native="false" synchronized="false"
  33544. static="false" final="false" visibility="public"
  33545. deprecated="not deprecated">
  33546. <doc>
  33547. <![CDATA[Return all the tokens in the in-memory map]]>
  33548. </doc>
  33549. </method>
  33550. <method name="numberOfTokens" return="int"
  33551. abstract="false" native="false" synchronized="false"
  33552. static="false" final="false" visibility="public"
  33553. deprecated="not deprecated">
  33554. <doc>
  33555. <![CDATA[@return number of Tokens in the in-memory map]]>
  33556. </doc>
  33557. </method>
  33558. <method name="numberOfSecretKeys" return="int"
  33559. abstract="false" native="false" synchronized="false"
  33560. static="false" final="false" visibility="public"
  33561. deprecated="not deprecated">
  33562. <doc>
  33563. <![CDATA[@return number of keys in the in-memory map]]>
  33564. </doc>
  33565. </method>
  33566. <method name="addSecretKey"
  33567. abstract="false" native="false" synchronized="false"
  33568. static="false" final="false" visibility="public"
  33569. deprecated="not deprecated">
  33570. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33571. <param name="key" type="byte[]"/>
  33572. <doc>
  33573. <![CDATA[Set the key for an alias
  33574. @param alias the alias for the key
  33575. @param key the key bytes]]>
  33576. </doc>
  33577. </method>
  33578. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  33579. abstract="false" native="false" synchronized="false"
  33580. static="true" final="false" visibility="public"
  33581. deprecated="not deprecated">
  33582. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33583. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33584. <exception name="IOException" type="java.io.IOException"/>
  33585. <doc>
  33586. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  33587. therein in the passed UGI
  33588. @param filename
  33589. @param conf
  33590. @throws IOException]]>
  33591. </doc>
  33592. </method>
  33593. <method name="readTokenStorageStream"
  33594. abstract="false" native="false" synchronized="false"
  33595. static="false" final="false" visibility="public"
  33596. deprecated="not deprecated">
  33597. <param name="in" type="java.io.DataInputStream"/>
  33598. <exception name="IOException" type="java.io.IOException"/>
  33599. <doc>
  33600. <![CDATA[Convenience method for reading a token storage file directly from a
  33601. datainputstream]]>
  33602. </doc>
  33603. </method>
  33604. <method name="writeTokenStorageToStream"
  33605. abstract="false" native="false" synchronized="false"
  33606. static="false" final="false" visibility="public"
  33607. deprecated="not deprecated">
  33608. <param name="os" type="java.io.DataOutputStream"/>
  33609. <exception name="IOException" type="java.io.IOException"/>
  33610. </method>
  33611. <method name="writeTokenStorageFile"
  33612. abstract="false" native="false" synchronized="false"
  33613. static="false" final="false" visibility="public"
  33614. deprecated="not deprecated">
  33615. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33616. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33617. <exception name="IOException" type="java.io.IOException"/>
  33618. </method>
  33619. <method name="write"
  33620. abstract="false" native="false" synchronized="false"
  33621. static="false" final="false" visibility="public"
  33622. deprecated="not deprecated">
  33623. <param name="out" type="java.io.DataOutput"/>
  33624. <exception name="IOException" type="java.io.IOException"/>
  33625. <doc>
  33626. <![CDATA[Stores all the keys to DataOutput
  33627. @param out
  33628. @throws IOException]]>
  33629. </doc>
  33630. </method>
  33631. <method name="readFields"
  33632. abstract="false" native="false" synchronized="false"
  33633. static="false" final="false" visibility="public"
  33634. deprecated="not deprecated">
  33635. <param name="in" type="java.io.DataInput"/>
  33636. <exception name="IOException" type="java.io.IOException"/>
  33637. <doc>
  33638. <![CDATA[Loads all the keys
  33639. @param in
  33640. @throws IOException]]>
  33641. </doc>
  33642. </method>
  33643. <method name="addAll"
  33644. abstract="false" native="false" synchronized="false"
  33645. static="false" final="false" visibility="public"
  33646. deprecated="not deprecated">
  33647. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  33648. <doc>
  33649. <![CDATA[Copy all of the credentials from one credential object into another.
  33650. @param other the credentials to copy]]>
  33651. </doc>
  33652. </method>
  33653. <doc>
  33654. <![CDATA[A class that provides the facilities of reading and writing
  33655. secret keys and Tokens.]]>
  33656. </doc>
  33657. </class>
  33658. <!-- end class org.apache.hadoop.security.Credentials -->
  33659. <!-- start class org.apache.hadoop.security.Groups -->
  33660. <class name="Groups" extends="java.lang.Object"
  33661. abstract="false"
  33662. static="false" final="false" visibility="public"
  33663. deprecated="not deprecated">
  33664. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  33665. static="false" final="false" visibility="public"
  33666. deprecated="not deprecated">
  33667. </constructor>
  33668. <method name="getGroups" return="java.util.List"
  33669. abstract="false" native="false" synchronized="false"
  33670. static="false" final="false" visibility="public"
  33671. deprecated="not deprecated">
  33672. <param name="user" type="java.lang.String"/>
  33673. <exception name="IOException" type="java.io.IOException"/>
  33674. <doc>
  33675. <![CDATA[Get the group memberships of a given user.
  33676. @param user User's name
  33677. @return the group memberships of the user
  33678. @throws IOException]]>
  33679. </doc>
  33680. </method>
  33681. <method name="refresh"
  33682. abstract="false" native="false" synchronized="false"
  33683. static="false" final="false" visibility="public"
  33684. deprecated="not deprecated">
  33685. <doc>
  33686. <![CDATA[Refresh all user-to-groups mappings.]]>
  33687. </doc>
  33688. </method>
  33689. <method name="cacheGroupsAdd"
  33690. abstract="false" native="false" synchronized="false"
  33691. static="false" final="false" visibility="public"
  33692. deprecated="not deprecated">
  33693. <param name="groups" type="java.util.List"/>
  33694. </method>
  33695. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33696. abstract="false" native="false" synchronized="false"
  33697. static="true" final="false" visibility="public"
  33698. deprecated="not deprecated">
  33699. <doc>
  33700. <![CDATA[Get the groups being used to map user-to-groups.
  33701. @return the groups being used to map user-to-groups.]]>
  33702. </doc>
  33703. </method>
  33704. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33705. abstract="false" native="false" synchronized="false"
  33706. static="true" final="false" visibility="public"
  33707. deprecated="not deprecated">
  33708. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33709. </method>
  33710. <doc>
  33711. <![CDATA[A user-to-groups mapping service.
  33712. {@link Groups} allows for server to get the various group memberships
  33713. of a given user via the {@link #getGroups(String)} call, thus ensuring
  33714. a consistent user-to-groups mapping and protects against vagaries of
  33715. different mappings on servers and clients in a Hadoop cluster.]]>
  33716. </doc>
  33717. </class>
  33718. <!-- end class org.apache.hadoop.security.Groups -->
  33719. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33720. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  33721. abstract="false"
  33722. static="false" final="false" visibility="public"
  33723. deprecated="not deprecated">
  33724. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  33725. <constructor name="JniBasedUnixGroupsMapping"
  33726. static="false" final="false" visibility="public"
  33727. deprecated="not deprecated">
  33728. </constructor>
  33729. <method name="getGroups" return="java.util.List"
  33730. abstract="false" native="false" synchronized="false"
  33731. static="false" final="false" visibility="public"
  33732. deprecated="not deprecated">
  33733. <param name="user" type="java.lang.String"/>
  33734. <exception name="IOException" type="java.io.IOException"/>
  33735. </method>
  33736. <method name="cacheGroupsRefresh"
  33737. abstract="false" native="false" synchronized="false"
  33738. static="false" final="false" visibility="public"
  33739. deprecated="not deprecated">
  33740. <exception name="IOException" type="java.io.IOException"/>
  33741. </method>
  33742. <method name="cacheGroupsAdd"
  33743. abstract="false" native="false" synchronized="false"
  33744. static="false" final="false" visibility="public"
  33745. deprecated="not deprecated">
  33746. <param name="groups" type="java.util.List"/>
  33747. <exception name="IOException" type="java.io.IOException"/>
  33748. </method>
  33749. <doc>
  33750. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33751. that invokes libC calls to get the group
  33752. memberships of a given user.]]>
  33753. </doc>
  33754. </class>
  33755. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33756. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33757. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  33758. abstract="false"
  33759. static="false" final="false" visibility="public"
  33760. deprecated="not deprecated">
  33761. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  33762. static="false" final="false" visibility="public"
  33763. deprecated="not deprecated">
  33764. </constructor>
  33765. <method name="getGroups" return="java.util.List"
  33766. abstract="false" native="false" synchronized="false"
  33767. static="false" final="false" visibility="public"
  33768. deprecated="not deprecated">
  33769. <param name="user" type="java.lang.String"/>
  33770. <exception name="IOException" type="java.io.IOException"/>
  33771. <doc>
  33772. <![CDATA[Gets unix groups and netgroups for the user.
  33773. It gets all unix groups as returned by id -Gn but it
  33774. only returns netgroups that are used in ACLs (there is
  33775. no way to get all netgroups for a given user, see
  33776. documentation for getent netgroup)]]>
  33777. </doc>
  33778. </method>
  33779. <method name="cacheGroupsRefresh"
  33780. abstract="false" native="false" synchronized="false"
  33781. static="false" final="false" visibility="public"
  33782. deprecated="not deprecated">
  33783. <exception name="IOException" type="java.io.IOException"/>
  33784. </method>
  33785. <method name="cacheGroupsAdd"
  33786. abstract="false" native="false" synchronized="false"
  33787. static="false" final="false" visibility="public"
  33788. deprecated="not deprecated">
  33789. <param name="groups" type="java.util.List"/>
  33790. <exception name="IOException" type="java.io.IOException"/>
  33791. </method>
  33792. <method name="getUsersForNetgroup" return="java.util.List"
  33793. abstract="false" native="false" synchronized="true"
  33794. static="false" final="false" visibility="protected"
  33795. deprecated="not deprecated">
  33796. <param name="netgroup" type="java.lang.String"/>
  33797. <doc>
  33798. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  33799. are not reentrant we need to make this synchronized (see
  33800. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  33801. </doc>
  33802. </method>
  33803. <doc>
  33804. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33805. that invokes libC calls to get the group
  33806. memberships of a given user.]]>
  33807. </doc>
  33808. </class>
  33809. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33810. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  33811. <interface name="KerberosInfo" abstract="true"
  33812. static="false" final="false" visibility="public"
  33813. deprecated="not deprecated">
  33814. <implements name="java.lang.annotation.Annotation"/>
  33815. <method name="serverPrincipal" return="java.lang.String"
  33816. abstract="false" native="false" synchronized="false"
  33817. static="false" final="false" visibility="public"
  33818. deprecated="not deprecated">
  33819. <doc>
  33820. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  33821. </doc>
  33822. </method>
  33823. <method name="clientPrincipal" return="java.lang.String"
  33824. abstract="false" native="false" synchronized="false"
  33825. static="false" final="false" visibility="public"
  33826. deprecated="not deprecated">
  33827. </method>
  33828. <doc>
  33829. <![CDATA[Indicates Kerberos related information to be used]]>
  33830. </doc>
  33831. </interface>
  33832. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  33833. <!-- start class org.apache.hadoop.security.KerberosName -->
  33834. <class name="KerberosName" extends="java.lang.Object"
  33835. abstract="false"
  33836. static="false" final="false" visibility="public"
  33837. deprecated="not deprecated">
  33838. <constructor name="KerberosName" type="java.lang.String"
  33839. static="false" final="false" visibility="public"
  33840. deprecated="not deprecated">
  33841. <doc>
  33842. <![CDATA[Create a name from the full Kerberos principal name.
  33843. @param name]]>
  33844. </doc>
  33845. </constructor>
  33846. <method name="getDefaultRealm" return="java.lang.String"
  33847. abstract="false" native="false" synchronized="false"
  33848. static="false" final="false" visibility="public"
  33849. deprecated="not deprecated">
  33850. <doc>
  33851. <![CDATA[Get the configured default realm.
  33852. @return the default realm from the krb5.conf]]>
  33853. </doc>
  33854. </method>
  33855. <method name="toString" return="java.lang.String"
  33856. abstract="false" native="false" synchronized="false"
  33857. static="false" final="false" visibility="public"
  33858. deprecated="not deprecated">
  33859. <doc>
  33860. <![CDATA[Put the name back together from the parts.]]>
  33861. </doc>
  33862. </method>
  33863. <method name="getServiceName" return="java.lang.String"
  33864. abstract="false" native="false" synchronized="false"
  33865. static="false" final="false" visibility="public"
  33866. deprecated="not deprecated">
  33867. <doc>
  33868. <![CDATA[Get the first component of the name.
  33869. @return the first section of the Kerberos principal name]]>
  33870. </doc>
  33871. </method>
  33872. <method name="getHostName" return="java.lang.String"
  33873. abstract="false" native="false" synchronized="false"
  33874. static="false" final="false" visibility="public"
  33875. deprecated="not deprecated">
  33876. <doc>
  33877. <![CDATA[Get the second component of the name.
  33878. @return the second section of the Kerberos principal name, and may be null]]>
  33879. </doc>
  33880. </method>
  33881. <method name="getRealm" return="java.lang.String"
  33882. abstract="false" native="false" synchronized="false"
  33883. static="false" final="false" visibility="public"
  33884. deprecated="not deprecated">
  33885. <doc>
  33886. <![CDATA[Get the realm of the name.
  33887. @return the realm of the name, may be null]]>
  33888. </doc>
  33889. </method>
  33890. <method name="setConfiguration"
  33891. abstract="false" native="false" synchronized="false"
  33892. static="true" final="false" visibility="public"
  33893. deprecated="not deprecated">
  33894. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33895. <exception name="IOException" type="java.io.IOException"/>
  33896. <doc>
  33897. <![CDATA[Set the static configuration to get the rules.
  33898. @param conf the new configuration
  33899. @throws IOException]]>
  33900. </doc>
  33901. </method>
  33902. <method name="setRules"
  33903. abstract="false" native="false" synchronized="false"
  33904. static="true" final="false" visibility="public"
  33905. deprecated="not deprecated">
  33906. <param name="ruleString" type="java.lang.String"/>
  33907. <doc>
  33908. <![CDATA[Set the rules.
  33909. @param ruleString the rules string.]]>
  33910. </doc>
  33911. </method>
  33912. <method name="getShortName" return="java.lang.String"
  33913. abstract="false" native="false" synchronized="false"
  33914. static="false" final="false" visibility="public"
  33915. deprecated="not deprecated">
  33916. <exception name="IOException" type="java.io.IOException"/>
  33917. <doc>
  33918. <![CDATA[Get the translation of the principal name into an operating system
  33919. user name.
  33920. @return the short name
  33921. @throws IOException]]>
  33922. </doc>
  33923. </method>
  33924. <method name="printRules"
  33925. abstract="false" native="false" synchronized="false"
  33926. static="true" final="false" visibility="public"
  33927. deprecated="not deprecated">
  33928. <exception name="IOException" type="java.io.IOException"/>
  33929. </method>
  33930. <method name="main"
  33931. abstract="false" native="false" synchronized="false"
  33932. static="true" final="false" visibility="public"
  33933. deprecated="not deprecated">
  33934. <param name="args" type="java.lang.String[]"/>
  33935. <exception name="Exception" type="java.lang.Exception"/>
  33936. </method>
  33937. <doc>
  33938. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  33939. particular, it splits them apart and translates them down into local
  33940. operating system names.]]>
  33941. </doc>
  33942. </class>
  33943. <!-- end class org.apache.hadoop.security.KerberosName -->
  33944. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33945. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  33946. abstract="false"
  33947. static="true" final="false" visibility="public"
  33948. deprecated="not deprecated">
  33949. </class>
  33950. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33951. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33952. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  33953. abstract="false"
  33954. static="true" final="false" visibility="public"
  33955. deprecated="not deprecated">
  33956. </class>
  33957. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33958. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  33959. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  33960. abstract="false"
  33961. static="false" final="false" visibility="public"
  33962. deprecated="not deprecated">
  33963. <constructor name="Krb5AndCertsSslSocketConnector"
  33964. static="false" final="false" visibility="public"
  33965. deprecated="not deprecated">
  33966. </constructor>
  33967. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33968. static="false" final="false" visibility="public"
  33969. deprecated="not deprecated">
  33970. </constructor>
  33971. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  33972. abstract="false" native="false" synchronized="false"
  33973. static="false" final="false" visibility="protected"
  33974. deprecated="not deprecated">
  33975. <exception name="Exception" type="java.lang.Exception"/>
  33976. </method>
  33977. <method name="newServerSocket" return="java.net.ServerSocket"
  33978. abstract="false" native="false" synchronized="false"
  33979. static="false" final="false" visibility="protected"
  33980. deprecated="not deprecated">
  33981. <param name="host" type="java.lang.String"/>
  33982. <param name="port" type="int"/>
  33983. <param name="backlog" type="int"/>
  33984. <exception name="IOException" type="java.io.IOException"/>
  33985. </method>
  33986. <method name="customize"
  33987. abstract="false" native="false" synchronized="false"
  33988. static="false" final="false" visibility="public"
  33989. deprecated="not deprecated">
  33990. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  33991. <param name="request" type="org.mortbay.jetty.Request"/>
  33992. <exception name="IOException" type="java.io.IOException"/>
  33993. </method>
  33994. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  33995. transient="false" volatile="false"
  33996. static="true" final="true" visibility="public"
  33997. deprecated="not deprecated">
  33998. </field>
  33999. <doc>
  34000. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  34001. Kerberos5ized SSL sockets. The only change in behavior from superclass
  34002. is that we no longer honor requests to turn off NeedAuthentication when
  34003. running with Kerberos support.]]>
  34004. </doc>
  34005. </class>
  34006. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  34007. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  34008. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  34009. abstract="false"
  34010. static="true" final="false" visibility="public"
  34011. deprecated="not deprecated">
  34012. <implements name="javax.servlet.Filter"/>
  34013. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  34014. static="false" final="false" visibility="public"
  34015. deprecated="not deprecated">
  34016. </constructor>
  34017. <method name="doFilter"
  34018. abstract="false" native="false" synchronized="false"
  34019. static="false" final="false" visibility="public"
  34020. deprecated="not deprecated">
  34021. <param name="req" type="javax.servlet.ServletRequest"/>
  34022. <param name="resp" type="javax.servlet.ServletResponse"/>
  34023. <param name="chain" type="javax.servlet.FilterChain"/>
  34024. <exception name="IOException" type="java.io.IOException"/>
  34025. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34026. </method>
  34027. <method name="init"
  34028. abstract="false" native="false" synchronized="false"
  34029. static="false" final="false" visibility="public"
  34030. deprecated="not deprecated">
  34031. <param name="arg0" type="javax.servlet.FilterConfig"/>
  34032. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34033. </method>
  34034. <method name="destroy"
  34035. abstract="false" native="false" synchronized="false"
  34036. static="false" final="false" visibility="public"
  34037. deprecated="not deprecated">
  34038. </method>
  34039. <doc>
  34040. <![CDATA[Filter that takes the Kerberos principal identified in the
  34041. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  34042. at runtime, setting the principal and short name.]]>
  34043. </doc>
  34044. </class>
  34045. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  34046. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  34047. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  34048. abstract="false"
  34049. static="true" final="true" visibility="public"
  34050. deprecated="not deprecated">
  34051. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  34052. abstract="false" native="false" synchronized="false"
  34053. static="true" final="false" visibility="public"
  34054. deprecated="not deprecated">
  34055. </method>
  34056. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34057. abstract="false" native="false" synchronized="false"
  34058. static="true" final="false" visibility="public"
  34059. deprecated="not deprecated">
  34060. <param name="name" type="java.lang.String"/>
  34061. </method>
  34062. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34063. transient="false" volatile="false"
  34064. static="true" final="true" visibility="public"
  34065. deprecated="not deprecated">
  34066. </field>
  34067. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34068. transient="false" volatile="false"
  34069. static="true" final="true" visibility="public"
  34070. deprecated="not deprecated">
  34071. </field>
  34072. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34073. transient="false" volatile="false"
  34074. static="true" final="true" visibility="public"
  34075. deprecated="not deprecated">
  34076. </field>
  34077. </class>
  34078. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  34079. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  34080. <class name="NetgroupCache" extends="java.lang.Object"
  34081. abstract="false"
  34082. static="false" final="false" visibility="public"
  34083. deprecated="not deprecated">
  34084. <constructor name="NetgroupCache"
  34085. static="false" final="false" visibility="public"
  34086. deprecated="not deprecated">
  34087. </constructor>
  34088. <method name="getNetgroups"
  34089. abstract="false" native="false" synchronized="false"
  34090. static="false" final="false" visibility="public"
  34091. deprecated="not deprecated">
  34092. <param name="user" type="java.lang.String"/>
  34093. <param name="groups" type="java.util.List"/>
  34094. </method>
  34095. <method name="getNetgroupNames" return="java.util.List"
  34096. abstract="false" native="false" synchronized="false"
  34097. static="false" final="false" visibility="public"
  34098. deprecated="not deprecated">
  34099. </method>
  34100. <method name="isCached" return="boolean"
  34101. abstract="false" native="false" synchronized="false"
  34102. static="false" final="false" visibility="public"
  34103. deprecated="not deprecated">
  34104. <param name="group" type="java.lang.String"/>
  34105. </method>
  34106. <method name="clear"
  34107. abstract="false" native="false" synchronized="false"
  34108. static="false" final="false" visibility="public"
  34109. deprecated="not deprecated">
  34110. </method>
  34111. <method name="add"
  34112. abstract="false" native="false" synchronized="false"
  34113. static="false" final="false" visibility="public"
  34114. deprecated="not deprecated">
  34115. <param name="group" type="java.lang.String"/>
  34116. <param name="users" type="java.util.List"/>
  34117. </method>
  34118. <doc>
  34119. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  34120. to user-to-group map]]>
  34121. </doc>
  34122. </class>
  34123. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  34124. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  34125. <interface name="RefreshUserMappingsProtocol" abstract="true"
  34126. static="false" final="false" visibility="public"
  34127. deprecated="not deprecated">
  34128. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  34129. <method name="refreshUserToGroupsMappings"
  34130. abstract="false" native="false" synchronized="false"
  34131. static="false" final="false" visibility="public"
  34132. deprecated="not deprecated">
  34133. <exception name="IOException" type="java.io.IOException"/>
  34134. <doc>
  34135. <![CDATA[Refresh user to group mappings.
  34136. @throws IOException]]>
  34137. </doc>
  34138. </method>
  34139. <method name="refreshSuperUserGroupsConfiguration"
  34140. abstract="false" native="false" synchronized="false"
  34141. static="false" final="false" visibility="public"
  34142. deprecated="not deprecated">
  34143. <exception name="IOException" type="java.io.IOException"/>
  34144. <doc>
  34145. <![CDATA[Refresh superuser proxy group list
  34146. @throws IOException]]>
  34147. </doc>
  34148. </method>
  34149. <field name="versionID" type="long"
  34150. transient="false" volatile="false"
  34151. static="true" final="true" visibility="public"
  34152. deprecated="not deprecated">
  34153. <doc>
  34154. <![CDATA[Version 1: Initial version.]]>
  34155. </doc>
  34156. </field>
  34157. <doc>
  34158. <![CDATA[Protocol use]]>
  34159. </doc>
  34160. </interface>
  34161. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  34162. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  34163. <class name="SaslInputStream" extends="java.io.InputStream"
  34164. abstract="false"
  34165. static="false" final="false" visibility="public"
  34166. deprecated="not deprecated">
  34167. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  34168. static="false" final="false" visibility="public"
  34169. deprecated="not deprecated">
  34170. <doc>
  34171. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  34172. Note: if the specified InputStream or SaslServer is null, a
  34173. NullPointerException may be thrown later when they are used.
  34174. @param inStream
  34175. the InputStream to be processed
  34176. @param saslServer
  34177. an initialized SaslServer object]]>
  34178. </doc>
  34179. </constructor>
  34180. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  34181. static="false" final="false" visibility="public"
  34182. deprecated="not deprecated">
  34183. <doc>
  34184. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  34185. Note: if the specified InputStream or SaslClient is null, a
  34186. NullPointerException may be thrown later when they are used.
  34187. @param inStream
  34188. the InputStream to be processed
  34189. @param saslClient
  34190. an initialized SaslClient object]]>
  34191. </doc>
  34192. </constructor>
  34193. <method name="read" return="int"
  34194. abstract="false" native="false" synchronized="false"
  34195. static="false" final="false" visibility="public"
  34196. deprecated="not deprecated">
  34197. <exception name="IOException" type="java.io.IOException"/>
  34198. <doc>
  34199. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  34200. returned as an <code>int</code> in the range <code>0</code> to
  34201. <code>255</code>. If no byte is available because the end of the stream has
  34202. been reached, the value <code>-1</code> is returned. This method blocks
  34203. until input data is available, the end of the stream is detected, or an
  34204. exception is thrown.
  34205. <p>
  34206. @return the next byte of data, or <code>-1</code> if the end of the stream
  34207. is reached.
  34208. @exception IOException
  34209. if an I/O error occurs.]]>
  34210. </doc>
  34211. </method>
  34212. <method name="read" return="int"
  34213. abstract="false" native="false" synchronized="false"
  34214. static="false" final="false" visibility="public"
  34215. deprecated="not deprecated">
  34216. <param name="b" type="byte[]"/>
  34217. <exception name="IOException" type="java.io.IOException"/>
  34218. <doc>
  34219. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  34220. an array of bytes.
  34221. <p>
  34222. The <code>read</code> method of <code>InputStream</code> calls the
  34223. <code>read</code> method of three arguments with the arguments
  34224. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  34225. @param b
  34226. the buffer into which the data is read.
  34227. @return the total number of bytes read into the buffer, or <code>-1</code>
  34228. is there is no more data because the end of the stream has been
  34229. reached.
  34230. @exception IOException
  34231. if an I/O error occurs.]]>
  34232. </doc>
  34233. </method>
  34234. <method name="read" return="int"
  34235. abstract="false" native="false" synchronized="false"
  34236. static="false" final="false" visibility="public"
  34237. deprecated="not deprecated">
  34238. <param name="b" type="byte[]"/>
  34239. <param name="off" type="int"/>
  34240. <param name="len" type="int"/>
  34241. <exception name="IOException" type="java.io.IOException"/>
  34242. <doc>
  34243. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  34244. array of bytes. This method blocks until some input is available. If the
  34245. first argument is <code>null,</code> up to <code>len</code> bytes are read
  34246. and discarded.
  34247. @param b
  34248. the buffer into which the data is read.
  34249. @param off
  34250. the start offset of the data.
  34251. @param len
  34252. the maximum number of bytes read.
  34253. @return the total number of bytes read into the buffer, or <code>-1</code>
  34254. if there is no more data because the end of the stream has been
  34255. reached.
  34256. @exception IOException
  34257. if an I/O error occurs.]]>
  34258. </doc>
  34259. </method>
  34260. <method name="skip" return="long"
  34261. abstract="false" native="false" synchronized="false"
  34262. static="false" final="false" visibility="public"
  34263. deprecated="not deprecated">
  34264. <param name="n" type="long"/>
  34265. <exception name="IOException" type="java.io.IOException"/>
  34266. <doc>
  34267. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  34268. this input stream without blocking.
  34269. <p>
  34270. Fewer bytes than requested might be skipped. The actual number of bytes
  34271. skipped is equal to <code>n</code> or the result of a call to
  34272. {@link #available() <code>available</code>}, whichever is smaller. If
  34273. <code>n</code> is less than zero, no bytes are skipped.
  34274. <p>
  34275. The actual number of bytes skipped is returned.
  34276. @param n
  34277. the number of bytes to be skipped.
  34278. @return the actual number of bytes skipped.
  34279. @exception IOException
  34280. if an I/O error occurs.]]>
  34281. </doc>
  34282. </method>
  34283. <method name="available" return="int"
  34284. abstract="false" native="false" synchronized="false"
  34285. static="false" final="false" visibility="public"
  34286. deprecated="not deprecated">
  34287. <exception name="IOException" type="java.io.IOException"/>
  34288. <doc>
  34289. <![CDATA[Returns the number of bytes that can be read from this input stream without
  34290. blocking. The <code>available</code> method of <code>InputStream</code>
  34291. returns <code>0</code>. This method <B>should</B> be overridden by
  34292. subclasses.
  34293. @return the number of bytes that can be read from this input stream without
  34294. blocking.
  34295. @exception IOException
  34296. if an I/O error occurs.]]>
  34297. </doc>
  34298. </method>
  34299. <method name="close"
  34300. abstract="false" native="false" synchronized="false"
  34301. static="false" final="false" visibility="public"
  34302. deprecated="not deprecated">
  34303. <exception name="IOException" type="java.io.IOException"/>
  34304. <doc>
  34305. <![CDATA[Closes this input stream and releases any system resources associated with
  34306. the stream.
  34307. <p>
  34308. The <code>close</code> method of <code>SASLInputStream</code> calls the
  34309. <code>close</code> method of its underlying input stream.
  34310. @exception IOException
  34311. if an I/O error occurs.]]>
  34312. </doc>
  34313. </method>
  34314. <method name="markSupported" return="boolean"
  34315. abstract="false" native="false" synchronized="false"
  34316. static="false" final="false" visibility="public"
  34317. deprecated="not deprecated">
  34318. <doc>
  34319. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  34320. <code>reset</code> methods, which it does not.
  34321. @return <code>false</code>, since this class does not support the
  34322. <code>mark</code> and <code>reset</code> methods.]]>
  34323. </doc>
  34324. </method>
  34325. <field name="LOG" type="org.apache.commons.logging.Log"
  34326. transient="false" volatile="false"
  34327. static="true" final="true" visibility="public"
  34328. deprecated="not deprecated">
  34329. </field>
  34330. <doc>
  34331. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  34332. SaslClient) so that read() methods return data that are read in from the
  34333. underlying InputStream but have been additionally processed by the SaslServer
  34334. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  34335. initialized before being used by a SaslInputStream.]]>
  34336. </doc>
  34337. </class>
  34338. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  34339. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  34340. <class name="SaslOutputStream" extends="java.io.OutputStream"
  34341. abstract="false"
  34342. static="false" final="false" visibility="public"
  34343. deprecated="not deprecated">
  34344. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  34345. static="false" final="false" visibility="public"
  34346. deprecated="not deprecated">
  34347. <doc>
  34348. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  34349. Note: if the specified OutputStream or SaslServer is null, a
  34350. NullPointerException may be thrown later when they are used.
  34351. @param outStream
  34352. the OutputStream to be processed
  34353. @param saslServer
  34354. an initialized SaslServer object]]>
  34355. </doc>
  34356. </constructor>
  34357. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  34358. static="false" final="false" visibility="public"
  34359. deprecated="not deprecated">
  34360. <doc>
  34361. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  34362. Note: if the specified OutputStream or SaslClient is null, a
  34363. NullPointerException may be thrown later when they are used.
  34364. @param outStream
  34365. the OutputStream to be processed
  34366. @param saslClient
  34367. an initialized SaslClient object]]>
  34368. </doc>
  34369. </constructor>
  34370. <method name="write"
  34371. abstract="false" native="false" synchronized="false"
  34372. static="false" final="false" visibility="public"
  34373. deprecated="not deprecated">
  34374. <param name="b" type="int"/>
  34375. <exception name="IOException" type="java.io.IOException"/>
  34376. <doc>
  34377. <![CDATA[Writes the specified byte to this output stream.
  34378. @param b
  34379. the <code>byte</code>.
  34380. @exception IOException
  34381. if an I/O error occurs.]]>
  34382. </doc>
  34383. </method>
  34384. <method name="write"
  34385. abstract="false" native="false" synchronized="false"
  34386. static="false" final="false" visibility="public"
  34387. deprecated="not deprecated">
  34388. <param name="b" type="byte[]"/>
  34389. <exception name="IOException" type="java.io.IOException"/>
  34390. <doc>
  34391. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  34392. output stream.
  34393. <p>
  34394. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  34395. <code>write</code> method of three arguments with the three arguments
  34396. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  34397. @param b
  34398. the data.
  34399. @exception NullPointerException
  34400. if <code>b</code> is null.
  34401. @exception IOException
  34402. if an I/O error occurs.]]>
  34403. </doc>
  34404. </method>
  34405. <method name="write"
  34406. abstract="false" native="false" synchronized="false"
  34407. static="false" final="false" visibility="public"
  34408. deprecated="not deprecated">
  34409. <param name="inBuf" type="byte[]"/>
  34410. <param name="off" type="int"/>
  34411. <param name="len" type="int"/>
  34412. <exception name="IOException" type="java.io.IOException"/>
  34413. <doc>
  34414. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  34415. offset <code>off</code> to this output stream.
  34416. @param inBuf
  34417. the data.
  34418. @param off
  34419. the start offset in the data.
  34420. @param len
  34421. the number of bytes to write.
  34422. @exception IOException
  34423. if an I/O error occurs.]]>
  34424. </doc>
  34425. </method>
  34426. <method name="flush"
  34427. abstract="false" native="false" synchronized="false"
  34428. static="false" final="false" visibility="public"
  34429. deprecated="not deprecated">
  34430. <exception name="IOException" type="java.io.IOException"/>
  34431. <doc>
  34432. <![CDATA[Flushes this output stream
  34433. @exception IOException
  34434. if an I/O error occurs.]]>
  34435. </doc>
  34436. </method>
  34437. <method name="close"
  34438. abstract="false" native="false" synchronized="false"
  34439. static="false" final="false" visibility="public"
  34440. deprecated="not deprecated">
  34441. <exception name="IOException" type="java.io.IOException"/>
  34442. <doc>
  34443. <![CDATA[Closes this output stream and releases any system resources associated with
  34444. this stream.
  34445. @exception IOException
  34446. if an I/O error occurs.]]>
  34447. </doc>
  34448. </method>
  34449. <doc>
  34450. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  34451. SaslClient) so that write() methods first process the data before writing
  34452. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  34453. object must be fully initialized before being used by a SaslOutputStream.]]>
  34454. </doc>
  34455. </class>
  34456. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  34457. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  34458. <class name="SaslRpcClient" extends="java.lang.Object"
  34459. abstract="false"
  34460. static="false" final="false" visibility="public"
  34461. deprecated="not deprecated">
  34462. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  34463. static="false" final="false" visibility="public"
  34464. deprecated="not deprecated">
  34465. <exception name="IOException" type="java.io.IOException"/>
  34466. <doc>
  34467. <![CDATA[Create a SaslRpcClient for an authentication method
  34468. @param method
  34469. the requested authentication method
  34470. @param token
  34471. token to use if needed by the authentication method]]>
  34472. </doc>
  34473. </constructor>
  34474. <method name="saslConnect" return="boolean"
  34475. abstract="false" native="false" synchronized="false"
  34476. static="false" final="false" visibility="public"
  34477. deprecated="not deprecated">
  34478. <param name="inS" type="java.io.InputStream"/>
  34479. <param name="outS" type="java.io.OutputStream"/>
  34480. <exception name="IOException" type="java.io.IOException"/>
  34481. <doc>
  34482. <![CDATA[Do client side SASL authentication with server via the given InputStream
  34483. and OutputStream
  34484. @param inS
  34485. InputStream to use
  34486. @param outS
  34487. OutputStream to use
  34488. @return true if connection is set up, or false if needs to switch
  34489. to simple Auth.
  34490. @throws IOException]]>
  34491. </doc>
  34492. </method>
  34493. <method name="getInputStream" return="java.io.InputStream"
  34494. abstract="false" native="false" synchronized="false"
  34495. static="false" final="false" visibility="public"
  34496. deprecated="not deprecated">
  34497. <param name="in" type="java.io.InputStream"/>
  34498. <exception name="IOException" type="java.io.IOException"/>
  34499. <doc>
  34500. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  34501. been called.
  34502. @param in
  34503. the InputStream to wrap
  34504. @return a SASL wrapped InputStream
  34505. @throws IOException]]>
  34506. </doc>
  34507. </method>
  34508. <method name="getOutputStream" return="java.io.OutputStream"
  34509. abstract="false" native="false" synchronized="false"
  34510. static="false" final="false" visibility="public"
  34511. deprecated="not deprecated">
  34512. <param name="out" type="java.io.OutputStream"/>
  34513. <exception name="IOException" type="java.io.IOException"/>
  34514. <doc>
  34515. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  34516. been called.
  34517. @param out
  34518. the OutputStream to wrap
  34519. @return a SASL wrapped OutputStream
  34520. @throws IOException]]>
  34521. </doc>
  34522. </method>
  34523. <method name="dispose"
  34524. abstract="false" native="false" synchronized="false"
  34525. static="false" final="false" visibility="public"
  34526. deprecated="not deprecated">
  34527. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  34528. <doc>
  34529. <![CDATA[Release resources used by wrapped saslClient]]>
  34530. </doc>
  34531. </method>
  34532. <field name="LOG" type="org.apache.commons.logging.Log"
  34533. transient="false" volatile="false"
  34534. static="true" final="true" visibility="public"
  34535. deprecated="not deprecated">
  34536. </field>
  34537. <doc>
  34538. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  34539. </doc>
  34540. </class>
  34541. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  34542. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  34543. <class name="SaslRpcServer" extends="java.lang.Object"
  34544. abstract="false"
  34545. static="false" final="false" visibility="public"
  34546. deprecated="not deprecated">
  34547. <constructor name="SaslRpcServer"
  34548. static="false" final="false" visibility="public"
  34549. deprecated="not deprecated">
  34550. </constructor>
  34551. <method name="init"
  34552. abstract="false" native="false" synchronized="false"
  34553. static="true" final="false" visibility="public"
  34554. deprecated="not deprecated">
  34555. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34556. </method>
  34557. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  34558. abstract="false" native="false" synchronized="false"
  34559. static="true" final="false" visibility="public"
  34560. deprecated="not deprecated">
  34561. <param name="id" type="java.lang.String"/>
  34562. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  34563. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34564. </method>
  34565. <method name="splitKerberosName" return="java.lang.String[]"
  34566. abstract="false" native="false" synchronized="false"
  34567. static="true" final="false" visibility="public"
  34568. deprecated="not deprecated">
  34569. <param name="fullName" type="java.lang.String"/>
  34570. <doc>
  34571. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  34572. </doc>
  34573. </method>
  34574. <field name="LOG" type="org.apache.commons.logging.Log"
  34575. transient="false" volatile="false"
  34576. static="true" final="true" visibility="public"
  34577. deprecated="not deprecated">
  34578. </field>
  34579. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  34580. transient="false" volatile="false"
  34581. static="true" final="true" visibility="public"
  34582. deprecated="not deprecated">
  34583. </field>
  34584. <field name="SASL_PROPS" type="java.util.Map"
  34585. transient="false" volatile="false"
  34586. static="true" final="true" visibility="public"
  34587. deprecated="not deprecated">
  34588. </field>
  34589. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  34590. transient="false" volatile="false"
  34591. static="true" final="true" visibility="public"
  34592. deprecated="not deprecated">
  34593. </field>
  34594. <doc>
  34595. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  34596. </doc>
  34597. </class>
  34598. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  34599. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  34600. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  34601. abstract="false"
  34602. static="true" final="true" visibility="public"
  34603. deprecated="not deprecated">
  34604. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  34605. abstract="false" native="false" synchronized="false"
  34606. static="true" final="false" visibility="public"
  34607. deprecated="not deprecated">
  34608. </method>
  34609. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34610. abstract="false" native="false" synchronized="false"
  34611. static="true" final="false" visibility="public"
  34612. deprecated="not deprecated">
  34613. <param name="name" type="java.lang.String"/>
  34614. </method>
  34615. <method name="getMechanismName" return="java.lang.String"
  34616. abstract="false" native="false" synchronized="false"
  34617. static="false" final="false" visibility="public"
  34618. deprecated="not deprecated">
  34619. <doc>
  34620. <![CDATA[Return the SASL mechanism name]]>
  34621. </doc>
  34622. </method>
  34623. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34624. abstract="false" native="false" synchronized="false"
  34625. static="true" final="false" visibility="public"
  34626. deprecated="not deprecated">
  34627. <param name="in" type="java.io.DataInput"/>
  34628. <exception name="IOException" type="java.io.IOException"/>
  34629. <doc>
  34630. <![CDATA[Read from in]]>
  34631. </doc>
  34632. </method>
  34633. <method name="write"
  34634. abstract="false" native="false" synchronized="false"
  34635. static="false" final="false" visibility="public"
  34636. deprecated="not deprecated">
  34637. <param name="out" type="java.io.DataOutput"/>
  34638. <exception name="IOException" type="java.io.IOException"/>
  34639. <doc>
  34640. <![CDATA[Write to out]]>
  34641. </doc>
  34642. </method>
  34643. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34644. transient="false" volatile="false"
  34645. static="true" final="true" visibility="public"
  34646. deprecated="not deprecated">
  34647. </field>
  34648. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34649. transient="false" volatile="false"
  34650. static="true" final="true" visibility="public"
  34651. deprecated="not deprecated">
  34652. </field>
  34653. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34654. transient="false" volatile="false"
  34655. static="true" final="true" visibility="public"
  34656. deprecated="not deprecated">
  34657. </field>
  34658. <field name="code" type="byte"
  34659. transient="false" volatile="false"
  34660. static="false" final="true" visibility="public"
  34661. deprecated="not deprecated">
  34662. <doc>
  34663. <![CDATA[The code for this method.]]>
  34664. </doc>
  34665. </field>
  34666. <field name="mechanismName" type="java.lang.String"
  34667. transient="false" volatile="false"
  34668. static="false" final="true" visibility="public"
  34669. deprecated="not deprecated">
  34670. </field>
  34671. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34672. transient="false" volatile="false"
  34673. static="false" final="true" visibility="public"
  34674. deprecated="not deprecated">
  34675. </field>
  34676. <doc>
  34677. <![CDATA[Authentication method]]>
  34678. </doc>
  34679. </class>
  34680. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  34681. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34682. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  34683. abstract="false"
  34684. static="true" final="true" visibility="public"
  34685. deprecated="not deprecated">
  34686. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  34687. abstract="false" native="false" synchronized="false"
  34688. static="true" final="false" visibility="public"
  34689. deprecated="not deprecated">
  34690. </method>
  34691. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34692. abstract="false" native="false" synchronized="false"
  34693. static="true" final="false" visibility="public"
  34694. deprecated="not deprecated">
  34695. <param name="name" type="java.lang.String"/>
  34696. </method>
  34697. <method name="getSaslQop" return="java.lang.String"
  34698. abstract="false" native="false" synchronized="false"
  34699. static="false" final="false" visibility="public"
  34700. deprecated="not deprecated">
  34701. </method>
  34702. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34703. transient="false" volatile="false"
  34704. static="true" final="true" visibility="public"
  34705. deprecated="not deprecated">
  34706. </field>
  34707. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34708. transient="false" volatile="false"
  34709. static="true" final="true" visibility="public"
  34710. deprecated="not deprecated">
  34711. </field>
  34712. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34713. transient="false" volatile="false"
  34714. static="true" final="true" visibility="public"
  34715. deprecated="not deprecated">
  34716. </field>
  34717. <field name="saslQop" type="java.lang.String"
  34718. transient="false" volatile="false"
  34719. static="false" final="true" visibility="public"
  34720. deprecated="not deprecated">
  34721. </field>
  34722. </class>
  34723. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34724. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34725. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  34726. abstract="false"
  34727. static="true" final="false" visibility="public"
  34728. deprecated="not deprecated">
  34729. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34730. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  34731. static="false" final="false" visibility="public"
  34732. deprecated="not deprecated">
  34733. </constructor>
  34734. <method name="handle"
  34735. abstract="false" native="false" synchronized="false"
  34736. static="false" final="false" visibility="public"
  34737. deprecated="not deprecated">
  34738. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34739. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34740. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34741. <doc>
  34742. <![CDATA[{@inheritDoc}]]>
  34743. </doc>
  34744. </method>
  34745. <doc>
  34746. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  34747. </doc>
  34748. </class>
  34749. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34750. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34751. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  34752. abstract="false"
  34753. static="true" final="false" visibility="public"
  34754. deprecated="not deprecated">
  34755. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34756. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  34757. static="false" final="false" visibility="public"
  34758. deprecated="not deprecated">
  34759. </constructor>
  34760. <method name="handle"
  34761. abstract="false" native="false" synchronized="false"
  34762. static="false" final="false" visibility="public"
  34763. deprecated="not deprecated">
  34764. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34765. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34766. <doc>
  34767. <![CDATA[{@inheritDoc}]]>
  34768. </doc>
  34769. </method>
  34770. <doc>
  34771. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  34772. </doc>
  34773. </class>
  34774. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34775. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34776. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  34777. abstract="false"
  34778. static="true" final="true" visibility="public"
  34779. deprecated="not deprecated">
  34780. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  34781. abstract="false" native="false" synchronized="false"
  34782. static="true" final="false" visibility="public"
  34783. deprecated="not deprecated">
  34784. </method>
  34785. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34786. abstract="false" native="false" synchronized="false"
  34787. static="true" final="false" visibility="public"
  34788. deprecated="not deprecated">
  34789. <param name="name" type="java.lang.String"/>
  34790. </method>
  34791. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34792. transient="false" volatile="false"
  34793. static="true" final="true" visibility="public"
  34794. deprecated="not deprecated">
  34795. </field>
  34796. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34797. transient="false" volatile="false"
  34798. static="true" final="true" visibility="public"
  34799. deprecated="not deprecated">
  34800. </field>
  34801. <field name="state" type="int"
  34802. transient="false" volatile="false"
  34803. static="false" final="true" visibility="public"
  34804. deprecated="not deprecated">
  34805. </field>
  34806. </class>
  34807. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34808. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  34809. <class name="SecurityUtil" extends="java.lang.Object"
  34810. abstract="false"
  34811. static="false" final="false" visibility="public"
  34812. deprecated="not deprecated">
  34813. <constructor name="SecurityUtil"
  34814. static="false" final="false" visibility="public"
  34815. deprecated="not deprecated">
  34816. </constructor>
  34817. <method name="isOriginalTGT" return="boolean"
  34818. abstract="false" native="false" synchronized="false"
  34819. static="true" final="false" visibility="protected"
  34820. deprecated="not deprecated">
  34821. <param name="name" type="java.lang.String"/>
  34822. </method>
  34823. <method name="fetchServiceTicket"
  34824. abstract="false" native="false" synchronized="false"
  34825. static="true" final="false" visibility="public"
  34826. deprecated="not deprecated">
  34827. <param name="remoteHost" type="java.net.URL"/>
  34828. <exception name="IOException" type="java.io.IOException"/>
  34829. <doc>
  34830. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  34831. problem with Java's Kerberos SSL problem where the client cannot
  34832. authenticate against a cross-realm service. It is necessary for clients
  34833. making kerberized https requests to call this method on the target URL
  34834. to ensure that in a cross-realm environment the remote host will be
  34835. successfully authenticated.
  34836. This method is internal to Hadoop and should not be used by other
  34837. applications. This method should not be considered stable or open:
  34838. it will be removed when the Java behavior is changed.
  34839. @param remoteHost Target URL the krb-https client will access
  34840. @throws IOException if a service ticket is not available]]>
  34841. </doc>
  34842. </method>
  34843. <method name="getServerPrincipal" return="java.lang.String"
  34844. abstract="false" native="false" synchronized="false"
  34845. static="true" final="false" visibility="public"
  34846. deprecated="not deprecated">
  34847. <param name="principalConfig" type="java.lang.String"/>
  34848. <param name="hostname" type="java.lang.String"/>
  34849. <exception name="IOException" type="java.io.IOException"/>
  34850. <doc>
  34851. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  34852. names. It replaces hostname pattern with hostname, which should be
  34853. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  34854. dynamically looked-up fqdn of the current host instead.
  34855. @param principalConfig
  34856. the Kerberos principal name conf value to convert
  34857. @param hostname
  34858. the fully-qualified domain name used for substitution
  34859. @return converted Kerberos principal name
  34860. @throws IOException if the service ticket cannot be retrieved]]>
  34861. </doc>
  34862. </method>
  34863. <method name="getServerPrincipal" return="java.lang.String"
  34864. abstract="false" native="false" synchronized="false"
  34865. static="true" final="false" visibility="public"
  34866. deprecated="not deprecated">
  34867. <param name="principalConfig" type="java.lang.String"/>
  34868. <param name="addr" type="java.net.InetAddress"/>
  34869. <exception name="IOException" type="java.io.IOException"/>
  34870. <doc>
  34871. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  34872. This method is similar to {@link #getServerPrincipal(String, String)},
  34873. except 1) the reverse DNS lookup from addr to hostname is done only when
  34874. necessary, 2) param addr can't be null (no default behavior of using local
  34875. hostname when addr is null).
  34876. @param principalConfig
  34877. Kerberos principal name pattern to convert
  34878. @param addr
  34879. InetAddress of the host used for substitution
  34880. @return converted Kerberos principal name
  34881. @throws IOException if the client address cannot be determined]]>
  34882. </doc>
  34883. </method>
  34884. <method name="login"
  34885. abstract="false" native="false" synchronized="false"
  34886. static="true" final="false" visibility="public"
  34887. deprecated="not deprecated">
  34888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34889. <param name="keytabFileKey" type="java.lang.String"/>
  34890. <param name="userNameKey" type="java.lang.String"/>
  34891. <exception name="IOException" type="java.io.IOException"/>
  34892. <doc>
  34893. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34894. user's Kerberos principal name with a dynamically looked-up fully-qualified
  34895. domain name of the current host.
  34896. @param conf
  34897. conf to use
  34898. @param keytabFileKey
  34899. the key to look for keytab file in conf
  34900. @param userNameKey
  34901. the key to look for user's Kerberos principal name in conf
  34902. @throws IOException if the client address cannot be determined]]>
  34903. </doc>
  34904. </method>
  34905. <method name="login"
  34906. abstract="false" native="false" synchronized="false"
  34907. static="true" final="false" visibility="public"
  34908. deprecated="not deprecated">
  34909. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34910. <param name="keytabFileKey" type="java.lang.String"/>
  34911. <param name="userNameKey" type="java.lang.String"/>
  34912. <param name="hostname" type="java.lang.String"/>
  34913. <exception name="IOException" type="java.io.IOException"/>
  34914. <doc>
  34915. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34916. user's Kerberos principal name with hostname.
  34917. @param conf
  34918. conf to use
  34919. @param keytabFileKey
  34920. the key to look for keytab file in conf
  34921. @param userNameKey
  34922. the key to look for user's Kerberos principal name in conf
  34923. @param hostname
  34924. hostname to use for substitution
  34925. @throws IOException if login fails]]>
  34926. </doc>
  34927. </method>
  34928. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  34929. abstract="false" native="false" synchronized="false"
  34930. static="true" final="false" visibility="public"
  34931. deprecated="not deprecated">
  34932. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34933. <doc>
  34934. <![CDATA[Decode the given token's service field into an InetAddress
  34935. @param token from which to obtain the service
  34936. @return InetAddress for the service]]>
  34937. </doc>
  34938. </method>
  34939. <method name="setTokenService"
  34940. abstract="false" native="false" synchronized="false"
  34941. static="true" final="false" visibility="public"
  34942. deprecated="not deprecated">
  34943. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34944. <param name="addr" type="java.net.InetSocketAddress"/>
  34945. <doc>
  34946. <![CDATA[Set the given token's service to the format expected by the RPC client
  34947. @param token a delegation token
  34948. @param addr the socket for the rpc connection]]>
  34949. </doc>
  34950. </method>
  34951. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  34952. abstract="false" native="false" synchronized="false"
  34953. static="true" final="false" visibility="public"
  34954. deprecated="not deprecated">
  34955. <param name="addr" type="java.net.InetSocketAddress"/>
  34956. <doc>
  34957. <![CDATA[Construct the service key for a token
  34958. @param addr InetSocketAddress of remote connection with a token
  34959. @return "ip:port" or "host:port" depending on the value of
  34960. hadoop.security.token.service.use_ip]]>
  34961. </doc>
  34962. </method>
  34963. <method name="buildDTServiceName" return="java.lang.String"
  34964. abstract="false" native="false" synchronized="false"
  34965. static="true" final="false" visibility="public"
  34966. deprecated="not deprecated">
  34967. <param name="uri" type="java.net.URI"/>
  34968. <param name="defPort" type="int"/>
  34969. <doc>
  34970. <![CDATA[create the service name for a Delegation token
  34971. @param uri of the service
  34972. @param defPort is used if the uri lacks a port
  34973. @return the token service, or null if no authority
  34974. @see #buildTokenService(InetSocketAddress)]]>
  34975. </doc>
  34976. </method>
  34977. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  34978. abstract="false" native="false" synchronized="false"
  34979. static="true" final="false" visibility="public"
  34980. deprecated="not deprecated">
  34981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34982. <param name="configKey" type="java.lang.String"/>
  34983. <doc>
  34984. <![CDATA[Get the ACL object representing the cluster administrators
  34985. The user who starts the daemon is automatically added as an admin
  34986. @param conf
  34987. @param configKey the key that holds the ACL string in its value
  34988. @return AccessControlList instance]]>
  34989. </doc>
  34990. </method>
  34991. <method name="getHostFromPrincipal" return="java.lang.String"
  34992. abstract="false" native="false" synchronized="false"
  34993. static="true" final="false" visibility="public"
  34994. deprecated="not deprecated">
  34995. <param name="principalName" type="java.lang.String"/>
  34996. <doc>
  34997. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  34998. @param principalName principal name of format as described above
  34999. @return host name if the the string conforms to the above format, else null]]>
  35000. </doc>
  35001. </method>
  35002. <method name="getByName" return="java.net.InetAddress"
  35003. abstract="false" native="false" synchronized="false"
  35004. static="true" final="false" visibility="public"
  35005. deprecated="not deprecated">
  35006. <param name="hostname" type="java.lang.String"/>
  35007. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35008. <doc>
  35009. <![CDATA[Resolves a host subject to the security requirements determined by
  35010. hadoop.security.token.service.use_ip.
  35011. @param hostname host or ip to resolve
  35012. @return a resolved host
  35013. @throws UnknownHostException if the host doesn't exist]]>
  35014. </doc>
  35015. </method>
  35016. <field name="LOG" type="org.apache.commons.logging.Log"
  35017. transient="false" volatile="false"
  35018. static="true" final="true" visibility="public"
  35019. deprecated="not deprecated">
  35020. </field>
  35021. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  35022. transient="false" volatile="false"
  35023. static="true" final="true" visibility="public"
  35024. deprecated="not deprecated">
  35025. </field>
  35026. </class>
  35027. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  35028. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  35029. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  35030. abstract="false"
  35031. static="true" final="false" visibility="protected"
  35032. deprecated="not deprecated">
  35033. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  35034. <constructor name="SecurityUtil.QualifiedHostResolver"
  35035. static="false" final="false" visibility="protected"
  35036. deprecated="not deprecated">
  35037. </constructor>
  35038. <method name="getByName" return="java.net.InetAddress"
  35039. abstract="false" native="false" synchronized="false"
  35040. static="false" final="false" visibility="public"
  35041. deprecated="not deprecated">
  35042. <param name="host" type="java.lang.String"/>
  35043. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35044. <doc>
  35045. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  35046. hostname. InetAddress does not qualify an incomplete hostname that
  35047. is resolved via the domain search list.
  35048. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  35049. hostname, but it always return the A record whereas the given hostname
  35050. may be a CNAME.
  35051. @param host a hostname or ip address
  35052. @return InetAddress with the fully qualified hostname or ip
  35053. @throws UnknownHostException if host does not exist]]>
  35054. </doc>
  35055. </method>
  35056. <doc>
  35057. <![CDATA[This an alternate resolver with important properties that the standard
  35058. java resolver lacks:
  35059. 1) The hostname is fully qualified. This avoids security issues if not
  35060. all hosts in the cluster do not share the same search domains. It
  35061. also prevents other hosts from performing unnecessary dns searches.
  35062. In contrast, InetAddress simply returns the host as given.
  35063. 2) The InetAddress is instantiated with an exact host and IP to prevent
  35064. further unnecessary lookups. InetAddress may perform an unnecessary
  35065. reverse lookup for an IP.
  35066. 3) A call to getHostName() will always return the qualified hostname, or
  35067. more importantly, the IP if instantiated with an IP. This avoids
  35068. unnecessary dns timeouts if the host is not resolvable.
  35069. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  35070. connection re-attempt, that a reverse lookup to host and forward
  35071. lookup to IP is not performed since the reverse/forward mappings may
  35072. not always return the same IP. If the client initiated a connection
  35073. with an IP, then that IP is all that should ever be contacted.
  35074. NOTE: this resolver is only used if:
  35075. hadoop.security.token.service.use_ip=false]]>
  35076. </doc>
  35077. </class>
  35078. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  35079. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  35080. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  35081. abstract="false"
  35082. static="false" final="false" visibility="public"
  35083. deprecated="not deprecated">
  35084. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  35085. <constructor name="ShellBasedUnixGroupsMapping"
  35086. static="false" final="false" visibility="public"
  35087. deprecated="not deprecated">
  35088. </constructor>
  35089. <method name="getGroups" return="java.util.List"
  35090. abstract="false" native="false" synchronized="false"
  35091. static="false" final="false" visibility="public"
  35092. deprecated="not deprecated">
  35093. <param name="user" type="java.lang.String"/>
  35094. <exception name="IOException" type="java.io.IOException"/>
  35095. </method>
  35096. <method name="cacheGroupsRefresh"
  35097. abstract="false" native="false" synchronized="false"
  35098. static="false" final="false" visibility="public"
  35099. deprecated="not deprecated">
  35100. <exception name="IOException" type="java.io.IOException"/>
  35101. </method>
  35102. <method name="cacheGroupsAdd"
  35103. abstract="false" native="false" synchronized="false"
  35104. static="false" final="false" visibility="public"
  35105. deprecated="not deprecated">
  35106. <param name="groups" type="java.util.List"/>
  35107. <exception name="IOException" type="java.io.IOException"/>
  35108. </method>
  35109. <doc>
  35110. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  35111. that exec's the <code>groups</code> shell command to fetch the group
  35112. memberships of a given user.]]>
  35113. </doc>
  35114. </class>
  35115. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  35116. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  35117. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  35118. abstract="false"
  35119. static="false" final="false" visibility="public"
  35120. deprecated="not deprecated">
  35121. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  35122. static="false" final="false" visibility="public"
  35123. deprecated="not deprecated">
  35124. </constructor>
  35125. <method name="getGroups" return="java.util.List"
  35126. abstract="false" native="false" synchronized="false"
  35127. static="false" final="false" visibility="public"
  35128. deprecated="not deprecated">
  35129. <param name="user" type="java.lang.String"/>
  35130. <exception name="IOException" type="java.io.IOException"/>
  35131. </method>
  35132. <method name="cacheGroupsRefresh"
  35133. abstract="false" native="false" synchronized="false"
  35134. static="false" final="false" visibility="public"
  35135. deprecated="not deprecated">
  35136. <exception name="IOException" type="java.io.IOException"/>
  35137. </method>
  35138. <method name="cacheGroupsAdd"
  35139. abstract="false" native="false" synchronized="false"
  35140. static="false" final="false" visibility="public"
  35141. deprecated="not deprecated">
  35142. <param name="groups" type="java.util.List"/>
  35143. <exception name="IOException" type="java.io.IOException"/>
  35144. </method>
  35145. <method name="cacheNetgroup"
  35146. abstract="false" native="false" synchronized="false"
  35147. static="false" final="false" visibility="protected"
  35148. deprecated="not deprecated">
  35149. <param name="group" type="java.lang.String"/>
  35150. <exception name="IOException" type="java.io.IOException"/>
  35151. </method>
  35152. <method name="getNetgroups"
  35153. abstract="false" native="false" synchronized="false"
  35154. static="false" final="false" visibility="protected"
  35155. deprecated="not deprecated">
  35156. <param name="user" type="java.lang.String"/>
  35157. <param name="groups" type="java.util.List"/>
  35158. <exception name="IOException" type="java.io.IOException"/>
  35159. </method>
  35160. <method name="execShellGetUnixGroups" return="java.lang.String"
  35161. abstract="false" native="false" synchronized="false"
  35162. static="false" final="false" visibility="protected"
  35163. deprecated="not deprecated">
  35164. <param name="user" type="java.lang.String"/>
  35165. <exception name="IOException" type="java.io.IOException"/>
  35166. </method>
  35167. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  35168. abstract="false" native="false" synchronized="false"
  35169. static="false" final="false" visibility="protected"
  35170. deprecated="not deprecated">
  35171. <param name="netgroup" type="java.lang.String"/>
  35172. <exception name="IOException" type="java.io.IOException"/>
  35173. </method>
  35174. <field name="netgroupToUsersMapUpdated" type="boolean"
  35175. transient="false" volatile="false"
  35176. static="true" final="false" visibility="protected"
  35177. deprecated="not deprecated">
  35178. </field>
  35179. <field name="netgroupToUsersMap" type="java.util.Map"
  35180. transient="false" volatile="false"
  35181. static="true" final="false" visibility="protected"
  35182. deprecated="not deprecated">
  35183. </field>
  35184. <field name="userToNetgroupsMap" type="java.util.Map"
  35185. transient="false" volatile="false"
  35186. static="true" final="false" visibility="protected"
  35187. deprecated="not deprecated">
  35188. </field>
  35189. <doc>
  35190. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  35191. that exec's the <code>groups</code> shell command to fetch the group
  35192. memberships of a given user.]]>
  35193. </doc>
  35194. </class>
  35195. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  35196. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  35197. <class name="UserGroupInformation" extends="java.lang.Object"
  35198. abstract="false"
  35199. static="false" final="false" visibility="public"
  35200. deprecated="not deprecated">
  35201. <method name="setConfiguration"
  35202. abstract="false" native="false" synchronized="false"
  35203. static="true" final="false" visibility="public"
  35204. deprecated="not deprecated">
  35205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35206. <doc>
  35207. <![CDATA[Set the static configuration for UGI.
  35208. In particular, set the security authentication mechanism and the
  35209. group look up service.
  35210. @param conf the configuration to use]]>
  35211. </doc>
  35212. </method>
  35213. <method name="isSecurityEnabled" return="boolean"
  35214. abstract="false" native="false" synchronized="false"
  35215. static="true" final="false" visibility="public"
  35216. deprecated="not deprecated">
  35217. <doc>
  35218. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  35219. user identities or is relying on simple authentication
  35220. @return true if UGI is working in a secure environment]]>
  35221. </doc>
  35222. </method>
  35223. <method name="hasKerberosCredentials" return="boolean"
  35224. abstract="false" native="false" synchronized="false"
  35225. static="false" final="false" visibility="public"
  35226. deprecated="not deprecated">
  35227. <doc>
  35228. <![CDATA[checks if logged in using kerberos
  35229. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  35230. </doc>
  35231. </method>
  35232. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  35233. abstract="false" native="false" synchronized="true"
  35234. static="true" final="false" visibility="public"
  35235. deprecated="not deprecated">
  35236. <exception name="IOException" type="java.io.IOException"/>
  35237. <doc>
  35238. <![CDATA[Return the current user, including any doAs in the current stack.
  35239. @return the current user
  35240. @throws IOException if login fails]]>
  35241. </doc>
  35242. </method>
  35243. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  35244. abstract="false" native="false" synchronized="true"
  35245. static="true" final="false" visibility="public"
  35246. deprecated="not deprecated">
  35247. <exception name="IOException" type="java.io.IOException"/>
  35248. <doc>
  35249. <![CDATA[Get the currently logged in user.
  35250. @return the logged in user
  35251. @throws IOException if login fails]]>
  35252. </doc>
  35253. </method>
  35254. <method name="isFromKeytab" return="boolean"
  35255. abstract="false" native="false" synchronized="false"
  35256. static="false" final="false" visibility="public"
  35257. deprecated="not deprecated">
  35258. <doc>
  35259. <![CDATA[Is this user logged in from a keytab file?
  35260. @return true if the credentials are from a keytab file.]]>
  35261. </doc>
  35262. </method>
  35263. <method name="loginUserFromKeytab"
  35264. abstract="false" native="false" synchronized="true"
  35265. static="true" final="false" visibility="public"
  35266. deprecated="not deprecated">
  35267. <param name="user" type="java.lang.String"/>
  35268. <param name="path" type="java.lang.String"/>
  35269. <exception name="IOException" type="java.io.IOException"/>
  35270. <doc>
  35271. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  35272. file and logs them in. They become the currently logged-in user.
  35273. @param user the principal name to load from the keytab
  35274. @param path the path to the keytab file
  35275. @throws IOException if the keytab file can't be read]]>
  35276. </doc>
  35277. </method>
  35278. <method name="reloginFromTicketCache"
  35279. abstract="false" native="false" synchronized="true"
  35280. static="false" final="false" visibility="public"
  35281. deprecated="not deprecated">
  35282. <exception name="IOException" type="java.io.IOException"/>
  35283. <doc>
  35284. <![CDATA[Re-Login a user in from the ticket cache. This
  35285. method assumes that login had happened already.
  35286. The Subject field of this UserGroupInformation object is updated to have
  35287. the new credentials.
  35288. @throws IOException on a failure]]>
  35289. </doc>
  35290. </method>
  35291. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  35292. abstract="false" native="false" synchronized="true"
  35293. static="true" final="false" visibility="public"
  35294. deprecated="not deprecated">
  35295. <param name="user" type="java.lang.String"/>
  35296. <param name="path" type="java.lang.String"/>
  35297. <exception name="IOException" type="java.io.IOException"/>
  35298. <doc>
  35299. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  35300. file and login them in. This new user does not affect the currently
  35301. logged-in user.
  35302. @param user the principal name to load from the keytab
  35303. @param path the path to the keytab file
  35304. @throws IOException if the keytab file can't be read]]>
  35305. </doc>
  35306. </method>
  35307. <method name="checkTGTAndReloginFromKeytab"
  35308. abstract="false" native="false" synchronized="true"
  35309. static="false" final="false" visibility="public"
  35310. deprecated="not deprecated">
  35311. <exception name="IOException" type="java.io.IOException"/>
  35312. <doc>
  35313. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  35314. @throws IOException]]>
  35315. </doc>
  35316. </method>
  35317. <method name="reloginFromKeytab"
  35318. abstract="false" native="false" synchronized="true"
  35319. static="false" final="false" visibility="public"
  35320. deprecated="not deprecated">
  35321. <exception name="IOException" type="java.io.IOException"/>
  35322. <doc>
  35323. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  35324. file and logs them in. They become the currently logged-in user. This
  35325. method assumes that {@link #loginUserFromKeytab(String, String)} had
  35326. happened already.
  35327. The Subject field of this UserGroupInformation object is updated to have
  35328. the new credentials.
  35329. @throws IOException on a failure]]>
  35330. </doc>
  35331. </method>
  35332. <method name="isLoginKeytabBased" return="boolean"
  35333. abstract="false" native="false" synchronized="true"
  35334. static="true" final="false" visibility="public"
  35335. deprecated="not deprecated">
  35336. <exception name="IOException" type="java.io.IOException"/>
  35337. <doc>
  35338. <![CDATA[Did the login happen via keytab
  35339. @return true or false]]>
  35340. </doc>
  35341. </method>
  35342. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  35343. abstract="false" native="false" synchronized="false"
  35344. static="true" final="false" visibility="public"
  35345. deprecated="not deprecated">
  35346. <param name="user" type="java.lang.String"/>
  35347. <doc>
  35348. <![CDATA[Create a user from a login name. It is intended to be used for remote
  35349. users in RPC, since it won't have any credentials.
  35350. @param user the full user principal name, must not be empty or null
  35351. @return the UserGroupInformation for the remote user.]]>
  35352. </doc>
  35353. </method>
  35354. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  35355. abstract="false" native="false" synchronized="false"
  35356. static="true" final="false" visibility="public"
  35357. deprecated="not deprecated">
  35358. <param name="user" type="java.lang.String"/>
  35359. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  35360. <doc>
  35361. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  35362. real user.
  35363. @param user
  35364. @param realUser
  35365. @return proxyUser ugi]]>
  35366. </doc>
  35367. </method>
  35368. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  35369. abstract="false" native="false" synchronized="false"
  35370. static="false" final="false" visibility="public"
  35371. deprecated="not deprecated">
  35372. <doc>
  35373. <![CDATA[get RealUser (vs. EffectiveUser)
  35374. @return realUser running over proxy user]]>
  35375. </doc>
  35376. </method>
  35377. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  35378. abstract="false" native="false" synchronized="false"
  35379. static="true" final="false" visibility="public"
  35380. deprecated="not deprecated">
  35381. <param name="user" type="java.lang.String"/>
  35382. <param name="userGroups" type="java.lang.String[]"/>
  35383. <doc>
  35384. <![CDATA[Create a UGI for testing HDFS and MapReduce
  35385. @param user the full user principal name
  35386. @param userGroups the names of the groups that the user belongs to
  35387. @return a fake user for running unit tests]]>
  35388. </doc>
  35389. </method>
  35390. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  35391. abstract="false" native="false" synchronized="false"
  35392. static="true" final="false" visibility="public"
  35393. deprecated="not deprecated">
  35394. <param name="user" type="java.lang.String"/>
  35395. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  35396. <param name="userGroups" type="java.lang.String[]"/>
  35397. <doc>
  35398. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  35399. @param user
  35400. the full user principal name for effective user
  35401. @param realUser
  35402. UGI of the real user
  35403. @param userGroups
  35404. the names of the groups that the user belongs to
  35405. @return a fake user for running unit tests]]>
  35406. </doc>
  35407. </method>
  35408. <method name="getShortUserName" return="java.lang.String"
  35409. abstract="false" native="false" synchronized="false"
  35410. static="false" final="false" visibility="public"
  35411. deprecated="not deprecated">
  35412. <doc>
  35413. <![CDATA[Get the user's login name.
  35414. @return the user's name up to the first '/' or '@'.]]>
  35415. </doc>
  35416. </method>
  35417. <method name="getUserName" return="java.lang.String"
  35418. abstract="false" native="false" synchronized="false"
  35419. static="false" final="false" visibility="public"
  35420. deprecated="not deprecated">
  35421. <doc>
  35422. <![CDATA[Get the user's full principal name.
  35423. @return the user's full principal name.]]>
  35424. </doc>
  35425. </method>
  35426. <method name="addTokenIdentifier" return="boolean"
  35427. abstract="false" native="false" synchronized="true"
  35428. static="false" final="false" visibility="public"
  35429. deprecated="not deprecated">
  35430. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  35431. <doc>
  35432. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  35433. authenticated by the RPC layer as belonging to the user represented by this
  35434. UGI.
  35435. @param tokenId
  35436. tokenIdentifier to be added
  35437. @return true on successful add of new tokenIdentifier]]>
  35438. </doc>
  35439. </method>
  35440. <method name="getTokenIdentifiers" return="java.util.Set"
  35441. abstract="false" native="false" synchronized="true"
  35442. static="false" final="false" visibility="public"
  35443. deprecated="not deprecated">
  35444. <doc>
  35445. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  35446. @return the set of TokenIdentifiers belonging to this UGI]]>
  35447. </doc>
  35448. </method>
  35449. <method name="addToken" return="boolean"
  35450. abstract="false" native="false" synchronized="true"
  35451. static="false" final="false" visibility="public"
  35452. deprecated="not deprecated">
  35453. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35454. <doc>
  35455. <![CDATA[Add a token to this UGI
  35456. @param token Token to be added
  35457. @return true on successful add of new token]]>
  35458. </doc>
  35459. </method>
  35460. <method name="getTokens" return="java.util.Collection"
  35461. abstract="false" native="false" synchronized="true"
  35462. static="false" final="false" visibility="public"
  35463. deprecated="not deprecated">
  35464. <doc>
  35465. <![CDATA[Obtain the collection of tokens associated with this user.
  35466. @return an unmodifiable collection of tokens associated with user]]>
  35467. </doc>
  35468. </method>
  35469. <method name="getGroupNames" return="java.lang.String[]"
  35470. abstract="false" native="false" synchronized="true"
  35471. static="false" final="false" visibility="public"
  35472. deprecated="not deprecated">
  35473. <doc>
  35474. <![CDATA[Get the group names for this user.
  35475. @return the list of users with the primary group first. If the command
  35476. fails, it returns an empty list.]]>
  35477. </doc>
  35478. </method>
  35479. <method name="toString" return="java.lang.String"
  35480. abstract="false" native="false" synchronized="false"
  35481. static="false" final="false" visibility="public"
  35482. deprecated="not deprecated">
  35483. <doc>
  35484. <![CDATA[Return the username.]]>
  35485. </doc>
  35486. </method>
  35487. <method name="setAuthenticationMethod"
  35488. abstract="false" native="false" synchronized="true"
  35489. static="false" final="false" visibility="public"
  35490. deprecated="not deprecated">
  35491. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  35492. <doc>
  35493. <![CDATA[Sets the authentication method in the subject
  35494. @param authMethod]]>
  35495. </doc>
  35496. </method>
  35497. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35498. abstract="false" native="false" synchronized="true"
  35499. static="false" final="false" visibility="public"
  35500. deprecated="not deprecated">
  35501. <doc>
  35502. <![CDATA[Get the authentication method from the subject
  35503. @return AuthenticationMethod in the subject, null if not present.]]>
  35504. </doc>
  35505. </method>
  35506. <method name="equals" return="boolean"
  35507. abstract="false" native="false" synchronized="false"
  35508. static="false" final="false" visibility="public"
  35509. deprecated="not deprecated">
  35510. <param name="o" type="java.lang.Object"/>
  35511. <doc>
  35512. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  35513. </doc>
  35514. </method>
  35515. <method name="hashCode" return="int"
  35516. abstract="false" native="false" synchronized="false"
  35517. static="false" final="false" visibility="public"
  35518. deprecated="not deprecated">
  35519. <doc>
  35520. <![CDATA[Return the hash of the subject.]]>
  35521. </doc>
  35522. </method>
  35523. <method name="getSubject" return="javax.security.auth.Subject"
  35524. abstract="false" native="false" synchronized="false"
  35525. static="false" final="false" visibility="protected"
  35526. deprecated="not deprecated">
  35527. <doc>
  35528. <![CDATA[Get the underlying subject from this ugi.
  35529. @return the subject that represents this user.]]>
  35530. </doc>
  35531. </method>
  35532. <method name="doAs" return="java.lang.Object"
  35533. abstract="false" native="false" synchronized="false"
  35534. static="false" final="false" visibility="public"
  35535. deprecated="not deprecated">
  35536. <param name="action" type="java.security.PrivilegedAction"/>
  35537. <doc>
  35538. <![CDATA[Run the given action as the user.
  35539. @param <T> the return type of the run method
  35540. @param action the method to execute
  35541. @return the value from the run method]]>
  35542. </doc>
  35543. </method>
  35544. <method name="doAs" return="java.lang.Object"
  35545. abstract="false" native="false" synchronized="false"
  35546. static="false" final="false" visibility="public"
  35547. deprecated="not deprecated">
  35548. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  35549. <exception name="IOException" type="java.io.IOException"/>
  35550. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35551. <doc>
  35552. <![CDATA[Run the given action as the user, potentially throwing an exception.
  35553. @param <T> the return type of the run method
  35554. @param action the method to execute
  35555. @return the value from the run method
  35556. @throws IOException if the action throws an IOException
  35557. @throws Error if the action throws an Error
  35558. @throws RuntimeException if the action throws a RuntimeException
  35559. @throws InterruptedException if the action throws an InterruptedException
  35560. @throws UndeclaredThrowableException if the action throws something else]]>
  35561. </doc>
  35562. </method>
  35563. <method name="main"
  35564. abstract="false" native="false" synchronized="false"
  35565. static="true" final="false" visibility="public"
  35566. deprecated="not deprecated">
  35567. <param name="args" type="java.lang.String[]"/>
  35568. <exception name="Exception" type="java.lang.Exception"/>
  35569. <doc>
  35570. <![CDATA[A test method to print out the current user's UGI.
  35571. @param args if there are two arguments, read the user from the keytab
  35572. and print it out.
  35573. @throws Exception]]>
  35574. </doc>
  35575. </method>
  35576. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  35577. transient="false" volatile="false"
  35578. static="true" final="true" visibility="public"
  35579. deprecated="not deprecated">
  35580. <doc>
  35581. <![CDATA[Environment variable pointing to the token cache file]]>
  35582. </doc>
  35583. </field>
  35584. <doc>
  35585. <![CDATA[User and group information for Hadoop.
  35586. This class wraps around a JAAS Subject and provides methods to determine the
  35587. user's username and groups. It supports both the Windows, Unix and Kerberos
  35588. login modules.]]>
  35589. </doc>
  35590. </class>
  35591. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  35592. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  35593. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  35594. abstract="false"
  35595. static="true" final="true" visibility="public"
  35596. deprecated="not deprecated">
  35597. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  35598. abstract="false" native="false" synchronized="false"
  35599. static="true" final="false" visibility="public"
  35600. deprecated="not deprecated">
  35601. </method>
  35602. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35603. abstract="false" native="false" synchronized="false"
  35604. static="true" final="false" visibility="public"
  35605. deprecated="not deprecated">
  35606. <param name="name" type="java.lang.String"/>
  35607. </method>
  35608. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35609. transient="false" volatile="false"
  35610. static="true" final="true" visibility="public"
  35611. deprecated="not deprecated">
  35612. </field>
  35613. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35614. transient="false" volatile="false"
  35615. static="true" final="true" visibility="public"
  35616. deprecated="not deprecated">
  35617. </field>
  35618. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35619. transient="false" volatile="false"
  35620. static="true" final="true" visibility="public"
  35621. deprecated="not deprecated">
  35622. </field>
  35623. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35624. transient="false" volatile="false"
  35625. static="true" final="true" visibility="public"
  35626. deprecated="not deprecated">
  35627. </field>
  35628. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35629. transient="false" volatile="false"
  35630. static="true" final="true" visibility="public"
  35631. deprecated="not deprecated">
  35632. </field>
  35633. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35634. transient="false" volatile="false"
  35635. static="true" final="true" visibility="public"
  35636. deprecated="not deprecated">
  35637. </field>
  35638. <doc>
  35639. <![CDATA[existing types of authentications' methods]]>
  35640. </doc>
  35641. </class>
  35642. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  35643. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  35644. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  35645. abstract="false"
  35646. static="true" final="false" visibility="public"
  35647. deprecated="not deprecated">
  35648. <implements name="javax.security.auth.spi.LoginModule"/>
  35649. <constructor name="UserGroupInformation.HadoopLoginModule"
  35650. static="false" final="false" visibility="public"
  35651. deprecated="not deprecated">
  35652. </constructor>
  35653. <method name="abort" return="boolean"
  35654. abstract="false" native="false" synchronized="false"
  35655. static="false" final="false" visibility="public"
  35656. deprecated="not deprecated">
  35657. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35658. </method>
  35659. <method name="commit" return="boolean"
  35660. abstract="false" native="false" synchronized="false"
  35661. static="false" final="false" visibility="public"
  35662. deprecated="not deprecated">
  35663. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35664. </method>
  35665. <method name="initialize"
  35666. abstract="false" native="false" synchronized="false"
  35667. static="false" final="false" visibility="public"
  35668. deprecated="not deprecated">
  35669. <param name="subject" type="javax.security.auth.Subject"/>
  35670. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  35671. <param name="sharedState" type="java.util.Map"/>
  35672. <param name="options" type="java.util.Map"/>
  35673. </method>
  35674. <method name="login" return="boolean"
  35675. abstract="false" native="false" synchronized="false"
  35676. static="false" final="false" visibility="public"
  35677. deprecated="not deprecated">
  35678. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35679. </method>
  35680. <method name="logout" return="boolean"
  35681. abstract="false" native="false" synchronized="false"
  35682. static="false" final="false" visibility="public"
  35683. deprecated="not deprecated">
  35684. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35685. </method>
  35686. <doc>
  35687. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  35688. adds the corresponding UserName.]]>
  35689. </doc>
  35690. </class>
  35691. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  35692. </package>
  35693. <package name="org.apache.hadoop.security.authentication.client">
  35694. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35695. <class name="AuthenticatedURL" extends="java.lang.Object"
  35696. abstract="false"
  35697. static="false" final="false" visibility="public"
  35698. deprecated="not deprecated">
  35699. <constructor name="AuthenticatedURL"
  35700. static="false" final="false" visibility="public"
  35701. deprecated="not deprecated">
  35702. <doc>
  35703. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  35704. </doc>
  35705. </constructor>
  35706. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  35707. static="false" final="false" visibility="public"
  35708. deprecated="not deprecated">
  35709. <doc>
  35710. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  35711. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  35712. KerberosAuthenticator} is used.]]>
  35713. </doc>
  35714. </constructor>
  35715. <method name="setDefaultAuthenticator"
  35716. abstract="false" native="false" synchronized="false"
  35717. static="true" final="false" visibility="public"
  35718. deprecated="not deprecated">
  35719. <param name="authenticator" type="java.lang.Class"/>
  35720. <doc>
  35721. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35722. is created without specifying an authenticator.
  35723. @param authenticator the authenticator class to use as default.]]>
  35724. </doc>
  35725. </method>
  35726. <method name="getDefaultAuthenticator" return="java.lang.Class"
  35727. abstract="false" native="false" synchronized="false"
  35728. static="true" final="false" visibility="public"
  35729. deprecated="not deprecated">
  35730. <doc>
  35731. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35732. is created without specifying an authenticator.
  35733. @return the authenticator class to use as default.]]>
  35734. </doc>
  35735. </method>
  35736. <method name="openConnection" return="java.net.HttpURLConnection"
  35737. abstract="false" native="false" synchronized="false"
  35738. static="false" final="false" visibility="public"
  35739. deprecated="not deprecated">
  35740. <param name="url" type="java.net.URL"/>
  35741. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35742. <exception name="IOException" type="java.io.IOException"/>
  35743. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35744. <doc>
  35745. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  35746. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35747. @param token the authentication token being used for the user.
  35748. @return an authenticated {@link HttpURLConnection}.
  35749. @throws IOException if an IO error occurred.
  35750. @throws AuthenticationException if an authentication exception occurred.]]>
  35751. </doc>
  35752. </method>
  35753. <method name="injectToken"
  35754. abstract="false" native="false" synchronized="false"
  35755. static="true" final="false" visibility="public"
  35756. deprecated="not deprecated">
  35757. <param name="conn" type="java.net.HttpURLConnection"/>
  35758. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35759. <doc>
  35760. <![CDATA[Helper method that injects an authentication token to send with a connection.
  35761. @param conn connection to inject the authentication token into.
  35762. @param token authentication token to inject.]]>
  35763. </doc>
  35764. </method>
  35765. <method name="extractToken"
  35766. abstract="false" native="false" synchronized="false"
  35767. static="true" final="false" visibility="public"
  35768. deprecated="not deprecated">
  35769. <param name="conn" type="java.net.HttpURLConnection"/>
  35770. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35771. <exception name="IOException" type="java.io.IOException"/>
  35772. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35773. <doc>
  35774. <![CDATA[Helper method that extracts an authentication token received from a connection.
  35775. <p/>
  35776. This method is used by {@link Authenticator} implementations.
  35777. @param conn connection to extract the authentication token from.
  35778. @param token the authentication token.
  35779. @throws IOException if an IO error occurred.
  35780. @throws AuthenticationException if an authentication exception occurred.]]>
  35781. </doc>
  35782. </method>
  35783. <field name="AUTH_COOKIE" type="java.lang.String"
  35784. transient="false" volatile="false"
  35785. static="true" final="true" visibility="public"
  35786. deprecated="not deprecated">
  35787. <doc>
  35788. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  35789. </doc>
  35790. </field>
  35791. <doc>
  35792. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  35793. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  35794. <p/>
  35795. The authentication mechanisms supported by default are Hadoop Simple authentication
  35796. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  35797. <p/>
  35798. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  35799. <p/>
  35800. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  35801. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  35802. <p/>
  35803. <code>AuthenticatedURL</code> instances are not thread-safe.
  35804. <p/>
  35805. The usage pattern of the {@link AuthenticatedURL} is:
  35806. <p/>
  35807. <pre>
  35808. // establishing an initial connection
  35809. URL url = new URL("http://foo:8080/bar");
  35810. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  35811. AuthenticatedURL aUrl = new AuthenticatedURL();
  35812. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35813. ....
  35814. // use the 'conn' instance
  35815. ....
  35816. // establishing a follow up connection using a token from the previous connection
  35817. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35818. ....
  35819. // use the 'conn' instance
  35820. ....
  35821. </pre>]]>
  35822. </doc>
  35823. </class>
  35824. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35825. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35826. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  35827. abstract="false"
  35828. static="true" final="false" visibility="public"
  35829. deprecated="not deprecated">
  35830. <constructor name="AuthenticatedURL.Token"
  35831. static="false" final="false" visibility="public"
  35832. deprecated="not deprecated">
  35833. <doc>
  35834. <![CDATA[Creates a token.]]>
  35835. </doc>
  35836. </constructor>
  35837. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  35838. static="false" final="false" visibility="public"
  35839. deprecated="not deprecated">
  35840. <doc>
  35841. <![CDATA[Creates a token using an existing string representation of the token.
  35842. @param tokenStr string representation of the tokenStr.]]>
  35843. </doc>
  35844. </constructor>
  35845. <method name="isSet" return="boolean"
  35846. abstract="false" native="false" synchronized="false"
  35847. static="false" final="false" visibility="public"
  35848. deprecated="not deprecated">
  35849. <doc>
  35850. <![CDATA[Returns if a token from the server has been set.
  35851. @return if a token from the server has been set.]]>
  35852. </doc>
  35853. </method>
  35854. <method name="toString" return="java.lang.String"
  35855. abstract="false" native="false" synchronized="false"
  35856. static="false" final="false" visibility="public"
  35857. deprecated="not deprecated">
  35858. <doc>
  35859. <![CDATA[Returns the string representation of the token.
  35860. @return the string representation of the token.]]>
  35861. </doc>
  35862. </method>
  35863. <method name="hashCode" return="int"
  35864. abstract="false" native="false" synchronized="false"
  35865. static="false" final="false" visibility="public"
  35866. deprecated="not deprecated">
  35867. <doc>
  35868. <![CDATA[Return the hashcode for the token.
  35869. @return the hashcode for the token.]]>
  35870. </doc>
  35871. </method>
  35872. <method name="equals" return="boolean"
  35873. abstract="false" native="false" synchronized="false"
  35874. static="false" final="false" visibility="public"
  35875. deprecated="not deprecated">
  35876. <param name="o" type="java.lang.Object"/>
  35877. <doc>
  35878. <![CDATA[Return if two token instances are equal.
  35879. @param o the other token instance.
  35880. @return if this instance and the other instance are equal.]]>
  35881. </doc>
  35882. </method>
  35883. <doc>
  35884. <![CDATA[Client side authentication token.]]>
  35885. </doc>
  35886. </class>
  35887. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35888. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35889. <class name="AuthenticationException" extends="java.lang.Exception"
  35890. abstract="false"
  35891. static="false" final="false" visibility="public"
  35892. deprecated="not deprecated">
  35893. <constructor name="AuthenticationException" type="java.lang.Throwable"
  35894. static="false" final="false" visibility="public"
  35895. deprecated="not deprecated">
  35896. <doc>
  35897. <![CDATA[Creates an {@link AuthenticationException}.
  35898. @param cause original exception.]]>
  35899. </doc>
  35900. </constructor>
  35901. <constructor name="AuthenticationException" type="java.lang.String"
  35902. static="false" final="false" visibility="public"
  35903. deprecated="not deprecated">
  35904. <doc>
  35905. <![CDATA[Creates an {@link AuthenticationException}.
  35906. @param msg exception message.]]>
  35907. </doc>
  35908. </constructor>
  35909. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  35910. static="false" final="false" visibility="public"
  35911. deprecated="not deprecated">
  35912. <doc>
  35913. <![CDATA[Creates an {@link AuthenticationException}.
  35914. @param msg exception message.
  35915. @param cause original exception.]]>
  35916. </doc>
  35917. </constructor>
  35918. <doc>
  35919. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  35920. </doc>
  35921. </class>
  35922. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35923. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35924. <interface name="Authenticator" abstract="true"
  35925. static="false" final="false" visibility="public"
  35926. deprecated="not deprecated">
  35927. <method name="authenticate"
  35928. abstract="false" native="false" synchronized="false"
  35929. static="false" final="false" visibility="public"
  35930. deprecated="not deprecated">
  35931. <param name="url" type="java.net.URL"/>
  35932. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35933. <exception name="IOException" type="java.io.IOException"/>
  35934. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35935. <doc>
  35936. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  35937. used by subsequent requests.
  35938. @param url the URl to authenticate against.
  35939. @param token the authentication token being used for the user.
  35940. @throws IOException if an IO error occurred.
  35941. @throws AuthenticationException if an authentication error occurred.]]>
  35942. </doc>
  35943. </method>
  35944. <doc>
  35945. <![CDATA[Interface for client authentication mechanisms.
  35946. <p/>
  35947. Implementations are use-once instances, they don't need to be thread safe.]]>
  35948. </doc>
  35949. </interface>
  35950. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35951. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  35952. <class name="KerberosAuthenticator" extends="java.lang.Object"
  35953. abstract="false"
  35954. static="false" final="false" visibility="public"
  35955. deprecated="not deprecated">
  35956. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35957. <constructor name="KerberosAuthenticator"
  35958. static="false" final="false" visibility="public"
  35959. deprecated="not deprecated">
  35960. </constructor>
  35961. <method name="authenticate"
  35962. abstract="false" native="false" synchronized="false"
  35963. static="false" final="false" visibility="public"
  35964. deprecated="not deprecated">
  35965. <param name="url" type="java.net.URL"/>
  35966. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35967. <exception name="IOException" type="java.io.IOException"/>
  35968. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35969. <doc>
  35970. <![CDATA[Performs SPNEGO authentication against the specified URL.
  35971. <p/>
  35972. If a token is given it does a NOP and returns the given token.
  35973. <p/>
  35974. If no token is given, it will perform the SPNEGO authentication sequence using an
  35975. HTTP <code>OPTIONS</code> request.
  35976. @param url the URl to authenticate against.
  35977. @param token the authentication token being used for the user.
  35978. @throws IOException if an IO error occurred.
  35979. @throws AuthenticationException if an authentication error occurred.]]>
  35980. </doc>
  35981. </method>
  35982. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  35983. abstract="false" native="false" synchronized="false"
  35984. static="false" final="false" visibility="protected"
  35985. deprecated="not deprecated">
  35986. <doc>
  35987. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  35988. <p/>
  35989. This implementation returns a {@link PseudoAuthenticator}.
  35990. @return the fallback {@link Authenticator}.]]>
  35991. </doc>
  35992. </method>
  35993. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  35994. transient="false" volatile="false"
  35995. static="true" final="true" visibility="public"
  35996. deprecated="not deprecated">
  35997. <doc>
  35998. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  35999. </doc>
  36000. </field>
  36001. <field name="AUTHORIZATION" type="java.lang.String"
  36002. transient="false" volatile="false"
  36003. static="true" final="true" visibility="public"
  36004. deprecated="not deprecated">
  36005. <doc>
  36006. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  36007. </doc>
  36008. </field>
  36009. <field name="NEGOTIATE" type="java.lang.String"
  36010. transient="false" volatile="false"
  36011. static="true" final="true" visibility="public"
  36012. deprecated="not deprecated">
  36013. <doc>
  36014. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  36015. </doc>
  36016. </field>
  36017. <doc>
  36018. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  36019. <p/>
  36020. It uses the default principal for the Kerberos cache (normally set via kinit).
  36021. <p/>
  36022. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  36023. sequence.]]>
  36024. </doc>
  36025. </class>
  36026. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  36027. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  36028. <class name="PseudoAuthenticator" extends="java.lang.Object"
  36029. abstract="false"
  36030. static="false" final="false" visibility="public"
  36031. deprecated="not deprecated">
  36032. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  36033. <constructor name="PseudoAuthenticator"
  36034. static="false" final="false" visibility="public"
  36035. deprecated="not deprecated">
  36036. </constructor>
  36037. <method name="authenticate"
  36038. abstract="false" native="false" synchronized="false"
  36039. static="false" final="false" visibility="public"
  36040. deprecated="not deprecated">
  36041. <param name="url" type="java.net.URL"/>
  36042. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36043. <exception name="IOException" type="java.io.IOException"/>
  36044. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36045. <doc>
  36046. <![CDATA[Performs simple authentication against the specified URL.
  36047. <p/>
  36048. If a token is given it does a NOP and returns the given token.
  36049. <p/>
  36050. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  36051. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  36052. method.
  36053. <p/>
  36054. If the response is successful it will update the authentication token.
  36055. @param url the URl to authenticate against.
  36056. @param token the authencation token being used for the user.
  36057. @throws IOException if an IO error occurred.
  36058. @throws AuthenticationException if an authentication error occurred.]]>
  36059. </doc>
  36060. </method>
  36061. <method name="getUserName" return="java.lang.String"
  36062. abstract="false" native="false" synchronized="false"
  36063. static="false" final="false" visibility="protected"
  36064. deprecated="not deprecated">
  36065. <doc>
  36066. <![CDATA[Returns the current user name.
  36067. <p/>
  36068. This implementation returns the value of the Java system property 'user.name'
  36069. @return the current user name.]]>
  36070. </doc>
  36071. </method>
  36072. <field name="USER_NAME" type="java.lang.String"
  36073. transient="false" volatile="false"
  36074. static="true" final="true" visibility="public"
  36075. deprecated="not deprecated">
  36076. <doc>
  36077. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  36078. </doc>
  36079. </field>
  36080. <doc>
  36081. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  36082. Simple authentication, it trusts the value of the 'user.name' Java System property.
  36083. <p/>
  36084. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  36085. </doc>
  36086. </class>
  36087. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  36088. </package>
  36089. <package name="org.apache.hadoop.security.authentication.server">
  36090. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  36091. <class name="AuthenticationFilter" extends="java.lang.Object"
  36092. abstract="false"
  36093. static="false" final="false" visibility="public"
  36094. deprecated="not deprecated">
  36095. <implements name="javax.servlet.Filter"/>
  36096. <constructor name="AuthenticationFilter"
  36097. static="false" final="false" visibility="public"
  36098. deprecated="not deprecated">
  36099. </constructor>
  36100. <method name="init"
  36101. abstract="false" native="false" synchronized="false"
  36102. static="false" final="false" visibility="public"
  36103. deprecated="not deprecated">
  36104. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  36105. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36106. <doc>
  36107. <![CDATA[Initializes the authentication filter.
  36108. <p/>
  36109. It instantiates and initializes the specified {@link AuthenticationHandler}.
  36110. <p/>
  36111. @param filterConfig filter configuration.
  36112. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  36113. </doc>
  36114. </method>
  36115. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  36116. abstract="false" native="false" synchronized="false"
  36117. static="false" final="false" visibility="protected"
  36118. deprecated="not deprecated">
  36119. <doc>
  36120. <![CDATA[Returns the authentication handler being used.
  36121. @return the authentication handler being used.]]>
  36122. </doc>
  36123. </method>
  36124. <method name="isRandomSecret" return="boolean"
  36125. abstract="false" native="false" synchronized="false"
  36126. static="false" final="false" visibility="protected"
  36127. deprecated="not deprecated">
  36128. <doc>
  36129. <![CDATA[Returns if a random secret is being used.
  36130. @return if a random secret is being used.]]>
  36131. </doc>
  36132. </method>
  36133. <method name="getValidity" return="long"
  36134. abstract="false" native="false" synchronized="false"
  36135. static="false" final="false" visibility="protected"
  36136. deprecated="not deprecated">
  36137. <doc>
  36138. <![CDATA[Returns the validity time of the generated tokens.
  36139. @return the validity time of the generated tokens, in seconds.]]>
  36140. </doc>
  36141. </method>
  36142. <method name="getCookieDomain" return="java.lang.String"
  36143. abstract="false" native="false" synchronized="false"
  36144. static="false" final="false" visibility="protected"
  36145. deprecated="not deprecated">
  36146. <doc>
  36147. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  36148. @return the cookie domain to use for the HTTP cookie.]]>
  36149. </doc>
  36150. </method>
  36151. <method name="getCookiePath" return="java.lang.String"
  36152. abstract="false" native="false" synchronized="false"
  36153. static="false" final="false" visibility="protected"
  36154. deprecated="not deprecated">
  36155. <doc>
  36156. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  36157. @return the cookie path to use for the HTTP cookie.]]>
  36158. </doc>
  36159. </method>
  36160. <method name="destroy"
  36161. abstract="false" native="false" synchronized="false"
  36162. static="false" final="false" visibility="public"
  36163. deprecated="not deprecated">
  36164. <doc>
  36165. <![CDATA[Destroys the filter.
  36166. <p/>
  36167. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  36168. </doc>
  36169. </method>
  36170. <method name="getConfiguration" return="java.util.Properties"
  36171. abstract="false" native="false" synchronized="false"
  36172. static="false" final="false" visibility="protected"
  36173. deprecated="not deprecated">
  36174. <param name="configPrefix" type="java.lang.String"/>
  36175. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  36176. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36177. <doc>
  36178. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  36179. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  36180. {@link AuthenticationHandler}.
  36181. <p/>
  36182. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  36183. the web.xml file.
  36184. @param configPrefix configuration prefix to use for extracting configuration properties.
  36185. @param filterConfig filter configuration object
  36186. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  36187. @throws ServletException thrown if the configuration could not be created.]]>
  36188. </doc>
  36189. </method>
  36190. <method name="getRequestURL" return="java.lang.String"
  36191. abstract="false" native="false" synchronized="false"
  36192. static="false" final="false" visibility="protected"
  36193. deprecated="not deprecated">
  36194. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36195. <doc>
  36196. <![CDATA[Returns the full URL of the request including the query string.
  36197. <p/>
  36198. Used as a convenience method for logging purposes.
  36199. @param request the request object.
  36200. @return the full URL of the request including the query string.]]>
  36201. </doc>
  36202. </method>
  36203. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36204. abstract="false" native="false" synchronized="false"
  36205. static="false" final="false" visibility="protected"
  36206. deprecated="not deprecated">
  36207. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36208. <exception name="IOException" type="java.io.IOException"/>
  36209. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36210. <doc>
  36211. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  36212. <p/>
  36213. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  36214. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  36215. it.
  36216. <p/>
  36217. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  36218. to perform user authentication.
  36219. @param request request object.
  36220. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  36221. @throws IOException thrown if an IO error occurred.
  36222. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  36223. </doc>
  36224. </method>
  36225. <method name="doFilter"
  36226. abstract="false" native="false" synchronized="false"
  36227. static="false" final="false" visibility="public"
  36228. deprecated="not deprecated">
  36229. <param name="request" type="javax.servlet.ServletRequest"/>
  36230. <param name="response" type="javax.servlet.ServletResponse"/>
  36231. <param name="filterChain" type="javax.servlet.FilterChain"/>
  36232. <exception name="IOException" type="java.io.IOException"/>
  36233. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36234. <doc>
  36235. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  36236. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  36237. @param request the request object.
  36238. @param response the response object.
  36239. @param filterChain the filter chain object.
  36240. @throws IOException thrown if an IO error occurred.
  36241. @throws ServletException thrown if a processing error occurred.]]>
  36242. </doc>
  36243. </method>
  36244. <method name="createCookie" return="javax.servlet.http.Cookie"
  36245. abstract="false" native="false" synchronized="false"
  36246. static="false" final="false" visibility="protected"
  36247. deprecated="not deprecated">
  36248. <param name="token" type="java.lang.String"/>
  36249. <doc>
  36250. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  36251. <p/>
  36252. It sets the domain and path specified in the configuration.
  36253. @param token authentication token for the cookie.
  36254. @return the HTTP cookie.]]>
  36255. </doc>
  36256. </method>
  36257. <field name="CONFIG_PREFIX" 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 property that specifies the configuration prefix.]]>
  36263. </doc>
  36264. </field>
  36265. <field name="AUTH_TYPE" type="java.lang.String"
  36266. transient="false" volatile="false"
  36267. static="true" final="true" visibility="public"
  36268. deprecated="not deprecated">
  36269. <doc>
  36270. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  36271. </doc>
  36272. </field>
  36273. <field name="SIGNATURE_SECRET" type="java.lang.String"
  36274. transient="false" volatile="false"
  36275. static="true" final="true" visibility="public"
  36276. deprecated="not deprecated">
  36277. <doc>
  36278. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  36279. </doc>
  36280. </field>
  36281. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  36282. transient="false" volatile="false"
  36283. static="true" final="true" visibility="public"
  36284. deprecated="not deprecated">
  36285. <doc>
  36286. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  36287. </doc>
  36288. </field>
  36289. <field name="COOKIE_DOMAIN" type="java.lang.String"
  36290. transient="false" volatile="false"
  36291. static="true" final="true" visibility="public"
  36292. deprecated="not deprecated">
  36293. <doc>
  36294. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  36295. </doc>
  36296. </field>
  36297. <field name="COOKIE_PATH" type="java.lang.String"
  36298. transient="false" volatile="false"
  36299. static="true" final="true" visibility="public"
  36300. deprecated="not deprecated">
  36301. <doc>
  36302. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  36303. </doc>
  36304. </field>
  36305. <doc>
  36306. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  36307. authentication mechanisms.
  36308. <p/>
  36309. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  36310. <p/>
  36311. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  36312. <p/>
  36313. This filter delegates to the configured authentication handler for authentication and once it obtains an
  36314. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  36315. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  36316. and lets the request proceed to the target resource.
  36317. <p/>
  36318. The supported configuration properties are:
  36319. <ul>
  36320. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  36321. is no prefix. See below for details on how/why this prefix is used.</li>
  36322. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  36323. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  36324. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  36325. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  36326. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  36327. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  36328. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  36329. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  36330. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  36331. </ul>
  36332. <p/>
  36333. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  36334. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  36335. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  36336. not start with the prefix will not be passed to the authentication handler initialization.]]>
  36337. </doc>
  36338. </class>
  36339. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  36340. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  36341. <interface name="AuthenticationHandler" abstract="true"
  36342. static="false" final="false" visibility="public"
  36343. deprecated="not deprecated">
  36344. <method name="getType" return="java.lang.String"
  36345. abstract="false" native="false" synchronized="false"
  36346. static="false" final="false" visibility="public"
  36347. deprecated="not deprecated">
  36348. <doc>
  36349. <![CDATA[Returns the authentication type of the authentication handler.
  36350. <p/>
  36351. This should be a name that uniquely identifies the authentication type.
  36352. For example 'simple' or 'kerberos'.
  36353. @return the authentication type of the authentication handler.]]>
  36354. </doc>
  36355. </method>
  36356. <method name="init"
  36357. abstract="false" native="false" synchronized="false"
  36358. static="false" final="false" visibility="public"
  36359. deprecated="not deprecated">
  36360. <param name="config" type="java.util.Properties"/>
  36361. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36362. <doc>
  36363. <![CDATA[Initializes the authentication handler instance.
  36364. <p/>
  36365. This method is invoked by the {@link AuthenticationFilter#init} method.
  36366. @param config configuration properties to initialize the handler.
  36367. @throws ServletException thrown if the handler could not be initialized.]]>
  36368. </doc>
  36369. </method>
  36370. <method name="destroy"
  36371. abstract="false" native="false" synchronized="false"
  36372. static="false" final="false" visibility="public"
  36373. deprecated="not deprecated">
  36374. <doc>
  36375. <![CDATA[Destroys the authentication handler instance.
  36376. <p/>
  36377. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  36378. </doc>
  36379. </method>
  36380. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36381. abstract="false" native="false" synchronized="false"
  36382. static="false" final="false" visibility="public"
  36383. deprecated="not deprecated">
  36384. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36385. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36386. <exception name="IOException" type="java.io.IOException"/>
  36387. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36388. <doc>
  36389. <![CDATA[Performs an authentication step for the given HTTP client request.
  36390. <p/>
  36391. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  36392. not yet authenticated.
  36393. <p/>
  36394. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  36395. end up making a sequence of invocations before authentication is successfully established (this is
  36396. the case of Kerberos SPNEGO).
  36397. <p/>
  36398. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  36399. been successfully and fully authenticated.
  36400. <p/>
  36401. If the HTTP client request has not been completely authenticated, this method must take over
  36402. the corresponding HTTP response and it must return <code>null</code>.
  36403. @param request the HTTP client request.
  36404. @param response the HTTP client response.
  36405. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  36406. <code>null</code> otherwise (in this case it must take care of the response).
  36407. @throws IOException thrown if an IO error occurred.
  36408. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  36409. </doc>
  36410. </method>
  36411. <doc>
  36412. <![CDATA[Interface for server authentication mechanisms.
  36413. <p/>
  36414. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  36415. <p/>
  36416. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  36417. </doc>
  36418. </interface>
  36419. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  36420. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  36421. <class name="AuthenticationToken" extends="java.lang.Object"
  36422. abstract="false"
  36423. static="false" final="false" visibility="public"
  36424. deprecated="not deprecated">
  36425. <implements name="java.security.Principal"/>
  36426. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  36427. static="false" final="false" visibility="public"
  36428. deprecated="not deprecated">
  36429. <doc>
  36430. <![CDATA[Creates an authentication token.
  36431. @param userName user name.
  36432. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  36433. name while the userName is the short name).
  36434. @param type the authentication mechanism name.
  36435. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  36436. </doc>
  36437. </constructor>
  36438. <method name="setExpires"
  36439. abstract="false" native="false" synchronized="false"
  36440. static="false" final="false" visibility="public"
  36441. deprecated="not deprecated">
  36442. <param name="expires" type="long"/>
  36443. <doc>
  36444. <![CDATA[Sets the expiration of the token.
  36445. @param expires expiration time of the token in milliseconds since the epoch.]]>
  36446. </doc>
  36447. </method>
  36448. <method name="getUserName" return="java.lang.String"
  36449. abstract="false" native="false" synchronized="false"
  36450. static="false" final="false" visibility="public"
  36451. deprecated="not deprecated">
  36452. <doc>
  36453. <![CDATA[Returns the user name.
  36454. @return the user name.]]>
  36455. </doc>
  36456. </method>
  36457. <method name="getName" return="java.lang.String"
  36458. abstract="false" native="false" synchronized="false"
  36459. static="false" final="false" visibility="public"
  36460. deprecated="not deprecated">
  36461. <doc>
  36462. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  36463. @return the principal name.]]>
  36464. </doc>
  36465. </method>
  36466. <method name="getType" return="java.lang.String"
  36467. abstract="false" native="false" synchronized="false"
  36468. static="false" final="false" visibility="public"
  36469. deprecated="not deprecated">
  36470. <doc>
  36471. <![CDATA[Returns the authentication mechanism of the token.
  36472. @return the authentication mechanism of the token.]]>
  36473. </doc>
  36474. </method>
  36475. <method name="getExpires" return="long"
  36476. abstract="false" native="false" synchronized="false"
  36477. static="false" final="false" visibility="public"
  36478. deprecated="not deprecated">
  36479. <doc>
  36480. <![CDATA[Returns the expiration time of the token.
  36481. @return the expiration time of the token, in milliseconds since Epoc.]]>
  36482. </doc>
  36483. </method>
  36484. <method name="isExpired" return="boolean"
  36485. abstract="false" native="false" synchronized="false"
  36486. static="false" final="false" visibility="public"
  36487. deprecated="not deprecated">
  36488. <doc>
  36489. <![CDATA[Returns if the token has expired.
  36490. @return if the token has expired.]]>
  36491. </doc>
  36492. </method>
  36493. <method name="toString" return="java.lang.String"
  36494. abstract="false" native="false" synchronized="false"
  36495. static="false" final="false" visibility="public"
  36496. deprecated="not deprecated">
  36497. <doc>
  36498. <![CDATA[Returns the string representation of the token.
  36499. <p/>
  36500. This string representation is parseable by the {@link #parse} method.
  36501. @return the string representation of the token.]]>
  36502. </doc>
  36503. </method>
  36504. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36505. abstract="false" native="false" synchronized="false"
  36506. static="true" final="false" visibility="public"
  36507. deprecated="not deprecated">
  36508. <param name="tokenStr" type="java.lang.String"/>
  36509. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36510. <doc>
  36511. <![CDATA[Parses a string into an authentication token.
  36512. @param tokenStr string representation of a token.
  36513. @return the parsed authentication token.
  36514. @throws AuthenticationException thrown if the string representation could not be parsed into
  36515. an authentication token.]]>
  36516. </doc>
  36517. </method>
  36518. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36519. transient="false" volatile="false"
  36520. static="true" final="true" visibility="public"
  36521. deprecated="not deprecated">
  36522. <doc>
  36523. <![CDATA[Constant that identifies an anonymous request.]]>
  36524. </doc>
  36525. </field>
  36526. <doc>
  36527. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated HTTP client and doubles
  36528. as the {@link Principal} to be returned by authenticated {@link HttpServletRequest}s
  36529. <p/>
  36530. The token can be serialized/deserialized to and from a string as it is sent and received in HTTP client
  36531. responses and requests as a HTTP cookie (this is done by the {@link AuthenticationFilter}).]]>
  36532. </doc>
  36533. </class>
  36534. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  36535. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  36536. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  36537. abstract="false"
  36538. static="false" final="false" visibility="public"
  36539. deprecated="not deprecated">
  36540. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  36541. <constructor name="KerberosAuthenticationHandler"
  36542. static="false" final="false" visibility="public"
  36543. deprecated="not deprecated">
  36544. </constructor>
  36545. <method name="init"
  36546. abstract="false" native="false" synchronized="false"
  36547. static="false" final="false" visibility="public"
  36548. deprecated="not deprecated">
  36549. <param name="config" type="java.util.Properties"/>
  36550. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36551. <doc>
  36552. <![CDATA[Initializes the authentication handler instance.
  36553. <p/>
  36554. It creates a Kerberos context using the principal and keytab specified in the configuration.
  36555. <p/>
  36556. This method is invoked by the {@link AuthenticationFilter#init} method.
  36557. @param config configuration properties to initialize the handler.
  36558. @throws ServletException thrown if the handler could not be initialized.]]>
  36559. </doc>
  36560. </method>
  36561. <method name="destroy"
  36562. abstract="false" native="false" synchronized="false"
  36563. static="false" final="false" visibility="public"
  36564. deprecated="not deprecated">
  36565. <doc>
  36566. <![CDATA[Releases any resources initialized by the authentication handler.
  36567. <p/>
  36568. It destroys the Kerberos context.]]>
  36569. </doc>
  36570. </method>
  36571. <method name="getType" return="java.lang.String"
  36572. abstract="false" native="false" synchronized="false"
  36573. static="false" final="false" visibility="public"
  36574. deprecated="not deprecated">
  36575. <doc>
  36576. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  36577. <p/>
  36578. @return the authentication type of the authentication handler, 'kerberos'.]]>
  36579. </doc>
  36580. </method>
  36581. <method name="getPrincipal" return="java.lang.String"
  36582. abstract="false" native="false" synchronized="false"
  36583. static="false" final="false" visibility="protected"
  36584. deprecated="not deprecated">
  36585. <doc>
  36586. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  36587. @return the Kerberos principal used by the authentication handler.]]>
  36588. </doc>
  36589. </method>
  36590. <method name="getKeytab" return="java.lang.String"
  36591. abstract="false" native="false" synchronized="false"
  36592. static="false" final="false" visibility="protected"
  36593. deprecated="not deprecated">
  36594. <doc>
  36595. <![CDATA[Returns the keytab used by the authentication handler.
  36596. @return the keytab used by the authentication handler.]]>
  36597. </doc>
  36598. </method>
  36599. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36600. abstract="false" native="false" synchronized="false"
  36601. static="false" final="false" visibility="public"
  36602. deprecated="not deprecated">
  36603. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36604. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36605. <exception name="IOException" type="java.io.IOException"/>
  36606. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36607. <doc>
  36608. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  36609. after the Kerberos SPNEGO sequence has completed successfully.
  36610. <p/>
  36611. @param request the HTTP client request.
  36612. @param response the HTTP client response.
  36613. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  36614. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  36615. @throws IOException thrown if an IO error occurred.
  36616. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  36617. </doc>
  36618. </method>
  36619. <field name="TYPE" type="java.lang.String"
  36620. transient="false" volatile="false"
  36621. static="true" final="true" visibility="public"
  36622. deprecated="not deprecated">
  36623. <doc>
  36624. <![CDATA[Constant that identifies the authentication mechanism.]]>
  36625. </doc>
  36626. </field>
  36627. <field name="PRINCIPAL" type="java.lang.String"
  36628. transient="false" volatile="false"
  36629. static="true" final="true" visibility="public"
  36630. deprecated="not deprecated">
  36631. <doc>
  36632. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  36633. </doc>
  36634. </field>
  36635. <field name="KEYTAB" type="java.lang.String"
  36636. transient="false" volatile="false"
  36637. static="true" final="true" visibility="public"
  36638. deprecated="not deprecated">
  36639. <doc>
  36640. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  36641. </doc>
  36642. </field>
  36643. <field name="NAME_RULES" type="java.lang.String"
  36644. transient="false" volatile="false"
  36645. static="true" final="true" visibility="public"
  36646. deprecated="not deprecated">
  36647. <doc>
  36648. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  36649. rules for the Kerberos principals.]]>
  36650. </doc>
  36651. </field>
  36652. <doc>
  36653. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  36654. <p/>
  36655. The supported configuration properties are:
  36656. <ul>
  36657. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  36658. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  36659. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  36660. It does not have a default value.</li>
  36661. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  36662. It does not have a default value.</li>
  36663. </ul>]]>
  36664. </doc>
  36665. </class>
  36666. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  36667. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36668. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  36669. abstract="false"
  36670. static="false" final="false" visibility="public"
  36671. deprecated="not deprecated">
  36672. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  36673. <constructor name="PseudoAuthenticationHandler"
  36674. static="false" final="false" visibility="public"
  36675. deprecated="not deprecated">
  36676. </constructor>
  36677. <method name="init"
  36678. abstract="false" native="false" synchronized="false"
  36679. static="false" final="false" visibility="public"
  36680. deprecated="not deprecated">
  36681. <param name="config" type="java.util.Properties"/>
  36682. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36683. <doc>
  36684. <![CDATA[Initializes the authentication handler instance.
  36685. <p/>
  36686. This method is invoked by the {@link AuthenticationFilter#init} method.
  36687. @param config configuration properties to initialize the handler.
  36688. @throws ServletException thrown if the handler could not be initialized.]]>
  36689. </doc>
  36690. </method>
  36691. <method name="getAcceptAnonymous" return="boolean"
  36692. abstract="false" native="false" synchronized="false"
  36693. static="false" final="false" visibility="protected"
  36694. deprecated="not deprecated">
  36695. <doc>
  36696. <![CDATA[Returns if the handler is configured to support anonymous users.
  36697. @return if the handler is configured to support anonymous users.]]>
  36698. </doc>
  36699. </method>
  36700. <method name="destroy"
  36701. abstract="false" native="false" synchronized="false"
  36702. static="false" final="false" visibility="public"
  36703. deprecated="not deprecated">
  36704. <doc>
  36705. <![CDATA[Releases any resources initialized by the authentication handler.
  36706. <p/>
  36707. This implementation does a NOP.]]>
  36708. </doc>
  36709. </method>
  36710. <method name="getType" return="java.lang.String"
  36711. abstract="false" native="false" synchronized="false"
  36712. static="false" final="false" visibility="public"
  36713. deprecated="not deprecated">
  36714. <doc>
  36715. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  36716. <p/>
  36717. @return the authentication type of the authentication handler, 'simple'.]]>
  36718. </doc>
  36719. </method>
  36720. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36721. abstract="false" native="false" synchronized="false"
  36722. static="false" final="false" visibility="public"
  36723. deprecated="not deprecated">
  36724. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36725. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36726. <exception name="IOException" type="java.io.IOException"/>
  36727. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36728. <doc>
  36729. <![CDATA[Authenticates an HTTP client request.
  36730. <p/>
  36731. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  36732. an {@link AuthenticationToken} with it.
  36733. <p/>
  36734. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36735. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  36736. token.
  36737. <p/>
  36738. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36739. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  36740. @param request the HTTP client request.
  36741. @param response the HTTP client response.
  36742. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  36743. @throws IOException thrown if an IO error occurred.
  36744. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  36745. </doc>
  36746. </method>
  36747. <field name="TYPE" type="java.lang.String"
  36748. transient="false" volatile="false"
  36749. static="true" final="true" visibility="public"
  36750. deprecated="not deprecated">
  36751. <doc>
  36752. <![CDATA[Constant that identifies the authentication mechanism.]]>
  36753. </doc>
  36754. </field>
  36755. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  36756. transient="false" volatile="false"
  36757. static="true" final="true" visibility="public"
  36758. deprecated="not deprecated">
  36759. <doc>
  36760. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  36761. </doc>
  36762. </field>
  36763. <doc>
  36764. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  36765. the user name specified as a query string parameter.
  36766. <p/>
  36767. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  36768. the configuration object.
  36769. <p/>
  36770. This handler can be configured to support anonymous users.
  36771. <p/>
  36772. The only supported configuration property is:
  36773. <ul>
  36774. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  36775. </ul>]]>
  36776. </doc>
  36777. </class>
  36778. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36779. </package>
  36780. <package name="org.apache.hadoop.security.authentication.util">
  36781. <!-- start class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  36782. <class name="KerberosUtil" extends="java.lang.Object"
  36783. abstract="false"
  36784. static="false" final="false" visibility="public"
  36785. deprecated="not deprecated">
  36786. <constructor name="KerberosUtil"
  36787. static="false" final="false" visibility="public"
  36788. deprecated="not deprecated">
  36789. </constructor>
  36790. <method name="getKrb5LoginModuleName" return="java.lang.String"
  36791. abstract="false" native="false" synchronized="false"
  36792. static="true" final="false" visibility="public"
  36793. deprecated="not deprecated">
  36794. </method>
  36795. <method name="getOidInstance" return="org.ietf.jgss.Oid"
  36796. abstract="false" native="false" synchronized="false"
  36797. static="true" final="false" visibility="public"
  36798. deprecated="not deprecated">
  36799. <param name="oidName" type="java.lang.String"/>
  36800. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  36801. <exception name="GSSException" type="org.ietf.jgss.GSSException"/>
  36802. <exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException"/>
  36803. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  36804. </method>
  36805. <method name="getDefaultRealm" return="java.lang.String"
  36806. abstract="false" native="false" synchronized="false"
  36807. static="true" final="false" visibility="public"
  36808. deprecated="not deprecated">
  36809. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  36810. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  36811. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  36812. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  36813. <exception name="InvocationTargetException" type="java.lang.reflect.InvocationTargetException"/>
  36814. </method>
  36815. </class>
  36816. <!-- end class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  36817. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  36818. <class name="Signer" extends="java.lang.Object"
  36819. abstract="false"
  36820. static="false" final="false" visibility="public"
  36821. deprecated="not deprecated">
  36822. <constructor name="Signer" type="byte[]"
  36823. static="false" final="false" visibility="public"
  36824. deprecated="not deprecated">
  36825. <doc>
  36826. <![CDATA[Creates a Signer instance using the specified secret.
  36827. @param secret secret to use for creating the digest.]]>
  36828. </doc>
  36829. </constructor>
  36830. <method name="sign" return="java.lang.String"
  36831. abstract="false" native="false" synchronized="false"
  36832. static="false" final="false" visibility="public"
  36833. deprecated="not deprecated">
  36834. <param name="str" type="java.lang.String"/>
  36835. <doc>
  36836. <![CDATA[Returns a signed string.
  36837. <p/>
  36838. The signature '&s=SIGNATURE' is appended at the end of the string.
  36839. @param str string to sign.
  36840. @return the signed string.]]>
  36841. </doc>
  36842. </method>
  36843. <method name="verifyAndExtract" return="java.lang.String"
  36844. abstract="false" native="false" synchronized="false"
  36845. static="false" final="false" visibility="public"
  36846. deprecated="not deprecated">
  36847. <param name="signedStr" type="java.lang.String"/>
  36848. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  36849. <doc>
  36850. <![CDATA[Verifies a signed string and extracts the original string.
  36851. @param signedStr the signed string to verify and extract.
  36852. @return the extracted original string.
  36853. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  36854. </doc>
  36855. </method>
  36856. <method name="computeSignature" return="java.lang.String"
  36857. abstract="false" native="false" synchronized="false"
  36858. static="false" final="false" visibility="protected"
  36859. deprecated="not deprecated">
  36860. <param name="str" type="java.lang.String"/>
  36861. <doc>
  36862. <![CDATA[Returns then signature of a string.
  36863. @param str string to sign.
  36864. @return the signature for the string.]]>
  36865. </doc>
  36866. </method>
  36867. <doc>
  36868. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  36869. </doc>
  36870. </class>
  36871. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  36872. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  36873. <class name="SignerException" extends="java.lang.Exception"
  36874. abstract="false"
  36875. static="false" final="false" visibility="public"
  36876. deprecated="not deprecated">
  36877. <constructor name="SignerException" type="java.lang.String"
  36878. static="false" final="false" visibility="public"
  36879. deprecated="not deprecated">
  36880. <doc>
  36881. <![CDATA[Creates an exception instance.
  36882. @param msg message for the exception.]]>
  36883. </doc>
  36884. </constructor>
  36885. <doc>
  36886. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  36887. </doc>
  36888. </class>
  36889. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  36890. </package>
  36891. <package name="org.apache.hadoop.security.authorize">
  36892. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  36893. <class name="AccessControlList" extends="java.lang.Object"
  36894. abstract="false"
  36895. static="false" final="false" visibility="public"
  36896. deprecated="not deprecated">
  36897. <implements name="org.apache.hadoop.io.Writable"/>
  36898. <constructor name="AccessControlList"
  36899. static="false" final="false" visibility="public"
  36900. deprecated="not deprecated">
  36901. <doc>
  36902. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  36903. </doc>
  36904. </constructor>
  36905. <constructor name="AccessControlList" type="java.lang.String"
  36906. static="false" final="false" visibility="public"
  36907. deprecated="not deprecated">
  36908. <doc>
  36909. <![CDATA[Construct a new ACL from a String representation of the same.
  36910. The String is a a comma separated list of users and groups.
  36911. The user list comes first and is separated by a space followed
  36912. by the group list. For e.g. "user1,user2 group1,group2"
  36913. @param aclString String representation of the ACL]]>
  36914. </doc>
  36915. </constructor>
  36916. <method name="isAllAllowed" return="boolean"
  36917. abstract="false" native="false" synchronized="false"
  36918. static="false" final="false" visibility="public"
  36919. deprecated="not deprecated">
  36920. </method>
  36921. <method name="addUser"
  36922. abstract="false" native="false" synchronized="false"
  36923. static="false" final="false" visibility="public"
  36924. deprecated="not deprecated">
  36925. <param name="user" type="java.lang.String"/>
  36926. </method>
  36927. <method name="isUserAllowed" return="boolean"
  36928. abstract="false" native="false" synchronized="false"
  36929. static="false" final="false" visibility="public"
  36930. deprecated="not deprecated">
  36931. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  36932. </method>
  36933. <method name="toString" return="java.lang.String"
  36934. abstract="false" native="false" synchronized="false"
  36935. static="false" final="false" visibility="public"
  36936. deprecated="not deprecated">
  36937. </method>
  36938. <method name="write"
  36939. abstract="false" native="false" synchronized="false"
  36940. static="false" final="false" visibility="public"
  36941. deprecated="not deprecated">
  36942. <param name="out" type="java.io.DataOutput"/>
  36943. <exception name="IOException" type="java.io.IOException"/>
  36944. </method>
  36945. <method name="readFields"
  36946. abstract="false" native="false" synchronized="false"
  36947. static="false" final="false" visibility="public"
  36948. deprecated="not deprecated">
  36949. <param name="in" type="java.io.DataInput"/>
  36950. <exception name="IOException" type="java.io.IOException"/>
  36951. </method>
  36952. <method name="getACLString" return="java.lang.String"
  36953. abstract="false" native="false" synchronized="false"
  36954. static="false" final="false" visibility="public"
  36955. deprecated="not deprecated">
  36956. <doc>
  36957. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  36958. return value, this String can be directly given to the constructor of
  36959. AccessControlList to build AccessControlList object.
  36960. This is the method used by the serialization method write().]]>
  36961. </doc>
  36962. </method>
  36963. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  36964. transient="false" volatile="false"
  36965. static="true" final="true" visibility="public"
  36966. deprecated="not deprecated">
  36967. </field>
  36968. <doc>
  36969. <![CDATA[Class representing a configured access control list.]]>
  36970. </doc>
  36971. </class>
  36972. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  36973. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  36974. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  36975. abstract="false"
  36976. static="false" final="false" visibility="public"
  36977. deprecated="not deprecated">
  36978. <constructor name="AuthorizationException"
  36979. static="false" final="false" visibility="public"
  36980. deprecated="not deprecated">
  36981. </constructor>
  36982. <constructor name="AuthorizationException" type="java.lang.String"
  36983. static="false" final="false" visibility="public"
  36984. deprecated="not deprecated">
  36985. </constructor>
  36986. <constructor name="AuthorizationException" type="java.lang.Throwable"
  36987. static="false" final="false" visibility="public"
  36988. deprecated="not deprecated">
  36989. <doc>
  36990. <![CDATA[Constructs a new exception with the specified cause and a detail
  36991. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  36992. typically contains the class and detail message of <tt>cause</tt>).
  36993. @param cause the cause (which is saved for later retrieval by the
  36994. {@link #getCause()} method). (A <tt>null</tt> value is
  36995. permitted, and indicates that the cause is nonexistent or
  36996. unknown.)]]>
  36997. </doc>
  36998. </constructor>
  36999. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  37000. abstract="false" native="false" synchronized="false"
  37001. static="false" final="false" visibility="public"
  37002. deprecated="not deprecated">
  37003. </method>
  37004. <method name="printStackTrace"
  37005. abstract="false" native="false" synchronized="false"
  37006. static="false" final="false" visibility="public"
  37007. deprecated="not deprecated">
  37008. </method>
  37009. <method name="printStackTrace"
  37010. abstract="false" native="false" synchronized="false"
  37011. static="false" final="false" visibility="public"
  37012. deprecated="not deprecated">
  37013. <param name="s" type="java.io.PrintStream"/>
  37014. </method>
  37015. <method name="printStackTrace"
  37016. abstract="false" native="false" synchronized="false"
  37017. static="false" final="false" visibility="public"
  37018. deprecated="not deprecated">
  37019. <param name="s" type="java.io.PrintWriter"/>
  37020. </method>
  37021. <doc>
  37022. <![CDATA[An exception class for authorization-related issues.
  37023. This class <em>does not</em> provide the stack trace for security purposes.]]>
  37024. </doc>
  37025. </class>
  37026. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  37027. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  37028. <class name="PolicyProvider" extends="java.lang.Object"
  37029. abstract="true"
  37030. static="false" final="false" visibility="public"
  37031. deprecated="not deprecated">
  37032. <constructor name="PolicyProvider"
  37033. static="false" final="false" visibility="public"
  37034. deprecated="not deprecated">
  37035. </constructor>
  37036. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  37037. abstract="true" native="false" synchronized="false"
  37038. static="false" final="false" visibility="public"
  37039. deprecated="not deprecated">
  37040. <doc>
  37041. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  37042. @return the {@link Service} definitions]]>
  37043. </doc>
  37044. </method>
  37045. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  37046. transient="false" volatile="false"
  37047. static="true" final="true" visibility="public"
  37048. deprecated="not deprecated">
  37049. <doc>
  37050. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  37051. </doc>
  37052. </field>
  37053. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  37054. transient="false" volatile="false"
  37055. static="true" final="true" visibility="public"
  37056. deprecated="not deprecated">
  37057. <doc>
  37058. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  37059. </doc>
  37060. </field>
  37061. <doc>
  37062. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  37063. security {@link Policy} in effect for Hadoop.]]>
  37064. </doc>
  37065. </class>
  37066. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  37067. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  37068. <class name="ProxyUsers" extends="java.lang.Object"
  37069. abstract="false"
  37070. static="false" final="false" visibility="public"
  37071. deprecated="not deprecated">
  37072. <constructor name="ProxyUsers"
  37073. static="false" final="false" visibility="public"
  37074. deprecated="not deprecated">
  37075. </constructor>
  37076. <method name="refreshSuperUserGroupsConfiguration"
  37077. abstract="false" native="false" synchronized="false"
  37078. static="true" final="false" visibility="public"
  37079. deprecated="not deprecated">
  37080. <doc>
  37081. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  37082. </doc>
  37083. </method>
  37084. <method name="refreshSuperUserGroupsConfiguration"
  37085. abstract="false" native="false" synchronized="true"
  37086. static="true" final="false" visibility="public"
  37087. deprecated="not deprecated">
  37088. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37089. <doc>
  37090. <![CDATA[refresh configuration
  37091. @param conf]]>
  37092. </doc>
  37093. </method>
  37094. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  37095. abstract="false" native="false" synchronized="false"
  37096. static="true" final="false" visibility="public"
  37097. deprecated="not deprecated">
  37098. <param name="userName" type="java.lang.String"/>
  37099. <doc>
  37100. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  37101. @param userName name of the superuser
  37102. @return configuration key for superuser groups]]>
  37103. </doc>
  37104. </method>
  37105. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  37106. abstract="false" native="false" synchronized="false"
  37107. static="true" final="false" visibility="public"
  37108. deprecated="not deprecated">
  37109. <param name="userName" type="java.lang.String"/>
  37110. <doc>
  37111. <![CDATA[Return configuration key for superuser ip addresses
  37112. @param userName name of the superuser
  37113. @return configuration key for superuser ip-addresses]]>
  37114. </doc>
  37115. </method>
  37116. <method name="authorize"
  37117. abstract="false" native="false" synchronized="true"
  37118. static="true" final="false" visibility="public"
  37119. deprecated="not deprecated">
  37120. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  37121. <param name="remoteAddress" type="java.lang.String"/>
  37122. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  37123. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  37124. <doc>
  37125. <![CDATA[Authorize the superuser which is doing doAs
  37126. @param user ugi of the effective or proxy user which contains a real user
  37127. @param remoteAddress the ip address of client
  37128. @param newConf configuration
  37129. @throws AuthorizationException]]>
  37130. </doc>
  37131. </method>
  37132. <field name="CONF_GROUPS" type="java.lang.String"
  37133. transient="false" volatile="false"
  37134. static="true" final="true" visibility="public"
  37135. deprecated="not deprecated">
  37136. </field>
  37137. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  37138. transient="false" volatile="false"
  37139. static="true" final="true" visibility="public"
  37140. deprecated="not deprecated">
  37141. </field>
  37142. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  37143. transient="false" volatile="false"
  37144. static="true" final="true" visibility="public"
  37145. deprecated="not deprecated">
  37146. </field>
  37147. </class>
  37148. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  37149. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  37150. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  37151. static="false" final="false" visibility="public"
  37152. deprecated="not deprecated">
  37153. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  37154. <method name="refreshServiceAcl"
  37155. abstract="false" native="false" synchronized="false"
  37156. static="false" final="false" visibility="public"
  37157. deprecated="not deprecated">
  37158. <exception name="IOException" type="java.io.IOException"/>
  37159. <doc>
  37160. <![CDATA[Refresh the service-level authorization policy in-effect.
  37161. @throws IOException]]>
  37162. </doc>
  37163. </method>
  37164. <field name="versionID" type="long"
  37165. transient="false" volatile="false"
  37166. static="true" final="true" visibility="public"
  37167. deprecated="not deprecated">
  37168. <doc>
  37169. <![CDATA[Version 1: Initial version]]>
  37170. </doc>
  37171. </field>
  37172. <doc>
  37173. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  37174. </doc>
  37175. </interface>
  37176. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  37177. <!-- start class org.apache.hadoop.security.authorize.Service -->
  37178. <class name="Service" extends="java.lang.Object"
  37179. abstract="false"
  37180. static="false" final="false" visibility="public"
  37181. deprecated="not deprecated">
  37182. <constructor name="Service" type="java.lang.String, java.lang.Class"
  37183. static="false" final="false" visibility="public"
  37184. deprecated="not deprecated">
  37185. </constructor>
  37186. <method name="getServiceKey" return="java.lang.String"
  37187. abstract="false" native="false" synchronized="false"
  37188. static="false" final="false" visibility="public"
  37189. deprecated="not deprecated">
  37190. <doc>
  37191. <![CDATA[Get the configuration key for the service.
  37192. @return the configuration key for the service]]>
  37193. </doc>
  37194. </method>
  37195. <method name="getProtocol" return="java.lang.Class"
  37196. abstract="false" native="false" synchronized="false"
  37197. static="false" final="false" visibility="public"
  37198. deprecated="not deprecated">
  37199. <doc>
  37200. <![CDATA[Get the protocol for the service
  37201. @return the {@link Class} for the protocol]]>
  37202. </doc>
  37203. </method>
  37204. <doc>
  37205. <![CDATA[An abstract definition of <em>service</em> as related to
  37206. Service Level Authorization for Hadoop.
  37207. Each service defines it's configuration key and also the necessary
  37208. {@link Permission} required to access the service.]]>
  37209. </doc>
  37210. </class>
  37211. <!-- end class org.apache.hadoop.security.authorize.Service -->
  37212. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  37213. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  37214. abstract="false"
  37215. static="false" final="false" visibility="public"
  37216. deprecated="not deprecated">
  37217. <constructor name="ServiceAuthorizationManager"
  37218. static="false" final="false" visibility="public"
  37219. deprecated="not deprecated">
  37220. </constructor>
  37221. <method name="authorize"
  37222. abstract="false" native="false" synchronized="false"
  37223. static="true" final="false" visibility="public"
  37224. deprecated="not deprecated">
  37225. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  37226. <param name="protocol" type="java.lang.Class"/>
  37227. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37228. <param name="addr" type="java.net.InetAddress"/>
  37229. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  37230. <doc>
  37231. <![CDATA[Authorize the user to access the protocol being used.
  37232. @param user user accessing the service
  37233. @param protocol service being accessed
  37234. @param conf configuration to use
  37235. @param addr InetAddress of the client
  37236. @throws AuthorizationException on authorization failure]]>
  37237. </doc>
  37238. </method>
  37239. <method name="refresh"
  37240. abstract="false" native="false" synchronized="true"
  37241. static="true" final="false" visibility="public"
  37242. deprecated="not deprecated">
  37243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37244. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  37245. </method>
  37246. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  37247. transient="false" volatile="false"
  37248. static="true" final="true" visibility="public"
  37249. deprecated="Use
  37250. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  37251. instead.">
  37252. <doc>
  37253. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  37254. @deprecated Use
  37255. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  37256. instead.]]>
  37257. </doc>
  37258. </field>
  37259. <doc>
  37260. <![CDATA[An authorization manager which handles service-level authorization
  37261. for incoming service requests.]]>
  37262. </doc>
  37263. </class>
  37264. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  37265. </package>
  37266. <package name="org.apache.hadoop.security.token">
  37267. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  37268. <class name="SecretManager" extends="java.lang.Object"
  37269. abstract="true"
  37270. static="false" final="false" visibility="public"
  37271. deprecated="not deprecated">
  37272. <constructor name="SecretManager"
  37273. static="false" final="false" visibility="public"
  37274. deprecated="not deprecated">
  37275. </constructor>
  37276. <method name="createPassword" return="byte[]"
  37277. abstract="true" native="false" synchronized="false"
  37278. static="false" final="false" visibility="protected"
  37279. deprecated="not deprecated">
  37280. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  37281. <doc>
  37282. <![CDATA[Create the password for the given identifier.
  37283. identifier may be modified inside this method.
  37284. @param identifier the identifier to use
  37285. @return the new password]]>
  37286. </doc>
  37287. </method>
  37288. <method name="retrievePassword" return="byte[]"
  37289. abstract="true" native="false" synchronized="false"
  37290. static="false" final="false" visibility="public"
  37291. deprecated="not deprecated">
  37292. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  37293. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37294. <doc>
  37295. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  37296. or registry to make sure the token hasn't expired or been revoked. Returns
  37297. the relevant password.
  37298. @param identifier the identifier to validate
  37299. @return the password to use
  37300. @throws InvalidToken the token was invalid]]>
  37301. </doc>
  37302. </method>
  37303. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  37304. abstract="true" native="false" synchronized="false"
  37305. static="false" final="false" visibility="public"
  37306. deprecated="not deprecated">
  37307. <doc>
  37308. <![CDATA[Create an empty token identifier.
  37309. @return the newly created empty token identifier]]>
  37310. </doc>
  37311. </method>
  37312. <method name="generateSecret" return="javax.crypto.SecretKey"
  37313. abstract="false" native="false" synchronized="false"
  37314. static="false" final="false" visibility="protected"
  37315. deprecated="not deprecated">
  37316. <doc>
  37317. <![CDATA[Generate a new random secret key.
  37318. @return the new key]]>
  37319. </doc>
  37320. </method>
  37321. <method name="createPassword" return="byte[]"
  37322. abstract="false" native="false" synchronized="false"
  37323. static="true" final="false" visibility="protected"
  37324. deprecated="not deprecated">
  37325. <param name="identifier" type="byte[]"/>
  37326. <param name="key" type="javax.crypto.SecretKey"/>
  37327. <doc>
  37328. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  37329. output as password
  37330. @param identifier the bytes of the identifier
  37331. @param key the secret key
  37332. @return the bytes of the generated password]]>
  37333. </doc>
  37334. </method>
  37335. <method name="createSecretKey" return="javax.crypto.SecretKey"
  37336. abstract="false" native="false" synchronized="false"
  37337. static="true" final="false" visibility="protected"
  37338. deprecated="not deprecated">
  37339. <param name="key" type="byte[]"/>
  37340. <doc>
  37341. <![CDATA[Convert the byte[] to a secret key
  37342. @param key the byte[] to create a secret key from
  37343. @return the secret key]]>
  37344. </doc>
  37345. </method>
  37346. <doc>
  37347. <![CDATA[The server-side secret manager for each token type.
  37348. @param <T> The type of the token identifier]]>
  37349. </doc>
  37350. </class>
  37351. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  37352. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  37353. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  37354. abstract="false"
  37355. static="true" final="false" visibility="public"
  37356. deprecated="not deprecated">
  37357. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  37358. static="false" final="false" visibility="public"
  37359. deprecated="not deprecated">
  37360. </constructor>
  37361. <doc>
  37362. <![CDATA[The token was invalid and the message explains why.]]>
  37363. </doc>
  37364. </class>
  37365. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  37366. <!-- start class org.apache.hadoop.security.token.Token -->
  37367. <class name="Token" extends="java.lang.Object"
  37368. abstract="false"
  37369. static="false" final="false" visibility="public"
  37370. deprecated="not deprecated">
  37371. <implements name="org.apache.hadoop.io.Writable"/>
  37372. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  37373. static="false" final="false" visibility="public"
  37374. deprecated="not deprecated">
  37375. <doc>
  37376. <![CDATA[Construct a token given a token identifier and a secret manager for the
  37377. type of the token identifier.
  37378. @param id the token identifier
  37379. @param mgr the secret manager]]>
  37380. </doc>
  37381. </constructor>
  37382. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  37383. static="false" final="false" visibility="public"
  37384. deprecated="not deprecated">
  37385. <doc>
  37386. <![CDATA[Construct a token from the components.
  37387. @param identifier the token identifier
  37388. @param password the token's password
  37389. @param kind the kind of token
  37390. @param service the service for this token]]>
  37391. </doc>
  37392. </constructor>
  37393. <constructor name="Token"
  37394. static="false" final="false" visibility="public"
  37395. deprecated="not deprecated">
  37396. <doc>
  37397. <![CDATA[Default constructor]]>
  37398. </doc>
  37399. </constructor>
  37400. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  37401. static="false" final="false" visibility="public"
  37402. deprecated="not deprecated">
  37403. <doc>
  37404. <![CDATA[Clone a token.
  37405. @param other the token to clone]]>
  37406. </doc>
  37407. </constructor>
  37408. <method name="getIdentifier" return="byte[]"
  37409. abstract="false" native="false" synchronized="false"
  37410. static="false" final="false" visibility="public"
  37411. deprecated="not deprecated">
  37412. <doc>
  37413. <![CDATA[Get the token identifier
  37414. @return the token identifier]]>
  37415. </doc>
  37416. </method>
  37417. <method name="getPassword" return="byte[]"
  37418. abstract="false" native="false" synchronized="false"
  37419. static="false" final="false" visibility="public"
  37420. deprecated="not deprecated">
  37421. <doc>
  37422. <![CDATA[Get the token password/secret
  37423. @return the token password/secret]]>
  37424. </doc>
  37425. </method>
  37426. <method name="getKind" return="org.apache.hadoop.io.Text"
  37427. abstract="false" native="false" synchronized="false"
  37428. static="false" final="false" visibility="public"
  37429. deprecated="not deprecated">
  37430. <doc>
  37431. <![CDATA[Get the token kind
  37432. @return the kind of the token]]>
  37433. </doc>
  37434. </method>
  37435. <method name="setKind"
  37436. abstract="false" native="false" synchronized="true"
  37437. static="false" final="false" visibility="public"
  37438. deprecated="not deprecated">
  37439. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  37440. <doc>
  37441. <![CDATA[Set the token kind. This is only intended to be used by services that
  37442. wrap another service's token, such as HFTP wrapping HDFS.
  37443. @param newKind]]>
  37444. </doc>
  37445. </method>
  37446. <method name="getService" return="org.apache.hadoop.io.Text"
  37447. abstract="false" native="false" synchronized="false"
  37448. static="false" final="false" visibility="public"
  37449. deprecated="not deprecated">
  37450. <doc>
  37451. <![CDATA[Get the service on which the token is supposed to be used
  37452. @return the service name]]>
  37453. </doc>
  37454. </method>
  37455. <method name="setService"
  37456. abstract="false" native="false" synchronized="false"
  37457. static="false" final="false" visibility="public"
  37458. deprecated="not deprecated">
  37459. <param name="newService" type="org.apache.hadoop.io.Text"/>
  37460. <doc>
  37461. <![CDATA[Set the service on which the token is supposed to be used
  37462. @param newService the service name]]>
  37463. </doc>
  37464. </method>
  37465. <method name="readFields"
  37466. abstract="false" native="false" synchronized="false"
  37467. static="false" final="false" visibility="public"
  37468. deprecated="not deprecated">
  37469. <param name="in" type="java.io.DataInput"/>
  37470. <exception name="IOException" type="java.io.IOException"/>
  37471. <doc>
  37472. <![CDATA[{@inheritDoc}]]>
  37473. </doc>
  37474. </method>
  37475. <method name="write"
  37476. abstract="false" native="false" synchronized="false"
  37477. static="false" final="false" visibility="public"
  37478. deprecated="not deprecated">
  37479. <param name="out" type="java.io.DataOutput"/>
  37480. <exception name="IOException" type="java.io.IOException"/>
  37481. <doc>
  37482. <![CDATA[{@inheritDoc}]]>
  37483. </doc>
  37484. </method>
  37485. <method name="encodeToUrlString" return="java.lang.String"
  37486. abstract="false" native="false" synchronized="false"
  37487. static="false" final="false" visibility="public"
  37488. deprecated="not deprecated">
  37489. <exception name="IOException" type="java.io.IOException"/>
  37490. <doc>
  37491. <![CDATA[Encode this token as a url safe string
  37492. @return the encoded string
  37493. @throws IOException]]>
  37494. </doc>
  37495. </method>
  37496. <method name="decodeFromUrlString"
  37497. abstract="false" native="false" synchronized="false"
  37498. static="false" final="false" visibility="public"
  37499. deprecated="not deprecated">
  37500. <param name="newValue" type="java.lang.String"/>
  37501. <exception name="IOException" type="java.io.IOException"/>
  37502. <doc>
  37503. <![CDATA[Decode the given url safe string into this token.
  37504. @param newValue the encoded string
  37505. @throws IOException]]>
  37506. </doc>
  37507. </method>
  37508. <method name="equals" return="boolean"
  37509. abstract="false" native="false" synchronized="false"
  37510. static="false" final="false" visibility="public"
  37511. deprecated="not deprecated">
  37512. <param name="right" type="java.lang.Object"/>
  37513. </method>
  37514. <method name="hashCode" return="int"
  37515. abstract="false" native="false" synchronized="false"
  37516. static="false" final="false" visibility="public"
  37517. deprecated="not deprecated">
  37518. </method>
  37519. <method name="toString" return="java.lang.String"
  37520. abstract="false" native="false" synchronized="false"
  37521. static="false" final="false" visibility="public"
  37522. deprecated="not deprecated">
  37523. </method>
  37524. <method name="isManaged" return="boolean"
  37525. abstract="false" native="false" synchronized="false"
  37526. static="false" final="false" visibility="public"
  37527. deprecated="not deprecated">
  37528. <exception name="IOException" type="java.io.IOException"/>
  37529. <doc>
  37530. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  37531. @return true, if it can be renewed and cancelled.]]>
  37532. </doc>
  37533. </method>
  37534. <method name="renew" return="long"
  37535. abstract="false" native="false" synchronized="false"
  37536. static="false" final="false" visibility="public"
  37537. deprecated="not deprecated">
  37538. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37539. <exception name="IOException" type="java.io.IOException"/>
  37540. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37541. <doc>
  37542. <![CDATA[Renew this delegation token
  37543. @return the new expiration time
  37544. @throws IOException
  37545. @throws InterruptedException]]>
  37546. </doc>
  37547. </method>
  37548. <method name="cancel"
  37549. abstract="false" native="false" synchronized="false"
  37550. static="false" final="false" visibility="public"
  37551. deprecated="not deprecated">
  37552. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37553. <exception name="IOException" type="java.io.IOException"/>
  37554. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37555. <doc>
  37556. <![CDATA[Cancel this delegation token
  37557. @throws IOException
  37558. @throws InterruptedException]]>
  37559. </doc>
  37560. </method>
  37561. <field name="LOG" type="org.apache.commons.logging.Log"
  37562. transient="false" volatile="false"
  37563. static="true" final="true" visibility="public"
  37564. deprecated="not deprecated">
  37565. </field>
  37566. <doc>
  37567. <![CDATA[The client-side form of the token.]]>
  37568. </doc>
  37569. </class>
  37570. <!-- end class org.apache.hadoop.security.token.Token -->
  37571. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  37572. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  37573. abstract="false"
  37574. static="true" final="false" visibility="public"
  37575. deprecated="not deprecated">
  37576. <constructor name="Token.TrivialRenewer"
  37577. static="false" final="false" visibility="public"
  37578. deprecated="not deprecated">
  37579. </constructor>
  37580. <method name="getKind" return="org.apache.hadoop.io.Text"
  37581. abstract="false" native="false" synchronized="false"
  37582. static="false" final="false" visibility="protected"
  37583. deprecated="not deprecated">
  37584. </method>
  37585. <method name="handleKind" return="boolean"
  37586. abstract="false" native="false" synchronized="false"
  37587. static="false" final="false" visibility="public"
  37588. deprecated="not deprecated">
  37589. <param name="kind" type="org.apache.hadoop.io.Text"/>
  37590. </method>
  37591. <method name="isManaged" return="boolean"
  37592. abstract="false" native="false" synchronized="false"
  37593. static="false" final="false" visibility="public"
  37594. deprecated="not deprecated">
  37595. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37596. </method>
  37597. <method name="renew" return="long"
  37598. abstract="false" native="false" synchronized="false"
  37599. static="false" final="false" visibility="public"
  37600. deprecated="not deprecated">
  37601. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37603. </method>
  37604. <method name="cancel"
  37605. abstract="false" native="false" synchronized="false"
  37606. static="false" final="false" visibility="public"
  37607. deprecated="not deprecated">
  37608. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37609. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37610. <exception name="IOException" type="java.io.IOException"/>
  37611. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37612. </method>
  37613. <doc>
  37614. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  37615. to implement getKind for their token kind.]]>
  37616. </doc>
  37617. </class>
  37618. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  37619. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  37620. <class name="TokenIdentifier" extends="java.lang.Object"
  37621. abstract="true"
  37622. static="false" final="false" visibility="public"
  37623. deprecated="not deprecated">
  37624. <implements name="org.apache.hadoop.io.Writable"/>
  37625. <constructor name="TokenIdentifier"
  37626. static="false" final="false" visibility="public"
  37627. deprecated="not deprecated">
  37628. </constructor>
  37629. <method name="getKind" return="org.apache.hadoop.io.Text"
  37630. abstract="true" native="false" synchronized="false"
  37631. static="false" final="false" visibility="public"
  37632. deprecated="not deprecated">
  37633. <doc>
  37634. <![CDATA[Get the token kind
  37635. @return the kind of the token]]>
  37636. </doc>
  37637. </method>
  37638. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  37639. abstract="true" native="false" synchronized="false"
  37640. static="false" final="false" visibility="public"
  37641. deprecated="not deprecated">
  37642. <doc>
  37643. <![CDATA[Get the Ugi with the username encoded in the token identifier
  37644. @return the username. null is returned if username in the identifier is
  37645. empty or null.]]>
  37646. </doc>
  37647. </method>
  37648. <method name="getBytes" return="byte[]"
  37649. abstract="false" native="false" synchronized="false"
  37650. static="false" final="false" visibility="public"
  37651. deprecated="not deprecated">
  37652. <doc>
  37653. <![CDATA[Get the bytes for the token identifier
  37654. @return the bytes of the identifier]]>
  37655. </doc>
  37656. </method>
  37657. <doc>
  37658. <![CDATA[An identifier that identifies a token, may contain public information
  37659. about a token, including its kind (or type).]]>
  37660. </doc>
  37661. </class>
  37662. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  37663. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  37664. <interface name="TokenInfo" abstract="true"
  37665. static="false" final="false" visibility="public"
  37666. deprecated="not deprecated">
  37667. <implements name="java.lang.annotation.Annotation"/>
  37668. <method name="value" return="java.lang.Class"
  37669. abstract="false" native="false" synchronized="false"
  37670. static="false" final="false" visibility="public"
  37671. deprecated="not deprecated">
  37672. <doc>
  37673. <![CDATA[The type of TokenSelector to be used]]>
  37674. </doc>
  37675. </method>
  37676. <doc>
  37677. <![CDATA[Indicates Token related information to be used]]>
  37678. </doc>
  37679. </interface>
  37680. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  37681. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  37682. <class name="TokenRenewer" extends="java.lang.Object"
  37683. abstract="true"
  37684. static="false" final="false" visibility="public"
  37685. deprecated="not deprecated">
  37686. <constructor name="TokenRenewer"
  37687. static="false" final="false" visibility="public"
  37688. deprecated="not deprecated">
  37689. </constructor>
  37690. <method name="handleKind" return="boolean"
  37691. abstract="true" native="false" synchronized="false"
  37692. static="false" final="false" visibility="public"
  37693. deprecated="not deprecated">
  37694. <param name="kind" type="org.apache.hadoop.io.Text"/>
  37695. <doc>
  37696. <![CDATA[Does this renewer handle this kind of token?
  37697. @param kind the kind of the token
  37698. @return true if this renewer can renew it]]>
  37699. </doc>
  37700. </method>
  37701. <method name="isManaged" return="boolean"
  37702. abstract="true" native="false" synchronized="false"
  37703. static="false" final="false" visibility="public"
  37704. deprecated="not deprecated">
  37705. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37706. <exception name="IOException" type="java.io.IOException"/>
  37707. <doc>
  37708. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  37709. cancelled.
  37710. @param token the token being checked
  37711. @return true if the token may be renewed or cancelled
  37712. @throws IOException]]>
  37713. </doc>
  37714. </method>
  37715. <method name="renew" return="long"
  37716. abstract="true" native="false" synchronized="false"
  37717. static="false" final="false" visibility="public"
  37718. deprecated="not deprecated">
  37719. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37720. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37721. <exception name="IOException" type="java.io.IOException"/>
  37722. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37723. <doc>
  37724. <![CDATA[Renew the given token.
  37725. @return the new expiration time
  37726. @throws IOException
  37727. @throws InterruptedException]]>
  37728. </doc>
  37729. </method>
  37730. <method name="cancel"
  37731. abstract="true" native="false" synchronized="false"
  37732. static="false" final="false" visibility="public"
  37733. deprecated="not deprecated">
  37734. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37735. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37736. <exception name="IOException" type="java.io.IOException"/>
  37737. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37738. <doc>
  37739. <![CDATA[Cancel the given token
  37740. @throws IOException
  37741. @throws InterruptedException]]>
  37742. </doc>
  37743. </method>
  37744. <doc>
  37745. <![CDATA[This is the interface for plugins that handle tokens.]]>
  37746. </doc>
  37747. </class>
  37748. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  37749. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  37750. <interface name="TokenSelector" abstract="true"
  37751. static="false" final="false" visibility="public"
  37752. deprecated="not deprecated">
  37753. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  37754. abstract="false" native="false" synchronized="false"
  37755. static="false" final="false" visibility="public"
  37756. deprecated="not deprecated">
  37757. <param name="service" type="org.apache.hadoop.io.Text"/>
  37758. <param name="tokens" type="java.util.Collection"/>
  37759. </method>
  37760. <doc>
  37761. <![CDATA[Select token of type T from tokens for use with named service
  37762. @param <T>
  37763. T extends TokenIdentifier]]>
  37764. </doc>
  37765. </interface>
  37766. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  37767. </package>
  37768. <package name="org.apache.hadoop.security.token.delegation">
  37769. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37770. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  37771. abstract="true"
  37772. static="false" final="false" visibility="public"
  37773. deprecated="not deprecated">
  37774. <constructor name="AbstractDelegationTokenIdentifier"
  37775. static="false" final="false" visibility="public"
  37776. deprecated="not deprecated">
  37777. </constructor>
  37778. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  37779. static="false" final="false" visibility="public"
  37780. deprecated="not deprecated">
  37781. </constructor>
  37782. <method name="getKind" return="org.apache.hadoop.io.Text"
  37783. abstract="true" native="false" synchronized="false"
  37784. static="false" final="false" visibility="public"
  37785. deprecated="not deprecated">
  37786. </method>
  37787. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  37788. abstract="false" native="false" synchronized="false"
  37789. static="false" final="false" visibility="public"
  37790. deprecated="not deprecated">
  37791. <doc>
  37792. <![CDATA[Get the username encoded in the token identifier
  37793. @return the username or owner]]>
  37794. </doc>
  37795. </method>
  37796. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  37797. abstract="false" native="false" synchronized="false"
  37798. static="false" final="false" visibility="public"
  37799. deprecated="not deprecated">
  37800. </method>
  37801. <method name="setIssueDate"
  37802. abstract="false" native="false" synchronized="false"
  37803. static="false" final="false" visibility="public"
  37804. deprecated="not deprecated">
  37805. <param name="issueDate" type="long"/>
  37806. </method>
  37807. <method name="getIssueDate" return="long"
  37808. abstract="false" native="false" synchronized="false"
  37809. static="false" final="false" visibility="public"
  37810. deprecated="not deprecated">
  37811. </method>
  37812. <method name="setMaxDate"
  37813. abstract="false" native="false" synchronized="false"
  37814. static="false" final="false" visibility="public"
  37815. deprecated="not deprecated">
  37816. <param name="maxDate" type="long"/>
  37817. </method>
  37818. <method name="getMaxDate" return="long"
  37819. abstract="false" native="false" synchronized="false"
  37820. static="false" final="false" visibility="public"
  37821. deprecated="not deprecated">
  37822. </method>
  37823. <method name="setSequenceNumber"
  37824. abstract="false" native="false" synchronized="false"
  37825. static="false" final="false" visibility="public"
  37826. deprecated="not deprecated">
  37827. <param name="seqNum" type="int"/>
  37828. </method>
  37829. <method name="getSequenceNumber" return="int"
  37830. abstract="false" native="false" synchronized="false"
  37831. static="false" final="false" visibility="public"
  37832. deprecated="not deprecated">
  37833. </method>
  37834. <method name="setMasterKeyId"
  37835. abstract="false" native="false" synchronized="false"
  37836. static="false" final="false" visibility="public"
  37837. deprecated="not deprecated">
  37838. <param name="newId" type="int"/>
  37839. </method>
  37840. <method name="getMasterKeyId" return="int"
  37841. abstract="false" native="false" synchronized="false"
  37842. static="false" final="false" visibility="public"
  37843. deprecated="not deprecated">
  37844. </method>
  37845. <method name="equals" return="boolean"
  37846. abstract="false" native="false" synchronized="false"
  37847. static="false" final="false" visibility="public"
  37848. deprecated="not deprecated">
  37849. <param name="obj" type="java.lang.Object"/>
  37850. <doc>
  37851. <![CDATA[{@inheritDoc}]]>
  37852. </doc>
  37853. </method>
  37854. <method name="hashCode" return="int"
  37855. abstract="false" native="false" synchronized="false"
  37856. static="false" final="false" visibility="public"
  37857. deprecated="not deprecated">
  37858. <doc>
  37859. <![CDATA[{@inheritDoc}]]>
  37860. </doc>
  37861. </method>
  37862. <method name="readFields"
  37863. abstract="false" native="false" synchronized="false"
  37864. static="false" final="false" visibility="public"
  37865. deprecated="not deprecated">
  37866. <param name="in" type="java.io.DataInput"/>
  37867. <exception name="IOException" type="java.io.IOException"/>
  37868. </method>
  37869. <method name="write"
  37870. abstract="false" native="false" synchronized="false"
  37871. static="false" final="false" visibility="public"
  37872. deprecated="not deprecated">
  37873. <param name="out" type="java.io.DataOutput"/>
  37874. <exception name="IOException" type="java.io.IOException"/>
  37875. </method>
  37876. <method name="toString" return="java.lang.String"
  37877. abstract="false" native="false" synchronized="false"
  37878. static="false" final="false" visibility="public"
  37879. deprecated="not deprecated">
  37880. </method>
  37881. </class>
  37882. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37883. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  37884. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  37885. abstract="true"
  37886. static="false" final="false" visibility="public"
  37887. deprecated="not deprecated">
  37888. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  37889. static="false" final="false" visibility="public"
  37890. deprecated="not deprecated">
  37891. </constructor>
  37892. <method name="startThreads"
  37893. abstract="false" native="false" synchronized="true"
  37894. static="false" final="false" visibility="public"
  37895. deprecated="not deprecated">
  37896. <exception name="IOException" type="java.io.IOException"/>
  37897. <doc>
  37898. <![CDATA[should be called before this object is used]]>
  37899. </doc>
  37900. </method>
  37901. <method name="isRunning" return="boolean"
  37902. abstract="false" native="false" synchronized="true"
  37903. static="false" final="false" visibility="public"
  37904. deprecated="not deprecated">
  37905. <doc>
  37906. <![CDATA[is secretMgr running
  37907. @return true if secret mgr is running]]>
  37908. </doc>
  37909. </method>
  37910. <method name="addKey"
  37911. abstract="false" native="false" synchronized="true"
  37912. static="false" final="false" visibility="public"
  37913. deprecated="not deprecated">
  37914. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37915. <exception name="IOException" type="java.io.IOException"/>
  37916. <doc>
  37917. <![CDATA[Add a previously used master key to cache (when NN restarts),
  37918. should be called before activate().]]>
  37919. </doc>
  37920. </method>
  37921. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  37922. abstract="false" native="false" synchronized="true"
  37923. static="false" final="false" visibility="public"
  37924. deprecated="not deprecated">
  37925. </method>
  37926. <method name="logUpdateMasterKey"
  37927. abstract="false" native="false" synchronized="false"
  37928. static="false" final="false" visibility="protected"
  37929. deprecated="not deprecated">
  37930. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37931. <exception name="IOException" type="java.io.IOException"/>
  37932. </method>
  37933. <method name="createPassword" return="byte[]"
  37934. abstract="false" native="false" synchronized="true"
  37935. static="false" final="false" visibility="protected"
  37936. deprecated="not deprecated">
  37937. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37938. </method>
  37939. <method name="retrievePassword" return="byte[]"
  37940. abstract="false" native="false" synchronized="true"
  37941. static="false" final="false" visibility="public"
  37942. deprecated="not deprecated">
  37943. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37944. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37945. </method>
  37946. <method name="verifyToken"
  37947. abstract="false" native="false" synchronized="true"
  37948. static="false" final="false" visibility="public"
  37949. deprecated="not deprecated">
  37950. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37951. <param name="password" type="byte[]"/>
  37952. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37953. <doc>
  37954. <![CDATA[Verifies that the given identifier and password are valid and match.
  37955. @param identifier Token identifier.
  37956. @param password Password in the token.
  37957. @throws InvalidToken]]>
  37958. </doc>
  37959. </method>
  37960. <method name="renewToken" return="long"
  37961. abstract="false" native="false" synchronized="true"
  37962. static="false" final="false" visibility="public"
  37963. deprecated="not deprecated">
  37964. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37965. <param name="renewer" type="java.lang.String"/>
  37966. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37967. <exception name="IOException" type="java.io.IOException"/>
  37968. <doc>
  37969. <![CDATA[Renew a delegation token.
  37970. @param token the token to renew
  37971. @param renewer the full principal name of the user doing the renewal
  37972. @return the new expiration time
  37973. @throws InvalidToken if the token is invalid
  37974. @throws AccessControlException if the user can't renew token]]>
  37975. </doc>
  37976. </method>
  37977. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  37978. abstract="false" native="false" synchronized="true"
  37979. static="false" final="false" visibility="public"
  37980. deprecated="not deprecated">
  37981. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37982. <param name="canceller" type="java.lang.String"/>
  37983. <exception name="IOException" type="java.io.IOException"/>
  37984. <doc>
  37985. <![CDATA[Cancel a token by removing it from cache.
  37986. @return Identifier of the canceled token
  37987. @throws InvalidToken for invalid token
  37988. @throws AccessControlException if the user isn't allowed to cancel]]>
  37989. </doc>
  37990. </method>
  37991. <method name="createSecretKey" return="javax.crypto.SecretKey"
  37992. abstract="false" native="false" synchronized="false"
  37993. static="true" final="false" visibility="public"
  37994. deprecated="not deprecated">
  37995. <param name="key" type="byte[]"/>
  37996. <doc>
  37997. <![CDATA[Convert the byte[] to a secret key
  37998. @param key the byte[] to create the secret key from
  37999. @return the secret key]]>
  38000. </doc>
  38001. </method>
  38002. <method name="stopThreads"
  38003. abstract="false" native="false" synchronized="true"
  38004. static="false" final="false" visibility="public"
  38005. deprecated="not deprecated">
  38006. </method>
  38007. <field name="currentTokens" type="java.util.Map"
  38008. transient="false" volatile="false"
  38009. static="false" final="true" visibility="protected"
  38010. deprecated="not deprecated">
  38011. <doc>
  38012. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  38013. to DelegationTokenInformation. Protected by this object lock.]]>
  38014. </doc>
  38015. </field>
  38016. <field name="delegationTokenSequenceNumber" type="int"
  38017. transient="false" volatile="false"
  38018. static="false" final="false" visibility="protected"
  38019. deprecated="not deprecated">
  38020. <doc>
  38021. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  38022. Protected by this object lock.]]>
  38023. </doc>
  38024. </field>
  38025. <field name="allKeys" type="java.util.Map"
  38026. transient="false" volatile="false"
  38027. static="false" final="true" visibility="protected"
  38028. deprecated="not deprecated">
  38029. <doc>
  38030. <![CDATA[Access to allKeys is protected by this object lock]]>
  38031. </doc>
  38032. </field>
  38033. <field name="currentId" type="int"
  38034. transient="false" volatile="false"
  38035. static="false" final="false" visibility="protected"
  38036. deprecated="not deprecated">
  38037. <doc>
  38038. <![CDATA[Access to currentId is protected by this object lock.]]>
  38039. </doc>
  38040. </field>
  38041. <field name="running" type="boolean"
  38042. transient="false" volatile="true"
  38043. static="false" final="false" visibility="protected"
  38044. deprecated="not deprecated">
  38045. </field>
  38046. </class>
  38047. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  38048. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  38049. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  38050. abstract="false"
  38051. static="true" final="false" visibility="public"
  38052. deprecated="not deprecated">
  38053. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  38054. static="false" final="false" visibility="public"
  38055. deprecated="not deprecated">
  38056. </constructor>
  38057. <method name="getRenewDate" return="long"
  38058. abstract="false" native="false" synchronized="false"
  38059. static="false" final="false" visibility="public"
  38060. deprecated="not deprecated">
  38061. <doc>
  38062. <![CDATA[returns renew date]]>
  38063. </doc>
  38064. </method>
  38065. <doc>
  38066. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  38067. </doc>
  38068. </class>
  38069. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  38070. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  38071. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  38072. abstract="false"
  38073. static="false" final="false" visibility="public"
  38074. deprecated="not deprecated">
  38075. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  38076. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  38077. static="false" final="false" visibility="protected"
  38078. deprecated="not deprecated">
  38079. </constructor>
  38080. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  38081. abstract="false" native="false" synchronized="false"
  38082. static="false" final="false" visibility="public"
  38083. deprecated="not deprecated">
  38084. <param name="service" type="org.apache.hadoop.io.Text"/>
  38085. <param name="tokens" type="java.util.Collection"/>
  38086. </method>
  38087. <doc>
  38088. <![CDATA[Look through tokens to find the first delegation token that matches the
  38089. service and return it.]]>
  38090. </doc>
  38091. </class>
  38092. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  38093. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  38094. <class name="DelegationKey" extends="java.lang.Object"
  38095. abstract="false"
  38096. static="false" final="false" visibility="public"
  38097. deprecated="not deprecated">
  38098. <implements name="org.apache.hadoop.io.Writable"/>
  38099. <constructor name="DelegationKey"
  38100. static="false" final="false" visibility="public"
  38101. deprecated="not deprecated">
  38102. </constructor>
  38103. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  38104. static="false" final="false" visibility="public"
  38105. deprecated="not deprecated">
  38106. </constructor>
  38107. <method name="getKeyId" return="int"
  38108. abstract="false" native="false" synchronized="false"
  38109. static="false" final="false" visibility="public"
  38110. deprecated="not deprecated">
  38111. </method>
  38112. <method name="getExpiryDate" return="long"
  38113. abstract="false" native="false" synchronized="false"
  38114. static="false" final="false" visibility="public"
  38115. deprecated="not deprecated">
  38116. </method>
  38117. <method name="getKey" return="javax.crypto.SecretKey"
  38118. abstract="false" native="false" synchronized="false"
  38119. static="false" final="false" visibility="public"
  38120. deprecated="not deprecated">
  38121. </method>
  38122. <method name="setExpiryDate"
  38123. abstract="false" native="false" synchronized="false"
  38124. static="false" final="false" visibility="public"
  38125. deprecated="not deprecated">
  38126. <param name="expiryDate" type="long"/>
  38127. </method>
  38128. <method name="write"
  38129. abstract="false" native="false" synchronized="false"
  38130. static="false" final="false" visibility="public"
  38131. deprecated="not deprecated">
  38132. <param name="out" type="java.io.DataOutput"/>
  38133. <exception name="IOException" type="java.io.IOException"/>
  38134. </method>
  38135. <method name="readFields"
  38136. abstract="false" native="false" synchronized="false"
  38137. static="false" final="false" visibility="public"
  38138. deprecated="not deprecated">
  38139. <param name="in" type="java.io.DataInput"/>
  38140. <exception name="IOException" type="java.io.IOException"/>
  38141. </method>
  38142. <doc>
  38143. <![CDATA[Key used for generating and verifying delegation tokens]]>
  38144. </doc>
  38145. </class>
  38146. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  38147. </package>
  38148. <package name="org.apache.hadoop.util">
  38149. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  38150. <class name="ChecksumUtil" extends="java.lang.Object"
  38151. abstract="false"
  38152. static="false" final="false" visibility="public"
  38153. deprecated="not deprecated">
  38154. <constructor name="ChecksumUtil"
  38155. static="false" final="false" visibility="public"
  38156. deprecated="not deprecated">
  38157. </constructor>
  38158. <method name="updateChunkChecksum"
  38159. abstract="false" native="false" synchronized="false"
  38160. static="true" final="false" visibility="public"
  38161. deprecated="not deprecated">
  38162. <param name="buf" type="byte[]"/>
  38163. <param name="checksumOff" type="int"/>
  38164. <param name="dataOff" type="int"/>
  38165. <param name="dataLen" type="int"/>
  38166. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  38167. <exception name="IOException" type="java.io.IOException"/>
  38168. <doc>
  38169. <![CDATA[updates the checksum for a buffer
  38170. @param buf - buffer to update the checksum in
  38171. @param chunkOff - offset in the buffer where the checksum is to update
  38172. @param dataOff - offset in the buffer of the data
  38173. @param dataLen - length of data to compute checksum on]]>
  38174. </doc>
  38175. </method>
  38176. </class>
  38177. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  38178. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  38179. <class name="CyclicIteration" extends="java.lang.Object"
  38180. abstract="false"
  38181. static="false" final="false" visibility="public"
  38182. deprecated="not deprecated">
  38183. <implements name="java.lang.Iterable"/>
  38184. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  38185. static="false" final="false" visibility="public"
  38186. deprecated="not deprecated">
  38187. <doc>
  38188. <![CDATA[Construct an {@link Iterable} object,
  38189. so that an {@link Iterator} can be created
  38190. for iterating the given {@link NavigableMap}.
  38191. The iteration begins from the starting key exclusively.]]>
  38192. </doc>
  38193. </constructor>
  38194. <method name="iterator" return="java.util.Iterator"
  38195. abstract="false" native="false" synchronized="false"
  38196. static="false" final="false" visibility="public"
  38197. deprecated="not deprecated">
  38198. <doc>
  38199. <![CDATA[{@inheritDoc}]]>
  38200. </doc>
  38201. </method>
  38202. <doc>
  38203. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  38204. The {@link Iterator} navigates the entries of the map
  38205. according to the map's ordering.
  38206. If the {@link Iterator} hits the last entry of the map,
  38207. it will then continue from the first entry.]]>
  38208. </doc>
  38209. </class>
  38210. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  38211. <!-- start class org.apache.hadoop.util.Daemon -->
  38212. <class name="Daemon" extends="java.lang.Thread"
  38213. abstract="false"
  38214. static="false" final="false" visibility="public"
  38215. deprecated="not deprecated">
  38216. <constructor name="Daemon"
  38217. static="false" final="false" visibility="public"
  38218. deprecated="not deprecated">
  38219. <doc>
  38220. <![CDATA[Construct a daemon thread.]]>
  38221. </doc>
  38222. </constructor>
  38223. <constructor name="Daemon" type="java.lang.Runnable"
  38224. static="false" final="false" visibility="public"
  38225. deprecated="not deprecated">
  38226. <doc>
  38227. <![CDATA[Construct a daemon thread.]]>
  38228. </doc>
  38229. </constructor>
  38230. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  38231. static="false" final="false" visibility="public"
  38232. deprecated="not deprecated">
  38233. <doc>
  38234. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  38235. </doc>
  38236. </constructor>
  38237. <method name="getRunnable" return="java.lang.Runnable"
  38238. abstract="false" native="false" synchronized="false"
  38239. static="false" final="false" visibility="public"
  38240. deprecated="not deprecated">
  38241. </method>
  38242. <doc>
  38243. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  38244. </doc>
  38245. </class>
  38246. <!-- end class org.apache.hadoop.util.Daemon -->
  38247. <!-- start class org.apache.hadoop.util.DataChecksum -->
  38248. <class name="DataChecksum" extends="java.lang.Object"
  38249. abstract="false"
  38250. static="false" final="false" visibility="public"
  38251. deprecated="not deprecated">
  38252. <implements name="java.util.zip.Checksum"/>
  38253. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  38254. abstract="false" native="false" synchronized="false"
  38255. static="true" final="false" visibility="public"
  38256. deprecated="not deprecated">
  38257. <param name="type" type="int"/>
  38258. <param name="bytesPerChecksum" type="int"/>
  38259. </method>
  38260. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  38261. abstract="false" native="false" synchronized="false"
  38262. static="true" final="false" visibility="public"
  38263. deprecated="not deprecated">
  38264. <param name="bytes" type="byte[]"/>
  38265. <param name="offset" type="int"/>
  38266. <doc>
  38267. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  38268. @return DataChecksum of the type in the array or null in case of an error.]]>
  38269. </doc>
  38270. </method>
  38271. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  38272. abstract="false" native="false" synchronized="false"
  38273. static="true" final="false" visibility="public"
  38274. deprecated="not deprecated">
  38275. <param name="in" type="java.io.DataInputStream"/>
  38276. <exception name="IOException" type="java.io.IOException"/>
  38277. <doc>
  38278. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  38279. input stream <i>in</i>]]>
  38280. </doc>
  38281. </method>
  38282. <method name="writeHeader"
  38283. abstract="false" native="false" synchronized="false"
  38284. static="false" final="false" visibility="public"
  38285. deprecated="not deprecated">
  38286. <param name="out" type="java.io.DataOutputStream"/>
  38287. <exception name="IOException" type="java.io.IOException"/>
  38288. <doc>
  38289. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  38290. </doc>
  38291. </method>
  38292. <method name="getHeader" return="byte[]"
  38293. abstract="false" native="false" synchronized="false"
  38294. static="false" final="false" visibility="public"
  38295. deprecated="not deprecated">
  38296. </method>
  38297. <method name="writeValue" return="int"
  38298. abstract="false" native="false" synchronized="false"
  38299. static="false" final="false" visibility="public"
  38300. deprecated="not deprecated">
  38301. <param name="out" type="java.io.DataOutputStream"/>
  38302. <param name="reset" type="boolean"/>
  38303. <exception name="IOException" type="java.io.IOException"/>
  38304. <doc>
  38305. <![CDATA[Writes the current checksum to the stream.
  38306. If <i>reset</i> is true, then resets the checksum.
  38307. @return number of bytes written. Will be equal to getChecksumSize();]]>
  38308. </doc>
  38309. </method>
  38310. <method name="writeValue" return="int"
  38311. abstract="false" native="false" synchronized="false"
  38312. static="false" final="false" visibility="public"
  38313. deprecated="not deprecated">
  38314. <param name="buf" type="byte[]"/>
  38315. <param name="offset" type="int"/>
  38316. <param name="reset" type="boolean"/>
  38317. <exception name="IOException" type="java.io.IOException"/>
  38318. <doc>
  38319. <![CDATA[Writes the current checksum to a buffer.
  38320. If <i>reset</i> is true, then resets the checksum.
  38321. @return number of bytes written. Will be equal to getChecksumSize();]]>
  38322. </doc>
  38323. </method>
  38324. <method name="compare" return="boolean"
  38325. abstract="false" native="false" synchronized="false"
  38326. static="false" final="false" visibility="public"
  38327. deprecated="not deprecated">
  38328. <param name="buf" type="byte[]"/>
  38329. <param name="offset" type="int"/>
  38330. <doc>
  38331. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  38332. @return true if the checksum matches and false otherwise.]]>
  38333. </doc>
  38334. </method>
  38335. <method name="getChecksumType" return="int"
  38336. abstract="false" native="false" synchronized="false"
  38337. static="false" final="false" visibility="public"
  38338. deprecated="not deprecated">
  38339. </method>
  38340. <method name="getChecksumSize" return="int"
  38341. abstract="false" native="false" synchronized="false"
  38342. static="false" final="false" visibility="public"
  38343. deprecated="not deprecated">
  38344. </method>
  38345. <method name="getBytesPerChecksum" return="int"
  38346. abstract="false" native="false" synchronized="false"
  38347. static="false" final="false" visibility="public"
  38348. deprecated="not deprecated">
  38349. </method>
  38350. <method name="getNumBytesInSum" return="int"
  38351. abstract="false" native="false" synchronized="false"
  38352. static="false" final="false" visibility="public"
  38353. deprecated="not deprecated">
  38354. </method>
  38355. <method name="getChecksumHeaderSize" return="int"
  38356. abstract="false" native="false" synchronized="false"
  38357. static="true" final="false" visibility="public"
  38358. deprecated="not deprecated">
  38359. </method>
  38360. <method name="getValue" return="long"
  38361. abstract="false" native="false" synchronized="false"
  38362. static="false" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. </method>
  38365. <method name="reset"
  38366. abstract="false" native="false" synchronized="false"
  38367. static="false" final="false" visibility="public"
  38368. deprecated="not deprecated">
  38369. </method>
  38370. <method name="update"
  38371. abstract="false" native="false" synchronized="false"
  38372. static="false" final="false" visibility="public"
  38373. deprecated="not deprecated">
  38374. <param name="b" type="byte[]"/>
  38375. <param name="off" type="int"/>
  38376. <param name="len" type="int"/>
  38377. </method>
  38378. <method name="update"
  38379. abstract="false" native="false" synchronized="false"
  38380. static="false" final="false" visibility="public"
  38381. deprecated="not deprecated">
  38382. <param name="b" type="int"/>
  38383. </method>
  38384. <field name="HEADER_LEN" type="int"
  38385. transient="false" volatile="false"
  38386. static="true" final="true" visibility="public"
  38387. deprecated="not deprecated">
  38388. </field>
  38389. <field name="CHECKSUM_NULL" type="int"
  38390. transient="false" volatile="false"
  38391. static="true" final="true" visibility="public"
  38392. deprecated="not deprecated">
  38393. </field>
  38394. <field name="CHECKSUM_CRC32" type="int"
  38395. transient="false" volatile="false"
  38396. static="true" final="true" visibility="public"
  38397. deprecated="not deprecated">
  38398. </field>
  38399. <field name="SIZE_OF_INTEGER" type="int"
  38400. transient="false" volatile="false"
  38401. static="true" final="true" visibility="public"
  38402. deprecated="not deprecated">
  38403. </field>
  38404. <doc>
  38405. <![CDATA[This class provides inteface and utilities for processing checksums for
  38406. DFS data transfers.]]>
  38407. </doc>
  38408. </class>
  38409. <!-- end class org.apache.hadoop.util.DataChecksum -->
  38410. <!-- start class org.apache.hadoop.util.DiskChecker -->
  38411. <class name="DiskChecker" extends="java.lang.Object"
  38412. abstract="false"
  38413. static="false" final="false" visibility="public"
  38414. deprecated="not deprecated">
  38415. <constructor name="DiskChecker"
  38416. static="false" final="false" visibility="public"
  38417. deprecated="not deprecated">
  38418. </constructor>
  38419. <method name="mkdirsWithExistsCheck" return="boolean"
  38420. abstract="false" native="false" synchronized="false"
  38421. static="true" final="false" visibility="public"
  38422. deprecated="not deprecated">
  38423. <param name="dir" type="java.io.File"/>
  38424. <doc>
  38425. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  38426. method provided in the Sun's java.io.File class in the following way:
  38427. While creating the non-existent parent directories, this method checks for
  38428. the existence of those directories if the mkdir fails at any point (since
  38429. that directory might have just been created by some other process).
  38430. If both mkdir() and the exists() check fails for any seemingly
  38431. non-existent directory, then we signal an error; Sun's mkdir would signal
  38432. an error (return false) if a directory it is attempting to create already
  38433. exists or the mkdir fails.
  38434. @param dir
  38435. @return true on success, false on failure]]>
  38436. </doc>
  38437. </method>
  38438. <method name="checkDir"
  38439. abstract="false" native="false" synchronized="false"
  38440. static="true" final="false" visibility="public"
  38441. deprecated="not deprecated">
  38442. <param name="dir" type="java.io.File"/>
  38443. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  38444. <doc>
  38445. <![CDATA[Create the directory if it doesn't exist and
  38446. @param dir
  38447. @throws DiskErrorException]]>
  38448. </doc>
  38449. </method>
  38450. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  38451. abstract="false" native="false" synchronized="false"
  38452. static="true" final="false" visibility="public"
  38453. deprecated="not deprecated">
  38454. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  38455. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  38456. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  38457. <exception name="IOException" type="java.io.IOException"/>
  38458. <doc>
  38459. <![CDATA[Create the directory or check permissions if it already exists.
  38460. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  38461. from the mkdirs method provided in the Sun's java.io.File class in the
  38462. following way:
  38463. While creating the non-existent parent directories, this method checks for
  38464. the existence of those directories if the mkdir fails at any point (since
  38465. that directory might have just been created by some other process).
  38466. If both mkdir() and the exists() check fails for any seemingly
  38467. non-existent directory, then we signal an error; Sun's mkdir would signal
  38468. an error (return false) if a directory it is attempting to create already
  38469. exists or the mkdir fails.
  38470. @param localFS local filesystem
  38471. @param dir directory to be created or checked
  38472. @param expected expected permission
  38473. @return true on success, false on failure]]>
  38474. </doc>
  38475. </method>
  38476. <method name="checkDir"
  38477. abstract="false" native="false" synchronized="false"
  38478. static="true" final="false" visibility="public"
  38479. deprecated="not deprecated">
  38480. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  38481. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  38482. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  38483. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  38484. <exception name="IOException" type="java.io.IOException"/>
  38485. <doc>
  38486. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  38487. it can be read from and written into.
  38488. @param localFS local filesystem
  38489. @param dir directory
  38490. @param expected permission
  38491. @throws DiskErrorException
  38492. @throws IOException]]>
  38493. </doc>
  38494. </method>
  38495. <doc>
  38496. <![CDATA[Class that provides utility functions for checking disk problem]]>
  38497. </doc>
  38498. </class>
  38499. <!-- end class org.apache.hadoop.util.DiskChecker -->
  38500. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  38501. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  38502. abstract="false"
  38503. static="true" final="false" visibility="public"
  38504. deprecated="not deprecated">
  38505. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  38506. static="false" final="false" visibility="public"
  38507. deprecated="not deprecated">
  38508. </constructor>
  38509. </class>
  38510. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  38511. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  38512. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  38513. abstract="false"
  38514. static="true" final="false" visibility="public"
  38515. deprecated="not deprecated">
  38516. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  38517. static="false" final="false" visibility="public"
  38518. deprecated="not deprecated">
  38519. </constructor>
  38520. </class>
  38521. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  38522. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  38523. <class name="GenericOptionsParser" extends="java.lang.Object"
  38524. abstract="false"
  38525. static="false" final="false" visibility="public"
  38526. deprecated="not deprecated">
  38527. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  38528. static="false" final="false" visibility="public"
  38529. deprecated="not deprecated">
  38530. <exception name="IOException" type="java.io.IOException"/>
  38531. <doc>
  38532. <![CDATA[Create an options parser with the given options to parse the args.
  38533. @param opts the options
  38534. @param args the command line arguments
  38535. @throws IOException]]>
  38536. </doc>
  38537. </constructor>
  38538. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  38539. static="false" final="false" visibility="public"
  38540. deprecated="not deprecated">
  38541. <exception name="IOException" type="java.io.IOException"/>
  38542. <doc>
  38543. <![CDATA[Create an options parser to parse the args.
  38544. @param args the command line arguments
  38545. @throws IOException]]>
  38546. </doc>
  38547. </constructor>
  38548. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  38549. static="false" final="false" visibility="public"
  38550. deprecated="not deprecated">
  38551. <exception name="IOException" type="java.io.IOException"/>
  38552. <doc>
  38553. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  38554. arguments.
  38555. The array of string arguments other than the generic arguments can be
  38556. obtained by {@link #getRemainingArgs()}.
  38557. @param conf the <code>Configuration</code> to modify.
  38558. @param args command-line arguments.
  38559. @throws IOException]]>
  38560. </doc>
  38561. </constructor>
  38562. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  38563. static="false" final="false" visibility="public"
  38564. deprecated="not deprecated">
  38565. <exception name="IOException" type="java.io.IOException"/>
  38566. <doc>
  38567. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  38568. as generic Hadoop options.
  38569. The resulting <code>CommandLine</code> object can be obtained by
  38570. {@link #getCommandLine()}.
  38571. @param conf the configuration to modify
  38572. @param options options built by the caller
  38573. @param args User-specified arguments
  38574. @throws IOException]]>
  38575. </doc>
  38576. </constructor>
  38577. <method name="getRemainingArgs" return="java.lang.String[]"
  38578. abstract="false" native="false" synchronized="false"
  38579. static="false" final="false" visibility="public"
  38580. deprecated="not deprecated">
  38581. <doc>
  38582. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  38583. @return array of <code>String</code>s containing the un-parsed arguments
  38584. or <strong>empty array</strong> if commandLine was not defined.]]>
  38585. </doc>
  38586. </method>
  38587. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  38588. abstract="false" native="false" synchronized="false"
  38589. static="false" final="false" visibility="public"
  38590. deprecated="not deprecated">
  38591. <doc>
  38592. <![CDATA[Get the modified configuration
  38593. @return the configuration that has the modified parameters.]]>
  38594. </doc>
  38595. </method>
  38596. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  38597. abstract="false" native="false" synchronized="false"
  38598. static="false" final="false" visibility="public"
  38599. deprecated="not deprecated">
  38600. <doc>
  38601. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  38602. to process the parsed arguments.
  38603. Note: If the object is created with
  38604. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  38605. object will only contain parsed generic options.
  38606. @return <code>CommandLine</code> representing list of arguments
  38607. parsed against Options descriptor.]]>
  38608. </doc>
  38609. </method>
  38610. <method name="getLibJars" return="java.net.URL[]"
  38611. abstract="false" native="false" synchronized="false"
  38612. static="true" final="false" visibility="public"
  38613. deprecated="not deprecated">
  38614. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38615. <exception name="IOException" type="java.io.IOException"/>
  38616. <doc>
  38617. <![CDATA[If libjars are set in the conf, parse the libjars.
  38618. @param conf
  38619. @return libjar urls
  38620. @throws IOException]]>
  38621. </doc>
  38622. </method>
  38623. <method name="printGenericCommandUsage"
  38624. abstract="false" native="false" synchronized="false"
  38625. static="true" final="false" visibility="public"
  38626. deprecated="not deprecated">
  38627. <param name="out" type="java.io.PrintStream"/>
  38628. <doc>
  38629. <![CDATA[Print the usage message for generic command-line options supported.
  38630. @param out stream to print the usage message to.]]>
  38631. </doc>
  38632. </method>
  38633. <doc>
  38634. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  38635. arguments generic to the Hadoop framework.
  38636. <code>GenericOptionsParser</code> recognizes several standarad command
  38637. line arguments, enabling applications to easily specify a namenode, a
  38638. jobtracker, additional configuration resources etc.
  38639. <h4 id="GenericOptions">Generic Options</h4>
  38640. <p>The supported generic options are:</p>
  38641. <p><blockquote><pre>
  38642. -conf &lt;configuration file&gt; specify a configuration file
  38643. -D &lt;property=value&gt; use value for given property
  38644. -fs &lt;local|namenode:port&gt; specify a namenode
  38645. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  38646. -files &lt;comma separated list of files&gt; specify comma separated
  38647. files to be copied to the map reduce cluster
  38648. -libjars &lt;comma separated list of jars&gt; specify comma separated
  38649. jar files to include in the classpath.
  38650. -archives &lt;comma separated list of archives&gt; specify comma
  38651. separated archives to be unarchived on the compute machines.
  38652. </pre></blockquote></p>
  38653. <p>The general command line syntax is:</p>
  38654. <p><tt><pre>
  38655. bin/hadoop command [genericOptions] [commandOptions]
  38656. </pre></tt></p>
  38657. <p>Generic command line arguments <strong>might</strong> modify
  38658. <code>Configuration </code> objects, given to constructors.</p>
  38659. <p>The functionality is implemented using Commons CLI.</p>
  38660. <p>Examples:</p>
  38661. <p><blockquote><pre>
  38662. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  38663. list /data directory in dfs with namenode darwin:8020
  38664. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  38665. list /data directory in dfs with namenode darwin:8020
  38666. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  38667. list /data directory in dfs with conf specified in hadoop-site.xml
  38668. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  38669. submit a job to job tracker darwin:50020
  38670. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  38671. submit a job to job tracker darwin:50020
  38672. $ bin/hadoop job -jt local -submit job.xml
  38673. submit a job to local runner
  38674. $ bin/hadoop jar -libjars testlib.jar
  38675. -archives test.tgz -files file.txt inputjar args
  38676. job submission with libjars, files and archives
  38677. </pre></blockquote></p>
  38678. @see Tool
  38679. @see ToolRunner]]>
  38680. </doc>
  38681. </class>
  38682. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  38683. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  38684. <class name="GenericsUtil" extends="java.lang.Object"
  38685. abstract="false"
  38686. static="false" final="false" visibility="public"
  38687. deprecated="not deprecated">
  38688. <constructor name="GenericsUtil"
  38689. static="false" final="false" visibility="public"
  38690. deprecated="not deprecated">
  38691. </constructor>
  38692. <method name="getClass" return="java.lang.Class"
  38693. abstract="false" native="false" synchronized="false"
  38694. static="true" final="false" visibility="public"
  38695. deprecated="not deprecated">
  38696. <param name="t" type="java.lang.Object"/>
  38697. <doc>
  38698. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  38699. argument of type <code>T</code>.
  38700. @param <T> The type of the argument
  38701. @param t the object to get it class
  38702. @return <code>Class&lt;T&gt;</code>]]>
  38703. </doc>
  38704. </method>
  38705. <method name="toArray" return="java.lang.Object[]"
  38706. abstract="false" native="false" synchronized="false"
  38707. static="true" final="false" visibility="public"
  38708. deprecated="not deprecated">
  38709. <param name="c" type="java.lang.Class"/>
  38710. <param name="list" type="java.util.List"/>
  38711. <doc>
  38712. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38713. <code>T[]</code>.
  38714. @param c the Class object of the items in the list
  38715. @param list the list to convert]]>
  38716. </doc>
  38717. </method>
  38718. <method name="toArray" return="java.lang.Object[]"
  38719. abstract="false" native="false" synchronized="false"
  38720. static="true" final="false" visibility="public"
  38721. deprecated="not deprecated">
  38722. <param name="list" type="java.util.List"/>
  38723. <doc>
  38724. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38725. <code>T[]</code>.
  38726. @param list the list to convert
  38727. @throws ArrayIndexOutOfBoundsException if the list is empty.
  38728. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  38729. </doc>
  38730. </method>
  38731. <doc>
  38732. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  38733. </doc>
  38734. </class>
  38735. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  38736. <!-- start class org.apache.hadoop.util.HeapSort -->
  38737. <class name="HeapSort" extends="java.lang.Object"
  38738. abstract="false"
  38739. static="false" final="true" visibility="public"
  38740. deprecated="not deprecated">
  38741. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  38742. <constructor name="HeapSort"
  38743. static="false" final="false" visibility="public"
  38744. deprecated="not deprecated">
  38745. </constructor>
  38746. <method name="sort"
  38747. abstract="false" native="false" synchronized="false"
  38748. static="false" final="false" visibility="public"
  38749. deprecated="not deprecated">
  38750. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38751. <param name="p" type="int"/>
  38752. <param name="r" type="int"/>
  38753. <doc>
  38754. <![CDATA[Sort the given range of items using heap sort.
  38755. {@inheritDoc}]]>
  38756. </doc>
  38757. </method>
  38758. <method name="sort"
  38759. abstract="false" native="false" synchronized="false"
  38760. static="false" final="false" visibility="public"
  38761. deprecated="not deprecated">
  38762. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38763. <param name="p" type="int"/>
  38764. <param name="r" type="int"/>
  38765. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38766. <doc>
  38767. <![CDATA[{@inheritDoc}]]>
  38768. </doc>
  38769. </method>
  38770. <doc>
  38771. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  38772. </doc>
  38773. </class>
  38774. <!-- end class org.apache.hadoop.util.HeapSort -->
  38775. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  38776. <class name="HostsFileReader" extends="java.lang.Object"
  38777. abstract="false"
  38778. static="false" final="false" visibility="public"
  38779. deprecated="not deprecated">
  38780. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  38781. static="false" final="false" visibility="public"
  38782. deprecated="not deprecated">
  38783. <exception name="IOException" type="java.io.IOException"/>
  38784. </constructor>
  38785. <method name="refresh"
  38786. abstract="false" native="false" synchronized="true"
  38787. static="false" final="false" visibility="public"
  38788. deprecated="not deprecated">
  38789. <exception name="IOException" type="java.io.IOException"/>
  38790. </method>
  38791. <method name="getHosts" return="java.util.Set"
  38792. abstract="false" native="false" synchronized="true"
  38793. static="false" final="false" visibility="public"
  38794. deprecated="not deprecated">
  38795. </method>
  38796. <method name="getExcludedHosts" return="java.util.Set"
  38797. abstract="false" native="false" synchronized="true"
  38798. static="false" final="false" visibility="public"
  38799. deprecated="not deprecated">
  38800. </method>
  38801. <method name="setIncludesFile"
  38802. abstract="false" native="false" synchronized="true"
  38803. static="false" final="false" visibility="public"
  38804. deprecated="not deprecated">
  38805. <param name="includesFile" type="java.lang.String"/>
  38806. </method>
  38807. <method name="setExcludesFile"
  38808. abstract="false" native="false" synchronized="true"
  38809. static="false" final="false" visibility="public"
  38810. deprecated="not deprecated">
  38811. <param name="excludesFile" type="java.lang.String"/>
  38812. </method>
  38813. <method name="updateFileNames"
  38814. abstract="false" native="false" synchronized="true"
  38815. static="false" final="false" visibility="public"
  38816. deprecated="not deprecated">
  38817. <param name="includesFile" type="java.lang.String"/>
  38818. <param name="excludesFile" type="java.lang.String"/>
  38819. <exception name="IOException" type="java.io.IOException"/>
  38820. </method>
  38821. </class>
  38822. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  38823. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  38824. <interface name="IndexedSortable" abstract="true"
  38825. static="false" final="false" visibility="public"
  38826. deprecated="not deprecated">
  38827. <method name="compare" return="int"
  38828. abstract="false" native="false" synchronized="false"
  38829. static="false" final="false" visibility="public"
  38830. deprecated="not deprecated">
  38831. <param name="i" type="int"/>
  38832. <param name="j" type="int"/>
  38833. <doc>
  38834. <![CDATA[Compare items at the given addresses consistent with the semantics of
  38835. {@link java.util.Comparator#compare(Object, Object)}.]]>
  38836. </doc>
  38837. </method>
  38838. <method name="swap"
  38839. abstract="false" native="false" synchronized="false"
  38840. static="false" final="false" visibility="public"
  38841. deprecated="not deprecated">
  38842. <param name="i" type="int"/>
  38843. <param name="j" type="int"/>
  38844. <doc>
  38845. <![CDATA[Swap items at the given addresses.]]>
  38846. </doc>
  38847. </method>
  38848. <doc>
  38849. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  38850. algorithms.]]>
  38851. </doc>
  38852. </interface>
  38853. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  38854. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  38855. <interface name="IndexedSorter" abstract="true"
  38856. static="false" final="false" visibility="public"
  38857. deprecated="not deprecated">
  38858. <method name="sort"
  38859. abstract="false" native="false" synchronized="false"
  38860. static="false" final="false" visibility="public"
  38861. deprecated="not deprecated">
  38862. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38863. <param name="l" type="int"/>
  38864. <param name="r" type="int"/>
  38865. <doc>
  38866. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  38867. range of logical indices. From the perspective of the sort algorithm,
  38868. each index between l (inclusive) and r (exclusive) is an addressable
  38869. entry.
  38870. @see IndexedSortable#compare
  38871. @see IndexedSortable#swap]]>
  38872. </doc>
  38873. </method>
  38874. <method name="sort"
  38875. abstract="false" native="false" synchronized="false"
  38876. static="false" final="false" visibility="public"
  38877. deprecated="not deprecated">
  38878. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38879. <param name="l" type="int"/>
  38880. <param name="r" type="int"/>
  38881. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38882. <doc>
  38883. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  38884. periodically.
  38885. @see #sort(IndexedSortable,int,int)]]>
  38886. </doc>
  38887. </method>
  38888. <doc>
  38889. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  38890. A sort algorithm implementing this interface may only
  38891. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  38892. for a range of indices to effect a sort across that range.]]>
  38893. </doc>
  38894. </interface>
  38895. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  38896. <!-- start class org.apache.hadoop.util.LineReader -->
  38897. <class name="LineReader" extends="java.lang.Object"
  38898. abstract="false"
  38899. static="false" final="false" visibility="public"
  38900. deprecated="not deprecated">
  38901. <constructor name="LineReader" type="java.io.InputStream"
  38902. static="false" final="false" visibility="public"
  38903. deprecated="not deprecated">
  38904. <doc>
  38905. <![CDATA[Create a line reader that reads from the given stream using the
  38906. default buffer-size (64k).
  38907. @param in The input stream
  38908. @throws IOException]]>
  38909. </doc>
  38910. </constructor>
  38911. <constructor name="LineReader" type="java.io.InputStream, int"
  38912. static="false" final="false" visibility="public"
  38913. deprecated="not deprecated">
  38914. <doc>
  38915. <![CDATA[Create a line reader that reads from the given stream using the
  38916. given buffer-size.
  38917. @param in The input stream
  38918. @param bufferSize Size of the read buffer
  38919. @throws IOException]]>
  38920. </doc>
  38921. </constructor>
  38922. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  38923. static="false" final="false" visibility="public"
  38924. deprecated="not deprecated">
  38925. <exception name="IOException" type="java.io.IOException"/>
  38926. <doc>
  38927. <![CDATA[Create a line reader that reads from the given stream using the
  38928. <code>io.file.buffer.size</code> specified in the given
  38929. <code>Configuration</code>.
  38930. @param in input stream
  38931. @param conf configuration
  38932. @throws IOException]]>
  38933. </doc>
  38934. </constructor>
  38935. <method name="close"
  38936. abstract="false" native="false" synchronized="false"
  38937. static="false" final="false" visibility="public"
  38938. deprecated="not deprecated">
  38939. <exception name="IOException" type="java.io.IOException"/>
  38940. <doc>
  38941. <![CDATA[Close the underlying stream.
  38942. @throws IOException]]>
  38943. </doc>
  38944. </method>
  38945. <method name="readLine" return="int"
  38946. abstract="false" native="false" synchronized="false"
  38947. static="false" final="false" visibility="public"
  38948. deprecated="not deprecated">
  38949. <param name="str" type="org.apache.hadoop.io.Text"/>
  38950. <param name="maxLineLength" type="int"/>
  38951. <param name="maxBytesToConsume" type="int"/>
  38952. <exception name="IOException" type="java.io.IOException"/>
  38953. <doc>
  38954. <![CDATA[Read one line from the InputStream into the given Text. A line
  38955. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  38956. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  38957. line.
  38958. @param str the object to store the given line (without newline)
  38959. @param maxLineLength the maximum number of bytes to store into str;
  38960. the rest of the line is silently discarded.
  38961. @param maxBytesToConsume the maximum number of bytes to consume
  38962. in this call. This is only a hint, because if the line cross
  38963. this threshold, we allow it to happen. It can overshoot
  38964. potentially by as much as one buffer length.
  38965. @return the number of bytes read including the (longest) newline
  38966. found.
  38967. @throws IOException if the underlying stream throws]]>
  38968. </doc>
  38969. </method>
  38970. <method name="readLine" return="int"
  38971. abstract="false" native="false" synchronized="false"
  38972. static="false" final="false" visibility="public"
  38973. deprecated="not deprecated">
  38974. <param name="str" type="org.apache.hadoop.io.Text"/>
  38975. <param name="maxLineLength" type="int"/>
  38976. <exception name="IOException" type="java.io.IOException"/>
  38977. <doc>
  38978. <![CDATA[Read from the InputStream into the given Text.
  38979. @param str the object to store the given line
  38980. @param maxLineLength the maximum number of bytes to store into str.
  38981. @return the number of bytes read including the newline
  38982. @throws IOException if the underlying stream throws]]>
  38983. </doc>
  38984. </method>
  38985. <method name="readLine" return="int"
  38986. abstract="false" native="false" synchronized="false"
  38987. static="false" final="false" visibility="public"
  38988. deprecated="not deprecated">
  38989. <param name="str" type="org.apache.hadoop.io.Text"/>
  38990. <exception name="IOException" type="java.io.IOException"/>
  38991. <doc>
  38992. <![CDATA[Read from the InputStream into the given Text.
  38993. @param str the object to store the given line
  38994. @return the number of bytes read including the newline
  38995. @throws IOException if the underlying stream throws]]>
  38996. </doc>
  38997. </method>
  38998. <doc>
  38999. <![CDATA[A class that provides a line reader from an input stream.]]>
  39000. </doc>
  39001. </class>
  39002. <!-- end class org.apache.hadoop.util.LineReader -->
  39003. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  39004. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  39005. abstract="false"
  39006. static="false" final="false" visibility="public"
  39007. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  39008. instead">
  39009. <constructor name="LinuxMemoryCalculatorPlugin"
  39010. static="false" final="false" visibility="public"
  39011. deprecated="not deprecated">
  39012. </constructor>
  39013. <method name="getPhysicalMemorySize" return="long"
  39014. abstract="false" native="false" synchronized="false"
  39015. static="false" final="false" visibility="public"
  39016. deprecated="not deprecated">
  39017. <doc>
  39018. <![CDATA[{@inheritDoc}]]>
  39019. </doc>
  39020. </method>
  39021. <method name="getVirtualMemorySize" return="long"
  39022. abstract="false" native="false" synchronized="false"
  39023. static="false" final="false" visibility="public"
  39024. deprecated="not deprecated">
  39025. <doc>
  39026. <![CDATA[{@inheritDoc}]]>
  39027. </doc>
  39028. </method>
  39029. <doc>
  39030. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  39031. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  39032. instead]]>
  39033. </doc>
  39034. </class>
  39035. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  39036. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  39037. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  39038. abstract="false"
  39039. static="false" final="false" visibility="public"
  39040. deprecated="not deprecated">
  39041. <constructor name="LinuxResourceCalculatorPlugin"
  39042. static="false" final="false" visibility="public"
  39043. deprecated="not deprecated">
  39044. </constructor>
  39045. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  39046. static="false" final="false" visibility="public"
  39047. deprecated="not deprecated">
  39048. <doc>
  39049. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  39050. used only in unit tests
  39051. @param procfsMemFile fake file for /proc/meminfo
  39052. @param procfsCpuFile fake file for /proc/cpuinfo
  39053. @param procfsStatFile fake file for /proc/stat
  39054. @param jiffyLengthInMillis fake jiffy length value]]>
  39055. </doc>
  39056. </constructor>
  39057. <method name="getPhysicalMemorySize" return="long"
  39058. abstract="false" native="false" synchronized="false"
  39059. static="false" final="false" visibility="public"
  39060. deprecated="not deprecated">
  39061. <doc>
  39062. <![CDATA[{@inheritDoc}]]>
  39063. </doc>
  39064. </method>
  39065. <method name="getVirtualMemorySize" return="long"
  39066. abstract="false" native="false" synchronized="false"
  39067. static="false" final="false" visibility="public"
  39068. deprecated="not deprecated">
  39069. <doc>
  39070. <![CDATA[{@inheritDoc}]]>
  39071. </doc>
  39072. </method>
  39073. <method name="getAvailablePhysicalMemorySize" return="long"
  39074. abstract="false" native="false" synchronized="false"
  39075. static="false" final="false" visibility="public"
  39076. deprecated="not deprecated">
  39077. <doc>
  39078. <![CDATA[{@inheritDoc}]]>
  39079. </doc>
  39080. </method>
  39081. <method name="getAvailableVirtualMemorySize" return="long"
  39082. abstract="false" native="false" synchronized="false"
  39083. static="false" final="false" visibility="public"
  39084. deprecated="not deprecated">
  39085. <doc>
  39086. <![CDATA[{@inheritDoc}]]>
  39087. </doc>
  39088. </method>
  39089. <method name="getNumProcessors" return="int"
  39090. abstract="false" native="false" synchronized="false"
  39091. static="false" final="false" visibility="public"
  39092. deprecated="not deprecated">
  39093. <doc>
  39094. <![CDATA[{@inheritDoc}]]>
  39095. </doc>
  39096. </method>
  39097. <method name="getCpuFrequency" return="long"
  39098. abstract="false" native="false" synchronized="false"
  39099. static="false" final="false" visibility="public"
  39100. deprecated="not deprecated">
  39101. <doc>
  39102. <![CDATA[{@inheritDoc}]]>
  39103. </doc>
  39104. </method>
  39105. <method name="getCumulativeCpuTime" return="long"
  39106. abstract="false" native="false" synchronized="false"
  39107. static="false" final="false" visibility="public"
  39108. deprecated="not deprecated">
  39109. <doc>
  39110. <![CDATA[{@inheritDoc}]]>
  39111. </doc>
  39112. </method>
  39113. <method name="getCpuUsage" return="float"
  39114. abstract="false" native="false" synchronized="false"
  39115. static="false" final="false" visibility="public"
  39116. deprecated="not deprecated">
  39117. <doc>
  39118. <![CDATA[{@inheritDoc}]]>
  39119. </doc>
  39120. </method>
  39121. <method name="main"
  39122. abstract="false" native="false" synchronized="false"
  39123. static="true" final="false" visibility="public"
  39124. deprecated="not deprecated">
  39125. <param name="args" type="java.lang.String[]"/>
  39126. <doc>
  39127. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  39128. @param args]]>
  39129. </doc>
  39130. </method>
  39131. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  39132. abstract="false" native="false" synchronized="false"
  39133. static="false" final="false" visibility="public"
  39134. deprecated="not deprecated">
  39135. </method>
  39136. <doc>
  39137. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  39138. </doc>
  39139. </class>
  39140. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  39141. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  39142. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  39143. abstract="true"
  39144. static="false" final="false" visibility="public"
  39145. deprecated="Use
  39146. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  39147. instead">
  39148. <constructor name="MemoryCalculatorPlugin"
  39149. static="false" final="false" visibility="public"
  39150. deprecated="not deprecated">
  39151. </constructor>
  39152. <method name="getVirtualMemorySize" return="long"
  39153. abstract="true" native="false" synchronized="false"
  39154. static="false" final="false" visibility="public"
  39155. deprecated="not deprecated">
  39156. <doc>
  39157. <![CDATA[Obtain the total size of the virtual memory present in the system.
  39158. @return virtual memory size in bytes.]]>
  39159. </doc>
  39160. </method>
  39161. <method name="getPhysicalMemorySize" return="long"
  39162. abstract="true" native="false" synchronized="false"
  39163. static="false" final="false" visibility="public"
  39164. deprecated="not deprecated">
  39165. <doc>
  39166. <![CDATA[Obtain the total size of the physical memory present in the system.
  39167. @return physical memory size bytes.]]>
  39168. </doc>
  39169. </method>
  39170. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  39171. abstract="false" native="false" synchronized="false"
  39172. static="true" final="false" visibility="public"
  39173. deprecated="not deprecated">
  39174. <param name="clazz" type="java.lang.Class"/>
  39175. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39176. <doc>
  39177. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  39178. class name is null, this method will try and return a memory calculator
  39179. plugin available for this system.
  39180. @param clazz class-name
  39181. @param conf configure the plugin with this.
  39182. @return MemoryCalculatorPlugin]]>
  39183. </doc>
  39184. </method>
  39185. <doc>
  39186. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  39187. @deprecated Use
  39188. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  39189. instead]]>
  39190. </doc>
  39191. </class>
  39192. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  39193. <!-- start class org.apache.hadoop.util.MergeSort -->
  39194. <class name="MergeSort" extends="java.lang.Object"
  39195. abstract="false"
  39196. static="false" final="false" visibility="public"
  39197. deprecated="not deprecated">
  39198. <constructor name="MergeSort" type="java.util.Comparator"
  39199. static="false" final="false" visibility="public"
  39200. deprecated="not deprecated">
  39201. </constructor>
  39202. <method name="mergeSort"
  39203. abstract="false" native="false" synchronized="false"
  39204. static="false" final="false" visibility="public"
  39205. deprecated="not deprecated">
  39206. <param name="src" type="int[]"/>
  39207. <param name="dest" type="int[]"/>
  39208. <param name="low" type="int"/>
  39209. <param name="high" type="int"/>
  39210. </method>
  39211. <doc>
  39212. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  39213. </doc>
  39214. </class>
  39215. <!-- end class org.apache.hadoop.util.MergeSort -->
  39216. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  39217. <class name="NativeCodeLoader" extends="java.lang.Object"
  39218. abstract="false"
  39219. static="false" final="false" visibility="public"
  39220. deprecated="not deprecated">
  39221. <constructor name="NativeCodeLoader"
  39222. static="false" final="false" visibility="public"
  39223. deprecated="not deprecated">
  39224. </constructor>
  39225. <method name="isNativeCodeLoaded" return="boolean"
  39226. abstract="false" native="false" synchronized="false"
  39227. static="true" final="false" visibility="public"
  39228. deprecated="not deprecated">
  39229. <doc>
  39230. <![CDATA[Check if native-hadoop code is loaded for this platform.
  39231. @return <code>true</code> if native-hadoop is loaded,
  39232. else <code>false</code>]]>
  39233. </doc>
  39234. </method>
  39235. <method name="getLoadNativeLibraries" return="boolean"
  39236. abstract="false" native="false" synchronized="false"
  39237. static="false" final="false" visibility="public"
  39238. deprecated="not deprecated">
  39239. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39240. <doc>
  39241. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  39242. @param conf configuration
  39243. @return <code>true</code> if native hadoop libraries, if present, can be
  39244. used for this job; <code>false</code> otherwise.]]>
  39245. </doc>
  39246. </method>
  39247. <method name="setLoadNativeLibraries"
  39248. abstract="false" native="false" synchronized="false"
  39249. static="false" final="false" visibility="public"
  39250. deprecated="not deprecated">
  39251. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39252. <param name="loadNativeLibraries" type="boolean"/>
  39253. <doc>
  39254. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  39255. @param conf configuration
  39256. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  39257. </doc>
  39258. </method>
  39259. <doc>
  39260. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  39261. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  39262. or the default java implementations where appropriate.]]>
  39263. </doc>
  39264. </class>
  39265. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  39266. <!-- start class org.apache.hadoop.util.PlatformName -->
  39267. <class name="PlatformName" extends="java.lang.Object"
  39268. abstract="false"
  39269. static="false" final="false" visibility="public"
  39270. deprecated="not deprecated">
  39271. <constructor name="PlatformName"
  39272. static="false" final="false" visibility="public"
  39273. deprecated="not deprecated">
  39274. </constructor>
  39275. <method name="getPlatformName" return="java.lang.String"
  39276. abstract="false" native="false" synchronized="false"
  39277. static="true" final="false" visibility="public"
  39278. deprecated="not deprecated">
  39279. <doc>
  39280. <![CDATA[Get the complete platform as per the java-vm.
  39281. @return returns the complete platform as per the java-vm.]]>
  39282. </doc>
  39283. </method>
  39284. <method name="main"
  39285. abstract="false" native="false" synchronized="false"
  39286. static="true" final="false" visibility="public"
  39287. deprecated="not deprecated">
  39288. <param name="args" type="java.lang.String[]"/>
  39289. </method>
  39290. <doc>
  39291. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  39292. </doc>
  39293. </class>
  39294. <!-- end class org.apache.hadoop.util.PlatformName -->
  39295. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  39296. <class name="PrintJarMainClass" extends="java.lang.Object"
  39297. abstract="false"
  39298. static="false" final="false" visibility="public"
  39299. deprecated="not deprecated">
  39300. <constructor name="PrintJarMainClass"
  39301. static="false" final="false" visibility="public"
  39302. deprecated="not deprecated">
  39303. </constructor>
  39304. <method name="main"
  39305. abstract="false" native="false" synchronized="false"
  39306. static="true" final="false" visibility="public"
  39307. deprecated="not deprecated">
  39308. <param name="args" type="java.lang.String[]"/>
  39309. <doc>
  39310. <![CDATA[@param args]]>
  39311. </doc>
  39312. </method>
  39313. <doc>
  39314. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  39315. </doc>
  39316. </class>
  39317. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  39318. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  39319. <class name="PriorityQueue" extends="java.lang.Object"
  39320. abstract="true"
  39321. static="false" final="false" visibility="public"
  39322. deprecated="not deprecated">
  39323. <constructor name="PriorityQueue"
  39324. static="false" final="false" visibility="public"
  39325. deprecated="not deprecated">
  39326. </constructor>
  39327. <method name="lessThan" return="boolean"
  39328. abstract="true" native="false" synchronized="false"
  39329. static="false" final="false" visibility="protected"
  39330. deprecated="not deprecated">
  39331. <param name="a" type="java.lang.Object"/>
  39332. <param name="b" type="java.lang.Object"/>
  39333. <doc>
  39334. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  39335. must define this one method.]]>
  39336. </doc>
  39337. </method>
  39338. <method name="initialize"
  39339. abstract="false" native="false" synchronized="false"
  39340. static="false" final="true" visibility="protected"
  39341. deprecated="not deprecated">
  39342. <param name="maxSize" type="int"/>
  39343. <doc>
  39344. <![CDATA[Subclass constructors must call this.]]>
  39345. </doc>
  39346. </method>
  39347. <method name="put"
  39348. abstract="false" native="false" synchronized="false"
  39349. static="false" final="true" visibility="public"
  39350. deprecated="not deprecated">
  39351. <param name="element" type="java.lang.Object"/>
  39352. <doc>
  39353. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  39354. If one tries to add more objects than maxSize from initialize
  39355. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  39356. </doc>
  39357. </method>
  39358. <method name="insert" return="boolean"
  39359. abstract="false" native="false" synchronized="false"
  39360. static="false" final="false" visibility="public"
  39361. deprecated="not deprecated">
  39362. <param name="element" type="java.lang.Object"/>
  39363. <doc>
  39364. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  39365. the PriorityQueue is not full, or not lessThan(element, top()).
  39366. @param element
  39367. @return true if element is added, false otherwise.]]>
  39368. </doc>
  39369. </method>
  39370. <method name="top" return="java.lang.Object"
  39371. abstract="false" native="false" synchronized="false"
  39372. static="false" final="true" visibility="public"
  39373. deprecated="not deprecated">
  39374. <doc>
  39375. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  39376. </doc>
  39377. </method>
  39378. <method name="pop" return="java.lang.Object"
  39379. abstract="false" native="false" synchronized="false"
  39380. static="false" final="true" visibility="public"
  39381. deprecated="not deprecated">
  39382. <doc>
  39383. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  39384. time.]]>
  39385. </doc>
  39386. </method>
  39387. <method name="adjustTop"
  39388. abstract="false" native="false" synchronized="false"
  39389. static="false" final="true" visibility="public"
  39390. deprecated="not deprecated">
  39391. <doc>
  39392. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  39393. worst case, but it's at least twice as fast to <pre>
  39394. { pq.top().change(); pq.adjustTop(); }
  39395. </pre> instead of <pre>
  39396. { o = pq.pop(); o.change(); pq.push(o); }
  39397. </pre>]]>
  39398. </doc>
  39399. </method>
  39400. <method name="size" return="int"
  39401. abstract="false" native="false" synchronized="false"
  39402. static="false" final="true" visibility="public"
  39403. deprecated="not deprecated">
  39404. <doc>
  39405. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  39406. </doc>
  39407. </method>
  39408. <method name="clear"
  39409. abstract="false" native="false" synchronized="false"
  39410. static="false" final="true" visibility="public"
  39411. deprecated="not deprecated">
  39412. <doc>
  39413. <![CDATA[Removes all entries from the PriorityQueue.]]>
  39414. </doc>
  39415. </method>
  39416. <doc>
  39417. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  39418. least element can always be found in constant time. Put()'s and pop()'s
  39419. require log(size) time.]]>
  39420. </doc>
  39421. </class>
  39422. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  39423. <!-- start class org.apache.hadoop.util.ProcessTree -->
  39424. <class name="ProcessTree" extends="java.lang.Object"
  39425. abstract="false"
  39426. static="false" final="false" visibility="public"
  39427. deprecated="not deprecated">
  39428. <constructor name="ProcessTree"
  39429. static="false" final="false" visibility="public"
  39430. deprecated="not deprecated">
  39431. </constructor>
  39432. <method name="killProcess"
  39433. abstract="false" native="false" synchronized="false"
  39434. static="true" final="false" visibility="public"
  39435. deprecated="not deprecated">
  39436. <param name="pid" type="java.lang.String"/>
  39437. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  39438. <doc>
  39439. <![CDATA[Sends signal to process, forcefully terminating the process.
  39440. @param pid process id
  39441. @param signal the signal number to send]]>
  39442. </doc>
  39443. </method>
  39444. <method name="killProcessGroup"
  39445. abstract="false" native="false" synchronized="false"
  39446. static="true" final="false" visibility="public"
  39447. deprecated="not deprecated">
  39448. <param name="pgrpId" type="java.lang.String"/>
  39449. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  39450. <doc>
  39451. <![CDATA[Sends signal to all process belonging to same process group,
  39452. forcefully terminating the process group.
  39453. @param pgrpId process group id
  39454. @param signal the signal number to send]]>
  39455. </doc>
  39456. </method>
  39457. <method name="isAlive" return="boolean"
  39458. abstract="false" native="false" synchronized="false"
  39459. static="true" final="false" visibility="public"
  39460. deprecated="not deprecated">
  39461. <param name="pid" type="java.lang.String"/>
  39462. <doc>
  39463. <![CDATA[Is the process with PID pid still alive?
  39464. This method assumes that isAlive is called on a pid that was alive not
  39465. too long ago, and hence assumes no chance of pid-wrapping-around.
  39466. @param pid pid of the process to check.
  39467. @return true if process is alive.]]>
  39468. </doc>
  39469. </method>
  39470. <method name="isProcessGroupAlive" return="boolean"
  39471. abstract="false" native="false" synchronized="false"
  39472. static="true" final="false" visibility="public"
  39473. deprecated="not deprecated">
  39474. <param name="pgrpId" type="java.lang.String"/>
  39475. <doc>
  39476. <![CDATA[Is the process group with still alive?
  39477. This method assumes that isAlive is called on a pid that was alive not
  39478. too long ago, and hence assumes no chance of pid-wrapping-around.
  39479. @param pgrpId process group id
  39480. @return true if any of process in group is alive.]]>
  39481. </doc>
  39482. </method>
  39483. <field name="isSetsidAvailable" type="boolean"
  39484. transient="false" volatile="false"
  39485. static="true" final="true" visibility="public"
  39486. deprecated="not deprecated">
  39487. </field>
  39488. <doc>
  39489. <![CDATA[Process tree related operations]]>
  39490. </doc>
  39491. </class>
  39492. <!-- end class org.apache.hadoop.util.ProcessTree -->
  39493. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  39494. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  39495. abstract="false"
  39496. static="true" final="true" visibility="public"
  39497. deprecated="not deprecated">
  39498. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  39499. abstract="false" native="false" synchronized="false"
  39500. static="true" final="false" visibility="public"
  39501. deprecated="not deprecated">
  39502. </method>
  39503. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  39504. abstract="false" native="false" synchronized="false"
  39505. static="true" final="false" visibility="public"
  39506. deprecated="not deprecated">
  39507. <param name="name" type="java.lang.String"/>
  39508. </method>
  39509. <method name="getValue" return="int"
  39510. abstract="false" native="false" synchronized="false"
  39511. static="false" final="false" visibility="public"
  39512. deprecated="not deprecated">
  39513. </method>
  39514. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  39515. transient="false" volatile="false"
  39516. static="true" final="true" visibility="public"
  39517. deprecated="not deprecated">
  39518. </field>
  39519. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  39520. transient="false" volatile="false"
  39521. static="true" final="true" visibility="public"
  39522. deprecated="not deprecated">
  39523. </field>
  39524. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  39525. transient="false" volatile="false"
  39526. static="true" final="true" visibility="public"
  39527. deprecated="not deprecated">
  39528. </field>
  39529. <doc>
  39530. <![CDATA[The constants for the signals.]]>
  39531. </doc>
  39532. </class>
  39533. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  39534. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  39535. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  39536. abstract="false"
  39537. static="false" final="false" visibility="public"
  39538. deprecated="not deprecated">
  39539. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  39540. static="false" final="false" visibility="public"
  39541. deprecated="not deprecated">
  39542. </constructor>
  39543. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  39544. static="false" final="false" visibility="public"
  39545. deprecated="not deprecated">
  39546. </constructor>
  39547. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  39548. static="false" final="false" visibility="public"
  39549. deprecated="not deprecated">
  39550. </constructor>
  39551. <method name="isAvailable" return="boolean"
  39552. abstract="false" native="false" synchronized="false"
  39553. static="true" final="false" visibility="public"
  39554. deprecated="not deprecated">
  39555. <doc>
  39556. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  39557. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  39558. </doc>
  39559. </method>
  39560. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  39561. abstract="false" native="false" synchronized="false"
  39562. static="false" final="false" visibility="public"
  39563. deprecated="not deprecated">
  39564. <doc>
  39565. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  39566. an empty tree will be returned.
  39567. @return the process-tree with latest state.]]>
  39568. </doc>
  39569. </method>
  39570. <method name="isAlive" return="boolean"
  39571. abstract="false" native="false" synchronized="false"
  39572. static="false" final="false" visibility="public"
  39573. deprecated="not deprecated">
  39574. <doc>
  39575. <![CDATA[Is the root-process alive?
  39576. @return true if the root-process is alive, false otherwise.]]>
  39577. </doc>
  39578. </method>
  39579. <method name="isAnyProcessInTreeAlive" return="boolean"
  39580. abstract="false" native="false" synchronized="false"
  39581. static="false" final="false" visibility="public"
  39582. deprecated="not deprecated">
  39583. <doc>
  39584. <![CDATA[Is any of the subprocesses in the process-tree alive?
  39585. @return true if any of the processes in the process-tree is
  39586. alive, false otherwise.]]>
  39587. </doc>
  39588. </method>
  39589. <method name="getProcessTreeDump" return="java.lang.String"
  39590. abstract="false" native="false" synchronized="false"
  39591. static="false" final="false" visibility="public"
  39592. deprecated="not deprecated">
  39593. <doc>
  39594. <![CDATA[Get a dump of the process-tree.
  39595. @return a string concatenating the dump of information of all the processes
  39596. in the process-tree]]>
  39597. </doc>
  39598. </method>
  39599. <method name="getCumulativeVmem" return="long"
  39600. abstract="false" native="false" synchronized="false"
  39601. static="false" final="false" visibility="public"
  39602. deprecated="not deprecated">
  39603. <doc>
  39604. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  39605. process-tree.
  39606. @return cumulative virtual memory used by the process-tree in bytes.]]>
  39607. </doc>
  39608. </method>
  39609. <method name="getCumulativeRssmem" return="long"
  39610. abstract="false" native="false" synchronized="false"
  39611. static="false" final="false" visibility="public"
  39612. deprecated="not deprecated">
  39613. <doc>
  39614. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  39615. in the process-tree.
  39616. @return cumulative rss memory used by the process-tree in bytes. return 0
  39617. if it cannot be calculated]]>
  39618. </doc>
  39619. </method>
  39620. <method name="getCumulativeVmem" return="long"
  39621. abstract="false" native="false" synchronized="false"
  39622. static="false" final="false" visibility="public"
  39623. deprecated="not deprecated">
  39624. <param name="olderThanAge" type="int"/>
  39625. <doc>
  39626. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  39627. process-tree that are older than the passed in age.
  39628. @param olderThanAge processes above this age are included in the
  39629. memory addition
  39630. @return cumulative virtual memory used by the process-tree in bytes,
  39631. for processes older than this age.]]>
  39632. </doc>
  39633. </method>
  39634. <method name="getCumulativeRssmem" return="long"
  39635. abstract="false" native="false" synchronized="false"
  39636. static="false" final="false" visibility="public"
  39637. deprecated="not deprecated">
  39638. <param name="olderThanAge" type="int"/>
  39639. <doc>
  39640. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  39641. in the process-tree that are older than the passed in age.
  39642. @param olderThanAge processes above this age are included in the
  39643. memory addition
  39644. @return cumulative rss memory used by the process-tree in bytes,
  39645. for processes older than this age. return 0 if it cannot be
  39646. calculated]]>
  39647. </doc>
  39648. </method>
  39649. <method name="getCumulativeCpuTime" return="long"
  39650. abstract="false" native="false" synchronized="false"
  39651. static="false" final="false" visibility="public"
  39652. deprecated="not deprecated">
  39653. <doc>
  39654. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  39655. process-tree since the process-tree created
  39656. @return cumulative CPU time in millisecond since the process-tree created
  39657. return 0 if it cannot be calculated]]>
  39658. </doc>
  39659. </method>
  39660. <method name="toString" return="java.lang.String"
  39661. abstract="false" native="false" synchronized="false"
  39662. static="false" final="false" visibility="public"
  39663. deprecated="not deprecated">
  39664. <doc>
  39665. <![CDATA[Returns a string printing PIDs of process present in the
  39666. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  39667. </doc>
  39668. </method>
  39669. <field name="PAGE_SIZE" type="long"
  39670. transient="false" volatile="false"
  39671. static="true" final="true" visibility="public"
  39672. deprecated="not deprecated">
  39673. </field>
  39674. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  39675. transient="false" volatile="false"
  39676. static="true" final="true" visibility="public"
  39677. deprecated="not deprecated">
  39678. </field>
  39679. <doc>
  39680. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  39681. </doc>
  39682. </class>
  39683. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  39684. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  39685. <class name="ProgramDriver" extends="java.lang.Object"
  39686. abstract="false"
  39687. static="false" final="false" visibility="public"
  39688. deprecated="not deprecated">
  39689. <constructor name="ProgramDriver"
  39690. static="false" final="false" visibility="public"
  39691. deprecated="not deprecated">
  39692. </constructor>
  39693. <method name="addClass"
  39694. abstract="false" native="false" synchronized="false"
  39695. static="false" final="false" visibility="public"
  39696. deprecated="not deprecated">
  39697. <param name="name" type="java.lang.String"/>
  39698. <param name="mainClass" type="java.lang.Class"/>
  39699. <param name="description" type="java.lang.String"/>
  39700. <exception name="Throwable" type="java.lang.Throwable"/>
  39701. <doc>
  39702. <![CDATA[This is the method that adds the classed to the repository
  39703. @param name The name of the string you want the class instance to be called with
  39704. @param mainClass The class that you want to add to the repository
  39705. @param description The description of the class
  39706. @throws NoSuchMethodException
  39707. @throws SecurityException]]>
  39708. </doc>
  39709. </method>
  39710. <method name="driver"
  39711. abstract="false" native="false" synchronized="false"
  39712. static="false" final="false" visibility="public"
  39713. deprecated="not deprecated">
  39714. <param name="args" type="java.lang.String[]"/>
  39715. <exception name="Throwable" type="java.lang.Throwable"/>
  39716. <doc>
  39717. <![CDATA[This is a driver for the example programs.
  39718. It looks at the first command line argument and tries to find an
  39719. example program with that name.
  39720. If it is found, it calls the main method in that class with the rest
  39721. of the command line arguments.
  39722. @param args The argument from the user. args[0] is the command to run.
  39723. @throws NoSuchMethodException
  39724. @throws SecurityException
  39725. @throws IllegalAccessException
  39726. @throws IllegalArgumentException
  39727. @throws Throwable Anything thrown by the example program's main]]>
  39728. </doc>
  39729. </method>
  39730. <doc>
  39731. <![CDATA[A driver that is used to run programs added to it]]>
  39732. </doc>
  39733. </class>
  39734. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  39735. <!-- start class org.apache.hadoop.util.Progress -->
  39736. <class name="Progress" extends="java.lang.Object"
  39737. abstract="false"
  39738. static="false" final="false" visibility="public"
  39739. deprecated="not deprecated">
  39740. <constructor name="Progress"
  39741. static="false" final="false" visibility="public"
  39742. deprecated="not deprecated">
  39743. <doc>
  39744. <![CDATA[Creates a new root node.]]>
  39745. </doc>
  39746. </constructor>
  39747. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39748. abstract="false" native="false" synchronized="false"
  39749. static="false" final="false" visibility="public"
  39750. deprecated="not deprecated">
  39751. <param name="status" type="java.lang.String"/>
  39752. <doc>
  39753. <![CDATA[Adds a named node to the tree.]]>
  39754. </doc>
  39755. </method>
  39756. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39757. abstract="false" native="false" synchronized="true"
  39758. static="false" final="false" visibility="public"
  39759. deprecated="not deprecated">
  39760. <doc>
  39761. <![CDATA[Adds a node to the tree.]]>
  39762. </doc>
  39763. </method>
  39764. <method name="startNextPhase"
  39765. abstract="false" native="false" synchronized="true"
  39766. static="false" final="false" visibility="public"
  39767. deprecated="not deprecated">
  39768. <doc>
  39769. <![CDATA[Called during execution to move to the next phase at this level in the
  39770. tree.]]>
  39771. </doc>
  39772. </method>
  39773. <method name="phase" return="org.apache.hadoop.util.Progress"
  39774. abstract="false" native="false" synchronized="true"
  39775. static="false" final="false" visibility="public"
  39776. deprecated="not deprecated">
  39777. <doc>
  39778. <![CDATA[Returns the current sub-node executing.]]>
  39779. </doc>
  39780. </method>
  39781. <method name="complete"
  39782. abstract="false" native="false" synchronized="false"
  39783. static="false" final="false" visibility="public"
  39784. deprecated="not deprecated">
  39785. <doc>
  39786. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  39787. </doc>
  39788. </method>
  39789. <method name="set"
  39790. abstract="false" native="false" synchronized="true"
  39791. static="false" final="false" visibility="public"
  39792. deprecated="not deprecated">
  39793. <param name="progress" type="float"/>
  39794. <doc>
  39795. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  39796. </doc>
  39797. </method>
  39798. <method name="get" return="float"
  39799. abstract="false" native="false" synchronized="true"
  39800. static="false" final="false" visibility="public"
  39801. deprecated="not deprecated">
  39802. <doc>
  39803. <![CDATA[Returns the overall progress of the root.]]>
  39804. </doc>
  39805. </method>
  39806. <method name="setStatus"
  39807. abstract="false" native="false" synchronized="true"
  39808. static="false" final="false" visibility="public"
  39809. deprecated="not deprecated">
  39810. <param name="status" type="java.lang.String"/>
  39811. </method>
  39812. <method name="toString" return="java.lang.String"
  39813. abstract="false" native="false" synchronized="false"
  39814. static="false" final="false" visibility="public"
  39815. deprecated="not deprecated">
  39816. </method>
  39817. <doc>
  39818. <![CDATA[Utility to assist with generation of progress reports. Applications build
  39819. a hierarchy of {@link Progress} instances, each modelling a phase of
  39820. execution. The root is constructed with {@link #Progress()}. Nodes for
  39821. sub-phases are created by calling {@link #addPhase()}.]]>
  39822. </doc>
  39823. </class>
  39824. <!-- end class org.apache.hadoop.util.Progress -->
  39825. <!-- start interface org.apache.hadoop.util.Progressable -->
  39826. <interface name="Progressable" abstract="true"
  39827. static="false" final="false" visibility="public"
  39828. deprecated="not deprecated">
  39829. <method name="progress"
  39830. abstract="false" native="false" synchronized="false"
  39831. static="false" final="false" visibility="public"
  39832. deprecated="not deprecated">
  39833. <doc>
  39834. <![CDATA[Report progress to the Hadoop framework.]]>
  39835. </doc>
  39836. </method>
  39837. <doc>
  39838. <![CDATA[A facility for reporting progress.
  39839. <p>Clients and/or applications can use the provided <code>Progressable</code>
  39840. to explicitly report progress to the Hadoop framework. This is especially
  39841. important for operations which take an insignificant amount of time since,
  39842. in-lieu of the reported progress, the framework has to assume that an error
  39843. has occured and time-out the operation.</p>]]>
  39844. </doc>
  39845. </interface>
  39846. <!-- end interface org.apache.hadoop.util.Progressable -->
  39847. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  39848. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  39849. abstract="true"
  39850. static="false" final="false" visibility="public"
  39851. deprecated="not deprecated">
  39852. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  39853. static="false" final="false" visibility="public"
  39854. deprecated="not deprecated">
  39855. <doc>
  39856. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  39857. used as first word in the log messages.
  39858. @param workItemsName - what kind of work items are being managed
  39859. on the queue? A plural word is best here, for logging.
  39860. @param logObject - What log do you want the log messages to be sent to?]]>
  39861. </doc>
  39862. </constructor>
  39863. <method name="startCycle"
  39864. abstract="false" native="false" synchronized="false"
  39865. static="false" final="false" visibility="public"
  39866. deprecated="not deprecated">
  39867. <param name="maxWorkToProcess" type="int"/>
  39868. </method>
  39869. <method name="endCycle"
  39870. abstract="false" native="false" synchronized="false"
  39871. static="false" final="false" visibility="public"
  39872. deprecated="not deprecated">
  39873. <param name="workFound" type="int"/>
  39874. </method>
  39875. <method name="checkRestart"
  39876. abstract="false" native="false" synchronized="false"
  39877. static="false" final="false" visibility="public"
  39878. deprecated="not deprecated">
  39879. </method>
  39880. <method name="preCheckIsLastCycle" return="boolean"
  39881. abstract="true" native="false" synchronized="false"
  39882. static="false" final="false" visibility="public"
  39883. deprecated="not deprecated">
  39884. <param name="maxWorkToProcess" type="int"/>
  39885. <doc>
  39886. <![CDATA[The termination condition is to identify the last cycle that will
  39887. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  39888. is called at the beginning of each cycle, and
  39889. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  39890. At least one of them must correctly provide the termination
  39891. condition. The other may always return 'false'. If either of them
  39892. returns 'true' in a given cycle, then at the end of that cycle the
  39893. stats will be output to log, and stats collection will end.
  39894. @param maxWorkToProcess - if this number is greater than the amount
  39895. of work remaining at the start of a cycle, then it will
  39896. be the last cycle.
  39897. @return - true if last cycle detected, else false]]>
  39898. </doc>
  39899. </method>
  39900. <method name="postCheckIsLastCycle" return="boolean"
  39901. abstract="true" native="false" synchronized="false"
  39902. static="false" final="false" visibility="public"
  39903. deprecated="not deprecated">
  39904. <param name="workFound" type="int"/>
  39905. <doc>
  39906. <![CDATA[See {@link #preCheckIsLastCycle}.
  39907. @param workFound - may not be useful
  39908. @return - true if remaining work is zero at end of cycle,
  39909. else false]]>
  39910. </doc>
  39911. </method>
  39912. <doc>
  39913. <![CDATA[Hadoop has several work queues, such as
  39914. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  39915. With a properly throttled queue, a worker thread cycles repeatedly,
  39916. doing a chunk of work each cycle then resting a bit, until the queue is
  39917. empty. This class is intended to collect statistics about the behavior of
  39918. such queues and consumers. It reports the amount of work done and
  39919. how long it took, for the first cycle after collection starts, and for
  39920. the total number of cycles needed to flush the queue. We use a state
  39921. machine to detect when the queue has been flushed and then we log the
  39922. stats; see {@link State} for enumeration of the states and their meanings.]]>
  39923. </doc>
  39924. </class>
  39925. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  39926. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39927. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  39928. abstract="false"
  39929. static="true" final="true" visibility="public"
  39930. deprecated="not deprecated">
  39931. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  39932. abstract="false" native="false" synchronized="false"
  39933. static="true" final="false" visibility="public"
  39934. deprecated="not deprecated">
  39935. </method>
  39936. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39937. abstract="false" native="false" synchronized="false"
  39938. static="true" final="false" visibility="public"
  39939. deprecated="not deprecated">
  39940. <param name="name" type="java.lang.String"/>
  39941. </method>
  39942. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39943. transient="false" volatile="false"
  39944. static="true" final="true" visibility="public"
  39945. deprecated="not deprecated">
  39946. </field>
  39947. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39948. transient="false" volatile="false"
  39949. static="true" final="true" visibility="public"
  39950. deprecated="not deprecated">
  39951. </field>
  39952. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39953. transient="false" volatile="false"
  39954. static="true" final="true" visibility="public"
  39955. deprecated="not deprecated">
  39956. </field>
  39957. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39958. transient="false" volatile="false"
  39959. static="true" final="true" visibility="public"
  39960. deprecated="not deprecated">
  39961. </field>
  39962. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39963. transient="false" volatile="false"
  39964. static="true" final="true" visibility="public"
  39965. deprecated="not deprecated">
  39966. </field>
  39967. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39968. transient="false" volatile="false"
  39969. static="true" final="true" visibility="public"
  39970. deprecated="not deprecated">
  39971. </field>
  39972. <doc>
  39973. <![CDATA[This enum provides the "states" of a state machine for
  39974. {@link QueueProcessingStatistics}.
  39975. The meanings of the states are: <ul>
  39976. <li> BEGIN_COLLECTING - Ready to begin.
  39977. <li> IN_FIRST_CYCLE - Started the first cycle.
  39978. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  39979. no further cycles because this one will complete all
  39980. needed work. When done, will go straight to
  39981. "DONE_COLLECTING".
  39982. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  39983. <li> IN_LAST_CYCLE - Started the last cycle.
  39984. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  39985. </ul>]]>
  39986. </doc>
  39987. </class>
  39988. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39989. <!-- start class org.apache.hadoop.util.QuickSort -->
  39990. <class name="QuickSort" extends="java.lang.Object"
  39991. abstract="false"
  39992. static="false" final="true" visibility="public"
  39993. deprecated="not deprecated">
  39994. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  39995. <constructor name="QuickSort"
  39996. static="false" final="false" visibility="public"
  39997. deprecated="not deprecated">
  39998. </constructor>
  39999. <method name="getMaxDepth" return="int"
  40000. abstract="false" native="false" synchronized="false"
  40001. static="true" final="false" visibility="protected"
  40002. deprecated="not deprecated">
  40003. <param name="x" type="int"/>
  40004. <doc>
  40005. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  40006. Returns 2 * ceil(log(n)).]]>
  40007. </doc>
  40008. </method>
  40009. <method name="sort"
  40010. abstract="false" native="false" synchronized="false"
  40011. static="false" final="false" visibility="public"
  40012. deprecated="not deprecated">
  40013. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40014. <param name="p" type="int"/>
  40015. <param name="r" type="int"/>
  40016. <doc>
  40017. <![CDATA[Sort the given range of items using quick sort.
  40018. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  40019. then switch to {@link HeapSort}.]]>
  40020. </doc>
  40021. </method>
  40022. <method name="sort"
  40023. abstract="false" native="false" synchronized="false"
  40024. static="false" final="false" visibility="public"
  40025. deprecated="not deprecated">
  40026. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40027. <param name="p" type="int"/>
  40028. <param name="r" type="int"/>
  40029. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  40030. <doc>
  40031. <![CDATA[{@inheritDoc}]]>
  40032. </doc>
  40033. </method>
  40034. <doc>
  40035. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  40036. </doc>
  40037. </class>
  40038. <!-- end class org.apache.hadoop.util.QuickSort -->
  40039. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  40040. <class name="ReflectionUtils" extends="java.lang.Object"
  40041. abstract="false"
  40042. static="false" final="false" visibility="public"
  40043. deprecated="not deprecated">
  40044. <constructor name="ReflectionUtils"
  40045. static="false" final="false" visibility="public"
  40046. deprecated="not deprecated">
  40047. </constructor>
  40048. <method name="setConf"
  40049. abstract="false" native="false" synchronized="false"
  40050. static="true" final="false" visibility="public"
  40051. deprecated="not deprecated">
  40052. <param name="theObject" type="java.lang.Object"/>
  40053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40054. <doc>
  40055. <![CDATA[Check and set 'configuration' if necessary.
  40056. @param theObject object for which to set configuration
  40057. @param conf Configuration]]>
  40058. </doc>
  40059. </method>
  40060. <method name="newInstance" return="java.lang.Object"
  40061. abstract="false" native="false" synchronized="false"
  40062. static="true" final="false" visibility="public"
  40063. deprecated="not deprecated">
  40064. <param name="theClass" type="java.lang.Class"/>
  40065. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40066. <doc>
  40067. <![CDATA[Create an object for the given class and initialize it from conf
  40068. @param theClass class of which an object is created
  40069. @param conf Configuration
  40070. @return a new object]]>
  40071. </doc>
  40072. </method>
  40073. <method name="setContentionTracing"
  40074. abstract="false" native="false" synchronized="false"
  40075. static="true" final="false" visibility="public"
  40076. deprecated="not deprecated">
  40077. <param name="val" type="boolean"/>
  40078. </method>
  40079. <method name="printThreadInfo"
  40080. abstract="false" native="false" synchronized="false"
  40081. static="true" final="false" visibility="public"
  40082. deprecated="not deprecated">
  40083. <param name="stream" type="java.io.PrintWriter"/>
  40084. <param name="title" type="java.lang.String"/>
  40085. <doc>
  40086. <![CDATA[Print all of the thread's information and stack traces.
  40087. @param stream the stream to
  40088. @param title a string title for the stack trace]]>
  40089. </doc>
  40090. </method>
  40091. <method name="logThreadInfo"
  40092. abstract="false" native="false" synchronized="false"
  40093. static="true" final="false" visibility="public"
  40094. deprecated="not deprecated">
  40095. <param name="log" type="org.apache.commons.logging.Log"/>
  40096. <param name="title" type="java.lang.String"/>
  40097. <param name="minInterval" type="long"/>
  40098. <doc>
  40099. <![CDATA[Log the current thread stacks at INFO level.
  40100. @param log the logger that logs the stack trace
  40101. @param title a descriptive title for the call stacks
  40102. @param minInterval the minimum time from the last]]>
  40103. </doc>
  40104. </method>
  40105. <method name="getClass" return="java.lang.Class"
  40106. abstract="false" native="false" synchronized="false"
  40107. static="true" final="false" visibility="public"
  40108. deprecated="not deprecated">
  40109. <param name="o" type="java.lang.Object"/>
  40110. <doc>
  40111. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  40112. @param o object whose correctly-typed <code>Class</code> is to be obtained
  40113. @return the correctly typed <code>Class</code> of the given object.]]>
  40114. </doc>
  40115. </method>
  40116. <method name="copy" return="java.lang.Object"
  40117. abstract="false" native="false" synchronized="false"
  40118. static="true" final="false" visibility="public"
  40119. deprecated="not deprecated">
  40120. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40121. <param name="src" type="java.lang.Object"/>
  40122. <param name="dst" type="java.lang.Object"/>
  40123. <exception name="IOException" type="java.io.IOException"/>
  40124. <doc>
  40125. <![CDATA[Make a copy of the writable object using serialization to a buffer
  40126. @param dst the object to copy from
  40127. @param src the object to copy into, which is destroyed
  40128. @throws IOException]]>
  40129. </doc>
  40130. </method>
  40131. <method name="cloneWritableInto"
  40132. abstract="false" native="false" synchronized="false"
  40133. static="true" final="false" visibility="public"
  40134. deprecated="not deprecated">
  40135. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  40136. <param name="src" type="org.apache.hadoop.io.Writable"/>
  40137. <exception name="IOException" type="java.io.IOException"/>
  40138. </method>
  40139. <doc>
  40140. <![CDATA[General reflection utils]]>
  40141. </doc>
  40142. </class>
  40143. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  40144. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  40145. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  40146. abstract="true"
  40147. static="false" final="false" visibility="public"
  40148. deprecated="not deprecated">
  40149. <constructor name="ResourceCalculatorPlugin"
  40150. static="false" final="false" visibility="public"
  40151. deprecated="not deprecated">
  40152. </constructor>
  40153. <method name="getVirtualMemorySize" return="long"
  40154. abstract="true" native="false" synchronized="false"
  40155. static="false" final="false" visibility="public"
  40156. deprecated="not deprecated">
  40157. <doc>
  40158. <![CDATA[Obtain the total size of the virtual memory present in the system.
  40159. @return virtual memory size in bytes.]]>
  40160. </doc>
  40161. </method>
  40162. <method name="getPhysicalMemorySize" return="long"
  40163. abstract="true" native="false" synchronized="false"
  40164. static="false" final="false" visibility="public"
  40165. deprecated="not deprecated">
  40166. <doc>
  40167. <![CDATA[Obtain the total size of the physical memory present in the system.
  40168. @return physical memory size bytes.]]>
  40169. </doc>
  40170. </method>
  40171. <method name="getAvailableVirtualMemorySize" return="long"
  40172. abstract="true" native="false" synchronized="false"
  40173. static="false" final="false" visibility="public"
  40174. deprecated="not deprecated">
  40175. <doc>
  40176. <![CDATA[Obtain the total size of the available virtual memory present
  40177. in the system.
  40178. @return available virtual memory size in bytes.]]>
  40179. </doc>
  40180. </method>
  40181. <method name="getAvailablePhysicalMemorySize" return="long"
  40182. abstract="true" native="false" synchronized="false"
  40183. static="false" final="false" visibility="public"
  40184. deprecated="not deprecated">
  40185. <doc>
  40186. <![CDATA[Obtain the total size of the available physical memory present
  40187. in the system.
  40188. @return available physical memory size bytes.]]>
  40189. </doc>
  40190. </method>
  40191. <method name="getNumProcessors" return="int"
  40192. abstract="true" native="false" synchronized="false"
  40193. static="false" final="false" visibility="public"
  40194. deprecated="not deprecated">
  40195. <doc>
  40196. <![CDATA[Obtain the total number of processors present on the system.
  40197. @return number of processors]]>
  40198. </doc>
  40199. </method>
  40200. <method name="getCpuFrequency" return="long"
  40201. abstract="true" native="false" synchronized="false"
  40202. static="false" final="false" visibility="public"
  40203. deprecated="not deprecated">
  40204. <doc>
  40205. <![CDATA[Obtain the CPU frequency of on the system.
  40206. @return CPU frequency in kHz]]>
  40207. </doc>
  40208. </method>
  40209. <method name="getCumulativeCpuTime" return="long"
  40210. abstract="true" native="false" synchronized="false"
  40211. static="false" final="false" visibility="public"
  40212. deprecated="not deprecated">
  40213. <doc>
  40214. <![CDATA[Obtain the cumulative CPU time since the system is on.
  40215. @return cumulative CPU time in milliseconds]]>
  40216. </doc>
  40217. </method>
  40218. <method name="getCpuUsage" return="float"
  40219. abstract="true" native="false" synchronized="false"
  40220. static="false" final="false" visibility="public"
  40221. deprecated="not deprecated">
  40222. <doc>
  40223. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  40224. @return CPU usage in %]]>
  40225. </doc>
  40226. </method>
  40227. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  40228. abstract="true" native="false" synchronized="false"
  40229. static="false" final="false" visibility="public"
  40230. deprecated="not deprecated">
  40231. <doc>
  40232. <![CDATA[Obtain resource status used by current process tree.]]>
  40233. </doc>
  40234. </method>
  40235. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  40236. abstract="false" native="false" synchronized="false"
  40237. static="true" final="false" visibility="public"
  40238. deprecated="not deprecated">
  40239. <param name="clazz" type="java.lang.Class"/>
  40240. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40241. <doc>
  40242. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  40243. class name is null, this method will try and return a memory calculator
  40244. plugin available for this system.
  40245. @param clazz class-name
  40246. @param conf configure the plugin with this.
  40247. @return ResourceCalculatorPlugin]]>
  40248. </doc>
  40249. </method>
  40250. <doc>
  40251. <![CDATA[Plugin to calculate resource information on the system.]]>
  40252. </doc>
  40253. </class>
  40254. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  40255. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  40256. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  40257. abstract="false"
  40258. static="true" final="false" visibility="public"
  40259. deprecated="not deprecated">
  40260. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  40261. static="false" final="false" visibility="public"
  40262. deprecated="not deprecated">
  40263. </constructor>
  40264. <method name="getPhysicalMemorySize" return="long"
  40265. abstract="false" native="false" synchronized="false"
  40266. static="false" final="false" visibility="public"
  40267. deprecated="not deprecated">
  40268. <doc>
  40269. <![CDATA[Obtain the physical memory size used by current process tree.
  40270. @return physical memory size in bytes.]]>
  40271. </doc>
  40272. </method>
  40273. <method name="getVirtualMemorySize" return="long"
  40274. abstract="false" native="false" synchronized="false"
  40275. static="false" final="false" visibility="public"
  40276. deprecated="not deprecated">
  40277. <doc>
  40278. <![CDATA[Obtain the virtual memory size used by a current process tree.
  40279. @return virtual memory size in bytes.]]>
  40280. </doc>
  40281. </method>
  40282. <method name="getCumulativeCpuTime" return="long"
  40283. abstract="false" native="false" synchronized="false"
  40284. static="false" final="false" visibility="public"
  40285. deprecated="not deprecated">
  40286. <doc>
  40287. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  40288. @return cumulative CPU time in milliseconds]]>
  40289. </doc>
  40290. </method>
  40291. </class>
  40292. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  40293. <!-- start class org.apache.hadoop.util.RunJar -->
  40294. <class name="RunJar" extends="java.lang.Object"
  40295. abstract="false"
  40296. static="false" final="false" visibility="public"
  40297. deprecated="not deprecated">
  40298. <constructor name="RunJar"
  40299. static="false" final="false" visibility="public"
  40300. deprecated="not deprecated">
  40301. </constructor>
  40302. <method name="unJar"
  40303. abstract="false" native="false" synchronized="false"
  40304. static="true" final="false" visibility="public"
  40305. deprecated="not deprecated">
  40306. <param name="jarFile" type="java.io.File"/>
  40307. <param name="toDir" type="java.io.File"/>
  40308. <exception name="IOException" type="java.io.IOException"/>
  40309. <doc>
  40310. <![CDATA[Unpack a jar file into a directory.]]>
  40311. </doc>
  40312. </method>
  40313. <method name="main"
  40314. abstract="false" native="false" synchronized="false"
  40315. static="true" final="false" visibility="public"
  40316. deprecated="not deprecated">
  40317. <param name="args" type="java.lang.String[]"/>
  40318. <exception name="Throwable" type="java.lang.Throwable"/>
  40319. <doc>
  40320. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  40321. then it must be provided on the command line.]]>
  40322. </doc>
  40323. </method>
  40324. <doc>
  40325. <![CDATA[Run a Hadoop job jar.]]>
  40326. </doc>
  40327. </class>
  40328. <!-- end class org.apache.hadoop.util.RunJar -->
  40329. <!-- start class org.apache.hadoop.util.ServletUtil -->
  40330. <class name="ServletUtil" extends="java.lang.Object"
  40331. abstract="false"
  40332. static="false" final="false" visibility="public"
  40333. deprecated="not deprecated">
  40334. <constructor name="ServletUtil"
  40335. static="false" final="false" visibility="public"
  40336. deprecated="not deprecated">
  40337. </constructor>
  40338. <method name="initHTML" return="java.io.PrintWriter"
  40339. abstract="false" native="false" synchronized="false"
  40340. static="true" final="false" visibility="public"
  40341. deprecated="not deprecated">
  40342. <param name="response" type="javax.servlet.ServletResponse"/>
  40343. <param name="title" type="java.lang.String"/>
  40344. <exception name="IOException" type="java.io.IOException"/>
  40345. <doc>
  40346. <![CDATA[Initial HTML header]]>
  40347. </doc>
  40348. </method>
  40349. <method name="getParameter" return="java.lang.String"
  40350. abstract="false" native="false" synchronized="false"
  40351. static="true" final="false" visibility="public"
  40352. deprecated="not deprecated">
  40353. <param name="request" type="javax.servlet.ServletRequest"/>
  40354. <param name="name" type="java.lang.String"/>
  40355. <doc>
  40356. <![CDATA[Get a parameter from a ServletRequest.
  40357. Return null if the parameter contains only white spaces.]]>
  40358. </doc>
  40359. </method>
  40360. <method name="htmlFooter" return="java.lang.String"
  40361. abstract="false" native="false" synchronized="false"
  40362. static="true" final="false" visibility="public"
  40363. deprecated="not deprecated">
  40364. <doc>
  40365. <![CDATA[HTML footer to be added in the jsps.
  40366. @return the HTML footer.]]>
  40367. </doc>
  40368. </method>
  40369. <method name="percentageGraph" return="java.lang.String"
  40370. abstract="false" native="false" synchronized="false"
  40371. static="true" final="false" visibility="public"
  40372. deprecated="not deprecated">
  40373. <param name="perc" type="int"/>
  40374. <param name="width" type="int"/>
  40375. <exception name="IOException" type="java.io.IOException"/>
  40376. <doc>
  40377. <![CDATA[Generate the percentage graph and returns HTML representation string
  40378. of the same.
  40379. @param perc The percentage value for which graph is to be generated
  40380. @param width The width of the display table
  40381. @return HTML String representation of the percentage graph
  40382. @throws IOException]]>
  40383. </doc>
  40384. </method>
  40385. <method name="percentageGraph" return="java.lang.String"
  40386. abstract="false" native="false" synchronized="false"
  40387. static="true" final="false" visibility="public"
  40388. deprecated="not deprecated">
  40389. <param name="perc" type="float"/>
  40390. <param name="width" type="int"/>
  40391. <exception name="IOException" type="java.io.IOException"/>
  40392. <doc>
  40393. <![CDATA[Generate the percentage graph and returns HTML representation string
  40394. of the same.
  40395. @param perc The percentage value for which graph is to be generated
  40396. @param width The width of the display table
  40397. @return HTML String representation of the percentage graph
  40398. @throws IOException]]>
  40399. </doc>
  40400. </method>
  40401. <field name="HTML_TAIL" type="java.lang.String"
  40402. transient="false" volatile="false"
  40403. static="true" final="true" visibility="public"
  40404. deprecated="not deprecated">
  40405. </field>
  40406. </class>
  40407. <!-- end class org.apache.hadoop.util.ServletUtil -->
  40408. <!-- start class org.apache.hadoop.util.Shell -->
  40409. <class name="Shell" extends="java.lang.Object"
  40410. abstract="true"
  40411. static="false" final="false" visibility="public"
  40412. deprecated="not deprecated">
  40413. <constructor name="Shell"
  40414. static="false" final="false" visibility="public"
  40415. deprecated="not deprecated">
  40416. </constructor>
  40417. <constructor name="Shell" type="long"
  40418. static="false" final="false" visibility="public"
  40419. deprecated="not deprecated">
  40420. <doc>
  40421. <![CDATA[@param interval the minimum duration to wait before re-executing the
  40422. command.]]>
  40423. </doc>
  40424. </constructor>
  40425. <method name="getGroupsCommand" return="java.lang.String[]"
  40426. abstract="false" native="false" synchronized="false"
  40427. static="true" final="false" visibility="public"
  40428. deprecated="not deprecated">
  40429. <doc>
  40430. <![CDATA[a Unix command to get the current user's groups list]]>
  40431. </doc>
  40432. </method>
  40433. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  40434. abstract="false" native="false" synchronized="false"
  40435. static="true" final="false" visibility="public"
  40436. deprecated="not deprecated">
  40437. <param name="user" type="java.lang.String"/>
  40438. <doc>
  40439. <![CDATA[a Unix command to get a given user's groups list]]>
  40440. </doc>
  40441. </method>
  40442. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  40443. abstract="false" native="false" synchronized="false"
  40444. static="true" final="false" visibility="public"
  40445. deprecated="not deprecated">
  40446. <param name="netgroup" type="java.lang.String"/>
  40447. <doc>
  40448. <![CDATA[a Unix command to get a given netgroup's user list]]>
  40449. </doc>
  40450. </method>
  40451. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  40452. abstract="false" native="false" synchronized="false"
  40453. static="true" final="false" visibility="public"
  40454. deprecated="not deprecated">
  40455. <doc>
  40456. <![CDATA[Return a Unix command to get permission information.]]>
  40457. </doc>
  40458. </method>
  40459. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  40460. abstract="false" native="false" synchronized="false"
  40461. static="true" final="false" visibility="public"
  40462. deprecated="not deprecated">
  40463. <param name="memoryLimit" type="int"/>
  40464. <doc>
  40465. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  40466. to a given child process. This is only relevant when we are forking a
  40467. process from within the Mapper or the Reducer implementations.
  40468. Also see Hadoop Pipes and Hadoop Streaming.
  40469. It also checks to ensure that we are running on a *nix platform else
  40470. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  40471. @param memoryLimit virtual memory limit
  40472. @return a <code>String[]</code> with the ulimit command arguments or
  40473. <code>null</code> if we are running on a non *nix platform or
  40474. if the limit is unspecified.]]>
  40475. </doc>
  40476. </method>
  40477. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  40478. abstract="false" native="false" synchronized="false"
  40479. static="true" final="false" visibility="public"
  40480. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  40481. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40482. <doc>
  40483. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  40484. to a given child process. This is only relevant when we are forking a
  40485. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  40486. {@link org.apache.hadoop.mapred.Reducer} implementations
  40487. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  40488. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  40489. It also checks to ensure that we are running on a *nix platform else
  40490. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  40491. @param conf configuration
  40492. @return a <code>String[]</code> with the ulimit command arguments or
  40493. <code>null</code> if we are running on a non *nix platform or
  40494. if the limit is unspecified.
  40495. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  40496. </doc>
  40497. </method>
  40498. <method name="setEnvironment"
  40499. abstract="false" native="false" synchronized="false"
  40500. static="false" final="false" visibility="protected"
  40501. deprecated="not deprecated">
  40502. <param name="env" type="java.util.Map"/>
  40503. <doc>
  40504. <![CDATA[set the environment for the command
  40505. @param env Mapping of environment variables]]>
  40506. </doc>
  40507. </method>
  40508. <method name="setWorkingDirectory"
  40509. abstract="false" native="false" synchronized="false"
  40510. static="false" final="false" visibility="protected"
  40511. deprecated="not deprecated">
  40512. <param name="dir" type="java.io.File"/>
  40513. <doc>
  40514. <![CDATA[set the working directory
  40515. @param dir The directory where the command would be executed]]>
  40516. </doc>
  40517. </method>
  40518. <method name="run"
  40519. abstract="false" native="false" synchronized="false"
  40520. static="false" final="false" visibility="protected"
  40521. deprecated="not deprecated">
  40522. <exception name="IOException" type="java.io.IOException"/>
  40523. <doc>
  40524. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  40525. </doc>
  40526. </method>
  40527. <method name="getExecString" return="java.lang.String[]"
  40528. abstract="true" native="false" synchronized="false"
  40529. static="false" final="false" visibility="protected"
  40530. deprecated="not deprecated">
  40531. <doc>
  40532. <![CDATA[return an array containing the command name & its parameters]]>
  40533. </doc>
  40534. </method>
  40535. <method name="parseExecResult"
  40536. abstract="true" native="false" synchronized="false"
  40537. static="false" final="false" visibility="protected"
  40538. deprecated="not deprecated">
  40539. <param name="lines" type="java.io.BufferedReader"/>
  40540. <exception name="IOException" type="java.io.IOException"/>
  40541. <doc>
  40542. <![CDATA[Parse the execution result]]>
  40543. </doc>
  40544. </method>
  40545. <method name="getProcess" return="java.lang.Process"
  40546. abstract="false" native="false" synchronized="false"
  40547. static="false" final="false" visibility="public"
  40548. deprecated="not deprecated">
  40549. <doc>
  40550. <![CDATA[get the current sub-process executing the given command
  40551. @return process executing the command]]>
  40552. </doc>
  40553. </method>
  40554. <method name="getExitCode" return="int"
  40555. abstract="false" native="false" synchronized="false"
  40556. static="false" final="false" visibility="public"
  40557. deprecated="not deprecated">
  40558. <doc>
  40559. <![CDATA[get the exit code
  40560. @return the exit code of the process]]>
  40561. </doc>
  40562. </method>
  40563. <method name="isTimedOut" return="boolean"
  40564. abstract="false" native="false" synchronized="false"
  40565. static="false" final="false" visibility="public"
  40566. deprecated="not deprecated">
  40567. <doc>
  40568. <![CDATA[To check if the passed script to shell command executor timed out or
  40569. not.
  40570. @return if the script timed out.]]>
  40571. </doc>
  40572. </method>
  40573. <method name="execCommand" return="java.lang.String"
  40574. abstract="false" native="false" synchronized="false"
  40575. static="true" final="false" visibility="public"
  40576. deprecated="not deprecated">
  40577. <param name="cmd" type="java.lang.String[]"/>
  40578. <exception name="IOException" type="java.io.IOException"/>
  40579. <doc>
  40580. <![CDATA[Static method to execute a shell command.
  40581. Covers most of the simple cases without requiring the user to implement
  40582. the <code>Shell</code> interface.
  40583. @param cmd shell command to execute.
  40584. @return the output of the executed command.]]>
  40585. </doc>
  40586. </method>
  40587. <method name="execCommand" return="java.lang.String"
  40588. abstract="false" native="false" synchronized="false"
  40589. static="true" final="false" visibility="public"
  40590. deprecated="not deprecated">
  40591. <param name="env" type="java.util.Map"/>
  40592. <param name="cmd" type="java.lang.String[]"/>
  40593. <param name="timeout" type="long"/>
  40594. <exception name="IOException" type="java.io.IOException"/>
  40595. <doc>
  40596. <![CDATA[Static method to execute a shell command.
  40597. Covers most of the simple cases without requiring the user to implement
  40598. the <code>Shell</code> interface.
  40599. @param env the map of environment key=value
  40600. @param cmd shell command to execute.
  40601. @param timeout time in milliseconds after which script should be marked timeout
  40602. @return the output of the executed command.o]]>
  40603. </doc>
  40604. </method>
  40605. <method name="execCommand" return="java.lang.String"
  40606. abstract="false" native="false" synchronized="false"
  40607. static="true" final="false" visibility="public"
  40608. deprecated="not deprecated">
  40609. <param name="env" type="java.util.Map"/>
  40610. <param name="cmd" type="java.lang.String[]"/>
  40611. <exception name="IOException" type="java.io.IOException"/>
  40612. <doc>
  40613. <![CDATA[Static method to execute a shell command.
  40614. Covers most of the simple cases without requiring the user to implement
  40615. the <code>Shell</code> interface.
  40616. @param env the map of environment key=value
  40617. @param cmd shell command to execute.
  40618. @return the output of the executed command.]]>
  40619. </doc>
  40620. </method>
  40621. <field name="LOG" type="org.apache.commons.logging.Log"
  40622. transient="false" volatile="false"
  40623. static="true" final="true" visibility="public"
  40624. deprecated="not deprecated">
  40625. </field>
  40626. <field name="USER_NAME_COMMAND" type="java.lang.String"
  40627. transient="false" volatile="false"
  40628. static="true" final="true" visibility="public"
  40629. deprecated="not deprecated">
  40630. <doc>
  40631. <![CDATA[a Unix command to get the current user's name]]>
  40632. </doc>
  40633. </field>
  40634. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  40635. transient="false" volatile="false"
  40636. static="true" final="true" visibility="public"
  40637. deprecated="not deprecated">
  40638. <doc>
  40639. <![CDATA[a Unix command to set permission]]>
  40640. </doc>
  40641. </field>
  40642. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  40643. transient="false" volatile="false"
  40644. static="true" final="true" visibility="public"
  40645. deprecated="not deprecated">
  40646. <doc>
  40647. <![CDATA[a Unix command to set owner]]>
  40648. </doc>
  40649. </field>
  40650. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  40651. transient="false" volatile="false"
  40652. static="true" final="true" visibility="public"
  40653. deprecated="not deprecated">
  40654. </field>
  40655. <field name="timeOutInterval" type="long"
  40656. transient="false" volatile="false"
  40657. static="false" final="false" visibility="protected"
  40658. deprecated="not deprecated">
  40659. <doc>
  40660. <![CDATA[Time after which the executing script would be timedout]]>
  40661. </doc>
  40662. </field>
  40663. <field name="ULIMIT_COMMAND" type="java.lang.String"
  40664. transient="false" volatile="false"
  40665. static="true" final="true" visibility="public"
  40666. deprecated="not deprecated">
  40667. <doc>
  40668. <![CDATA[a Unix command to get ulimit of a process.]]>
  40669. </doc>
  40670. </field>
  40671. <field name="WINDOWS" type="boolean"
  40672. transient="false" volatile="false"
  40673. static="true" final="true" visibility="public"
  40674. deprecated="not deprecated">
  40675. <doc>
  40676. <![CDATA[Set to true on Windows platforms]]>
  40677. </doc>
  40678. </field>
  40679. <doc>
  40680. <![CDATA[A base class for running a Unix command.
  40681. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  40682. <code>df</code>. It also offers facilities to gate commands by
  40683. time-intervals.]]>
  40684. </doc>
  40685. </class>
  40686. <!-- end class org.apache.hadoop.util.Shell -->
  40687. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  40688. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  40689. abstract="false"
  40690. static="true" final="false" visibility="public"
  40691. deprecated="not deprecated">
  40692. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  40693. static="false" final="false" visibility="public"
  40694. deprecated="not deprecated">
  40695. </constructor>
  40696. <method name="getExitCode" return="int"
  40697. abstract="false" native="false" synchronized="false"
  40698. static="false" final="false" visibility="public"
  40699. deprecated="not deprecated">
  40700. </method>
  40701. <doc>
  40702. <![CDATA[This is an IOException with exit code added.]]>
  40703. </doc>
  40704. </class>
  40705. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  40706. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  40707. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  40708. abstract="false"
  40709. static="true" final="false" visibility="public"
  40710. deprecated="not deprecated">
  40711. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  40712. static="false" final="false" visibility="public"
  40713. deprecated="not deprecated">
  40714. </constructor>
  40715. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  40716. static="false" final="false" visibility="public"
  40717. deprecated="not deprecated">
  40718. </constructor>
  40719. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  40720. static="false" final="false" visibility="public"
  40721. deprecated="not deprecated">
  40722. </constructor>
  40723. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  40724. static="false" final="false" visibility="public"
  40725. deprecated="not deprecated">
  40726. <doc>
  40727. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  40728. @param execString The command to execute with arguments
  40729. @param dir If not-null, specifies the directory which should be set
  40730. as the current working directory for the command.
  40731. If null, the current working directory is not modified.
  40732. @param env If not-null, environment of the command will include the
  40733. key-value pairs specified in the map. If null, the current
  40734. environment is not modified.
  40735. @param timeout Specifies the time in milliseconds, after which the
  40736. command will be killed and the status marked as timedout.
  40737. If 0, the command will not be timed out.]]>
  40738. </doc>
  40739. </constructor>
  40740. <method name="execute"
  40741. abstract="false" native="false" synchronized="false"
  40742. static="false" final="false" visibility="public"
  40743. deprecated="not deprecated">
  40744. <exception name="IOException" type="java.io.IOException"/>
  40745. <doc>
  40746. <![CDATA[Execute the shell command.]]>
  40747. </doc>
  40748. </method>
  40749. <method name="getExecString" return="java.lang.String[]"
  40750. abstract="false" native="false" synchronized="false"
  40751. static="false" final="false" visibility="protected"
  40752. deprecated="not deprecated">
  40753. </method>
  40754. <method name="parseExecResult"
  40755. abstract="false" native="false" synchronized="false"
  40756. static="false" final="false" visibility="protected"
  40757. deprecated="not deprecated">
  40758. <param name="lines" type="java.io.BufferedReader"/>
  40759. <exception name="IOException" type="java.io.IOException"/>
  40760. </method>
  40761. <method name="getOutput" return="java.lang.String"
  40762. abstract="false" native="false" synchronized="false"
  40763. static="false" final="false" visibility="public"
  40764. deprecated="not deprecated">
  40765. <doc>
  40766. <![CDATA[Get the output of the shell command.]]>
  40767. </doc>
  40768. </method>
  40769. <method name="toString" return="java.lang.String"
  40770. abstract="false" native="false" synchronized="false"
  40771. static="false" final="false" visibility="public"
  40772. deprecated="not deprecated">
  40773. <doc>
  40774. <![CDATA[Returns the commands of this instance.
  40775. Arguments with spaces in are presented with quotes round; other
  40776. arguments are presented raw
  40777. @return a string representation of the object.]]>
  40778. </doc>
  40779. </method>
  40780. <doc>
  40781. <![CDATA[A simple shell command executor.
  40782. <code>ShellCommandExecutor</code>should be used in cases where the output
  40783. of the command needs no explicit parsing and where the command, working
  40784. directory and the environment remains unchanged. The output of the command
  40785. is stored as-is and is expected to be small.]]>
  40786. </doc>
  40787. </class>
  40788. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  40789. <!-- start class org.apache.hadoop.util.StringUtils -->
  40790. <class name="StringUtils" extends="java.lang.Object"
  40791. abstract="false"
  40792. static="false" final="false" visibility="public"
  40793. deprecated="not deprecated">
  40794. <constructor name="StringUtils"
  40795. static="false" final="false" visibility="public"
  40796. deprecated="not deprecated">
  40797. </constructor>
  40798. <method name="stringifyException" return="java.lang.String"
  40799. abstract="false" native="false" synchronized="false"
  40800. static="true" final="false" visibility="public"
  40801. deprecated="not deprecated">
  40802. <param name="e" type="java.lang.Throwable"/>
  40803. <doc>
  40804. <![CDATA[Make a string representation of the exception.
  40805. @param e The exception to stringify
  40806. @return A string with exception name and call stack.]]>
  40807. </doc>
  40808. </method>
  40809. <method name="simpleHostname" return="java.lang.String"
  40810. abstract="false" native="false" synchronized="false"
  40811. static="true" final="false" visibility="public"
  40812. deprecated="not deprecated">
  40813. <param name="fullHostname" type="java.lang.String"/>
  40814. <doc>
  40815. <![CDATA[Given a full hostname, return the word upto the first dot.
  40816. @param fullHostname the full hostname
  40817. @return the hostname to the first dot]]>
  40818. </doc>
  40819. </method>
  40820. <method name="humanReadableInt" return="java.lang.String"
  40821. abstract="false" native="false" synchronized="false"
  40822. static="true" final="false" visibility="public"
  40823. deprecated="not deprecated">
  40824. <param name="number" type="long"/>
  40825. <doc>
  40826. <![CDATA[Given an integer, return a string that is in an approximate, but human
  40827. readable format.
  40828. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  40829. @param number the number to format
  40830. @return a human readable form of the integer]]>
  40831. </doc>
  40832. </method>
  40833. <method name="formatPercent" return="java.lang.String"
  40834. abstract="false" native="false" synchronized="false"
  40835. static="true" final="false" visibility="public"
  40836. deprecated="not deprecated">
  40837. <param name="done" type="double"/>
  40838. <param name="digits" type="int"/>
  40839. <doc>
  40840. <![CDATA[Format a percentage for presentation to the user.
  40841. @param done the percentage to format (0.0 to 1.0)
  40842. @param digits the number of digits past the decimal point
  40843. @return a string representation of the percentage]]>
  40844. </doc>
  40845. </method>
  40846. <method name="arrayToString" return="java.lang.String"
  40847. abstract="false" native="false" synchronized="false"
  40848. static="true" final="false" visibility="public"
  40849. deprecated="not deprecated">
  40850. <param name="strs" type="java.lang.String[]"/>
  40851. <doc>
  40852. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  40853. @param strs Array of strings
  40854. @return Empty string if strs.length is 0, comma separated list of strings
  40855. otherwise]]>
  40856. </doc>
  40857. </method>
  40858. <method name="byteToHexString" return="java.lang.String"
  40859. abstract="false" native="false" synchronized="false"
  40860. static="true" final="false" visibility="public"
  40861. deprecated="not deprecated">
  40862. <param name="bytes" type="byte[]"/>
  40863. <param name="start" type="int"/>
  40864. <param name="end" type="int"/>
  40865. <doc>
  40866. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  40867. representation of the bytes
  40868. @param bytes
  40869. @param start start index, inclusively
  40870. @param end end index, exclusively
  40871. @return hex string representation of the byte array]]>
  40872. </doc>
  40873. </method>
  40874. <method name="byteToHexString" return="java.lang.String"
  40875. abstract="false" native="false" synchronized="false"
  40876. static="true" final="false" visibility="public"
  40877. deprecated="not deprecated">
  40878. <param name="bytes" type="byte[]"/>
  40879. <doc>
  40880. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  40881. </doc>
  40882. </method>
  40883. <method name="hexStringToByte" return="byte[]"
  40884. abstract="false" native="false" synchronized="false"
  40885. static="true" final="false" visibility="public"
  40886. deprecated="not deprecated">
  40887. <param name="hex" type="java.lang.String"/>
  40888. <doc>
  40889. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  40890. string
  40891. @param hex the hex String array
  40892. @return a byte array that is a hex string representation of the given
  40893. string. The size of the byte array is therefore hex.length/2]]>
  40894. </doc>
  40895. </method>
  40896. <method name="uriToString" return="java.lang.String"
  40897. abstract="false" native="false" synchronized="false"
  40898. static="true" final="false" visibility="public"
  40899. deprecated="not deprecated">
  40900. <param name="uris" type="java.net.URI[]"/>
  40901. <doc>
  40902. <![CDATA[@param uris]]>
  40903. </doc>
  40904. </method>
  40905. <method name="stringToURI" return="java.net.URI[]"
  40906. abstract="false" native="false" synchronized="false"
  40907. static="true" final="false" visibility="public"
  40908. deprecated="not deprecated">
  40909. <param name="str" type="java.lang.String[]"/>
  40910. <doc>
  40911. <![CDATA[@param str]]>
  40912. </doc>
  40913. </method>
  40914. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  40915. abstract="false" native="false" synchronized="false"
  40916. static="true" final="false" visibility="public"
  40917. deprecated="not deprecated">
  40918. <param name="str" type="java.lang.String[]"/>
  40919. <doc>
  40920. <![CDATA[@param str]]>
  40921. </doc>
  40922. </method>
  40923. <method name="formatTimeDiff" return="java.lang.String"
  40924. abstract="false" native="false" synchronized="false"
  40925. static="true" final="false" visibility="public"
  40926. deprecated="not deprecated">
  40927. <param name="finishTime" type="long"/>
  40928. <param name="startTime" type="long"/>
  40929. <doc>
  40930. <![CDATA[Given a finish and start time in long milliseconds, returns a
  40931. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  40932. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  40933. @param finishTime finish time
  40934. @param startTime start time]]>
  40935. </doc>
  40936. </method>
  40937. <method name="formatTime" return="java.lang.String"
  40938. abstract="false" native="false" synchronized="false"
  40939. static="true" final="false" visibility="public"
  40940. deprecated="not deprecated">
  40941. <param name="timeDiff" type="long"/>
  40942. <doc>
  40943. <![CDATA[Given the time in long milliseconds, returns a
  40944. String in the format Xhrs, Ymins, Z sec.
  40945. @param timeDiff The time difference to format]]>
  40946. </doc>
  40947. </method>
  40948. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  40949. abstract="false" native="false" synchronized="false"
  40950. static="true" final="false" visibility="public"
  40951. deprecated="not deprecated">
  40952. <param name="dateFormat" type="java.text.DateFormat"/>
  40953. <param name="finishTime" type="long"/>
  40954. <param name="startTime" type="long"/>
  40955. <doc>
  40956. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  40957. as returned by formatTimeDiff().
  40958. If finish time is 0, empty string is returned, if start time is 0
  40959. then difference is not appended to return value.
  40960. @param dateFormat date format to use
  40961. @param finishTime fnish time
  40962. @param startTime start time
  40963. @return formatted value.]]>
  40964. </doc>
  40965. </method>
  40966. <method name="getStrings" return="java.lang.String[]"
  40967. abstract="false" native="false" synchronized="false"
  40968. static="true" final="false" visibility="public"
  40969. deprecated="not deprecated">
  40970. <param name="str" type="java.lang.String"/>
  40971. <doc>
  40972. <![CDATA[Returns an arraylist of strings.
  40973. @param str the comma seperated string values
  40974. @return the arraylist of the comma seperated string values]]>
  40975. </doc>
  40976. </method>
  40977. <method name="getStringCollection" return="java.util.Collection"
  40978. abstract="false" native="false" synchronized="false"
  40979. static="true" final="false" visibility="public"
  40980. deprecated="not deprecated">
  40981. <param name="str" type="java.lang.String"/>
  40982. <doc>
  40983. <![CDATA[Returns a collection of strings.
  40984. @param str comma seperated string values
  40985. @return an <code>ArrayList</code> of string values]]>
  40986. </doc>
  40987. </method>
  40988. <method name="split" return="java.lang.String[]"
  40989. abstract="false" native="false" synchronized="false"
  40990. static="true" final="false" visibility="public"
  40991. deprecated="not deprecated">
  40992. <param name="str" type="java.lang.String"/>
  40993. <doc>
  40994. <![CDATA[Split a string using the default separator
  40995. @param str a string that may have escaped separator
  40996. @return an array of strings]]>
  40997. </doc>
  40998. </method>
  40999. <method name="split" return="java.lang.String[]"
  41000. abstract="false" native="false" synchronized="false"
  41001. static="true" final="false" visibility="public"
  41002. deprecated="not deprecated">
  41003. <param name="str" type="java.lang.String"/>
  41004. <param name="escapeChar" type="char"/>
  41005. <param name="separator" type="char"/>
  41006. <doc>
  41007. <![CDATA[Split a string using the given separator
  41008. @param str a string that may have escaped separator
  41009. @param escapeChar a char that be used to escape the separator
  41010. @param separator a separator char
  41011. @return an array of strings]]>
  41012. </doc>
  41013. </method>
  41014. <method name="findNext" return="int"
  41015. abstract="false" native="false" synchronized="false"
  41016. static="true" final="false" visibility="public"
  41017. deprecated="not deprecated">
  41018. <param name="str" type="java.lang.String"/>
  41019. <param name="separator" type="char"/>
  41020. <param name="escapeChar" type="char"/>
  41021. <param name="start" type="int"/>
  41022. <param name="split" type="java.lang.StringBuilder"/>
  41023. <doc>
  41024. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  41025. separators starting from the index. Note the substring between the index
  41026. and the position of the separator is passed.
  41027. @param str the source string
  41028. @param separator the character to find
  41029. @param escapeChar character used to escape
  41030. @param start from where to search
  41031. @param split used to pass back the extracted string]]>
  41032. </doc>
  41033. </method>
  41034. <method name="escapeString" return="java.lang.String"
  41035. abstract="false" native="false" synchronized="false"
  41036. static="true" final="false" visibility="public"
  41037. deprecated="not deprecated">
  41038. <param name="str" type="java.lang.String"/>
  41039. <doc>
  41040. <![CDATA[Escape commas in the string using the default escape char
  41041. @param str a string
  41042. @return an escaped string]]>
  41043. </doc>
  41044. </method>
  41045. <method name="escapeString" return="java.lang.String"
  41046. abstract="false" native="false" synchronized="false"
  41047. static="true" final="false" visibility="public"
  41048. deprecated="not deprecated">
  41049. <param name="str" type="java.lang.String"/>
  41050. <param name="escapeChar" type="char"/>
  41051. <param name="charToEscape" type="char"/>
  41052. <doc>
  41053. <![CDATA[Escape <code>charToEscape</code> in the string
  41054. with the escape char <code>escapeChar</code>
  41055. @param str string
  41056. @param escapeChar escape char
  41057. @param charToEscape the char to be escaped
  41058. @return an escaped string]]>
  41059. </doc>
  41060. </method>
  41061. <method name="escapeString" return="java.lang.String"
  41062. abstract="false" native="false" synchronized="false"
  41063. static="true" final="false" visibility="public"
  41064. deprecated="not deprecated">
  41065. <param name="str" type="java.lang.String"/>
  41066. <param name="escapeChar" type="char"/>
  41067. <param name="charsToEscape" type="char[]"/>
  41068. <doc>
  41069. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  41070. </doc>
  41071. </method>
  41072. <method name="unEscapeString" return="java.lang.String"
  41073. abstract="false" native="false" synchronized="false"
  41074. static="true" final="false" visibility="public"
  41075. deprecated="not deprecated">
  41076. <param name="str" type="java.lang.String"/>
  41077. <doc>
  41078. <![CDATA[Unescape commas in the string using the default escape char
  41079. @param str a string
  41080. @return an unescaped string]]>
  41081. </doc>
  41082. </method>
  41083. <method name="unEscapeString" return="java.lang.String"
  41084. abstract="false" native="false" synchronized="false"
  41085. static="true" final="false" visibility="public"
  41086. deprecated="not deprecated">
  41087. <param name="str" type="java.lang.String"/>
  41088. <param name="escapeChar" type="char"/>
  41089. <param name="charToEscape" type="char"/>
  41090. <doc>
  41091. <![CDATA[Unescape <code>charToEscape</code> in the string
  41092. with the escape char <code>escapeChar</code>
  41093. @param str string
  41094. @param escapeChar escape char
  41095. @param charToEscape the escaped char
  41096. @return an unescaped string]]>
  41097. </doc>
  41098. </method>
  41099. <method name="unEscapeString" return="java.lang.String"
  41100. abstract="false" native="false" synchronized="false"
  41101. static="true" final="false" visibility="public"
  41102. deprecated="not deprecated">
  41103. <param name="str" type="java.lang.String"/>
  41104. <param name="escapeChar" type="char"/>
  41105. <param name="charsToEscape" type="char[]"/>
  41106. <doc>
  41107. <![CDATA[@param charsToEscape array of characters to unescape]]>
  41108. </doc>
  41109. </method>
  41110. <method name="getHostname" return="java.lang.String"
  41111. abstract="false" native="false" synchronized="false"
  41112. static="true" final="false" visibility="public"
  41113. deprecated="not deprecated">
  41114. <doc>
  41115. <![CDATA[Return hostname without throwing exception.
  41116. @return hostname]]>
  41117. </doc>
  41118. </method>
  41119. <method name="startupShutdownMessage"
  41120. abstract="false" native="false" synchronized="false"
  41121. static="true" final="false" visibility="public"
  41122. deprecated="not deprecated">
  41123. <param name="clazz" type="java.lang.Class"/>
  41124. <param name="args" type="java.lang.String[]"/>
  41125. <param name="LOG" type="org.apache.commons.logging.Log"/>
  41126. <doc>
  41127. <![CDATA[Print a log message for starting up and shutting down
  41128. @param clazz the class of the server
  41129. @param args arguments
  41130. @param LOG the target log object]]>
  41131. </doc>
  41132. </method>
  41133. <method name="escapeHTML" return="java.lang.String"
  41134. abstract="false" native="false" synchronized="false"
  41135. static="true" final="false" visibility="public"
  41136. deprecated="not deprecated">
  41137. <param name="string" type="java.lang.String"/>
  41138. <doc>
  41139. <![CDATA[Escapes HTML Special characters present in the string.
  41140. @param string
  41141. @return HTML Escaped String representation]]>
  41142. </doc>
  41143. </method>
  41144. <method name="byteDesc" return="java.lang.String"
  41145. abstract="false" native="false" synchronized="false"
  41146. static="true" final="false" visibility="public"
  41147. deprecated="not deprecated">
  41148. <param name="len" type="long"/>
  41149. <doc>
  41150. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  41151. </doc>
  41152. </method>
  41153. <method name="limitDecimalTo2" return="java.lang.String"
  41154. abstract="false" native="false" synchronized="true"
  41155. static="true" final="false" visibility="public"
  41156. deprecated="not deprecated">
  41157. <param name="d" type="double"/>
  41158. </method>
  41159. <method name="join" return="java.lang.String"
  41160. abstract="false" native="false" synchronized="false"
  41161. static="true" final="false" visibility="public"
  41162. deprecated="not deprecated">
  41163. <param name="separator" type="java.lang.CharSequence"/>
  41164. <param name="strings" type="java.lang.Iterable"/>
  41165. <doc>
  41166. <![CDATA[Concatenates strings, using a separator.
  41167. @param separator Separator to join with.
  41168. @param strings Strings to join.
  41169. @return the joined string]]>
  41170. </doc>
  41171. </method>
  41172. <method name="join" return="java.lang.String"
  41173. abstract="false" native="false" synchronized="false"
  41174. static="true" final="false" visibility="public"
  41175. deprecated="not deprecated">
  41176. <param name="separator" type="java.lang.CharSequence"/>
  41177. <param name="strings" type="java.lang.String[]"/>
  41178. <doc>
  41179. <![CDATA[Concatenates strings, using a separator.
  41180. @param separator to join with
  41181. @param strings to join
  41182. @return the joined string]]>
  41183. </doc>
  41184. </method>
  41185. <method name="capitalize" return="java.lang.String"
  41186. abstract="false" native="false" synchronized="false"
  41187. static="true" final="false" visibility="public"
  41188. deprecated="not deprecated">
  41189. <param name="s" type="java.lang.String"/>
  41190. <doc>
  41191. <![CDATA[Capitalize a word
  41192. @param s the input string
  41193. @return capitalized string]]>
  41194. </doc>
  41195. </method>
  41196. <method name="camelize" return="java.lang.String"
  41197. abstract="false" native="false" synchronized="false"
  41198. static="true" final="false" visibility="public"
  41199. deprecated="not deprecated">
  41200. <param name="s" type="java.lang.String"/>
  41201. <doc>
  41202. <![CDATA[Convert SOME_STUFF to SomeStuff
  41203. @param s input string
  41204. @return camelized string]]>
  41205. </doc>
  41206. </method>
  41207. <field name="COMMA" type="char"
  41208. transient="false" volatile="false"
  41209. static="true" final="true" visibility="public"
  41210. deprecated="not deprecated">
  41211. </field>
  41212. <field name="COMMA_STR" type="java.lang.String"
  41213. transient="false" volatile="false"
  41214. static="true" final="true" visibility="public"
  41215. deprecated="not deprecated">
  41216. </field>
  41217. <field name="ESCAPE_CHAR" type="char"
  41218. transient="false" volatile="false"
  41219. static="true" final="true" visibility="public"
  41220. deprecated="not deprecated">
  41221. </field>
  41222. <doc>
  41223. <![CDATA[General string utils]]>
  41224. </doc>
  41225. </class>
  41226. <!-- end class org.apache.hadoop.util.StringUtils -->
  41227. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  41228. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  41229. abstract="false"
  41230. static="true" final="true" visibility="public"
  41231. deprecated="not deprecated">
  41232. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  41233. abstract="false" native="false" synchronized="false"
  41234. static="true" final="false" visibility="public"
  41235. deprecated="not deprecated">
  41236. </method>
  41237. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41238. abstract="false" native="false" synchronized="false"
  41239. static="true" final="false" visibility="public"
  41240. deprecated="not deprecated">
  41241. <param name="name" type="java.lang.String"/>
  41242. </method>
  41243. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41244. abstract="false" native="false" synchronized="false"
  41245. static="true" final="false" visibility="public"
  41246. deprecated="not deprecated">
  41247. <param name="symbol" type="char"/>
  41248. <doc>
  41249. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  41250. </doc>
  41251. </method>
  41252. <method name="string2long" return="long"
  41253. abstract="false" native="false" synchronized="false"
  41254. static="true" final="false" visibility="public"
  41255. deprecated="not deprecated">
  41256. <param name="s" type="java.lang.String"/>
  41257. <doc>
  41258. <![CDATA[Convert a string to long.
  41259. The input string is first be trimmed
  41260. and then it is parsed with traditional binary prefix.
  41261. For example,
  41262. "-1230k" will be converted to -1230 * 1024 = -1259520;
  41263. "891g" will be converted to 891 * 1024^3 = 956703965184;
  41264. @param s input string
  41265. @return a long value represented by the input string.]]>
  41266. </doc>
  41267. </method>
  41268. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41269. transient="false" volatile="false"
  41270. static="true" final="true" visibility="public"
  41271. deprecated="not deprecated">
  41272. </field>
  41273. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41274. transient="false" volatile="false"
  41275. static="true" final="true" visibility="public"
  41276. deprecated="not deprecated">
  41277. </field>
  41278. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41279. transient="false" volatile="false"
  41280. static="true" final="true" visibility="public"
  41281. deprecated="not deprecated">
  41282. </field>
  41283. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41284. transient="false" volatile="false"
  41285. static="true" final="true" visibility="public"
  41286. deprecated="not deprecated">
  41287. </field>
  41288. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41289. transient="false" volatile="false"
  41290. static="true" final="true" visibility="public"
  41291. deprecated="not deprecated">
  41292. </field>
  41293. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  41294. transient="false" volatile="false"
  41295. static="true" final="true" visibility="public"
  41296. deprecated="not deprecated">
  41297. </field>
  41298. <field name="value" type="long"
  41299. transient="false" volatile="false"
  41300. static="false" final="true" visibility="public"
  41301. deprecated="not deprecated">
  41302. </field>
  41303. <field name="symbol" type="char"
  41304. transient="false" volatile="false"
  41305. static="false" final="true" visibility="public"
  41306. deprecated="not deprecated">
  41307. </field>
  41308. <doc>
  41309. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  41310. which can be represented by a 64-bit integer.
  41311. TraditionalBinaryPrefix symbol are case insensitive.]]>
  41312. </doc>
  41313. </class>
  41314. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  41315. <!-- start interface org.apache.hadoop.util.Tool -->
  41316. <interface name="Tool" abstract="true"
  41317. static="false" final="false" visibility="public"
  41318. deprecated="not deprecated">
  41319. <implements name="org.apache.hadoop.conf.Configurable"/>
  41320. <method name="run" return="int"
  41321. abstract="false" native="false" synchronized="false"
  41322. static="false" final="false" visibility="public"
  41323. deprecated="not deprecated">
  41324. <param name="args" type="java.lang.String[]"/>
  41325. <exception name="Exception" type="java.lang.Exception"/>
  41326. <doc>
  41327. <![CDATA[Execute the command with the given arguments.
  41328. @param args command specific arguments.
  41329. @return exit code.
  41330. @throws Exception]]>
  41331. </doc>
  41332. </method>
  41333. <doc>
  41334. <![CDATA[A tool interface that supports handling of generic command-line options.
  41335. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  41336. The tool/application should delegate the handling of
  41337. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  41338. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  41339. and only handle its custom arguments.</p>
  41340. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  41341. <p><blockquote><pre>
  41342. public class MyApp extends Configured implements Tool {
  41343. public int run(String[] args) throws Exception {
  41344. // <code>Configuration</code> processed by <code>ToolRunner</code>
  41345. Configuration conf = getConf();
  41346. // Create a JobConf using the processed <code>conf</code>
  41347. JobConf job = new JobConf(conf, MyApp.class);
  41348. // Process custom command-line options
  41349. Path in = new Path(args[1]);
  41350. Path out = new Path(args[2]);
  41351. // Specify various job-specific parameters
  41352. job.setJobName("my-app");
  41353. job.setInputPath(in);
  41354. job.setOutputPath(out);
  41355. job.setMapperClass(MyApp.MyMapper.class);
  41356. job.setReducerClass(MyApp.MyReducer.class);
  41357. // Submit the job, then poll for progress until the job is complete
  41358. JobClient.runJob(job);
  41359. }
  41360. public static void main(String[] args) throws Exception {
  41361. // Let <code>ToolRunner</code> handle generic command-line options
  41362. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  41363. System.exit(res);
  41364. }
  41365. }
  41366. </pre></blockquote></p>
  41367. @see GenericOptionsParser
  41368. @see ToolRunner]]>
  41369. </doc>
  41370. </interface>
  41371. <!-- end interface org.apache.hadoop.util.Tool -->
  41372. <!-- start class org.apache.hadoop.util.ToolRunner -->
  41373. <class name="ToolRunner" extends="java.lang.Object"
  41374. abstract="false"
  41375. static="false" final="false" visibility="public"
  41376. deprecated="not deprecated">
  41377. <constructor name="ToolRunner"
  41378. static="false" final="false" visibility="public"
  41379. deprecated="not deprecated">
  41380. </constructor>
  41381. <method name="run" return="int"
  41382. abstract="false" native="false" synchronized="false"
  41383. static="true" final="false" visibility="public"
  41384. deprecated="not deprecated">
  41385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41386. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  41387. <param name="args" type="java.lang.String[]"/>
  41388. <exception name="Exception" type="java.lang.Exception"/>
  41389. <doc>
  41390. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  41391. parsing with the given generic arguments. Uses the given
  41392. <code>Configuration</code>, or builds one if null.
  41393. Sets the <code>Tool</code>'s configuration with the possibly modified
  41394. version of the <code>conf</code>.
  41395. @param conf <code>Configuration</code> for the <code>Tool</code>.
  41396. @param tool <code>Tool</code> to run.
  41397. @param args command-line arguments to the tool.
  41398. @return exit code of the {@link Tool#run(String[])} method.]]>
  41399. </doc>
  41400. </method>
  41401. <method name="run" return="int"
  41402. abstract="false" native="false" synchronized="false"
  41403. static="true" final="false" visibility="public"
  41404. deprecated="not deprecated">
  41405. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  41406. <param name="args" type="java.lang.String[]"/>
  41407. <exception name="Exception" type="java.lang.Exception"/>
  41408. <doc>
  41409. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  41410. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  41411. @param tool <code>Tool</code> to run.
  41412. @param args command-line arguments to the tool.
  41413. @return exit code of the {@link Tool#run(String[])} method.]]>
  41414. </doc>
  41415. </method>
  41416. <method name="printGenericCommandUsage"
  41417. abstract="false" native="false" synchronized="false"
  41418. static="true" final="false" visibility="public"
  41419. deprecated="not deprecated">
  41420. <param name="out" type="java.io.PrintStream"/>
  41421. <doc>
  41422. <![CDATA[Prints generic command-line argurments and usage information.
  41423. @param out stream to write usage information to.]]>
  41424. </doc>
  41425. </method>
  41426. <doc>
  41427. <![CDATA[A utility to help run {@link Tool}s.
  41428. <p><code>ToolRunner</code> can be used to run classes implementing
  41429. <code>Tool</code> interface. It works in conjunction with
  41430. {@link GenericOptionsParser} to parse the
  41431. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  41432. generic hadoop command line arguments</a> and modifies the
  41433. <code>Configuration</code> of the <code>Tool</code>. The
  41434. application-specific options are passed along without being modified.
  41435. </p>
  41436. @see Tool
  41437. @see GenericOptionsParser]]>
  41438. </doc>
  41439. </class>
  41440. <!-- end class org.apache.hadoop.util.ToolRunner -->
  41441. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  41442. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  41443. abstract="false"
  41444. static="false" final="false" visibility="public"
  41445. deprecated="not deprecated">
  41446. <constructor name="UTF8ByteArrayUtils"
  41447. static="false" final="false" visibility="public"
  41448. deprecated="not deprecated">
  41449. </constructor>
  41450. <method name="findByte" return="int"
  41451. abstract="false" native="false" synchronized="false"
  41452. static="true" final="false" visibility="public"
  41453. deprecated="not deprecated">
  41454. <param name="utf" type="byte[]"/>
  41455. <param name="start" type="int"/>
  41456. <param name="end" type="int"/>
  41457. <param name="b" type="byte"/>
  41458. <doc>
  41459. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  41460. @param utf a byte array containing a UTF-8 encoded string
  41461. @param start starting offset
  41462. @param end ending position
  41463. @param b the byte to find
  41464. @return position that first byte occures otherwise -1]]>
  41465. </doc>
  41466. </method>
  41467. <method name="findBytes" return="int"
  41468. abstract="false" native="false" synchronized="false"
  41469. static="true" final="false" visibility="public"
  41470. deprecated="not deprecated">
  41471. <param name="utf" type="byte[]"/>
  41472. <param name="start" type="int"/>
  41473. <param name="end" type="int"/>
  41474. <param name="b" type="byte[]"/>
  41475. <doc>
  41476. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  41477. @param utf a byte array containing a UTF-8 encoded string
  41478. @param start starting offset
  41479. @param end ending position
  41480. @param b the bytes to find
  41481. @return position that first byte occures otherwise -1]]>
  41482. </doc>
  41483. </method>
  41484. <method name="findNthByte" return="int"
  41485. abstract="false" native="false" synchronized="false"
  41486. static="true" final="false" visibility="public"
  41487. deprecated="not deprecated">
  41488. <param name="utf" type="byte[]"/>
  41489. <param name="start" type="int"/>
  41490. <param name="length" type="int"/>
  41491. <param name="b" type="byte"/>
  41492. <param name="n" type="int"/>
  41493. <doc>
  41494. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  41495. @param utf a byte array containing a UTF-8 encoded string
  41496. @param start starting offset
  41497. @param length the length of byte array
  41498. @param b the byte to find
  41499. @param n the desired occurrence of the given byte
  41500. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  41501. </doc>
  41502. </method>
  41503. <method name="findNthByte" return="int"
  41504. abstract="false" native="false" synchronized="false"
  41505. static="true" final="false" visibility="public"
  41506. deprecated="not deprecated">
  41507. <param name="utf" type="byte[]"/>
  41508. <param name="b" type="byte"/>
  41509. <param name="n" type="int"/>
  41510. <doc>
  41511. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  41512. @param utf a byte array containing a UTF-8 encoded string
  41513. @param b the byte to find
  41514. @param n the desired occurrence of the given byte
  41515. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  41516. </doc>
  41517. </method>
  41518. </class>
  41519. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  41520. <!-- start class org.apache.hadoop.util.VersionInfo -->
  41521. <class name="VersionInfo" extends="java.lang.Object"
  41522. abstract="false"
  41523. static="false" final="false" visibility="public"
  41524. deprecated="not deprecated">
  41525. <constructor name="VersionInfo"
  41526. static="false" final="false" visibility="public"
  41527. deprecated="not deprecated">
  41528. </constructor>
  41529. <method name="getVersion" return="java.lang.String"
  41530. abstract="false" native="false" synchronized="false"
  41531. static="true" final="false" visibility="public"
  41532. deprecated="not deprecated">
  41533. <doc>
  41534. <![CDATA[Get the Hadoop version.
  41535. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  41536. </doc>
  41537. </method>
  41538. <method name="getRevision" return="java.lang.String"
  41539. abstract="false" native="false" synchronized="false"
  41540. static="true" final="false" visibility="public"
  41541. deprecated="not deprecated">
  41542. <doc>
  41543. <![CDATA[Get the subversion revision number for the root directory
  41544. @return the revision number, eg. "451451"]]>
  41545. </doc>
  41546. </method>
  41547. <method name="getDate" return="java.lang.String"
  41548. abstract="false" native="false" synchronized="false"
  41549. static="true" final="false" visibility="public"
  41550. deprecated="not deprecated">
  41551. <doc>
  41552. <![CDATA[The date that Hadoop was compiled.
  41553. @return the compilation date in unix date format]]>
  41554. </doc>
  41555. </method>
  41556. <method name="getUser" return="java.lang.String"
  41557. abstract="false" native="false" synchronized="false"
  41558. static="true" final="false" visibility="public"
  41559. deprecated="not deprecated">
  41560. <doc>
  41561. <![CDATA[The user that compiled Hadoop.
  41562. @return the username of the user]]>
  41563. </doc>
  41564. </method>
  41565. <method name="getUrl" return="java.lang.String"
  41566. abstract="false" native="false" synchronized="false"
  41567. static="true" final="false" visibility="public"
  41568. deprecated="not deprecated">
  41569. <doc>
  41570. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  41571. </doc>
  41572. </method>
  41573. <method name="getSrcChecksum" return="java.lang.String"
  41574. abstract="false" native="false" synchronized="false"
  41575. static="true" final="false" visibility="public"
  41576. deprecated="not deprecated">
  41577. <doc>
  41578. <![CDATA[Get the checksum of the source files from which Hadoop was
  41579. built.]]>
  41580. </doc>
  41581. </method>
  41582. <method name="getBuildVersion" return="java.lang.String"
  41583. abstract="false" native="false" synchronized="false"
  41584. static="true" final="false" visibility="public"
  41585. deprecated="not deprecated">
  41586. <doc>
  41587. <![CDATA[Returns the buildVersion which includes version,
  41588. revision, user and date.]]>
  41589. </doc>
  41590. </method>
  41591. <method name="main"
  41592. abstract="false" native="false" synchronized="false"
  41593. static="true" final="false" visibility="public"
  41594. deprecated="not deprecated">
  41595. <param name="args" type="java.lang.String[]"/>
  41596. </method>
  41597. <doc>
  41598. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  41599. information.]]>
  41600. </doc>
  41601. </class>
  41602. <!-- end class org.apache.hadoop.util.VersionInfo -->
  41603. <!-- start class org.apache.hadoop.util.XMLUtils -->
  41604. <class name="XMLUtils" extends="java.lang.Object"
  41605. abstract="false"
  41606. static="false" final="false" visibility="public"
  41607. deprecated="not deprecated">
  41608. <constructor name="XMLUtils"
  41609. static="false" final="false" visibility="public"
  41610. deprecated="not deprecated">
  41611. </constructor>
  41612. <method name="transform"
  41613. abstract="false" native="false" synchronized="false"
  41614. static="true" final="false" visibility="public"
  41615. deprecated="not deprecated">
  41616. <param name="styleSheet" type="java.io.InputStream"/>
  41617. <param name="xml" type="java.io.InputStream"/>
  41618. <param name="out" type="java.io.Writer"/>
  41619. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  41620. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  41621. <doc>
  41622. <![CDATA[Transform input xml given a stylesheet.
  41623. @param styleSheet the style-sheet
  41624. @param xml input xml data
  41625. @param out output
  41626. @throws TransformerConfigurationException
  41627. @throws TransformerException]]>
  41628. </doc>
  41629. </method>
  41630. <doc>
  41631. <![CDATA[General xml utilities.]]>
  41632. </doc>
  41633. </class>
  41634. <!-- end class org.apache.hadoop.util.XMLUtils -->
  41635. </package>
  41636. <package name="org.apache.hadoop.util.bloom">
  41637. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  41638. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41639. abstract="false"
  41640. static="false" final="false" visibility="public"
  41641. deprecated="not deprecated">
  41642. <constructor name="BloomFilter"
  41643. static="false" final="false" visibility="public"
  41644. deprecated="not deprecated">
  41645. <doc>
  41646. <![CDATA[Default constructor - use with readFields]]>
  41647. </doc>
  41648. </constructor>
  41649. <constructor name="BloomFilter" type="int, int, int"
  41650. static="false" final="false" visibility="public"
  41651. deprecated="not deprecated">
  41652. <doc>
  41653. <![CDATA[Constructor
  41654. @param vectorSize The vector size of <i>this</i> filter.
  41655. @param nbHash The number of hash function to consider.
  41656. @param hashType type of the hashing function (see
  41657. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41658. </doc>
  41659. </constructor>
  41660. <method name="add"
  41661. abstract="false" native="false" synchronized="false"
  41662. static="false" final="false" visibility="public"
  41663. deprecated="not deprecated">
  41664. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41665. </method>
  41666. <method name="and"
  41667. abstract="false" native="false" synchronized="false"
  41668. static="false" final="false" visibility="public"
  41669. deprecated="not deprecated">
  41670. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41671. </method>
  41672. <method name="membershipTest" return="boolean"
  41673. abstract="false" native="false" synchronized="false"
  41674. static="false" final="false" visibility="public"
  41675. deprecated="not deprecated">
  41676. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41677. </method>
  41678. <method name="not"
  41679. abstract="false" native="false" synchronized="false"
  41680. static="false" final="false" visibility="public"
  41681. deprecated="not deprecated">
  41682. </method>
  41683. <method name="or"
  41684. abstract="false" native="false" synchronized="false"
  41685. static="false" final="false" visibility="public"
  41686. deprecated="not deprecated">
  41687. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41688. </method>
  41689. <method name="xor"
  41690. abstract="false" native="false" synchronized="false"
  41691. static="false" final="false" visibility="public"
  41692. deprecated="not deprecated">
  41693. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41694. </method>
  41695. <method name="toString" return="java.lang.String"
  41696. abstract="false" native="false" synchronized="false"
  41697. static="false" final="false" visibility="public"
  41698. deprecated="not deprecated">
  41699. </method>
  41700. <method name="getVectorSize" return="int"
  41701. abstract="false" native="false" synchronized="false"
  41702. static="false" final="false" visibility="public"
  41703. deprecated="not deprecated">
  41704. <doc>
  41705. <![CDATA[@return size of the the bloomfilter]]>
  41706. </doc>
  41707. </method>
  41708. <method name="write"
  41709. abstract="false" native="false" synchronized="false"
  41710. static="false" final="false" visibility="public"
  41711. deprecated="not deprecated">
  41712. <param name="out" type="java.io.DataOutput"/>
  41713. <exception name="IOException" type="java.io.IOException"/>
  41714. </method>
  41715. <method name="readFields"
  41716. abstract="false" native="false" synchronized="false"
  41717. static="false" final="false" visibility="public"
  41718. deprecated="not deprecated">
  41719. <param name="in" type="java.io.DataInput"/>
  41720. <exception name="IOException" type="java.io.IOException"/>
  41721. </method>
  41722. <doc>
  41723. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  41724. <p>
  41725. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  41726. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  41727. offers for the transmission of set membership information between networked hosts. A sender encodes
  41728. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  41729. representation. Computation and space costs for construction are linear in the number of elements.
  41730. The receiver uses the filter to test whether various elements are members of the set. Though the
  41731. filter will occasionally return a false positive, it will never return a false negative. When creating
  41732. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  41733. <p>
  41734. Originally created by
  41735. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41736. @see Filter The general behavior of a filter
  41737. @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>]]>
  41738. </doc>
  41739. </class>
  41740. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  41741. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41742. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41743. abstract="false"
  41744. static="false" final="true" visibility="public"
  41745. deprecated="not deprecated">
  41746. <constructor name="CountingBloomFilter"
  41747. static="false" final="false" visibility="public"
  41748. deprecated="not deprecated">
  41749. <doc>
  41750. <![CDATA[Default constructor - use with readFields]]>
  41751. </doc>
  41752. </constructor>
  41753. <constructor name="CountingBloomFilter" type="int, int, int"
  41754. static="false" final="false" visibility="public"
  41755. deprecated="not deprecated">
  41756. <doc>
  41757. <![CDATA[Constructor
  41758. @param vectorSize The vector size of <i>this</i> filter.
  41759. @param nbHash The number of hash function to consider.
  41760. @param hashType type of the hashing function (see
  41761. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41762. </doc>
  41763. </constructor>
  41764. <method name="add"
  41765. abstract="false" native="false" synchronized="false"
  41766. static="false" final="false" visibility="public"
  41767. deprecated="not deprecated">
  41768. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41769. </method>
  41770. <method name="delete"
  41771. abstract="false" native="false" synchronized="false"
  41772. static="false" final="false" visibility="public"
  41773. deprecated="not deprecated">
  41774. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41775. <doc>
  41776. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  41777. <p>
  41778. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  41779. @param key The key to remove.]]>
  41780. </doc>
  41781. </method>
  41782. <method name="and"
  41783. abstract="false" native="false" synchronized="false"
  41784. static="false" final="false" visibility="public"
  41785. deprecated="not deprecated">
  41786. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41787. </method>
  41788. <method name="membershipTest" return="boolean"
  41789. abstract="false" native="false" synchronized="false"
  41790. static="false" final="false" visibility="public"
  41791. deprecated="not deprecated">
  41792. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41793. </method>
  41794. <method name="approximateCount" return="int"
  41795. abstract="false" native="false" synchronized="false"
  41796. static="false" final="false" visibility="public"
  41797. deprecated="not deprecated">
  41798. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41799. <doc>
  41800. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  41801. times the key was added to the filter. This allows the filter to be
  41802. used as an approximate <code>key -&gt; count</code> map.
  41803. <p>NOTE: due to the bucket size of this filter, inserting the same
  41804. key more than 15 times will cause an overflow at all filter positions
  41805. associated with this key, and it will significantly increase the error
  41806. rate for this and other keys. For this reason the filter can only be
  41807. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  41808. @param key key to be tested
  41809. @return 0 if the key is not present. Otherwise, a positive value v will
  41810. be returned such that <code>v == count</code> with probability equal to the
  41811. error rate of this filter, and <code>v &gt; count</code> otherwise.
  41812. Additionally, if the filter experienced an underflow as a result of
  41813. {@link #delete(Key)} operation, the return value may be lower than the
  41814. <code>count</code> with the probability of the false negative rate of such
  41815. filter.]]>
  41816. </doc>
  41817. </method>
  41818. <method name="not"
  41819. abstract="false" native="false" synchronized="false"
  41820. static="false" final="false" visibility="public"
  41821. deprecated="not deprecated">
  41822. </method>
  41823. <method name="or"
  41824. abstract="false" native="false" synchronized="false"
  41825. static="false" final="false" visibility="public"
  41826. deprecated="not deprecated">
  41827. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41828. </method>
  41829. <method name="xor"
  41830. abstract="false" native="false" synchronized="false"
  41831. static="false" final="false" visibility="public"
  41832. deprecated="not deprecated">
  41833. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41834. </method>
  41835. <method name="toString" return="java.lang.String"
  41836. abstract="false" native="false" synchronized="false"
  41837. static="false" final="false" visibility="public"
  41838. deprecated="not deprecated">
  41839. </method>
  41840. <method name="write"
  41841. abstract="false" native="false" synchronized="false"
  41842. static="false" final="false" visibility="public"
  41843. deprecated="not deprecated">
  41844. <param name="out" type="java.io.DataOutput"/>
  41845. <exception name="IOException" type="java.io.IOException"/>
  41846. </method>
  41847. <method name="readFields"
  41848. abstract="false" native="false" synchronized="false"
  41849. static="false" final="false" visibility="public"
  41850. deprecated="not deprecated">
  41851. <param name="in" type="java.io.DataInput"/>
  41852. <exception name="IOException" type="java.io.IOException"/>
  41853. </method>
  41854. <doc>
  41855. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  41856. 2000 paper.
  41857. <p>
  41858. A counting Bloom filter is an improvement to standard a Bloom filter as it
  41859. allows dynamic additions and deletions of set membership information. This
  41860. is achieved through the use of a counting vector instead of a bit vector.
  41861. <p>
  41862. Originally created by
  41863. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41864. @see Filter The general behavior of a filter
  41865. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  41866. </doc>
  41867. </class>
  41868. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41869. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41870. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41871. abstract="false"
  41872. static="false" final="false" visibility="public"
  41873. deprecated="not deprecated">
  41874. <constructor name="DynamicBloomFilter"
  41875. static="false" final="false" visibility="public"
  41876. deprecated="not deprecated">
  41877. <doc>
  41878. <![CDATA[Zero-args constructor for the serialization.]]>
  41879. </doc>
  41880. </constructor>
  41881. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  41882. static="false" final="false" visibility="public"
  41883. deprecated="not deprecated">
  41884. <doc>
  41885. <![CDATA[Constructor.
  41886. <p>
  41887. Builds an empty Dynamic Bloom filter.
  41888. @param vectorSize The number of bits in the vector.
  41889. @param nbHash The number of hash function to consider.
  41890. @param hashType type of the hashing function (see
  41891. {@link org.apache.hadoop.util.hash.Hash}).
  41892. @param nr The threshold for the maximum number of keys to record in a
  41893. dynamic Bloom filter row.]]>
  41894. </doc>
  41895. </constructor>
  41896. <method name="add"
  41897. abstract="false" native="false" synchronized="false"
  41898. static="false" final="false" visibility="public"
  41899. deprecated="not deprecated">
  41900. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41901. </method>
  41902. <method name="and"
  41903. abstract="false" native="false" synchronized="false"
  41904. static="false" final="false" visibility="public"
  41905. deprecated="not deprecated">
  41906. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41907. </method>
  41908. <method name="membershipTest" return="boolean"
  41909. abstract="false" native="false" synchronized="false"
  41910. static="false" final="false" visibility="public"
  41911. deprecated="not deprecated">
  41912. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41913. </method>
  41914. <method name="not"
  41915. abstract="false" native="false" synchronized="false"
  41916. static="false" final="false" visibility="public"
  41917. deprecated="not deprecated">
  41918. </method>
  41919. <method name="or"
  41920. abstract="false" native="false" synchronized="false"
  41921. static="false" final="false" visibility="public"
  41922. deprecated="not deprecated">
  41923. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41924. </method>
  41925. <method name="xor"
  41926. abstract="false" native="false" synchronized="false"
  41927. static="false" final="false" visibility="public"
  41928. deprecated="not deprecated">
  41929. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41930. </method>
  41931. <method name="toString" return="java.lang.String"
  41932. abstract="false" native="false" synchronized="false"
  41933. static="false" final="false" visibility="public"
  41934. deprecated="not deprecated">
  41935. </method>
  41936. <method name="write"
  41937. abstract="false" native="false" synchronized="false"
  41938. static="false" final="false" visibility="public"
  41939. deprecated="not deprecated">
  41940. <param name="out" type="java.io.DataOutput"/>
  41941. <exception name="IOException" type="java.io.IOException"/>
  41942. </method>
  41943. <method name="readFields"
  41944. abstract="false" native="false" synchronized="false"
  41945. static="false" final="false" visibility="public"
  41946. deprecated="not deprecated">
  41947. <param name="in" type="java.io.DataInput"/>
  41948. <exception name="IOException" type="java.io.IOException"/>
  41949. </method>
  41950. <doc>
  41951. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  41952. <p>
  41953. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  41954. each of the <code>s</code> rows is a standard Bloom filter. The creation
  41955. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  41956. bit matrix, i.e., it is composed of a single standard Bloom filter.
  41957. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  41958. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  41959. the cardinality of the set <code>A</code> to record in the filter).
  41960. <p>
  41961. As the size of <code>A</code> grows during the execution of the application,
  41962. several keys must be inserted in the DBF. When inserting a key into the DBF,
  41963. one must first get an active Bloom filter in the matrix. A Bloom filter is
  41964. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  41965. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  41966. If an active Bloom filter is found, the key is inserted and
  41967. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  41968. is no active Bloom filter, a new one is created (i.e., a new row is added to
  41969. the matrix) according to the current size of <code>A</code> and the element
  41970. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  41971. this new Bloom filter is set to one. A given key is said to belong to the
  41972. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  41973. <p>
  41974. Originally created by
  41975. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41976. @see Filter The general behavior of a filter
  41977. @see BloomFilter A Bloom filter
  41978. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  41979. </doc>
  41980. </class>
  41981. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41982. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  41983. <class name="Filter" extends="java.lang.Object"
  41984. abstract="true"
  41985. static="false" final="false" visibility="public"
  41986. deprecated="not deprecated">
  41987. <implements name="org.apache.hadoop.io.Writable"/>
  41988. <constructor name="Filter"
  41989. static="false" final="false" visibility="protected"
  41990. deprecated="not deprecated">
  41991. </constructor>
  41992. <constructor name="Filter" type="int, int, int"
  41993. static="false" final="false" visibility="protected"
  41994. deprecated="not deprecated">
  41995. <doc>
  41996. <![CDATA[Constructor.
  41997. @param vectorSize The vector size of <i>this</i> filter.
  41998. @param nbHash The number of hash functions to consider.
  41999. @param hashType type of the hashing function (see {@link Hash}).]]>
  42000. </doc>
  42001. </constructor>
  42002. <method name="add"
  42003. abstract="true" native="false" synchronized="false"
  42004. static="false" final="false" visibility="public"
  42005. deprecated="not deprecated">
  42006. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42007. <doc>
  42008. <![CDATA[Adds a key to <i>this</i> filter.
  42009. @param key The key to add.]]>
  42010. </doc>
  42011. </method>
  42012. <method name="membershipTest" return="boolean"
  42013. abstract="true" native="false" synchronized="false"
  42014. static="false" final="false" visibility="public"
  42015. deprecated="not deprecated">
  42016. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42017. <doc>
  42018. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  42019. @param key The key to test.
  42020. @return boolean True if the specified key belongs to <i>this</i> filter.
  42021. False otherwise.]]>
  42022. </doc>
  42023. </method>
  42024. <method name="and"
  42025. abstract="true" native="false" synchronized="false"
  42026. static="false" final="false" visibility="public"
  42027. deprecated="not deprecated">
  42028. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42029. <doc>
  42030. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  42031. <p>
  42032. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  42033. @param filter The filter to AND with.]]>
  42034. </doc>
  42035. </method>
  42036. <method name="or"
  42037. abstract="true" native="false" synchronized="false"
  42038. static="false" final="false" visibility="public"
  42039. deprecated="not deprecated">
  42040. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42041. <doc>
  42042. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  42043. <p>
  42044. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  42045. @param filter The filter to OR with.]]>
  42046. </doc>
  42047. </method>
  42048. <method name="xor"
  42049. abstract="true" native="false" synchronized="false"
  42050. static="false" final="false" visibility="public"
  42051. deprecated="not deprecated">
  42052. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42053. <doc>
  42054. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  42055. <p>
  42056. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  42057. @param filter The filter to XOR with.]]>
  42058. </doc>
  42059. </method>
  42060. <method name="not"
  42061. abstract="true" native="false" synchronized="false"
  42062. static="false" final="false" visibility="public"
  42063. deprecated="not deprecated">
  42064. <doc>
  42065. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  42066. <p>
  42067. The result is assigned to <i>this</i> filter.]]>
  42068. </doc>
  42069. </method>
  42070. <method name="add"
  42071. abstract="false" native="false" synchronized="false"
  42072. static="false" final="false" visibility="public"
  42073. deprecated="not deprecated">
  42074. <param name="keys" type="java.util.List"/>
  42075. <doc>
  42076. <![CDATA[Adds a list of keys to <i>this</i> filter.
  42077. @param keys The list of keys.]]>
  42078. </doc>
  42079. </method>
  42080. <method name="add"
  42081. abstract="false" native="false" synchronized="false"
  42082. static="false" final="false" visibility="public"
  42083. deprecated="not deprecated">
  42084. <param name="keys" type="java.util.Collection"/>
  42085. <doc>
  42086. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  42087. @param keys The collection of keys.]]>
  42088. </doc>
  42089. </method>
  42090. <method name="add"
  42091. abstract="false" native="false" synchronized="false"
  42092. static="false" final="false" visibility="public"
  42093. deprecated="not deprecated">
  42094. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  42095. <doc>
  42096. <![CDATA[Adds an array of keys to <i>this</i> filter.
  42097. @param keys The array of keys.]]>
  42098. </doc>
  42099. </method>
  42100. <method name="write"
  42101. abstract="false" native="false" synchronized="false"
  42102. static="false" final="false" visibility="public"
  42103. deprecated="not deprecated">
  42104. <param name="out" type="java.io.DataOutput"/>
  42105. <exception name="IOException" type="java.io.IOException"/>
  42106. </method>
  42107. <method name="readFields"
  42108. abstract="false" native="false" synchronized="false"
  42109. static="false" final="false" visibility="public"
  42110. deprecated="not deprecated">
  42111. <param name="in" type="java.io.DataInput"/>
  42112. <exception name="IOException" type="java.io.IOException"/>
  42113. </method>
  42114. <field name="vectorSize" type="int"
  42115. transient="false" volatile="false"
  42116. static="false" final="false" visibility="protected"
  42117. deprecated="not deprecated">
  42118. <doc>
  42119. <![CDATA[The vector size of <i>this</i> filter.]]>
  42120. </doc>
  42121. </field>
  42122. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  42123. transient="false" volatile="false"
  42124. static="false" final="false" visibility="protected"
  42125. deprecated="not deprecated">
  42126. <doc>
  42127. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  42128. </doc>
  42129. </field>
  42130. <field name="nbHash" type="int"
  42131. transient="false" volatile="false"
  42132. static="false" final="false" visibility="protected"
  42133. deprecated="not deprecated">
  42134. <doc>
  42135. <![CDATA[The number of hash function to consider.]]>
  42136. </doc>
  42137. </field>
  42138. <field name="hashType" type="int"
  42139. transient="false" volatile="false"
  42140. static="false" final="false" visibility="protected"
  42141. deprecated="not deprecated">
  42142. <doc>
  42143. <![CDATA[Type of hashing function to use.]]>
  42144. </doc>
  42145. </field>
  42146. <doc>
  42147. <![CDATA[Defines the general behavior of a filter.
  42148. <p>
  42149. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  42150. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  42151. in a vector through the use of several hash functions.
  42152. <p>
  42153. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  42154. <p>
  42155. It must be extended in order to define the real behavior.
  42156. @see Key The general behavior of a key
  42157. @see HashFunction A hash function]]>
  42158. </doc>
  42159. </class>
  42160. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  42161. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  42162. <class name="HashFunction" extends="java.lang.Object"
  42163. abstract="false"
  42164. static="false" final="true" visibility="public"
  42165. deprecated="not deprecated">
  42166. <constructor name="HashFunction" type="int, int, int"
  42167. static="false" final="false" visibility="public"
  42168. deprecated="not deprecated">
  42169. <doc>
  42170. <![CDATA[Constructor.
  42171. <p>
  42172. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  42173. @param maxValue The maximum highest returned value.
  42174. @param nbHash The number of resulting hashed values.
  42175. @param hashType type of the hashing function (see {@link Hash}).]]>
  42176. </doc>
  42177. </constructor>
  42178. <method name="clear"
  42179. abstract="false" native="false" synchronized="false"
  42180. static="false" final="false" visibility="public"
  42181. deprecated="not deprecated">
  42182. <doc>
  42183. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  42184. </doc>
  42185. </method>
  42186. <method name="hash" return="int[]"
  42187. abstract="false" native="false" synchronized="false"
  42188. static="false" final="false" visibility="public"
  42189. deprecated="not deprecated">
  42190. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  42191. <doc>
  42192. <![CDATA[Hashes a specified key into several integers.
  42193. @param k The specified key.
  42194. @return The array of hashed values.]]>
  42195. </doc>
  42196. </method>
  42197. <doc>
  42198. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  42199. @see Key The general behavior of a key being stored in a filter
  42200. @see Filter The general behavior of a filter]]>
  42201. </doc>
  42202. </class>
  42203. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  42204. <!-- start class org.apache.hadoop.util.bloom.Key -->
  42205. <class name="Key" extends="java.lang.Object"
  42206. abstract="false"
  42207. static="false" final="false" visibility="public"
  42208. deprecated="not deprecated">
  42209. <implements name="org.apache.hadoop.io.WritableComparable"/>
  42210. <constructor name="Key"
  42211. static="false" final="false" visibility="public"
  42212. deprecated="not deprecated">
  42213. <doc>
  42214. <![CDATA[default constructor - use with readFields]]>
  42215. </doc>
  42216. </constructor>
  42217. <constructor name="Key" type="byte[]"
  42218. static="false" final="false" visibility="public"
  42219. deprecated="not deprecated">
  42220. <doc>
  42221. <![CDATA[Constructor.
  42222. <p>
  42223. Builds a key with a default weight.
  42224. @param value The byte value of <i>this</i> key.]]>
  42225. </doc>
  42226. </constructor>
  42227. <constructor name="Key" type="byte[], double"
  42228. static="false" final="false" visibility="public"
  42229. deprecated="not deprecated">
  42230. <doc>
  42231. <![CDATA[Constructor.
  42232. <p>
  42233. Builds a key with a specified weight.
  42234. @param value The value of <i>this</i> key.
  42235. @param weight The weight associated to <i>this</i> key.]]>
  42236. </doc>
  42237. </constructor>
  42238. <method name="set"
  42239. abstract="false" native="false" synchronized="false"
  42240. static="false" final="false" visibility="public"
  42241. deprecated="not deprecated">
  42242. <param name="value" type="byte[]"/>
  42243. <param name="weight" type="double"/>
  42244. <doc>
  42245. <![CDATA[@param value
  42246. @param weight]]>
  42247. </doc>
  42248. </method>
  42249. <method name="getBytes" return="byte[]"
  42250. abstract="false" native="false" synchronized="false"
  42251. static="false" final="false" visibility="public"
  42252. deprecated="not deprecated">
  42253. <doc>
  42254. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  42255. </doc>
  42256. </method>
  42257. <method name="getWeight" return="double"
  42258. abstract="false" native="false" synchronized="false"
  42259. static="false" final="false" visibility="public"
  42260. deprecated="not deprecated">
  42261. <doc>
  42262. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  42263. </doc>
  42264. </method>
  42265. <method name="incrementWeight"
  42266. abstract="false" native="false" synchronized="false"
  42267. static="false" final="false" visibility="public"
  42268. deprecated="not deprecated">
  42269. <param name="weight" type="double"/>
  42270. <doc>
  42271. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  42272. @param weight The increment.]]>
  42273. </doc>
  42274. </method>
  42275. <method name="incrementWeight"
  42276. abstract="false" native="false" synchronized="false"
  42277. static="false" final="false" visibility="public"
  42278. deprecated="not deprecated">
  42279. <doc>
  42280. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  42281. </doc>
  42282. </method>
  42283. <method name="equals" return="boolean"
  42284. abstract="false" native="false" synchronized="false"
  42285. static="false" final="false" visibility="public"
  42286. deprecated="not deprecated">
  42287. <param name="o" type="java.lang.Object"/>
  42288. </method>
  42289. <method name="hashCode" return="int"
  42290. abstract="false" native="false" synchronized="false"
  42291. static="false" final="false" visibility="public"
  42292. deprecated="not deprecated">
  42293. </method>
  42294. <method name="write"
  42295. abstract="false" native="false" synchronized="false"
  42296. static="false" final="false" visibility="public"
  42297. deprecated="not deprecated">
  42298. <param name="out" type="java.io.DataOutput"/>
  42299. <exception name="IOException" type="java.io.IOException"/>
  42300. </method>
  42301. <method name="readFields"
  42302. abstract="false" native="false" synchronized="false"
  42303. static="false" final="false" visibility="public"
  42304. deprecated="not deprecated">
  42305. <param name="in" type="java.io.DataInput"/>
  42306. <exception name="IOException" type="java.io.IOException"/>
  42307. </method>
  42308. <method name="compareTo" return="int"
  42309. abstract="false" native="false" synchronized="false"
  42310. static="false" final="false" visibility="public"
  42311. deprecated="not deprecated">
  42312. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  42313. </method>
  42314. <doc>
  42315. <![CDATA[The general behavior of a key that must be stored in a filter.
  42316. @see Filter The general behavior of a filter]]>
  42317. </doc>
  42318. </class>
  42319. <!-- end class org.apache.hadoop.util.bloom.Key -->
  42320. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  42321. <interface name="RemoveScheme" abstract="true"
  42322. static="false" final="false" visibility="public"
  42323. deprecated="not deprecated">
  42324. <field name="RANDOM" type="short"
  42325. transient="false" volatile="false"
  42326. static="true" final="true" visibility="public"
  42327. deprecated="not deprecated">
  42328. <doc>
  42329. <![CDATA[Random selection.
  42330. <p>
  42331. The idea is to randomly select a bit to reset.]]>
  42332. </doc>
  42333. </field>
  42334. <field name="MINIMUM_FN" type="short"
  42335. transient="false" volatile="false"
  42336. static="true" final="true" visibility="public"
  42337. deprecated="not deprecated">
  42338. <doc>
  42339. <![CDATA[MinimumFN Selection.
  42340. <p>
  42341. The idea is to select the bit to reset that will generate the minimum
  42342. number of false negative.]]>
  42343. </doc>
  42344. </field>
  42345. <field name="MAXIMUM_FP" type="short"
  42346. transient="false" volatile="false"
  42347. static="true" final="true" visibility="public"
  42348. deprecated="not deprecated">
  42349. <doc>
  42350. <![CDATA[MaximumFP Selection.
  42351. <p>
  42352. The idea is to select the bit to reset that will remove the maximum number
  42353. of false positive.]]>
  42354. </doc>
  42355. </field>
  42356. <field name="RATIO" type="short"
  42357. transient="false" volatile="false"
  42358. static="true" final="true" visibility="public"
  42359. deprecated="not deprecated">
  42360. <doc>
  42361. <![CDATA[Ratio Selection.
  42362. <p>
  42363. The idea is to select the bit to reset that will, at the same time, remove
  42364. the maximum number of false positve while minimizing the amount of false
  42365. negative generated.]]>
  42366. </doc>
  42367. </field>
  42368. <doc>
  42369. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  42370. <p>
  42371. Originally created by
  42372. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  42373. </doc>
  42374. </interface>
  42375. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  42376. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  42377. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  42378. abstract="false"
  42379. static="false" final="true" visibility="public"
  42380. deprecated="not deprecated">
  42381. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  42382. <constructor name="RetouchedBloomFilter"
  42383. static="false" final="false" visibility="public"
  42384. deprecated="not deprecated">
  42385. <doc>
  42386. <![CDATA[Default constructor - use with readFields]]>
  42387. </doc>
  42388. </constructor>
  42389. <constructor name="RetouchedBloomFilter" type="int, int, int"
  42390. static="false" final="false" visibility="public"
  42391. deprecated="not deprecated">
  42392. <doc>
  42393. <![CDATA[Constructor
  42394. @param vectorSize The vector size of <i>this</i> filter.
  42395. @param nbHash The number of hash function to consider.
  42396. @param hashType type of the hashing function (see
  42397. {@link org.apache.hadoop.util.hash.Hash}).]]>
  42398. </doc>
  42399. </constructor>
  42400. <method name="add"
  42401. abstract="false" native="false" synchronized="false"
  42402. static="false" final="false" visibility="public"
  42403. deprecated="not deprecated">
  42404. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42405. </method>
  42406. <method name="addFalsePositive"
  42407. abstract="false" native="false" synchronized="false"
  42408. static="false" final="false" visibility="public"
  42409. deprecated="not deprecated">
  42410. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42411. <doc>
  42412. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  42413. <p>
  42414. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  42415. @param key The false positive key to add.]]>
  42416. </doc>
  42417. </method>
  42418. <method name="addFalsePositive"
  42419. abstract="false" native="false" synchronized="false"
  42420. static="false" final="false" visibility="public"
  42421. deprecated="not deprecated">
  42422. <param name="coll" type="java.util.Collection"/>
  42423. <doc>
  42424. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  42425. @param coll The collection of false positive.]]>
  42426. </doc>
  42427. </method>
  42428. <method name="addFalsePositive"
  42429. abstract="false" native="false" synchronized="false"
  42430. static="false" final="false" visibility="public"
  42431. deprecated="not deprecated">
  42432. <param name="keys" type="java.util.List"/>
  42433. <doc>
  42434. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  42435. @param keys The list of false positive.]]>
  42436. </doc>
  42437. </method>
  42438. <method name="addFalsePositive"
  42439. abstract="false" native="false" synchronized="false"
  42440. static="false" final="false" visibility="public"
  42441. deprecated="not deprecated">
  42442. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  42443. <doc>
  42444. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  42445. @param keys The array of false positive.]]>
  42446. </doc>
  42447. </method>
  42448. <method name="selectiveClearing"
  42449. abstract="false" native="false" synchronized="false"
  42450. static="false" final="false" visibility="public"
  42451. deprecated="not deprecated">
  42452. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  42453. <param name="scheme" type="short"/>
  42454. <doc>
  42455. <![CDATA[Performs the selective clearing for a given key.
  42456. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  42457. @param scheme The selective clearing scheme to apply.]]>
  42458. </doc>
  42459. </method>
  42460. <method name="write"
  42461. abstract="false" native="false" synchronized="false"
  42462. static="false" final="false" visibility="public"
  42463. deprecated="not deprecated">
  42464. <param name="out" type="java.io.DataOutput"/>
  42465. <exception name="IOException" type="java.io.IOException"/>
  42466. </method>
  42467. <method name="readFields"
  42468. abstract="false" native="false" synchronized="false"
  42469. static="false" final="false" visibility="public"
  42470. deprecated="not deprecated">
  42471. <param name="in" type="java.io.DataInput"/>
  42472. <exception name="IOException" type="java.io.IOException"/>
  42473. </method>
  42474. <doc>
  42475. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  42476. <p>
  42477. It allows the removal of selected false positives at the cost of introducing
  42478. random false negatives, and with the benefit of eliminating some random false
  42479. positives at the same time.
  42480. <p>
  42481. Originally created by
  42482. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42483. @see Filter The general behavior of a filter
  42484. @see BloomFilter A Bloom filter
  42485. @see RemoveScheme The different selective clearing algorithms
  42486. @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>]]>
  42487. </doc>
  42488. </class>
  42489. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  42490. </package>
  42491. <package name="org.apache.hadoop.util.hash">
  42492. <!-- start class org.apache.hadoop.util.hash.Hash -->
  42493. <class name="Hash" extends="java.lang.Object"
  42494. abstract="true"
  42495. static="false" final="false" visibility="public"
  42496. deprecated="not deprecated">
  42497. <constructor name="Hash"
  42498. static="false" final="false" visibility="public"
  42499. deprecated="not deprecated">
  42500. </constructor>
  42501. <method name="parseHashType" return="int"
  42502. abstract="false" native="false" synchronized="false"
  42503. static="true" final="false" visibility="public"
  42504. deprecated="not deprecated">
  42505. <param name="name" type="java.lang.String"/>
  42506. <doc>
  42507. <![CDATA[This utility method converts String representation of hash function name
  42508. to a symbolic constant. Currently two function types are supported,
  42509. "jenkins" and "murmur".
  42510. @param name hash function name
  42511. @return one of the predefined constants]]>
  42512. </doc>
  42513. </method>
  42514. <method name="getHashType" return="int"
  42515. abstract="false" native="false" synchronized="false"
  42516. static="true" final="false" visibility="public"
  42517. deprecated="not deprecated">
  42518. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42519. <doc>
  42520. <![CDATA[This utility method converts the name of the configured
  42521. hash type to a symbolic constant.
  42522. @param conf configuration
  42523. @return one of the predefined constants]]>
  42524. </doc>
  42525. </method>
  42526. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42527. abstract="false" native="false" synchronized="false"
  42528. static="true" final="false" visibility="public"
  42529. deprecated="not deprecated">
  42530. <param name="type" type="int"/>
  42531. <doc>
  42532. <![CDATA[Get a singleton instance of hash function of a given type.
  42533. @param type predefined hash type
  42534. @return hash function instance, or null if type is invalid]]>
  42535. </doc>
  42536. </method>
  42537. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42538. abstract="false" native="false" synchronized="false"
  42539. static="true" final="false" visibility="public"
  42540. deprecated="not deprecated">
  42541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42542. <doc>
  42543. <![CDATA[Get a singleton instance of hash function of a type
  42544. defined in the configuration.
  42545. @param conf current configuration
  42546. @return defined hash type, or null if type is invalid]]>
  42547. </doc>
  42548. </method>
  42549. <method name="hash" return="int"
  42550. abstract="false" native="false" synchronized="false"
  42551. static="false" final="false" visibility="public"
  42552. deprecated="not deprecated">
  42553. <param name="bytes" type="byte[]"/>
  42554. <doc>
  42555. <![CDATA[Calculate a hash using all bytes from the input argument, and
  42556. a seed of -1.
  42557. @param bytes input bytes
  42558. @return hash value]]>
  42559. </doc>
  42560. </method>
  42561. <method name="hash" return="int"
  42562. abstract="false" native="false" synchronized="false"
  42563. static="false" final="false" visibility="public"
  42564. deprecated="not deprecated">
  42565. <param name="bytes" type="byte[]"/>
  42566. <param name="initval" type="int"/>
  42567. <doc>
  42568. <![CDATA[Calculate a hash using all bytes from the input argument,
  42569. and a provided seed value.
  42570. @param bytes input bytes
  42571. @param initval seed value
  42572. @return hash value]]>
  42573. </doc>
  42574. </method>
  42575. <method name="hash" return="int"
  42576. abstract="true" native="false" synchronized="false"
  42577. static="false" final="false" visibility="public"
  42578. deprecated="not deprecated">
  42579. <param name="bytes" type="byte[]"/>
  42580. <param name="length" type="int"/>
  42581. <param name="initval" type="int"/>
  42582. <doc>
  42583. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  42584. the provided seed value
  42585. @param bytes input bytes
  42586. @param length length of the valid bytes to consider
  42587. @param initval seed value
  42588. @return hash value]]>
  42589. </doc>
  42590. </method>
  42591. <field name="INVALID_HASH" type="int"
  42592. transient="false" volatile="false"
  42593. static="true" final="true" visibility="public"
  42594. deprecated="not deprecated">
  42595. <doc>
  42596. <![CDATA[Constant to denote invalid hash type.]]>
  42597. </doc>
  42598. </field>
  42599. <field name="JENKINS_HASH" type="int"
  42600. transient="false" volatile="false"
  42601. static="true" final="true" visibility="public"
  42602. deprecated="not deprecated">
  42603. <doc>
  42604. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  42605. </doc>
  42606. </field>
  42607. <field name="MURMUR_HASH" type="int"
  42608. transient="false" volatile="false"
  42609. static="true" final="true" visibility="public"
  42610. deprecated="not deprecated">
  42611. <doc>
  42612. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  42613. </doc>
  42614. </field>
  42615. <doc>
  42616. <![CDATA[This class represents a common API for hashing functions.]]>
  42617. </doc>
  42618. </class>
  42619. <!-- end class org.apache.hadoop.util.hash.Hash -->
  42620. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  42621. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  42622. abstract="false"
  42623. static="false" final="false" visibility="public"
  42624. deprecated="not deprecated">
  42625. <constructor name="JenkinsHash"
  42626. static="false" final="false" visibility="public"
  42627. deprecated="not deprecated">
  42628. </constructor>
  42629. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42630. abstract="false" native="false" synchronized="false"
  42631. static="true" final="false" visibility="public"
  42632. deprecated="not deprecated">
  42633. </method>
  42634. <method name="hash" return="int"
  42635. abstract="false" native="false" synchronized="false"
  42636. static="false" final="false" visibility="public"
  42637. deprecated="not deprecated">
  42638. <param name="key" type="byte[]"/>
  42639. <param name="nbytes" type="int"/>
  42640. <param name="initval" type="int"/>
  42641. <doc>
  42642. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  42643. @param key the key (the unaligned variable-length array of bytes)
  42644. @param nbytes number of bytes to include in hash
  42645. @param initval can be any integer value
  42646. @return a 32-bit value. Every bit of the key affects every bit of the
  42647. return value. Two keys differing by one or two bits will have totally
  42648. different hash values.
  42649. <p>The best hash table sizes are powers of 2. There is no need to do mod
  42650. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  42651. For example, if you need only 10 bits, do
  42652. <code>h = (h & hashmask(10));</code>
  42653. In which case, the hash table should have hashsize(10) elements.
  42654. <p>If you are hashing n strings byte[][] k, do it like this:
  42655. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  42656. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  42657. code any way you wish, private, educational, or commercial. It's free.
  42658. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  42659. acceptable. Do NOT use for cryptographic purposes.]]>
  42660. </doc>
  42661. </method>
  42662. <method name="main"
  42663. abstract="false" native="false" synchronized="false"
  42664. static="true" final="false" visibility="public"
  42665. deprecated="not deprecated">
  42666. <param name="args" type="java.lang.String[]"/>
  42667. <exception name="IOException" type="java.io.IOException"/>
  42668. <doc>
  42669. <![CDATA[Compute the hash of the specified file
  42670. @param args name of file to compute hash of.
  42671. @throws IOException]]>
  42672. </doc>
  42673. </method>
  42674. <doc>
  42675. <![CDATA[Produces 32-bit hash for hash table lookup.
  42676. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  42677. You can use this free for any purpose. It's in the public domain.
  42678. It has no warranty.
  42679. </pre>
  42680. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  42681. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  42682. function compares to others such as CRC, MD?, etc</a>
  42683. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  42684. Dr. Dobbs Article</a>]]>
  42685. </doc>
  42686. </class>
  42687. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  42688. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  42689. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  42690. abstract="false"
  42691. static="false" final="false" visibility="public"
  42692. deprecated="not deprecated">
  42693. <constructor name="MurmurHash"
  42694. static="false" final="false" visibility="public"
  42695. deprecated="not deprecated">
  42696. </constructor>
  42697. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42698. abstract="false" native="false" synchronized="false"
  42699. static="true" final="false" visibility="public"
  42700. deprecated="not deprecated">
  42701. </method>
  42702. <method name="hash" return="int"
  42703. abstract="false" native="false" synchronized="false"
  42704. static="false" final="false" visibility="public"
  42705. deprecated="not deprecated">
  42706. <param name="data" type="byte[]"/>
  42707. <param name="length" type="int"/>
  42708. <param name="seed" type="int"/>
  42709. </method>
  42710. <doc>
  42711. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  42712. lookup. See http://murmurhash.googlepages.com/ for more details.
  42713. <p>The C version of MurmurHash 2.0 found at that site was ported
  42714. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  42715. </doc>
  42716. </class>
  42717. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  42718. </package>
  42719. <package name="org.apache.hadoop.filecache">
  42720. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  42721. <class name="DistributedCache" extends="java.lang.Object"
  42722. abstract="false"
  42723. static="false" final="false" visibility="public"
  42724. deprecated="not deprecated">
  42725. <constructor name="DistributedCache"
  42726. static="false" final="false" visibility="public"
  42727. deprecated="not deprecated">
  42728. </constructor>
  42729. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  42730. abstract="false" native="false" synchronized="false"
  42731. static="true" final="false" visibility="public"
  42732. deprecated="not deprecated">
  42733. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42734. <param name="cache" type="java.net.URI"/>
  42735. <exception name="IOException" type="java.io.IOException"/>
  42736. <doc>
  42737. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  42738. MapReduce.
  42739. @param conf configuration
  42740. @param cache cache file
  42741. @return <code>FileStatus</code> of a given cache file on hdfs
  42742. @throws IOException]]>
  42743. </doc>
  42744. </method>
  42745. <method name="getTimestamp" return="long"
  42746. abstract="false" native="false" synchronized="false"
  42747. static="true" final="false" visibility="public"
  42748. deprecated="not deprecated">
  42749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42750. <param name="cache" type="java.net.URI"/>
  42751. <exception name="IOException" type="java.io.IOException"/>
  42752. <doc>
  42753. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  42754. @param conf configuration
  42755. @param cache cache file
  42756. @return mtime of a given cache file on hdfs
  42757. @throws IOException]]>
  42758. </doc>
  42759. </method>
  42760. <method name="createAllSymlink"
  42761. abstract="false" native="false" synchronized="false"
  42762. static="true" final="false" visibility="public"
  42763. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  42764. instead.">
  42765. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42766. <param name="jobCacheDir" type="java.io.File"/>
  42767. <param name="workDir" type="java.io.File"/>
  42768. <exception name="IOException" type="java.io.IOException"/>
  42769. <doc>
  42770. <![CDATA[This method create symlinks for all files in a given dir in another directory
  42771. @param conf the configuration
  42772. @param jobCacheDir the target directory for creating symlinks
  42773. @param workDir the directory in which the symlinks are created
  42774. @throws IOException
  42775. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  42776. instead.]]>
  42777. </doc>
  42778. </method>
  42779. <method name="setCacheArchives"
  42780. abstract="false" native="false" synchronized="false"
  42781. static="true" final="false" visibility="public"
  42782. deprecated="not deprecated">
  42783. <param name="archives" type="java.net.URI[]"/>
  42784. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42785. <doc>
  42786. <![CDATA[Set the configuration with the given set of archives. Intended
  42787. to be used by user code.
  42788. @param archives The list of archives that need to be localized
  42789. @param conf Configuration which will be changed]]>
  42790. </doc>
  42791. </method>
  42792. <method name="setCacheFiles"
  42793. abstract="false" native="false" synchronized="false"
  42794. static="true" final="false" visibility="public"
  42795. deprecated="not deprecated">
  42796. <param name="files" type="java.net.URI[]"/>
  42797. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42798. <doc>
  42799. <![CDATA[Set the configuration with the given set of files. Intended to be
  42800. used by user code.
  42801. @param files The list of files that need to be localized
  42802. @param conf Configuration which will be changed]]>
  42803. </doc>
  42804. </method>
  42805. <method name="getCacheArchives" return="java.net.URI[]"
  42806. abstract="false" native="false" synchronized="false"
  42807. static="true" final="false" visibility="public"
  42808. deprecated="not deprecated">
  42809. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42810. <exception name="IOException" type="java.io.IOException"/>
  42811. <doc>
  42812. <![CDATA[Get cache archives set in the Configuration. Used by
  42813. internal DistributedCache and MapReduce code.
  42814. @param conf The configuration which contains the archives
  42815. @return An array of the caches set in the Configuration
  42816. @throws IOException]]>
  42817. </doc>
  42818. </method>
  42819. <method name="getCacheFiles" return="java.net.URI[]"
  42820. abstract="false" native="false" synchronized="false"
  42821. static="true" final="false" visibility="public"
  42822. deprecated="not deprecated">
  42823. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42824. <exception name="IOException" type="java.io.IOException"/>
  42825. <doc>
  42826. <![CDATA[Get cache files set in the Configuration. Used by internal
  42827. DistributedCache and MapReduce code.
  42828. @param conf The configuration which contains the files
  42829. @return Am array of the files set in the Configuration
  42830. @throws IOException]]>
  42831. </doc>
  42832. </method>
  42833. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  42834. abstract="false" native="false" synchronized="false"
  42835. static="true" final="false" visibility="public"
  42836. deprecated="not deprecated">
  42837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42838. <exception name="IOException" type="java.io.IOException"/>
  42839. <doc>
  42840. <![CDATA[Return the path array of the localized caches. Intended to be used
  42841. by user code.
  42842. @param conf Configuration that contains the localized archives
  42843. @return A path array of localized caches
  42844. @throws IOException]]>
  42845. </doc>
  42846. </method>
  42847. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  42848. abstract="false" native="false" synchronized="false"
  42849. static="true" final="false" visibility="public"
  42850. deprecated="not deprecated">
  42851. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42852. <exception name="IOException" type="java.io.IOException"/>
  42853. <doc>
  42854. <![CDATA[Return the path array of the localized files. Intended to be used
  42855. by user code.
  42856. @param conf Configuration that contains the localized files
  42857. @return A path array of localized files
  42858. @throws IOException]]>
  42859. </doc>
  42860. </method>
  42861. <method name="getArchiveTimestamps" return="long[]"
  42862. abstract="false" native="false" synchronized="false"
  42863. static="true" final="false" visibility="public"
  42864. deprecated="not deprecated">
  42865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42866. <doc>
  42867. <![CDATA[Get the timestamps of the archives. Used by internal
  42868. DistributedCache and MapReduce code.
  42869. @param conf The configuration which stored the timestamps
  42870. @return a long array of timestamps
  42871. @throws IOException]]>
  42872. </doc>
  42873. </method>
  42874. <method name="getFileTimestamps" return="long[]"
  42875. abstract="false" native="false" synchronized="false"
  42876. static="true" final="false" visibility="public"
  42877. deprecated="not deprecated">
  42878. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42879. <doc>
  42880. <![CDATA[Get the timestamps of the files. Used by internal
  42881. DistributedCache and MapReduce code.
  42882. @param conf The configuration which stored the timestamps
  42883. @return a long array of timestamps
  42884. @throws IOException]]>
  42885. </doc>
  42886. </method>
  42887. <method name="setArchiveTimestamps"
  42888. abstract="false" native="false" synchronized="false"
  42889. static="true" final="false" visibility="public"
  42890. deprecated="not deprecated">
  42891. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42892. <param name="timestamps" type="java.lang.String"/>
  42893. <doc>
  42894. <![CDATA[This is to check the timestamp of the archives to be localized.
  42895. Used by internal MapReduce code.
  42896. @param conf Configuration which stores the timestamp's
  42897. @param timestamps comma separated list of timestamps of archives.
  42898. The order should be the same as the order in which the archives are added.]]>
  42899. </doc>
  42900. </method>
  42901. <method name="setFileTimestamps"
  42902. abstract="false" native="false" synchronized="false"
  42903. static="true" final="false" visibility="public"
  42904. deprecated="not deprecated">
  42905. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42906. <param name="timestamps" type="java.lang.String"/>
  42907. <doc>
  42908. <![CDATA[This is to check the timestamp of the files to be localized.
  42909. Used by internal MapReduce code.
  42910. @param conf Configuration which stores the timestamp's
  42911. @param timestamps comma separated list of timestamps of files.
  42912. The order should be the same as the order in which the files are added.]]>
  42913. </doc>
  42914. </method>
  42915. <method name="setLocalArchives"
  42916. abstract="false" native="false" synchronized="false"
  42917. static="true" final="false" visibility="public"
  42918. deprecated="not deprecated">
  42919. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42920. <param name="str" type="java.lang.String"/>
  42921. <doc>
  42922. <![CDATA[Set the conf to contain the location for localized archives. Used
  42923. by internal DistributedCache code.
  42924. @param conf The conf to modify to contain the localized caches
  42925. @param str a comma separated list of local archives]]>
  42926. </doc>
  42927. </method>
  42928. <method name="setLocalFiles"
  42929. abstract="false" native="false" synchronized="false"
  42930. static="true" final="false" visibility="public"
  42931. deprecated="not deprecated">
  42932. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42933. <param name="str" type="java.lang.String"/>
  42934. <doc>
  42935. <![CDATA[Set the conf to contain the location for localized files. Used
  42936. by internal DistributedCache code.
  42937. @param conf The conf to modify to contain the localized caches
  42938. @param str a comma separated list of local files]]>
  42939. </doc>
  42940. </method>
  42941. <method name="addLocalArchives"
  42942. abstract="false" native="false" synchronized="false"
  42943. static="true" final="false" visibility="public"
  42944. deprecated="not deprecated">
  42945. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42946. <param name="str" type="java.lang.String"/>
  42947. <doc>
  42948. <![CDATA[Add a archive that has been localized to the conf. Used
  42949. by internal DistributedCache code.
  42950. @param conf The conf to modify to contain the localized caches
  42951. @param str a comma separated list of local archives]]>
  42952. </doc>
  42953. </method>
  42954. <method name="addLocalFiles"
  42955. abstract="false" native="false" synchronized="false"
  42956. static="true" final="false" visibility="public"
  42957. deprecated="not deprecated">
  42958. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42959. <param name="str" type="java.lang.String"/>
  42960. <doc>
  42961. <![CDATA[Add a file that has been localized to the conf.. Used
  42962. by internal DistributedCache code.
  42963. @param conf The conf to modify to contain the localized caches
  42964. @param str a comma separated list of local files]]>
  42965. </doc>
  42966. </method>
  42967. <method name="addCacheArchive"
  42968. abstract="false" native="false" synchronized="false"
  42969. static="true" final="false" visibility="public"
  42970. deprecated="not deprecated">
  42971. <param name="uri" type="java.net.URI"/>
  42972. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42973. <doc>
  42974. <![CDATA[Add a archives to be localized to the conf. Intended to
  42975. be used by user code.
  42976. @param uri The uri of the cache to be localized
  42977. @param conf Configuration to add the cache to]]>
  42978. </doc>
  42979. </method>
  42980. <method name="addCacheFile"
  42981. abstract="false" native="false" synchronized="false"
  42982. static="true" final="false" visibility="public"
  42983. deprecated="not deprecated">
  42984. <param name="uri" type="java.net.URI"/>
  42985. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42986. <doc>
  42987. <![CDATA[Add a file to be localized to the conf. Intended
  42988. to be used by user code.
  42989. @param uri The uri of the cache to be localized
  42990. @param conf Configuration to add the cache to]]>
  42991. </doc>
  42992. </method>
  42993. <method name="addFileToClassPath"
  42994. abstract="false" native="false" synchronized="false"
  42995. static="true" final="false" visibility="public"
  42996. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  42997. instead. The {@code FileSystem} should be obtained within an
  42998. appropriate {@code doAs}.">
  42999. <param name="file" type="org.apache.hadoop.fs.Path"/>
  43000. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43001. <exception name="IOException" type="java.io.IOException"/>
  43002. <doc>
  43003. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  43004. to cache as well. Intended to be used by user code.
  43005. @deprecated
  43006. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  43007. instead. The {@code FileSystem} should be obtained within an
  43008. appropriate {@code doAs}.
  43009. @param file Path of the file to be added
  43010. @param conf Configuration that contains the classpath setting]]>
  43011. </doc>
  43012. </method>
  43013. <method name="addFileToClassPath"
  43014. abstract="false" native="false" synchronized="false"
  43015. static="true" final="false" visibility="public"
  43016. deprecated="not deprecated">
  43017. <param name="file" type="org.apache.hadoop.fs.Path"/>
  43018. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43019. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43020. <exception name="IOException" type="java.io.IOException"/>
  43021. <doc>
  43022. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  43023. to cache as well. Intended to be used by user code.
  43024. @param file Path of the file to be added
  43025. @param conf Configuration that contains the classpath setting
  43026. @param fs FileSystem with respect to which {@code archivefile} should
  43027. be interpreted.]]>
  43028. </doc>
  43029. </method>
  43030. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  43031. abstract="false" native="false" synchronized="false"
  43032. static="true" final="false" visibility="public"
  43033. deprecated="not deprecated">
  43034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43035. <doc>
  43036. <![CDATA[Get the file entries in classpath as an array of Path.
  43037. Used by internal DistributedCache code.
  43038. @param conf Configuration that contains the classpath setting]]>
  43039. </doc>
  43040. </method>
  43041. <method name="addArchiveToClassPath"
  43042. abstract="false" native="false" synchronized="false"
  43043. static="true" final="false" visibility="public"
  43044. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  43045. instead. The {@code FileSystem} should be obtained within an
  43046. appropriate {@code doAs}.">
  43047. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  43048. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43049. <exception name="IOException" type="java.io.IOException"/>
  43050. <doc>
  43051. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  43052. archive to cache as well. Intended to be used by user code.
  43053. @deprecated
  43054. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  43055. instead. The {@code FileSystem} should be obtained within an
  43056. appropriate {@code doAs}.
  43057. @param archive Path of the archive to be added
  43058. @param conf Configuration that contains the classpath setting]]>
  43059. </doc>
  43060. </method>
  43061. <method name="addArchiveToClassPath"
  43062. abstract="false" native="false" synchronized="false"
  43063. static="true" final="false" visibility="public"
  43064. deprecated="not deprecated">
  43065. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  43066. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43067. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43068. <exception name="IOException" type="java.io.IOException"/>
  43069. <doc>
  43070. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  43071. archive to cache as well. Intended to be used by user code.
  43072. @param archive Path of the archive to be added
  43073. @param conf Configuration that contains the classpath setting
  43074. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  43075. </doc>
  43076. </method>
  43077. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  43078. abstract="false" native="false" synchronized="false"
  43079. static="true" final="false" visibility="public"
  43080. deprecated="not deprecated">
  43081. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43082. <doc>
  43083. <![CDATA[Get the archive entries in classpath as an array of Path.
  43084. Used by internal DistributedCache code.
  43085. @param conf Configuration that contains the classpath setting]]>
  43086. </doc>
  43087. </method>
  43088. <method name="createSymlink"
  43089. abstract="false" native="false" synchronized="false"
  43090. static="true" final="false" visibility="public"
  43091. deprecated="not deprecated">
  43092. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43093. <doc>
  43094. <![CDATA[This method allows you to create symlinks in the current working directory
  43095. of the task to all the cache files/archives.
  43096. Intended to be used by user code.
  43097. @param conf the jobconf]]>
  43098. </doc>
  43099. </method>
  43100. <method name="getSymlink" return="boolean"
  43101. abstract="false" native="false" synchronized="false"
  43102. static="true" final="false" visibility="public"
  43103. deprecated="not deprecated">
  43104. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43105. <doc>
  43106. <![CDATA[This method checks to see if symlinks are to be create for the
  43107. localized cache files in the current working directory
  43108. Used by internal DistributedCache code.
  43109. @param conf the jobconf
  43110. @return true if symlinks are to be created- else return false]]>
  43111. </doc>
  43112. </method>
  43113. <method name="checkURIs" return="boolean"
  43114. abstract="false" native="false" synchronized="false"
  43115. static="true" final="false" visibility="public"
  43116. deprecated="not deprecated">
  43117. <param name="uriFiles" type="java.net.URI[]"/>
  43118. <param name="uriArchives" type="java.net.URI[]"/>
  43119. <doc>
  43120. <![CDATA[This method checks if there is a conflict in the fragment names
  43121. of the uris. Also makes sure that each uri has a fragment. It
  43122. is only to be called if you want to create symlinks for
  43123. the various archives and files. May be used by user code.
  43124. @param uriFiles The uri array of urifiles
  43125. @param uriArchives the uri array of uri archives]]>
  43126. </doc>
  43127. </method>
  43128. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  43129. transient="false" volatile="false"
  43130. static="true" final="true" visibility="public"
  43131. deprecated="not deprecated">
  43132. <doc>
  43133. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  43134. </doc>
  43135. </field>
  43136. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  43137. transient="false" volatile="false"
  43138. static="true" final="true" visibility="public"
  43139. deprecated="not deprecated">
  43140. <doc>
  43141. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  43142. </doc>
  43143. </field>
  43144. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  43145. transient="false" volatile="false"
  43146. static="true" final="true" visibility="public"
  43147. deprecated="not deprecated">
  43148. <doc>
  43149. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  43150. </doc>
  43151. </field>
  43152. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  43153. transient="false" volatile="false"
  43154. static="true" final="true" visibility="public"
  43155. deprecated="not deprecated">
  43156. <doc>
  43157. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  43158. </doc>
  43159. </field>
  43160. <field name="CACHE_ARCHIVES" type="java.lang.String"
  43161. transient="false" volatile="false"
  43162. static="true" final="true" visibility="public"
  43163. deprecated="not deprecated">
  43164. <doc>
  43165. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  43166. </doc>
  43167. </field>
  43168. <field name="CACHE_FILES" type="java.lang.String"
  43169. transient="false" volatile="false"
  43170. static="true" final="true" visibility="public"
  43171. deprecated="not deprecated">
  43172. <doc>
  43173. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  43174. </doc>
  43175. </field>
  43176. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  43177. transient="false" volatile="false"
  43178. static="true" final="true" visibility="public"
  43179. deprecated="not deprecated">
  43180. <doc>
  43181. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  43182. </doc>
  43183. </field>
  43184. <field name="CACHE_LOCALFILES" type="java.lang.String"
  43185. transient="false" volatile="false"
  43186. static="true" final="true" visibility="public"
  43187. deprecated="not deprecated">
  43188. <doc>
  43189. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  43190. </doc>
  43191. </field>
  43192. <field name="CACHE_SYMLINK" type="java.lang.String"
  43193. transient="false" volatile="false"
  43194. static="true" final="true" visibility="public"
  43195. deprecated="not deprecated">
  43196. <doc>
  43197. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  43198. </doc>
  43199. </field>
  43200. <doc>
  43201. <![CDATA[Distribute application-specific large, read-only files efficiently.
  43202. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  43203. framework to cache files (text, archives, jars etc.) needed by applications.
  43204. </p>
  43205. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  43206. via the {@link org.apache.hadoop.mapred.JobConf}.
  43207. The <code>DistributedCache</code> assumes that the
  43208. files specified via hdfs:// urls are already present on the
  43209. {@link FileSystem} at the path specified by the url.</p>
  43210. <p>The framework will copy the necessary files on to the slave node before
  43211. any tasks for the job are executed on that node. Its efficiency stems from
  43212. the fact that the files are only copied once per job and the ability to
  43213. cache archives which are un-archived on the slaves.</p>
  43214. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  43215. data/text files and/or more complex types such as archives, jars etc.
  43216. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  43217. Jars may be optionally added to the classpath of the tasks, a rudimentary
  43218. software distribution mechanism. Files have execution permissions.
  43219. Optionally users can also direct it to symlink the distributed cache file(s)
  43220. into the working directory of the task.</p>
  43221. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  43222. files. Clearly the cache files should not be modified by the application
  43223. or externally while the job is executing.</p>
  43224. <p>Here is an illustrative example on how to use the
  43225. <code>DistributedCache</code>:</p>
  43226. <p><blockquote><pre>
  43227. // Setting up the cache for the application
  43228. 1. Copy the requisite files to the <code>FileSystem</code>:
  43229. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  43230. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  43231. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  43232. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  43233. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  43234. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  43235. 2. Setup the application's <code>JobConf</code>:
  43236. JobConf job = new JobConf();
  43237. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  43238. job);
  43239. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  43240. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  43241. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  43242. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  43243. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  43244. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  43245. or {@link org.apache.hadoop.mapred.Reducer}:
  43246. public static class MapClass extends MapReduceBase
  43247. implements Mapper&lt;K, V, K, V&gt; {
  43248. private Path[] localArchives;
  43249. private Path[] localFiles;
  43250. public void configure(JobConf job) {
  43251. // Get the cached archives/files
  43252. localArchives = DistributedCache.getLocalCacheArchives(job);
  43253. localFiles = DistributedCache.getLocalCacheFiles(job);
  43254. }
  43255. public void map(K key, V value,
  43256. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  43257. throws IOException {
  43258. // Use data from the cached archives/files here
  43259. // ...
  43260. // ...
  43261. output.collect(k, v);
  43262. }
  43263. }
  43264. </pre></blockquote></p>
  43265. It is also very common to use the DistributedCache by using
  43266. {@link org.apache.hadoop.util.GenericOptionsParser}.
  43267. This class includes methods that should be used by users
  43268. (specifically those mentioned in the example above, as well
  43269. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  43270. as well as methods intended for use by the MapReduce framework
  43271. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  43272. details, see {@link TrackerDistributedCacheManager} and
  43273. {@link TaskDistributedCacheManager}.
  43274. @see TrackerDistributedCacheManager
  43275. @see TaskDistributedCacheManager
  43276. @see org.apache.hadoop.mapred.JobConf
  43277. @see org.apache.hadoop.mapred.JobClient]]>
  43278. </doc>
  43279. </class>
  43280. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  43281. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  43282. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  43283. abstract="false"
  43284. static="false" final="false" visibility="public"
  43285. deprecated="not deprecated">
  43286. <method name="setupCache"
  43287. abstract="false" native="false" synchronized="false"
  43288. static="false" final="false" visibility="public"
  43289. deprecated="not deprecated">
  43290. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  43291. <param name="publicCacheSubdir" type="java.lang.String"/>
  43292. <param name="privateCacheSubdir" type="java.lang.String"/>
  43293. <exception name="IOException" type="java.io.IOException"/>
  43294. <doc>
  43295. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  43296. the task configuration (which has been passed in via the constructor).
  43297. The private distributed cache is just looked at and the paths where the
  43298. files/archives should go to is decided here. The actual localization is
  43299. done by {@link JobLocalizer}.
  43300. It is the caller's responsibility to re-write the task configuration XML
  43301. file, if necessary.]]>
  43302. </doc>
  43303. </method>
  43304. <method name="getClassPaths" return="java.util.List"
  43305. abstract="false" native="false" synchronized="false"
  43306. static="false" final="false" visibility="public"
  43307. deprecated="not deprecated">
  43308. <exception name="IOException" type="java.io.IOException"/>
  43309. <doc>
  43310. <![CDATA[Retrieves class paths (as local references) to add.
  43311. Should be called after setup().]]>
  43312. </doc>
  43313. </method>
  43314. <method name="release"
  43315. abstract="false" native="false" synchronized="false"
  43316. static="false" final="false" visibility="public"
  43317. deprecated="not deprecated">
  43318. <exception name="IOException" type="java.io.IOException"/>
  43319. <doc>
  43320. <![CDATA[Releases the cached files/archives, so that space
  43321. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  43322. </doc>
  43323. </method>
  43324. <method name="setSizes"
  43325. abstract="false" native="false" synchronized="false"
  43326. static="false" final="false" visibility="public"
  43327. deprecated="not deprecated">
  43328. <param name="sizes" type="long[]"/>
  43329. <exception name="IOException" type="java.io.IOException"/>
  43330. </method>
  43331. <method name="makeClassLoader" return="java.lang.ClassLoader"
  43332. abstract="false" native="false" synchronized="false"
  43333. static="false" final="false" visibility="public"
  43334. deprecated="not deprecated">
  43335. <param name="parent" type="java.lang.ClassLoader"/>
  43336. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  43337. <doc>
  43338. <![CDATA[Creates a class loader that includes the designated
  43339. files and archives.]]>
  43340. </doc>
  43341. </method>
  43342. <doc>
  43343. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  43344. the cached files of a single job.
  43345. <b>This class is internal to Hadoop, and should not be treated as a public
  43346. interface.</b>]]>
  43347. </doc>
  43348. </class>
  43349. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  43350. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  43351. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  43352. abstract="false"
  43353. static="false" final="false" visibility="public"
  43354. deprecated="not deprecated">
  43355. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  43356. static="false" final="false" visibility="public"
  43357. deprecated="not deprecated">
  43358. <exception name="IOException" type="java.io.IOException"/>
  43359. </constructor>
  43360. <method name="downloadCacheObject" return="long"
  43361. abstract="false" native="false" synchronized="false"
  43362. static="true" final="false" visibility="public"
  43363. deprecated="not deprecated">
  43364. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43365. <param name="source" type="java.net.URI"/>
  43366. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  43367. <param name="desiredTimestamp" type="long"/>
  43368. <param name="isArchive" type="boolean"/>
  43369. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  43370. <exception name="IOException" type="java.io.IOException"/>
  43371. <doc>
  43372. <![CDATA[Download a given path to the local file system.
  43373. @param conf the job's configuration
  43374. @param source the source to copy from
  43375. @param destination where to copy the file. must be local fs
  43376. @param desiredTimestamp the required modification timestamp of the source
  43377. @param isArchive is this an archive that should be expanded
  43378. @param permission the desired permissions of the file.
  43379. @return for archives, the number of bytes in the unpacked directory
  43380. @throws IOException]]>
  43381. </doc>
  43382. </method>
  43383. <method name="createAllSymlink"
  43384. abstract="false" native="false" synchronized="false"
  43385. static="true" final="false" visibility="public"
  43386. deprecated="not deprecated">
  43387. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43388. <param name="jobCacheDir" type="java.io.File"/>
  43389. <param name="workDir" type="java.io.File"/>
  43390. <exception name="IOException" type="java.io.IOException"/>
  43391. <doc>
  43392. <![CDATA[This method create symlinks for all files in a given dir in another
  43393. directory.
  43394. Should not be used outside of DistributedCache code.
  43395. @param conf the configuration
  43396. @param jobCacheDir the target directory for creating symlinks
  43397. @param workDir the directory in which the symlinks are created
  43398. @throws IOException]]>
  43399. </doc>
  43400. </method>
  43401. <method name="purgeCache"
  43402. abstract="false" native="false" synchronized="false"
  43403. static="false" final="false" visibility="public"
  43404. deprecated="not deprecated">
  43405. <doc>
  43406. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  43407. should only be used when the server is reinitializing, because the users
  43408. are going to lose their files.]]>
  43409. </doc>
  43410. </method>
  43411. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  43412. abstract="false" native="false" synchronized="false"
  43413. static="false" final="false" visibility="public"
  43414. deprecated="not deprecated">
  43415. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  43416. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  43417. <exception name="IOException" type="java.io.IOException"/>
  43418. </method>
  43419. <method name="setArchiveSizes"
  43420. abstract="false" native="false" synchronized="false"
  43421. static="false" final="false" visibility="public"
  43422. deprecated="not deprecated">
  43423. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  43424. <param name="sizes" type="long[]"/>
  43425. <exception name="IOException" type="java.io.IOException"/>
  43426. <doc>
  43427. <![CDATA[Set the sizes for any archives, files, or directories in the private
  43428. distributed cache.]]>
  43429. </doc>
  43430. </method>
  43431. <method name="removeTaskDistributedCacheManager"
  43432. abstract="false" native="false" synchronized="false"
  43433. static="false" final="false" visibility="public"
  43434. deprecated="not deprecated">
  43435. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  43436. </method>
  43437. <method name="getTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  43438. abstract="false" native="false" synchronized="false"
  43439. static="false" final="false" visibility="protected"
  43440. deprecated="not deprecated">
  43441. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  43442. </method>
  43443. <method name="determineTimestamps"
  43444. abstract="false" native="false" synchronized="false"
  43445. static="true" final="false" visibility="public"
  43446. deprecated="not deprecated">
  43447. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  43448. <exception name="IOException" type="java.io.IOException"/>
  43449. <doc>
  43450. <![CDATA[Determines timestamps of files to be cached, and stores those
  43451. in the configuration. This is intended to be used internally by JobClient
  43452. after all cache files have been added.
  43453. This is an internal method!
  43454. @param job Configuration of a job.
  43455. @throws IOException]]>
  43456. </doc>
  43457. </method>
  43458. <method name="determineCacheVisibilities"
  43459. abstract="false" native="false" synchronized="false"
  43460. static="true" final="false" visibility="public"
  43461. deprecated="not deprecated">
  43462. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  43463. <exception name="IOException" type="java.io.IOException"/>
  43464. <doc>
  43465. <![CDATA[Determines the visibilities of the distributed cache files and
  43466. archives. The visibility of a cache path is "public" if the leaf component
  43467. has READ permissions for others, and the parent subdirs have
  43468. EXECUTE permissions for others
  43469. @param job
  43470. @throws IOException]]>
  43471. </doc>
  43472. </method>
  43473. <method name="getFileVisibilities" return="boolean[]"
  43474. abstract="false" native="false" synchronized="false"
  43475. static="true" final="false" visibility="public"
  43476. deprecated="not deprecated">
  43477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43478. <doc>
  43479. <![CDATA[Get the booleans on whether the files are public or not. Used by
  43480. internal DistributedCache and MapReduce code.
  43481. @param conf The configuration which stored the timestamps
  43482. @return array of booleans
  43483. @throws IOException]]>
  43484. </doc>
  43485. </method>
  43486. <method name="getArchiveVisibilities" return="boolean[]"
  43487. abstract="false" native="false" synchronized="false"
  43488. static="true" final="false" visibility="public"
  43489. deprecated="not deprecated">
  43490. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43491. <doc>
  43492. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  43493. internal DistributedCache and MapReduce code.
  43494. @param conf The configuration which stored the timestamps
  43495. @return array of booleans]]>
  43496. </doc>
  43497. </method>
  43498. <method name="getDelegationTokens"
  43499. abstract="false" native="false" synchronized="false"
  43500. static="true" final="false" visibility="public"
  43501. deprecated="not deprecated">
  43502. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  43503. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  43504. <exception name="IOException" type="java.io.IOException"/>
  43505. <doc>
  43506. <![CDATA[For each archive or cache file - get the corresponding delegation token
  43507. @param job
  43508. @param credentials
  43509. @throws IOException]]>
  43510. </doc>
  43511. </method>
  43512. <method name="validate"
  43513. abstract="false" native="false" synchronized="false"
  43514. static="true" final="false" visibility="public"
  43515. deprecated="not deprecated">
  43516. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43517. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  43518. <doc>
  43519. <![CDATA[This is part of the framework API. It's called within the job
  43520. submission code only, not by users. In the non-error case it has
  43521. no side effects and returns normally. If there's a URI in both
  43522. mapred.cache.files and mapred.cache.archives, it throws its
  43523. exception.
  43524. @param conf a {@link Configuration} to be cheked for duplication
  43525. in cached URIs
  43526. @throws InvalidJobConfException]]>
  43527. </doc>
  43528. </method>
  43529. <method name="startCleanupThread"
  43530. abstract="false" native="false" synchronized="false"
  43531. static="false" final="false" visibility="public"
  43532. deprecated="not deprecated">
  43533. <doc>
  43534. <![CDATA[Start the background thread]]>
  43535. </doc>
  43536. </method>
  43537. <method name="stopCleanupThread"
  43538. abstract="false" native="false" synchronized="false"
  43539. static="false" final="false" visibility="public"
  43540. deprecated="not deprecated">
  43541. <doc>
  43542. <![CDATA[Stop the background thread]]>
  43543. </doc>
  43544. </method>
  43545. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  43546. transient="false" volatile="false"
  43547. static="false" final="false" visibility="protected"
  43548. deprecated="not deprecated">
  43549. </field>
  43550. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  43551. transient="false" volatile="false"
  43552. static="false" final="false" visibility="protected"
  43553. deprecated="not deprecated">
  43554. </field>
  43555. <doc>
  43556. <![CDATA[Manages a single machine's instance of a cross-job
  43557. cache. This class would typically be instantiated
  43558. by a TaskTracker (or something that emulates it,
  43559. like LocalJobRunner).
  43560. <b>This class is internal to Hadoop, and should not be treated as a public
  43561. interface.</b>]]>
  43562. </doc>
  43563. </class>
  43564. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  43565. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  43566. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  43567. abstract="false"
  43568. static="false" final="false" visibility="protected"
  43569. deprecated="not deprecated">
  43570. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  43571. static="false" final="false" visibility="protected"
  43572. deprecated="not deprecated">
  43573. </constructor>
  43574. <method name="deleteCacheInfoUpdate"
  43575. abstract="false" native="false" synchronized="false"
  43576. static="false" final="false" visibility="public"
  43577. deprecated="not deprecated">
  43578. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  43579. <doc>
  43580. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  43581. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  43582. @param cacheStatus cache status of the cache is deleted]]>
  43583. </doc>
  43584. </method>
  43585. <method name="addCacheInfoUpdate"
  43586. abstract="false" native="false" synchronized="false"
  43587. static="false" final="false" visibility="public"
  43588. deprecated="not deprecated">
  43589. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  43590. <doc>
  43591. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  43592. Increase the size and sub directory count of the cache from baseDirSize
  43593. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  43594. @param cacheStatus cache status of the cache is added]]>
  43595. </doc>
  43596. </method>
  43597. <doc>
  43598. <![CDATA[This class holds properties of each base directories and is responsible
  43599. for clean up unused cache files in base directories.]]>
  43600. </doc>
  43601. </class>
  43602. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  43603. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  43604. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  43605. abstract="false"
  43606. static="false" final="false" visibility="protected"
  43607. deprecated="not deprecated">
  43608. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  43609. static="false" final="false" visibility="public"
  43610. deprecated="not deprecated">
  43611. </constructor>
  43612. <method name="stopRunning"
  43613. abstract="false" native="false" synchronized="false"
  43614. static="false" final="false" visibility="public"
  43615. deprecated="not deprecated">
  43616. </method>
  43617. <method name="run"
  43618. abstract="false" native="false" synchronized="false"
  43619. static="false" final="false" visibility="public"
  43620. deprecated="not deprecated">
  43621. </method>
  43622. <method name="exitTaskTracker"
  43623. abstract="false" native="false" synchronized="false"
  43624. static="false" final="false" visibility="protected"
  43625. deprecated="not deprecated">
  43626. <param name="t" type="java.lang.Throwable"/>
  43627. <doc>
  43628. <![CDATA[Exit the task tracker because of a fatal error.]]>
  43629. </doc>
  43630. </method>
  43631. <doc>
  43632. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  43633. </doc>
  43634. </class>
  43635. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  43636. </package>
  43637. <package name="org.apache.hadoop.mapred">
  43638. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  43639. <interface name="AdminOperationsProtocol" abstract="true"
  43640. static="false" final="false" visibility="public"
  43641. deprecated="not deprecated">
  43642. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  43643. <method name="refreshQueues"
  43644. abstract="false" native="false" synchronized="false"
  43645. static="false" final="false" visibility="public"
  43646. deprecated="not deprecated">
  43647. <exception name="IOException" type="java.io.IOException"/>
  43648. <doc>
  43649. <![CDATA[Refresh the queue acls in use currently.
  43650. Refresh the queues used by the jobtracker and scheduler.
  43651. Access control lists and queue states are refreshed.]]>
  43652. </doc>
  43653. </method>
  43654. <method name="refreshNodes"
  43655. abstract="false" native="false" synchronized="false"
  43656. static="false" final="false" visibility="public"
  43657. deprecated="not deprecated">
  43658. <exception name="IOException" type="java.io.IOException"/>
  43659. <doc>
  43660. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  43661. </doc>
  43662. </method>
  43663. <field name="versionID" type="long"
  43664. transient="false" volatile="false"
  43665. static="true" final="true" visibility="public"
  43666. deprecated="not deprecated">
  43667. <doc>
  43668. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  43669. Version 2: Added node refresh facility
  43670. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  43671. </doc>
  43672. </field>
  43673. <doc>
  43674. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  43675. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  43676. </doc>
  43677. </interface>
  43678. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  43679. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  43680. <class name="ClusterStatus" extends="java.lang.Object"
  43681. abstract="false"
  43682. static="false" final="false" visibility="public"
  43683. deprecated="not deprecated">
  43684. <implements name="org.apache.hadoop.io.Writable"/>
  43685. <method name="getTaskTrackers" return="int"
  43686. abstract="false" native="false" synchronized="false"
  43687. static="false" final="false" visibility="public"
  43688. deprecated="not deprecated">
  43689. <doc>
  43690. <![CDATA[Get the number of active task trackers in the cluster. Includes
  43691. graylisted but not blacklisted trackers.
  43692. @return the number of active task trackers in the cluster.]]>
  43693. </doc>
  43694. </method>
  43695. <method name="getActiveTrackerNames" return="java.util.Collection"
  43696. abstract="false" native="false" synchronized="false"
  43697. static="false" final="false" visibility="public"
  43698. deprecated="not deprecated">
  43699. <doc>
  43700. <![CDATA[Get the names of active task trackers in the cluster. Includes
  43701. graylisted but not blacklisted trackers.
  43702. @return the active task trackers in the cluster.]]>
  43703. </doc>
  43704. </method>
  43705. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  43706. abstract="false" native="false" synchronized="false"
  43707. static="false" final="false" visibility="public"
  43708. deprecated="not deprecated">
  43709. <doc>
  43710. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  43711. @return the blacklisted task trackers in the cluster.]]>
  43712. </doc>
  43713. </method>
  43714. <method name="getBlacklistedTrackers" return="int"
  43715. abstract="false" native="false" synchronized="false"
  43716. static="false" final="false" visibility="public"
  43717. deprecated="not deprecated">
  43718. <doc>
  43719. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  43720. @return the number of blacklisted task trackers in the cluster.]]>
  43721. </doc>
  43722. </method>
  43723. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  43724. abstract="false" native="false" synchronized="false"
  43725. static="false" final="false" visibility="public"
  43726. deprecated="not deprecated">
  43727. <doc>
  43728. <![CDATA[Get the names of graylisted task trackers in the cluster.
  43729. @return the graylisted task trackers in the cluster.]]>
  43730. </doc>
  43731. </method>
  43732. <method name="getGraylistedTrackers" return="int"
  43733. abstract="false" native="false" synchronized="false"
  43734. static="false" final="false" visibility="public"
  43735. deprecated="not deprecated">
  43736. <doc>
  43737. <![CDATA[Get the number of graylisted task trackers in the cluster.
  43738. @return the number of graylisted task trackers in the cluster.]]>
  43739. </doc>
  43740. </method>
  43741. <method name="getNumExcludedNodes" return="int"
  43742. abstract="false" native="false" synchronized="false"
  43743. static="false" final="false" visibility="public"
  43744. deprecated="not deprecated">
  43745. <doc>
  43746. <![CDATA[Get the number of excluded hosts in the cluster.
  43747. @return the number of excluded hosts in the cluster.]]>
  43748. </doc>
  43749. </method>
  43750. <method name="getTTExpiryInterval" return="long"
  43751. abstract="false" native="false" synchronized="false"
  43752. static="false" final="false" visibility="public"
  43753. deprecated="not deprecated">
  43754. <doc>
  43755. <![CDATA[Get the tasktracker expiry interval for the cluster
  43756. @return the expiry interval in msec]]>
  43757. </doc>
  43758. </method>
  43759. <method name="getMapTasks" return="int"
  43760. abstract="false" native="false" synchronized="false"
  43761. static="false" final="false" visibility="public"
  43762. deprecated="not deprecated">
  43763. <doc>
  43764. <![CDATA[Get the number of currently running map tasks in the cluster.
  43765. @return the number of currently running map tasks in the cluster.]]>
  43766. </doc>
  43767. </method>
  43768. <method name="getReduceTasks" return="int"
  43769. abstract="false" native="false" synchronized="false"
  43770. static="false" final="false" visibility="public"
  43771. deprecated="not deprecated">
  43772. <doc>
  43773. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  43774. @return the number of currently running reduce tasks in the cluster.]]>
  43775. </doc>
  43776. </method>
  43777. <method name="getMaxMapTasks" return="int"
  43778. abstract="false" native="false" synchronized="false"
  43779. static="false" final="false" visibility="public"
  43780. deprecated="not deprecated">
  43781. <doc>
  43782. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  43783. @return the maximum capacity for running map tasks in the cluster.]]>
  43784. </doc>
  43785. </method>
  43786. <method name="getMaxReduceTasks" return="int"
  43787. abstract="false" native="false" synchronized="false"
  43788. static="false" final="false" visibility="public"
  43789. deprecated="not deprecated">
  43790. <doc>
  43791. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  43792. @return the maximum capacity for running reduce tasks in the cluster.]]>
  43793. </doc>
  43794. </method>
  43795. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  43796. abstract="false" native="false" synchronized="false"
  43797. static="false" final="false" visibility="public"
  43798. deprecated="not deprecated">
  43799. <doc>
  43800. <![CDATA[Get the current state of the <code>JobTracker</code>,
  43801. as {@link JobTracker.State}
  43802. @return the current state of the <code>JobTracker</code>.]]>
  43803. </doc>
  43804. </method>
  43805. <method name="getUsedMemory" return="long"
  43806. abstract="false" native="false" synchronized="false"
  43807. static="false" final="false" visibility="public"
  43808. deprecated="not deprecated">
  43809. <doc>
  43810. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  43811. @return the size of heap memory used by the <code>JobTracker</code>]]>
  43812. </doc>
  43813. </method>
  43814. <method name="getMaxMemory" return="long"
  43815. abstract="false" native="false" synchronized="false"
  43816. static="false" final="false" visibility="public"
  43817. deprecated="not deprecated">
  43818. <doc>
  43819. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  43820. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  43821. </doc>
  43822. </method>
  43823. <method name="write"
  43824. abstract="false" native="false" synchronized="false"
  43825. static="false" final="false" visibility="public"
  43826. deprecated="not deprecated">
  43827. <param name="out" type="java.io.DataOutput"/>
  43828. <exception name="IOException" type="java.io.IOException"/>
  43829. </method>
  43830. <method name="readFields"
  43831. abstract="false" native="false" synchronized="false"
  43832. static="false" final="false" visibility="public"
  43833. deprecated="not deprecated">
  43834. <param name="in" type="java.io.DataInput"/>
  43835. <exception name="IOException" type="java.io.IOException"/>
  43836. </method>
  43837. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  43838. transient="false" volatile="false"
  43839. static="true" final="true" visibility="public"
  43840. deprecated="not deprecated">
  43841. </field>
  43842. <doc>
  43843. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  43844. <p><code>ClusterStatus</code> provides clients with information such as:
  43845. <ol>
  43846. <li>
  43847. Size of the cluster.
  43848. </li>
  43849. <li>
  43850. Name of the trackers.
  43851. </li>
  43852. <li>
  43853. Task capacity of the cluster.
  43854. </li>
  43855. <li>
  43856. The number of currently running map & reduce tasks.
  43857. </li>
  43858. <li>
  43859. State of the <code>JobTracker</code>.
  43860. </li>
  43861. </ol></p>
  43862. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  43863. {@link JobClient#getClusterStatus()}.</p>
  43864. @see JobClient]]>
  43865. </doc>
  43866. </class>
  43867. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  43868. <!-- start class org.apache.hadoop.mapred.Counters -->
  43869. <class name="Counters" extends="java.lang.Object"
  43870. abstract="false"
  43871. static="false" final="false" visibility="public"
  43872. deprecated="not deprecated">
  43873. <implements name="org.apache.hadoop.io.Writable"/>
  43874. <implements name="java.lang.Iterable"/>
  43875. <constructor name="Counters"
  43876. static="false" final="false" visibility="public"
  43877. deprecated="not deprecated">
  43878. </constructor>
  43879. <method name="getGroupNames" return="java.util.Collection"
  43880. abstract="false" native="false" synchronized="true"
  43881. static="false" final="false" visibility="public"
  43882. deprecated="not deprecated">
  43883. <doc>
  43884. <![CDATA[Returns the names of all counter classes.
  43885. @return Set of counter names.]]>
  43886. </doc>
  43887. </method>
  43888. <method name="iterator" return="java.util.Iterator"
  43889. abstract="false" native="false" synchronized="true"
  43890. static="false" final="false" visibility="public"
  43891. deprecated="not deprecated">
  43892. </method>
  43893. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  43894. abstract="false" native="false" synchronized="true"
  43895. static="false" final="false" visibility="public"
  43896. deprecated="not deprecated">
  43897. <param name="groupName" type="java.lang.String"/>
  43898. <doc>
  43899. <![CDATA[Returns the named counter group, or an empty group if there is none
  43900. with the specified name.]]>
  43901. </doc>
  43902. </method>
  43903. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43904. abstract="false" native="false" synchronized="true"
  43905. static="false" final="false" visibility="public"
  43906. deprecated="not deprecated">
  43907. <param name="key" type="java.lang.Enum"/>
  43908. <doc>
  43909. <![CDATA[Find the counter for the given enum. The same enum will always return the
  43910. same counter.
  43911. @param key the counter key
  43912. @return the matching counter object]]>
  43913. </doc>
  43914. </method>
  43915. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43916. abstract="false" native="false" synchronized="true"
  43917. static="false" final="false" visibility="public"
  43918. deprecated="not deprecated">
  43919. <param name="group" type="java.lang.String"/>
  43920. <param name="name" type="java.lang.String"/>
  43921. <doc>
  43922. <![CDATA[Find a counter given the group and the name.
  43923. @param group the name of the group
  43924. @param name the internal name of the counter
  43925. @return the counter for that name]]>
  43926. </doc>
  43927. </method>
  43928. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43929. abstract="false" native="false" synchronized="true"
  43930. static="false" final="false" visibility="public"
  43931. deprecated="deprecated, no comment">
  43932. <param name="group" type="java.lang.String"/>
  43933. <param name="id" type="int"/>
  43934. <param name="name" type="java.lang.String"/>
  43935. <doc>
  43936. <![CDATA[Find a counter by using strings
  43937. @param group the name of the group
  43938. @param id the id of the counter within the group (0 to N-1)
  43939. @param name the internal name of the counter
  43940. @return the counter for that name
  43941. @deprecated]]>
  43942. </doc>
  43943. </method>
  43944. <method name="incrCounter"
  43945. abstract="false" native="false" synchronized="true"
  43946. static="false" final="false" visibility="public"
  43947. deprecated="not deprecated">
  43948. <param name="key" type="java.lang.Enum"/>
  43949. <param name="amount" type="long"/>
  43950. <doc>
  43951. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43952. it didn't already exist.
  43953. @param key identifies a counter
  43954. @param amount amount by which counter is to be incremented]]>
  43955. </doc>
  43956. </method>
  43957. <method name="incrCounter"
  43958. abstract="false" native="false" synchronized="true"
  43959. static="false" final="false" visibility="public"
  43960. deprecated="not deprecated">
  43961. <param name="group" type="java.lang.String"/>
  43962. <param name="counter" type="java.lang.String"/>
  43963. <param name="amount" type="long"/>
  43964. <doc>
  43965. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43966. it didn't already exist.
  43967. @param group the name of the group
  43968. @param counter the internal name of the counter
  43969. @param amount amount by which counter is to be incremented]]>
  43970. </doc>
  43971. </method>
  43972. <method name="getCounter" return="long"
  43973. abstract="false" native="false" synchronized="true"
  43974. static="false" final="false" visibility="public"
  43975. deprecated="not deprecated">
  43976. <param name="key" type="java.lang.Enum"/>
  43977. <doc>
  43978. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  43979. does not exist.]]>
  43980. </doc>
  43981. </method>
  43982. <method name="incrAllCounters"
  43983. abstract="false" native="false" synchronized="true"
  43984. static="false" final="false" visibility="public"
  43985. deprecated="not deprecated">
  43986. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  43987. <doc>
  43988. <![CDATA[Increments multiple counters by their amounts in another Counters
  43989. instance.
  43990. @param other the other Counters instance]]>
  43991. </doc>
  43992. </method>
  43993. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  43994. abstract="false" native="false" synchronized="false"
  43995. static="true" final="false" visibility="public"
  43996. deprecated="not deprecated">
  43997. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  43998. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  43999. <doc>
  44000. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  44001. </doc>
  44002. </method>
  44003. <method name="size" return="int"
  44004. abstract="false" native="false" synchronized="true"
  44005. static="false" final="false" visibility="public"
  44006. deprecated="not deprecated">
  44007. <doc>
  44008. <![CDATA[Returns the total number of counters, by summing the number of counters
  44009. in each group.]]>
  44010. </doc>
  44011. </method>
  44012. <method name="write"
  44013. abstract="false" native="false" synchronized="true"
  44014. static="false" final="false" visibility="public"
  44015. deprecated="not deprecated">
  44016. <param name="out" type="java.io.DataOutput"/>
  44017. <exception name="IOException" type="java.io.IOException"/>
  44018. <doc>
  44019. <![CDATA[Write the set of groups.
  44020. The external format is:
  44021. #groups (groupName group)*
  44022. i.e. the number of groups followed by 0 or more groups, where each
  44023. group is of the form:
  44024. groupDisplayName #counters (false | true counter)*
  44025. where each counter is of the form:
  44026. name (false | true displayName) value]]>
  44027. </doc>
  44028. </method>
  44029. <method name="readFields"
  44030. abstract="false" native="false" synchronized="true"
  44031. static="false" final="false" visibility="public"
  44032. deprecated="not deprecated">
  44033. <param name="in" type="java.io.DataInput"/>
  44034. <exception name="IOException" type="java.io.IOException"/>
  44035. <doc>
  44036. <![CDATA[Read a set of groups.]]>
  44037. </doc>
  44038. </method>
  44039. <method name="log"
  44040. abstract="false" native="false" synchronized="false"
  44041. static="false" final="false" visibility="public"
  44042. deprecated="not deprecated">
  44043. <param name="log" type="org.apache.commons.logging.Log"/>
  44044. <doc>
  44045. <![CDATA[Logs the current counter values.
  44046. @param log The log to use.]]>
  44047. </doc>
  44048. </method>
  44049. <method name="toString" return="java.lang.String"
  44050. abstract="false" native="false" synchronized="true"
  44051. static="false" final="false" visibility="public"
  44052. deprecated="not deprecated">
  44053. <doc>
  44054. <![CDATA[Return textual representation of the counter values.]]>
  44055. </doc>
  44056. </method>
  44057. <method name="makeCompactString" return="java.lang.String"
  44058. abstract="false" native="false" synchronized="true"
  44059. static="false" final="false" visibility="public"
  44060. deprecated="not deprecated">
  44061. <doc>
  44062. <![CDATA[Convert a counters object into a single line that is easy to parse.
  44063. @return the string with "name=value" for each counter and separated by ","]]>
  44064. </doc>
  44065. </method>
  44066. <method name="makeEscapedCompactString" return="java.lang.String"
  44067. abstract="false" native="false" synchronized="true"
  44068. static="false" final="false" visibility="public"
  44069. deprecated="not deprecated">
  44070. <doc>
  44071. <![CDATA[Represent the counter in a textual format that can be converted back to
  44072. its object form
  44073. @return the string in the following format
  44074. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  44075. </doc>
  44076. </method>
  44077. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  44078. abstract="false" native="false" synchronized="false"
  44079. static="true" final="false" visibility="public"
  44080. deprecated="not deprecated">
  44081. <param name="compactString" type="java.lang.String"/>
  44082. <exception name="ParseException" type="java.text.ParseException"/>
  44083. <doc>
  44084. <![CDATA[Convert a stringified counter representation into a counter object. Note
  44085. that the counter can be recovered if its stringified using
  44086. {@link #makeEscapedCompactString()}.
  44087. @return a Counter]]>
  44088. </doc>
  44089. </method>
  44090. <method name="hashCode" return="int"
  44091. abstract="false" native="false" synchronized="true"
  44092. static="false" final="false" visibility="public"
  44093. deprecated="not deprecated">
  44094. </method>
  44095. <method name="equals" return="boolean"
  44096. abstract="false" native="false" synchronized="true"
  44097. static="false" final="false" visibility="public"
  44098. deprecated="not deprecated">
  44099. <param name="obj" type="java.lang.Object"/>
  44100. </method>
  44101. <field name="MAX_COUNTER_LIMIT" type="int"
  44102. transient="false" volatile="false"
  44103. static="true" final="false" visibility="public"
  44104. deprecated="not deprecated">
  44105. <doc>
  44106. <![CDATA[limit on counters]]>
  44107. </doc>
  44108. </field>
  44109. <doc>
  44110. <![CDATA[A set of named counters.
  44111. <p><code>Counters</code> represent global counters, defined either by the
  44112. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  44113. any {@link Enum} type.</p>
  44114. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  44115. counters from a particular <code>Enum</code> class.]]>
  44116. </doc>
  44117. </class>
  44118. <!-- end class org.apache.hadoop.mapred.Counters -->
  44119. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  44120. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  44121. abstract="false"
  44122. static="true" final="false" visibility="public"
  44123. deprecated="not deprecated">
  44124. <method name="setDisplayName"
  44125. abstract="false" native="false" synchronized="false"
  44126. static="false" final="false" visibility="public"
  44127. deprecated="not deprecated">
  44128. <param name="newName" type="java.lang.String"/>
  44129. </method>
  44130. <method name="makeEscapedCompactString" return="java.lang.String"
  44131. abstract="false" native="false" synchronized="true"
  44132. static="false" final="false" visibility="public"
  44133. deprecated="not deprecated">
  44134. <doc>
  44135. <![CDATA[Returns the compact stringified version of the counter in the format
  44136. [(actual-name)(display-name)(value)]]]>
  44137. </doc>
  44138. </method>
  44139. <method name="getCounter" return="long"
  44140. abstract="false" native="false" synchronized="true"
  44141. static="false" final="false" visibility="public"
  44142. deprecated="not deprecated">
  44143. <doc>
  44144. <![CDATA[What is the current value of this counter?
  44145. @return the current value]]>
  44146. </doc>
  44147. </method>
  44148. <doc>
  44149. <![CDATA[A counter record, comprising its name and value.]]>
  44150. </doc>
  44151. </class>
  44152. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  44153. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  44154. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  44155. abstract="false"
  44156. static="true" final="false" visibility="public"
  44157. deprecated="not deprecated">
  44158. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  44159. static="false" final="false" visibility="public"
  44160. deprecated="not deprecated">
  44161. </constructor>
  44162. <doc>
  44163. <![CDATA[Counter exception thrown when the number of counters exceed
  44164. the limit]]>
  44165. </doc>
  44166. </class>
  44167. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  44168. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  44169. <class name="Counters.Group" extends="java.lang.Object"
  44170. abstract="false"
  44171. static="false" final="false" visibility="public"
  44172. deprecated="not deprecated">
  44173. <implements name="org.apache.hadoop.io.Writable"/>
  44174. <implements name="java.lang.Iterable"/>
  44175. <method name="getName" return="java.lang.String"
  44176. abstract="false" native="false" synchronized="false"
  44177. static="false" final="false" visibility="public"
  44178. deprecated="not deprecated">
  44179. <doc>
  44180. <![CDATA[Returns raw name of the group. This is the name of the enum class
  44181. for this group of counters.]]>
  44182. </doc>
  44183. </method>
  44184. <method name="getDisplayName" return="java.lang.String"
  44185. abstract="false" native="false" synchronized="false"
  44186. static="false" final="false" visibility="public"
  44187. deprecated="not deprecated">
  44188. <doc>
  44189. <![CDATA[Returns localized name of the group. This is the same as getName() by
  44190. default, but different if an appropriate ResourceBundle is found.]]>
  44191. </doc>
  44192. </method>
  44193. <method name="setDisplayName"
  44194. abstract="false" native="false" synchronized="false"
  44195. static="false" final="false" visibility="public"
  44196. deprecated="not deprecated">
  44197. <param name="displayName" type="java.lang.String"/>
  44198. <doc>
  44199. <![CDATA[Set the display name]]>
  44200. </doc>
  44201. </method>
  44202. <method name="makeEscapedCompactString" return="java.lang.String"
  44203. abstract="false" native="false" synchronized="false"
  44204. static="false" final="false" visibility="public"
  44205. deprecated="not deprecated">
  44206. <doc>
  44207. <![CDATA[Returns the compact stringified version of the group in the format
  44208. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  44209. counters within.]]>
  44210. </doc>
  44211. </method>
  44212. <method name="hashCode" return="int"
  44213. abstract="false" native="false" synchronized="false"
  44214. static="false" final="false" visibility="public"
  44215. deprecated="not deprecated">
  44216. </method>
  44217. <method name="equals" return="boolean"
  44218. abstract="false" native="false" synchronized="true"
  44219. static="false" final="false" visibility="public"
  44220. deprecated="not deprecated">
  44221. <param name="obj" type="java.lang.Object"/>
  44222. <doc>
  44223. <![CDATA[Checks for (content) equality of Groups]]>
  44224. </doc>
  44225. </method>
  44226. <method name="getCounter" return="long"
  44227. abstract="false" native="false" synchronized="true"
  44228. static="false" final="false" visibility="public"
  44229. deprecated="not deprecated">
  44230. <param name="counterName" type="java.lang.String"/>
  44231. <doc>
  44232. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  44233. not exist.]]>
  44234. </doc>
  44235. </method>
  44236. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  44237. abstract="false" native="false" synchronized="true"
  44238. static="false" final="false" visibility="public"
  44239. deprecated="use {@link #getCounter(String)} instead">
  44240. <param name="id" type="int"/>
  44241. <param name="name" type="java.lang.String"/>
  44242. <doc>
  44243. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  44244. @param id the numeric id of the counter within the group
  44245. @param name the internal counter name
  44246. @return the counter
  44247. @deprecated use {@link #getCounter(String)} instead]]>
  44248. </doc>
  44249. </method>
  44250. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  44251. abstract="false" native="false" synchronized="true"
  44252. static="false" final="false" visibility="public"
  44253. deprecated="not deprecated">
  44254. <param name="name" type="java.lang.String"/>
  44255. <doc>
  44256. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  44257. @param name the internal counter name
  44258. @return the counter]]>
  44259. </doc>
  44260. </method>
  44261. <method name="size" return="int"
  44262. abstract="false" native="false" synchronized="true"
  44263. static="false" final="false" visibility="public"
  44264. deprecated="not deprecated">
  44265. <doc>
  44266. <![CDATA[Returns the number of counters in this group.]]>
  44267. </doc>
  44268. </method>
  44269. <method name="write"
  44270. abstract="false" native="false" synchronized="true"
  44271. static="false" final="false" visibility="public"
  44272. deprecated="not deprecated">
  44273. <param name="out" type="java.io.DataOutput"/>
  44274. <exception name="IOException" type="java.io.IOException"/>
  44275. </method>
  44276. <method name="readFields"
  44277. abstract="false" native="false" synchronized="true"
  44278. static="false" final="false" visibility="public"
  44279. deprecated="not deprecated">
  44280. <param name="in" type="java.io.DataInput"/>
  44281. <exception name="IOException" type="java.io.IOException"/>
  44282. </method>
  44283. <method name="iterator" return="java.util.Iterator"
  44284. abstract="false" native="false" synchronized="true"
  44285. static="false" final="false" visibility="public"
  44286. deprecated="not deprecated">
  44287. </method>
  44288. <doc>
  44289. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  44290. counter {@link Enum} class.
  44291. <p><code>Group</code>handles localization of the class name and the
  44292. counter names.</p>]]>
  44293. </doc>
  44294. </class>
  44295. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  44296. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  44297. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  44298. abstract="false"
  44299. static="false" final="false" visibility="public"
  44300. deprecated="not deprecated">
  44301. <constructor name="DefaultJobHistoryParser"
  44302. static="false" final="false" visibility="public"
  44303. deprecated="not deprecated">
  44304. </constructor>
  44305. <method name="parseJobTasks"
  44306. abstract="false" native="false" synchronized="false"
  44307. static="true" final="false" visibility="public"
  44308. deprecated="not deprecated">
  44309. <param name="jobHistoryFile" type="java.lang.String"/>
  44310. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  44311. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44312. <exception name="IOException" type="java.io.IOException"/>
  44313. <doc>
  44314. <![CDATA[Populates a JobInfo object from the job's history log file.
  44315. @param jobHistoryFile history file for this job.
  44316. @param job a precreated JobInfo object, should be non-null.
  44317. @param fs FileSystem where historyFile is present.
  44318. @throws IOException]]>
  44319. </doc>
  44320. </method>
  44321. <doc>
  44322. <![CDATA[Default parser for job history files. It creates object model from
  44323. job history file.]]>
  44324. </doc>
  44325. </class>
  44326. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  44327. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  44328. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  44329. abstract="false"
  44330. static="false" final="false" visibility="public"
  44331. deprecated="not deprecated">
  44332. <constructor name="DefaultTaskController"
  44333. static="false" final="false" visibility="public"
  44334. deprecated="not deprecated">
  44335. </constructor>
  44336. <method name="setConf"
  44337. abstract="false" native="false" synchronized="false"
  44338. static="false" final="false" visibility="public"
  44339. deprecated="not deprecated">
  44340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44341. </method>
  44342. <method name="createLogDir"
  44343. abstract="false" native="false" synchronized="false"
  44344. static="false" final="false" visibility="public"
  44345. deprecated="not deprecated">
  44346. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  44347. <param name="isCleanup" type="boolean"/>
  44348. <exception name="IOException" type="java.io.IOException"/>
  44349. </method>
  44350. <method name="launchTask" return="int"
  44351. abstract="false" native="false" synchronized="false"
  44352. static="false" final="false" visibility="public"
  44353. deprecated="not deprecated">
  44354. <param name="user" type="java.lang.String"/>
  44355. <param name="jobId" type="java.lang.String"/>
  44356. <param name="attemptId" type="java.lang.String"/>
  44357. <param name="setup" type="java.util.List"/>
  44358. <param name="jvmArguments" type="java.util.List"/>
  44359. <param name="currentWorkDirectory" type="java.io.File"/>
  44360. <param name="stdout" type="java.lang.String"/>
  44361. <param name="stderr" type="java.lang.String"/>
  44362. <exception name="IOException" type="java.io.IOException"/>
  44363. <doc>
  44364. <![CDATA[Create all of the directories for the task and launches the child jvm.
  44365. @param user the user name
  44366. @param attemptId the attempt id
  44367. @throws IOException]]>
  44368. </doc>
  44369. </method>
  44370. <method name="initializeJob"
  44371. abstract="false" native="false" synchronized="false"
  44372. static="false" final="false" visibility="public"
  44373. deprecated="not deprecated">
  44374. <param name="user" type="java.lang.String"/>
  44375. <param name="jobid" type="java.lang.String"/>
  44376. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  44377. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  44378. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  44379. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  44380. <exception name="IOException" type="java.io.IOException"/>
  44381. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44382. <doc>
  44383. <![CDATA[This routine initializes the local file system for running a job.
  44384. Details:
  44385. <ul>
  44386. <li>Copies the credentials file from the TaskTracker's private space to
  44387. the job's private space </li>
  44388. <li>Creates the job work directory and set
  44389. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  44390. <li>Downloads the job.jar, unjars it, and updates the configuration to
  44391. reflect the localized path of the job.jar</li>
  44392. <li>Creates a base JobConf in the job's private space</li>
  44393. <li>Sets up the distributed cache</li>
  44394. <li>Sets up the user logs directory for the job</li>
  44395. </ul>
  44396. This method must be invoked in the access control context of the job owner
  44397. user. This is because the distributed cache is also setup here and the
  44398. access to the hdfs files requires authentication tokens in case where
  44399. security is enabled.
  44400. @param user the user in question (the job owner)
  44401. @param jobid the ID of the job in question
  44402. @param credentials the path to the credentials file that the TaskTracker
  44403. downloaded
  44404. @param jobConf the path to the job configuration file that the TaskTracker
  44405. downloaded
  44406. @param taskTracker the connection to the task tracker
  44407. @throws IOException
  44408. @throws InterruptedException]]>
  44409. </doc>
  44410. </method>
  44411. <method name="signalTask"
  44412. abstract="false" native="false" synchronized="false"
  44413. static="false" final="false" visibility="public"
  44414. deprecated="not deprecated">
  44415. <param name="user" type="java.lang.String"/>
  44416. <param name="taskPid" type="int"/>
  44417. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  44418. </method>
  44419. <method name="deleteAsUser"
  44420. abstract="false" native="false" synchronized="false"
  44421. static="false" final="false" visibility="public"
  44422. deprecated="not deprecated">
  44423. <param name="user" type="java.lang.String"/>
  44424. <param name="subDir" type="java.lang.String"/>
  44425. <exception name="IOException" type="java.io.IOException"/>
  44426. <doc>
  44427. <![CDATA[Delete the user's files under all of the task tracker root directories.
  44428. @param user the user name
  44429. @param subDir the path relative to the user's subdirectory under
  44430. the task tracker root directories.
  44431. @throws IOException]]>
  44432. </doc>
  44433. </method>
  44434. <method name="deleteLogAsUser"
  44435. abstract="false" native="false" synchronized="false"
  44436. static="false" final="false" visibility="public"
  44437. deprecated="not deprecated">
  44438. <param name="user" type="java.lang.String"/>
  44439. <param name="subDir" type="java.lang.String"/>
  44440. <exception name="IOException" type="java.io.IOException"/>
  44441. <doc>
  44442. <![CDATA[Delete the user's files under the userlogs directory.
  44443. @param user the user to work as
  44444. @param subDir the path under the userlogs directory.
  44445. @throws IOException]]>
  44446. </doc>
  44447. </method>
  44448. <method name="truncateLogsAsUser"
  44449. abstract="false" native="false" synchronized="false"
  44450. static="false" final="false" visibility="public"
  44451. deprecated="not deprecated">
  44452. <param name="user" type="java.lang.String"/>
  44453. <param name="allAttempts" type="java.util.List"/>
  44454. <exception name="IOException" type="java.io.IOException"/>
  44455. </method>
  44456. <method name="setup"
  44457. abstract="false" native="false" synchronized="false"
  44458. static="false" final="false" visibility="public"
  44459. deprecated="not deprecated">
  44460. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  44461. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  44462. </method>
  44463. <doc>
  44464. <![CDATA[The default implementation for controlling tasks.
  44465. This class provides an implementation for launching and killing
  44466. tasks that need to be run as the tasktracker itself. Hence,
  44467. many of the initializing or cleanup methods are not required here.
  44468. <br/>
  44469. NOTE: This class is internal only class and not intended for users!!]]>
  44470. </doc>
  44471. </class>
  44472. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  44473. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  44474. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  44475. abstract="false"
  44476. static="false" final="false" visibility="public"
  44477. deprecated="not deprecated">
  44478. <constructor name="FileAlreadyExistsException"
  44479. static="false" final="false" visibility="public"
  44480. deprecated="not deprecated">
  44481. </constructor>
  44482. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  44483. static="false" final="false" visibility="public"
  44484. deprecated="not deprecated">
  44485. </constructor>
  44486. <doc>
  44487. <![CDATA[Used when target file already exists for any operation and
  44488. is not configured to be overwritten.]]>
  44489. </doc>
  44490. </class>
  44491. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  44492. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  44493. <class name="FileInputFormat" extends="java.lang.Object"
  44494. abstract="true"
  44495. static="false" final="false" visibility="public"
  44496. deprecated="not deprecated">
  44497. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  44498. <constructor name="FileInputFormat"
  44499. static="false" final="false" visibility="public"
  44500. deprecated="not deprecated">
  44501. </constructor>
  44502. <method name="setMinSplitSize"
  44503. abstract="false" native="false" synchronized="false"
  44504. static="false" final="false" visibility="protected"
  44505. deprecated="not deprecated">
  44506. <param name="minSplitSize" type="long"/>
  44507. </method>
  44508. <method name="isSplitable" return="boolean"
  44509. abstract="false" native="false" synchronized="false"
  44510. static="false" final="false" visibility="protected"
  44511. deprecated="not deprecated">
  44512. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44513. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  44514. <doc>
  44515. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  44516. stream compressed, it will not be.
  44517. <code>FileInputFormat</code> implementations can override this and return
  44518. <code>false</code> to ensure that individual input files are never split-up
  44519. so that {@link Mapper}s process entire files.
  44520. @param fs the file system that the file is on
  44521. @param filename the file name to check
  44522. @return is this file splitable?]]>
  44523. </doc>
  44524. </method>
  44525. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  44526. abstract="true" native="false" synchronized="false"
  44527. static="false" final="false" visibility="public"
  44528. deprecated="not deprecated">
  44529. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  44530. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44531. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44532. <exception name="IOException" type="java.io.IOException"/>
  44533. </method>
  44534. <method name="setInputPathFilter"
  44535. abstract="false" native="false" synchronized="false"
  44536. static="true" final="false" visibility="public"
  44537. deprecated="not deprecated">
  44538. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44539. <param name="filter" type="java.lang.Class"/>
  44540. <doc>
  44541. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  44542. @param filter the PathFilter class use for filtering the input paths.]]>
  44543. </doc>
  44544. </method>
  44545. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  44546. abstract="false" native="false" synchronized="false"
  44547. static="true" final="false" visibility="public"
  44548. deprecated="not deprecated">
  44549. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44550. <doc>
  44551. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  44552. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  44553. </doc>
  44554. </method>
  44555. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  44556. abstract="false" native="false" synchronized="false"
  44557. static="false" final="false" visibility="protected"
  44558. deprecated="not deprecated">
  44559. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44560. <exception name="IOException" type="java.io.IOException"/>
  44561. <doc>
  44562. <![CDATA[List input directories.
  44563. Subclasses may override to, e.g., select only files matching a regular
  44564. expression.
  44565. @param job the job to list input paths for
  44566. @return array of FileStatus objects
  44567. @throws IOException if zero items.]]>
  44568. </doc>
  44569. </method>
  44570. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  44571. abstract="false" native="false" synchronized="false"
  44572. static="false" final="false" visibility="public"
  44573. deprecated="not deprecated">
  44574. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44575. <param name="numSplits" type="int"/>
  44576. <exception name="IOException" type="java.io.IOException"/>
  44577. <doc>
  44578. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  44579. they're too big.]]>
  44580. </doc>
  44581. </method>
  44582. <method name="computeSplitSize" return="long"
  44583. abstract="false" native="false" synchronized="false"
  44584. static="false" final="false" visibility="protected"
  44585. deprecated="not deprecated">
  44586. <param name="goalSize" type="long"/>
  44587. <param name="minSize" type="long"/>
  44588. <param name="blockSize" type="long"/>
  44589. </method>
  44590. <method name="getBlockIndex" return="int"
  44591. abstract="false" native="false" synchronized="false"
  44592. static="false" final="false" visibility="protected"
  44593. deprecated="not deprecated">
  44594. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  44595. <param name="offset" type="long"/>
  44596. </method>
  44597. <method name="setInputPaths"
  44598. abstract="false" native="false" synchronized="false"
  44599. static="true" final="false" visibility="public"
  44600. deprecated="not deprecated">
  44601. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44602. <param name="commaSeparatedPaths" type="java.lang.String"/>
  44603. <doc>
  44604. <![CDATA[Sets the given comma separated paths as the list of inputs
  44605. for the map-reduce job.
  44606. @param conf Configuration of the job
  44607. @param commaSeparatedPaths Comma separated paths to be set as
  44608. the list of inputs for the map-reduce job.]]>
  44609. </doc>
  44610. </method>
  44611. <method name="addInputPaths"
  44612. abstract="false" native="false" synchronized="false"
  44613. static="true" final="false" visibility="public"
  44614. deprecated="not deprecated">
  44615. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44616. <param name="commaSeparatedPaths" type="java.lang.String"/>
  44617. <doc>
  44618. <![CDATA[Add the given comma separated paths to the list of inputs for
  44619. the map-reduce job.
  44620. @param conf The configuration of the job
  44621. @param commaSeparatedPaths Comma separated paths to be added to
  44622. the list of inputs for the map-reduce job.]]>
  44623. </doc>
  44624. </method>
  44625. <method name="setInputPaths"
  44626. abstract="false" native="false" synchronized="false"
  44627. static="true" final="false" visibility="public"
  44628. deprecated="not deprecated">
  44629. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44630. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  44631. <doc>
  44632. <![CDATA[Set the array of {@link Path}s as the list of inputs
  44633. for the map-reduce job.
  44634. @param conf Configuration of the job.
  44635. @param inputPaths the {@link Path}s of the input directories/files
  44636. for the map-reduce job.]]>
  44637. </doc>
  44638. </method>
  44639. <method name="addInputPath"
  44640. abstract="false" native="false" synchronized="false"
  44641. static="true" final="false" visibility="public"
  44642. deprecated="not deprecated">
  44643. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44644. <param name="path" type="org.apache.hadoop.fs.Path"/>
  44645. <doc>
  44646. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  44647. @param conf The configuration of the job
  44648. @param path {@link Path} to be added to the list of inputs for
  44649. the map-reduce job.]]>
  44650. </doc>
  44651. </method>
  44652. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  44653. abstract="false" native="false" synchronized="false"
  44654. static="true" final="false" visibility="public"
  44655. deprecated="not deprecated">
  44656. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44657. <doc>
  44658. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  44659. @param conf The configuration of the job
  44660. @return the list of input {@link Path}s for the map-reduce job.]]>
  44661. </doc>
  44662. </method>
  44663. <method name="getSplitHosts" return="java.lang.String[]"
  44664. abstract="false" native="false" synchronized="false"
  44665. static="false" final="false" visibility="protected"
  44666. deprecated="not deprecated">
  44667. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  44668. <param name="offset" type="long"/>
  44669. <param name="splitSize" type="long"/>
  44670. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  44671. <exception name="IOException" type="java.io.IOException"/>
  44672. <doc>
  44673. <![CDATA[This function identifies and returns the hosts that contribute
  44674. most for a given split. For calculating the contribution, rack
  44675. locality is treated on par with host locality, so hosts from racks
  44676. that contribute the most are preferred over hosts on racks that
  44677. contribute less
  44678. @param blkLocations The list of block locations
  44679. @param offset
  44680. @param splitSize
  44681. @return array of hosts that contribute most to this split
  44682. @throws IOException]]>
  44683. </doc>
  44684. </method>
  44685. <field name="LOG" type="org.apache.commons.logging.Log"
  44686. transient="false" volatile="false"
  44687. static="true" final="true" visibility="public"
  44688. deprecated="not deprecated">
  44689. </field>
  44690. <doc>
  44691. <![CDATA[A base class for file-based {@link InputFormat}.
  44692. <p><code>FileInputFormat</code> is the base class for all file-based
  44693. <code>InputFormat</code>s. This provides a generic implementation of
  44694. {@link #getSplits(JobConf, int)}.
  44695. Subclasses of <code>FileInputFormat</code> can also override the
  44696. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  44697. not split-up and are processed as a whole by {@link Mapper}s.]]>
  44698. </doc>
  44699. </class>
  44700. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  44701. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  44702. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  44703. abstract="false"
  44704. static="true" final="true" visibility="public"
  44705. deprecated="not deprecated">
  44706. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  44707. abstract="false" native="false" synchronized="false"
  44708. static="true" final="false" visibility="public"
  44709. deprecated="not deprecated">
  44710. </method>
  44711. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  44712. abstract="false" native="false" synchronized="false"
  44713. static="true" final="false" visibility="public"
  44714. deprecated="not deprecated">
  44715. <param name="name" type="java.lang.String"/>
  44716. </method>
  44717. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  44718. transient="false" volatile="false"
  44719. static="true" final="true" visibility="public"
  44720. deprecated="not deprecated">
  44721. </field>
  44722. </class>
  44723. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  44724. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  44725. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  44726. abstract="false"
  44727. static="false" final="false" visibility="public"
  44728. deprecated="not deprecated">
  44729. <constructor name="FileOutputCommitter"
  44730. static="false" final="false" visibility="public"
  44731. deprecated="not deprecated">
  44732. </constructor>
  44733. <method name="setupJob"
  44734. abstract="false" native="false" synchronized="false"
  44735. static="false" final="false" visibility="public"
  44736. deprecated="not deprecated">
  44737. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44738. <exception name="IOException" type="java.io.IOException"/>
  44739. </method>
  44740. <method name="commitJob"
  44741. abstract="false" native="false" synchronized="false"
  44742. static="false" final="false" visibility="public"
  44743. deprecated="not deprecated">
  44744. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44745. <exception name="IOException" type="java.io.IOException"/>
  44746. </method>
  44747. <method name="cleanupJob"
  44748. abstract="false" native="false" synchronized="false"
  44749. static="false" final="false" visibility="public"
  44750. deprecated="not deprecated">
  44751. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44752. <exception name="IOException" type="java.io.IOException"/>
  44753. </method>
  44754. <method name="abortJob"
  44755. abstract="false" native="false" synchronized="false"
  44756. static="false" final="false" visibility="public"
  44757. deprecated="not deprecated">
  44758. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44759. <param name="runState" type="int"/>
  44760. <exception name="IOException" type="java.io.IOException"/>
  44761. <doc>
  44762. <![CDATA[Delete the temporary directory, including all of the work directories.
  44763. @param context the job's context
  44764. @param runState final run state of the job, should be
  44765. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  44766. </doc>
  44767. </method>
  44768. <method name="setupTask"
  44769. abstract="false" native="false" synchronized="false"
  44770. static="false" final="false" visibility="public"
  44771. deprecated="not deprecated">
  44772. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44773. <exception name="IOException" type="java.io.IOException"/>
  44774. </method>
  44775. <method name="commitTask"
  44776. abstract="false" native="false" synchronized="false"
  44777. static="false" final="false" visibility="public"
  44778. deprecated="not deprecated">
  44779. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44780. <exception name="IOException" type="java.io.IOException"/>
  44781. </method>
  44782. <method name="abortTask"
  44783. abstract="false" native="false" synchronized="false"
  44784. static="false" final="false" visibility="public"
  44785. deprecated="not deprecated">
  44786. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44787. <exception name="IOException" type="java.io.IOException"/>
  44788. </method>
  44789. <method name="needsTaskCommit" return="boolean"
  44790. abstract="false" native="false" synchronized="false"
  44791. static="false" final="false" visibility="public"
  44792. deprecated="not deprecated">
  44793. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44794. <exception name="IOException" type="java.io.IOException"/>
  44795. </method>
  44796. <field name="LOG" type="org.apache.commons.logging.Log"
  44797. transient="false" volatile="false"
  44798. static="true" final="true" visibility="public"
  44799. deprecated="not deprecated">
  44800. </field>
  44801. <field name="TEMP_DIR_NAME" type="java.lang.String"
  44802. transient="false" volatile="false"
  44803. static="true" final="true" visibility="public"
  44804. deprecated="not deprecated">
  44805. <doc>
  44806. <![CDATA[Temporary directory name]]>
  44807. </doc>
  44808. </field>
  44809. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  44810. transient="false" volatile="false"
  44811. static="true" final="true" visibility="public"
  44812. deprecated="not deprecated">
  44813. </field>
  44814. <doc>
  44815. <![CDATA[An {@link OutputCommitter} that commits files specified
  44816. in job output directory i.e. ${mapred.output.dir}.]]>
  44817. </doc>
  44818. </class>
  44819. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  44820. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  44821. <class name="FileOutputFormat" extends="java.lang.Object"
  44822. abstract="true"
  44823. static="false" final="false" visibility="public"
  44824. deprecated="not deprecated">
  44825. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  44826. <constructor name="FileOutputFormat"
  44827. static="false" final="false" visibility="public"
  44828. deprecated="not deprecated">
  44829. </constructor>
  44830. <method name="setCompressOutput"
  44831. abstract="false" native="false" synchronized="false"
  44832. static="true" final="false" visibility="public"
  44833. deprecated="not deprecated">
  44834. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44835. <param name="compress" type="boolean"/>
  44836. <doc>
  44837. <![CDATA[Set whether the output of the job is compressed.
  44838. @param conf the {@link JobConf} to modify
  44839. @param compress should the output of the job be compressed?]]>
  44840. </doc>
  44841. </method>
  44842. <method name="getCompressOutput" return="boolean"
  44843. abstract="false" native="false" synchronized="false"
  44844. static="true" final="false" visibility="public"
  44845. deprecated="not deprecated">
  44846. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44847. <doc>
  44848. <![CDATA[Is the job output compressed?
  44849. @param conf the {@link JobConf} to look in
  44850. @return <code>true</code> if the job output should be compressed,
  44851. <code>false</code> otherwise]]>
  44852. </doc>
  44853. </method>
  44854. <method name="setOutputCompressorClass"
  44855. abstract="false" native="false" synchronized="false"
  44856. static="true" final="false" visibility="public"
  44857. deprecated="not deprecated">
  44858. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44859. <param name="codecClass" type="java.lang.Class"/>
  44860. <doc>
  44861. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  44862. @param conf the {@link JobConf} to modify
  44863. @param codecClass the {@link CompressionCodec} to be used to
  44864. compress the job outputs]]>
  44865. </doc>
  44866. </method>
  44867. <method name="getOutputCompressorClass" return="java.lang.Class"
  44868. abstract="false" native="false" synchronized="false"
  44869. static="true" final="false" visibility="public"
  44870. deprecated="not deprecated">
  44871. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44872. <param name="defaultValue" type="java.lang.Class"/>
  44873. <doc>
  44874. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  44875. @param conf the {@link JobConf} to look in
  44876. @param defaultValue the {@link CompressionCodec} to return if not set
  44877. @return the {@link CompressionCodec} to be used to compress the
  44878. job outputs
  44879. @throws IllegalArgumentException if the class was specified, but not found]]>
  44880. </doc>
  44881. </method>
  44882. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44883. abstract="true" native="false" synchronized="false"
  44884. static="false" final="false" visibility="public"
  44885. deprecated="not deprecated">
  44886. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44887. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44888. <param name="name" type="java.lang.String"/>
  44889. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  44890. <exception name="IOException" type="java.io.IOException"/>
  44891. </method>
  44892. <method name="checkOutputSpecs"
  44893. abstract="false" native="false" synchronized="false"
  44894. static="false" final="false" visibility="public"
  44895. deprecated="not deprecated">
  44896. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44897. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44898. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  44899. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44900. <exception name="IOException" type="java.io.IOException"/>
  44901. </method>
  44902. <method name="setOutputPath"
  44903. abstract="false" native="false" synchronized="false"
  44904. static="true" final="false" visibility="public"
  44905. deprecated="not deprecated">
  44906. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44907. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  44908. <doc>
  44909. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  44910. @param conf The configuration of the job.
  44911. @param outputDir the {@link Path} of the output directory for
  44912. the map-reduce job.]]>
  44913. </doc>
  44914. </method>
  44915. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  44916. abstract="false" native="false" synchronized="false"
  44917. static="true" final="false" visibility="public"
  44918. deprecated="not deprecated">
  44919. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44920. <doc>
  44921. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  44922. @return the {@link Path} to the output directory for the map-reduce job.
  44923. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  44924. </doc>
  44925. </method>
  44926. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  44927. abstract="false" native="false" synchronized="false"
  44928. static="true" final="false" visibility="public"
  44929. deprecated="not deprecated">
  44930. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44931. <doc>
  44932. <![CDATA[Get the {@link Path} to the task's temporary output directory
  44933. for the map-reduce job
  44934. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  44935. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  44936. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  44937. a <code>FileOutputCommitter</code>, the task's temporary output
  44938. directory is same as {@link #getOutputPath(JobConf)} i.e.
  44939. <tt>${mapred.output.dir}$</tt></p>
  44940. <p>Some applications need to create/write-to side-files, which differ from
  44941. the actual job-outputs.
  44942. <p>In such cases there could be issues with 2 instances of the same TIP
  44943. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  44944. same file (path) on HDFS. Hence the application-writer will have to pick
  44945. unique names per task-attempt (e.g. using the attemptid, say
  44946. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  44947. <p>To get around this the Map-Reduce framework helps the application-writer
  44948. out by maintaining a special
  44949. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  44950. sub-directory for each task-attempt on HDFS where the output of the
  44951. task-attempt goes. On successful completion of the task-attempt the files
  44952. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  44953. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  44954. framework discards the sub-directory of unsuccessful task-attempts. This
  44955. is completely transparent to the application.</p>
  44956. <p>The application-writer can take advantage of this by creating any
  44957. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  44958. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  44959. framework will move them out similarly - thus she doesn't have to pick
  44960. unique paths per task-attempt.</p>
  44961. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  44962. execution of a particular task-attempt is actually
  44963. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  44964. set by the map-reduce framework. So, just create any side-files in the
  44965. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  44966. task to take advantage of this feature.</p>
  44967. <p>The entire discussion holds true for maps of jobs with
  44968. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  44969. goes directly to HDFS.</p>
  44970. @return the {@link Path} to the task's temporary output directory
  44971. for the map-reduce job.]]>
  44972. </doc>
  44973. </method>
  44974. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  44975. abstract="false" native="false" synchronized="false"
  44976. static="true" final="false" visibility="public"
  44977. deprecated="not deprecated">
  44978. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44979. <param name="name" type="java.lang.String"/>
  44980. <exception name="IOException" type="java.io.IOException"/>
  44981. <doc>
  44982. <![CDATA[Helper function to create the task's temporary output directory and
  44983. return the path to the task's output file.
  44984. @param conf job-configuration
  44985. @param name temporary task-output filename
  44986. @return path to the task's temporary output file
  44987. @throws IOException]]>
  44988. </doc>
  44989. </method>
  44990. <method name="getUniqueName" return="java.lang.String"
  44991. abstract="false" native="false" synchronized="false"
  44992. static="true" final="false" visibility="public"
  44993. deprecated="not deprecated">
  44994. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44995. <param name="name" type="java.lang.String"/>
  44996. <doc>
  44997. <![CDATA[Helper function to generate a name that is unique for the task.
  44998. <p>The generated name can be used to create custom files from within the
  44999. different tasks for the job, the names for different tasks will not collide
  45000. with each other.</p>
  45001. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  45002. reduces and the task partition number. For example, give a name 'test'
  45003. running on the first map o the job the generated name will be
  45004. 'test-m-00000'.</p>
  45005. @param conf the configuration for the job.
  45006. @param name the name to make unique.
  45007. @return a unique name accross all tasks of the job.]]>
  45008. </doc>
  45009. </method>
  45010. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  45011. abstract="false" native="false" synchronized="false"
  45012. static="true" final="false" visibility="public"
  45013. deprecated="not deprecated">
  45014. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45015. <param name="name" type="java.lang.String"/>
  45016. <doc>
  45017. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  45018. the task within the job output directory.
  45019. <p>The path can be used to create custom files from within the map and
  45020. reduce tasks. The path name will be unique for each task. The path parent
  45021. will be the job output directory.</p>ls
  45022. <p>This method uses the {@link #getUniqueName} method to make the file name
  45023. unique for the task.</p>
  45024. @param conf the configuration for the job.
  45025. @param name the name for the file.
  45026. @return a unique path accross all tasks of the job.]]>
  45027. </doc>
  45028. </method>
  45029. <doc>
  45030. <![CDATA[A base class for {@link OutputFormat}.]]>
  45031. </doc>
  45032. </class>
  45033. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  45034. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  45035. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  45036. abstract="false"
  45037. static="true" final="true" visibility="public"
  45038. deprecated="not deprecated">
  45039. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  45040. abstract="false" native="false" synchronized="false"
  45041. static="true" final="false" visibility="public"
  45042. deprecated="not deprecated">
  45043. </method>
  45044. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  45045. abstract="false" native="false" synchronized="false"
  45046. static="true" final="false" visibility="public"
  45047. deprecated="not deprecated">
  45048. <param name="name" type="java.lang.String"/>
  45049. </method>
  45050. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  45051. transient="false" volatile="false"
  45052. static="true" final="true" visibility="public"
  45053. deprecated="not deprecated">
  45054. </field>
  45055. </class>
  45056. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  45057. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  45058. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  45059. abstract="false"
  45060. static="false" final="false" visibility="public"
  45061. deprecated="not deprecated">
  45062. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  45063. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  45064. static="false" final="false" visibility="public"
  45065. deprecated="deprecated, no comment">
  45066. <doc>
  45067. <![CDATA[Constructs a split.
  45068. @deprecated
  45069. @param file the file name
  45070. @param start the position of the first byte in the file to process
  45071. @param length the number of bytes in the file to process]]>
  45072. </doc>
  45073. </constructor>
  45074. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  45075. static="false" final="false" visibility="public"
  45076. deprecated="not deprecated">
  45077. <doc>
  45078. <![CDATA[Constructs a split with host information
  45079. @param file the file name
  45080. @param start the position of the first byte in the file to process
  45081. @param length the number of bytes in the file to process
  45082. @param hosts the list of hosts containing the block, possibly null]]>
  45083. </doc>
  45084. </constructor>
  45085. <method name="getPath" return="org.apache.hadoop.fs.Path"
  45086. abstract="false" native="false" synchronized="false"
  45087. static="false" final="false" visibility="public"
  45088. deprecated="not deprecated">
  45089. <doc>
  45090. <![CDATA[The file containing this split's data.]]>
  45091. </doc>
  45092. </method>
  45093. <method name="getStart" return="long"
  45094. abstract="false" native="false" synchronized="false"
  45095. static="false" final="false" visibility="public"
  45096. deprecated="not deprecated">
  45097. <doc>
  45098. <![CDATA[The position of the first byte in the file to process.]]>
  45099. </doc>
  45100. </method>
  45101. <method name="getLength" return="long"
  45102. abstract="false" native="false" synchronized="false"
  45103. static="false" final="false" visibility="public"
  45104. deprecated="not deprecated">
  45105. <doc>
  45106. <![CDATA[The number of bytes in the file to process.]]>
  45107. </doc>
  45108. </method>
  45109. <method name="toString" return="java.lang.String"
  45110. abstract="false" native="false" synchronized="false"
  45111. static="false" final="false" visibility="public"
  45112. deprecated="not deprecated">
  45113. </method>
  45114. <method name="write"
  45115. abstract="false" native="false" synchronized="false"
  45116. static="false" final="false" visibility="public"
  45117. deprecated="not deprecated">
  45118. <param name="out" type="java.io.DataOutput"/>
  45119. <exception name="IOException" type="java.io.IOException"/>
  45120. </method>
  45121. <method name="readFields"
  45122. abstract="false" native="false" synchronized="false"
  45123. static="false" final="false" visibility="public"
  45124. deprecated="not deprecated">
  45125. <param name="in" type="java.io.DataInput"/>
  45126. <exception name="IOException" type="java.io.IOException"/>
  45127. </method>
  45128. <method name="getLocations" return="java.lang.String[]"
  45129. abstract="false" native="false" synchronized="false"
  45130. static="false" final="false" visibility="public"
  45131. deprecated="not deprecated">
  45132. <exception name="IOException" type="java.io.IOException"/>
  45133. </method>
  45134. <doc>
  45135. <![CDATA[A section of an input file. Returned by {@link
  45136. InputFormat#getSplits(JobConf, int)} and passed to
  45137. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  45138. </doc>
  45139. </class>
  45140. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  45141. <!-- start class org.apache.hadoop.mapred.ID -->
  45142. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  45143. abstract="true"
  45144. static="false" final="false" visibility="public"
  45145. deprecated="not deprecated">
  45146. <constructor name="ID" type="int"
  45147. static="false" final="false" visibility="public"
  45148. deprecated="not deprecated">
  45149. <doc>
  45150. <![CDATA[constructs an ID object from the given int]]>
  45151. </doc>
  45152. </constructor>
  45153. <constructor name="ID"
  45154. static="false" final="false" visibility="protected"
  45155. deprecated="not deprecated">
  45156. </constructor>
  45157. <doc>
  45158. <![CDATA[A general identifier, which internally stores the id
  45159. as an integer. This is the super class of {@link JobID},
  45160. {@link TaskID} and {@link TaskAttemptID}.
  45161. @see JobID
  45162. @see TaskID
  45163. @see TaskAttemptID]]>
  45164. </doc>
  45165. </class>
  45166. <!-- end class org.apache.hadoop.mapred.ID -->
  45167. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  45168. <interface name="InputFormat" abstract="true"
  45169. static="false" final="false" visibility="public"
  45170. deprecated="not deprecated">
  45171. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  45172. abstract="false" native="false" synchronized="false"
  45173. static="false" final="false" visibility="public"
  45174. deprecated="not deprecated">
  45175. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45176. <param name="numSplits" type="int"/>
  45177. <exception name="IOException" type="java.io.IOException"/>
  45178. <doc>
  45179. <![CDATA[Logically split the set of input files for the job.
  45180. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  45181. for processing.</p>
  45182. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  45183. input files are not physically split into chunks. For e.g. a split could
  45184. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  45185. @param job job configuration.
  45186. @param numSplits the desired number of splits, a hint.
  45187. @return an array of {@link InputSplit}s for the job.]]>
  45188. </doc>
  45189. </method>
  45190. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  45191. abstract="false" native="false" synchronized="false"
  45192. static="false" final="false" visibility="public"
  45193. deprecated="not deprecated">
  45194. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  45195. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45196. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  45197. <exception name="IOException" type="java.io.IOException"/>
  45198. <doc>
  45199. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  45200. <p>It is the responsibility of the <code>RecordReader</code> to respect
  45201. record boundaries while processing the logical split to present a
  45202. record-oriented view to the individual task.</p>
  45203. @param split the {@link InputSplit}
  45204. @param job the job that this split belongs to
  45205. @return a {@link RecordReader}]]>
  45206. </doc>
  45207. </method>
  45208. <doc>
  45209. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  45210. Map-Reduce job.
  45211. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  45212. job to:<p>
  45213. <ol>
  45214. <li>
  45215. Validate the input-specification of the job.
  45216. <li>
  45217. Split-up the input file(s) into logical {@link InputSplit}s, each of
  45218. which is then assigned to an individual {@link Mapper}.
  45219. </li>
  45220. <li>
  45221. Provide the {@link RecordReader} implementation to be used to glean
  45222. input records from the logical <code>InputSplit</code> for processing by
  45223. the {@link Mapper}.
  45224. </li>
  45225. </ol>
  45226. <p>The default behavior of file-based {@link InputFormat}s, typically
  45227. sub-classes of {@link FileInputFormat}, is to split the
  45228. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  45229. bytes, of the input files. However, the {@link FileSystem} blocksize of
  45230. the input files is treated as an upper bound for input splits. A lower bound
  45231. on the split size can be set via
  45232. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  45233. mapred.min.split.size</a>.</p>
  45234. <p>Clearly, logical splits based on input-size is insufficient for many
  45235. applications since record boundaries are to respected. In such cases, the
  45236. application has to also implement a {@link RecordReader} on whom lies the
  45237. responsibilty to respect record-boundaries and present a record-oriented
  45238. view of the logical <code>InputSplit</code> to the individual task.
  45239. @see InputSplit
  45240. @see RecordReader
  45241. @see JobClient
  45242. @see FileInputFormat]]>
  45243. </doc>
  45244. </interface>
  45245. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  45246. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  45247. <interface name="InputSplit" abstract="true"
  45248. static="false" final="false" visibility="public"
  45249. deprecated="not deprecated">
  45250. <implements name="org.apache.hadoop.io.Writable"/>
  45251. <method name="getLength" return="long"
  45252. abstract="false" native="false" synchronized="false"
  45253. static="false" final="false" visibility="public"
  45254. deprecated="not deprecated">
  45255. <exception name="IOException" type="java.io.IOException"/>
  45256. <doc>
  45257. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  45258. @return the number of bytes in the input split.
  45259. @throws IOException]]>
  45260. </doc>
  45261. </method>
  45262. <method name="getLocations" return="java.lang.String[]"
  45263. abstract="false" native="false" synchronized="false"
  45264. static="false" final="false" visibility="public"
  45265. deprecated="not deprecated">
  45266. <exception name="IOException" type="java.io.IOException"/>
  45267. <doc>
  45268. <![CDATA[Get the list of hostnames where the input split is located.
  45269. @return list of hostnames where data of the <code>InputSplit</code> is
  45270. located as an array of <code>String</code>s.
  45271. @throws IOException]]>
  45272. </doc>
  45273. </method>
  45274. <doc>
  45275. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  45276. individual {@link Mapper}.
  45277. <p>Typically, it presents a byte-oriented view on the input and is the
  45278. responsibility of {@link RecordReader} of the job to process this and present
  45279. a record-oriented view.
  45280. @see InputFormat
  45281. @see RecordReader]]>
  45282. </doc>
  45283. </interface>
  45284. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  45285. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  45286. <class name="InvalidFileTypeException" extends="java.io.IOException"
  45287. abstract="false"
  45288. static="false" final="false" visibility="public"
  45289. deprecated="not deprecated">
  45290. <constructor name="InvalidFileTypeException"
  45291. static="false" final="false" visibility="public"
  45292. deprecated="not deprecated">
  45293. </constructor>
  45294. <constructor name="InvalidFileTypeException" type="java.lang.String"
  45295. static="false" final="false" visibility="public"
  45296. deprecated="not deprecated">
  45297. </constructor>
  45298. <doc>
  45299. <![CDATA[Used when file type differs from the desired file type. like
  45300. getting a file when a directory is expected. Or a wrong file type.]]>
  45301. </doc>
  45302. </class>
  45303. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  45304. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  45305. <class name="InvalidInputException" extends="java.io.IOException"
  45306. abstract="false"
  45307. static="false" final="false" visibility="public"
  45308. deprecated="not deprecated">
  45309. <constructor name="InvalidInputException" type="java.util.List"
  45310. static="false" final="false" visibility="public"
  45311. deprecated="not deprecated">
  45312. <doc>
  45313. <![CDATA[Create the exception with the given list.
  45314. @param probs the list of problems to report. this list is not copied.]]>
  45315. </doc>
  45316. </constructor>
  45317. <method name="getProblems" return="java.util.List"
  45318. abstract="false" native="false" synchronized="false"
  45319. static="false" final="false" visibility="public"
  45320. deprecated="not deprecated">
  45321. <doc>
  45322. <![CDATA[Get the complete list of the problems reported.
  45323. @return the list of problems, which must not be modified]]>
  45324. </doc>
  45325. </method>
  45326. <method name="getMessage" return="java.lang.String"
  45327. abstract="false" native="false" synchronized="false"
  45328. static="false" final="false" visibility="public"
  45329. deprecated="not deprecated">
  45330. <doc>
  45331. <![CDATA[Get a summary message of the problems found.
  45332. @return the concatenated messages from all of the problems.]]>
  45333. </doc>
  45334. </method>
  45335. <doc>
  45336. <![CDATA[This class wraps a list of problems with the input, so that the user
  45337. can get a list of problems together instead of finding and fixing them one
  45338. by one.]]>
  45339. </doc>
  45340. </class>
  45341. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  45342. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  45343. <class name="InvalidJobConfException" extends="java.io.IOException"
  45344. abstract="false"
  45345. static="false" final="false" visibility="public"
  45346. deprecated="not deprecated">
  45347. <constructor name="InvalidJobConfException"
  45348. static="false" final="false" visibility="public"
  45349. deprecated="not deprecated">
  45350. </constructor>
  45351. <constructor name="InvalidJobConfException" type="java.lang.String"
  45352. static="false" final="false" visibility="public"
  45353. deprecated="not deprecated">
  45354. </constructor>
  45355. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  45356. static="false" final="false" visibility="public"
  45357. deprecated="not deprecated">
  45358. </constructor>
  45359. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  45360. static="false" final="false" visibility="public"
  45361. deprecated="not deprecated">
  45362. </constructor>
  45363. <doc>
  45364. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  45365. or value of some attributes is invalid.]]>
  45366. </doc>
  45367. </class>
  45368. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  45369. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  45370. <class name="IsolationRunner" extends="java.lang.Object"
  45371. abstract="false"
  45372. static="false" final="false" visibility="public"
  45373. deprecated="not deprecated">
  45374. <constructor name="IsolationRunner"
  45375. static="false" final="false" visibility="public"
  45376. deprecated="not deprecated">
  45377. </constructor>
  45378. <method name="main"
  45379. abstract="false" native="false" synchronized="false"
  45380. static="true" final="false" visibility="public"
  45381. deprecated="not deprecated">
  45382. <param name="args" type="java.lang.String[]"/>
  45383. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  45384. <exception name="IOException" type="java.io.IOException"/>
  45385. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45386. <doc>
  45387. <![CDATA[Run a single task.
  45388. @param args the first argument is the task directory]]>
  45389. </doc>
  45390. </method>
  45391. <doc>
  45392. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  45393. task, given left-over task files for a (typically failed) past job.
  45394. Currently, it is limited to re-running map tasks.
  45395. Users may coerce MapReduce to keep task files around by setting
  45396. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  45397. </doc>
  45398. </class>
  45399. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  45400. <!-- start class org.apache.hadoop.mapred.JobClient -->
  45401. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  45402. abstract="false"
  45403. static="false" final="false" visibility="public"
  45404. deprecated="not deprecated">
  45405. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  45406. <implements name="org.apache.hadoop.util.Tool"/>
  45407. <constructor name="JobClient"
  45408. static="false" final="false" visibility="public"
  45409. deprecated="not deprecated">
  45410. <doc>
  45411. <![CDATA[Create a job client.]]>
  45412. </doc>
  45413. </constructor>
  45414. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  45415. static="false" final="false" visibility="public"
  45416. deprecated="not deprecated">
  45417. <exception name="IOException" type="java.io.IOException"/>
  45418. <doc>
  45419. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  45420. default {@link JobTracker}.
  45421. @param conf the job configuration.
  45422. @throws IOException]]>
  45423. </doc>
  45424. </constructor>
  45425. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  45426. static="false" final="false" visibility="public"
  45427. deprecated="not deprecated">
  45428. <exception name="IOException" type="java.io.IOException"/>
  45429. <doc>
  45430. <![CDATA[Build a job client, connect to the indicated job tracker.
  45431. @param jobTrackAddr the job tracker to connect to.
  45432. @param conf configuration.]]>
  45433. </doc>
  45434. </constructor>
  45435. <method name="init"
  45436. abstract="false" native="false" synchronized="false"
  45437. static="false" final="false" visibility="public"
  45438. deprecated="not deprecated">
  45439. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45440. <exception name="IOException" type="java.io.IOException"/>
  45441. <doc>
  45442. <![CDATA[Connect to the default {@link JobTracker}.
  45443. @param conf the job configuration.
  45444. @throws IOException]]>
  45445. </doc>
  45446. </method>
  45447. <method name="close"
  45448. abstract="false" native="false" synchronized="true"
  45449. static="false" final="false" visibility="public"
  45450. deprecated="not deprecated">
  45451. <exception name="IOException" type="java.io.IOException"/>
  45452. <doc>
  45453. <![CDATA[Close the <code>JobClient</code>.]]>
  45454. </doc>
  45455. </method>
  45456. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  45457. abstract="false" native="false" synchronized="true"
  45458. static="false" final="false" visibility="public"
  45459. deprecated="not deprecated">
  45460. <exception name="IOException" type="java.io.IOException"/>
  45461. <doc>
  45462. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  45463. for submission to the MapReduce system.
  45464. @return the filesystem handle.
  45465. @throws IOException]]>
  45466. </doc>
  45467. </method>
  45468. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  45469. abstract="false" native="false" synchronized="false"
  45470. static="false" final="false" visibility="public"
  45471. deprecated="not deprecated">
  45472. <param name="jobFile" type="java.lang.String"/>
  45473. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  45474. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  45475. <exception name="IOException" type="java.io.IOException"/>
  45476. <doc>
  45477. <![CDATA[Submit a job to the MR system.
  45478. This returns a handle to the {@link RunningJob} which can be used to track
  45479. the running-job.
  45480. @param jobFile the job configuration.
  45481. @return a handle to the {@link RunningJob} which can be used to track the
  45482. running-job.
  45483. @throws FileNotFoundException
  45484. @throws InvalidJobConfException
  45485. @throws IOException]]>
  45486. </doc>
  45487. </method>
  45488. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  45489. abstract="false" native="false" synchronized="false"
  45490. static="false" final="false" visibility="public"
  45491. deprecated="not deprecated">
  45492. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45493. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  45494. <exception name="IOException" type="java.io.IOException"/>
  45495. <doc>
  45496. <![CDATA[Submit a job to the MR system.
  45497. This returns a handle to the {@link RunningJob} which can be used to track
  45498. the running-job.
  45499. @param job the job configuration.
  45500. @return a handle to the {@link RunningJob} which can be used to track the
  45501. running-job.
  45502. @throws FileNotFoundException
  45503. @throws IOException]]>
  45504. </doc>
  45505. </method>
  45506. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  45507. abstract="false" native="false" synchronized="false"
  45508. static="false" final="false" visibility="public"
  45509. deprecated="not deprecated">
  45510. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45511. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  45512. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  45513. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45514. <exception name="IOException" type="java.io.IOException"/>
  45515. <doc>
  45516. <![CDATA[Internal method for submitting jobs to the system.
  45517. @param job the configuration to submit
  45518. @return a proxy object for the running job
  45519. @throws FileNotFoundException
  45520. @throws ClassNotFoundException
  45521. @throws InterruptedException
  45522. @throws IOException]]>
  45523. </doc>
  45524. </method>
  45525. <method name="isJobDirValid" return="boolean"
  45526. abstract="false" native="false" synchronized="false"
  45527. static="true" final="false" visibility="public"
  45528. deprecated="not deprecated">
  45529. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  45530. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  45531. <exception name="IOException" type="java.io.IOException"/>
  45532. <doc>
  45533. <![CDATA[Checks if the job directory is clean and has all the required components
  45534. for (re) starting the job]]>
  45535. </doc>
  45536. </method>
  45537. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  45538. abstract="false" native="false" synchronized="false"
  45539. static="false" final="false" visibility="public"
  45540. deprecated="not deprecated">
  45541. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  45542. <exception name="IOException" type="java.io.IOException"/>
  45543. <doc>
  45544. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  45545. null if the id does not correspond to any known job.
  45546. @param jobid the jobid of the job.
  45547. @return the {@link RunningJob} handle to track the job, null if the
  45548. <code>jobid</code> doesn't correspond to any known job.
  45549. @throws IOException]]>
  45550. </doc>
  45551. </method>
  45552. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  45553. abstract="false" native="false" synchronized="false"
  45554. static="false" final="false" visibility="public"
  45555. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  45556. <param name="jobid" type="java.lang.String"/>
  45557. <exception name="IOException" type="java.io.IOException"/>
  45558. <doc>
  45559. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  45560. </doc>
  45561. </method>
  45562. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45563. abstract="false" native="false" synchronized="false"
  45564. static="false" final="false" visibility="public"
  45565. deprecated="not deprecated">
  45566. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45567. <exception name="IOException" type="java.io.IOException"/>
  45568. <doc>
  45569. <![CDATA[Get the information of the current state of the map tasks of a job.
  45570. @param jobId the job to query.
  45571. @return the list of all of the map tips.
  45572. @throws IOException]]>
  45573. </doc>
  45574. </method>
  45575. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45576. abstract="false" native="false" synchronized="false"
  45577. static="false" final="false" visibility="public"
  45578. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  45579. <param name="jobId" type="java.lang.String"/>
  45580. <exception name="IOException" type="java.io.IOException"/>
  45581. <doc>
  45582. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  45583. </doc>
  45584. </method>
  45585. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45586. abstract="false" native="false" synchronized="false"
  45587. static="false" final="false" visibility="public"
  45588. deprecated="not deprecated">
  45589. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45590. <exception name="IOException" type="java.io.IOException"/>
  45591. <doc>
  45592. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  45593. @param jobId the job to query.
  45594. @return the list of all of the reduce tips.
  45595. @throws IOException]]>
  45596. </doc>
  45597. </method>
  45598. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45599. abstract="false" native="false" synchronized="false"
  45600. static="false" final="false" visibility="public"
  45601. deprecated="not deprecated">
  45602. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45603. <exception name="IOException" type="java.io.IOException"/>
  45604. <doc>
  45605. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  45606. @param jobId the job to query.
  45607. @return the list of all of the cleanup tips.
  45608. @throws IOException]]>
  45609. </doc>
  45610. </method>
  45611. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45612. abstract="false" native="false" synchronized="false"
  45613. static="false" final="false" visibility="public"
  45614. deprecated="not deprecated">
  45615. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45616. <exception name="IOException" type="java.io.IOException"/>
  45617. <doc>
  45618. <![CDATA[Get the information of the current state of the setup tasks of a job.
  45619. @param jobId the job to query.
  45620. @return the list of all of the setup tips.
  45621. @throws IOException]]>
  45622. </doc>
  45623. </method>
  45624. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45625. abstract="false" native="false" synchronized="false"
  45626. static="false" final="false" visibility="public"
  45627. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  45628. <param name="jobId" type="java.lang.String"/>
  45629. <exception name="IOException" type="java.io.IOException"/>
  45630. <doc>
  45631. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  45632. </doc>
  45633. </method>
  45634. <method name="displayTasks"
  45635. abstract="false" native="false" synchronized="false"
  45636. static="false" final="false" visibility="public"
  45637. deprecated="not deprecated">
  45638. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45639. <param name="type" type="java.lang.String"/>
  45640. <param name="state" type="java.lang.String"/>
  45641. <exception name="IOException" type="java.io.IOException"/>
  45642. <doc>
  45643. <![CDATA[Display the information about a job's tasks, of a particular type and
  45644. in a particular state
  45645. @param jobId the ID of the job
  45646. @param type the type of the task (map/reduce/setup/cleanup)
  45647. @param state the state of the task
  45648. (pending/running/completed/failed/killed)]]>
  45649. </doc>
  45650. </method>
  45651. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  45652. abstract="false" native="false" synchronized="false"
  45653. static="false" final="false" visibility="public"
  45654. deprecated="not deprecated">
  45655. <exception name="IOException" type="java.io.IOException"/>
  45656. <doc>
  45657. <![CDATA[Get status information about the Map-Reduce cluster.
  45658. @return the status information about the Map-Reduce cluster as an object
  45659. of {@link ClusterStatus}.
  45660. @throws IOException]]>
  45661. </doc>
  45662. </method>
  45663. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  45664. abstract="false" native="false" synchronized="false"
  45665. static="false" final="false" visibility="public"
  45666. deprecated="not deprecated">
  45667. <param name="detailed" type="boolean"/>
  45668. <exception name="IOException" type="java.io.IOException"/>
  45669. <doc>
  45670. <![CDATA[Get status information about the Map-Reduce cluster.
  45671. @param detailed if true then get a detailed status including the
  45672. tracker names and memory usage of the JobTracker
  45673. @return the status information about the Map-Reduce cluster as an object
  45674. of {@link ClusterStatus}.
  45675. @throws IOException]]>
  45676. </doc>
  45677. </method>
  45678. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  45679. abstract="false" native="false" synchronized="false"
  45680. static="false" final="false" visibility="public"
  45681. deprecated="not deprecated">
  45682. <exception name="IOException" type="java.io.IOException"/>
  45683. <doc>
  45684. <![CDATA[Grab the jobtracker's view of the staging directory path where
  45685. job-specific files will be placed.
  45686. @return the staging directory where job-specific files are to be placed.]]>
  45687. </doc>
  45688. </method>
  45689. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  45690. abstract="false" native="false" synchronized="false"
  45691. static="false" final="false" visibility="public"
  45692. deprecated="not deprecated">
  45693. <exception name="IOException" type="java.io.IOException"/>
  45694. <doc>
  45695. <![CDATA[Get the jobs that are not completed and not failed.
  45696. @return array of {@link JobStatus} for the running/to-be-run jobs.
  45697. @throws IOException]]>
  45698. </doc>
  45699. </method>
  45700. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  45701. abstract="false" native="false" synchronized="false"
  45702. static="false" final="false" visibility="public"
  45703. deprecated="not deprecated">
  45704. <exception name="IOException" type="java.io.IOException"/>
  45705. <doc>
  45706. <![CDATA[Get the jobs that are submitted.
  45707. @return array of {@link JobStatus} for the submitted jobs.
  45708. @throws IOException]]>
  45709. </doc>
  45710. </method>
  45711. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  45712. abstract="false" native="false" synchronized="false"
  45713. static="true" final="false" visibility="public"
  45714. deprecated="not deprecated">
  45715. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45716. <exception name="IOException" type="java.io.IOException"/>
  45717. <doc>
  45718. <![CDATA[Utility that submits a job, then polls for progress until the job is
  45719. complete.
  45720. @param job the job configuration.
  45721. @throws IOException if the job fails]]>
  45722. </doc>
  45723. </method>
  45724. <method name="monitorAndPrintJob" return="boolean"
  45725. abstract="false" native="false" synchronized="false"
  45726. static="false" final="false" visibility="public"
  45727. deprecated="not deprecated">
  45728. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45729. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  45730. <exception name="IOException" type="java.io.IOException"/>
  45731. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45732. <doc>
  45733. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  45734. fail.
  45735. @param conf the job's configuration
  45736. @param job the job to track
  45737. @return true if the job succeeded
  45738. @throws IOException if communication to the JobTracker fails]]>
  45739. </doc>
  45740. </method>
  45741. <method name="setTaskOutputFilter"
  45742. abstract="false" native="false" synchronized="false"
  45743. static="false" final="false" visibility="public"
  45744. deprecated="not deprecated">
  45745. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45746. <doc>
  45747. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  45748. output matches the filter.
  45749. @param newValue task filter.]]>
  45750. </doc>
  45751. </method>
  45752. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45753. abstract="false" native="false" synchronized="false"
  45754. static="true" final="false" visibility="public"
  45755. deprecated="not deprecated">
  45756. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45757. <doc>
  45758. <![CDATA[Get the task output filter out of the JobConf.
  45759. @param job the JobConf to examine.
  45760. @return the filter level.]]>
  45761. </doc>
  45762. </method>
  45763. <method name="setTaskOutputFilter"
  45764. abstract="false" native="false" synchronized="false"
  45765. static="true" final="false" visibility="public"
  45766. deprecated="not deprecated">
  45767. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45768. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45769. <doc>
  45770. <![CDATA[Modify the JobConf to set the task output filter.
  45771. @param job the JobConf to modify.
  45772. @param newValue the value to set.]]>
  45773. </doc>
  45774. </method>
  45775. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45776. abstract="false" native="false" synchronized="false"
  45777. static="false" final="false" visibility="public"
  45778. deprecated="not deprecated">
  45779. <doc>
  45780. <![CDATA[Returns task output filter.
  45781. @return task filter.]]>
  45782. </doc>
  45783. </method>
  45784. <method name="run" return="int"
  45785. abstract="false" native="false" synchronized="false"
  45786. static="false" final="false" visibility="public"
  45787. deprecated="not deprecated">
  45788. <param name="argv" type="java.lang.String[]"/>
  45789. <exception name="Exception" type="java.lang.Exception"/>
  45790. </method>
  45791. <method name="getDefaultMaps" return="int"
  45792. abstract="false" native="false" synchronized="false"
  45793. static="false" final="false" visibility="public"
  45794. deprecated="not deprecated">
  45795. <exception name="IOException" type="java.io.IOException"/>
  45796. <doc>
  45797. <![CDATA[Get status information about the max available Maps in the cluster.
  45798. @return the max available Maps in the cluster
  45799. @throws IOException]]>
  45800. </doc>
  45801. </method>
  45802. <method name="getDefaultReduces" return="int"
  45803. abstract="false" native="false" synchronized="false"
  45804. static="false" final="false" visibility="public"
  45805. deprecated="not deprecated">
  45806. <exception name="IOException" type="java.io.IOException"/>
  45807. <doc>
  45808. <![CDATA[Get status information about the max available Reduces in the cluster.
  45809. @return the max available Reduces in the cluster
  45810. @throws IOException]]>
  45811. </doc>
  45812. </method>
  45813. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  45814. abstract="false" native="false" synchronized="false"
  45815. static="false" final="false" visibility="public"
  45816. deprecated="not deprecated">
  45817. <doc>
  45818. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  45819. @return the system directory where job-specific files are to be placed.]]>
  45820. </doc>
  45821. </method>
  45822. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  45823. abstract="false" native="false" synchronized="false"
  45824. static="false" final="false" visibility="public"
  45825. deprecated="not deprecated">
  45826. <exception name="IOException" type="java.io.IOException"/>
  45827. <doc>
  45828. <![CDATA[Return an array of queue information objects about all the Job Queues
  45829. configured.
  45830. @return Array of JobQueueInfo objects
  45831. @throws IOException]]>
  45832. </doc>
  45833. </method>
  45834. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  45835. abstract="false" native="false" synchronized="false"
  45836. static="false" final="false" visibility="public"
  45837. deprecated="not deprecated">
  45838. <param name="queueName" type="java.lang.String"/>
  45839. <exception name="IOException" type="java.io.IOException"/>
  45840. <doc>
  45841. <![CDATA[Gets all the jobs which were added to particular Job Queue
  45842. @param queueName name of the Job Queue
  45843. @return Array of jobs present in the job queue
  45844. @throws IOException]]>
  45845. </doc>
  45846. </method>
  45847. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  45848. abstract="false" native="false" synchronized="false"
  45849. static="false" final="false" visibility="public"
  45850. deprecated="not deprecated">
  45851. <param name="queueName" type="java.lang.String"/>
  45852. <exception name="IOException" type="java.io.IOException"/>
  45853. <doc>
  45854. <![CDATA[Gets the queue information associated to a particular Job Queue
  45855. @param queueName name of the job queue.
  45856. @return Queue information associated to particular queue.
  45857. @throws IOException]]>
  45858. </doc>
  45859. </method>
  45860. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  45861. abstract="false" native="false" synchronized="false"
  45862. static="false" final="false" visibility="public"
  45863. deprecated="not deprecated">
  45864. <exception name="IOException" type="java.io.IOException"/>
  45865. <doc>
  45866. <![CDATA[Gets the Queue ACLs for current user
  45867. @return array of QueueAclsInfo object for current user.
  45868. @throws IOException]]>
  45869. </doc>
  45870. </method>
  45871. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  45872. abstract="false" native="false" synchronized="false"
  45873. static="false" final="false" visibility="public"
  45874. deprecated="not deprecated">
  45875. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  45876. <exception name="IOException" type="java.io.IOException"/>
  45877. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45878. </method>
  45879. <method name="renewDelegationToken" return="long"
  45880. abstract="false" native="false" synchronized="false"
  45881. static="false" final="false" visibility="public"
  45882. deprecated="not deprecated">
  45883. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45884. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  45885. <exception name="IOException" type="java.io.IOException"/>
  45886. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45887. <doc>
  45888. <![CDATA[Renew a delegation token
  45889. @param token the token to renew
  45890. @return the new expiration time
  45891. @throws InvalidToken
  45892. @throws IOException]]>
  45893. </doc>
  45894. </method>
  45895. <method name="cancelDelegationToken"
  45896. abstract="false" native="false" synchronized="false"
  45897. static="false" final="false" visibility="public"
  45898. deprecated="not deprecated">
  45899. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45900. <exception name="IOException" type="java.io.IOException"/>
  45901. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45902. <doc>
  45903. <![CDATA[Cancel a delegation token from the JobTracker
  45904. @param token the token to cancel
  45905. @throws IOException]]>
  45906. </doc>
  45907. </method>
  45908. <method name="main"
  45909. abstract="false" native="false" synchronized="false"
  45910. static="true" final="false" visibility="public"
  45911. deprecated="not deprecated">
  45912. <param name="argv" type="java.lang.String[]"/>
  45913. <exception name="Exception" type="java.lang.Exception"/>
  45914. </method>
  45915. <doc>
  45916. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  45917. with the {@link JobTracker}.
  45918. <code>JobClient</code> provides facilities to submit jobs, track their
  45919. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  45920. status information etc.
  45921. <p>The job submission process involves:
  45922. <ol>
  45923. <li>
  45924. Checking the input and output specifications of the job.
  45925. </li>
  45926. <li>
  45927. Computing the {@link InputSplit}s for the job.
  45928. </li>
  45929. <li>
  45930. Setup the requisite accounting information for the {@link DistributedCache}
  45931. of the job, if necessary.
  45932. </li>
  45933. <li>
  45934. Copying the job's jar and configuration to the map-reduce system directory
  45935. on the distributed file-system.
  45936. </li>
  45937. <li>
  45938. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  45939. it's status.
  45940. </li>
  45941. </ol></p>
  45942. Normally the user creates the application, describes various facets of the
  45943. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  45944. the job and monitor its progress.
  45945. <p>Here is an example on how to use <code>JobClient</code>:</p>
  45946. <p><blockquote><pre>
  45947. // Create a new JobConf
  45948. JobConf job = new JobConf(new Configuration(), MyJob.class);
  45949. // Specify various job-specific parameters
  45950. job.setJobName("myjob");
  45951. job.setInputPath(new Path("in"));
  45952. job.setOutputPath(new Path("out"));
  45953. job.setMapperClass(MyJob.MyMapper.class);
  45954. job.setReducerClass(MyJob.MyReducer.class);
  45955. // Submit the job, then poll for progress until the job is complete
  45956. JobClient.runJob(job);
  45957. </pre></blockquote></p>
  45958. <h4 id="JobControl">Job Control</h4>
  45959. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  45960. which cannot be done via a single map-reduce job. This is fairly easy since
  45961. the output of the job, typically, goes to distributed file-system and that
  45962. can be used as the input for the next job.</p>
  45963. <p>However, this also means that the onus on ensuring jobs are complete
  45964. (success/failure) lies squarely on the clients. In such situations the
  45965. various job-control options are:
  45966. <ol>
  45967. <li>
  45968. {@link #runJob(JobConf)} : submits the job and returns only after
  45969. the job has completed.
  45970. </li>
  45971. <li>
  45972. {@link #submitJob(JobConf)} : only submits the job, then poll the
  45973. returned handle to the {@link RunningJob} to query status and make
  45974. scheduling decisions.
  45975. </li>
  45976. <li>
  45977. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  45978. on job-completion, thus avoiding polling.
  45979. </li>
  45980. </ol></p>
  45981. @see JobConf
  45982. @see ClusterStatus
  45983. @see Tool
  45984. @see DistributedCache]]>
  45985. </doc>
  45986. </class>
  45987. <!-- end class org.apache.hadoop.mapred.JobClient -->
  45988. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  45989. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  45990. abstract="false"
  45991. static="true" final="false" visibility="public"
  45992. deprecated="not deprecated">
  45993. <constructor name="JobClient.Renewer"
  45994. static="false" final="false" visibility="public"
  45995. deprecated="not deprecated">
  45996. </constructor>
  45997. <method name="handleKind" return="boolean"
  45998. abstract="false" native="false" synchronized="false"
  45999. static="false" final="false" visibility="public"
  46000. deprecated="not deprecated">
  46001. <param name="kind" type="org.apache.hadoop.io.Text"/>
  46002. </method>
  46003. <method name="renew" return="long"
  46004. abstract="false" native="false" synchronized="false"
  46005. static="false" final="false" visibility="public"
  46006. deprecated="not deprecated">
  46007. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  46008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  46009. <exception name="IOException" type="java.io.IOException"/>
  46010. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46011. </method>
  46012. <method name="cancel"
  46013. abstract="false" native="false" synchronized="false"
  46014. static="false" final="false" visibility="public"
  46015. deprecated="not deprecated">
  46016. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  46017. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  46018. <exception name="IOException" type="java.io.IOException"/>
  46019. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46020. </method>
  46021. <method name="isManaged" return="boolean"
  46022. abstract="false" native="false" synchronized="false"
  46023. static="false" final="false" visibility="public"
  46024. deprecated="not deprecated">
  46025. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  46026. <exception name="IOException" type="java.io.IOException"/>
  46027. </method>
  46028. </class>
  46029. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  46030. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  46031. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  46032. abstract="false"
  46033. static="true" final="true" visibility="public"
  46034. deprecated="not deprecated">
  46035. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  46036. abstract="false" native="false" synchronized="false"
  46037. static="true" final="false" visibility="public"
  46038. deprecated="not deprecated">
  46039. </method>
  46040. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46041. abstract="false" native="false" synchronized="false"
  46042. static="true" final="false" visibility="public"
  46043. deprecated="not deprecated">
  46044. <param name="name" type="java.lang.String"/>
  46045. </method>
  46046. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46047. transient="false" volatile="false"
  46048. static="true" final="true" visibility="public"
  46049. deprecated="not deprecated">
  46050. </field>
  46051. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46052. transient="false" volatile="false"
  46053. static="true" final="true" visibility="public"
  46054. deprecated="not deprecated">
  46055. </field>
  46056. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46057. transient="false" volatile="false"
  46058. static="true" final="true" visibility="public"
  46059. deprecated="not deprecated">
  46060. </field>
  46061. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46062. transient="false" volatile="false"
  46063. static="true" final="true" visibility="public"
  46064. deprecated="not deprecated">
  46065. </field>
  46066. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46067. transient="false" volatile="false"
  46068. static="true" final="true" visibility="public"
  46069. deprecated="not deprecated">
  46070. </field>
  46071. </class>
  46072. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  46073. <!-- start class org.apache.hadoop.mapred.JobConf -->
  46074. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  46075. abstract="false"
  46076. static="false" final="false" visibility="public"
  46077. deprecated="not deprecated">
  46078. <constructor name="JobConf"
  46079. static="false" final="false" visibility="public"
  46080. deprecated="not deprecated">
  46081. <doc>
  46082. <![CDATA[Construct a map/reduce job configuration.]]>
  46083. </doc>
  46084. </constructor>
  46085. <constructor name="JobConf" type="java.lang.Class"
  46086. static="false" final="false" visibility="public"
  46087. deprecated="not deprecated">
  46088. <doc>
  46089. <![CDATA[Construct a map/reduce job configuration.
  46090. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  46091. </doc>
  46092. </constructor>
  46093. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  46094. static="false" final="false" visibility="public"
  46095. deprecated="not deprecated">
  46096. <doc>
  46097. <![CDATA[Construct a map/reduce job configuration.
  46098. @param conf a Configuration whose settings will be inherited.]]>
  46099. </doc>
  46100. </constructor>
  46101. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  46102. static="false" final="false" visibility="public"
  46103. deprecated="not deprecated">
  46104. <doc>
  46105. <![CDATA[Construct a map/reduce job configuration.
  46106. @param conf a Configuration whose settings will be inherited.
  46107. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  46108. </doc>
  46109. </constructor>
  46110. <constructor name="JobConf" type="java.lang.String"
  46111. static="false" final="false" visibility="public"
  46112. deprecated="not deprecated">
  46113. <doc>
  46114. <![CDATA[Construct a map/reduce configuration.
  46115. @param config a Configuration-format XML job description file.]]>
  46116. </doc>
  46117. </constructor>
  46118. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  46119. static="false" final="false" visibility="public"
  46120. deprecated="not deprecated">
  46121. <doc>
  46122. <![CDATA[Construct a map/reduce configuration.
  46123. @param config a Configuration-format XML job description file.]]>
  46124. </doc>
  46125. </constructor>
  46126. <constructor name="JobConf" type="boolean"
  46127. static="false" final="false" visibility="public"
  46128. deprecated="not deprecated">
  46129. <doc>
  46130. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  46131. default resources can be turned off.
  46132. <p/>
  46133. If the parameter {@code loadDefaults} is false, the new instance
  46134. will not load resources from the default files.
  46135. @param loadDefaults specifies whether to load from the default files]]>
  46136. </doc>
  46137. </constructor>
  46138. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  46139. abstract="false" native="false" synchronized="false"
  46140. static="false" final="false" visibility="public"
  46141. deprecated="not deprecated">
  46142. <doc>
  46143. <![CDATA[Get credentials for the job.
  46144. @return credentials for the job]]>
  46145. </doc>
  46146. </method>
  46147. <method name="getJar" return="java.lang.String"
  46148. abstract="false" native="false" synchronized="false"
  46149. static="false" final="false" visibility="public"
  46150. deprecated="not deprecated">
  46151. <doc>
  46152. <![CDATA[Get the user jar for the map-reduce job.
  46153. @return the user jar for the map-reduce job.]]>
  46154. </doc>
  46155. </method>
  46156. <method name="setJar"
  46157. abstract="false" native="false" synchronized="false"
  46158. static="false" final="false" visibility="public"
  46159. deprecated="not deprecated">
  46160. <param name="jar" type="java.lang.String"/>
  46161. <doc>
  46162. <![CDATA[Set the user jar for the map-reduce job.
  46163. @param jar the user jar for the map-reduce job.]]>
  46164. </doc>
  46165. </method>
  46166. <method name="setJarByClass"
  46167. abstract="false" native="false" synchronized="false"
  46168. static="false" final="false" visibility="public"
  46169. deprecated="not deprecated">
  46170. <param name="cls" type="java.lang.Class"/>
  46171. <doc>
  46172. <![CDATA[Set the job's jar file by finding an example class location.
  46173. @param cls the example class.]]>
  46174. </doc>
  46175. </method>
  46176. <method name="getLocalDirs" return="java.lang.String[]"
  46177. abstract="false" native="false" synchronized="false"
  46178. static="false" final="false" visibility="public"
  46179. deprecated="not deprecated">
  46180. <exception name="IOException" type="java.io.IOException"/>
  46181. </method>
  46182. <method name="deleteLocalFiles"
  46183. abstract="false" native="false" synchronized="false"
  46184. static="false" final="false" visibility="public"
  46185. deprecated="not deprecated">
  46186. <exception name="IOException" type="java.io.IOException"/>
  46187. </method>
  46188. <method name="deleteLocalFiles"
  46189. abstract="false" native="false" synchronized="false"
  46190. static="false" final="false" visibility="public"
  46191. deprecated="not deprecated">
  46192. <param name="subdir" type="java.lang.String"/>
  46193. <exception name="IOException" type="java.io.IOException"/>
  46194. </method>
  46195. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  46196. abstract="false" native="false" synchronized="false"
  46197. static="false" final="false" visibility="public"
  46198. deprecated="not deprecated">
  46199. <param name="pathString" type="java.lang.String"/>
  46200. <exception name="IOException" type="java.io.IOException"/>
  46201. <doc>
  46202. <![CDATA[Constructs a local file name. Files are distributed among configured
  46203. local directories.]]>
  46204. </doc>
  46205. </method>
  46206. <method name="getUser" return="java.lang.String"
  46207. abstract="false" native="false" synchronized="false"
  46208. static="false" final="false" visibility="public"
  46209. deprecated="not deprecated">
  46210. <doc>
  46211. <![CDATA[Get the reported username for this job.
  46212. @return the username]]>
  46213. </doc>
  46214. </method>
  46215. <method name="setUser"
  46216. abstract="false" native="false" synchronized="false"
  46217. static="false" final="false" visibility="public"
  46218. deprecated="not deprecated">
  46219. <param name="user" type="java.lang.String"/>
  46220. <doc>
  46221. <![CDATA[Set the reported username for this job.
  46222. @param user the username for this job.]]>
  46223. </doc>
  46224. </method>
  46225. <method name="setKeepFailedTaskFiles"
  46226. abstract="false" native="false" synchronized="false"
  46227. static="false" final="false" visibility="public"
  46228. deprecated="not deprecated">
  46229. <param name="keep" type="boolean"/>
  46230. <doc>
  46231. <![CDATA[Set whether the framework should keep the intermediate files for
  46232. failed tasks.
  46233. @param keep <code>true</code> if framework should keep the intermediate files
  46234. for failed tasks, <code>false</code> otherwise.]]>
  46235. </doc>
  46236. </method>
  46237. <method name="getKeepFailedTaskFiles" return="boolean"
  46238. abstract="false" native="false" synchronized="false"
  46239. static="false" final="false" visibility="public"
  46240. deprecated="not deprecated">
  46241. <doc>
  46242. <![CDATA[Should the temporary files for failed tasks be kept?
  46243. @return should the files be kept?]]>
  46244. </doc>
  46245. </method>
  46246. <method name="setKeepTaskFilesPattern"
  46247. abstract="false" native="false" synchronized="false"
  46248. static="false" final="false" visibility="public"
  46249. deprecated="not deprecated">
  46250. <param name="pattern" type="java.lang.String"/>
  46251. <doc>
  46252. <![CDATA[Set a regular expression for task names that should be kept.
  46253. The regular expression ".*_m_000123_0" would keep the files
  46254. for the first instance of map 123 that ran.
  46255. @param pattern the java.util.regex.Pattern to match against the
  46256. task names.]]>
  46257. </doc>
  46258. </method>
  46259. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  46260. abstract="false" native="false" synchronized="false"
  46261. static="false" final="false" visibility="public"
  46262. deprecated="not deprecated">
  46263. <doc>
  46264. <![CDATA[Get the regular expression that is matched against the task names
  46265. to see if we need to keep the files.
  46266. @return the pattern as a string, if it was set, othewise null.]]>
  46267. </doc>
  46268. </method>
  46269. <method name="setWorkingDirectory"
  46270. abstract="false" native="false" synchronized="false"
  46271. static="false" final="false" visibility="public"
  46272. deprecated="not deprecated">
  46273. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  46274. <doc>
  46275. <![CDATA[Set the current working directory for the default file system.
  46276. @param dir the new current working directory.]]>
  46277. </doc>
  46278. </method>
  46279. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  46280. abstract="false" native="false" synchronized="false"
  46281. static="false" final="false" visibility="public"
  46282. deprecated="not deprecated">
  46283. <doc>
  46284. <![CDATA[Get the current working directory for the default file system.
  46285. @return the directory name.]]>
  46286. </doc>
  46287. </method>
  46288. <method name="setNumTasksToExecutePerJvm"
  46289. abstract="false" native="false" synchronized="false"
  46290. static="false" final="false" visibility="public"
  46291. deprecated="not deprecated">
  46292. <param name="numTasks" type="int"/>
  46293. <doc>
  46294. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  46295. before it exits
  46296. @param numTasks the number of tasks to execute; defaults to 1;
  46297. -1 signifies no limit]]>
  46298. </doc>
  46299. </method>
  46300. <method name="getNumTasksToExecutePerJvm" return="int"
  46301. abstract="false" native="false" synchronized="false"
  46302. static="false" final="false" visibility="public"
  46303. deprecated="not deprecated">
  46304. <doc>
  46305. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  46306. </doc>
  46307. </method>
  46308. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  46309. abstract="false" native="false" synchronized="false"
  46310. static="false" final="false" visibility="public"
  46311. deprecated="not deprecated">
  46312. <doc>
  46313. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  46314. defaults to {@link TextInputFormat} if not specified explicity.
  46315. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  46316. </doc>
  46317. </method>
  46318. <method name="setInputFormat"
  46319. abstract="false" native="false" synchronized="false"
  46320. static="false" final="false" visibility="public"
  46321. deprecated="not deprecated">
  46322. <param name="theClass" type="java.lang.Class"/>
  46323. <doc>
  46324. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  46325. @param theClass the {@link InputFormat} implementation for the map-reduce
  46326. job.]]>
  46327. </doc>
  46328. </method>
  46329. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  46330. abstract="false" native="false" synchronized="false"
  46331. static="false" final="false" visibility="public"
  46332. deprecated="not deprecated">
  46333. <doc>
  46334. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  46335. defaults to {@link TextOutputFormat} if not specified explicity.
  46336. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  46337. </doc>
  46338. </method>
  46339. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  46340. abstract="false" native="false" synchronized="false"
  46341. static="false" final="false" visibility="public"
  46342. deprecated="not deprecated">
  46343. <doc>
  46344. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  46345. defaults to {@link FileOutputCommitter} if not specified explicitly.
  46346. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  46347. </doc>
  46348. </method>
  46349. <method name="setOutputCommitter"
  46350. abstract="false" native="false" synchronized="false"
  46351. static="false" final="false" visibility="public"
  46352. deprecated="not deprecated">
  46353. <param name="theClass" type="java.lang.Class"/>
  46354. <doc>
  46355. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  46356. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  46357. job.]]>
  46358. </doc>
  46359. </method>
  46360. <method name="setOutputFormat"
  46361. abstract="false" native="false" synchronized="false"
  46362. static="false" final="false" visibility="public"
  46363. deprecated="not deprecated">
  46364. <param name="theClass" type="java.lang.Class"/>
  46365. <doc>
  46366. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  46367. @param theClass the {@link OutputFormat} implementation for the map-reduce
  46368. job.]]>
  46369. </doc>
  46370. </method>
  46371. <method name="setCompressMapOutput"
  46372. abstract="false" native="false" synchronized="false"
  46373. static="false" final="false" visibility="public"
  46374. deprecated="not deprecated">
  46375. <param name="compress" type="boolean"/>
  46376. <doc>
  46377. <![CDATA[Should the map outputs be compressed before transfer?
  46378. Uses the SequenceFile compression.
  46379. @param compress should the map outputs be compressed?]]>
  46380. </doc>
  46381. </method>
  46382. <method name="getCompressMapOutput" return="boolean"
  46383. abstract="false" native="false" synchronized="false"
  46384. static="false" final="false" visibility="public"
  46385. deprecated="not deprecated">
  46386. <doc>
  46387. <![CDATA[Are the outputs of the maps be compressed?
  46388. @return <code>true</code> if the outputs of the maps are to be compressed,
  46389. <code>false</code> otherwise.]]>
  46390. </doc>
  46391. </method>
  46392. <method name="setMapOutputCompressorClass"
  46393. abstract="false" native="false" synchronized="false"
  46394. static="false" final="false" visibility="public"
  46395. deprecated="not deprecated">
  46396. <param name="codecClass" type="java.lang.Class"/>
  46397. <doc>
  46398. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  46399. @param codecClass the {@link CompressionCodec} class that will compress
  46400. the map outputs.]]>
  46401. </doc>
  46402. </method>
  46403. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  46404. abstract="false" native="false" synchronized="false"
  46405. static="false" final="false" visibility="public"
  46406. deprecated="not deprecated">
  46407. <param name="defaultValue" type="java.lang.Class"/>
  46408. <doc>
  46409. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  46410. @param defaultValue the {@link CompressionCodec} to return if not set
  46411. @return the {@link CompressionCodec} class that should be used to compress the
  46412. map outputs.
  46413. @throws IllegalArgumentException if the class was specified, but not found]]>
  46414. </doc>
  46415. </method>
  46416. <method name="getMapOutputKeyClass" return="java.lang.Class"
  46417. abstract="false" native="false" synchronized="false"
  46418. static="false" final="false" visibility="public"
  46419. deprecated="not deprecated">
  46420. <doc>
  46421. <![CDATA[Get the key class for the map output data. If it is not set, use the
  46422. (final) output key class. This allows the map output key class to be
  46423. different than the final output key class.
  46424. @return the map output key class.]]>
  46425. </doc>
  46426. </method>
  46427. <method name="setMapOutputKeyClass"
  46428. abstract="false" native="false" synchronized="false"
  46429. static="false" final="false" visibility="public"
  46430. deprecated="not deprecated">
  46431. <param name="theClass" type="java.lang.Class"/>
  46432. <doc>
  46433. <![CDATA[Set the key class for the map output data. This allows the user to
  46434. specify the map output key class to be different than the final output
  46435. value class.
  46436. @param theClass the map output key class.]]>
  46437. </doc>
  46438. </method>
  46439. <method name="getMapOutputValueClass" return="java.lang.Class"
  46440. abstract="false" native="false" synchronized="false"
  46441. static="false" final="false" visibility="public"
  46442. deprecated="not deprecated">
  46443. <doc>
  46444. <![CDATA[Get the value class for the map output data. If it is not set, use the
  46445. (final) output value class This allows the map output value class to be
  46446. different than the final output value class.
  46447. @return the map output value class.]]>
  46448. </doc>
  46449. </method>
  46450. <method name="setMapOutputValueClass"
  46451. abstract="false" native="false" synchronized="false"
  46452. static="false" final="false" visibility="public"
  46453. deprecated="not deprecated">
  46454. <param name="theClass" type="java.lang.Class"/>
  46455. <doc>
  46456. <![CDATA[Set the value class for the map output data. This allows the user to
  46457. specify the map output value class to be different than the final output
  46458. value class.
  46459. @param theClass the map output value class.]]>
  46460. </doc>
  46461. </method>
  46462. <method name="getOutputKeyClass" return="java.lang.Class"
  46463. abstract="false" native="false" synchronized="false"
  46464. static="false" final="false" visibility="public"
  46465. deprecated="not deprecated">
  46466. <doc>
  46467. <![CDATA[Get the key class for the job output data.
  46468. @return the key class for the job output data.]]>
  46469. </doc>
  46470. </method>
  46471. <method name="setOutputKeyClass"
  46472. abstract="false" native="false" synchronized="false"
  46473. static="false" final="false" visibility="public"
  46474. deprecated="not deprecated">
  46475. <param name="theClass" type="java.lang.Class"/>
  46476. <doc>
  46477. <![CDATA[Set the key class for the job output data.
  46478. @param theClass the key class for the job output data.]]>
  46479. </doc>
  46480. </method>
  46481. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  46482. abstract="false" native="false" synchronized="false"
  46483. static="false" final="false" visibility="public"
  46484. deprecated="not deprecated">
  46485. <doc>
  46486. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  46487. @return the {@link RawComparator} comparator used to compare keys.]]>
  46488. </doc>
  46489. </method>
  46490. <method name="setOutputKeyComparatorClass"
  46491. abstract="false" native="false" synchronized="false"
  46492. static="false" final="false" visibility="public"
  46493. deprecated="not deprecated">
  46494. <param name="theClass" type="java.lang.Class"/>
  46495. <doc>
  46496. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  46497. @param theClass the {@link RawComparator} comparator used to
  46498. compare keys.
  46499. @see #setOutputValueGroupingComparator(Class)]]>
  46500. </doc>
  46501. </method>
  46502. <method name="setKeyFieldComparatorOptions"
  46503. abstract="false" native="false" synchronized="false"
  46504. static="false" final="false" visibility="public"
  46505. deprecated="not deprecated">
  46506. <param name="keySpec" type="java.lang.String"/>
  46507. <doc>
  46508. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  46509. @param keySpec the key specification of the form -k pos1[,pos2], where,
  46510. pos is of the form f[.c][opts], where f is the number
  46511. of the key field to use, and c is the number of the first character from
  46512. the beginning of the field. Fields and character posns are numbered
  46513. starting with 1; a character position of zero in pos2 indicates the
  46514. field's last character. If '.c' is omitted from pos1, it defaults to 1
  46515. (the beginning of the field); if omitted from pos2, it defaults to 0
  46516. (the end of the field). opts are ordering options. The supported options
  46517. are:
  46518. -n, (Sort numerically)
  46519. -r, (Reverse the result of comparison)]]>
  46520. </doc>
  46521. </method>
  46522. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  46523. abstract="false" native="false" synchronized="false"
  46524. static="false" final="false" visibility="public"
  46525. deprecated="not deprecated">
  46526. <doc>
  46527. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  46528. </doc>
  46529. </method>
  46530. <method name="setKeyFieldPartitionerOptions"
  46531. abstract="false" native="false" synchronized="false"
  46532. static="false" final="false" visibility="public"
  46533. deprecated="not deprecated">
  46534. <param name="keySpec" type="java.lang.String"/>
  46535. <doc>
  46536. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  46537. {@link Partitioner}
  46538. @param keySpec the key specification of the form -k pos1[,pos2], where,
  46539. pos is of the form f[.c][opts], where f is the number
  46540. of the key field to use, and c is the number of the first character from
  46541. the beginning of the field. Fields and character posns are numbered
  46542. starting with 1; a character position of zero in pos2 indicates the
  46543. field's last character. If '.c' is omitted from pos1, it defaults to 1
  46544. (the beginning of the field); if omitted from pos2, it defaults to 0
  46545. (the end of the field).]]>
  46546. </doc>
  46547. </method>
  46548. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  46549. abstract="false" native="false" synchronized="false"
  46550. static="false" final="false" visibility="public"
  46551. deprecated="not deprecated">
  46552. <doc>
  46553. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  46554. </doc>
  46555. </method>
  46556. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  46557. abstract="false" native="false" synchronized="false"
  46558. static="false" final="false" visibility="public"
  46559. deprecated="not deprecated">
  46560. <doc>
  46561. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  46562. grouping keys of inputs to the reduce.
  46563. @return comparator set by the user for grouping values.
  46564. @see #setOutputValueGroupingComparator(Class) for details.]]>
  46565. </doc>
  46566. </method>
  46567. <method name="setOutputValueGroupingComparator"
  46568. abstract="false" native="false" synchronized="false"
  46569. static="false" final="false" visibility="public"
  46570. deprecated="not deprecated">
  46571. <param name="theClass" type="java.lang.Class"/>
  46572. <doc>
  46573. <![CDATA[Set the user defined {@link RawComparator} comparator for
  46574. grouping keys in the input to the reduce.
  46575. <p>This comparator should be provided if the equivalence rules for keys
  46576. for sorting the intermediates are different from those for grouping keys
  46577. before each call to
  46578. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  46579. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  46580. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  46581. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  46582. how keys are sorted, this can be used in conjunction to simulate
  46583. <i>secondary sort on values</i>.</p>
  46584. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  46585. <i>stable</i> in any sense. (In any case, with the order of available
  46586. map-outputs to the reduce being non-deterministic, it wouldn't make
  46587. that much sense.)</p>
  46588. @param theClass the comparator class to be used for grouping keys.
  46589. It should implement <code>RawComparator</code>.
  46590. @see #setOutputKeyComparatorClass(Class)]]>
  46591. </doc>
  46592. </method>
  46593. <method name="getUseNewMapper" return="boolean"
  46594. abstract="false" native="false" synchronized="false"
  46595. static="false" final="false" visibility="public"
  46596. deprecated="not deprecated">
  46597. <doc>
  46598. <![CDATA[Should the framework use the new context-object code for running
  46599. the mapper?
  46600. @return true, if the new api should be used]]>
  46601. </doc>
  46602. </method>
  46603. <method name="setUseNewMapper"
  46604. abstract="false" native="false" synchronized="false"
  46605. static="false" final="false" visibility="public"
  46606. deprecated="not deprecated">
  46607. <param name="flag" type="boolean"/>
  46608. <doc>
  46609. <![CDATA[Set whether the framework should use the new api for the mapper.
  46610. This is the default for jobs submitted with the new Job api.
  46611. @param flag true, if the new api should be used]]>
  46612. </doc>
  46613. </method>
  46614. <method name="getUseNewReducer" return="boolean"
  46615. abstract="false" native="false" synchronized="false"
  46616. static="false" final="false" visibility="public"
  46617. deprecated="not deprecated">
  46618. <doc>
  46619. <![CDATA[Should the framework use the new context-object code for running
  46620. the reducer?
  46621. @return true, if the new api should be used]]>
  46622. </doc>
  46623. </method>
  46624. <method name="setUseNewReducer"
  46625. abstract="false" native="false" synchronized="false"
  46626. static="false" final="false" visibility="public"
  46627. deprecated="not deprecated">
  46628. <param name="flag" type="boolean"/>
  46629. <doc>
  46630. <![CDATA[Set whether the framework should use the new api for the reducer.
  46631. This is the default for jobs submitted with the new Job api.
  46632. @param flag true, if the new api should be used]]>
  46633. </doc>
  46634. </method>
  46635. <method name="getOutputValueClass" return="java.lang.Class"
  46636. abstract="false" native="false" synchronized="false"
  46637. static="false" final="false" visibility="public"
  46638. deprecated="not deprecated">
  46639. <doc>
  46640. <![CDATA[Get the value class for job outputs.
  46641. @return the value class for job outputs.]]>
  46642. </doc>
  46643. </method>
  46644. <method name="setOutputValueClass"
  46645. abstract="false" native="false" synchronized="false"
  46646. static="false" final="false" visibility="public"
  46647. deprecated="not deprecated">
  46648. <param name="theClass" type="java.lang.Class"/>
  46649. <doc>
  46650. <![CDATA[Set the value class for job outputs.
  46651. @param theClass the value class for job outputs.]]>
  46652. </doc>
  46653. </method>
  46654. <method name="getMapperClass" return="java.lang.Class"
  46655. abstract="false" native="false" synchronized="false"
  46656. static="false" final="false" visibility="public"
  46657. deprecated="not deprecated">
  46658. <doc>
  46659. <![CDATA[Get the {@link Mapper} class for the job.
  46660. @return the {@link Mapper} class for the job.]]>
  46661. </doc>
  46662. </method>
  46663. <method name="setMapperClass"
  46664. abstract="false" native="false" synchronized="false"
  46665. static="false" final="false" visibility="public"
  46666. deprecated="not deprecated">
  46667. <param name="theClass" type="java.lang.Class"/>
  46668. <doc>
  46669. <![CDATA[Set the {@link Mapper} class for the job.
  46670. @param theClass the {@link Mapper} class for the job.]]>
  46671. </doc>
  46672. </method>
  46673. <method name="getMapRunnerClass" return="java.lang.Class"
  46674. abstract="false" native="false" synchronized="false"
  46675. static="false" final="false" visibility="public"
  46676. deprecated="not deprecated">
  46677. <doc>
  46678. <![CDATA[Get the {@link MapRunnable} class for the job.
  46679. @return the {@link MapRunnable} class for the job.]]>
  46680. </doc>
  46681. </method>
  46682. <method name="setMapRunnerClass"
  46683. abstract="false" native="false" synchronized="false"
  46684. static="false" final="false" visibility="public"
  46685. deprecated="not deprecated">
  46686. <param name="theClass" type="java.lang.Class"/>
  46687. <doc>
  46688. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  46689. Typically used to exert greater control on {@link Mapper}s.
  46690. @param theClass the {@link MapRunnable} class for the job.]]>
  46691. </doc>
  46692. </method>
  46693. <method name="getPartitionerClass" return="java.lang.Class"
  46694. abstract="false" native="false" synchronized="false"
  46695. static="false" final="false" visibility="public"
  46696. deprecated="not deprecated">
  46697. <doc>
  46698. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  46699. to be sent to the {@link Reducer}s.
  46700. @return the {@link Partitioner} used to partition map-outputs.]]>
  46701. </doc>
  46702. </method>
  46703. <method name="setPartitionerClass"
  46704. abstract="false" native="false" synchronized="false"
  46705. static="false" final="false" visibility="public"
  46706. deprecated="not deprecated">
  46707. <param name="theClass" type="java.lang.Class"/>
  46708. <doc>
  46709. <![CDATA[Set the {@link Partitioner} class used to partition
  46710. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  46711. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  46712. </doc>
  46713. </method>
  46714. <method name="getReducerClass" return="java.lang.Class"
  46715. abstract="false" native="false" synchronized="false"
  46716. static="false" final="false" visibility="public"
  46717. deprecated="not deprecated">
  46718. <doc>
  46719. <![CDATA[Get the {@link Reducer} class for the job.
  46720. @return the {@link Reducer} class for the job.]]>
  46721. </doc>
  46722. </method>
  46723. <method name="setReducerClass"
  46724. abstract="false" native="false" synchronized="false"
  46725. static="false" final="false" visibility="public"
  46726. deprecated="not deprecated">
  46727. <param name="theClass" type="java.lang.Class"/>
  46728. <doc>
  46729. <![CDATA[Set the {@link Reducer} class for the job.
  46730. @param theClass the {@link Reducer} class for the job.]]>
  46731. </doc>
  46732. </method>
  46733. <method name="getCombinerClass" return="java.lang.Class"
  46734. abstract="false" native="false" synchronized="false"
  46735. static="false" final="false" visibility="public"
  46736. deprecated="not deprecated">
  46737. <doc>
  46738. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  46739. before being sent to the reducers. Typically the combiner is same as the
  46740. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  46741. @return the user-defined combiner class used to combine map-outputs.]]>
  46742. </doc>
  46743. </method>
  46744. <method name="setCombinerClass"
  46745. abstract="false" native="false" synchronized="false"
  46746. static="false" final="false" visibility="public"
  46747. deprecated="not deprecated">
  46748. <param name="theClass" type="java.lang.Class"/>
  46749. <doc>
  46750. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  46751. before being sent to the reducers.
  46752. <p>The combiner is an application-specified aggregation operation, which
  46753. can help cut down the amount of data transferred between the
  46754. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  46755. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  46756. the mapper and reducer tasks. In general, the combiner is called as the
  46757. sort/merge result is written to disk. The combiner must:
  46758. <ul>
  46759. <li> be side-effect free</li>
  46760. <li> have the same input and output key types and the same input and
  46761. output value types</li>
  46762. </ul></p>
  46763. <p>Typically the combiner is same as the <code>Reducer</code> for the
  46764. job i.e. {@link #setReducerClass(Class)}.</p>
  46765. @param theClass the user-defined combiner class used to combine
  46766. map-outputs.]]>
  46767. </doc>
  46768. </method>
  46769. <method name="getSpeculativeExecution" return="boolean"
  46770. abstract="false" native="false" synchronized="false"
  46771. static="false" final="false" visibility="public"
  46772. deprecated="not deprecated">
  46773. <doc>
  46774. <![CDATA[Should speculative execution be used for this job?
  46775. Defaults to <code>true</code>.
  46776. @return <code>true</code> if speculative execution be used for this job,
  46777. <code>false</code> otherwise.]]>
  46778. </doc>
  46779. </method>
  46780. <method name="setSpeculativeExecution"
  46781. abstract="false" native="false" synchronized="false"
  46782. static="false" final="false" visibility="public"
  46783. deprecated="not deprecated">
  46784. <param name="speculativeExecution" type="boolean"/>
  46785. <doc>
  46786. <![CDATA[Turn speculative execution on or off for this job.
  46787. @param speculativeExecution <code>true</code> if speculative execution
  46788. should be turned on, else <code>false</code>.]]>
  46789. </doc>
  46790. </method>
  46791. <method name="getMapSpeculativeExecution" return="boolean"
  46792. abstract="false" native="false" synchronized="false"
  46793. static="false" final="false" visibility="public"
  46794. deprecated="not deprecated">
  46795. <doc>
  46796. <![CDATA[Should speculative execution be used for this job for map tasks?
  46797. Defaults to <code>true</code>.
  46798. @return <code>true</code> if speculative execution be
  46799. used for this job for map tasks,
  46800. <code>false</code> otherwise.]]>
  46801. </doc>
  46802. </method>
  46803. <method name="setMapSpeculativeExecution"
  46804. abstract="false" native="false" synchronized="false"
  46805. static="false" final="false" visibility="public"
  46806. deprecated="not deprecated">
  46807. <param name="speculativeExecution" type="boolean"/>
  46808. <doc>
  46809. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  46810. @param speculativeExecution <code>true</code> if speculative execution
  46811. should be turned on for map tasks,
  46812. else <code>false</code>.]]>
  46813. </doc>
  46814. </method>
  46815. <method name="getReduceSpeculativeExecution" return="boolean"
  46816. abstract="false" native="false" synchronized="false"
  46817. static="false" final="false" visibility="public"
  46818. deprecated="not deprecated">
  46819. <doc>
  46820. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  46821. Defaults to <code>true</code>.
  46822. @return <code>true</code> if speculative execution be used
  46823. for reduce tasks for this job,
  46824. <code>false</code> otherwise.]]>
  46825. </doc>
  46826. </method>
  46827. <method name="setReduceSpeculativeExecution"
  46828. abstract="false" native="false" synchronized="false"
  46829. static="false" final="false" visibility="public"
  46830. deprecated="not deprecated">
  46831. <param name="speculativeExecution" type="boolean"/>
  46832. <doc>
  46833. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  46834. @param speculativeExecution <code>true</code> if speculative execution
  46835. should be turned on for reduce tasks,
  46836. else <code>false</code>.]]>
  46837. </doc>
  46838. </method>
  46839. <method name="getNumMapTasks" return="int"
  46840. abstract="false" native="false" synchronized="false"
  46841. static="false" final="false" visibility="public"
  46842. deprecated="not deprecated">
  46843. <doc>
  46844. <![CDATA[Get configured the number of reduce tasks for this job.
  46845. Defaults to <code>1</code>.
  46846. @return the number of reduce tasks for this job.]]>
  46847. </doc>
  46848. </method>
  46849. <method name="setNumMapTasks"
  46850. abstract="false" native="false" synchronized="false"
  46851. static="false" final="false" visibility="public"
  46852. deprecated="not deprecated">
  46853. <param name="n" type="int"/>
  46854. <doc>
  46855. <![CDATA[Set the number of map tasks for this job.
  46856. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  46857. number of spawned map tasks depends on the number of {@link InputSplit}s
  46858. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  46859. A custom {@link InputFormat} is typically used to accurately control
  46860. the number of map tasks for the job.</p>
  46861. <h4 id="NoOfMaps">How many maps?</h4>
  46862. <p>The number of maps is usually driven by the total size of the inputs
  46863. i.e. total number of blocks of the input files.</p>
  46864. <p>The right level of parallelism for maps seems to be around 10-100 maps
  46865. per-node, although it has been set up to 300 or so for very cpu-light map
  46866. tasks. Task setup takes awhile, so it is best if the maps take at least a
  46867. minute to execute.</p>
  46868. <p>The default behavior of file-based {@link InputFormat}s is to split the
  46869. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  46870. bytes, of input files. However, the {@link FileSystem} blocksize of the
  46871. input files is treated as an upper bound for input splits. A lower bound
  46872. on the split size can be set via
  46873. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  46874. mapred.min.split.size</a>.</p>
  46875. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  46876. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  46877. used to set it even higher.</p>
  46878. @param n the number of map tasks for this job.
  46879. @see InputFormat#getSplits(JobConf, int)
  46880. @see FileInputFormat
  46881. @see FileSystem#getDefaultBlockSize()
  46882. @see FileStatus#getBlockSize()]]>
  46883. </doc>
  46884. </method>
  46885. <method name="getNumReduceTasks" return="int"
  46886. abstract="false" native="false" synchronized="false"
  46887. static="false" final="false" visibility="public"
  46888. deprecated="not deprecated">
  46889. <doc>
  46890. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  46891. <code>1</code>.
  46892. @return the number of reduce tasks for this job.]]>
  46893. </doc>
  46894. </method>
  46895. <method name="setNumReduceTasks"
  46896. abstract="false" native="false" synchronized="false"
  46897. static="false" final="false" visibility="public"
  46898. deprecated="not deprecated">
  46899. <param name="n" type="int"/>
  46900. <doc>
  46901. <![CDATA[Set the requisite number of reduce tasks for this job.
  46902. <h4 id="NoOfReduces">How many reduces?</h4>
  46903. <p>The right number of reduces seems to be <code>0.95</code> or
  46904. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  46905. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  46906. mapred.tasktracker.reduce.tasks.maximum</a>).
  46907. </p>
  46908. <p>With <code>0.95</code> all of the reduces can launch immediately and
  46909. start transfering map outputs as the maps finish. With <code>1.75</code>
  46910. the faster nodes will finish their first round of reduces and launch a
  46911. second wave of reduces doing a much better job of load balancing.</p>
  46912. <p>Increasing the number of reduces increases the framework overhead, but
  46913. increases load balancing and lowers the cost of failures.</p>
  46914. <p>The scaling factors above are slightly less than whole numbers to
  46915. reserve a few reduce slots in the framework for speculative-tasks, failures
  46916. etc.</p>
  46917. <h4 id="ReducerNone">Reducer NONE</h4>
  46918. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  46919. <p>In this case the output of the map-tasks directly go to distributed
  46920. file-system, to the path set by
  46921. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  46922. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  46923. @param n the number of reduce tasks for this job.]]>
  46924. </doc>
  46925. </method>
  46926. <method name="getMaxMapAttempts" return="int"
  46927. abstract="false" native="false" synchronized="false"
  46928. static="false" final="false" visibility="public"
  46929. deprecated="not deprecated">
  46930. <doc>
  46931. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46932. map task, as specified by the <code>mapred.map.max.attempts</code>
  46933. property. If this property is not already set, the default is 4 attempts.
  46934. @return the max number of attempts per map task.]]>
  46935. </doc>
  46936. </method>
  46937. <method name="setMaxMapAttempts"
  46938. abstract="false" native="false" synchronized="false"
  46939. static="false" final="false" visibility="public"
  46940. deprecated="not deprecated">
  46941. <param name="n" type="int"/>
  46942. <doc>
  46943. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46944. map task.
  46945. @param n the number of attempts per map task.]]>
  46946. </doc>
  46947. </method>
  46948. <method name="getMaxReduceAttempts" return="int"
  46949. abstract="false" native="false" synchronized="false"
  46950. static="false" final="false" visibility="public"
  46951. deprecated="not deprecated">
  46952. <doc>
  46953. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46954. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  46955. property. If this property is not already set, the default is 4 attempts.
  46956. @return the max number of attempts per reduce task.]]>
  46957. </doc>
  46958. </method>
  46959. <method name="setMaxReduceAttempts"
  46960. abstract="false" native="false" synchronized="false"
  46961. static="false" final="false" visibility="public"
  46962. deprecated="not deprecated">
  46963. <param name="n" type="int"/>
  46964. <doc>
  46965. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46966. reduce task.
  46967. @param n the number of attempts per reduce task.]]>
  46968. </doc>
  46969. </method>
  46970. <method name="getJobName" return="java.lang.String"
  46971. abstract="false" native="false" synchronized="false"
  46972. static="false" final="false" visibility="public"
  46973. deprecated="not deprecated">
  46974. <doc>
  46975. <![CDATA[Get the user-specified job name. This is only used to identify the
  46976. job to the user.
  46977. @return the job's name, defaulting to "".]]>
  46978. </doc>
  46979. </method>
  46980. <method name="setJobName"
  46981. abstract="false" native="false" synchronized="false"
  46982. static="false" final="false" visibility="public"
  46983. deprecated="not deprecated">
  46984. <param name="name" type="java.lang.String"/>
  46985. <doc>
  46986. <![CDATA[Set the user-specified job name.
  46987. @param name the job's new name.]]>
  46988. </doc>
  46989. </method>
  46990. <method name="getSessionId" return="java.lang.String"
  46991. abstract="false" native="false" synchronized="false"
  46992. static="false" final="false" visibility="public"
  46993. deprecated="not deprecated">
  46994. <doc>
  46995. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  46996. The session identifier is used to tag metric data that is reported to some
  46997. performance metrics system via the org.apache.hadoop.metrics API. The
  46998. session identifier is intended, in particular, for use by Hadoop-On-Demand
  46999. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  47000. HOD will set the session identifier by modifying the mapred-site.xml file
  47001. before starting the cluster.
  47002. When not running under HOD, this identifer is expected to remain set to
  47003. the empty string.
  47004. @return the session identifier, defaulting to "".]]>
  47005. </doc>
  47006. </method>
  47007. <method name="setSessionId"
  47008. abstract="false" native="false" synchronized="false"
  47009. static="false" final="false" visibility="public"
  47010. deprecated="not deprecated">
  47011. <param name="sessionId" type="java.lang.String"/>
  47012. <doc>
  47013. <![CDATA[Set the user-specified session identifier.
  47014. @param sessionId the new session id.]]>
  47015. </doc>
  47016. </method>
  47017. <method name="setMaxTaskFailuresPerTracker"
  47018. abstract="false" native="false" synchronized="false"
  47019. static="false" final="false" visibility="public"
  47020. deprecated="not deprecated">
  47021. <param name="noFailures" type="int"/>
  47022. <doc>
  47023. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  47024. If the no. of task failures exceeds <code>noFailures</code>, the
  47025. tasktracker is <i>blacklisted</i> for this job.
  47026. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  47027. </doc>
  47028. </method>
  47029. <method name="getMaxTaskFailuresPerTracker" return="int"
  47030. abstract="false" native="false" synchronized="false"
  47031. static="false" final="false" visibility="public"
  47032. deprecated="not deprecated">
  47033. <doc>
  47034. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  47035. If the no. of task failures exceeds this, the tasktracker is
  47036. <i>blacklisted</i> for this job.
  47037. @return the maximum no. of failures of a given job per tasktracker.]]>
  47038. </doc>
  47039. </method>
  47040. <method name="getMaxMapTaskFailuresPercent" return="int"
  47041. abstract="false" native="false" synchronized="false"
  47042. static="false" final="false" visibility="public"
  47043. deprecated="not deprecated">
  47044. <doc>
  47045. <![CDATA[Get the maximum percentage of map tasks that can fail without
  47046. the job being aborted.
  47047. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  47048. attempts before being declared as <i>failed</i>.
  47049. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  47050. the job being declared as {@link JobStatus#FAILED}.
  47051. @return the maximum percentage of map tasks that can fail without
  47052. the job being aborted.]]>
  47053. </doc>
  47054. </method>
  47055. <method name="setMaxMapTaskFailuresPercent"
  47056. abstract="false" native="false" synchronized="false"
  47057. static="false" final="false" visibility="public"
  47058. deprecated="not deprecated">
  47059. <param name="percent" type="int"/>
  47060. <doc>
  47061. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  47062. job being aborted.
  47063. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  47064. before being declared as <i>failed</i>.
  47065. @param percent the maximum percentage of map tasks that can fail without
  47066. the job being aborted.]]>
  47067. </doc>
  47068. </method>
  47069. <method name="getMaxReduceTaskFailuresPercent" return="int"
  47070. abstract="false" native="false" synchronized="false"
  47071. static="false" final="false" visibility="public"
  47072. deprecated="not deprecated">
  47073. <doc>
  47074. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  47075. the job being aborted.
  47076. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  47077. attempts before being declared as <i>failed</i>.
  47078. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  47079. in the job being declared as {@link JobStatus#FAILED}.
  47080. @return the maximum percentage of reduce tasks that can fail without
  47081. the job being aborted.]]>
  47082. </doc>
  47083. </method>
  47084. <method name="setMaxReduceTaskFailuresPercent"
  47085. abstract="false" native="false" synchronized="false"
  47086. static="false" final="false" visibility="public"
  47087. deprecated="not deprecated">
  47088. <param name="percent" type="int"/>
  47089. <doc>
  47090. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  47091. being aborted.
  47092. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  47093. attempts before being declared as <i>failed</i>.
  47094. @param percent the maximum percentage of reduce tasks that can fail without
  47095. the job being aborted.]]>
  47096. </doc>
  47097. </method>
  47098. <method name="setJobPriority"
  47099. abstract="false" native="false" synchronized="false"
  47100. static="false" final="false" visibility="public"
  47101. deprecated="not deprecated">
  47102. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  47103. <doc>
  47104. <![CDATA[Set {@link JobPriority} for this job.
  47105. @param prio the {@link JobPriority} for this job.]]>
  47106. </doc>
  47107. </method>
  47108. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  47109. abstract="false" native="false" synchronized="false"
  47110. static="false" final="false" visibility="public"
  47111. deprecated="not deprecated">
  47112. <doc>
  47113. <![CDATA[Get the {@link JobPriority} for this job.
  47114. @return the {@link JobPriority} for this job.]]>
  47115. </doc>
  47116. </method>
  47117. <method name="getProfileEnabled" return="boolean"
  47118. abstract="false" native="false" synchronized="false"
  47119. static="false" final="false" visibility="public"
  47120. deprecated="not deprecated">
  47121. <doc>
  47122. <![CDATA[Get whether the task profiling is enabled.
  47123. @return true if some tasks will be profiled]]>
  47124. </doc>
  47125. </method>
  47126. <method name="setProfileEnabled"
  47127. abstract="false" native="false" synchronized="false"
  47128. static="false" final="false" visibility="public"
  47129. deprecated="not deprecated">
  47130. <param name="newValue" type="boolean"/>
  47131. <doc>
  47132. <![CDATA[Set whether the system should collect profiler information for some of
  47133. the tasks in this job? The information is stored in the user log
  47134. directory.
  47135. @param newValue true means it should be gathered]]>
  47136. </doc>
  47137. </method>
  47138. <method name="getProfileParams" return="java.lang.String"
  47139. abstract="false" native="false" synchronized="false"
  47140. static="false" final="false" visibility="public"
  47141. deprecated="not deprecated">
  47142. <doc>
  47143. <![CDATA[Get the profiler configuration arguments.
  47144. The default value for this property is
  47145. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  47146. @return the parameters to pass to the task child to configure profiling]]>
  47147. </doc>
  47148. </method>
  47149. <method name="setProfileParams"
  47150. abstract="false" native="false" synchronized="false"
  47151. static="false" final="false" visibility="public"
  47152. deprecated="not deprecated">
  47153. <param name="value" type="java.lang.String"/>
  47154. <doc>
  47155. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  47156. will be replaced with the name of the profiling output file when the task
  47157. runs.
  47158. This value is passed to the task child JVM on the command line.
  47159. @param value the configuration string]]>
  47160. </doc>
  47161. </method>
  47162. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  47163. abstract="false" native="false" synchronized="false"
  47164. static="false" final="false" visibility="public"
  47165. deprecated="not deprecated">
  47166. <param name="isMap" type="boolean"/>
  47167. <doc>
  47168. <![CDATA[Get the range of maps or reduces to profile.
  47169. @param isMap is the task a map?
  47170. @return the task ranges]]>
  47171. </doc>
  47172. </method>
  47173. <method name="setProfileTaskRange"
  47174. abstract="false" native="false" synchronized="false"
  47175. static="false" final="false" visibility="public"
  47176. deprecated="not deprecated">
  47177. <param name="isMap" type="boolean"/>
  47178. <param name="newValue" type="java.lang.String"/>
  47179. <doc>
  47180. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  47181. must also be called.
  47182. @param newValue a set of integer ranges of the map ids]]>
  47183. </doc>
  47184. </method>
  47185. <method name="setMapDebugScript"
  47186. abstract="false" native="false" synchronized="false"
  47187. static="false" final="false" visibility="public"
  47188. deprecated="not deprecated">
  47189. <param name="mDbgScript" type="java.lang.String"/>
  47190. <doc>
  47191. <![CDATA[Set the debug script to run when the map tasks fail.
  47192. <p>The debug script can aid debugging of failed map tasks. The script is
  47193. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  47194. <p>The debug command, run on the node where the map failed, is:</p>
  47195. <p><pre><blockquote>
  47196. $script $stdout $stderr $syslog $jobconf.
  47197. </blockquote></pre></p>
  47198. <p> The script file is distributed through {@link DistributedCache}
  47199. APIs. The script needs to be symlinked. </p>
  47200. <p>Here is an example on how to submit a script
  47201. <p><blockquote><pre>
  47202. job.setMapDebugScript("./myscript");
  47203. DistributedCache.createSymlink(job);
  47204. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  47205. </pre></blockquote></p>
  47206. @param mDbgScript the script name]]>
  47207. </doc>
  47208. </method>
  47209. <method name="getMapDebugScript" return="java.lang.String"
  47210. abstract="false" native="false" synchronized="false"
  47211. static="false" final="false" visibility="public"
  47212. deprecated="not deprecated">
  47213. <doc>
  47214. <![CDATA[Get the map task's debug script.
  47215. @return the debug Script for the mapred job for failed map tasks.
  47216. @see #setMapDebugScript(String)]]>
  47217. </doc>
  47218. </method>
  47219. <method name="setReduceDebugScript"
  47220. abstract="false" native="false" synchronized="false"
  47221. static="false" final="false" visibility="public"
  47222. deprecated="not deprecated">
  47223. <param name="rDbgScript" type="java.lang.String"/>
  47224. <doc>
  47225. <![CDATA[Set the debug script to run when the reduce tasks fail.
  47226. <p>The debug script can aid debugging of failed reduce tasks. The script
  47227. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  47228. <p>The debug command, run on the node where the map failed, is:</p>
  47229. <p><pre><blockquote>
  47230. $script $stdout $stderr $syslog $jobconf.
  47231. </blockquote></pre></p>
  47232. <p> The script file is distributed through {@link DistributedCache}
  47233. APIs. The script file needs to be symlinked </p>
  47234. <p>Here is an example on how to submit a script
  47235. <p><blockquote><pre>
  47236. job.setReduceDebugScript("./myscript");
  47237. DistributedCache.createSymlink(job);
  47238. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  47239. </pre></blockquote></p>
  47240. @param rDbgScript the script name]]>
  47241. </doc>
  47242. </method>
  47243. <method name="getReduceDebugScript" return="java.lang.String"
  47244. abstract="false" native="false" synchronized="false"
  47245. static="false" final="false" visibility="public"
  47246. deprecated="not deprecated">
  47247. <doc>
  47248. <![CDATA[Get the reduce task's debug Script
  47249. @return the debug script for the mapred job for failed reduce tasks.
  47250. @see #setReduceDebugScript(String)]]>
  47251. </doc>
  47252. </method>
  47253. <method name="getJobEndNotificationURI" return="java.lang.String"
  47254. abstract="false" native="false" synchronized="false"
  47255. static="false" final="false" visibility="public"
  47256. deprecated="not deprecated">
  47257. <doc>
  47258. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  47259. has completed (success/failure).
  47260. @return the job end notification uri, <code>null</code> if it hasn't
  47261. been set.
  47262. @see #setJobEndNotificationURI(String)]]>
  47263. </doc>
  47264. </method>
  47265. <method name="setJobEndNotificationURI"
  47266. abstract="false" native="false" synchronized="false"
  47267. static="false" final="false" visibility="public"
  47268. deprecated="not deprecated">
  47269. <param name="uri" type="java.lang.String"/>
  47270. <doc>
  47271. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  47272. has completed (success/failure).
  47273. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  47274. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  47275. identifier and completion-status respectively.</p>
  47276. <p>This is typically used by application-writers to implement chaining of
  47277. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  47278. @param uri the job end notification uri
  47279. @see JobStatus
  47280. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  47281. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  47282. </doc>
  47283. </method>
  47284. <method name="getJobLocalDir" return="java.lang.String"
  47285. abstract="false" native="false" synchronized="false"
  47286. static="false" final="false" visibility="public"
  47287. deprecated="not deprecated">
  47288. <doc>
  47289. <![CDATA[Get job-specific shared directory for use as scratch space
  47290. <p>
  47291. When a job starts, a shared directory is created at location
  47292. <code>
  47293. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  47294. This directory is exposed to the users through
  47295. <code>job.local.dir </code>.
  47296. So, the tasks can use this space
  47297. as scratch space and share files among them. </p>
  47298. This value is available as System property also.
  47299. @return The localized job specific shared directory]]>
  47300. </doc>
  47301. </method>
  47302. <method name="getMemoryForMapTask" return="long"
  47303. abstract="false" native="false" synchronized="false"
  47304. static="false" final="false" visibility="public"
  47305. deprecated="not deprecated">
  47306. <doc>
  47307. <![CDATA[Get memory required to run a map task of the job, in MB.
  47308. If a value is specified in the configuration, it is returned.
  47309. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  47310. <p/>
  47311. For backward compatibility, if the job configuration sets the
  47312. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  47313. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  47314. after converting it from bytes to MB.
  47315. @return memory required to run a map task of the job, in MB,
  47316. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  47317. </doc>
  47318. </method>
  47319. <method name="setMemoryForMapTask"
  47320. abstract="false" native="false" synchronized="false"
  47321. static="false" final="false" visibility="public"
  47322. deprecated="not deprecated">
  47323. <param name="mem" type="long"/>
  47324. </method>
  47325. <method name="getMemoryForReduceTask" return="long"
  47326. abstract="false" native="false" synchronized="false"
  47327. static="false" final="false" visibility="public"
  47328. deprecated="not deprecated">
  47329. <doc>
  47330. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  47331. If a value is specified in the configuration, it is returned.
  47332. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  47333. <p/>
  47334. For backward compatibility, if the job configuration sets the
  47335. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  47336. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  47337. after converting it from bytes to MB.
  47338. @return memory required to run a reduce task of the job, in MB,
  47339. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  47340. </doc>
  47341. </method>
  47342. <method name="setMemoryForReduceTask"
  47343. abstract="false" native="false" synchronized="false"
  47344. static="false" final="false" visibility="public"
  47345. deprecated="not deprecated">
  47346. <param name="mem" type="long"/>
  47347. </method>
  47348. <method name="getQueueName" return="java.lang.String"
  47349. abstract="false" native="false" synchronized="false"
  47350. static="false" final="false" visibility="public"
  47351. deprecated="not deprecated">
  47352. <doc>
  47353. <![CDATA[Return the name of the queue to which this job is submitted.
  47354. Defaults to 'default'.
  47355. @return name of the queue]]>
  47356. </doc>
  47357. </method>
  47358. <method name="setQueueName"
  47359. abstract="false" native="false" synchronized="false"
  47360. static="false" final="false" visibility="public"
  47361. deprecated="not deprecated">
  47362. <param name="queueName" type="java.lang.String"/>
  47363. <doc>
  47364. <![CDATA[Set the name of the queue to which this job should be submitted.
  47365. @param queueName Name of the queue]]>
  47366. </doc>
  47367. </method>
  47368. <method name="normalizeMemoryConfigValue" return="long"
  47369. abstract="false" native="false" synchronized="false"
  47370. static="true" final="false" visibility="public"
  47371. deprecated="not deprecated">
  47372. <param name="val" type="long"/>
  47373. <doc>
  47374. <![CDATA[Normalize the negative values in configuration
  47375. @param val
  47376. @return normalized value]]>
  47377. </doc>
  47378. </method>
  47379. <method name="getMaxVirtualMemoryForTask" return="long"
  47380. abstract="false" native="false" synchronized="false"
  47381. static="false" final="false" visibility="public"
  47382. deprecated="Use {@link #getMemoryForMapTask()} and
  47383. {@link #getMemoryForReduceTask()}">
  47384. <doc>
  47385. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  47386. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  47387. <p/>
  47388. This method is deprecated. Now, different memory limits can be
  47389. set for map and reduce tasks of a job, in MB.
  47390. <p/>
  47391. For backward compatibility, if the job configuration sets the
  47392. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  47393. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  47394. Otherwise, this method will return the larger of the values returned by
  47395. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  47396. after converting them into bytes.
  47397. @return Memory required to run a task of this job, in bytes,
  47398. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  47399. @see #setMaxVirtualMemoryForTask(long)
  47400. @deprecated Use {@link #getMemoryForMapTask()} and
  47401. {@link #getMemoryForReduceTask()}]]>
  47402. </doc>
  47403. </method>
  47404. <method name="setMaxVirtualMemoryForTask"
  47405. abstract="false" native="false" synchronized="false"
  47406. static="false" final="false" visibility="public"
  47407. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  47408. Use {@link #setMemoryForReduceTask(long mem)}">
  47409. <param name="vmem" type="long"/>
  47410. <doc>
  47411. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  47412. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  47413. <p/>
  47414. mapred.task.maxvmem is split into
  47415. mapred.job.map.memory.mb
  47416. and mapred.job.map.memory.mb,mapred
  47417. each of the new key are set
  47418. as mapred.task.maxvmem / 1024
  47419. as new values are in MB
  47420. @param vmem Maximum amount of virtual memory in bytes any task of this job
  47421. can use.
  47422. @see #getMaxVirtualMemoryForTask()
  47423. @deprecated
  47424. Use {@link #setMemoryForMapTask(long mem)} and
  47425. Use {@link #setMemoryForReduceTask(long mem)}]]>
  47426. </doc>
  47427. </method>
  47428. <method name="getMaxPhysicalMemoryForTask" return="long"
  47429. abstract="false" native="false" synchronized="false"
  47430. static="false" final="false" visibility="public"
  47431. deprecated="this variable is deprecated and nolonger in use.">
  47432. <doc>
  47433. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  47434. </doc>
  47435. </method>
  47436. <method name="setMaxPhysicalMemoryForTask"
  47437. abstract="false" native="false" synchronized="false"
  47438. static="false" final="false" visibility="public"
  47439. deprecated="not deprecated">
  47440. <param name="mem" type="long"/>
  47441. </method>
  47442. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  47443. transient="false" volatile="false"
  47444. static="true" final="true" visibility="public"
  47445. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  47446. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  47447. <doc>
  47448. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  47449. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  47450. </doc>
  47451. </field>
  47452. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  47453. transient="false" volatile="false"
  47454. static="true" final="true" visibility="public"
  47455. deprecated="deprecated, no comment">
  47456. <doc>
  47457. <![CDATA[@deprecated]]>
  47458. </doc>
  47459. </field>
  47460. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  47461. transient="false" volatile="false"
  47462. static="true" final="true" visibility="public"
  47463. deprecated="deprecated, no comment">
  47464. <doc>
  47465. <![CDATA[@deprecated]]>
  47466. </doc>
  47467. </field>
  47468. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  47469. transient="false" volatile="false"
  47470. static="true" final="true" visibility="public"
  47471. deprecated="deprecated, no comment">
  47472. <doc>
  47473. <![CDATA[@deprecated]]>
  47474. </doc>
  47475. </field>
  47476. <field name="DISABLED_MEMORY_LIMIT" type="long"
  47477. transient="false" volatile="false"
  47478. static="true" final="true" visibility="public"
  47479. deprecated="not deprecated">
  47480. <doc>
  47481. <![CDATA[A value which if set for memory related configuration options,
  47482. indicates that the options are turned off.]]>
  47483. </doc>
  47484. </field>
  47485. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  47486. transient="false" volatile="false"
  47487. static="true" final="true" visibility="public"
  47488. deprecated="not deprecated">
  47489. <doc>
  47490. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  47491. </doc>
  47492. </field>
  47493. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  47494. transient="false" volatile="false"
  47495. static="true" final="true" visibility="public"
  47496. deprecated="not deprecated">
  47497. <doc>
  47498. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  47499. name is mentioned.]]>
  47500. </doc>
  47501. </field>
  47502. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  47503. transient="false" volatile="false"
  47504. static="true" final="true" visibility="public"
  47505. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  47506. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  47507. <doc>
  47508. <![CDATA[Configuration key to set the java command line options for the child
  47509. map and reduce tasks.
  47510. Java opts for the task tracker child processes.
  47511. The following symbol, if present, will be interpolated: @taskid@.
  47512. It is replaced by current TaskID. Any other occurrences of '@' will go
  47513. unchanged.
  47514. For example, to enable verbose gc logging to a file named for the taskid in
  47515. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  47516. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  47517. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  47518. control the maximum virtual memory of the child processes.
  47519. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  47520. other environment variables to the child processes.
  47521. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  47522. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  47523. </doc>
  47524. </field>
  47525. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  47526. transient="false" volatile="false"
  47527. static="true" final="true" visibility="public"
  47528. deprecated="not deprecated">
  47529. <doc>
  47530. <![CDATA[Configuration key to set the java command line options for the map tasks.
  47531. Java opts for the task tracker child map processes.
  47532. The following symbol, if present, will be interpolated: @taskid@.
  47533. It is replaced by current TaskID. Any other occurrences of '@' will go
  47534. unchanged.
  47535. For example, to enable verbose gc logging to a file named for the taskid in
  47536. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  47537. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  47538. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  47539. control the maximum virtual memory of the map processes.
  47540. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  47541. other environment variables to the map processes.]]>
  47542. </doc>
  47543. </field>
  47544. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  47545. transient="false" volatile="false"
  47546. static="true" final="true" visibility="public"
  47547. deprecated="not deprecated">
  47548. <doc>
  47549. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  47550. Java opts for the task tracker child reduce processes.
  47551. The following symbol, if present, will be interpolated: @taskid@.
  47552. It is replaced by current TaskID. Any other occurrences of '@' will go
  47553. unchanged.
  47554. For example, to enable verbose gc logging to a file named for the taskid in
  47555. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  47556. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  47557. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  47558. to control the maximum virtual memory of the reduce processes.
  47559. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  47560. pass process environment variables to the reduce processes.]]>
  47561. </doc>
  47562. </field>
  47563. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  47564. transient="false" volatile="false"
  47565. static="true" final="true" visibility="public"
  47566. deprecated="not deprecated">
  47567. </field>
  47568. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  47569. transient="false" volatile="false"
  47570. static="true" final="true" visibility="public"
  47571. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  47572. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  47573. <doc>
  47574. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  47575. map and reduce tasks (in kilo-bytes).
  47576. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47577. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  47578. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  47579. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  47580. </doc>
  47581. </field>
  47582. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  47583. transient="false" volatile="false"
  47584. static="true" final="true" visibility="public"
  47585. deprecated="not deprecated">
  47586. <doc>
  47587. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47588. map tasks (in kilo-bytes).
  47589. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47590. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  47591. </doc>
  47592. </field>
  47593. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  47594. transient="false" volatile="false"
  47595. static="true" final="true" visibility="public"
  47596. deprecated="not deprecated">
  47597. <doc>
  47598. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47599. reduce tasks (in kilo-bytes).
  47600. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47601. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  47602. </doc>
  47603. </field>
  47604. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  47605. transient="false" volatile="false"
  47606. static="true" final="true" visibility="public"
  47607. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  47608. {@link #MAPRED_REDUCE_TASK_ENV}">
  47609. <doc>
  47610. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  47611. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47612. reference existing environment variables via <code>$key</code>.
  47613. Example:
  47614. <ul>
  47615. <li> A=foo - This will set the env variable A to foo. </li>
  47616. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47617. </ul>
  47618. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  47619. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  47620. </doc>
  47621. </field>
  47622. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  47623. transient="false" volatile="false"
  47624. static="true" final="true" visibility="public"
  47625. deprecated="not deprecated">
  47626. <doc>
  47627. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47628. map tasks.
  47629. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47630. reference existing environment variables via <code>$key</code>.
  47631. Example:
  47632. <ul>
  47633. <li> A=foo - This will set the env variable A to foo. </li>
  47634. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47635. </ul>]]>
  47636. </doc>
  47637. </field>
  47638. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  47639. transient="false" volatile="false"
  47640. static="true" final="true" visibility="public"
  47641. deprecated="not deprecated">
  47642. <doc>
  47643. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47644. reduce tasks.
  47645. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47646. reference existing environment variables via <code>$key</code>.
  47647. Example:
  47648. <ul>
  47649. <li> A=foo - This will set the env variable A to foo. </li>
  47650. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47651. </ul>]]>
  47652. </doc>
  47653. </field>
  47654. <doc>
  47655. <![CDATA[A map/reduce job configuration.
  47656. <p><code>JobConf</code> is the primary interface for a user to describe a
  47657. map-reduce job to the Hadoop framework for execution. The framework tries to
  47658. faithfully execute the job as-is described by <code>JobConf</code>, however:
  47659. <ol>
  47660. <li>
  47661. Some configuration parameters might have been marked as
  47662. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  47663. final</a> by administrators and hence cannot be altered.
  47664. </li>
  47665. <li>
  47666. While some job parameters are straight-forward to set
  47667. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  47668. rest of the framework and/or job-configuration and is relatively more
  47669. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  47670. </li>
  47671. </ol></p>
  47672. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  47673. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  47674. {@link OutputFormat} implementations to be used etc.
  47675. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  47676. of the job such as <code>Comparator</code>s to be used, files to be put in
  47677. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  47678. are to be compressed (and how), debugability via user-provided scripts
  47679. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  47680. for doing post-processing on task logs, task's stdout, stderr, syslog.
  47681. and etc.</p>
  47682. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  47683. <p><blockquote><pre>
  47684. // Create a new JobConf
  47685. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47686. // Specify various job-specific parameters
  47687. job.setJobName("myjob");
  47688. FileInputFormat.setInputPaths(job, new Path("in"));
  47689. FileOutputFormat.setOutputPath(job, new Path("out"));
  47690. job.setMapperClass(MyJob.MyMapper.class);
  47691. job.setCombinerClass(MyJob.MyReducer.class);
  47692. job.setReducerClass(MyJob.MyReducer.class);
  47693. job.setInputFormat(SequenceFileInputFormat.class);
  47694. job.setOutputFormat(SequenceFileOutputFormat.class);
  47695. </pre></blockquote></p>
  47696. @see JobClient
  47697. @see ClusterStatus
  47698. @see Tool
  47699. @see DistributedCache]]>
  47700. </doc>
  47701. </class>
  47702. <!-- end class org.apache.hadoop.mapred.JobConf -->
  47703. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  47704. <interface name="JobConfigurable" abstract="true"
  47705. static="false" final="false" visibility="public"
  47706. deprecated="not deprecated">
  47707. <method name="configure"
  47708. abstract="false" native="false" synchronized="false"
  47709. static="false" final="false" visibility="public"
  47710. deprecated="not deprecated">
  47711. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47712. <doc>
  47713. <![CDATA[Initializes a new instance from a {@link JobConf}.
  47714. @param job the configuration]]>
  47715. </doc>
  47716. </method>
  47717. <doc>
  47718. <![CDATA[That what may be configured.]]>
  47719. </doc>
  47720. </interface>
  47721. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  47722. <!-- start class org.apache.hadoop.mapred.JobContext -->
  47723. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  47724. abstract="false"
  47725. static="false" final="false" visibility="public"
  47726. deprecated="not deprecated">
  47727. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  47728. abstract="false" native="false" synchronized="false"
  47729. static="false" final="false" visibility="public"
  47730. deprecated="not deprecated">
  47731. <doc>
  47732. <![CDATA[Get the job Configuration
  47733. @return JobConf]]>
  47734. </doc>
  47735. </method>
  47736. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  47737. abstract="false" native="false" synchronized="false"
  47738. static="false" final="false" visibility="public"
  47739. deprecated="not deprecated">
  47740. <doc>
  47741. <![CDATA[Get the progress mechanism for reporting progress.
  47742. @return progress mechanism]]>
  47743. </doc>
  47744. </method>
  47745. </class>
  47746. <!-- end class org.apache.hadoop.mapred.JobContext -->
  47747. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  47748. <class name="JobEndNotifier" extends="java.lang.Object"
  47749. abstract="false"
  47750. static="false" final="false" visibility="public"
  47751. deprecated="not deprecated">
  47752. <constructor name="JobEndNotifier"
  47753. static="false" final="false" visibility="public"
  47754. deprecated="not deprecated">
  47755. </constructor>
  47756. <method name="startNotifier"
  47757. abstract="false" native="false" synchronized="false"
  47758. static="true" final="false" visibility="public"
  47759. deprecated="not deprecated">
  47760. </method>
  47761. <method name="stopNotifier"
  47762. abstract="false" native="false" synchronized="false"
  47763. static="true" final="false" visibility="public"
  47764. deprecated="not deprecated">
  47765. </method>
  47766. <method name="registerNotification"
  47767. abstract="false" native="false" synchronized="false"
  47768. static="true" final="false" visibility="public"
  47769. deprecated="not deprecated">
  47770. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47771. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47772. </method>
  47773. <method name="localRunnerNotification"
  47774. abstract="false" native="false" synchronized="false"
  47775. static="true" final="false" visibility="public"
  47776. deprecated="not deprecated">
  47777. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47778. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47779. </method>
  47780. </class>
  47781. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  47782. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  47783. <class name="JobHistory" extends="java.lang.Object"
  47784. abstract="false"
  47785. static="false" final="false" visibility="public"
  47786. deprecated="not deprecated">
  47787. <constructor name="JobHistory"
  47788. static="false" final="false" visibility="public"
  47789. deprecated="not deprecated">
  47790. </constructor>
  47791. <method name="getHistoryFilePath" return="java.lang.String"
  47792. abstract="false" native="false" synchronized="false"
  47793. static="true" final="false" visibility="public"
  47794. deprecated="not deprecated">
  47795. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47796. <doc>
  47797. <![CDATA[Given the job id, return the history file path from the cache]]>
  47798. </doc>
  47799. </method>
  47800. <method name="init"
  47801. abstract="false" native="false" synchronized="false"
  47802. static="true" final="false" visibility="public"
  47803. deprecated="not deprecated">
  47804. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  47805. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47806. <param name="hostname" type="java.lang.String"/>
  47807. <param name="jobTrackerStartTime" type="long"/>
  47808. <exception name="IOException" type="java.io.IOException"/>
  47809. <doc>
  47810. <![CDATA[Initialize JobHistory files.
  47811. @param conf Jobconf of the job tracker.
  47812. @param hostname jobtracker's hostname
  47813. @param jobTrackerStartTime jobtracker's start time]]>
  47814. </doc>
  47815. </method>
  47816. <method name="parseHistoryFromFS"
  47817. abstract="false" native="false" synchronized="false"
  47818. static="true" final="false" visibility="public"
  47819. deprecated="not deprecated">
  47820. <param name="path" type="java.lang.String"/>
  47821. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  47822. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  47823. <exception name="IOException" type="java.io.IOException"/>
  47824. <doc>
  47825. <![CDATA[Parses history file and invokes Listener.handle() for
  47826. each line of history. It can be used for looking through history
  47827. files for specific items without having to keep whole history in memory.
  47828. @param path path to history file
  47829. @param l Listener for history events
  47830. @param fs FileSystem where history file is present
  47831. @throws IOException]]>
  47832. </doc>
  47833. </method>
  47834. <method name="getTaskLogsUrl" return="java.lang.String"
  47835. abstract="false" native="false" synchronized="false"
  47836. static="true" final="false" visibility="public"
  47837. deprecated="not deprecated">
  47838. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  47839. <doc>
  47840. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  47841. @param attempt
  47842. @return the taskLogsUrl. null if http-port or tracker-name or
  47843. task-attempt-id are unavailable.]]>
  47844. </doc>
  47845. </method>
  47846. <field name="LOG" type="org.apache.commons.logging.Log"
  47847. transient="false" volatile="false"
  47848. static="true" final="true" visibility="public"
  47849. deprecated="not deprecated">
  47850. </field>
  47851. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  47852. transient="false" volatile="false"
  47853. static="true" final="true" visibility="public"
  47854. deprecated="not deprecated">
  47855. </field>
  47856. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  47857. transient="false" volatile="false"
  47858. static="true" final="true" visibility="public"
  47859. deprecated="not deprecated">
  47860. </field>
  47861. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  47862. transient="false" volatile="false"
  47863. static="true" final="true" visibility="public"
  47864. deprecated="not deprecated">
  47865. </field>
  47866. <doc>
  47867. <![CDATA[Provides methods for writing to and reading from job history.
  47868. Job History works in an append mode, JobHistory and its inner classes provide methods
  47869. to log job events.
  47870. JobHistory is split into multiple files, format of each file is plain text where each line
  47871. is of the format [type (key=value)*], where type identifies the type of the record.
  47872. Type maps to UID of one of the inner classes of this class.
  47873. Job history is maintained in a master index which contains star/stop times of all jobs with
  47874. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  47875. file. name of job history files follows the format jobtrackerId_jobid
  47876. For parsing the job history it supports a listener based interface where each line is parsed
  47877. and passed to listener. The listener can create an object model of history or look for specific
  47878. events and discard rest of the history.
  47879. CHANGE LOG :
  47880. Version 0 : The history has the following format :
  47881. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  47882. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  47883. Note that a '"' is the line delimiter.
  47884. Version 1 : Changes the line delimiter to '.'
  47885. Values are now escaped for unambiguous parsing.
  47886. Added the Meta tag to store version info.]]>
  47887. </doc>
  47888. </class>
  47889. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  47890. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47891. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  47892. abstract="false"
  47893. static="true" final="false" visibility="public"
  47894. deprecated="not deprecated">
  47895. <implements name="java.lang.Runnable"/>
  47896. <constructor name="JobHistory.HistoryCleaner"
  47897. static="false" final="false" visibility="public"
  47898. deprecated="not deprecated">
  47899. </constructor>
  47900. <method name="run"
  47901. abstract="false" native="false" synchronized="false"
  47902. static="false" final="false" visibility="public"
  47903. deprecated="not deprecated">
  47904. <doc>
  47905. <![CDATA[Cleans up history data.]]>
  47906. </doc>
  47907. </method>
  47908. <doc>
  47909. <![CDATA[Delete history files older than one month. Update master index and remove all
  47910. jobs older than one month. Also if a job tracker has no jobs in last one month
  47911. remove reference to the job tracker.]]>
  47912. </doc>
  47913. </class>
  47914. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47915. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  47916. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  47917. abstract="false"
  47918. static="true" final="false" visibility="public"
  47919. deprecated="not deprecated">
  47920. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  47921. static="false" final="false" visibility="public"
  47922. deprecated="not deprecated">
  47923. <doc>
  47924. <![CDATA[Create new JobInfo]]>
  47925. </doc>
  47926. </constructor>
  47927. <method name="getAllTasks" return="java.util.Map"
  47928. abstract="false" native="false" synchronized="false"
  47929. static="false" final="false" visibility="public"
  47930. deprecated="not deprecated">
  47931. <doc>
  47932. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  47933. </doc>
  47934. </method>
  47935. <method name="getJobACLs" return="java.util.Map"
  47936. abstract="false" native="false" synchronized="false"
  47937. static="false" final="false" visibility="public"
  47938. deprecated="not deprecated">
  47939. <doc>
  47940. <![CDATA[Get the job acls.
  47941. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  47942. </doc>
  47943. </method>
  47944. <method name="handle"
  47945. abstract="false" native="false" synchronized="true"
  47946. static="false" final="false" visibility="public"
  47947. deprecated="not deprecated">
  47948. <param name="values" type="java.util.Map"/>
  47949. </method>
  47950. <method name="getLocalJobFilePath" return="java.lang.String"
  47951. abstract="false" native="false" synchronized="false"
  47952. static="true" final="false" visibility="public"
  47953. deprecated="not deprecated">
  47954. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47955. <doc>
  47956. <![CDATA[Get the path of the locally stored job file
  47957. @param jobId id of the job
  47958. @return the path of the job file on the local file system]]>
  47959. </doc>
  47960. </method>
  47961. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  47962. abstract="false" native="false" synchronized="false"
  47963. static="true" final="false" visibility="public"
  47964. deprecated="not deprecated">
  47965. <param name="logFile" type="java.lang.String"/>
  47966. <exception name="IOException" type="java.io.IOException"/>
  47967. <doc>
  47968. <![CDATA[Helper function to encode the URL of the path of the job-history
  47969. log file.
  47970. @param logFile path of the job-history file
  47971. @return URL encoded path
  47972. @throws IOException]]>
  47973. </doc>
  47974. </method>
  47975. <method name="encodeJobHistoryFileName" return="java.lang.String"
  47976. abstract="false" native="false" synchronized="false"
  47977. static="true" final="false" visibility="public"
  47978. deprecated="not deprecated">
  47979. <param name="logFileName" type="java.lang.String"/>
  47980. <exception name="IOException" type="java.io.IOException"/>
  47981. <doc>
  47982. <![CDATA[Helper function to encode the URL of the filename of the job-history
  47983. log file.
  47984. @param logFileName file name of the job-history file
  47985. @return URL encoded filename
  47986. @throws IOException]]>
  47987. </doc>
  47988. </method>
  47989. <method name="decodeJobHistoryFileName" return="java.lang.String"
  47990. abstract="false" native="false" synchronized="false"
  47991. static="true" final="false" visibility="public"
  47992. deprecated="not deprecated">
  47993. <param name="logFileName" type="java.lang.String"/>
  47994. <exception name="IOException" type="java.io.IOException"/>
  47995. <doc>
  47996. <![CDATA[Helper function to decode the URL of the filename of the job-history
  47997. log file.
  47998. @param logFileName file name of the job-history file
  47999. @return URL decoded filename
  48000. @throws IOException]]>
  48001. </doc>
  48002. </method>
  48003. <method name="getUserName" return="java.lang.String"
  48004. abstract="false" native="false" synchronized="false"
  48005. static="true" final="false" visibility="public"
  48006. deprecated="not deprecated">
  48007. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48008. <doc>
  48009. <![CDATA[Get the user name from the job conf]]>
  48010. </doc>
  48011. </method>
  48012. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  48013. abstract="false" native="false" synchronized="false"
  48014. static="true" final="false" visibility="public"
  48015. deprecated="not deprecated">
  48016. <param name="logFileName" type="java.lang.String"/>
  48017. <doc>
  48018. <![CDATA[Get the job history file path given the history filename]]>
  48019. </doc>
  48020. </method>
  48021. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  48022. abstract="false" native="false" synchronized="false"
  48023. static="true" final="false" visibility="public"
  48024. deprecated="not deprecated">
  48025. <param name="logFileName" type="java.lang.String"/>
  48026. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48027. <doc>
  48028. <![CDATA[Get the user job history file path]]>
  48029. </doc>
  48030. </method>
  48031. <method name="getJobHistoryFileName" return="java.lang.String"
  48032. abstract="false" native="false" synchronized="true"
  48033. static="true" final="false" visibility="public"
  48034. deprecated="not deprecated">
  48035. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48036. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  48037. <exception name="IOException" type="java.io.IOException"/>
  48038. <doc>
  48039. <![CDATA[Recover the job history filename from the history folder.
  48040. Uses the following pattern
  48041. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  48042. @param jobConf the job conf
  48043. @param id job id]]>
  48044. </doc>
  48045. </method>
  48046. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  48047. abstract="false" native="false" synchronized="true"
  48048. static="true" final="false" visibility="public"
  48049. deprecated="not deprecated">
  48050. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  48051. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  48052. <exception name="IOException" type="java.io.IOException"/>
  48053. <doc>
  48054. <![CDATA[Selects one of the two files generated as a part of recovery.
  48055. The thumb rule is that always select the oldest file.
  48056. This call makes sure that only one file is left in the end.
  48057. @param conf job conf
  48058. @param logFilePath Path of the log file
  48059. @throws IOException]]>
  48060. </doc>
  48061. </method>
  48062. <method name="logSubmitted"
  48063. abstract="false" native="false" synchronized="false"
  48064. static="true" final="false" visibility="public"
  48065. deprecated="Use
  48066. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  48067. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48068. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48069. <param name="jobConfPath" type="java.lang.String"/>
  48070. <param name="submitTime" type="long"/>
  48071. <exception name="IOException" type="java.io.IOException"/>
  48072. <doc>
  48073. <![CDATA[Log job submitted event to history. Creates a new file in history
  48074. for the job. if history file creation fails, it disables history
  48075. for all other events.
  48076. @param jobId job id assigned by job tracker.
  48077. @param jobConf job conf of the job
  48078. @param jobConfPath path to job conf xml file in HDFS.
  48079. @param submitTime time when job tracker received the job
  48080. @throws IOException
  48081. @deprecated Use
  48082. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  48083. </doc>
  48084. </method>
  48085. <method name="logSubmitted"
  48086. abstract="false" native="false" synchronized="false"
  48087. static="true" final="false" visibility="public"
  48088. deprecated="not deprecated">
  48089. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48090. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48091. <param name="jobConfPath" type="java.lang.String"/>
  48092. <param name="submitTime" type="long"/>
  48093. <param name="restarted" type="boolean"/>
  48094. <exception name="IOException" type="java.io.IOException"/>
  48095. </method>
  48096. <method name="logInited"
  48097. abstract="false" native="false" synchronized="false"
  48098. static="true" final="false" visibility="public"
  48099. deprecated="not deprecated">
  48100. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48101. <param name="startTime" type="long"/>
  48102. <param name="totalMaps" type="int"/>
  48103. <param name="totalReduces" type="int"/>
  48104. <doc>
  48105. <![CDATA[Logs launch time of job.
  48106. @param jobId job id, assigned by jobtracker.
  48107. @param startTime start time of job.
  48108. @param totalMaps total maps assigned by jobtracker.
  48109. @param totalReduces total reduces.]]>
  48110. </doc>
  48111. </method>
  48112. <method name="logStarted"
  48113. abstract="false" native="false" synchronized="false"
  48114. static="true" final="false" visibility="public"
  48115. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  48116. {@link #logStarted(JobID)}">
  48117. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48118. <param name="startTime" type="long"/>
  48119. <param name="totalMaps" type="int"/>
  48120. <param name="totalReduces" type="int"/>
  48121. <doc>
  48122. <![CDATA[Logs the job as RUNNING.
  48123. @param jobId job id, assigned by jobtracker.
  48124. @param startTime start time of job.
  48125. @param totalMaps total maps assigned by jobtracker.
  48126. @param totalReduces total reduces.
  48127. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  48128. {@link #logStarted(JobID)}]]>
  48129. </doc>
  48130. </method>
  48131. <method name="logStarted"
  48132. abstract="false" native="false" synchronized="false"
  48133. static="true" final="false" visibility="public"
  48134. deprecated="not deprecated">
  48135. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48136. <doc>
  48137. <![CDATA[Logs job as running
  48138. @param jobId job id, assigned by jobtracker.]]>
  48139. </doc>
  48140. </method>
  48141. <method name="logFinished"
  48142. abstract="false" native="false" synchronized="false"
  48143. static="true" final="false" visibility="public"
  48144. deprecated="not deprecated">
  48145. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48146. <param name="finishTime" type="long"/>
  48147. <param name="finishedMaps" type="int"/>
  48148. <param name="finishedReduces" type="int"/>
  48149. <param name="failedMaps" type="int"/>
  48150. <param name="failedReduces" type="int"/>
  48151. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  48152. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  48153. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48154. <doc>
  48155. <![CDATA[Log job finished. closes the job file in history.
  48156. @param jobId job id, assigned by jobtracker.
  48157. @param finishTime finish time of job in ms.
  48158. @param finishedMaps no of maps successfully finished.
  48159. @param finishedReduces no of reduces finished sucessfully.
  48160. @param failedMaps no of failed map tasks.
  48161. @param failedReduces no of failed reduce tasks.
  48162. @param counters the counters from the job]]>
  48163. </doc>
  48164. </method>
  48165. <method name="logFailed"
  48166. abstract="false" native="false" synchronized="false"
  48167. static="true" final="false" visibility="public"
  48168. deprecated="not deprecated">
  48169. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  48170. <param name="timestamp" type="long"/>
  48171. <param name="finishedMaps" type="int"/>
  48172. <param name="finishedReduces" type="int"/>
  48173. <param name="failReason" type="java.lang.String"/>
  48174. <doc>
  48175. <![CDATA[Logs job failed event. Closes the job history log file.
  48176. @param jobid job id
  48177. @param timestamp time when job failure was detected in ms.
  48178. @param finishedMaps no finished map tasks.
  48179. @param finishedReduces no of finished reduce tasks.]]>
  48180. </doc>
  48181. </method>
  48182. <method name="logKilled"
  48183. abstract="false" native="false" synchronized="false"
  48184. static="true" final="false" visibility="public"
  48185. deprecated="not deprecated">
  48186. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  48187. <param name="timestamp" type="long"/>
  48188. <param name="finishedMaps" type="int"/>
  48189. <param name="finishedReduces" type="int"/>
  48190. <doc>
  48191. <![CDATA[Logs job killed event. Closes the job history log file.
  48192. @param jobid
  48193. job id
  48194. @param timestamp
  48195. time when job killed was issued in ms.
  48196. @param finishedMaps
  48197. no finished map tasks.
  48198. @param finishedReduces
  48199. no of finished reduce tasks.]]>
  48200. </doc>
  48201. </method>
  48202. <method name="logJobPriority"
  48203. abstract="false" native="false" synchronized="false"
  48204. static="true" final="false" visibility="public"
  48205. deprecated="not deprecated">
  48206. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  48207. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  48208. <doc>
  48209. <![CDATA[Log job's priority.
  48210. @param jobid job id
  48211. @param priority Jobs priority]]>
  48212. </doc>
  48213. </method>
  48214. <method name="logJobInfo"
  48215. abstract="false" native="false" synchronized="false"
  48216. static="true" final="false" visibility="public"
  48217. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  48218. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  48219. <param name="submitTime" type="long"/>
  48220. <param name="launchTime" type="long"/>
  48221. <param name="restartCount" type="int"/>
  48222. <doc>
  48223. <![CDATA[Log job's submit-time/launch-time
  48224. @param jobid job id
  48225. @param submitTime job's submit time
  48226. @param launchTime job's launch time
  48227. @param restartCount number of times the job got restarted
  48228. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  48229. </doc>
  48230. </method>
  48231. <method name="logJobInfo"
  48232. abstract="false" native="false" synchronized="false"
  48233. static="true" final="false" visibility="public"
  48234. deprecated="not deprecated">
  48235. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  48236. <param name="submitTime" type="long"/>
  48237. <param name="launchTime" type="long"/>
  48238. </method>
  48239. <doc>
  48240. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  48241. </doc>
  48242. </class>
  48243. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  48244. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  48245. <class name="JobHistory.Keys" extends="java.lang.Enum"
  48246. abstract="false"
  48247. static="true" final="true" visibility="public"
  48248. deprecated="not deprecated">
  48249. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  48250. abstract="false" native="false" synchronized="false"
  48251. static="true" final="false" visibility="public"
  48252. deprecated="not deprecated">
  48253. </method>
  48254. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  48255. abstract="false" native="false" synchronized="false"
  48256. static="true" final="false" visibility="public"
  48257. deprecated="not deprecated">
  48258. <param name="name" type="java.lang.String"/>
  48259. </method>
  48260. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48261. transient="false" volatile="false"
  48262. static="true" final="true" visibility="public"
  48263. deprecated="not deprecated">
  48264. </field>
  48265. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48266. transient="false" volatile="false"
  48267. static="true" final="true" visibility="public"
  48268. deprecated="not deprecated">
  48269. </field>
  48270. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48271. transient="false" volatile="false"
  48272. static="true" final="true" visibility="public"
  48273. deprecated="not deprecated">
  48274. </field>
  48275. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48276. transient="false" volatile="false"
  48277. static="true" final="true" visibility="public"
  48278. deprecated="not deprecated">
  48279. </field>
  48280. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48281. transient="false" volatile="false"
  48282. static="true" final="true" visibility="public"
  48283. deprecated="not deprecated">
  48284. </field>
  48285. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48286. transient="false" volatile="false"
  48287. static="true" final="true" visibility="public"
  48288. deprecated="not deprecated">
  48289. </field>
  48290. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48291. transient="false" volatile="false"
  48292. static="true" final="true" visibility="public"
  48293. deprecated="not deprecated">
  48294. </field>
  48295. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48296. transient="false" volatile="false"
  48297. static="true" final="true" visibility="public"
  48298. deprecated="not deprecated">
  48299. </field>
  48300. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48301. transient="false" volatile="false"
  48302. static="true" final="true" visibility="public"
  48303. deprecated="not deprecated">
  48304. </field>
  48305. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48306. transient="false" volatile="false"
  48307. static="true" final="true" visibility="public"
  48308. deprecated="not deprecated">
  48309. </field>
  48310. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48311. transient="false" volatile="false"
  48312. static="true" final="true" visibility="public"
  48313. deprecated="not deprecated">
  48314. </field>
  48315. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48316. transient="false" volatile="false"
  48317. static="true" final="true" visibility="public"
  48318. deprecated="not deprecated">
  48319. </field>
  48320. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48321. transient="false" volatile="false"
  48322. static="true" final="true" visibility="public"
  48323. deprecated="not deprecated">
  48324. </field>
  48325. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48326. transient="false" volatile="false"
  48327. static="true" final="true" visibility="public"
  48328. deprecated="not deprecated">
  48329. </field>
  48330. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48331. transient="false" volatile="false"
  48332. static="true" final="true" visibility="public"
  48333. deprecated="not deprecated">
  48334. </field>
  48335. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48336. transient="false" volatile="false"
  48337. static="true" final="true" visibility="public"
  48338. deprecated="not deprecated">
  48339. </field>
  48340. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48341. transient="false" volatile="false"
  48342. static="true" final="true" visibility="public"
  48343. deprecated="not deprecated">
  48344. </field>
  48345. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48346. transient="false" volatile="false"
  48347. static="true" final="true" visibility="public"
  48348. deprecated="not deprecated">
  48349. </field>
  48350. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48351. transient="false" volatile="false"
  48352. static="true" final="true" visibility="public"
  48353. deprecated="not deprecated">
  48354. </field>
  48355. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48356. transient="false" volatile="false"
  48357. static="true" final="true" visibility="public"
  48358. deprecated="not deprecated">
  48359. </field>
  48360. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48361. transient="false" volatile="false"
  48362. static="true" final="true" visibility="public"
  48363. deprecated="not deprecated">
  48364. </field>
  48365. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48366. transient="false" volatile="false"
  48367. static="true" final="true" visibility="public"
  48368. deprecated="not deprecated">
  48369. </field>
  48370. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48371. transient="false" volatile="false"
  48372. static="true" final="true" visibility="public"
  48373. deprecated="not deprecated">
  48374. </field>
  48375. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48376. transient="false" volatile="false"
  48377. static="true" final="true" visibility="public"
  48378. deprecated="not deprecated">
  48379. </field>
  48380. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48381. transient="false" volatile="false"
  48382. static="true" final="true" visibility="public"
  48383. deprecated="not deprecated">
  48384. </field>
  48385. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48386. transient="false" volatile="false"
  48387. static="true" final="true" visibility="public"
  48388. deprecated="not deprecated">
  48389. </field>
  48390. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48391. transient="false" volatile="false"
  48392. static="true" final="true" visibility="public"
  48393. deprecated="not deprecated">
  48394. </field>
  48395. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48396. transient="false" volatile="false"
  48397. static="true" final="true" visibility="public"
  48398. deprecated="not deprecated">
  48399. </field>
  48400. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48401. transient="false" volatile="false"
  48402. static="true" final="true" visibility="public"
  48403. deprecated="not deprecated">
  48404. </field>
  48405. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48406. transient="false" volatile="false"
  48407. static="true" final="true" visibility="public"
  48408. deprecated="not deprecated">
  48409. </field>
  48410. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48411. transient="false" volatile="false"
  48412. static="true" final="true" visibility="public"
  48413. deprecated="not deprecated">
  48414. </field>
  48415. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48416. transient="false" volatile="false"
  48417. static="true" final="true" visibility="public"
  48418. deprecated="not deprecated">
  48419. </field>
  48420. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48421. transient="false" volatile="false"
  48422. static="true" final="true" visibility="public"
  48423. deprecated="not deprecated">
  48424. </field>
  48425. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48426. transient="false" volatile="false"
  48427. static="true" final="true" visibility="public"
  48428. deprecated="not deprecated">
  48429. </field>
  48430. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48431. transient="false" volatile="false"
  48432. static="true" final="true" visibility="public"
  48433. deprecated="not deprecated">
  48434. </field>
  48435. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48436. transient="false" volatile="false"
  48437. static="true" final="true" visibility="public"
  48438. deprecated="not deprecated">
  48439. </field>
  48440. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48441. transient="false" volatile="false"
  48442. static="true" final="true" visibility="public"
  48443. deprecated="not deprecated">
  48444. </field>
  48445. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48446. transient="false" volatile="false"
  48447. static="true" final="true" visibility="public"
  48448. deprecated="not deprecated">
  48449. </field>
  48450. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48451. transient="false" volatile="false"
  48452. static="true" final="true" visibility="public"
  48453. deprecated="not deprecated">
  48454. </field>
  48455. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  48456. transient="false" volatile="false"
  48457. static="true" final="true" visibility="public"
  48458. deprecated="not deprecated">
  48459. </field>
  48460. <doc>
  48461. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  48462. It acts as a global namespace for all keys.]]>
  48463. </doc>
  48464. </class>
  48465. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  48466. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  48467. <interface name="JobHistory.Listener" abstract="true"
  48468. static="true" final="false" visibility="public"
  48469. deprecated="not deprecated">
  48470. <method name="handle"
  48471. abstract="false" native="false" synchronized="false"
  48472. static="false" final="false" visibility="public"
  48473. deprecated="not deprecated">
  48474. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  48475. <param name="values" type="java.util.Map"/>
  48476. <exception name="IOException" type="java.io.IOException"/>
  48477. <doc>
  48478. <![CDATA[Callback method for history parser.
  48479. @param recType type of record, which is the first entry in the line.
  48480. @param values a map of key-value pairs as thry appear in history.
  48481. @throws IOException]]>
  48482. </doc>
  48483. </method>
  48484. <doc>
  48485. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  48486. should be implemented and passed to JobHistory.parseHistory()]]>
  48487. </doc>
  48488. </interface>
  48489. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  48490. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  48491. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  48492. abstract="false"
  48493. static="true" final="false" visibility="public"
  48494. deprecated="not deprecated">
  48495. <constructor name="JobHistory.MapAttempt"
  48496. static="false" final="false" visibility="public"
  48497. deprecated="not deprecated">
  48498. </constructor>
  48499. <method name="logStarted"
  48500. abstract="false" native="false" synchronized="false"
  48501. static="true" final="false" visibility="public"
  48502. deprecated="Use
  48503. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  48504. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48505. <param name="startTime" type="long"/>
  48506. <param name="hostName" type="java.lang.String"/>
  48507. <doc>
  48508. <![CDATA[Log start time of this map task attempt.
  48509. @param taskAttemptId task attempt id
  48510. @param startTime start time of task attempt as reported by task tracker.
  48511. @param hostName host name of the task attempt.
  48512. @deprecated Use
  48513. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  48514. </doc>
  48515. </method>
  48516. <method name="logStarted"
  48517. abstract="false" native="false" synchronized="false"
  48518. static="true" final="false" visibility="public"
  48519. deprecated="not deprecated">
  48520. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48521. <param name="startTime" type="long"/>
  48522. <param name="trackerName" type="java.lang.String"/>
  48523. <param name="httpPort" type="int"/>
  48524. <param name="taskType" type="java.lang.String"/>
  48525. <doc>
  48526. <![CDATA[Log start time of this map task attempt.
  48527. @param taskAttemptId task attempt id
  48528. @param startTime start time of task attempt as reported by task tracker.
  48529. @param trackerName name of the tracker executing the task attempt.
  48530. @param httpPort http port of the task tracker executing the task attempt
  48531. @param taskType Whether the attempt is cleanup or setup or map]]>
  48532. </doc>
  48533. </method>
  48534. <method name="logFinished"
  48535. abstract="false" native="false" synchronized="false"
  48536. static="true" final="false" visibility="public"
  48537. deprecated="Use
  48538. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  48539. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48540. <param name="finishTime" type="long"/>
  48541. <param name="hostName" type="java.lang.String"/>
  48542. <doc>
  48543. <![CDATA[Log finish time of map task attempt.
  48544. @param taskAttemptId task attempt id
  48545. @param finishTime finish time
  48546. @param hostName host name
  48547. @deprecated Use
  48548. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  48549. </doc>
  48550. </method>
  48551. <method name="logFinished"
  48552. abstract="false" native="false" synchronized="false"
  48553. static="true" final="false" visibility="public"
  48554. deprecated="not deprecated">
  48555. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48556. <param name="finishTime" type="long"/>
  48557. <param name="hostName" type="java.lang.String"/>
  48558. <param name="taskType" type="java.lang.String"/>
  48559. <param name="stateString" type="java.lang.String"/>
  48560. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  48561. <doc>
  48562. <![CDATA[Log finish time of map task attempt.
  48563. @param taskAttemptId task attempt id
  48564. @param finishTime finish time
  48565. @param hostName host name
  48566. @param taskType Whether the attempt is cleanup or setup or map
  48567. @param stateString state string of the task attempt
  48568. @param counter counters of the task attempt]]>
  48569. </doc>
  48570. </method>
  48571. <method name="logFailed"
  48572. abstract="false" native="false" synchronized="false"
  48573. static="true" final="false" visibility="public"
  48574. deprecated="Use
  48575. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  48576. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48577. <param name="timestamp" type="long"/>
  48578. <param name="hostName" type="java.lang.String"/>
  48579. <param name="error" type="java.lang.String"/>
  48580. <doc>
  48581. <![CDATA[Log task attempt failed event.
  48582. @param taskAttemptId task attempt id
  48583. @param timestamp timestamp
  48584. @param hostName hostname of this task attempt.
  48585. @param error error message if any for this task attempt.
  48586. @deprecated Use
  48587. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  48588. </doc>
  48589. </method>
  48590. <method name="logFailed"
  48591. abstract="false" native="false" synchronized="false"
  48592. static="true" final="false" visibility="public"
  48593. deprecated="not deprecated">
  48594. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48595. <param name="timestamp" type="long"/>
  48596. <param name="hostName" type="java.lang.String"/>
  48597. <param name="error" type="java.lang.String"/>
  48598. <param name="taskType" type="java.lang.String"/>
  48599. <doc>
  48600. <![CDATA[Log task attempt failed event.
  48601. @param taskAttemptId task attempt id
  48602. @param timestamp timestamp
  48603. @param hostName hostname of this task attempt.
  48604. @param error error message if any for this task attempt.
  48605. @param taskType Whether the attempt is cleanup or setup or map]]>
  48606. </doc>
  48607. </method>
  48608. <method name="logKilled"
  48609. abstract="false" native="false" synchronized="false"
  48610. static="true" final="false" visibility="public"
  48611. deprecated="Use
  48612. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  48613. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48614. <param name="timestamp" type="long"/>
  48615. <param name="hostName" type="java.lang.String"/>
  48616. <param name="error" type="java.lang.String"/>
  48617. <doc>
  48618. <![CDATA[Log task attempt killed event.
  48619. @param taskAttemptId task attempt id
  48620. @param timestamp timestamp
  48621. @param hostName hostname of this task attempt.
  48622. @param error error message if any for this task attempt.
  48623. @deprecated Use
  48624. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  48625. </doc>
  48626. </method>
  48627. <method name="logKilled"
  48628. abstract="false" native="false" synchronized="false"
  48629. static="true" final="false" visibility="public"
  48630. deprecated="not deprecated">
  48631. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48632. <param name="timestamp" type="long"/>
  48633. <param name="hostName" type="java.lang.String"/>
  48634. <param name="error" type="java.lang.String"/>
  48635. <param name="taskType" type="java.lang.String"/>
  48636. <doc>
  48637. <![CDATA[Log task attempt killed event.
  48638. @param taskAttemptId task attempt id
  48639. @param timestamp timestamp
  48640. @param hostName hostname of this task attempt.
  48641. @param error error message if any for this task attempt.
  48642. @param taskType Whether the attempt is cleanup or setup or map]]>
  48643. </doc>
  48644. </method>
  48645. <doc>
  48646. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  48647. a Map Attempt on a node.]]>
  48648. </doc>
  48649. </class>
  48650. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  48651. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  48652. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  48653. abstract="false"
  48654. static="true" final="true" visibility="public"
  48655. deprecated="not deprecated">
  48656. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  48657. abstract="false" native="false" synchronized="false"
  48658. static="true" final="false" visibility="public"
  48659. deprecated="not deprecated">
  48660. </method>
  48661. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48662. abstract="false" native="false" synchronized="false"
  48663. static="true" final="false" visibility="public"
  48664. deprecated="not deprecated">
  48665. <param name="name" type="java.lang.String"/>
  48666. </method>
  48667. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48668. transient="false" volatile="false"
  48669. static="true" final="true" visibility="public"
  48670. deprecated="not deprecated">
  48671. </field>
  48672. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48673. transient="false" volatile="false"
  48674. static="true" final="true" visibility="public"
  48675. deprecated="not deprecated">
  48676. </field>
  48677. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48678. transient="false" volatile="false"
  48679. static="true" final="true" visibility="public"
  48680. deprecated="not deprecated">
  48681. </field>
  48682. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48683. transient="false" volatile="false"
  48684. static="true" final="true" visibility="public"
  48685. deprecated="not deprecated">
  48686. </field>
  48687. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48688. transient="false" volatile="false"
  48689. static="true" final="true" visibility="public"
  48690. deprecated="not deprecated">
  48691. </field>
  48692. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48693. transient="false" volatile="false"
  48694. static="true" final="true" visibility="public"
  48695. deprecated="not deprecated">
  48696. </field>
  48697. <doc>
  48698. <![CDATA[Record types are identifiers for each line of log in history files.
  48699. A record type appears as the first token in a single line of log.]]>
  48700. </doc>
  48701. </class>
  48702. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  48703. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  48704. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  48705. abstract="false"
  48706. static="true" final="false" visibility="public"
  48707. deprecated="not deprecated">
  48708. <constructor name="JobHistory.ReduceAttempt"
  48709. static="false" final="false" visibility="public"
  48710. deprecated="not deprecated">
  48711. </constructor>
  48712. <method name="logStarted"
  48713. abstract="false" native="false" synchronized="false"
  48714. static="true" final="false" visibility="public"
  48715. deprecated="Use
  48716. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  48717. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48718. <param name="startTime" type="long"/>
  48719. <param name="hostName" type="java.lang.String"/>
  48720. <doc>
  48721. <![CDATA[Log start time of Reduce task attempt.
  48722. @param taskAttemptId task attempt id
  48723. @param startTime start time
  48724. @param hostName host name
  48725. @deprecated Use
  48726. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  48727. </doc>
  48728. </method>
  48729. <method name="logStarted"
  48730. abstract="false" native="false" synchronized="false"
  48731. static="true" final="false" visibility="public"
  48732. deprecated="not deprecated">
  48733. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48734. <param name="startTime" type="long"/>
  48735. <param name="trackerName" type="java.lang.String"/>
  48736. <param name="httpPort" type="int"/>
  48737. <param name="taskType" type="java.lang.String"/>
  48738. <doc>
  48739. <![CDATA[Log start time of Reduce task attempt.
  48740. @param taskAttemptId task attempt id
  48741. @param startTime start time
  48742. @param trackerName tracker name
  48743. @param httpPort the http port of the tracker executing the task attempt
  48744. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48745. </doc>
  48746. </method>
  48747. <method name="logFinished"
  48748. abstract="false" native="false" synchronized="false"
  48749. static="true" final="false" visibility="public"
  48750. deprecated="Use
  48751. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  48752. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48753. <param name="shuffleFinished" type="long"/>
  48754. <param name="sortFinished" type="long"/>
  48755. <param name="finishTime" type="long"/>
  48756. <param name="hostName" type="java.lang.String"/>
  48757. <doc>
  48758. <![CDATA[Log finished event of this task.
  48759. @param taskAttemptId task attempt id
  48760. @param shuffleFinished shuffle finish time
  48761. @param sortFinished sort finish time
  48762. @param finishTime finish time of task
  48763. @param hostName host name where task attempt executed
  48764. @deprecated Use
  48765. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  48766. </doc>
  48767. </method>
  48768. <method name="logFinished"
  48769. abstract="false" native="false" synchronized="false"
  48770. static="true" final="false" visibility="public"
  48771. deprecated="not deprecated">
  48772. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48773. <param name="shuffleFinished" type="long"/>
  48774. <param name="sortFinished" type="long"/>
  48775. <param name="finishTime" type="long"/>
  48776. <param name="hostName" type="java.lang.String"/>
  48777. <param name="taskType" type="java.lang.String"/>
  48778. <param name="stateString" type="java.lang.String"/>
  48779. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  48780. <doc>
  48781. <![CDATA[Log finished event of this task.
  48782. @param taskAttemptId task attempt id
  48783. @param shuffleFinished shuffle finish time
  48784. @param sortFinished sort finish time
  48785. @param finishTime finish time of task
  48786. @param hostName host name where task attempt executed
  48787. @param taskType Whether the attempt is cleanup or setup or reduce
  48788. @param stateString the state string of the attempt
  48789. @param counter counters of the attempt]]>
  48790. </doc>
  48791. </method>
  48792. <method name="logFailed"
  48793. abstract="false" native="false" synchronized="false"
  48794. static="true" final="false" visibility="public"
  48795. deprecated="Use
  48796. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  48797. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48798. <param name="timestamp" type="long"/>
  48799. <param name="hostName" type="java.lang.String"/>
  48800. <param name="error" type="java.lang.String"/>
  48801. <doc>
  48802. <![CDATA[Log failed reduce task attempt.
  48803. @param taskAttemptId task attempt id
  48804. @param timestamp time stamp when task failed
  48805. @param hostName host name of the task attempt.
  48806. @param error error message of the task.
  48807. @deprecated Use
  48808. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  48809. </doc>
  48810. </method>
  48811. <method name="logFailed"
  48812. abstract="false" native="false" synchronized="false"
  48813. static="true" final="false" visibility="public"
  48814. deprecated="not deprecated">
  48815. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48816. <param name="timestamp" type="long"/>
  48817. <param name="hostName" type="java.lang.String"/>
  48818. <param name="error" type="java.lang.String"/>
  48819. <param name="taskType" type="java.lang.String"/>
  48820. <doc>
  48821. <![CDATA[Log failed reduce task attempt.
  48822. @param taskAttemptId task attempt id
  48823. @param timestamp time stamp when task failed
  48824. @param hostName host name of the task attempt.
  48825. @param error error message of the task.
  48826. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48827. </doc>
  48828. </method>
  48829. <method name="logKilled"
  48830. abstract="false" native="false" synchronized="false"
  48831. static="true" final="false" visibility="public"
  48832. deprecated="Use
  48833. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  48834. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48835. <param name="timestamp" type="long"/>
  48836. <param name="hostName" type="java.lang.String"/>
  48837. <param name="error" type="java.lang.String"/>
  48838. <doc>
  48839. <![CDATA[Log killed reduce task attempt.
  48840. @param taskAttemptId task attempt id
  48841. @param timestamp time stamp when task failed
  48842. @param hostName host name of the task attempt.
  48843. @param error error message of the task.
  48844. @deprecated Use
  48845. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  48846. </doc>
  48847. </method>
  48848. <method name="logKilled"
  48849. abstract="false" native="false" synchronized="false"
  48850. static="true" final="false" visibility="public"
  48851. deprecated="not deprecated">
  48852. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48853. <param name="timestamp" type="long"/>
  48854. <param name="hostName" type="java.lang.String"/>
  48855. <param name="error" type="java.lang.String"/>
  48856. <param name="taskType" type="java.lang.String"/>
  48857. <doc>
  48858. <![CDATA[Log killed reduce task attempt.
  48859. @param taskAttemptId task attempt id
  48860. @param timestamp time stamp when task failed
  48861. @param hostName host name of the task attempt.
  48862. @param error error message of the task.
  48863. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48864. </doc>
  48865. </method>
  48866. <doc>
  48867. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  48868. a Map Attempt on a node.]]>
  48869. </doc>
  48870. </class>
  48871. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  48872. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  48873. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  48874. abstract="false"
  48875. static="true" final="false" visibility="public"
  48876. deprecated="not deprecated">
  48877. <constructor name="JobHistory.Task"
  48878. static="false" final="false" visibility="public"
  48879. deprecated="not deprecated">
  48880. </constructor>
  48881. <method name="logStarted"
  48882. abstract="false" native="false" synchronized="false"
  48883. static="true" final="false" visibility="public"
  48884. deprecated="not deprecated">
  48885. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48886. <param name="taskType" type="java.lang.String"/>
  48887. <param name="startTime" type="long"/>
  48888. <param name="splitLocations" type="java.lang.String"/>
  48889. <doc>
  48890. <![CDATA[Log start time of task (TIP).
  48891. @param taskId task id
  48892. @param taskType MAP or REDUCE
  48893. @param startTime startTime of tip.]]>
  48894. </doc>
  48895. </method>
  48896. <method name="logFinished"
  48897. abstract="false" native="false" synchronized="false"
  48898. static="true" final="false" visibility="public"
  48899. deprecated="not deprecated">
  48900. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48901. <param name="taskType" type="java.lang.String"/>
  48902. <param name="finishTime" type="long"/>
  48903. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48904. <doc>
  48905. <![CDATA[Log finish time of task.
  48906. @param taskId task id
  48907. @param taskType MAP or REDUCE
  48908. @param finishTime finish timeof task in ms]]>
  48909. </doc>
  48910. </method>
  48911. <method name="logUpdates"
  48912. abstract="false" native="false" synchronized="false"
  48913. static="true" final="false" visibility="public"
  48914. deprecated="not deprecated">
  48915. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48916. <param name="finishTime" type="long"/>
  48917. <doc>
  48918. <![CDATA[Update the finish time of task.
  48919. @param taskId task id
  48920. @param finishTime finish time of task in ms]]>
  48921. </doc>
  48922. </method>
  48923. <method name="logFailed"
  48924. abstract="false" native="false" synchronized="false"
  48925. static="true" final="false" visibility="public"
  48926. deprecated="not deprecated">
  48927. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48928. <param name="taskType" type="java.lang.String"/>
  48929. <param name="time" type="long"/>
  48930. <param name="error" type="java.lang.String"/>
  48931. <doc>
  48932. <![CDATA[Log job failed event.
  48933. @param taskId task id
  48934. @param taskType MAP or REDUCE.
  48935. @param time timestamp when job failed detected.
  48936. @param error error message for failure.]]>
  48937. </doc>
  48938. </method>
  48939. <method name="logFailed"
  48940. abstract="false" native="false" synchronized="false"
  48941. static="true" final="false" visibility="public"
  48942. deprecated="not deprecated">
  48943. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48944. <param name="taskType" type="java.lang.String"/>
  48945. <param name="time" type="long"/>
  48946. <param name="error" type="java.lang.String"/>
  48947. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48948. <doc>
  48949. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  48950. </doc>
  48951. </method>
  48952. <method name="getTaskAttempts" return="java.util.Map"
  48953. abstract="false" native="false" synchronized="false"
  48954. static="false" final="false" visibility="public"
  48955. deprecated="not deprecated">
  48956. <doc>
  48957. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  48958. </doc>
  48959. </method>
  48960. <doc>
  48961. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  48962. All events logged by this class are logged in a separate file per job in
  48963. job tracker history. These events map to TIPs in jobtracker.]]>
  48964. </doc>
  48965. </class>
  48966. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  48967. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48968. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  48969. abstract="false"
  48970. static="true" final="false" visibility="public"
  48971. deprecated="not deprecated">
  48972. <constructor name="JobHistory.TaskAttempt"
  48973. static="false" final="false" visibility="public"
  48974. deprecated="not deprecated">
  48975. </constructor>
  48976. <doc>
  48977. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  48978. </doc>
  48979. </class>
  48980. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48981. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  48982. <class name="JobHistory.Values" extends="java.lang.Enum"
  48983. abstract="false"
  48984. static="true" final="true" visibility="public"
  48985. deprecated="not deprecated">
  48986. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  48987. abstract="false" native="false" synchronized="false"
  48988. static="true" final="false" visibility="public"
  48989. deprecated="not deprecated">
  48990. </method>
  48991. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  48992. abstract="false" native="false" synchronized="false"
  48993. static="true" final="false" visibility="public"
  48994. deprecated="not deprecated">
  48995. <param name="name" type="java.lang.String"/>
  48996. </method>
  48997. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  48998. transient="false" volatile="false"
  48999. static="true" final="true" visibility="public"
  49000. deprecated="not deprecated">
  49001. </field>
  49002. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  49003. transient="false" volatile="false"
  49004. static="true" final="true" visibility="public"
  49005. deprecated="not deprecated">
  49006. </field>
  49007. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  49008. transient="false" volatile="false"
  49009. static="true" final="true" visibility="public"
  49010. deprecated="not deprecated">
  49011. </field>
  49012. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  49013. transient="false" volatile="false"
  49014. static="true" final="true" visibility="public"
  49015. deprecated="not deprecated">
  49016. </field>
  49017. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  49018. transient="false" volatile="false"
  49019. static="true" final="true" visibility="public"
  49020. deprecated="not deprecated">
  49021. </field>
  49022. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  49023. transient="false" volatile="false"
  49024. static="true" final="true" visibility="public"
  49025. deprecated="not deprecated">
  49026. </field>
  49027. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  49028. transient="false" volatile="false"
  49029. static="true" final="true" visibility="public"
  49030. deprecated="not deprecated">
  49031. </field>
  49032. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  49033. transient="false" volatile="false"
  49034. static="true" final="true" visibility="public"
  49035. deprecated="not deprecated">
  49036. </field>
  49037. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  49038. transient="false" volatile="false"
  49039. static="true" final="true" visibility="public"
  49040. deprecated="not deprecated">
  49041. </field>
  49042. <doc>
  49043. <![CDATA[This enum contains some of the values commonly used by history log events.
  49044. since values in history can only be strings - Values.name() is used in
  49045. most places in history file.]]>
  49046. </doc>
  49047. </class>
  49048. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  49049. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  49050. <class name="JobHistoryServer" extends="java.lang.Object"
  49051. abstract="false"
  49052. static="false" final="false" visibility="public"
  49053. deprecated="not deprecated">
  49054. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  49055. static="false" final="false" visibility="public"
  49056. deprecated="not deprecated">
  49057. <exception name="IOException" type="java.io.IOException"/>
  49058. <doc>
  49059. <![CDATA[Starts job history server as a independent process
  49060. * Initializes ACL Manager
  49061. * Starts a webapp to service history requests
  49062. @param conf - Mr Cluster configuration
  49063. @throws IOException - any exception starting history server]]>
  49064. </doc>
  49065. </constructor>
  49066. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  49067. static="false" final="false" visibility="public"
  49068. deprecated="not deprecated">
  49069. <exception name="IOException" type="java.io.IOException"/>
  49070. <doc>
  49071. <![CDATA[Starts job history server as a embedded server within job tracker
  49072. * Starts a webapp to service history requests
  49073. @param conf - MR Cluster configuration
  49074. @param aclsManager - ACLs Manager for user authentication
  49075. @param httpServer - Http Server instance
  49076. @throws IOException - any exception starting history server]]>
  49077. </doc>
  49078. </constructor>
  49079. <method name="start"
  49080. abstract="false" native="false" synchronized="false"
  49081. static="false" final="false" visibility="public"
  49082. deprecated="not deprecated">
  49083. <exception name="IOException" type="java.io.IOException"/>
  49084. </method>
  49085. <method name="join"
  49086. abstract="false" native="false" synchronized="false"
  49087. static="false" final="false" visibility="public"
  49088. deprecated="not deprecated">
  49089. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49090. </method>
  49091. <method name="shutdown"
  49092. abstract="false" native="false" synchronized="false"
  49093. static="false" final="false" visibility="public"
  49094. deprecated="not deprecated">
  49095. <exception name="Exception" type="java.lang.Exception"/>
  49096. <doc>
  49097. <![CDATA[Shutsdown the history server if already initialized
  49098. @throws Exception - Any exception during shutdown]]>
  49099. </doc>
  49100. </method>
  49101. <method name="main"
  49102. abstract="false" native="false" synchronized="false"
  49103. static="true" final="false" visibility="public"
  49104. deprecated="not deprecated">
  49105. <param name="args" type="java.lang.String[]"/>
  49106. <doc>
  49107. <![CDATA[Start job history server as an independent process
  49108. @param args - Command line arguments]]>
  49109. </doc>
  49110. </method>
  49111. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  49112. transient="false" volatile="false"
  49113. static="true" final="true" visibility="public"
  49114. deprecated="not deprecated">
  49115. </field>
  49116. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  49117. transient="false" volatile="false"
  49118. static="true" final="true" visibility="public"
  49119. deprecated="not deprecated">
  49120. </field>
  49121. <doc>
  49122. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  49123. related requests from client.
  49124. History Server can be initialized in one of two modes
  49125. * Emdedded within {@link JobTracker}
  49126. * External daemon, can either be run on the job tracker node or outside
  49127. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  49128. of the history server
  49129. mapred.job.history.server.http.address is address to which history web
  49130. server is bound to. If operating in embedded mode, the hostname on
  49131. history address has to be same as the job tracker host name
  49132. mapred.job.history.server.embedded (default is true) will cause job tracker
  49133. to init history server, else the server need to be started as a
  49134. separate daemon process]]>
  49135. </doc>
  49136. </class>
  49137. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  49138. <!-- start class org.apache.hadoop.mapred.JobID -->
  49139. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  49140. abstract="false"
  49141. static="false" final="false" visibility="public"
  49142. deprecated="not deprecated">
  49143. <constructor name="JobID" type="java.lang.String, int"
  49144. static="false" final="false" visibility="public"
  49145. deprecated="not deprecated">
  49146. <doc>
  49147. <![CDATA[Constructs a JobID object
  49148. @param jtIdentifier jobTracker identifier
  49149. @param id job number]]>
  49150. </doc>
  49151. </constructor>
  49152. <constructor name="JobID"
  49153. static="false" final="false" visibility="public"
  49154. deprecated="not deprecated">
  49155. </constructor>
  49156. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  49157. abstract="false" native="false" synchronized="false"
  49158. static="true" final="false" visibility="public"
  49159. deprecated="not deprecated">
  49160. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  49161. <doc>
  49162. <![CDATA[Downgrade a new JobID to an old one
  49163. @param old a new or old JobID
  49164. @return either old or a new JobID build to match old]]>
  49165. </doc>
  49166. </method>
  49167. <method name="read" return="org.apache.hadoop.mapred.JobID"
  49168. abstract="false" native="false" synchronized="false"
  49169. static="true" final="false" visibility="public"
  49170. deprecated="not deprecated">
  49171. <param name="in" type="java.io.DataInput"/>
  49172. <exception name="IOException" type="java.io.IOException"/>
  49173. </method>
  49174. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  49175. abstract="false" native="false" synchronized="false"
  49176. static="true" final="false" visibility="public"
  49177. deprecated="not deprecated">
  49178. <param name="str" type="java.lang.String"/>
  49179. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  49180. <doc>
  49181. <![CDATA[Construct a JobId object from given string
  49182. @return constructed JobId object or null if the given String is null
  49183. @throws IllegalArgumentException if the given string is malformed]]>
  49184. </doc>
  49185. </method>
  49186. <method name="getJobIDsPattern" return="java.lang.String"
  49187. abstract="false" native="false" synchronized="false"
  49188. static="true" final="false" visibility="public"
  49189. deprecated="not deprecated">
  49190. <param name="jtIdentifier" type="java.lang.String"/>
  49191. <param name="jobId" type="java.lang.Integer"/>
  49192. <doc>
  49193. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  49194. be given null, in which case that part of the regex will be generic.
  49195. For example to obtain a regex matching <i>any job</i>
  49196. run on the jobtracker started at <i>200707121733</i>, we would use :
  49197. <pre>
  49198. JobID.getTaskIDsPattern("200707121733", null);
  49199. </pre>
  49200. which will return :
  49201. <pre> "job_200707121733_[0-9]*" </pre>
  49202. @param jtIdentifier jobTracker identifier, or null
  49203. @param jobId job number, or null
  49204. @return a regex pattern matching JobIDs]]>
  49205. </doc>
  49206. </method>
  49207. <doc>
  49208. <![CDATA[JobID represents the immutable and unique identifier for
  49209. the job. JobID consists of two parts. First part
  49210. represents the jobtracker identifier, so that jobID to jobtracker map
  49211. is defined. For cluster setup this string is the jobtracker
  49212. start time, for local setting, it is "local".
  49213. Second part of the JobID is the job number. <br>
  49214. An example JobID is :
  49215. <code>job_200707121733_0003</code> , which represents the third job
  49216. running at the jobtracker started at <code>200707121733</code>.
  49217. <p>
  49218. Applications should never construct or parse JobID strings, but rather
  49219. use appropriate constructors or {@link #forName(String)} method.
  49220. @see TaskID
  49221. @see TaskAttemptID]]>
  49222. </doc>
  49223. </class>
  49224. <!-- end class org.apache.hadoop.mapred.JobID -->
  49225. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  49226. <class name="JobInProgress" extends="java.lang.Object"
  49227. abstract="false"
  49228. static="false" final="false" visibility="public"
  49229. deprecated="not deprecated">
  49230. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  49231. static="false" final="false" visibility="protected"
  49232. deprecated="not deprecated">
  49233. <exception name="IOException" type="java.io.IOException"/>
  49234. <doc>
  49235. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  49236. </doc>
  49237. </constructor>
  49238. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  49239. abstract="false" native="false" synchronized="false"
  49240. static="false" final="false" visibility="public"
  49241. deprecated="not deprecated">
  49242. <doc>
  49243. <![CDATA[Get the QueueMetrics object associated with this job
  49244. @return QueueMetrics]]>
  49245. </doc>
  49246. </method>
  49247. <method name="cleanUpMetrics"
  49248. abstract="false" native="false" synchronized="false"
  49249. static="false" final="false" visibility="public"
  49250. deprecated="not deprecated">
  49251. <doc>
  49252. <![CDATA[Called when the job is complete]]>
  49253. </doc>
  49254. </method>
  49255. <method name="inited" return="boolean"
  49256. abstract="false" native="false" synchronized="false"
  49257. static="false" final="false" visibility="public"
  49258. deprecated="not deprecated">
  49259. <doc>
  49260. <![CDATA[Check if the job has been initialized.
  49261. @return <code>true</code> if the job has been initialized,
  49262. <code>false</code> otherwise]]>
  49263. </doc>
  49264. </method>
  49265. <method name="getUser" return="java.lang.String"
  49266. abstract="false" native="false" synchronized="false"
  49267. static="false" final="false" visibility="public"
  49268. deprecated="not deprecated">
  49269. <doc>
  49270. <![CDATA[Get the user for the job]]>
  49271. </doc>
  49272. </method>
  49273. <method name="initTasks"
  49274. abstract="false" native="false" synchronized="true"
  49275. static="false" final="false" visibility="public"
  49276. deprecated="not deprecated">
  49277. <exception name="IOException" type="java.io.IOException"/>
  49278. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  49279. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  49280. <doc>
  49281. <![CDATA[Construct the splits, etc. This is invoked from an async
  49282. thread so that split-computation doesn't block anyone.]]>
  49283. </doc>
  49284. </method>
  49285. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  49286. abstract="false" native="false" synchronized="false"
  49287. static="false" final="false" visibility="public"
  49288. deprecated="not deprecated">
  49289. </method>
  49290. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  49291. abstract="false" native="false" synchronized="false"
  49292. static="false" final="false" visibility="public"
  49293. deprecated="not deprecated">
  49294. </method>
  49295. <method name="getLaunchTime" return="long"
  49296. abstract="false" native="false" synchronized="true"
  49297. static="false" final="false" visibility="public"
  49298. deprecated="not deprecated">
  49299. </method>
  49300. <method name="getStartTime" return="long"
  49301. abstract="false" native="false" synchronized="false"
  49302. static="false" final="false" visibility="public"
  49303. deprecated="not deprecated">
  49304. </method>
  49305. <method name="getFinishTime" return="long"
  49306. abstract="false" native="false" synchronized="false"
  49307. static="false" final="false" visibility="public"
  49308. deprecated="not deprecated">
  49309. </method>
  49310. <method name="desiredMaps" return="int"
  49311. abstract="false" native="false" synchronized="false"
  49312. static="false" final="false" visibility="public"
  49313. deprecated="not deprecated">
  49314. </method>
  49315. <method name="finishedMaps" return="int"
  49316. abstract="false" native="false" synchronized="true"
  49317. static="false" final="false" visibility="public"
  49318. deprecated="not deprecated">
  49319. </method>
  49320. <method name="desiredReduces" return="int"
  49321. abstract="false" native="false" synchronized="false"
  49322. static="false" final="false" visibility="public"
  49323. deprecated="not deprecated">
  49324. </method>
  49325. <method name="runningMaps" return="int"
  49326. abstract="false" native="false" synchronized="true"
  49327. static="false" final="false" visibility="public"
  49328. deprecated="not deprecated">
  49329. </method>
  49330. <method name="runningReduces" return="int"
  49331. abstract="false" native="false" synchronized="true"
  49332. static="false" final="false" visibility="public"
  49333. deprecated="not deprecated">
  49334. </method>
  49335. <method name="finishedReduces" return="int"
  49336. abstract="false" native="false" synchronized="true"
  49337. static="false" final="false" visibility="public"
  49338. deprecated="not deprecated">
  49339. </method>
  49340. <method name="pendingMaps" return="int"
  49341. abstract="false" native="false" synchronized="true"
  49342. static="false" final="false" visibility="public"
  49343. deprecated="not deprecated">
  49344. </method>
  49345. <method name="pendingReduces" return="int"
  49346. abstract="false" native="false" synchronized="true"
  49347. static="false" final="false" visibility="public"
  49348. deprecated="not deprecated">
  49349. </method>
  49350. <method name="desiredTasks" return="int"
  49351. abstract="false" native="false" synchronized="false"
  49352. static="false" final="false" visibility="public"
  49353. deprecated="not deprecated">
  49354. <doc>
  49355. <![CDATA[Return total number of map and reduce tasks desired by the job.
  49356. @return total number of map and reduce tasks desired by the job]]>
  49357. </doc>
  49358. </method>
  49359. <method name="getNumSlotsPerTask" return="int"
  49360. abstract="false" native="false" synchronized="false"
  49361. static="false" final="false" visibility="public"
  49362. deprecated="not deprecated">
  49363. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  49364. </method>
  49365. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  49366. abstract="false" native="false" synchronized="false"
  49367. static="false" final="false" visibility="public"
  49368. deprecated="not deprecated">
  49369. </method>
  49370. <method name="setPriority"
  49371. abstract="false" native="false" synchronized="false"
  49372. static="false" final="false" visibility="public"
  49373. deprecated="not deprecated">
  49374. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  49375. </method>
  49376. <method name="reportTasksInProgress" return="java.util.Vector"
  49377. abstract="false" native="false" synchronized="true"
  49378. static="false" final="false" visibility="public"
  49379. deprecated="not deprecated">
  49380. <param name="shouldBeMap" type="boolean"/>
  49381. <param name="shouldBeComplete" type="boolean"/>
  49382. <doc>
  49383. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  49384. </doc>
  49385. </method>
  49386. <method name="reportCleanupTIPs" return="java.util.Vector"
  49387. abstract="false" native="false" synchronized="true"
  49388. static="false" final="false" visibility="public"
  49389. deprecated="not deprecated">
  49390. <param name="shouldBeComplete" type="boolean"/>
  49391. <doc>
  49392. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  49393. </doc>
  49394. </method>
  49395. <method name="reportSetupTIPs" return="java.util.Vector"
  49396. abstract="false" native="false" synchronized="true"
  49397. static="false" final="false" visibility="public"
  49398. deprecated="not deprecated">
  49399. <param name="shouldBeComplete" type="boolean"/>
  49400. <doc>
  49401. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  49402. </doc>
  49403. </method>
  49404. <method name="updateTaskStatus"
  49405. abstract="false" native="false" synchronized="true"
  49406. static="false" final="false" visibility="public"
  49407. deprecated="not deprecated">
  49408. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49409. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  49410. <doc>
  49411. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  49412. </doc>
  49413. </method>
  49414. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  49415. abstract="false" native="false" synchronized="true"
  49416. static="false" final="false" visibility="public"
  49417. deprecated="not deprecated">
  49418. <doc>
  49419. <![CDATA[Returns the job-level counters.
  49420. @return the job-level counters.]]>
  49421. </doc>
  49422. </method>
  49423. <method name="getMapCounters" return="boolean"
  49424. abstract="false" native="false" synchronized="true"
  49425. static="false" final="false" visibility="public"
  49426. deprecated="not deprecated">
  49427. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  49428. <doc>
  49429. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  49430. This method returns true if counters are within limit or false.]]>
  49431. </doc>
  49432. </method>
  49433. <method name="getReduceCounters" return="boolean"
  49434. abstract="false" native="false" synchronized="true"
  49435. static="false" final="false" visibility="public"
  49436. deprecated="not deprecated">
  49437. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  49438. <doc>
  49439. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  49440. This method returns true if counters are within limits and false otherwise.]]>
  49441. </doc>
  49442. </method>
  49443. <method name="getCounters" return="boolean"
  49444. abstract="false" native="false" synchronized="true"
  49445. static="false" final="false" visibility="public"
  49446. deprecated="not deprecated">
  49447. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  49448. <doc>
  49449. <![CDATA[Returns the total job counters, by adding together the job,
  49450. the map and the reduce counters. This method returns true if
  49451. counters are within limits and false otherwise.]]>
  49452. </doc>
  49453. </method>
  49454. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  49455. abstract="false" native="false" synchronized="true"
  49456. static="false" final="false" visibility="public"
  49457. deprecated="not deprecated">
  49458. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49459. <param name="clusterSize" type="int"/>
  49460. <param name="numUniqueHosts" type="int"/>
  49461. <exception name="IOException" type="java.io.IOException"/>
  49462. <doc>
  49463. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  49464. </doc>
  49465. </method>
  49466. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  49467. abstract="false" native="false" synchronized="false"
  49468. static="false" final="false" visibility="public"
  49469. deprecated="not deprecated">
  49470. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49471. <param name="isMapSlot" type="boolean"/>
  49472. <exception name="IOException" type="java.io.IOException"/>
  49473. </method>
  49474. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  49475. abstract="false" native="false" synchronized="true"
  49476. static="false" final="false" visibility="public"
  49477. deprecated="not deprecated">
  49478. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49479. <param name="clusterSize" type="int"/>
  49480. <param name="numUniqueHosts" type="int"/>
  49481. <exception name="IOException" type="java.io.IOException"/>
  49482. </method>
  49483. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  49484. abstract="false" native="false" synchronized="true"
  49485. static="false" final="false" visibility="public"
  49486. deprecated="not deprecated">
  49487. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49488. <param name="clusterSize" type="int"/>
  49489. <param name="numUniqueHosts" type="int"/>
  49490. <exception name="IOException" type="java.io.IOException"/>
  49491. </method>
  49492. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  49493. abstract="false" native="false" synchronized="true"
  49494. static="false" final="false" visibility="public"
  49495. deprecated="not deprecated">
  49496. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49497. <param name="clusterSize" type="int"/>
  49498. <param name="numUniqueHosts" type="int"/>
  49499. <exception name="IOException" type="java.io.IOException"/>
  49500. </method>
  49501. <method name="schedulingOpportunity"
  49502. abstract="false" native="false" synchronized="false"
  49503. static="false" final="false" visibility="public"
  49504. deprecated="not deprecated">
  49505. </method>
  49506. <method name="resetSchedulingOpportunities"
  49507. abstract="false" native="false" synchronized="false"
  49508. static="false" final="false" visibility="public"
  49509. deprecated="not deprecated">
  49510. </method>
  49511. <method name="getNumSchedulingOpportunities" return="long"
  49512. abstract="false" native="false" synchronized="false"
  49513. static="false" final="false" visibility="public"
  49514. deprecated="not deprecated">
  49515. </method>
  49516. <method name="overrideSchedulingOpportunities"
  49517. abstract="false" native="false" synchronized="false"
  49518. static="false" final="false" visibility="public"
  49519. deprecated="not deprecated">
  49520. </method>
  49521. <method name="scheduleOffSwitch" return="boolean"
  49522. abstract="false" native="false" synchronized="false"
  49523. static="false" final="false" visibility="public"
  49524. deprecated="not deprecated">
  49525. <param name="numTaskTrackers" type="int"/>
  49526. <doc>
  49527. <![CDATA[Check if we can schedule an off-switch task for this job.
  49528. @param numTaskTrackers number of tasktrackers
  49529. @return <code>true</code> if we can schedule off-switch,
  49530. <code>false</code> otherwise
  49531. We check the number of missed opportunities for the job.
  49532. If it has 'waited' long enough we go ahead and schedule.]]>
  49533. </doc>
  49534. </method>
  49535. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  49536. abstract="false" native="false" synchronized="false"
  49537. static="false" final="false" visibility="public"
  49538. deprecated="not deprecated">
  49539. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49540. <param name="clusterSize" type="int"/>
  49541. <param name="numUniqueHosts" type="int"/>
  49542. <param name="isMapSlot" type="boolean"/>
  49543. <exception name="IOException" type="java.io.IOException"/>
  49544. <doc>
  49545. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  49546. </doc>
  49547. </method>
  49548. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  49549. abstract="false" native="false" synchronized="false"
  49550. static="false" final="false" visibility="public"
  49551. deprecated="not deprecated">
  49552. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49553. <param name="clusterSize" type="int"/>
  49554. <param name="numUniqueHosts" type="int"/>
  49555. <param name="isMapSlot" type="boolean"/>
  49556. <exception name="IOException" type="java.io.IOException"/>
  49557. <doc>
  49558. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  49559. </doc>
  49560. </method>
  49561. <method name="scheduleReduces" return="boolean"
  49562. abstract="false" native="false" synchronized="true"
  49563. static="false" final="false" visibility="public"
  49564. deprecated="not deprecated">
  49565. </method>
  49566. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  49567. abstract="false" native="false" synchronized="true"
  49568. static="false" final="false" visibility="public"
  49569. deprecated="not deprecated">
  49570. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49571. <param name="clusterSize" type="int"/>
  49572. <param name="numUniqueHosts" type="int"/>
  49573. <exception name="IOException" type="java.io.IOException"/>
  49574. <doc>
  49575. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  49576. We don't have cache-sensitivity for reduce tasks, as they
  49577. work on temporary MapRed files.]]>
  49578. </doc>
  49579. </method>
  49580. <method name="reserveTaskTracker"
  49581. abstract="false" native="false" synchronized="true"
  49582. static="false" final="false" visibility="public"
  49583. deprecated="not deprecated">
  49584. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  49585. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  49586. <param name="numSlots" type="int"/>
  49587. </method>
  49588. <method name="unreserveTaskTracker"
  49589. abstract="false" native="false" synchronized="true"
  49590. static="false" final="false" visibility="public"
  49591. deprecated="not deprecated">
  49592. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  49593. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  49594. </method>
  49595. <method name="getNumReservedTaskTrackersForMaps" return="int"
  49596. abstract="false" native="false" synchronized="false"
  49597. static="false" final="false" visibility="public"
  49598. deprecated="not deprecated">
  49599. </method>
  49600. <method name="getNumReservedTaskTrackersForReduces" return="int"
  49601. abstract="false" native="false" synchronized="false"
  49602. static="false" final="false" visibility="public"
  49603. deprecated="not deprecated">
  49604. </method>
  49605. <method name="scheduleMap"
  49606. abstract="false" native="false" synchronized="true"
  49607. static="false" final="false" visibility="protected"
  49608. deprecated="not deprecated">
  49609. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49610. <doc>
  49611. <![CDATA[Adds a map tip to the list of running maps.
  49612. @param tip the tip that needs to be scheduled as running]]>
  49613. </doc>
  49614. </method>
  49615. <method name="scheduleReduce"
  49616. abstract="false" native="false" synchronized="true"
  49617. static="false" final="false" visibility="protected"
  49618. deprecated="not deprecated">
  49619. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49620. <doc>
  49621. <![CDATA[Adds a reduce tip to the list of running reduces
  49622. @param tip the tip that needs to be scheduled as running]]>
  49623. </doc>
  49624. </method>
  49625. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  49626. abstract="false" native="false" synchronized="true"
  49627. static="false" final="false" visibility="protected"
  49628. deprecated="not deprecated">
  49629. <param name="list" type="java.util.Collection"/>
  49630. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49631. <param name="avgProgress" type="double"/>
  49632. <param name="currentTime" type="long"/>
  49633. <param name="shouldRemove" type="boolean"/>
  49634. <doc>
  49635. <![CDATA[Find a speculative task
  49636. @param list a list of tips
  49637. @param ttStatus status of the tracker that has requested a tip
  49638. @param avgProgress the average progress for speculation
  49639. @param currentTime current time in milliseconds
  49640. @param shouldRemove whether to remove the tips
  49641. @return a tip that can be speculated on the tracker]]>
  49642. </doc>
  49643. </method>
  49644. <method name="completedTask" return="boolean"
  49645. abstract="false" native="false" synchronized="true"
  49646. static="false" final="false" visibility="public"
  49647. deprecated="not deprecated">
  49648. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49649. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  49650. <doc>
  49651. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  49652. </doc>
  49653. </method>
  49654. <method name="kill"
  49655. abstract="false" native="false" synchronized="false"
  49656. static="false" final="false" visibility="public"
  49657. deprecated="not deprecated">
  49658. <doc>
  49659. <![CDATA[Kill the job and all its component tasks. This method should be called from
  49660. jobtracker and should return fast as it locks the jobtracker.]]>
  49661. </doc>
  49662. </method>
  49663. <method name="failedTask"
  49664. abstract="false" native="false" synchronized="false"
  49665. static="false" final="false" visibility="public"
  49666. deprecated="not deprecated">
  49667. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49668. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49669. <param name="reason" type="java.lang.String"/>
  49670. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  49671. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  49672. <param name="trackerName" type="java.lang.String"/>
  49673. <doc>
  49674. <![CDATA[Fail a task with a given reason, but without a status object.
  49675. Assuming {@link JobTracker} is locked on entry.
  49676. @param tip The task's tip
  49677. @param taskid The task id
  49678. @param reason The reason that the task failed
  49679. @param trackerName The task tracker the task failed on]]>
  49680. </doc>
  49681. </method>
  49682. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  49683. abstract="false" native="false" synchronized="true"
  49684. static="false" final="false" visibility="public"
  49685. deprecated="not deprecated">
  49686. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  49687. <doc>
  49688. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  49689. </doc>
  49690. </method>
  49691. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  49692. abstract="false" native="false" synchronized="true"
  49693. static="false" final="false" visibility="public"
  49694. deprecated="not deprecated">
  49695. <param name="mapId" type="int"/>
  49696. <doc>
  49697. <![CDATA[Find the details of someplace where a map has finished
  49698. @param mapId the id of the map
  49699. @return the task status of the completed task]]>
  49700. </doc>
  49701. </method>
  49702. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  49703. abstract="false" native="false" synchronized="true"
  49704. static="false" final="false" visibility="public"
  49705. deprecated="not deprecated">
  49706. <param name="fromEventId" type="int"/>
  49707. <param name="maxEvents" type="int"/>
  49708. </method>
  49709. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49710. abstract="false" native="false" synchronized="false"
  49711. static="false" final="false" visibility="public"
  49712. deprecated="not deprecated">
  49713. <doc>
  49714. <![CDATA[@return The JobID of this JobInProgress.]]>
  49715. </doc>
  49716. </method>
  49717. <method name="getJobSubmitHostName" return="java.lang.String"
  49718. abstract="false" native="false" synchronized="false"
  49719. static="false" final="false" visibility="public"
  49720. deprecated="not deprecated">
  49721. <doc>
  49722. <![CDATA[@return submitHostName of this JobInProgress.]]>
  49723. </doc>
  49724. </method>
  49725. <method name="getJobSubmitHostAddress" return="java.lang.String"
  49726. abstract="false" native="false" synchronized="false"
  49727. static="false" final="false" visibility="public"
  49728. deprecated="not deprecated">
  49729. <doc>
  49730. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  49731. </doc>
  49732. </method>
  49733. <method name="getSchedulingInfo" return="java.lang.Object"
  49734. abstract="false" native="false" synchronized="true"
  49735. static="false" final="false" visibility="public"
  49736. deprecated="not deprecated">
  49737. </method>
  49738. <method name="setSchedulingInfo"
  49739. abstract="false" native="false" synchronized="true"
  49740. static="false" final="false" visibility="public"
  49741. deprecated="not deprecated">
  49742. <param name="schedulingInfo" type="java.lang.Object"/>
  49743. </method>
  49744. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  49745. transient="false" volatile="false"
  49746. static="false" final="false" visibility="protected"
  49747. deprecated="not deprecated">
  49748. </field>
  49749. <doc>
  49750. <![CDATA[JobInProgress maintains all the info for keeping
  49751. a Job on the straight and narrow. It keeps its JobProfile
  49752. and its latest JobStatus, plus a set of tables for
  49753. doing bookkeeping of its Tasks.
  49754. ***********************************************************]]>
  49755. </doc>
  49756. </class>
  49757. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  49758. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49759. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  49760. abstract="false"
  49761. static="true" final="true" visibility="public"
  49762. deprecated="not deprecated">
  49763. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  49764. abstract="false" native="false" synchronized="false"
  49765. static="true" final="false" visibility="public"
  49766. deprecated="not deprecated">
  49767. </method>
  49768. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  49769. abstract="false" native="false" synchronized="false"
  49770. static="true" final="false" visibility="public"
  49771. deprecated="not deprecated">
  49772. <param name="name" type="java.lang.String"/>
  49773. </method>
  49774. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49775. transient="false" volatile="false"
  49776. static="true" final="true" visibility="public"
  49777. deprecated="not deprecated">
  49778. </field>
  49779. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49780. transient="false" volatile="false"
  49781. static="true" final="true" visibility="public"
  49782. deprecated="not deprecated">
  49783. </field>
  49784. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49785. transient="false" volatile="false"
  49786. static="true" final="true" visibility="public"
  49787. deprecated="not deprecated">
  49788. </field>
  49789. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49790. transient="false" volatile="false"
  49791. static="true" final="true" visibility="public"
  49792. deprecated="not deprecated">
  49793. </field>
  49794. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49795. transient="false" volatile="false"
  49796. static="true" final="true" visibility="public"
  49797. deprecated="not deprecated">
  49798. </field>
  49799. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49800. transient="false" volatile="false"
  49801. static="true" final="true" visibility="public"
  49802. deprecated="not deprecated">
  49803. </field>
  49804. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49805. transient="false" volatile="false"
  49806. static="true" final="true" visibility="public"
  49807. deprecated="not deprecated">
  49808. </field>
  49809. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49810. transient="false" volatile="false"
  49811. static="true" final="true" visibility="public"
  49812. deprecated="not deprecated">
  49813. </field>
  49814. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49815. transient="false" volatile="false"
  49816. static="true" final="true" visibility="public"
  49817. deprecated="not deprecated">
  49818. </field>
  49819. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49820. transient="false" volatile="false"
  49821. static="true" final="true" visibility="public"
  49822. deprecated="not deprecated">
  49823. </field>
  49824. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49825. transient="false" volatile="false"
  49826. static="true" final="true" visibility="public"
  49827. deprecated="not deprecated">
  49828. </field>
  49829. </class>
  49830. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49831. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  49832. <class name="JobLocalizer" extends="java.lang.Object"
  49833. abstract="false"
  49834. static="false" final="false" visibility="public"
  49835. deprecated="not deprecated">
  49836. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  49837. static="false" final="false" visibility="public"
  49838. deprecated="not deprecated">
  49839. <exception name="IOException" type="java.io.IOException"/>
  49840. </constructor>
  49841. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  49842. static="false" final="false" visibility="public"
  49843. deprecated="not deprecated">
  49844. <exception name="IOException" type="java.io.IOException"/>
  49845. </constructor>
  49846. <method name="createLocalDirs"
  49847. abstract="false" native="false" synchronized="false"
  49848. static="false" final="false" visibility="public"
  49849. deprecated="not deprecated">
  49850. <exception name="IOException" type="java.io.IOException"/>
  49851. </method>
  49852. <method name="createUserDirs"
  49853. abstract="false" native="false" synchronized="false"
  49854. static="false" final="false" visibility="public"
  49855. deprecated="not deprecated">
  49856. <exception name="IOException" type="java.io.IOException"/>
  49857. <doc>
  49858. <![CDATA[Initialize the local directories for a particular user on this TT. This
  49859. involves creation and setting permissions of the following directories
  49860. <ul>
  49861. <li>$mapred.local.dir/taskTracker/$user</li>
  49862. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49863. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  49864. </ul>]]>
  49865. </doc>
  49866. </method>
  49867. <method name="createJobDirs"
  49868. abstract="false" native="false" synchronized="false"
  49869. static="false" final="false" visibility="public"
  49870. deprecated="not deprecated">
  49871. <exception name="IOException" type="java.io.IOException"/>
  49872. <doc>
  49873. <![CDATA[Prepare the job directories for a given job. To be called by the job
  49874. localization code, only if the job is not already localized.
  49875. <br>
  49876. Here, we set 700 permissions on the job directories created on all disks.
  49877. This we do so as to avoid any misuse by other users till the time
  49878. {@link TaskController#initializeJob} is run at a
  49879. later time to set proper private permissions on the job directories. <br>]]>
  49880. </doc>
  49881. </method>
  49882. <method name="initializeJobLogDir"
  49883. abstract="false" native="false" synchronized="false"
  49884. static="false" final="false" visibility="public"
  49885. deprecated="not deprecated">
  49886. <exception name="IOException" type="java.io.IOException"/>
  49887. <doc>
  49888. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  49889. </doc>
  49890. </method>
  49891. <method name="downloadPrivateCache" return="long[]"
  49892. abstract="false" native="false" synchronized="false"
  49893. static="true" final="false" visibility="public"
  49894. deprecated="not deprecated">
  49895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  49896. <exception name="IOException" type="java.io.IOException"/>
  49897. <doc>
  49898. <![CDATA[Download the parts of the distributed cache that are private.
  49899. @param conf the job's configuration
  49900. @throws IOException
  49901. @return the size of the archive objects]]>
  49902. </doc>
  49903. </method>
  49904. <method name="localizeJobFiles"
  49905. abstract="false" native="false" synchronized="false"
  49906. static="false" final="false" visibility="public"
  49907. deprecated="not deprecated">
  49908. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49909. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49910. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49911. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49912. <exception name="IOException" type="java.io.IOException"/>
  49913. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49914. </method>
  49915. <method name="localizeJobFiles"
  49916. abstract="false" native="false" synchronized="false"
  49917. static="false" final="false" visibility="public"
  49918. deprecated="not deprecated">
  49919. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49920. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49921. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  49922. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49923. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49924. <exception name="IOException" type="java.io.IOException"/>
  49925. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49926. </method>
  49927. <method name="createWorkDir"
  49928. abstract="false" native="false" synchronized="false"
  49929. static="false" final="false" visibility="public"
  49930. deprecated="not deprecated">
  49931. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49932. <exception name="IOException" type="java.io.IOException"/>
  49933. </method>
  49934. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  49935. abstract="false" native="false" synchronized="false"
  49936. static="false" final="false" visibility="public"
  49937. deprecated="not deprecated">
  49938. <exception name="IOException" type="java.io.IOException"/>
  49939. </method>
  49940. <method name="runSetup" return="int"
  49941. abstract="false" native="false" synchronized="false"
  49942. static="false" final="false" visibility="public"
  49943. deprecated="not deprecated">
  49944. <param name="user" type="java.lang.String"/>
  49945. <param name="jobid" type="java.lang.String"/>
  49946. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49947. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49948. <exception name="IOException" type="java.io.IOException"/>
  49949. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49950. </method>
  49951. <method name="main"
  49952. abstract="false" native="false" synchronized="false"
  49953. static="true" final="false" visibility="public"
  49954. deprecated="not deprecated">
  49955. <param name="argv" type="java.lang.String[]"/>
  49956. <exception name="IOException" type="java.io.IOException"/>
  49957. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49958. </method>
  49959. <method name="writeLocalJobFile"
  49960. abstract="false" native="false" synchronized="false"
  49961. static="true" final="false" visibility="public"
  49962. deprecated="not deprecated">
  49963. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  49964. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49965. <exception name="IOException" type="java.io.IOException"/>
  49966. <doc>
  49967. <![CDATA[Write the task specific job-configuration file.
  49968. @throws IOException]]>
  49969. </doc>
  49970. </method>
  49971. <doc>
  49972. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  49973. Creates the following hierarchy:
  49974. <li>$mapred.local.dir/taskTracker/$user</li>
  49975. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49976. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  49977. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  49978. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  49979. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  49980. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  49981. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  49982. </doc>
  49983. </class>
  49984. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  49985. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  49986. <class name="JobPriority" extends="java.lang.Enum"
  49987. abstract="false"
  49988. static="false" final="true" visibility="public"
  49989. deprecated="not deprecated">
  49990. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  49991. abstract="false" native="false" synchronized="false"
  49992. static="true" final="false" visibility="public"
  49993. deprecated="not deprecated">
  49994. </method>
  49995. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  49996. abstract="false" native="false" synchronized="false"
  49997. static="true" final="false" visibility="public"
  49998. deprecated="not deprecated">
  49999. <param name="name" type="java.lang.String"/>
  50000. </method>
  50001. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  50002. transient="false" volatile="false"
  50003. static="true" final="true" visibility="public"
  50004. deprecated="not deprecated">
  50005. </field>
  50006. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  50007. transient="false" volatile="false"
  50008. static="true" final="true" visibility="public"
  50009. deprecated="not deprecated">
  50010. </field>
  50011. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  50012. transient="false" volatile="false"
  50013. static="true" final="true" visibility="public"
  50014. deprecated="not deprecated">
  50015. </field>
  50016. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  50017. transient="false" volatile="false"
  50018. static="true" final="true" visibility="public"
  50019. deprecated="not deprecated">
  50020. </field>
  50021. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  50022. transient="false" volatile="false"
  50023. static="true" final="true" visibility="public"
  50024. deprecated="not deprecated">
  50025. </field>
  50026. <doc>
  50027. <![CDATA[Used to describe the priority of the running job.]]>
  50028. </doc>
  50029. </class>
  50030. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  50031. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  50032. <class name="JobProfile" extends="java.lang.Object"
  50033. abstract="false"
  50034. static="false" final="false" visibility="public"
  50035. deprecated="not deprecated">
  50036. <implements name="org.apache.hadoop.io.Writable"/>
  50037. <constructor name="JobProfile"
  50038. static="false" final="false" visibility="public"
  50039. deprecated="not deprecated">
  50040. <doc>
  50041. <![CDATA[Construct an empty {@link JobProfile}.]]>
  50042. </doc>
  50043. </constructor>
  50044. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  50045. static="false" final="false" visibility="public"
  50046. deprecated="not deprecated">
  50047. <doc>
  50048. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  50049. job config-file, job-details url and job name.
  50050. @param user userid of the person who submitted the job.
  50051. @param jobid id of the job.
  50052. @param jobFile job configuration file.
  50053. @param url link to the web-ui for details of the job.
  50054. @param name user-specified job name.]]>
  50055. </doc>
  50056. </constructor>
  50057. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  50058. static="false" final="false" visibility="public"
  50059. deprecated="not deprecated">
  50060. <doc>
  50061. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  50062. job config-file, job-details url and job name.
  50063. @param user userid of the person who submitted the job.
  50064. @param jobid id of the job.
  50065. @param jobFile job configuration file.
  50066. @param url link to the web-ui for details of the job.
  50067. @param name user-specified job name.
  50068. @param queueName name of the queue to which the job is submitted]]>
  50069. </doc>
  50070. </constructor>
  50071. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  50072. static="false" final="false" visibility="public"
  50073. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  50074. <doc>
  50075. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  50076. </doc>
  50077. </constructor>
  50078. <method name="getUser" return="java.lang.String"
  50079. abstract="false" native="false" synchronized="false"
  50080. static="false" final="false" visibility="public"
  50081. deprecated="not deprecated">
  50082. <doc>
  50083. <![CDATA[Get the user id.]]>
  50084. </doc>
  50085. </method>
  50086. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  50087. abstract="false" native="false" synchronized="false"
  50088. static="false" final="false" visibility="public"
  50089. deprecated="not deprecated">
  50090. <doc>
  50091. <![CDATA[Get the job id.]]>
  50092. </doc>
  50093. </method>
  50094. <method name="getJobId" return="java.lang.String"
  50095. abstract="false" native="false" synchronized="false"
  50096. static="false" final="false" visibility="public"
  50097. deprecated="use getJobID() instead">
  50098. <doc>
  50099. <![CDATA[@deprecated use getJobID() instead]]>
  50100. </doc>
  50101. </method>
  50102. <method name="getJobFile" return="java.lang.String"
  50103. abstract="false" native="false" synchronized="false"
  50104. static="false" final="false" visibility="public"
  50105. deprecated="not deprecated">
  50106. <doc>
  50107. <![CDATA[Get the configuration file for the job.]]>
  50108. </doc>
  50109. </method>
  50110. <method name="getURL" return="java.net.URL"
  50111. abstract="false" native="false" synchronized="false"
  50112. static="false" final="false" visibility="public"
  50113. deprecated="not deprecated">
  50114. <doc>
  50115. <![CDATA[Get the link to the web-ui for details of the job.]]>
  50116. </doc>
  50117. </method>
  50118. <method name="getJobName" return="java.lang.String"
  50119. abstract="false" native="false" synchronized="false"
  50120. static="false" final="false" visibility="public"
  50121. deprecated="not deprecated">
  50122. <doc>
  50123. <![CDATA[Get the user-specified job name.]]>
  50124. </doc>
  50125. </method>
  50126. <method name="getQueueName" return="java.lang.String"
  50127. abstract="false" native="false" synchronized="false"
  50128. static="false" final="false" visibility="public"
  50129. deprecated="not deprecated">
  50130. <doc>
  50131. <![CDATA[Get the name of the queue to which the job is submitted.
  50132. @return name of the queue.]]>
  50133. </doc>
  50134. </method>
  50135. <method name="write"
  50136. abstract="false" native="false" synchronized="false"
  50137. static="false" final="false" visibility="public"
  50138. deprecated="not deprecated">
  50139. <param name="out" type="java.io.DataOutput"/>
  50140. <exception name="IOException" type="java.io.IOException"/>
  50141. </method>
  50142. <method name="readFields"
  50143. abstract="false" native="false" synchronized="false"
  50144. static="false" final="false" visibility="public"
  50145. deprecated="not deprecated">
  50146. <param name="in" type="java.io.DataInput"/>
  50147. <exception name="IOException" type="java.io.IOException"/>
  50148. </method>
  50149. <doc>
  50150. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  50151. whether living or dead.]]>
  50152. </doc>
  50153. </class>
  50154. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  50155. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  50156. <class name="JobQueueInfo" extends="java.lang.Object"
  50157. abstract="false"
  50158. static="false" final="false" visibility="public"
  50159. deprecated="not deprecated">
  50160. <implements name="org.apache.hadoop.io.Writable"/>
  50161. <constructor name="JobQueueInfo"
  50162. static="false" final="false" visibility="public"
  50163. deprecated="not deprecated">
  50164. </constructor>
  50165. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  50166. static="false" final="false" visibility="public"
  50167. deprecated="not deprecated">
  50168. <doc>
  50169. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  50170. scheduling information passed.
  50171. @param queueName Name of the job queue
  50172. @param schedulingInfo Scheduling Information associated with the job
  50173. queue]]>
  50174. </doc>
  50175. </constructor>
  50176. <method name="setQueueName"
  50177. abstract="false" native="false" synchronized="false"
  50178. static="false" final="false" visibility="public"
  50179. deprecated="not deprecated">
  50180. <param name="queueName" type="java.lang.String"/>
  50181. <doc>
  50182. <![CDATA[Set the queue name of the JobQueueInfo
  50183. @param queueName Name of the job queue.]]>
  50184. </doc>
  50185. </method>
  50186. <method name="getQueueName" return="java.lang.String"
  50187. abstract="false" native="false" synchronized="false"
  50188. static="false" final="false" visibility="public"
  50189. deprecated="not deprecated">
  50190. <doc>
  50191. <![CDATA[Get the queue name from JobQueueInfo
  50192. @return queue name]]>
  50193. </doc>
  50194. </method>
  50195. <method name="setSchedulingInfo"
  50196. abstract="false" native="false" synchronized="false"
  50197. static="false" final="false" visibility="public"
  50198. deprecated="not deprecated">
  50199. <param name="schedulingInfo" type="java.lang.String"/>
  50200. <doc>
  50201. <![CDATA[Set the scheduling information associated to particular job queue
  50202. @param schedulingInfo]]>
  50203. </doc>
  50204. </method>
  50205. <method name="getSchedulingInfo" return="java.lang.String"
  50206. abstract="false" native="false" synchronized="false"
  50207. static="false" final="false" visibility="public"
  50208. deprecated="not deprecated">
  50209. <doc>
  50210. <![CDATA[Gets the scheduling information associated to particular job queue.
  50211. If nothing is set would return <b>"N/A"</b>
  50212. @return Scheduling information associated to particular Job Queue]]>
  50213. </doc>
  50214. </method>
  50215. <method name="setQueueState"
  50216. abstract="false" native="false" synchronized="false"
  50217. static="false" final="false" visibility="public"
  50218. deprecated="not deprecated">
  50219. <param name="state" type="java.lang.String"/>
  50220. <doc>
  50221. <![CDATA[Set the state of the queue
  50222. @param state state of the queue.]]>
  50223. </doc>
  50224. </method>
  50225. <method name="getQueueState" return="java.lang.String"
  50226. abstract="false" native="false" synchronized="false"
  50227. static="false" final="false" visibility="public"
  50228. deprecated="not deprecated">
  50229. <doc>
  50230. <![CDATA[Return the queue state
  50231. @return the queue state.]]>
  50232. </doc>
  50233. </method>
  50234. <method name="readFields"
  50235. abstract="false" native="false" synchronized="false"
  50236. static="false" final="false" visibility="public"
  50237. deprecated="not deprecated">
  50238. <param name="in" type="java.io.DataInput"/>
  50239. <exception name="IOException" type="java.io.IOException"/>
  50240. </method>
  50241. <method name="write"
  50242. abstract="false" native="false" synchronized="false"
  50243. static="false" final="false" visibility="public"
  50244. deprecated="not deprecated">
  50245. <param name="out" type="java.io.DataOutput"/>
  50246. <exception name="IOException" type="java.io.IOException"/>
  50247. </method>
  50248. <doc>
  50249. <![CDATA[Class that contains the information regarding the Job Queues which are
  50250. maintained by the Hadoop Map/Reduce framework.]]>
  50251. </doc>
  50252. </class>
  50253. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  50254. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  50255. <class name="JobStatus" extends="java.lang.Object"
  50256. abstract="false"
  50257. static="false" final="false" visibility="public"
  50258. deprecated="not deprecated">
  50259. <implements name="org.apache.hadoop.io.Writable"/>
  50260. <implements name="java.lang.Cloneable"/>
  50261. <constructor name="JobStatus"
  50262. static="false" final="false" visibility="public"
  50263. deprecated="not deprecated">
  50264. </constructor>
  50265. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  50266. static="false" final="false" visibility="public"
  50267. deprecated="not deprecated">
  50268. <doc>
  50269. <![CDATA[Create a job status object for a given jobid.
  50270. @param jobid The jobid of the job
  50271. @param mapProgress The progress made on the maps
  50272. @param reduceProgress The progress made on the reduces
  50273. @param cleanupProgress The progress made on cleanup
  50274. @param runState The current state of the job]]>
  50275. </doc>
  50276. </constructor>
  50277. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  50278. static="false" final="false" visibility="public"
  50279. deprecated="not deprecated">
  50280. <doc>
  50281. <![CDATA[Create a job status object for a given jobid.
  50282. @param jobid The jobid of the job
  50283. @param mapProgress The progress made on the maps
  50284. @param reduceProgress The progress made on the reduces
  50285. @param runState The current state of the job]]>
  50286. </doc>
  50287. </constructor>
  50288. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  50289. static="false" final="false" visibility="public"
  50290. deprecated="not deprecated">
  50291. <doc>
  50292. <![CDATA[Create a job status object for a given jobid.
  50293. @param jobid The jobid of the job
  50294. @param mapProgress The progress made on the maps
  50295. @param reduceProgress The progress made on the reduces
  50296. @param runState The current state of the job
  50297. @param jp Priority of the job.]]>
  50298. </doc>
  50299. </constructor>
  50300. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  50301. static="false" final="false" visibility="public"
  50302. deprecated="not deprecated">
  50303. <doc>
  50304. <![CDATA[Create a job status object for a given jobid.
  50305. @param jobid The jobid of the job
  50306. @param setupProgress The progress made on the setup
  50307. @param mapProgress The progress made on the maps
  50308. @param reduceProgress The progress made on the reduces
  50309. @param cleanupProgress The progress made on the cleanup
  50310. @param runState The current state of the job
  50311. @param jp Priority of the job.]]>
  50312. </doc>
  50313. </constructor>
  50314. <method name="getJobRunState" return="java.lang.String"
  50315. abstract="false" native="false" synchronized="false"
  50316. static="true" final="false" visibility="public"
  50317. deprecated="not deprecated">
  50318. <param name="state" type="int"/>
  50319. <doc>
  50320. <![CDATA[Helper method to get human-readable state of the job.
  50321. @param state job state
  50322. @return human-readable state of the job]]>
  50323. </doc>
  50324. </method>
  50325. <method name="getJobId" return="java.lang.String"
  50326. abstract="false" native="false" synchronized="false"
  50327. static="false" final="false" visibility="public"
  50328. deprecated="use getJobID instead">
  50329. <doc>
  50330. <![CDATA[@deprecated use getJobID instead]]>
  50331. </doc>
  50332. </method>
  50333. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  50334. abstract="false" native="false" synchronized="false"
  50335. static="false" final="false" visibility="public"
  50336. deprecated="not deprecated">
  50337. <doc>
  50338. <![CDATA[@return The jobid of the Job]]>
  50339. </doc>
  50340. </method>
  50341. <method name="mapProgress" return="float"
  50342. abstract="false" native="false" synchronized="true"
  50343. static="false" final="false" visibility="public"
  50344. deprecated="not deprecated">
  50345. <doc>
  50346. <![CDATA[@return Percentage of progress in maps]]>
  50347. </doc>
  50348. </method>
  50349. <method name="setJobACLs"
  50350. abstract="false" native="false" synchronized="true"
  50351. static="false" final="false" visibility="protected"
  50352. deprecated="not deprecated">
  50353. <param name="acls" type="java.util.Map"/>
  50354. <doc>
  50355. <![CDATA[Set the job acls
  50356. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  50357. </doc>
  50358. </method>
  50359. <method name="cleanupProgress" return="float"
  50360. abstract="false" native="false" synchronized="true"
  50361. static="false" final="false" visibility="public"
  50362. deprecated="not deprecated">
  50363. <doc>
  50364. <![CDATA[@return Percentage of progress in cleanup]]>
  50365. </doc>
  50366. </method>
  50367. <method name="setupProgress" return="float"
  50368. abstract="false" native="false" synchronized="true"
  50369. static="false" final="false" visibility="public"
  50370. deprecated="not deprecated">
  50371. <doc>
  50372. <![CDATA[@return Percentage of progress in setup]]>
  50373. </doc>
  50374. </method>
  50375. <method name="reduceProgress" return="float"
  50376. abstract="false" native="false" synchronized="true"
  50377. static="false" final="false" visibility="public"
  50378. deprecated="not deprecated">
  50379. <doc>
  50380. <![CDATA[@return Percentage of progress in reduce]]>
  50381. </doc>
  50382. </method>
  50383. <method name="getRunState" return="int"
  50384. abstract="false" native="false" synchronized="true"
  50385. static="false" final="false" visibility="public"
  50386. deprecated="not deprecated">
  50387. <doc>
  50388. <![CDATA[@return running state of the job]]>
  50389. </doc>
  50390. </method>
  50391. <method name="setRunState"
  50392. abstract="false" native="false" synchronized="true"
  50393. static="false" final="false" visibility="public"
  50394. deprecated="not deprecated">
  50395. <param name="state" type="int"/>
  50396. <doc>
  50397. <![CDATA[Change the current run state of the job.]]>
  50398. </doc>
  50399. </method>
  50400. <method name="getStartTime" return="long"
  50401. abstract="false" native="false" synchronized="true"
  50402. static="false" final="false" visibility="public"
  50403. deprecated="not deprecated">
  50404. <doc>
  50405. <![CDATA[@return start time of the job]]>
  50406. </doc>
  50407. </method>
  50408. <method name="clone" return="java.lang.Object"
  50409. abstract="false" native="false" synchronized="false"
  50410. static="false" final="false" visibility="public"
  50411. deprecated="not deprecated">
  50412. </method>
  50413. <method name="getUsername" return="java.lang.String"
  50414. abstract="false" native="false" synchronized="true"
  50415. static="false" final="false" visibility="public"
  50416. deprecated="not deprecated">
  50417. <doc>
  50418. <![CDATA[@return the username of the job]]>
  50419. </doc>
  50420. </method>
  50421. <method name="getSchedulingInfo" return="java.lang.String"
  50422. abstract="false" native="false" synchronized="true"
  50423. static="false" final="false" visibility="public"
  50424. deprecated="not deprecated">
  50425. <doc>
  50426. <![CDATA[Gets the Scheduling information associated to a particular Job.
  50427. @return the scheduling information of the job]]>
  50428. </doc>
  50429. </method>
  50430. <method name="getFailureInfo" return="java.lang.String"
  50431. abstract="false" native="false" synchronized="true"
  50432. static="false" final="false" visibility="public"
  50433. deprecated="not deprecated">
  50434. <doc>
  50435. <![CDATA[gets any available info on the reason of failure of the job.
  50436. @return diagnostic information on why a job might have failed.]]>
  50437. </doc>
  50438. </method>
  50439. <method name="setFailureInfo"
  50440. abstract="false" native="false" synchronized="true"
  50441. static="false" final="false" visibility="public"
  50442. deprecated="not deprecated">
  50443. <param name="failureInfo" type="java.lang.String"/>
  50444. <doc>
  50445. <![CDATA[set the reason for failuire of this job
  50446. @param failureInfo the reason for failure of this job.]]>
  50447. </doc>
  50448. </method>
  50449. <method name="setSchedulingInfo"
  50450. abstract="false" native="false" synchronized="true"
  50451. static="false" final="false" visibility="public"
  50452. deprecated="not deprecated">
  50453. <param name="schedulingInfo" type="java.lang.String"/>
  50454. <doc>
  50455. <![CDATA[Used to set the scheduling information associated to a particular Job.
  50456. @param schedulingInfo Scheduling information of the job]]>
  50457. </doc>
  50458. </method>
  50459. <method name="getJobACLs" return="java.util.Map"
  50460. abstract="false" native="false" synchronized="true"
  50461. static="false" final="false" visibility="public"
  50462. deprecated="not deprecated">
  50463. <doc>
  50464. <![CDATA[Get the acls for Job.
  50465. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  50466. </doc>
  50467. </method>
  50468. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  50469. abstract="false" native="false" synchronized="true"
  50470. static="false" final="false" visibility="public"
  50471. deprecated="not deprecated">
  50472. <doc>
  50473. <![CDATA[Return the priority of the job
  50474. @return job priority]]>
  50475. </doc>
  50476. </method>
  50477. <method name="setJobPriority"
  50478. abstract="false" native="false" synchronized="true"
  50479. static="false" final="false" visibility="public"
  50480. deprecated="not deprecated">
  50481. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  50482. <doc>
  50483. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  50484. @param jp new job priority]]>
  50485. </doc>
  50486. </method>
  50487. <method name="isJobComplete" return="boolean"
  50488. abstract="false" native="false" synchronized="true"
  50489. static="false" final="false" visibility="public"
  50490. deprecated="not deprecated">
  50491. <doc>
  50492. <![CDATA[Returns true if the status is for a completed job.]]>
  50493. </doc>
  50494. </method>
  50495. <method name="write"
  50496. abstract="false" native="false" synchronized="true"
  50497. static="false" final="false" visibility="public"
  50498. deprecated="not deprecated">
  50499. <param name="out" type="java.io.DataOutput"/>
  50500. <exception name="IOException" type="java.io.IOException"/>
  50501. </method>
  50502. <method name="readFields"
  50503. abstract="false" native="false" synchronized="true"
  50504. static="false" final="false" visibility="public"
  50505. deprecated="not deprecated">
  50506. <param name="in" type="java.io.DataInput"/>
  50507. <exception name="IOException" type="java.io.IOException"/>
  50508. </method>
  50509. <field name="RUNNING" type="int"
  50510. transient="false" volatile="false"
  50511. static="true" final="true" visibility="public"
  50512. deprecated="not deprecated">
  50513. </field>
  50514. <field name="SUCCEEDED" type="int"
  50515. transient="false" volatile="false"
  50516. static="true" final="true" visibility="public"
  50517. deprecated="not deprecated">
  50518. </field>
  50519. <field name="FAILED" type="int"
  50520. transient="false" volatile="false"
  50521. static="true" final="true" visibility="public"
  50522. deprecated="not deprecated">
  50523. </field>
  50524. <field name="PREP" type="int"
  50525. transient="false" volatile="false"
  50526. static="true" final="true" visibility="public"
  50527. deprecated="not deprecated">
  50528. </field>
  50529. <field name="KILLED" type="int"
  50530. transient="false" volatile="false"
  50531. static="true" final="true" visibility="public"
  50532. deprecated="not deprecated">
  50533. </field>
  50534. <doc>
  50535. <![CDATA[Describes the current status of a job.
  50536. @see JobProfile for some more information.]]>
  50537. </doc>
  50538. </class>
  50539. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  50540. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  50541. <class name="JobTracker" extends="java.lang.Object"
  50542. abstract="false"
  50543. static="false" final="false" visibility="public"
  50544. deprecated="not deprecated">
  50545. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  50546. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  50547. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  50548. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  50549. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  50550. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  50551. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  50552. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  50553. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  50554. abstract="false" native="false" synchronized="false"
  50555. static="false" final="false" visibility="public"
  50556. deprecated="not deprecated">
  50557. </method>
  50558. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  50559. abstract="false" native="false" synchronized="false"
  50560. static="true" final="false" visibility="public"
  50561. deprecated="not deprecated">
  50562. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50563. <exception name="IOException" type="java.io.IOException"/>
  50564. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50565. <doc>
  50566. <![CDATA[Start the JobTracker with given configuration.
  50567. The conf will be modified to reflect the actual ports on which
  50568. the JobTracker is up and running if the user passes the port as
  50569. <code>zero</code>.
  50570. @param conf configuration for the JobTracker.
  50571. @throws IOException]]>
  50572. </doc>
  50573. </method>
  50574. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  50575. abstract="false" native="false" synchronized="false"
  50576. static="true" final="false" visibility="public"
  50577. deprecated="not deprecated">
  50578. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50579. <param name="identifier" type="java.lang.String"/>
  50580. <exception name="IOException" type="java.io.IOException"/>
  50581. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50582. </method>
  50583. <method name="stopTracker"
  50584. abstract="false" native="false" synchronized="false"
  50585. static="false" final="false" visibility="public"
  50586. deprecated="not deprecated">
  50587. <exception name="IOException" type="java.io.IOException"/>
  50588. </method>
  50589. <method name="getProtocolVersion" return="long"
  50590. abstract="false" native="false" synchronized="false"
  50591. static="false" final="false" visibility="public"
  50592. deprecated="not deprecated">
  50593. <param name="protocol" type="java.lang.String"/>
  50594. <param name="clientVersion" type="long"/>
  50595. <exception name="IOException" type="java.io.IOException"/>
  50596. </method>
  50597. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  50598. abstract="false" native="false" synchronized="false"
  50599. static="false" final="false" visibility="public"
  50600. deprecated="not deprecated">
  50601. </method>
  50602. <method name="hasRestarted" return="boolean"
  50603. abstract="false" native="false" synchronized="false"
  50604. static="false" final="false" visibility="public"
  50605. deprecated="not deprecated">
  50606. <doc>
  50607. <![CDATA[Whether the JT has restarted]]>
  50608. </doc>
  50609. </method>
  50610. <method name="hasRecovered" return="boolean"
  50611. abstract="false" native="false" synchronized="false"
  50612. static="false" final="false" visibility="public"
  50613. deprecated="not deprecated">
  50614. <doc>
  50615. <![CDATA[Whether the JT has recovered upon restart]]>
  50616. </doc>
  50617. </method>
  50618. <method name="getRecoveryDuration" return="long"
  50619. abstract="false" native="false" synchronized="false"
  50620. static="false" final="false" visibility="public"
  50621. deprecated="not deprecated">
  50622. <doc>
  50623. <![CDATA[How long the jobtracker took to recover from restart.]]>
  50624. </doc>
  50625. </method>
  50626. <method name="getAddress" return="java.net.InetSocketAddress"
  50627. abstract="false" native="false" synchronized="false"
  50628. static="true" final="false" visibility="public"
  50629. deprecated="not deprecated">
  50630. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50631. </method>
  50632. <method name="offerService"
  50633. abstract="false" native="false" synchronized="false"
  50634. static="false" final="false" visibility="public"
  50635. deprecated="not deprecated">
  50636. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50637. <exception name="IOException" type="java.io.IOException"/>
  50638. <doc>
  50639. <![CDATA[Run forever]]>
  50640. </doc>
  50641. </method>
  50642. <method name="getTotalSubmissions" return="int"
  50643. abstract="false" native="false" synchronized="false"
  50644. static="false" final="false" visibility="public"
  50645. deprecated="not deprecated">
  50646. </method>
  50647. <method name="getJobTrackerMachine" return="java.lang.String"
  50648. abstract="false" native="false" synchronized="false"
  50649. static="false" final="false" visibility="public"
  50650. deprecated="not deprecated">
  50651. </method>
  50652. <method name="getTrackerIdentifier" return="java.lang.String"
  50653. abstract="false" native="false" synchronized="false"
  50654. static="false" final="false" visibility="public"
  50655. deprecated="not deprecated">
  50656. <doc>
  50657. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  50658. @return a string with a unique identifier]]>
  50659. </doc>
  50660. </method>
  50661. <method name="getTrackerPort" return="int"
  50662. abstract="false" native="false" synchronized="false"
  50663. static="false" final="false" visibility="public"
  50664. deprecated="not deprecated">
  50665. </method>
  50666. <method name="getInfoPort" return="int"
  50667. abstract="false" native="false" synchronized="false"
  50668. static="false" final="false" visibility="public"
  50669. deprecated="not deprecated">
  50670. </method>
  50671. <method name="getStartTime" return="long"
  50672. abstract="false" native="false" synchronized="false"
  50673. static="false" final="false" visibility="public"
  50674. deprecated="not deprecated">
  50675. </method>
  50676. <method name="runningJobs" return="java.util.Vector"
  50677. abstract="false" native="false" synchronized="false"
  50678. static="false" final="false" visibility="public"
  50679. deprecated="not deprecated">
  50680. </method>
  50681. <method name="getRunningJobs" return="java.util.List"
  50682. abstract="false" native="false" synchronized="true"
  50683. static="false" final="false" visibility="public"
  50684. deprecated="not deprecated">
  50685. <doc>
  50686. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  50687. careful to synchronize.]]>
  50688. </doc>
  50689. </method>
  50690. <method name="failedJobs" return="java.util.Vector"
  50691. abstract="false" native="false" synchronized="false"
  50692. static="false" final="false" visibility="public"
  50693. deprecated="not deprecated">
  50694. </method>
  50695. <method name="completedJobs" return="java.util.Vector"
  50696. abstract="false" native="false" synchronized="false"
  50697. static="false" final="false" visibility="public"
  50698. deprecated="not deprecated">
  50699. </method>
  50700. <method name="taskTrackers" return="java.util.Collection"
  50701. abstract="false" native="false" synchronized="true"
  50702. static="false" final="false" visibility="public"
  50703. deprecated="not deprecated">
  50704. <doc>
  50705. <![CDATA[Get all the task trackers in the cluster
  50706. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  50707. </doc>
  50708. </method>
  50709. <method name="activeTaskTrackers" return="java.util.Collection"
  50710. abstract="false" native="false" synchronized="true"
  50711. static="false" final="false" visibility="public"
  50712. deprecated="not deprecated">
  50713. <doc>
  50714. <![CDATA[Get the active task tracker statuses in the cluster
  50715. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  50716. </doc>
  50717. </method>
  50718. <method name="taskTrackerNames" return="java.util.List"
  50719. abstract="false" native="false" synchronized="true"
  50720. static="false" final="false" visibility="public"
  50721. deprecated="not deprecated">
  50722. <doc>
  50723. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  50724. cluster. The first element in the returned list contains the list of
  50725. active tracker names; the second element in the returned list contains
  50726. the list of blacklisted tracker names; and the third contains the list
  50727. of graylisted tracker names. Note that the blacklist is disjoint
  50728. from the active list, but the graylist is not: initially, graylisted
  50729. trackers are still active and therefore will appear in both lists.
  50730. (Graylisted trackers can later be blacklisted, in which case they'll
  50731. be removed from the active list and added to the blacklist, but they
  50732. remain on the graylist in this case. Blacklisting comes about via the
  50733. health-check script, while graylisting is heuristically based on the
  50734. number of per-job blacklistings in a specified time interval.)]]>
  50735. </doc>
  50736. </method>
  50737. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  50738. abstract="false" native="false" synchronized="false"
  50739. static="false" final="false" visibility="public"
  50740. deprecated="not deprecated">
  50741. <doc>
  50742. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  50743. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  50744. </doc>
  50745. </method>
  50746. <method name="graylistedTaskTrackers" return="java.util.Collection"
  50747. abstract="false" native="false" synchronized="false"
  50748. static="false" final="false" visibility="public"
  50749. deprecated="not deprecated">
  50750. <doc>
  50751. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  50752. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  50753. </doc>
  50754. </method>
  50755. <method name="isBlacklisted" return="boolean"
  50756. abstract="false" native="false" synchronized="true"
  50757. static="false" final="false" visibility="public"
  50758. deprecated="not deprecated">
  50759. <param name="trackerID" type="java.lang.String"/>
  50760. <doc>
  50761. <![CDATA[Whether the tracker is blacklisted or not
  50762. @param trackerID
  50763. @return true if blacklisted, false otherwise]]>
  50764. </doc>
  50765. </method>
  50766. <method name="isGraylisted" return="boolean"
  50767. abstract="false" native="false" synchronized="true"
  50768. static="false" final="false" visibility="public"
  50769. deprecated="not deprecated">
  50770. <param name="trackerID" type="java.lang.String"/>
  50771. <doc>
  50772. <![CDATA[Whether the tracker is graylisted or not
  50773. @param trackerID
  50774. @return true if graylisted, false otherwise]]>
  50775. </doc>
  50776. </method>
  50777. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  50778. abstract="false" native="false" synchronized="true"
  50779. static="false" final="false" visibility="public"
  50780. deprecated="not deprecated">
  50781. <param name="trackerID" type="java.lang.String"/>
  50782. </method>
  50783. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  50784. abstract="false" native="false" synchronized="true"
  50785. static="false" final="false" visibility="public"
  50786. deprecated="not deprecated">
  50787. <param name="trackerID" type="java.lang.String"/>
  50788. </method>
  50789. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  50790. abstract="false" native="false" synchronized="false"
  50791. static="false" final="false" visibility="public"
  50792. deprecated="not deprecated">
  50793. <param name="name" type="java.lang.String"/>
  50794. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  50795. </method>
  50796. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  50797. abstract="false" native="false" synchronized="false"
  50798. static="false" final="false" visibility="public"
  50799. deprecated="not deprecated">
  50800. <doc>
  50801. <![CDATA[Returns a collection of nodes at the max level]]>
  50802. </doc>
  50803. </method>
  50804. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  50805. abstract="false" native="false" synchronized="false"
  50806. static="true" final="false" visibility="public"
  50807. deprecated="not deprecated">
  50808. <param name="node" type="org.apache.hadoop.net.Node"/>
  50809. <param name="level" type="int"/>
  50810. </method>
  50811. <method name="getNode" return="org.apache.hadoop.net.Node"
  50812. abstract="false" native="false" synchronized="false"
  50813. static="false" final="false" visibility="public"
  50814. deprecated="not deprecated">
  50815. <param name="name" type="java.lang.String"/>
  50816. <doc>
  50817. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  50818. </doc>
  50819. </method>
  50820. <method name="getNumTaskCacheLevels" return="int"
  50821. abstract="false" native="false" synchronized="false"
  50822. static="false" final="false" visibility="public"
  50823. deprecated="not deprecated">
  50824. </method>
  50825. <method name="getNumResolvedTaskTrackers" return="int"
  50826. abstract="false" native="false" synchronized="false"
  50827. static="false" final="false" visibility="public"
  50828. deprecated="not deprecated">
  50829. </method>
  50830. <method name="getNumberOfUniqueHosts" return="int"
  50831. abstract="false" native="false" synchronized="false"
  50832. static="false" final="false" visibility="public"
  50833. deprecated="not deprecated">
  50834. </method>
  50835. <method name="addJobInProgressListener"
  50836. abstract="false" native="false" synchronized="false"
  50837. static="false" final="false" visibility="public"
  50838. deprecated="not deprecated">
  50839. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50840. </method>
  50841. <method name="removeJobInProgressListener"
  50842. abstract="false" native="false" synchronized="false"
  50843. static="false" final="false" visibility="public"
  50844. deprecated="not deprecated">
  50845. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50846. </method>
  50847. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  50848. abstract="false" native="false" synchronized="false"
  50849. static="false" final="false" visibility="public"
  50850. deprecated="not deprecated">
  50851. <doc>
  50852. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  50853. </doc>
  50854. </method>
  50855. <method name="getBuildVersion" return="java.lang.String"
  50856. abstract="false" native="false" synchronized="false"
  50857. static="false" final="false" visibility="public"
  50858. deprecated="not deprecated">
  50859. <exception name="IOException" type="java.io.IOException"/>
  50860. </method>
  50861. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  50862. abstract="false" native="false" synchronized="true"
  50863. static="false" final="false" visibility="public"
  50864. deprecated="not deprecated">
  50865. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50866. <param name="restarted" type="boolean"/>
  50867. <param name="initialContact" type="boolean"/>
  50868. <param name="acceptNewTasks" type="boolean"/>
  50869. <param name="responseId" type="short"/>
  50870. <exception name="IOException" type="java.io.IOException"/>
  50871. <doc>
  50872. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  50873. the {@link JobTracker}.
  50874. The {@link JobTracker} processes the status information sent by the
  50875. {@link TaskTracker} and responds with instructions to start/stop
  50876. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  50877. </doc>
  50878. </method>
  50879. <method name="getNextHeartbeatInterval" return="int"
  50880. abstract="false" native="false" synchronized="false"
  50881. static="false" final="false" visibility="public"
  50882. deprecated="not deprecated">
  50883. <doc>
  50884. <![CDATA[Calculates next heartbeat interval using cluster size.
  50885. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  50886. @return next heartbeat interval.]]>
  50887. </doc>
  50888. </method>
  50889. <method name="getFilesystemName" return="java.lang.String"
  50890. abstract="false" native="false" synchronized="true"
  50891. static="false" final="false" visibility="public"
  50892. deprecated="not deprecated">
  50893. <exception name="IOException" type="java.io.IOException"/>
  50894. <doc>
  50895. <![CDATA[Grab the local fs name]]>
  50896. </doc>
  50897. </method>
  50898. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  50899. abstract="false" native="false" synchronized="false"
  50900. static="false" final="false" visibility="public"
  50901. deprecated="not deprecated">
  50902. <doc>
  50903. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  50904. </doc>
  50905. </method>
  50906. <method name="reportTaskTrackerError"
  50907. abstract="false" native="false" synchronized="false"
  50908. static="false" final="false" visibility="public"
  50909. deprecated="not deprecated">
  50910. <param name="taskTracker" type="java.lang.String"/>
  50911. <param name="errorClass" type="java.lang.String"/>
  50912. <param name="errorMessage" type="java.lang.String"/>
  50913. <exception name="IOException" type="java.io.IOException"/>
  50914. </method>
  50915. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  50916. abstract="false" native="false" synchronized="true"
  50917. static="false" final="false" visibility="public"
  50918. deprecated="not deprecated">
  50919. <exception name="IOException" type="java.io.IOException"/>
  50920. <doc>
  50921. <![CDATA[Allocates a new JobId string.]]>
  50922. </doc>
  50923. </method>
  50924. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  50925. abstract="false" native="false" synchronized="false"
  50926. static="false" final="false" visibility="public"
  50927. deprecated="not deprecated">
  50928. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50929. <param name="jobSubmitDir" type="java.lang.String"/>
  50930. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  50931. <exception name="IOException" type="java.io.IOException"/>
  50932. <doc>
  50933. <![CDATA[JobTracker.submitJob() kicks off a new job.
  50934. Create a 'JobInProgress' object, which contains both JobProfile
  50935. and JobStatus. Those two sub-objects are sometimes shipped outside
  50936. of the JobTracker. But JobInProgress adds info that's useful for
  50937. the JobTracker alone.]]>
  50938. </doc>
  50939. </method>
  50940. <method name="getStagingAreaDir" return="java.lang.String"
  50941. abstract="false" native="false" synchronized="false"
  50942. static="false" final="false" visibility="public"
  50943. deprecated="not deprecated">
  50944. <exception name="IOException" type="java.io.IOException"/>
  50945. <doc>
  50946. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  50947. </doc>
  50948. </method>
  50949. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50950. abstract="false" native="false" synchronized="true"
  50951. static="false" final="false" visibility="public"
  50952. deprecated="use {@link #getClusterStatus(boolean)}">
  50953. <doc>
  50954. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  50955. </doc>
  50956. </method>
  50957. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50958. abstract="false" native="false" synchronized="true"
  50959. static="false" final="false" visibility="public"
  50960. deprecated="not deprecated">
  50961. <param name="detailed" type="boolean"/>
  50962. </method>
  50963. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  50964. abstract="false" native="false" synchronized="true"
  50965. static="false" final="false" visibility="public"
  50966. deprecated="not deprecated">
  50967. </method>
  50968. <method name="killJob"
  50969. abstract="false" native="false" synchronized="true"
  50970. static="false" final="false" visibility="public"
  50971. deprecated="not deprecated">
  50972. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50973. <exception name="IOException" type="java.io.IOException"/>
  50974. <doc>
  50975. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  50976. </doc>
  50977. </method>
  50978. <method name="cancelDelegationToken"
  50979. abstract="false" native="false" synchronized="false"
  50980. static="false" final="false" visibility="public"
  50981. deprecated="not deprecated">
  50982. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  50983. <exception name="IOException" type="java.io.IOException"/>
  50984. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50985. <doc>
  50986. <![CDATA[Discard a current delegation token.]]>
  50987. </doc>
  50988. </method>
  50989. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  50990. abstract="false" native="false" synchronized="false"
  50991. static="false" final="false" visibility="public"
  50992. deprecated="not deprecated">
  50993. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  50994. <exception name="IOException" type="java.io.IOException"/>
  50995. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50996. <doc>
  50997. <![CDATA[Get a new delegation token.]]>
  50998. </doc>
  50999. </method>
  51000. <method name="renewDelegationToken" return="long"
  51001. abstract="false" native="false" synchronized="false"
  51002. static="false" final="false" visibility="public"
  51003. deprecated="not deprecated">
  51004. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  51005. <exception name="IOException" type="java.io.IOException"/>
  51006. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51007. <doc>
  51008. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  51009. </doc>
  51010. </method>
  51011. <method name="initJob"
  51012. abstract="false" native="false" synchronized="false"
  51013. static="false" final="false" visibility="public"
  51014. deprecated="not deprecated">
  51015. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  51016. </method>
  51017. <method name="failJob"
  51018. abstract="false" native="false" synchronized="true"
  51019. static="false" final="false" visibility="public"
  51020. deprecated="not deprecated">
  51021. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  51022. <doc>
  51023. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  51024. should use this to fail a job.]]>
  51025. </doc>
  51026. </method>
  51027. <method name="setJobPriority"
  51028. abstract="false" native="false" synchronized="true"
  51029. static="false" final="false" visibility="public"
  51030. deprecated="not deprecated">
  51031. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51032. <param name="priority" type="java.lang.String"/>
  51033. <exception name="IOException" type="java.io.IOException"/>
  51034. </method>
  51035. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  51036. abstract="false" native="false" synchronized="false"
  51037. static="false" final="false" visibility="public"
  51038. deprecated="not deprecated">
  51039. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51040. </method>
  51041. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  51042. abstract="false" native="false" synchronized="false"
  51043. static="false" final="false" visibility="public"
  51044. deprecated="not deprecated">
  51045. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51046. </method>
  51047. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  51048. abstract="false" native="false" synchronized="false"
  51049. static="false" final="false" visibility="public"
  51050. deprecated="not deprecated">
  51051. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51052. <exception name="IOException" type="java.io.IOException"/>
  51053. </method>
  51054. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  51055. abstract="false" native="false" synchronized="true"
  51056. static="false" final="false" visibility="public"
  51057. deprecated="not deprecated">
  51058. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51059. <exception name="IOException" type="java.io.IOException"/>
  51060. </method>
  51061. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  51062. abstract="false" native="false" synchronized="true"
  51063. static="false" final="false" visibility="public"
  51064. deprecated="not deprecated">
  51065. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51066. <exception name="IOException" type="java.io.IOException"/>
  51067. </method>
  51068. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  51069. abstract="false" native="false" synchronized="true"
  51070. static="false" final="false" visibility="public"
  51071. deprecated="not deprecated">
  51072. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51073. <exception name="IOException" type="java.io.IOException"/>
  51074. </method>
  51075. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  51076. abstract="false" native="false" synchronized="true"
  51077. static="false" final="false" visibility="public"
  51078. deprecated="not deprecated">
  51079. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51080. <exception name="IOException" type="java.io.IOException"/>
  51081. </method>
  51082. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  51083. abstract="false" native="false" synchronized="false"
  51084. static="false" final="false" visibility="public"
  51085. deprecated="not deprecated">
  51086. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51087. <param name="fromEventId" type="int"/>
  51088. <param name="maxEvents" type="int"/>
  51089. <exception name="IOException" type="java.io.IOException"/>
  51090. </method>
  51091. <method name="getTaskDiagnostics" return="java.lang.String[]"
  51092. abstract="false" native="false" synchronized="true"
  51093. static="false" final="false" visibility="public"
  51094. deprecated="not deprecated">
  51095. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  51096. <exception name="IOException" type="java.io.IOException"/>
  51097. <doc>
  51098. <![CDATA[Get the diagnostics for a given task
  51099. @param taskId the id of the task
  51100. @return an array of the diagnostic messages]]>
  51101. </doc>
  51102. </method>
  51103. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  51104. abstract="false" native="false" synchronized="false"
  51105. static="false" final="false" visibility="public"
  51106. deprecated="not deprecated">
  51107. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  51108. <doc>
  51109. <![CDATA[Returns specified TaskInProgress, or null.]]>
  51110. </doc>
  51111. </method>
  51112. <method name="killTask" return="boolean"
  51113. abstract="false" native="false" synchronized="true"
  51114. static="false" final="false" visibility="public"
  51115. deprecated="not deprecated">
  51116. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  51117. <param name="shouldFail" type="boolean"/>
  51118. <exception name="IOException" type="java.io.IOException"/>
  51119. <doc>
  51120. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  51121. </doc>
  51122. </method>
  51123. <method name="getAssignedTracker" return="java.lang.String"
  51124. abstract="false" native="false" synchronized="true"
  51125. static="false" final="false" visibility="public"
  51126. deprecated="not deprecated">
  51127. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  51128. <doc>
  51129. <![CDATA[Get tracker name for a given task id.
  51130. @param taskId the name of the task
  51131. @return The name of the task tracker]]>
  51132. </doc>
  51133. </method>
  51134. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  51135. abstract="false" native="false" synchronized="false"
  51136. static="false" final="false" visibility="public"
  51137. deprecated="not deprecated">
  51138. </method>
  51139. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  51140. abstract="false" native="false" synchronized="false"
  51141. static="false" final="false" visibility="public"
  51142. deprecated="not deprecated">
  51143. <doc>
  51144. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  51145. </doc>
  51146. </method>
  51147. <method name="getSystemDir" return="java.lang.String"
  51148. abstract="false" native="false" synchronized="false"
  51149. static="false" final="false" visibility="public"
  51150. deprecated="not deprecated">
  51151. <doc>
  51152. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  51153. </doc>
  51154. </method>
  51155. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  51156. abstract="false" native="false" synchronized="false"
  51157. static="false" final="false" visibility="public"
  51158. deprecated="not deprecated">
  51159. <param name="queueName" type="java.lang.String"/>
  51160. <exception name="IOException" type="java.io.IOException"/>
  51161. <doc>
  51162. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  51163. </doc>
  51164. </method>
  51165. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  51166. abstract="false" native="false" synchronized="false"
  51167. static="false" final="false" visibility="public"
  51168. deprecated="not deprecated">
  51169. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  51170. </method>
  51171. <method name="refreshNodes"
  51172. abstract="false" native="false" synchronized="true"
  51173. static="false" final="false" visibility="public"
  51174. deprecated="not deprecated">
  51175. <exception name="IOException" type="java.io.IOException"/>
  51176. <doc>
  51177. <![CDATA[Rereads the config to get hosts and exclude list file names.
  51178. Rereads the files to update the hosts and exclude lists.]]>
  51179. </doc>
  51180. </method>
  51181. <method name="getLocalJobFilePath" return="java.lang.String"
  51182. abstract="false" native="false" synchronized="false"
  51183. static="true" final="false" visibility="public"
  51184. deprecated="not deprecated">
  51185. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  51186. <doc>
  51187. <![CDATA[Get the localized job file path on the job trackers local file system
  51188. @param jobId id of the job
  51189. @return the path of the job conf file on the local file system]]>
  51190. </doc>
  51191. </method>
  51192. <method name="main"
  51193. abstract="false" native="false" synchronized="false"
  51194. static="true" final="false" visibility="public"
  51195. deprecated="not deprecated">
  51196. <param name="argv" type="java.lang.String[]"/>
  51197. <exception name="IOException" type="java.io.IOException"/>
  51198. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51199. <doc>
  51200. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  51201. JobTracker should be run as part of the DFS Namenode process.]]>
  51202. </doc>
  51203. </method>
  51204. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  51205. abstract="false" native="false" synchronized="false"
  51206. static="false" final="false" visibility="public"
  51207. deprecated="not deprecated">
  51208. <exception name="IOException" type="java.io.IOException"/>
  51209. </method>
  51210. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  51211. abstract="false" native="false" synchronized="false"
  51212. static="false" final="false" visibility="public"
  51213. deprecated="not deprecated">
  51214. <param name="queue" type="java.lang.String"/>
  51215. <exception name="IOException" type="java.io.IOException"/>
  51216. </method>
  51217. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  51218. abstract="false" native="false" synchronized="false"
  51219. static="false" final="false" visibility="public"
  51220. deprecated="not deprecated">
  51221. <param name="queue" type="java.lang.String"/>
  51222. <exception name="IOException" type="java.io.IOException"/>
  51223. </method>
  51224. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  51225. abstract="false" native="false" synchronized="false"
  51226. static="false" final="false" visibility="public"
  51227. deprecated="not deprecated">
  51228. <exception name="IOException" type="java.io.IOException"/>
  51229. </method>
  51230. <method name="refreshServiceAcl"
  51231. abstract="false" native="false" synchronized="false"
  51232. static="false" final="false" visibility="public"
  51233. deprecated="not deprecated">
  51234. <exception name="IOException" type="java.io.IOException"/>
  51235. </method>
  51236. <method name="refreshSuperUserGroupsConfiguration"
  51237. abstract="false" native="false" synchronized="false"
  51238. static="false" final="false" visibility="public"
  51239. deprecated="not deprecated">
  51240. </method>
  51241. <method name="refreshUserToGroupsMappings"
  51242. abstract="false" native="false" synchronized="false"
  51243. static="false" final="false" visibility="public"
  51244. deprecated="not deprecated">
  51245. <exception name="IOException" type="java.io.IOException"/>
  51246. </method>
  51247. <method name="refreshQueues"
  51248. abstract="false" native="false" synchronized="false"
  51249. static="false" final="false" visibility="public"
  51250. deprecated="not deprecated">
  51251. <exception name="IOException" type="java.io.IOException"/>
  51252. </method>
  51253. <method name="getReasonsForBlacklisting" return="java.lang.String"
  51254. abstract="false" native="false" synchronized="false"
  51255. static="false" final="false" visibility="public"
  51256. deprecated="not deprecated">
  51257. <param name="host" type="java.lang.String"/>
  51258. </method>
  51259. <method name="getReasonsForGraylisting" return="java.lang.String"
  51260. abstract="false" native="false" synchronized="false"
  51261. static="false" final="false" visibility="public"
  51262. deprecated="not deprecated">
  51263. <param name="host" type="java.lang.String"/>
  51264. </method>
  51265. <method name="getHostname" return="java.lang.String"
  51266. abstract="false" native="false" synchronized="false"
  51267. static="false" final="false" visibility="public"
  51268. deprecated="not deprecated">
  51269. </method>
  51270. <method name="getVersion" return="java.lang.String"
  51271. abstract="false" native="false" synchronized="false"
  51272. static="false" final="false" visibility="public"
  51273. deprecated="not deprecated">
  51274. </method>
  51275. <method name="getConfigVersion" return="java.lang.String"
  51276. abstract="false" native="false" synchronized="false"
  51277. static="false" final="false" visibility="public"
  51278. deprecated="not deprecated">
  51279. </method>
  51280. <method name="getThreadCount" return="int"
  51281. abstract="false" native="false" synchronized="false"
  51282. static="false" final="false" visibility="public"
  51283. deprecated="not deprecated">
  51284. </method>
  51285. <method name="getSummaryJson" return="java.lang.String"
  51286. abstract="false" native="false" synchronized="false"
  51287. static="false" final="false" visibility="public"
  51288. deprecated="not deprecated">
  51289. </method>
  51290. <method name="getAliveNodesInfoJson" return="java.lang.String"
  51291. abstract="false" native="false" synchronized="false"
  51292. static="false" final="false" visibility="public"
  51293. deprecated="not deprecated">
  51294. </method>
  51295. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  51296. abstract="false" native="false" synchronized="false"
  51297. static="false" final="false" visibility="public"
  51298. deprecated="not deprecated">
  51299. </method>
  51300. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  51301. abstract="false" native="false" synchronized="false"
  51302. static="false" final="false" visibility="public"
  51303. deprecated="not deprecated">
  51304. </method>
  51305. <method name="getQueueInfoJson" return="java.lang.String"
  51306. abstract="false" native="false" synchronized="false"
  51307. static="false" final="false" visibility="public"
  51308. deprecated="not deprecated">
  51309. </method>
  51310. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  51311. transient="false" volatile="false"
  51312. static="true" final="true" visibility="public"
  51313. deprecated="not deprecated">
  51314. <doc>
  51315. <![CDATA[the config key for max user jobconf size]]>
  51316. </doc>
  51317. </field>
  51318. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  51319. transient="false" volatile="false"
  51320. static="true" final="true" visibility="public"
  51321. deprecated="not deprecated">
  51322. </field>
  51323. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  51324. transient="false" volatile="false"
  51325. static="true" final="true" visibility="public"
  51326. deprecated="not deprecated">
  51327. </field>
  51328. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  51329. transient="false" volatile="false"
  51330. static="true" final="true" visibility="public"
  51331. deprecated="not deprecated">
  51332. </field>
  51333. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  51334. transient="false" volatile="false"
  51335. static="true" final="true" visibility="public"
  51336. deprecated="not deprecated">
  51337. </field>
  51338. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  51339. transient="false" volatile="false"
  51340. static="true" final="true" visibility="public"
  51341. deprecated="not deprecated">
  51342. </field>
  51343. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  51344. transient="false" volatile="false"
  51345. static="true" final="true" visibility="public"
  51346. deprecated="not deprecated">
  51347. </field>
  51348. <field name="LOG" type="org.apache.commons.logging.Log"
  51349. transient="false" volatile="false"
  51350. static="true" final="true" visibility="public"
  51351. deprecated="not deprecated">
  51352. </field>
  51353. <field name="JT_USER_NAME" type="java.lang.String"
  51354. transient="false" volatile="false"
  51355. static="true" final="true" visibility="public"
  51356. deprecated="not deprecated">
  51357. </field>
  51358. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  51359. transient="false" volatile="false"
  51360. static="true" final="true" visibility="public"
  51361. deprecated="not deprecated">
  51362. </field>
  51363. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  51364. transient="false" volatile="false"
  51365. static="true" final="true" visibility="public"
  51366. deprecated="not deprecated">
  51367. </field>
  51368. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  51369. transient="false" volatile="false"
  51370. static="true" final="true" visibility="public"
  51371. deprecated="not deprecated">
  51372. </field>
  51373. <doc>
  51374. <![CDATA[JobTracker is the central location for submitting and
  51375. tracking MR jobs in a network environment.]]>
  51376. </doc>
  51377. </class>
  51378. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  51379. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  51380. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  51381. abstract="false"
  51382. static="true" final="false" visibility="public"
  51383. deprecated="not deprecated">
  51384. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  51385. static="false" final="false" visibility="public"
  51386. deprecated="not deprecated">
  51387. </constructor>
  51388. <doc>
  51389. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  51390. </doc>
  51391. </class>
  51392. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  51393. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  51394. <class name="JobTracker.State" extends="java.lang.Enum"
  51395. abstract="false"
  51396. static="true" final="true" visibility="public"
  51397. deprecated="not deprecated">
  51398. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  51399. abstract="false" native="false" synchronized="false"
  51400. static="true" final="false" visibility="public"
  51401. deprecated="not deprecated">
  51402. </method>
  51403. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  51404. abstract="false" native="false" synchronized="false"
  51405. static="true" final="false" visibility="public"
  51406. deprecated="not deprecated">
  51407. <param name="name" type="java.lang.String"/>
  51408. </method>
  51409. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  51410. transient="false" volatile="false"
  51411. static="true" final="true" visibility="public"
  51412. deprecated="not deprecated">
  51413. </field>
  51414. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  51415. transient="false" volatile="false"
  51416. static="true" final="true" visibility="public"
  51417. deprecated="not deprecated">
  51418. </field>
  51419. </class>
  51420. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  51421. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  51422. <interface name="JobTrackerMXBean" abstract="true"
  51423. static="false" final="false" visibility="public"
  51424. deprecated="not deprecated">
  51425. <method name="getHostname" return="java.lang.String"
  51426. abstract="false" native="false" synchronized="false"
  51427. static="false" final="false" visibility="public"
  51428. deprecated="not deprecated">
  51429. <doc>
  51430. <![CDATA[@return hostname of the jobtracker]]>
  51431. </doc>
  51432. </method>
  51433. <method name="getVersion" return="java.lang.String"
  51434. abstract="false" native="false" synchronized="false"
  51435. static="false" final="false" visibility="public"
  51436. deprecated="not deprecated">
  51437. <doc>
  51438. <![CDATA[@return version of the code base]]>
  51439. </doc>
  51440. </method>
  51441. <method name="getConfigVersion" return="java.lang.String"
  51442. abstract="false" native="false" synchronized="false"
  51443. static="false" final="false" visibility="public"
  51444. deprecated="not deprecated">
  51445. <doc>
  51446. <![CDATA[@return the config version (from a config property)]]>
  51447. </doc>
  51448. </method>
  51449. <method name="getThreadCount" return="int"
  51450. abstract="false" native="false" synchronized="false"
  51451. static="false" final="false" visibility="public"
  51452. deprecated="not deprecated">
  51453. <doc>
  51454. <![CDATA[@return number of threads of the jobtracker jvm]]>
  51455. </doc>
  51456. </method>
  51457. <method name="getSummaryJson" return="java.lang.String"
  51458. abstract="false" native="false" synchronized="false"
  51459. static="false" final="false" visibility="public"
  51460. deprecated="not deprecated">
  51461. <doc>
  51462. <![CDATA[@return the summary info in json]]>
  51463. </doc>
  51464. </method>
  51465. <method name="getAliveNodesInfoJson" return="java.lang.String"
  51466. abstract="false" native="false" synchronized="false"
  51467. static="false" final="false" visibility="public"
  51468. deprecated="not deprecated">
  51469. <doc>
  51470. <![CDATA[@return the alive nodes info in json]]>
  51471. </doc>
  51472. </method>
  51473. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  51474. abstract="false" native="false" synchronized="false"
  51475. static="false" final="false" visibility="public"
  51476. deprecated="not deprecated">
  51477. <doc>
  51478. <![CDATA[@return the blacklisted nodes info in json]]>
  51479. </doc>
  51480. </method>
  51481. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  51482. abstract="false" native="false" synchronized="false"
  51483. static="false" final="false" visibility="public"
  51484. deprecated="not deprecated">
  51485. <doc>
  51486. <![CDATA[@return the graylisted nodes info in json]]>
  51487. </doc>
  51488. </method>
  51489. <method name="getQueueInfoJson" return="java.lang.String"
  51490. abstract="false" native="false" synchronized="false"
  51491. static="false" final="false" visibility="public"
  51492. deprecated="not deprecated">
  51493. <doc>
  51494. <![CDATA[@return the queue info json]]>
  51495. </doc>
  51496. </method>
  51497. <doc>
  51498. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  51499. </doc>
  51500. </interface>
  51501. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  51502. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  51503. <class name="JvmTask" extends="java.lang.Object"
  51504. abstract="false"
  51505. static="false" final="false" visibility="public"
  51506. deprecated="not deprecated">
  51507. <implements name="org.apache.hadoop.io.Writable"/>
  51508. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  51509. static="false" final="false" visibility="public"
  51510. deprecated="not deprecated">
  51511. </constructor>
  51512. <constructor name="JvmTask"
  51513. static="false" final="false" visibility="public"
  51514. deprecated="not deprecated">
  51515. </constructor>
  51516. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  51517. abstract="false" native="false" synchronized="false"
  51518. static="false" final="false" visibility="public"
  51519. deprecated="not deprecated">
  51520. </method>
  51521. <method name="shouldDie" return="boolean"
  51522. abstract="false" native="false" synchronized="false"
  51523. static="false" final="false" visibility="public"
  51524. deprecated="not deprecated">
  51525. </method>
  51526. <method name="write"
  51527. abstract="false" native="false" synchronized="false"
  51528. static="false" final="false" visibility="public"
  51529. deprecated="not deprecated">
  51530. <param name="out" type="java.io.DataOutput"/>
  51531. <exception name="IOException" type="java.io.IOException"/>
  51532. </method>
  51533. <method name="readFields"
  51534. abstract="false" native="false" synchronized="false"
  51535. static="false" final="false" visibility="public"
  51536. deprecated="not deprecated">
  51537. <param name="in" type="java.io.DataInput"/>
  51538. <exception name="IOException" type="java.io.IOException"/>
  51539. </method>
  51540. </class>
  51541. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  51542. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  51543. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  51544. abstract="false"
  51545. static="false" final="false" visibility="public"
  51546. deprecated="not deprecated">
  51547. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  51548. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  51549. static="false" final="false" visibility="public"
  51550. deprecated="not deprecated">
  51551. <exception name="IOException" type="java.io.IOException"/>
  51552. </constructor>
  51553. <method name="getKeyClass" return="java.lang.Class"
  51554. abstract="false" native="false" synchronized="false"
  51555. static="false" final="false" visibility="public"
  51556. deprecated="not deprecated">
  51557. </method>
  51558. <method name="createKey" return="org.apache.hadoop.io.Text"
  51559. abstract="false" native="false" synchronized="false"
  51560. static="false" final="false" visibility="public"
  51561. deprecated="not deprecated">
  51562. </method>
  51563. <method name="createValue" return="org.apache.hadoop.io.Text"
  51564. abstract="false" native="false" synchronized="false"
  51565. static="false" final="false" visibility="public"
  51566. deprecated="not deprecated">
  51567. </method>
  51568. <method name="findSeparator" return="int"
  51569. abstract="false" native="false" synchronized="false"
  51570. static="true" final="false" visibility="public"
  51571. deprecated="not deprecated">
  51572. <param name="utf" type="byte[]"/>
  51573. <param name="start" type="int"/>
  51574. <param name="length" type="int"/>
  51575. <param name="sep" type="byte"/>
  51576. </method>
  51577. <method name="next" return="boolean"
  51578. abstract="false" native="false" synchronized="true"
  51579. static="false" final="false" visibility="public"
  51580. deprecated="not deprecated">
  51581. <param name="key" type="org.apache.hadoop.io.Text"/>
  51582. <param name="value" type="org.apache.hadoop.io.Text"/>
  51583. <exception name="IOException" type="java.io.IOException"/>
  51584. <doc>
  51585. <![CDATA[Read key/value pair in a line.]]>
  51586. </doc>
  51587. </method>
  51588. <method name="getProgress" return="float"
  51589. abstract="false" native="false" synchronized="false"
  51590. static="false" final="false" visibility="public"
  51591. deprecated="not deprecated">
  51592. </method>
  51593. <method name="getPos" return="long"
  51594. abstract="false" native="false" synchronized="true"
  51595. static="false" final="false" visibility="public"
  51596. deprecated="not deprecated">
  51597. <exception name="IOException" type="java.io.IOException"/>
  51598. </method>
  51599. <method name="close"
  51600. abstract="false" native="false" synchronized="true"
  51601. static="false" final="false" visibility="public"
  51602. deprecated="not deprecated">
  51603. <exception name="IOException" type="java.io.IOException"/>
  51604. </method>
  51605. <doc>
  51606. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  51607. separator character. The separator can be specified in config file
  51608. under the attribute name key.value.separator.in.input.line. The default
  51609. separator is the tab character ('\t').]]>
  51610. </doc>
  51611. </class>
  51612. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  51613. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  51614. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  51615. abstract="false"
  51616. static="false" final="false" visibility="public"
  51617. deprecated="not deprecated">
  51618. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51619. <constructor name="KeyValueTextInputFormat"
  51620. static="false" final="false" visibility="public"
  51621. deprecated="not deprecated">
  51622. </constructor>
  51623. <method name="configure"
  51624. abstract="false" native="false" synchronized="false"
  51625. static="false" final="false" visibility="public"
  51626. deprecated="not deprecated">
  51627. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51628. </method>
  51629. <method name="isSplitable" return="boolean"
  51630. abstract="false" native="false" synchronized="false"
  51631. static="false" final="false" visibility="protected"
  51632. deprecated="not deprecated">
  51633. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  51634. <param name="file" type="org.apache.hadoop.fs.Path"/>
  51635. </method>
  51636. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  51637. abstract="false" native="false" synchronized="false"
  51638. static="false" final="false" visibility="public"
  51639. deprecated="not deprecated">
  51640. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  51641. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51642. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51643. <exception name="IOException" type="java.io.IOException"/>
  51644. </method>
  51645. <doc>
  51646. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  51647. Either linefeed or carriage-return are used to signal end of line. Each line
  51648. is divided into key and value parts by a separator byte. If no such a byte
  51649. exists, the key will be the entire line and value will be empty.]]>
  51650. </doc>
  51651. </class>
  51652. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  51653. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  51654. <class name="LineRecordReader" extends="java.lang.Object"
  51655. abstract="false"
  51656. static="false" final="false" visibility="public"
  51657. deprecated="not deprecated">
  51658. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  51659. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  51660. static="false" final="false" visibility="public"
  51661. deprecated="not deprecated">
  51662. <exception name="IOException" type="java.io.IOException"/>
  51663. </constructor>
  51664. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  51665. static="false" final="false" visibility="public"
  51666. deprecated="not deprecated">
  51667. </constructor>
  51668. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  51669. static="false" final="false" visibility="public"
  51670. deprecated="not deprecated">
  51671. <exception name="IOException" type="java.io.IOException"/>
  51672. </constructor>
  51673. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  51674. abstract="false" native="false" synchronized="false"
  51675. static="false" final="false" visibility="public"
  51676. deprecated="not deprecated">
  51677. </method>
  51678. <method name="createValue" return="org.apache.hadoop.io.Text"
  51679. abstract="false" native="false" synchronized="false"
  51680. static="false" final="false" visibility="public"
  51681. deprecated="not deprecated">
  51682. </method>
  51683. <method name="next" return="boolean"
  51684. abstract="false" native="false" synchronized="true"
  51685. static="false" final="false" visibility="public"
  51686. deprecated="not deprecated">
  51687. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  51688. <param name="value" type="org.apache.hadoop.io.Text"/>
  51689. <exception name="IOException" type="java.io.IOException"/>
  51690. <doc>
  51691. <![CDATA[Read a line.]]>
  51692. </doc>
  51693. </method>
  51694. <method name="getProgress" return="float"
  51695. abstract="false" native="false" synchronized="false"
  51696. static="false" final="false" visibility="public"
  51697. deprecated="not deprecated">
  51698. <doc>
  51699. <![CDATA[Get the progress within the split]]>
  51700. </doc>
  51701. </method>
  51702. <method name="getPos" return="long"
  51703. abstract="false" native="false" synchronized="true"
  51704. static="false" final="false" visibility="public"
  51705. deprecated="not deprecated">
  51706. <exception name="IOException" type="java.io.IOException"/>
  51707. </method>
  51708. <method name="close"
  51709. abstract="false" native="false" synchronized="true"
  51710. static="false" final="false" visibility="public"
  51711. deprecated="not deprecated">
  51712. <exception name="IOException" type="java.io.IOException"/>
  51713. </method>
  51714. <doc>
  51715. <![CDATA[Treats keys as offset in file and value as line.]]>
  51716. </doc>
  51717. </class>
  51718. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  51719. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  51720. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  51721. abstract="false"
  51722. static="true" final="false" visibility="public"
  51723. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  51724. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  51725. static="false" final="false" visibility="public"
  51726. deprecated="not deprecated">
  51727. <exception name="IOException" type="java.io.IOException"/>
  51728. </constructor>
  51729. <doc>
  51730. <![CDATA[A class that provides a line reader from an input stream.
  51731. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  51732. </doc>
  51733. </class>
  51734. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  51735. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  51736. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  51737. abstract="false"
  51738. static="false" final="false" visibility="public"
  51739. deprecated="not deprecated">
  51740. <constructor name="MapFileOutputFormat"
  51741. static="false" final="false" visibility="public"
  51742. deprecated="not deprecated">
  51743. </constructor>
  51744. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  51745. abstract="false" native="false" synchronized="false"
  51746. static="false" final="false" visibility="public"
  51747. deprecated="not deprecated">
  51748. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51749. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51750. <param name="name" type="java.lang.String"/>
  51751. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  51752. <exception name="IOException" type="java.io.IOException"/>
  51753. </method>
  51754. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  51755. abstract="false" native="false" synchronized="false"
  51756. static="true" final="false" visibility="public"
  51757. deprecated="not deprecated">
  51758. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51759. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  51760. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51761. <exception name="IOException" type="java.io.IOException"/>
  51762. <doc>
  51763. <![CDATA[Open the output generated by this format.]]>
  51764. </doc>
  51765. </method>
  51766. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  51767. abstract="false" native="false" synchronized="false"
  51768. static="true" final="false" visibility="public"
  51769. deprecated="not deprecated">
  51770. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  51771. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  51772. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  51773. <param name="value" type="org.apache.hadoop.io.Writable"/>
  51774. <exception name="IOException" type="java.io.IOException"/>
  51775. <doc>
  51776. <![CDATA[Get an entry from output generated by this class.]]>
  51777. </doc>
  51778. </method>
  51779. <doc>
  51780. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  51781. </doc>
  51782. </class>
  51783. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  51784. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  51785. <interface name="Mapper" abstract="true"
  51786. static="false" final="false" visibility="public"
  51787. deprecated="not deprecated">
  51788. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51789. <implements name="org.apache.hadoop.io.Closeable"/>
  51790. <method name="map"
  51791. abstract="false" native="false" synchronized="false"
  51792. static="false" final="false" visibility="public"
  51793. deprecated="not deprecated">
  51794. <param name="key" type="java.lang.Object"/>
  51795. <param name="value" type="java.lang.Object"/>
  51796. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51797. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51798. <exception name="IOException" type="java.io.IOException"/>
  51799. <doc>
  51800. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  51801. <p>Output pairs need not be of the same types as input pairs. A given
  51802. input pair may map to zero or many output pairs. Output pairs are
  51803. collected with calls to
  51804. {@link OutputCollector#collect(Object,Object)}.</p>
  51805. <p>Applications can use the {@link Reporter} provided to report progress
  51806. or just indicate that they are alive. In scenarios where the application
  51807. takes an insignificant amount of time to process individual key/value
  51808. pairs, this is crucial since the framework might assume that the task has
  51809. timed-out and kill that task. The other way of avoiding this is to set
  51810. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  51811. mapred.task.timeout</a> to a high-enough value (or even zero for no
  51812. time-outs).</p>
  51813. @param key the input key.
  51814. @param value the input value.
  51815. @param output collects mapped keys and values.
  51816. @param reporter facility to report progress.]]>
  51817. </doc>
  51818. </method>
  51819. <doc>
  51820. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  51821. <p>Maps are the individual tasks which transform input records into a
  51822. intermediate records. The transformed intermediate records need not be of
  51823. the same type as the input records. A given input pair may map to zero or
  51824. many output pairs.</p>
  51825. <p>The Hadoop Map-Reduce framework spawns one map task for each
  51826. {@link InputSplit} generated by the {@link InputFormat} for the job.
  51827. <code>Mapper</code> implementations can access the {@link JobConf} for the
  51828. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  51829. themselves. Similarly they can use the {@link Closeable#close()} method for
  51830. de-initialization.</p>
  51831. <p>The framework then calls
  51832. {@link #map(Object, Object, OutputCollector, Reporter)}
  51833. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  51834. <p>All intermediate values associated with a given output key are
  51835. subsequently grouped by the framework, and passed to a {@link Reducer} to
  51836. determine the final output. Users can control the grouping by specifying
  51837. a <code>Comparator</code> via
  51838. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  51839. <p>The grouped <code>Mapper</code> outputs are partitioned per
  51840. <code>Reducer</code>. Users can control which keys (and hence records) go to
  51841. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  51842. <p>Users can optionally specify a <code>combiner</code>, via
  51843. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  51844. intermediate outputs, which helps to cut down the amount of data transferred
  51845. from the <code>Mapper</code> to the <code>Reducer</code>.
  51846. <p>The intermediate, grouped outputs are always stored in
  51847. {@link SequenceFile}s. Applications can specify if and how the intermediate
  51848. outputs are to be compressed and which {@link CompressionCodec}s are to be
  51849. used via the <code>JobConf</code>.</p>
  51850. <p>If the job has
  51851. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  51852. reduces</a> then the output of the <code>Mapper</code> is directly written
  51853. to the {@link FileSystem} without grouping by keys.</p>
  51854. <p>Example:</p>
  51855. <p><blockquote><pre>
  51856. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  51857. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  51858. static enum MyCounters { NUM_RECORDS }
  51859. private String mapTaskId;
  51860. private String inputFile;
  51861. private int noRecords = 0;
  51862. public void configure(JobConf job) {
  51863. mapTaskId = job.get("mapred.task.id");
  51864. inputFile = job.get("map.input.file");
  51865. }
  51866. public void map(K key, V val,
  51867. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  51868. throws IOException {
  51869. // Process the &lt;key, value&gt; pair (assume this takes a while)
  51870. // ...
  51871. // ...
  51872. // Let the framework know that we are alive, and kicking!
  51873. // reporter.progress();
  51874. // Process some more
  51875. // ...
  51876. // ...
  51877. // Increment the no. of &lt;key, value&gt; pairs processed
  51878. ++noRecords;
  51879. // Increment counters
  51880. reporter.incrCounter(NUM_RECORDS, 1);
  51881. // Every 100 records update application-level status
  51882. if ((noRecords%100) == 0) {
  51883. reporter.setStatus(mapTaskId + " processed " + noRecords +
  51884. " from input-file: " + inputFile);
  51885. }
  51886. // Output the result
  51887. output.collect(key, val);
  51888. }
  51889. }
  51890. </pre></blockquote></p>
  51891. <p>Applications may write a custom {@link MapRunnable} to exert greater
  51892. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  51893. @see JobConf
  51894. @see InputFormat
  51895. @see Partitioner
  51896. @see Reducer
  51897. @see MapReduceBase
  51898. @see MapRunnable
  51899. @see SequenceFile]]>
  51900. </doc>
  51901. </interface>
  51902. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  51903. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  51904. <class name="MapReduceBase" extends="java.lang.Object"
  51905. abstract="false"
  51906. static="false" final="false" visibility="public"
  51907. deprecated="not deprecated">
  51908. <implements name="org.apache.hadoop.io.Closeable"/>
  51909. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51910. <constructor name="MapReduceBase"
  51911. static="false" final="false" visibility="public"
  51912. deprecated="not deprecated">
  51913. </constructor>
  51914. <method name="close"
  51915. abstract="false" native="false" synchronized="false"
  51916. static="false" final="false" visibility="public"
  51917. deprecated="not deprecated">
  51918. <exception name="IOException" type="java.io.IOException"/>
  51919. <doc>
  51920. <![CDATA[Default implementation that does nothing.]]>
  51921. </doc>
  51922. </method>
  51923. <method name="configure"
  51924. abstract="false" native="false" synchronized="false"
  51925. static="false" final="false" visibility="public"
  51926. deprecated="not deprecated">
  51927. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51928. <doc>
  51929. <![CDATA[Default implementation that does nothing.]]>
  51930. </doc>
  51931. </method>
  51932. <doc>
  51933. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  51934. <p>Provides default no-op implementations for a few methods, most non-trivial
  51935. applications need to override some of them.</p>]]>
  51936. </doc>
  51937. </class>
  51938. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  51939. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51940. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  51941. abstract="false"
  51942. static="false" final="false" visibility="public"
  51943. deprecated="not deprecated">
  51944. <constructor name="MapReducePolicyProvider"
  51945. static="false" final="false" visibility="public"
  51946. deprecated="not deprecated">
  51947. </constructor>
  51948. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  51949. abstract="false" native="false" synchronized="false"
  51950. static="false" final="false" visibility="public"
  51951. deprecated="not deprecated">
  51952. </method>
  51953. <doc>
  51954. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  51955. </doc>
  51956. </class>
  51957. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51958. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  51959. <interface name="MapRunnable" abstract="true"
  51960. static="false" final="false" visibility="public"
  51961. deprecated="not deprecated">
  51962. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51963. <method name="run"
  51964. abstract="false" native="false" synchronized="false"
  51965. static="false" final="false" visibility="public"
  51966. deprecated="not deprecated">
  51967. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  51968. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51969. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51970. <exception name="IOException" type="java.io.IOException"/>
  51971. <doc>
  51972. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  51973. <p>Mapping of input records to output records is complete when this method
  51974. returns.</p>
  51975. @param input the {@link RecordReader} to read the input records.
  51976. @param output the {@link OutputCollector} to collect the outputrecords.
  51977. @param reporter {@link Reporter} to report progress, status-updates etc.
  51978. @throws IOException]]>
  51979. </doc>
  51980. </method>
  51981. <doc>
  51982. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  51983. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  51984. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  51985. @see Mapper]]>
  51986. </doc>
  51987. </interface>
  51988. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  51989. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  51990. <class name="MapRunner" extends="java.lang.Object"
  51991. abstract="false"
  51992. static="false" final="false" visibility="public"
  51993. deprecated="not deprecated">
  51994. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  51995. <constructor name="MapRunner"
  51996. static="false" final="false" visibility="public"
  51997. deprecated="not deprecated">
  51998. </constructor>
  51999. <method name="configure"
  52000. abstract="false" native="false" synchronized="false"
  52001. static="false" final="false" visibility="public"
  52002. deprecated="not deprecated">
  52003. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52004. </method>
  52005. <method name="run"
  52006. abstract="false" native="false" synchronized="false"
  52007. static="false" final="false" visibility="public"
  52008. deprecated="not deprecated">
  52009. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  52010. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  52011. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52012. <exception name="IOException" type="java.io.IOException"/>
  52013. </method>
  52014. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  52015. abstract="false" native="false" synchronized="false"
  52016. static="false" final="false" visibility="protected"
  52017. deprecated="not deprecated">
  52018. </method>
  52019. <doc>
  52020. <![CDATA[Default {@link MapRunnable} implementation.]]>
  52021. </doc>
  52022. </class>
  52023. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  52024. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  52025. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  52026. abstract="false"
  52027. static="false" final="false" visibility="public"
  52028. deprecated="not deprecated">
  52029. <implements name="org.apache.hadoop.io.Writable"/>
  52030. <constructor name="MapTaskCompletionEventsUpdate"
  52031. static="false" final="false" visibility="public"
  52032. deprecated="not deprecated">
  52033. </constructor>
  52034. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  52035. static="false" final="false" visibility="public"
  52036. deprecated="not deprecated">
  52037. </constructor>
  52038. <method name="shouldReset" return="boolean"
  52039. abstract="false" native="false" synchronized="false"
  52040. static="false" final="false" visibility="public"
  52041. deprecated="not deprecated">
  52042. </method>
  52043. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  52044. abstract="false" native="false" synchronized="false"
  52045. static="false" final="false" visibility="public"
  52046. deprecated="not deprecated">
  52047. </method>
  52048. <method name="write"
  52049. abstract="false" native="false" synchronized="false"
  52050. static="false" final="false" visibility="public"
  52051. deprecated="not deprecated">
  52052. <param name="out" type="java.io.DataOutput"/>
  52053. <exception name="IOException" type="java.io.IOException"/>
  52054. </method>
  52055. <method name="readFields"
  52056. abstract="false" native="false" synchronized="false"
  52057. static="false" final="false" visibility="public"
  52058. deprecated="not deprecated">
  52059. <param name="in" type="java.io.DataInput"/>
  52060. <exception name="IOException" type="java.io.IOException"/>
  52061. </method>
  52062. <doc>
  52063. <![CDATA[A class that represents the communication between the tasktracker and child
  52064. tasks w.r.t the map task completion events. It also indicates whether the
  52065. child task should reset its events index.]]>
  52066. </doc>
  52067. </class>
  52068. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  52069. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  52070. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  52071. abstract="true"
  52072. static="false" final="false" visibility="public"
  52073. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  52074. <constructor name="MultiFileInputFormat"
  52075. static="false" final="false" visibility="public"
  52076. deprecated="not deprecated">
  52077. </constructor>
  52078. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  52079. abstract="false" native="false" synchronized="false"
  52080. static="false" final="false" visibility="public"
  52081. deprecated="not deprecated">
  52082. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52083. <param name="numSplits" type="int"/>
  52084. <exception name="IOException" type="java.io.IOException"/>
  52085. </method>
  52086. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52087. abstract="true" native="false" synchronized="false"
  52088. static="false" final="false" visibility="public"
  52089. deprecated="not deprecated">
  52090. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  52091. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52092. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52093. <exception name="IOException" type="java.io.IOException"/>
  52094. </method>
  52095. <doc>
  52096. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  52097. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  52098. the files under the input paths. Each split returned contains <i>nearly</i>
  52099. equal content length. <br>
  52100. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  52101. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  52102. @see MultiFileSplit
  52103. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  52104. </doc>
  52105. </class>
  52106. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  52107. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  52108. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  52109. abstract="false"
  52110. static="false" final="false" visibility="public"
  52111. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  52112. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  52113. static="false" final="false" visibility="public"
  52114. deprecated="not deprecated">
  52115. </constructor>
  52116. <method name="getLocations" return="java.lang.String[]"
  52117. abstract="false" native="false" synchronized="false"
  52118. static="false" final="false" visibility="public"
  52119. deprecated="not deprecated">
  52120. <exception name="IOException" type="java.io.IOException"/>
  52121. </method>
  52122. <method name="toString" return="java.lang.String"
  52123. abstract="false" native="false" synchronized="false"
  52124. static="false" final="false" visibility="public"
  52125. deprecated="not deprecated">
  52126. </method>
  52127. <doc>
  52128. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  52129. class does not represent a split of a file, but a split of input files
  52130. into smaller sets. The atomic unit of split is a file. <br>
  52131. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  52132. reading one record per file.
  52133. @see FileSplit
  52134. @see MultiFileInputFormat
  52135. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  52136. </doc>
  52137. </class>
  52138. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  52139. <!-- start class org.apache.hadoop.mapred.Operation -->
  52140. <class name="Operation" extends="java.lang.Enum"
  52141. abstract="false"
  52142. static="false" final="true" visibility="public"
  52143. deprecated="not deprecated">
  52144. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  52145. abstract="false" native="false" synchronized="false"
  52146. static="true" final="false" visibility="public"
  52147. deprecated="not deprecated">
  52148. </method>
  52149. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  52150. abstract="false" native="false" synchronized="false"
  52151. static="true" final="false" visibility="public"
  52152. deprecated="not deprecated">
  52153. <param name="name" type="java.lang.String"/>
  52154. </method>
  52155. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  52156. transient="false" volatile="false"
  52157. static="true" final="true" visibility="public"
  52158. deprecated="not deprecated">
  52159. </field>
  52160. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  52161. transient="false" volatile="false"
  52162. static="true" final="true" visibility="public"
  52163. deprecated="not deprecated">
  52164. </field>
  52165. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  52166. transient="false" volatile="false"
  52167. static="true" final="true" visibility="public"
  52168. deprecated="not deprecated">
  52169. </field>
  52170. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  52171. transient="false" volatile="false"
  52172. static="true" final="true" visibility="public"
  52173. deprecated="not deprecated">
  52174. </field>
  52175. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  52176. transient="false" volatile="false"
  52177. static="true" final="true" visibility="public"
  52178. deprecated="not deprecated">
  52179. </field>
  52180. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  52181. transient="false" volatile="false"
  52182. static="true" final="true" visibility="public"
  52183. deprecated="not deprecated">
  52184. </field>
  52185. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  52186. transient="false" volatile="false"
  52187. static="true" final="true" visibility="public"
  52188. deprecated="not deprecated">
  52189. </field>
  52190. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  52191. transient="false" volatile="false"
  52192. static="true" final="true" visibility="public"
  52193. deprecated="not deprecated">
  52194. </field>
  52195. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  52196. transient="false" volatile="false"
  52197. static="false" final="false" visibility="public"
  52198. deprecated="not deprecated">
  52199. </field>
  52200. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  52201. transient="false" volatile="false"
  52202. static="false" final="false" visibility="public"
  52203. deprecated="not deprecated">
  52204. </field>
  52205. <doc>
  52206. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  52207. authorization of the operation.]]>
  52208. </doc>
  52209. </class>
  52210. <!-- end class org.apache.hadoop.mapred.Operation -->
  52211. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  52212. <interface name="OutputCollector" abstract="true"
  52213. static="false" final="false" visibility="public"
  52214. deprecated="not deprecated">
  52215. <method name="collect"
  52216. abstract="false" native="false" synchronized="false"
  52217. static="false" final="false" visibility="public"
  52218. deprecated="not deprecated">
  52219. <param name="key" type="java.lang.Object"/>
  52220. <param name="value" type="java.lang.Object"/>
  52221. <exception name="IOException" type="java.io.IOException"/>
  52222. <doc>
  52223. <![CDATA[Adds a key/value pair to the output.
  52224. @param key the key to collect.
  52225. @param value to value to collect.
  52226. @throws IOException]]>
  52227. </doc>
  52228. </method>
  52229. <doc>
  52230. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  52231. and {@link Reducer}s.
  52232. <p><code>OutputCollector</code> is the generalization of the facility
  52233. provided by the Map-Reduce framework to collect data output by either the
  52234. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  52235. or the output of the job.</p>]]>
  52236. </doc>
  52237. </interface>
  52238. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  52239. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  52240. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  52241. abstract="true"
  52242. static="false" final="false" visibility="public"
  52243. deprecated="not deprecated">
  52244. <constructor name="OutputCommitter"
  52245. static="false" final="false" visibility="public"
  52246. deprecated="not deprecated">
  52247. </constructor>
  52248. <method name="setupJob"
  52249. abstract="true" native="false" synchronized="false"
  52250. static="false" final="false" visibility="public"
  52251. deprecated="not deprecated">
  52252. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  52253. <exception name="IOException" type="java.io.IOException"/>
  52254. <doc>
  52255. <![CDATA[For the framework to setup the job output during initialization
  52256. @param jobContext Context of the job whose output is being written.
  52257. @throws IOException if temporary output could not be created]]>
  52258. </doc>
  52259. </method>
  52260. <method name="cleanupJob"
  52261. abstract="false" native="false" synchronized="false"
  52262. static="false" final="false" visibility="public"
  52263. deprecated="use {@link #commitJob(JobContext)} or
  52264. {@link #abortJob(JobContext, int)} instead">
  52265. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  52266. <exception name="IOException" type="java.io.IOException"/>
  52267. <doc>
  52268. <![CDATA[For cleaning up the job's output after job completion
  52269. @deprecated use {@link #commitJob(JobContext)} or
  52270. {@link #abortJob(JobContext, int)} instead]]>
  52271. </doc>
  52272. </method>
  52273. <method name="commitJob"
  52274. abstract="false" native="false" synchronized="false"
  52275. static="false" final="false" visibility="public"
  52276. deprecated="not deprecated">
  52277. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  52278. <exception name="IOException" type="java.io.IOException"/>
  52279. <doc>
  52280. <![CDATA[For committing job's output after successful job completion. Note that this
  52281. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  52282. @param jobContext Context of the job whose output is being written.
  52283. @throws IOException]]>
  52284. </doc>
  52285. </method>
  52286. <method name="abortJob"
  52287. abstract="false" native="false" synchronized="false"
  52288. static="false" final="false" visibility="public"
  52289. deprecated="not deprecated">
  52290. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  52291. <param name="status" type="int"/>
  52292. <exception name="IOException" type="java.io.IOException"/>
  52293. <doc>
  52294. <![CDATA[For cleaning up the job's output after job failure.
  52295. @param jobContext Context of the job whose output is being written.
  52296. @param status Final run state of the job, should be
  52297. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  52298. @throws IOException]]>
  52299. </doc>
  52300. </method>
  52301. <method name="setupTask"
  52302. abstract="true" native="false" synchronized="false"
  52303. static="false" final="false" visibility="public"
  52304. deprecated="not deprecated">
  52305. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  52306. <exception name="IOException" type="java.io.IOException"/>
  52307. <doc>
  52308. <![CDATA[Sets up output for the task.
  52309. @param taskContext Context of the task whose output is being written.
  52310. @throws IOException]]>
  52311. </doc>
  52312. </method>
  52313. <method name="needsTaskCommit" return="boolean"
  52314. abstract="true" native="false" synchronized="false"
  52315. static="false" final="false" visibility="public"
  52316. deprecated="not deprecated">
  52317. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  52318. <exception name="IOException" type="java.io.IOException"/>
  52319. <doc>
  52320. <![CDATA[Check whether task needs a commit
  52321. @param taskContext
  52322. @return true/false
  52323. @throws IOException]]>
  52324. </doc>
  52325. </method>
  52326. <method name="commitTask"
  52327. abstract="true" native="false" synchronized="false"
  52328. static="false" final="false" visibility="public"
  52329. deprecated="not deprecated">
  52330. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  52331. <exception name="IOException" type="java.io.IOException"/>
  52332. <doc>
  52333. <![CDATA[To promote the task's temporary output to final output location
  52334. The task's output is moved to the job's output directory.
  52335. @param taskContext Context of the task whose output is being written.
  52336. @throws IOException if commit is not]]>
  52337. </doc>
  52338. </method>
  52339. <method name="abortTask"
  52340. abstract="true" native="false" synchronized="false"
  52341. static="false" final="false" visibility="public"
  52342. deprecated="not deprecated">
  52343. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  52344. <exception name="IOException" type="java.io.IOException"/>
  52345. <doc>
  52346. <![CDATA[Discard the task output
  52347. @param taskContext
  52348. @throws IOException]]>
  52349. </doc>
  52350. </method>
  52351. <method name="setupJob"
  52352. abstract="false" native="false" synchronized="false"
  52353. static="false" final="true" visibility="public"
  52354. deprecated="not deprecated">
  52355. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  52356. <exception name="IOException" type="java.io.IOException"/>
  52357. <doc>
  52358. <![CDATA[This method implements the new interface by calling the old method. Note
  52359. that the input types are different between the new and old apis and this
  52360. is a bridge between the two.]]>
  52361. </doc>
  52362. </method>
  52363. <method name="cleanupJob"
  52364. abstract="false" native="false" synchronized="false"
  52365. static="false" final="true" visibility="public"
  52366. deprecated="not deprecated">
  52367. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  52368. <exception name="IOException" type="java.io.IOException"/>
  52369. <doc>
  52370. <![CDATA[This method implements the new interface by calling the old method. Note
  52371. that the input types are different between the new and old apis and this
  52372. is a bridge between the two.]]>
  52373. </doc>
  52374. </method>
  52375. <method name="commitJob"
  52376. abstract="false" native="false" synchronized="false"
  52377. static="false" final="true" visibility="public"
  52378. deprecated="not deprecated">
  52379. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  52380. <exception name="IOException" type="java.io.IOException"/>
  52381. <doc>
  52382. <![CDATA[This method implements the new interface by calling the old method. Note
  52383. that the input types are different between the new and old apis and this
  52384. is a bridge between the two.]]>
  52385. </doc>
  52386. </method>
  52387. <method name="abortJob"
  52388. abstract="false" native="false" synchronized="false"
  52389. static="false" final="true" visibility="public"
  52390. deprecated="not deprecated">
  52391. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  52392. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  52393. <exception name="IOException" type="java.io.IOException"/>
  52394. <doc>
  52395. <![CDATA[This method implements the new interface by calling the old method. Note
  52396. that the input types are different between the new and old apis and this
  52397. is a bridge between the two.]]>
  52398. </doc>
  52399. </method>
  52400. <method name="setupTask"
  52401. abstract="false" native="false" synchronized="false"
  52402. static="false" final="true" visibility="public"
  52403. deprecated="not deprecated">
  52404. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  52405. <exception name="IOException" type="java.io.IOException"/>
  52406. <doc>
  52407. <![CDATA[This method implements the new interface by calling the old method. Note
  52408. that the input types are different between the new and old apis and this
  52409. is a bridge between the two.]]>
  52410. </doc>
  52411. </method>
  52412. <method name="needsTaskCommit" return="boolean"
  52413. abstract="false" native="false" synchronized="false"
  52414. static="false" final="true" visibility="public"
  52415. deprecated="not deprecated">
  52416. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  52417. <exception name="IOException" type="java.io.IOException"/>
  52418. <doc>
  52419. <![CDATA[This method implements the new interface by calling the old method. Note
  52420. that the input types are different between the new and old apis and this
  52421. is a bridge between the two.]]>
  52422. </doc>
  52423. </method>
  52424. <method name="commitTask"
  52425. abstract="false" native="false" synchronized="false"
  52426. static="false" final="true" visibility="public"
  52427. deprecated="not deprecated">
  52428. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  52429. <exception name="IOException" type="java.io.IOException"/>
  52430. <doc>
  52431. <![CDATA[This method implements the new interface by calling the old method. Note
  52432. that the input types are different between the new and old apis and this
  52433. is a bridge between the two.]]>
  52434. </doc>
  52435. </method>
  52436. <method name="abortTask"
  52437. abstract="false" native="false" synchronized="false"
  52438. static="false" final="true" visibility="public"
  52439. deprecated="not deprecated">
  52440. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  52441. <exception name="IOException" type="java.io.IOException"/>
  52442. <doc>
  52443. <![CDATA[This method implements the new interface by calling the old method. Note
  52444. that the input types are different between the new and old apis and this
  52445. is a bridge between the two.]]>
  52446. </doc>
  52447. </method>
  52448. <doc>
  52449. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  52450. Map-Reduce job.
  52451. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  52452. the job to:<p>
  52453. <ol>
  52454. <li>
  52455. Setup the job during initialization. For example, create the temporary
  52456. output directory for the job during the initialization of the job.
  52457. </li>
  52458. <li>
  52459. Cleanup the job after the job completion. For example, remove the
  52460. temporary output directory after the job completion.
  52461. </li>
  52462. <li>
  52463. Setup the task temporary output.
  52464. </li>
  52465. <li>
  52466. Check whether a task needs a commit. This is to avoid the commit
  52467. procedure if a task does not need commit.
  52468. </li>
  52469. <li>
  52470. Commit of the task output.
  52471. </li>
  52472. <li>
  52473. Discard the task commit.
  52474. </li>
  52475. </ol>
  52476. @see FileOutputCommitter
  52477. @see JobContext
  52478. @see TaskAttemptContext]]>
  52479. </doc>
  52480. </class>
  52481. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  52482. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  52483. <interface name="OutputFormat" abstract="true"
  52484. static="false" final="false" visibility="public"
  52485. deprecated="not deprecated">
  52486. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  52487. abstract="false" native="false" synchronized="false"
  52488. static="false" final="false" visibility="public"
  52489. deprecated="not deprecated">
  52490. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52491. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52492. <param name="name" type="java.lang.String"/>
  52493. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  52494. <exception name="IOException" type="java.io.IOException"/>
  52495. <doc>
  52496. <![CDATA[Get the {@link RecordWriter} for the given job.
  52497. @param ignored
  52498. @param job configuration for the job whose output is being written.
  52499. @param name the unique name for this part of the output.
  52500. @param progress mechanism for reporting progress while writing to file.
  52501. @return a {@link RecordWriter} to write the output for the job.
  52502. @throws IOException]]>
  52503. </doc>
  52504. </method>
  52505. <method name="checkOutputSpecs"
  52506. abstract="false" native="false" synchronized="false"
  52507. static="false" final="false" visibility="public"
  52508. deprecated="not deprecated">
  52509. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52510. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52511. <exception name="IOException" type="java.io.IOException"/>
  52512. <doc>
  52513. <![CDATA[Check for validity of the output-specification for the job.
  52514. <p>This is to validate the output specification for the job when it is
  52515. a job is submitted. Typically checks that it does not already exist,
  52516. throwing an exception when it already exists, so that output is not
  52517. overwritten.</p>
  52518. @param ignored
  52519. @param job job configuration.
  52520. @throws IOException when output should not be attempted]]>
  52521. </doc>
  52522. </method>
  52523. <doc>
  52524. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  52525. Map-Reduce job.
  52526. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  52527. job to:<p>
  52528. <ol>
  52529. <li>
  52530. Validate the output-specification of the job. For e.g. check that the
  52531. output directory doesn't already exist.
  52532. <li>
  52533. Provide the {@link RecordWriter} implementation to be used to write out
  52534. the output files of the job. Output files are stored in a
  52535. {@link FileSystem}.
  52536. </li>
  52537. </ol>
  52538. @see RecordWriter
  52539. @see JobConf]]>
  52540. </doc>
  52541. </interface>
  52542. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  52543. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  52544. <class name="OutputLogFilter" extends="java.lang.Object"
  52545. abstract="false"
  52546. static="false" final="false" visibility="public"
  52547. deprecated="Use
  52548. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  52549. instead.">
  52550. <implements name="org.apache.hadoop.fs.PathFilter"/>
  52551. <constructor name="OutputLogFilter"
  52552. static="false" final="false" visibility="public"
  52553. deprecated="not deprecated">
  52554. </constructor>
  52555. <method name="accept" return="boolean"
  52556. abstract="false" native="false" synchronized="false"
  52557. static="false" final="false" visibility="public"
  52558. deprecated="not deprecated">
  52559. <param name="path" type="org.apache.hadoop.fs.Path"/>
  52560. </method>
  52561. <doc>
  52562. <![CDATA[This class filters log files from directory given
  52563. It doesnt accept paths having _logs.
  52564. This can be used to list paths of output directory as follows:
  52565. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  52566. new OutputLogFilter()));
  52567. @deprecated Use
  52568. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  52569. instead.]]>
  52570. </doc>
  52571. </class>
  52572. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  52573. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  52574. <interface name="Partitioner" abstract="true"
  52575. static="false" final="false" visibility="public"
  52576. deprecated="not deprecated">
  52577. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52578. <method name="getPartition" return="int"
  52579. abstract="false" native="false" synchronized="false"
  52580. static="false" final="false" visibility="public"
  52581. deprecated="not deprecated">
  52582. <param name="key" type="java.lang.Object"/>
  52583. <param name="value" type="java.lang.Object"/>
  52584. <param name="numPartitions" type="int"/>
  52585. <doc>
  52586. <![CDATA[Get the paritition number for a given key (hence record) given the total
  52587. number of partitions i.e. number of reduce-tasks for the job.
  52588. <p>Typically a hash function on a all or a subset of the key.</p>
  52589. @param key the key to be paritioned.
  52590. @param value the entry value.
  52591. @param numPartitions the total number of partitions.
  52592. @return the partition number for the <code>key</code>.]]>
  52593. </doc>
  52594. </method>
  52595. <doc>
  52596. <![CDATA[Partitions the key space.
  52597. <p><code>Partitioner</code> controls the partitioning of the keys of the
  52598. intermediate map-outputs. The key (or a subset of the key) is used to derive
  52599. the partition, typically by a hash function. The total number of partitions
  52600. is the same as the number of reduce tasks for the job. Hence this controls
  52601. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  52602. record) is sent for reduction.</p>
  52603. @see Reducer]]>
  52604. </doc>
  52605. </interface>
  52606. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  52607. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  52608. <class name="QueueAclsInfo" extends="java.lang.Object"
  52609. abstract="false"
  52610. static="false" final="false" visibility="public"
  52611. deprecated="not deprecated">
  52612. <implements name="org.apache.hadoop.io.Writable"/>
  52613. <constructor name="QueueAclsInfo"
  52614. static="false" final="false" visibility="public"
  52615. deprecated="not deprecated">
  52616. <doc>
  52617. <![CDATA[Default constructor for QueueAclsInfo.]]>
  52618. </doc>
  52619. </constructor>
  52620. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  52621. static="false" final="false" visibility="public"
  52622. deprecated="not deprecated">
  52623. <doc>
  52624. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  52625. queue operations array
  52626. @param queueName Name of the job queue
  52627. @param queue operations]]>
  52628. </doc>
  52629. </constructor>
  52630. <method name="getQueueName" return="java.lang.String"
  52631. abstract="false" native="false" synchronized="false"
  52632. static="false" final="false" visibility="public"
  52633. deprecated="not deprecated">
  52634. </method>
  52635. <method name="setQueueName"
  52636. abstract="false" native="false" synchronized="false"
  52637. static="false" final="false" visibility="protected"
  52638. deprecated="not deprecated">
  52639. <param name="queueName" type="java.lang.String"/>
  52640. </method>
  52641. <method name="getOperations" return="java.lang.String[]"
  52642. abstract="false" native="false" synchronized="false"
  52643. static="false" final="false" visibility="public"
  52644. deprecated="not deprecated">
  52645. </method>
  52646. <method name="readFields"
  52647. abstract="false" native="false" synchronized="false"
  52648. static="false" final="false" visibility="public"
  52649. deprecated="not deprecated">
  52650. <param name="in" type="java.io.DataInput"/>
  52651. <exception name="IOException" type="java.io.IOException"/>
  52652. </method>
  52653. <method name="write"
  52654. abstract="false" native="false" synchronized="false"
  52655. static="false" final="false" visibility="public"
  52656. deprecated="not deprecated">
  52657. <param name="out" type="java.io.DataOutput"/>
  52658. <exception name="IOException" type="java.io.IOException"/>
  52659. </method>
  52660. <doc>
  52661. <![CDATA[Class to encapsulate Queue ACLs for a particular
  52662. user.]]>
  52663. </doc>
  52664. </class>
  52665. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  52666. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  52667. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  52668. abstract="false"
  52669. static="false" final="false" visibility="public"
  52670. deprecated="not deprecated">
  52671. <constructor name="RawHistoryFileServlet"
  52672. static="false" final="false" visibility="public"
  52673. deprecated="not deprecated">
  52674. </constructor>
  52675. <method name="init"
  52676. abstract="false" native="false" synchronized="false"
  52677. static="false" final="false" visibility="public"
  52678. deprecated="not deprecated">
  52679. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  52680. <exception name="ServletException" type="javax.servlet.ServletException"/>
  52681. </method>
  52682. <method name="doGet"
  52683. abstract="false" native="false" synchronized="false"
  52684. static="false" final="false" visibility="protected"
  52685. deprecated="not deprecated">
  52686. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  52687. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  52688. <exception name="ServletException" type="javax.servlet.ServletException"/>
  52689. <exception name="IOException" type="java.io.IOException"/>
  52690. </method>
  52691. </class>
  52692. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  52693. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  52694. <interface name="RawKeyValueIterator" abstract="true"
  52695. static="false" final="false" visibility="public"
  52696. deprecated="not deprecated">
  52697. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  52698. abstract="false" native="false" synchronized="false"
  52699. static="false" final="false" visibility="public"
  52700. deprecated="not deprecated">
  52701. <exception name="IOException" type="java.io.IOException"/>
  52702. <doc>
  52703. <![CDATA[Gets the current raw key.
  52704. @return Gets the current raw key as a DataInputBuffer
  52705. @throws IOException]]>
  52706. </doc>
  52707. </method>
  52708. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  52709. abstract="false" native="false" synchronized="false"
  52710. static="false" final="false" visibility="public"
  52711. deprecated="not deprecated">
  52712. <exception name="IOException" type="java.io.IOException"/>
  52713. <doc>
  52714. <![CDATA[Gets the current raw value.
  52715. @return Gets the current raw value as a DataInputBuffer
  52716. @throws IOException]]>
  52717. </doc>
  52718. </method>
  52719. <method name="next" return="boolean"
  52720. abstract="false" native="false" synchronized="false"
  52721. static="false" final="false" visibility="public"
  52722. deprecated="not deprecated">
  52723. <exception name="IOException" type="java.io.IOException"/>
  52724. <doc>
  52725. <![CDATA[Sets up the current key and value (for getKey and getValue).
  52726. @return <code>true</code> if there exists a key/value,
  52727. <code>false</code> otherwise.
  52728. @throws IOException]]>
  52729. </doc>
  52730. </method>
  52731. <method name="close"
  52732. abstract="false" native="false" synchronized="false"
  52733. static="false" final="false" visibility="public"
  52734. deprecated="not deprecated">
  52735. <exception name="IOException" type="java.io.IOException"/>
  52736. <doc>
  52737. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  52738. @throws IOException]]>
  52739. </doc>
  52740. </method>
  52741. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  52742. abstract="false" native="false" synchronized="false"
  52743. static="false" final="false" visibility="public"
  52744. deprecated="not deprecated">
  52745. <doc>
  52746. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  52747. indicating the bytes processed by the iterator so far]]>
  52748. </doc>
  52749. </method>
  52750. <doc>
  52751. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  52752. the raw keys and values during sort/merge of intermediate data.]]>
  52753. </doc>
  52754. </interface>
  52755. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  52756. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  52757. <interface name="RecordReader" abstract="true"
  52758. static="false" final="false" visibility="public"
  52759. deprecated="not deprecated">
  52760. <method name="next" return="boolean"
  52761. abstract="false" native="false" synchronized="false"
  52762. static="false" final="false" visibility="public"
  52763. deprecated="not deprecated">
  52764. <param name="key" type="java.lang.Object"/>
  52765. <param name="value" type="java.lang.Object"/>
  52766. <exception name="IOException" type="java.io.IOException"/>
  52767. <doc>
  52768. <![CDATA[Reads the next key/value pair from the input for processing.
  52769. @param key the key to read data into
  52770. @param value the value to read data into
  52771. @return true iff a key/value was read, false if at EOF]]>
  52772. </doc>
  52773. </method>
  52774. <method name="createKey" return="java.lang.Object"
  52775. abstract="false" native="false" synchronized="false"
  52776. static="false" final="false" visibility="public"
  52777. deprecated="not deprecated">
  52778. <doc>
  52779. <![CDATA[Create an object of the appropriate type to be used as a key.
  52780. @return a new key object.]]>
  52781. </doc>
  52782. </method>
  52783. <method name="createValue" return="java.lang.Object"
  52784. abstract="false" native="false" synchronized="false"
  52785. static="false" final="false" visibility="public"
  52786. deprecated="not deprecated">
  52787. <doc>
  52788. <![CDATA[Create an object of the appropriate type to be used as a value.
  52789. @return a new value object.]]>
  52790. </doc>
  52791. </method>
  52792. <method name="getPos" return="long"
  52793. abstract="false" native="false" synchronized="false"
  52794. static="false" final="false" visibility="public"
  52795. deprecated="not deprecated">
  52796. <exception name="IOException" type="java.io.IOException"/>
  52797. <doc>
  52798. <![CDATA[Returns the current position in the input.
  52799. @return the current position in the input.
  52800. @throws IOException]]>
  52801. </doc>
  52802. </method>
  52803. <method name="close"
  52804. abstract="false" native="false" synchronized="false"
  52805. static="false" final="false" visibility="public"
  52806. deprecated="not deprecated">
  52807. <exception name="IOException" type="java.io.IOException"/>
  52808. <doc>
  52809. <![CDATA[Close this {@link InputSplit} to future operations.
  52810. @throws IOException]]>
  52811. </doc>
  52812. </method>
  52813. <method name="getProgress" return="float"
  52814. abstract="false" native="false" synchronized="false"
  52815. static="false" final="false" visibility="public"
  52816. deprecated="not deprecated">
  52817. <exception name="IOException" type="java.io.IOException"/>
  52818. <doc>
  52819. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  52820. has been processed by?
  52821. @return progress from <code>0.0</code> to <code>1.0</code>.
  52822. @throws IOException]]>
  52823. </doc>
  52824. </method>
  52825. <doc>
  52826. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  52827. {@link InputSplit}.
  52828. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  52829. the input, provided by the <code>InputSplit</code>, and presents a
  52830. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  52831. processing. It thus assumes the responsibility of processing record
  52832. boundaries and presenting the tasks with keys and values.</p>
  52833. @see InputSplit
  52834. @see InputFormat]]>
  52835. </doc>
  52836. </interface>
  52837. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  52838. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  52839. <interface name="RecordWriter" abstract="true"
  52840. static="false" final="false" visibility="public"
  52841. deprecated="not deprecated">
  52842. <method name="write"
  52843. abstract="false" native="false" synchronized="false"
  52844. static="false" final="false" visibility="public"
  52845. deprecated="not deprecated">
  52846. <param name="key" type="java.lang.Object"/>
  52847. <param name="value" type="java.lang.Object"/>
  52848. <exception name="IOException" type="java.io.IOException"/>
  52849. <doc>
  52850. <![CDATA[Writes a key/value pair.
  52851. @param key the key to write.
  52852. @param value the value to write.
  52853. @throws IOException]]>
  52854. </doc>
  52855. </method>
  52856. <method name="close"
  52857. abstract="false" native="false" synchronized="false"
  52858. static="false" final="false" visibility="public"
  52859. deprecated="not deprecated">
  52860. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52861. <exception name="IOException" type="java.io.IOException"/>
  52862. <doc>
  52863. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  52864. @param reporter facility to report progress.
  52865. @throws IOException]]>
  52866. </doc>
  52867. </method>
  52868. <doc>
  52869. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  52870. to an output file.
  52871. <p><code>RecordWriter</code> implementations write the job outputs to the
  52872. {@link FileSystem}.
  52873. @see OutputFormat]]>
  52874. </doc>
  52875. </interface>
  52876. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  52877. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  52878. <interface name="Reducer" abstract="true"
  52879. static="false" final="false" visibility="public"
  52880. deprecated="not deprecated">
  52881. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52882. <implements name="org.apache.hadoop.io.Closeable"/>
  52883. <method name="reduce"
  52884. abstract="false" native="false" synchronized="false"
  52885. static="false" final="false" visibility="public"
  52886. deprecated="not deprecated">
  52887. <param name="key" type="java.lang.Object"/>
  52888. <param name="values" type="java.util.Iterator"/>
  52889. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  52890. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52891. <exception name="IOException" type="java.io.IOException"/>
  52892. <doc>
  52893. <![CDATA[<i>Reduces</i> values for a given key.
  52894. <p>The framework calls this method for each
  52895. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  52896. Output values must be of the same type as input values. Input keys must
  52897. not be altered. The framework will <b>reuse</b> the key and value objects
  52898. that are passed into the reduce, therefore the application should clone
  52899. the objects they want to keep a copy of. In many cases, all values are
  52900. combined into zero or one value.
  52901. </p>
  52902. <p>Output pairs are collected with calls to
  52903. {@link OutputCollector#collect(Object,Object)}.</p>
  52904. <p>Applications can use the {@link Reporter} provided to report progress
  52905. or just indicate that they are alive. In scenarios where the application
  52906. takes an insignificant amount of time to process individual key/value
  52907. pairs, this is crucial since the framework might assume that the task has
  52908. timed-out and kill that task. The other way of avoiding this is to set
  52909. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  52910. mapred.task.timeout</a> to a high-enough value (or even zero for no
  52911. time-outs).</p>
  52912. @param key the key.
  52913. @param values the list of values to reduce.
  52914. @param output to collect keys and combined values.
  52915. @param reporter facility to report progress.]]>
  52916. </doc>
  52917. </method>
  52918. <doc>
  52919. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  52920. values.
  52921. <p>The number of <code>Reducer</code>s for the job is set by the user via
  52922. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  52923. can access the {@link JobConf} for the job via the
  52924. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  52925. Similarly they can use the {@link Closeable#close()} method for
  52926. de-initialization.</p>
  52927. <p><code>Reducer</code> has 3 primary phases:</p>
  52928. <ol>
  52929. <li>
  52930. <h4 id="Shuffle">Shuffle</h4>
  52931. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  52932. In the phase the framework, for each <code>Reducer</code>, fetches the
  52933. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  52934. </p>
  52935. </li>
  52936. <li>
  52937. <h4 id="Sort">Sort</h4>
  52938. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  52939. (since different <code>Mapper</code>s may have output the same key) in this
  52940. stage.</p>
  52941. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  52942. being fetched they are merged.</p>
  52943. <h5 id="SecondarySort">SecondarySort</h5>
  52944. <p>If equivalence rules for keys while grouping the intermediates are
  52945. different from those for grouping keys before reduction, then one may
  52946. specify a <code>Comparator</code> via
  52947. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  52948. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  52949. control how intermediate keys are grouped, these can be used in conjunction
  52950. to simulate <i>secondary sort on values</i>.</p>
  52951. For example, say that you want to find duplicate web pages and tag them
  52952. all with the url of the "best" known example. You would set up the job
  52953. like:
  52954. <ul>
  52955. <li>Map Input Key: url</li>
  52956. <li>Map Input Value: document</li>
  52957. <li>Map Output Key: document checksum, url pagerank</li>
  52958. <li>Map Output Value: url</li>
  52959. <li>Partitioner: by checksum</li>
  52960. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  52961. <li>OutputValueGroupingComparator: by checksum</li>
  52962. </ul>
  52963. </li>
  52964. <li>
  52965. <h4 id="Reduce">Reduce</h4>
  52966. <p>In this phase the
  52967. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  52968. method is called for each <code>&lt;key, (list of values)></code> pair in
  52969. the grouped inputs.</p>
  52970. <p>The output of the reduce task is typically written to the
  52971. {@link FileSystem} via
  52972. {@link OutputCollector#collect(Object, Object)}.</p>
  52973. </li>
  52974. </ol>
  52975. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  52976. <p>Example:</p>
  52977. <p><blockquote><pre>
  52978. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  52979. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  52980. static enum MyCounters { NUM_RECORDS }
  52981. private String reduceTaskId;
  52982. private int noKeys = 0;
  52983. public void configure(JobConf job) {
  52984. reduceTaskId = job.get("mapred.task.id");
  52985. }
  52986. public void reduce(K key, Iterator&lt;V&gt; values,
  52987. OutputCollector&lt;K, V&gt; output,
  52988. Reporter reporter)
  52989. throws IOException {
  52990. // Process
  52991. int noValues = 0;
  52992. while (values.hasNext()) {
  52993. V value = values.next();
  52994. // Increment the no. of values for this key
  52995. ++noValues;
  52996. // Process the &lt;key, value&gt; pair (assume this takes a while)
  52997. // ...
  52998. // ...
  52999. // Let the framework know that we are alive, and kicking!
  53000. if ((noValues%10) == 0) {
  53001. reporter.progress();
  53002. }
  53003. // Process some more
  53004. // ...
  53005. // ...
  53006. // Output the &lt;key, value&gt;
  53007. output.collect(key, value);
  53008. }
  53009. // Increment the no. of &lt;key, list of values&gt; pairs processed
  53010. ++noKeys;
  53011. // Increment counters
  53012. reporter.incrCounter(NUM_RECORDS, 1);
  53013. // Every 100 keys update application-level status
  53014. if ((noKeys%100) == 0) {
  53015. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  53016. }
  53017. }
  53018. }
  53019. </pre></blockquote></p>
  53020. @see Mapper
  53021. @see Partitioner
  53022. @see Reporter
  53023. @see MapReduceBase]]>
  53024. </doc>
  53025. </interface>
  53026. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  53027. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  53028. <interface name="Reporter" abstract="true"
  53029. static="false" final="false" visibility="public"
  53030. deprecated="not deprecated">
  53031. <implements name="org.apache.hadoop.util.Progressable"/>
  53032. <method name="setStatus"
  53033. abstract="false" native="false" synchronized="false"
  53034. static="false" final="false" visibility="public"
  53035. deprecated="not deprecated">
  53036. <param name="status" type="java.lang.String"/>
  53037. <doc>
  53038. <![CDATA[Set the status description for the task.
  53039. @param status brief description of the current status.]]>
  53040. </doc>
  53041. </method>
  53042. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  53043. abstract="false" native="false" synchronized="false"
  53044. static="false" final="false" visibility="public"
  53045. deprecated="not deprecated">
  53046. <param name="name" type="java.lang.Enum"/>
  53047. <doc>
  53048. <![CDATA[Get the {@link Counter} of the given group with the given name.
  53049. @param name counter name
  53050. @return the <code>Counter</code> of the given group/name.]]>
  53051. </doc>
  53052. </method>
  53053. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  53054. abstract="false" native="false" synchronized="false"
  53055. static="false" final="false" visibility="public"
  53056. deprecated="not deprecated">
  53057. <param name="group" type="java.lang.String"/>
  53058. <param name="name" type="java.lang.String"/>
  53059. <doc>
  53060. <![CDATA[Get the {@link Counter} of the given group with the given name.
  53061. @param group counter group
  53062. @param name counter name
  53063. @return the <code>Counter</code> of the given group/name.]]>
  53064. </doc>
  53065. </method>
  53066. <method name="incrCounter"
  53067. abstract="false" native="false" synchronized="false"
  53068. static="false" final="false" visibility="public"
  53069. deprecated="not deprecated">
  53070. <param name="key" type="java.lang.Enum"/>
  53071. <param name="amount" type="long"/>
  53072. <doc>
  53073. <![CDATA[Increments the counter identified by the key, which can be of
  53074. any {@link Enum} type, by the specified amount.
  53075. @param key key to identify the counter to be incremented. The key can be
  53076. be any <code>Enum</code>.
  53077. @param amount A non-negative amount by which the counter is to
  53078. be incremented.]]>
  53079. </doc>
  53080. </method>
  53081. <method name="incrCounter"
  53082. abstract="false" native="false" synchronized="false"
  53083. static="false" final="false" visibility="public"
  53084. deprecated="not deprecated">
  53085. <param name="group" type="java.lang.String"/>
  53086. <param name="counter" type="java.lang.String"/>
  53087. <param name="amount" type="long"/>
  53088. <doc>
  53089. <![CDATA[Increments the counter identified by the group and counter name
  53090. by the specified amount.
  53091. @param group name to identify the group of the counter to be incremented.
  53092. @param counter name to identify the counter within the group.
  53093. @param amount A non-negative amount by which the counter is to
  53094. be incremented.]]>
  53095. </doc>
  53096. </method>
  53097. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  53098. abstract="false" native="false" synchronized="false"
  53099. static="false" final="false" visibility="public"
  53100. deprecated="not deprecated">
  53101. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  53102. <doc>
  53103. <![CDATA[Get the {@link InputSplit} object for a map.
  53104. @return the <code>InputSplit</code> that the map is reading from.
  53105. @throws UnsupportedOperationException if called outside a mapper]]>
  53106. </doc>
  53107. </method>
  53108. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  53109. transient="false" volatile="false"
  53110. static="true" final="true" visibility="public"
  53111. deprecated="not deprecated">
  53112. <doc>
  53113. <![CDATA[A constant of Reporter type that does nothing.]]>
  53114. </doc>
  53115. </field>
  53116. <doc>
  53117. <![CDATA[A facility for Map-Reduce applications to report progress and update
  53118. counters, status information etc.
  53119. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  53120. provided to report progress or just indicate that they are alive. In
  53121. scenarios where the application takes an insignificant amount of time to
  53122. process individual key/value pairs, this is crucial since the framework
  53123. might assume that the task has timed-out and kill that task.
  53124. <p>Applications can also update {@link Counters} via the provided
  53125. <code>Reporter</code> .</p>
  53126. @see Progressable
  53127. @see Counters]]>
  53128. </doc>
  53129. </interface>
  53130. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  53131. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  53132. <interface name="RunningJob" abstract="true"
  53133. static="false" final="false" visibility="public"
  53134. deprecated="not deprecated">
  53135. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  53136. abstract="false" native="false" synchronized="false"
  53137. static="false" final="false" visibility="public"
  53138. deprecated="not deprecated">
  53139. <doc>
  53140. <![CDATA[Get the job identifier.
  53141. @return the job identifier.]]>
  53142. </doc>
  53143. </method>
  53144. <method name="getJobID" return="java.lang.String"
  53145. abstract="false" native="false" synchronized="false"
  53146. static="false" final="false" visibility="public"
  53147. deprecated="This method is deprecated and will be removed. Applications should
  53148. rather use {@link #getID()}.">
  53149. <doc>
  53150. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  53151. rather use {@link #getID()}.]]>
  53152. </doc>
  53153. </method>
  53154. <method name="getJobName" return="java.lang.String"
  53155. abstract="false" native="false" synchronized="false"
  53156. static="false" final="false" visibility="public"
  53157. deprecated="not deprecated">
  53158. <doc>
  53159. <![CDATA[Get the name of the job.
  53160. @return the name of the job.]]>
  53161. </doc>
  53162. </method>
  53163. <method name="getJobFile" return="java.lang.String"
  53164. abstract="false" native="false" synchronized="false"
  53165. static="false" final="false" visibility="public"
  53166. deprecated="not deprecated">
  53167. <doc>
  53168. <![CDATA[Get the path of the submitted job configuration.
  53169. @return the path of the submitted job configuration.]]>
  53170. </doc>
  53171. </method>
  53172. <method name="getTrackingURL" return="java.lang.String"
  53173. abstract="false" native="false" synchronized="false"
  53174. static="false" final="false" visibility="public"
  53175. deprecated="not deprecated">
  53176. <doc>
  53177. <![CDATA[Get the URL where some job progress information will be displayed.
  53178. @return the URL where some job progress information will be displayed.]]>
  53179. </doc>
  53180. </method>
  53181. <method name="mapProgress" return="float"
  53182. abstract="false" native="false" synchronized="false"
  53183. static="false" final="false" visibility="public"
  53184. deprecated="not deprecated">
  53185. <exception name="IOException" type="java.io.IOException"/>
  53186. <doc>
  53187. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  53188. and 1.0. When all map tasks have completed, the function returns 1.0.
  53189. @return the progress of the job's map-tasks.
  53190. @throws IOException]]>
  53191. </doc>
  53192. </method>
  53193. <method name="reduceProgress" return="float"
  53194. abstract="false" native="false" synchronized="false"
  53195. static="false" final="false" visibility="public"
  53196. deprecated="not deprecated">
  53197. <exception name="IOException" type="java.io.IOException"/>
  53198. <doc>
  53199. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  53200. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  53201. @return the progress of the job's reduce-tasks.
  53202. @throws IOException]]>
  53203. </doc>
  53204. </method>
  53205. <method name="cleanupProgress" return="float"
  53206. abstract="false" native="false" synchronized="false"
  53207. static="false" final="false" visibility="public"
  53208. deprecated="not deprecated">
  53209. <exception name="IOException" type="java.io.IOException"/>
  53210. <doc>
  53211. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  53212. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  53213. @return the progress of the job's cleanup-tasks.
  53214. @throws IOException]]>
  53215. </doc>
  53216. </method>
  53217. <method name="setupProgress" return="float"
  53218. abstract="false" native="false" synchronized="false"
  53219. static="false" final="false" visibility="public"
  53220. deprecated="not deprecated">
  53221. <exception name="IOException" type="java.io.IOException"/>
  53222. <doc>
  53223. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  53224. and 1.0. When all setup tasks have completed, the function returns 1.0.
  53225. @return the progress of the job's setup-tasks.
  53226. @throws IOException]]>
  53227. </doc>
  53228. </method>
  53229. <method name="isComplete" return="boolean"
  53230. abstract="false" native="false" synchronized="false"
  53231. static="false" final="false" visibility="public"
  53232. deprecated="not deprecated">
  53233. <exception name="IOException" type="java.io.IOException"/>
  53234. <doc>
  53235. <![CDATA[Check if the job is finished or not.
  53236. This is a non-blocking call.
  53237. @return <code>true</code> if the job is complete, else <code>false</code>.
  53238. @throws IOException]]>
  53239. </doc>
  53240. </method>
  53241. <method name="isSuccessful" return="boolean"
  53242. abstract="false" native="false" synchronized="false"
  53243. static="false" final="false" visibility="public"
  53244. deprecated="not deprecated">
  53245. <exception name="IOException" type="java.io.IOException"/>
  53246. <doc>
  53247. <![CDATA[Check if the job completed successfully.
  53248. @return <code>true</code> if the job succeeded, else <code>false</code>.
  53249. @throws IOException]]>
  53250. </doc>
  53251. </method>
  53252. <method name="waitForCompletion"
  53253. abstract="false" native="false" synchronized="false"
  53254. static="false" final="false" visibility="public"
  53255. deprecated="not deprecated">
  53256. <exception name="IOException" type="java.io.IOException"/>
  53257. <doc>
  53258. <![CDATA[Blocks until the job is complete.
  53259. @throws IOException]]>
  53260. </doc>
  53261. </method>
  53262. <method name="getJobState" return="int"
  53263. abstract="false" native="false" synchronized="false"
  53264. static="false" final="false" visibility="public"
  53265. deprecated="not deprecated">
  53266. <exception name="IOException" type="java.io.IOException"/>
  53267. <doc>
  53268. <![CDATA[Returns the current state of the Job.
  53269. {@link JobStatus}
  53270. @throws IOException]]>
  53271. </doc>
  53272. </method>
  53273. <method name="killJob"
  53274. abstract="false" native="false" synchronized="false"
  53275. static="false" final="false" visibility="public"
  53276. deprecated="not deprecated">
  53277. <exception name="IOException" type="java.io.IOException"/>
  53278. <doc>
  53279. <![CDATA[Kill the running job. Blocks until all job tasks have been
  53280. killed as well. If the job is no longer running, it simply returns.
  53281. @throws IOException]]>
  53282. </doc>
  53283. </method>
  53284. <method name="setJobPriority"
  53285. abstract="false" native="false" synchronized="false"
  53286. static="false" final="false" visibility="public"
  53287. deprecated="not deprecated">
  53288. <param name="priority" type="java.lang.String"/>
  53289. <exception name="IOException" type="java.io.IOException"/>
  53290. <doc>
  53291. <![CDATA[Set the priority of a running job.
  53292. @param priority the new priority for the job.
  53293. @throws IOException]]>
  53294. </doc>
  53295. </method>
  53296. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  53297. abstract="false" native="false" synchronized="false"
  53298. static="false" final="false" visibility="public"
  53299. deprecated="not deprecated">
  53300. <param name="startFrom" type="int"/>
  53301. <exception name="IOException" type="java.io.IOException"/>
  53302. <doc>
  53303. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  53304. @param startFrom index to start fetching events from
  53305. @return an array of {@link TaskCompletionEvent}s
  53306. @throws IOException]]>
  53307. </doc>
  53308. </method>
  53309. <method name="killTask"
  53310. abstract="false" native="false" synchronized="false"
  53311. static="false" final="false" visibility="public"
  53312. deprecated="not deprecated">
  53313. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53314. <param name="shouldFail" type="boolean"/>
  53315. <exception name="IOException" type="java.io.IOException"/>
  53316. <doc>
  53317. <![CDATA[Kill indicated task attempt.
  53318. @param taskId the id of the task to be terminated.
  53319. @param shouldFail if true the task is failed and added to failed tasks
  53320. list, otherwise it is just killed, w/o affecting
  53321. job failure status.
  53322. @throws IOException]]>
  53323. </doc>
  53324. </method>
  53325. <method name="killTask"
  53326. abstract="false" native="false" synchronized="false"
  53327. static="false" final="false" visibility="public"
  53328. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  53329. <param name="taskId" type="java.lang.String"/>
  53330. <param name="shouldFail" type="boolean"/>
  53331. <exception name="IOException" type="java.io.IOException"/>
  53332. <doc>
  53333. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  53334. </doc>
  53335. </method>
  53336. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  53337. abstract="false" native="false" synchronized="false"
  53338. static="false" final="false" visibility="public"
  53339. deprecated="not deprecated">
  53340. <exception name="IOException" type="java.io.IOException"/>
  53341. <doc>
  53342. <![CDATA[Gets the counters for this job.
  53343. @return the counters for this job.
  53344. @throws IOException]]>
  53345. </doc>
  53346. </method>
  53347. <method name="getFailureInfo" return="java.lang.String"
  53348. abstract="false" native="false" synchronized="false"
  53349. static="false" final="false" visibility="public"
  53350. deprecated="not deprecated">
  53351. <exception name="IOException" type="java.io.IOException"/>
  53352. <doc>
  53353. <![CDATA[Get failure info for the job.
  53354. @return the failure info for the job.
  53355. @throws IOException]]>
  53356. </doc>
  53357. </method>
  53358. <method name="getTaskDiagnostics" return="java.lang.String[]"
  53359. abstract="false" native="false" synchronized="false"
  53360. static="false" final="false" visibility="public"
  53361. deprecated="not deprecated">
  53362. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53363. <exception name="IOException" type="java.io.IOException"/>
  53364. <doc>
  53365. <![CDATA[Gets the diagnostic messages for a given task attempt.
  53366. @param taskid
  53367. @return the list of diagnostic messages for the task
  53368. @throws IOException]]>
  53369. </doc>
  53370. </method>
  53371. <doc>
  53372. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  53373. running Map-Reduce job.
  53374. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  53375. and then query the running-job for details such as name, configuration,
  53376. progress etc.</p>
  53377. @see JobClient]]>
  53378. </doc>
  53379. </interface>
  53380. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  53381. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  53382. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  53383. abstract="false"
  53384. static="false" final="false" visibility="public"
  53385. deprecated="not deprecated">
  53386. <constructor name="SequenceFileAsBinaryInputFormat"
  53387. static="false" final="false" visibility="public"
  53388. deprecated="not deprecated">
  53389. </constructor>
  53390. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53391. abstract="false" native="false" synchronized="false"
  53392. static="false" final="false" visibility="public"
  53393. deprecated="not deprecated">
  53394. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53395. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53396. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53397. <exception name="IOException" type="java.io.IOException"/>
  53398. </method>
  53399. <doc>
  53400. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  53401. format.]]>
  53402. </doc>
  53403. </class>
  53404. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  53405. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  53406. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  53407. abstract="false"
  53408. static="true" final="false" visibility="public"
  53409. deprecated="not deprecated">
  53410. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53411. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53412. static="false" final="false" visibility="public"
  53413. deprecated="not deprecated">
  53414. <exception name="IOException" type="java.io.IOException"/>
  53415. </constructor>
  53416. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  53417. abstract="false" native="false" synchronized="false"
  53418. static="false" final="false" visibility="public"
  53419. deprecated="not deprecated">
  53420. </method>
  53421. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  53422. abstract="false" native="false" synchronized="false"
  53423. static="false" final="false" visibility="public"
  53424. deprecated="not deprecated">
  53425. </method>
  53426. <method name="getKeyClassName" return="java.lang.String"
  53427. abstract="false" native="false" synchronized="false"
  53428. static="false" final="false" visibility="public"
  53429. deprecated="not deprecated">
  53430. <doc>
  53431. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  53432. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  53433. </doc>
  53434. </method>
  53435. <method name="getValueClassName" return="java.lang.String"
  53436. abstract="false" native="false" synchronized="false"
  53437. static="false" final="false" visibility="public"
  53438. deprecated="not deprecated">
  53439. <doc>
  53440. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  53441. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  53442. </doc>
  53443. </method>
  53444. <method name="next" return="boolean"
  53445. abstract="false" native="false" synchronized="true"
  53446. static="false" final="false" visibility="public"
  53447. deprecated="not deprecated">
  53448. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  53449. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  53450. <exception name="IOException" type="java.io.IOException"/>
  53451. <doc>
  53452. <![CDATA[Read raw bytes from a SequenceFile.]]>
  53453. </doc>
  53454. </method>
  53455. <method name="getPos" return="long"
  53456. abstract="false" native="false" synchronized="false"
  53457. static="false" final="false" visibility="public"
  53458. deprecated="not deprecated">
  53459. <exception name="IOException" type="java.io.IOException"/>
  53460. </method>
  53461. <method name="close"
  53462. abstract="false" native="false" synchronized="false"
  53463. static="false" final="false" visibility="public"
  53464. deprecated="not deprecated">
  53465. <exception name="IOException" type="java.io.IOException"/>
  53466. </method>
  53467. <method name="getProgress" return="float"
  53468. abstract="false" native="false" synchronized="false"
  53469. static="false" final="false" visibility="public"
  53470. deprecated="not deprecated">
  53471. <exception name="IOException" type="java.io.IOException"/>
  53472. <doc>
  53473. <![CDATA[Return the progress within the input split
  53474. @return 0.0 to 1.0 of the input byte range]]>
  53475. </doc>
  53476. </method>
  53477. <doc>
  53478. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  53479. </doc>
  53480. </class>
  53481. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  53482. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  53483. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  53484. abstract="false"
  53485. static="false" final="false" visibility="public"
  53486. deprecated="not deprecated">
  53487. <constructor name="SequenceFileAsBinaryOutputFormat"
  53488. static="false" final="false" visibility="public"
  53489. deprecated="not deprecated">
  53490. </constructor>
  53491. <method name="setSequenceFileOutputKeyClass"
  53492. abstract="false" native="false" synchronized="false"
  53493. static="true" final="false" visibility="public"
  53494. deprecated="not deprecated">
  53495. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53496. <param name="theClass" type="java.lang.Class"/>
  53497. <doc>
  53498. <![CDATA[Set the key class for the {@link SequenceFile}
  53499. <p>This allows the user to specify the key class to be different
  53500. from the actual class ({@link BytesWritable}) used for writing </p>
  53501. @param conf the {@link JobConf} to modify
  53502. @param theClass the SequenceFile output key class.]]>
  53503. </doc>
  53504. </method>
  53505. <method name="setSequenceFileOutputValueClass"
  53506. abstract="false" native="false" synchronized="false"
  53507. static="true" final="false" visibility="public"
  53508. deprecated="not deprecated">
  53509. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53510. <param name="theClass" type="java.lang.Class"/>
  53511. <doc>
  53512. <![CDATA[Set the value class for the {@link SequenceFile}
  53513. <p>This allows the user to specify the value class to be different
  53514. from the actual class ({@link BytesWritable}) used for writing </p>
  53515. @param conf the {@link JobConf} to modify
  53516. @param theClass the SequenceFile output key class.]]>
  53517. </doc>
  53518. </method>
  53519. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  53520. abstract="false" native="false" synchronized="false"
  53521. static="true" final="false" visibility="public"
  53522. deprecated="not deprecated">
  53523. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53524. <doc>
  53525. <![CDATA[Get the key class for the {@link SequenceFile}
  53526. @return the key class of the {@link SequenceFile}]]>
  53527. </doc>
  53528. </method>
  53529. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  53530. abstract="false" native="false" synchronized="false"
  53531. static="true" final="false" visibility="public"
  53532. deprecated="not deprecated">
  53533. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53534. <doc>
  53535. <![CDATA[Get the value class for the {@link SequenceFile}
  53536. @return the value class of the {@link SequenceFile}]]>
  53537. </doc>
  53538. </method>
  53539. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53540. abstract="false" native="false" synchronized="false"
  53541. static="false" final="false" visibility="public"
  53542. deprecated="not deprecated">
  53543. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53544. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53545. <param name="name" type="java.lang.String"/>
  53546. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53547. <exception name="IOException" type="java.io.IOException"/>
  53548. </method>
  53549. <method name="checkOutputSpecs"
  53550. abstract="false" native="false" synchronized="false"
  53551. static="false" final="false" visibility="public"
  53552. deprecated="not deprecated">
  53553. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53554. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53555. <exception name="IOException" type="java.io.IOException"/>
  53556. </method>
  53557. <doc>
  53558. <![CDATA[An {@link OutputFormat} that writes keys, values to
  53559. {@link SequenceFile}s in binary(raw) format]]>
  53560. </doc>
  53561. </class>
  53562. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  53563. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  53564. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  53565. abstract="false"
  53566. static="true" final="false" visibility="protected"
  53567. deprecated="not deprecated">
  53568. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  53569. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  53570. static="false" final="false" visibility="public"
  53571. deprecated="not deprecated">
  53572. </constructor>
  53573. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  53574. static="false" final="false" visibility="public"
  53575. deprecated="not deprecated">
  53576. </constructor>
  53577. <method name="reset"
  53578. abstract="false" native="false" synchronized="false"
  53579. static="false" final="false" visibility="public"
  53580. deprecated="not deprecated">
  53581. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  53582. </method>
  53583. <method name="writeUncompressedBytes"
  53584. abstract="false" native="false" synchronized="false"
  53585. static="false" final="false" visibility="public"
  53586. deprecated="not deprecated">
  53587. <param name="outStream" type="java.io.DataOutputStream"/>
  53588. <exception name="IOException" type="java.io.IOException"/>
  53589. </method>
  53590. <method name="writeCompressedBytes"
  53591. abstract="false" native="false" synchronized="false"
  53592. static="false" final="false" visibility="public"
  53593. deprecated="not deprecated">
  53594. <param name="outStream" type="java.io.DataOutputStream"/>
  53595. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  53596. <exception name="IOException" type="java.io.IOException"/>
  53597. </method>
  53598. <method name="getSize" return="int"
  53599. abstract="false" native="false" synchronized="false"
  53600. static="false" final="false" visibility="public"
  53601. deprecated="not deprecated">
  53602. </method>
  53603. <doc>
  53604. <![CDATA[Inner class used for appendRaw]]>
  53605. </doc>
  53606. </class>
  53607. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  53608. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  53609. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  53610. abstract="false"
  53611. static="false" final="false" visibility="public"
  53612. deprecated="not deprecated">
  53613. <constructor name="SequenceFileAsTextInputFormat"
  53614. static="false" final="false" visibility="public"
  53615. deprecated="not deprecated">
  53616. </constructor>
  53617. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53618. abstract="false" native="false" synchronized="false"
  53619. static="false" final="false" visibility="public"
  53620. deprecated="not deprecated">
  53621. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53622. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53623. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53624. <exception name="IOException" type="java.io.IOException"/>
  53625. </method>
  53626. <doc>
  53627. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  53628. which converts the input keys and values to their String forms by calling toString() method.]]>
  53629. </doc>
  53630. </class>
  53631. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  53632. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  53633. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  53634. abstract="false"
  53635. static="false" final="false" visibility="public"
  53636. deprecated="not deprecated">
  53637. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53638. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53639. static="false" final="false" visibility="public"
  53640. deprecated="not deprecated">
  53641. <exception name="IOException" type="java.io.IOException"/>
  53642. </constructor>
  53643. <method name="createKey" return="org.apache.hadoop.io.Text"
  53644. abstract="false" native="false" synchronized="false"
  53645. static="false" final="false" visibility="public"
  53646. deprecated="not deprecated">
  53647. </method>
  53648. <method name="createValue" return="org.apache.hadoop.io.Text"
  53649. abstract="false" native="false" synchronized="false"
  53650. static="false" final="false" visibility="public"
  53651. deprecated="not deprecated">
  53652. </method>
  53653. <method name="next" return="boolean"
  53654. abstract="false" native="false" synchronized="true"
  53655. static="false" final="false" visibility="public"
  53656. deprecated="not deprecated">
  53657. <param name="key" type="org.apache.hadoop.io.Text"/>
  53658. <param name="value" type="org.apache.hadoop.io.Text"/>
  53659. <exception name="IOException" type="java.io.IOException"/>
  53660. <doc>
  53661. <![CDATA[Read key/value pair in a line.]]>
  53662. </doc>
  53663. </method>
  53664. <method name="getProgress" return="float"
  53665. abstract="false" native="false" synchronized="false"
  53666. static="false" final="false" visibility="public"
  53667. deprecated="not deprecated">
  53668. <exception name="IOException" type="java.io.IOException"/>
  53669. </method>
  53670. <method name="getPos" return="long"
  53671. abstract="false" native="false" synchronized="true"
  53672. static="false" final="false" visibility="public"
  53673. deprecated="not deprecated">
  53674. <exception name="IOException" type="java.io.IOException"/>
  53675. </method>
  53676. <method name="close"
  53677. abstract="false" native="false" synchronized="true"
  53678. static="false" final="false" visibility="public"
  53679. deprecated="not deprecated">
  53680. <exception name="IOException" type="java.io.IOException"/>
  53681. </method>
  53682. <doc>
  53683. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  53684. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  53685. class to TextInputFormat class.]]>
  53686. </doc>
  53687. </class>
  53688. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  53689. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  53690. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  53691. abstract="false"
  53692. static="false" final="false" visibility="public"
  53693. deprecated="not deprecated">
  53694. <constructor name="SequenceFileInputFilter"
  53695. static="false" final="false" visibility="public"
  53696. deprecated="not deprecated">
  53697. </constructor>
  53698. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53699. abstract="false" native="false" synchronized="false"
  53700. static="false" final="false" visibility="public"
  53701. deprecated="not deprecated">
  53702. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53703. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53704. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53705. <exception name="IOException" type="java.io.IOException"/>
  53706. <doc>
  53707. <![CDATA[Create a record reader for the given split
  53708. @param split file split
  53709. @param job job configuration
  53710. @param reporter reporter who sends report to task tracker
  53711. @return RecordReader]]>
  53712. </doc>
  53713. </method>
  53714. <method name="setFilterClass"
  53715. abstract="false" native="false" synchronized="false"
  53716. static="true" final="false" visibility="public"
  53717. deprecated="not deprecated">
  53718. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53719. <param name="filterClass" type="java.lang.Class"/>
  53720. <doc>
  53721. <![CDATA[set the filter class
  53722. @param conf application configuration
  53723. @param filterClass filter class]]>
  53724. </doc>
  53725. </method>
  53726. <doc>
  53727. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  53728. The sample is decided by the filter class set by the job.]]>
  53729. </doc>
  53730. </class>
  53731. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  53732. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  53733. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  53734. static="true" final="false" visibility="public"
  53735. deprecated="not deprecated">
  53736. <implements name="org.apache.hadoop.conf.Configurable"/>
  53737. <method name="accept" return="boolean"
  53738. abstract="false" native="false" synchronized="false"
  53739. static="false" final="false" visibility="public"
  53740. deprecated="not deprecated">
  53741. <param name="key" type="java.lang.Object"/>
  53742. <doc>
  53743. <![CDATA[filter function
  53744. Decide if a record should be filtered or not
  53745. @param key record key
  53746. @return true if a record is accepted; return false otherwise]]>
  53747. </doc>
  53748. </method>
  53749. <doc>
  53750. <![CDATA[filter interface]]>
  53751. </doc>
  53752. </interface>
  53753. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  53754. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53755. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  53756. abstract="true"
  53757. static="true" final="false" visibility="public"
  53758. deprecated="not deprecated">
  53759. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  53760. <constructor name="SequenceFileInputFilter.FilterBase"
  53761. static="false" final="false" visibility="public"
  53762. deprecated="not deprecated">
  53763. </constructor>
  53764. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  53765. abstract="false" native="false" synchronized="false"
  53766. static="false" final="false" visibility="public"
  53767. deprecated="not deprecated">
  53768. </method>
  53769. <doc>
  53770. <![CDATA[base class for Filters]]>
  53771. </doc>
  53772. </class>
  53773. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53774. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53775. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53776. abstract="false"
  53777. static="true" final="false" visibility="public"
  53778. deprecated="not deprecated">
  53779. <constructor name="SequenceFileInputFilter.MD5Filter"
  53780. static="false" final="false" visibility="public"
  53781. deprecated="not deprecated">
  53782. </constructor>
  53783. <method name="setFrequency"
  53784. abstract="false" native="false" synchronized="false"
  53785. static="true" final="false" visibility="public"
  53786. deprecated="not deprecated">
  53787. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53788. <param name="frequency" type="int"/>
  53789. <doc>
  53790. <![CDATA[set the filtering frequency in configuration
  53791. @param conf configuration
  53792. @param frequency filtering frequency]]>
  53793. </doc>
  53794. </method>
  53795. <method name="setConf"
  53796. abstract="false" native="false" synchronized="false"
  53797. static="false" final="false" visibility="public"
  53798. deprecated="not deprecated">
  53799. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53800. <doc>
  53801. <![CDATA[configure the filter according to configuration
  53802. @param conf configuration]]>
  53803. </doc>
  53804. </method>
  53805. <method name="accept" return="boolean"
  53806. abstract="false" native="false" synchronized="false"
  53807. static="false" final="false" visibility="public"
  53808. deprecated="not deprecated">
  53809. <param name="key" type="java.lang.Object"/>
  53810. <doc>
  53811. <![CDATA[Filtering method
  53812. If MD5(key) % frequency==0, return true; otherwise return false
  53813. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53814. </doc>
  53815. </method>
  53816. <field name="MD5_LEN" type="int"
  53817. transient="false" volatile="false"
  53818. static="true" final="true" visibility="public"
  53819. deprecated="not deprecated">
  53820. </field>
  53821. <doc>
  53822. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  53823. key against a filtering frequency <i>f</i>. The filtering criteria is
  53824. MD5(key) % f == 0.]]>
  53825. </doc>
  53826. </class>
  53827. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53828. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53829. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53830. abstract="false"
  53831. static="true" final="false" visibility="public"
  53832. deprecated="not deprecated">
  53833. <constructor name="SequenceFileInputFilter.PercentFilter"
  53834. static="false" final="false" visibility="public"
  53835. deprecated="not deprecated">
  53836. </constructor>
  53837. <method name="setFrequency"
  53838. abstract="false" native="false" synchronized="false"
  53839. static="true" final="false" visibility="public"
  53840. deprecated="not deprecated">
  53841. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53842. <param name="frequency" type="int"/>
  53843. <doc>
  53844. <![CDATA[set the frequency and stores it in conf
  53845. @param conf configuration
  53846. @param frequency filtering frequencey]]>
  53847. </doc>
  53848. </method>
  53849. <method name="setConf"
  53850. abstract="false" native="false" synchronized="false"
  53851. static="false" final="false" visibility="public"
  53852. deprecated="not deprecated">
  53853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53854. <doc>
  53855. <![CDATA[configure the filter by checking the configuration
  53856. @param conf configuration]]>
  53857. </doc>
  53858. </method>
  53859. <method name="accept" return="boolean"
  53860. abstract="false" native="false" synchronized="false"
  53861. static="false" final="false" visibility="public"
  53862. deprecated="not deprecated">
  53863. <param name="key" type="java.lang.Object"/>
  53864. <doc>
  53865. <![CDATA[Filtering method
  53866. If record# % frequency==0, return true; otherwise return false
  53867. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53868. </doc>
  53869. </method>
  53870. <doc>
  53871. <![CDATA[This class returns a percentage of records
  53872. The percentage is determined by a filtering frequency <i>f</i> using
  53873. the criteria record# % f == 0.
  53874. For example, if the frequency is 10, one out of 10 records is returned.]]>
  53875. </doc>
  53876. </class>
  53877. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53878. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53879. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53880. abstract="false"
  53881. static="true" final="false" visibility="public"
  53882. deprecated="not deprecated">
  53883. <constructor name="SequenceFileInputFilter.RegexFilter"
  53884. static="false" final="false" visibility="public"
  53885. deprecated="not deprecated">
  53886. </constructor>
  53887. <method name="setPattern"
  53888. abstract="false" native="false" synchronized="false"
  53889. static="true" final="false" visibility="public"
  53890. deprecated="not deprecated">
  53891. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53892. <param name="regex" type="java.lang.String"/>
  53893. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  53894. <doc>
  53895. <![CDATA[Define the filtering regex and stores it in conf
  53896. @param conf where the regex is set
  53897. @param regex regex used as a filter]]>
  53898. </doc>
  53899. </method>
  53900. <method name="setConf"
  53901. abstract="false" native="false" synchronized="false"
  53902. static="false" final="false" visibility="public"
  53903. deprecated="not deprecated">
  53904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53905. <doc>
  53906. <![CDATA[configure the Filter by checking the configuration]]>
  53907. </doc>
  53908. </method>
  53909. <method name="accept" return="boolean"
  53910. abstract="false" native="false" synchronized="false"
  53911. static="false" final="false" visibility="public"
  53912. deprecated="not deprecated">
  53913. <param name="key" type="java.lang.Object"/>
  53914. <doc>
  53915. <![CDATA[Filtering method
  53916. If key matches the regex, return true; otherwise return false
  53917. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53918. </doc>
  53919. </method>
  53920. <doc>
  53921. <![CDATA[Records filter by matching key to regex]]>
  53922. </doc>
  53923. </class>
  53924. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53925. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53926. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53927. abstract="false"
  53928. static="false" final="false" visibility="public"
  53929. deprecated="not deprecated">
  53930. <constructor name="SequenceFileInputFormat"
  53931. static="false" final="false" visibility="public"
  53932. deprecated="not deprecated">
  53933. </constructor>
  53934. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  53935. abstract="false" native="false" synchronized="false"
  53936. static="false" final="false" visibility="protected"
  53937. deprecated="not deprecated">
  53938. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53939. <exception name="IOException" type="java.io.IOException"/>
  53940. </method>
  53941. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53942. abstract="false" native="false" synchronized="false"
  53943. static="false" final="false" visibility="public"
  53944. deprecated="not deprecated">
  53945. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53946. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53947. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53948. <exception name="IOException" type="java.io.IOException"/>
  53949. </method>
  53950. <doc>
  53951. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  53952. </doc>
  53953. </class>
  53954. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53955. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  53956. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  53957. abstract="false"
  53958. static="false" final="false" visibility="public"
  53959. deprecated="not deprecated">
  53960. <constructor name="SequenceFileOutputFormat"
  53961. static="false" final="false" visibility="public"
  53962. deprecated="not deprecated">
  53963. </constructor>
  53964. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53965. abstract="false" native="false" synchronized="false"
  53966. static="false" final="false" visibility="public"
  53967. deprecated="not deprecated">
  53968. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53969. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53970. <param name="name" type="java.lang.String"/>
  53971. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53972. <exception name="IOException" type="java.io.IOException"/>
  53973. </method>
  53974. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  53975. abstract="false" native="false" synchronized="false"
  53976. static="true" final="false" visibility="public"
  53977. deprecated="not deprecated">
  53978. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53979. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  53980. <exception name="IOException" type="java.io.IOException"/>
  53981. <doc>
  53982. <![CDATA[Open the output generated by this format.]]>
  53983. </doc>
  53984. </method>
  53985. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  53986. abstract="false" native="false" synchronized="false"
  53987. static="true" final="false" visibility="public"
  53988. deprecated="not deprecated">
  53989. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53990. <doc>
  53991. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  53992. @param conf the {@link JobConf}
  53993. @return the {@link CompressionType} for the output {@link SequenceFile},
  53994. defaulting to {@link CompressionType#RECORD}]]>
  53995. </doc>
  53996. </method>
  53997. <method name="setOutputCompressionType"
  53998. abstract="false" native="false" synchronized="false"
  53999. static="true" final="false" visibility="public"
  54000. deprecated="not deprecated">
  54001. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54002. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  54003. <doc>
  54004. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  54005. @param conf the {@link JobConf} to modify
  54006. @param style the {@link CompressionType} for the output
  54007. {@link SequenceFile}]]>
  54008. </doc>
  54009. </method>
  54010. <doc>
  54011. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  54012. </doc>
  54013. </class>
  54014. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  54015. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  54016. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  54017. abstract="false"
  54018. static="false" final="false" visibility="public"
  54019. deprecated="not deprecated">
  54020. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  54021. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  54022. static="false" final="false" visibility="public"
  54023. deprecated="not deprecated">
  54024. <exception name="IOException" type="java.io.IOException"/>
  54025. </constructor>
  54026. <method name="getKeyClass" return="java.lang.Class"
  54027. abstract="false" native="false" synchronized="false"
  54028. static="false" final="false" visibility="public"
  54029. deprecated="not deprecated">
  54030. <doc>
  54031. <![CDATA[The class of key that must be passed to {@link
  54032. #next(Object, Object)}..]]>
  54033. </doc>
  54034. </method>
  54035. <method name="getValueClass" return="java.lang.Class"
  54036. abstract="false" native="false" synchronized="false"
  54037. static="false" final="false" visibility="public"
  54038. deprecated="not deprecated">
  54039. <doc>
  54040. <![CDATA[The class of value that must be passed to {@link
  54041. #next(Object, Object)}..]]>
  54042. </doc>
  54043. </method>
  54044. <method name="createKey" return="java.lang.Object"
  54045. abstract="false" native="false" synchronized="false"
  54046. static="false" final="false" visibility="public"
  54047. deprecated="not deprecated">
  54048. </method>
  54049. <method name="createValue" return="java.lang.Object"
  54050. abstract="false" native="false" synchronized="false"
  54051. static="false" final="false" visibility="public"
  54052. deprecated="not deprecated">
  54053. </method>
  54054. <method name="next" return="boolean"
  54055. abstract="false" native="false" synchronized="true"
  54056. static="false" final="false" visibility="public"
  54057. deprecated="not deprecated">
  54058. <param name="key" type="java.lang.Object"/>
  54059. <param name="value" type="java.lang.Object"/>
  54060. <exception name="IOException" type="java.io.IOException"/>
  54061. </method>
  54062. <method name="next" return="boolean"
  54063. abstract="false" native="false" synchronized="true"
  54064. static="false" final="false" visibility="protected"
  54065. deprecated="not deprecated">
  54066. <param name="key" type="java.lang.Object"/>
  54067. <exception name="IOException" type="java.io.IOException"/>
  54068. </method>
  54069. <method name="getCurrentValue"
  54070. abstract="false" native="false" synchronized="true"
  54071. static="false" final="false" visibility="protected"
  54072. deprecated="not deprecated">
  54073. <param name="value" type="java.lang.Object"/>
  54074. <exception name="IOException" type="java.io.IOException"/>
  54075. </method>
  54076. <method name="getProgress" return="float"
  54077. abstract="false" native="false" synchronized="false"
  54078. static="false" final="false" visibility="public"
  54079. deprecated="not deprecated">
  54080. <exception name="IOException" type="java.io.IOException"/>
  54081. <doc>
  54082. <![CDATA[Return the progress within the input split
  54083. @return 0.0 to 1.0 of the input byte range]]>
  54084. </doc>
  54085. </method>
  54086. <method name="getPos" return="long"
  54087. abstract="false" native="false" synchronized="true"
  54088. static="false" final="false" visibility="public"
  54089. deprecated="not deprecated">
  54090. <exception name="IOException" type="java.io.IOException"/>
  54091. </method>
  54092. <method name="seek"
  54093. abstract="false" native="false" synchronized="true"
  54094. static="false" final="false" visibility="protected"
  54095. deprecated="not deprecated">
  54096. <param name="pos" type="long"/>
  54097. <exception name="IOException" type="java.io.IOException"/>
  54098. </method>
  54099. <method name="close"
  54100. abstract="false" native="false" synchronized="true"
  54101. static="false" final="false" visibility="public"
  54102. deprecated="not deprecated">
  54103. <exception name="IOException" type="java.io.IOException"/>
  54104. </method>
  54105. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  54106. transient="false" volatile="false"
  54107. static="false" final="false" visibility="protected"
  54108. deprecated="not deprecated">
  54109. </field>
  54110. <doc>
  54111. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  54112. </doc>
  54113. </class>
  54114. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  54115. <!-- start class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  54116. <class name="ShuffleExceptionTracker" extends="java.lang.Object"
  54117. abstract="false"
  54118. static="false" final="false" visibility="public"
  54119. deprecated="not deprecated">
  54120. <method name="getNumRequests" return="int"
  54121. abstract="false" native="false" synchronized="false"
  54122. static="false" final="false" visibility="public"
  54123. deprecated="not deprecated">
  54124. <doc>
  54125. <![CDATA[Gets the number of requests we are tracking
  54126. @return number of requests]]>
  54127. </doc>
  54128. </method>
  54129. <method name="getPercentExceptions" return="float"
  54130. abstract="false" native="false" synchronized="true"
  54131. static="false" final="false" visibility="public"
  54132. deprecated="not deprecated">
  54133. <doc>
  54134. <![CDATA[Gets the percent of the requests that had exceptions occur.
  54135. @return percent failures as float]]>
  54136. </doc>
  54137. </method>
  54138. <method name="success"
  54139. abstract="false" native="false" synchronized="true"
  54140. static="false" final="false" visibility="public"
  54141. deprecated="not deprecated">
  54142. <doc>
  54143. <![CDATA[Mark the request as success.]]>
  54144. </doc>
  54145. </method>
  54146. <method name="exception"
  54147. abstract="false" native="false" synchronized="true"
  54148. static="false" final="false" visibility="public"
  54149. deprecated="not deprecated">
  54150. <doc>
  54151. <![CDATA[Mark the request as an exception occurred.]]>
  54152. </doc>
  54153. </method>
  54154. <method name="checkException" return="boolean"
  54155. abstract="false" native="false" synchronized="false"
  54156. static="false" final="false" visibility="public"
  54157. deprecated="not deprecated">
  54158. <param name="ie" type="java.io.IOException"/>
  54159. <doc>
  54160. <![CDATA[Parse the exception to see if it matches the regular expression you
  54161. configured. If both msgRegex and StackRegex are set then make sure both
  54162. match, otherwise only one has to match. Abort if the limit is hit.
  54163. @param ie - the shuffle exception that occurred
  54164. @return true if the exception matches, false otherwise]]>
  54165. </doc>
  54166. </method>
  54167. <method name="doAbort"
  54168. abstract="false" native="false" synchronized="false"
  54169. static="false" final="false" visibility="protected"
  54170. deprecated="not deprecated">
  54171. </method>
  54172. <field name="LOG" type="org.apache.commons.logging.Log"
  54173. transient="false" volatile="false"
  54174. static="true" final="true" visibility="public"
  54175. deprecated="not deprecated">
  54176. </field>
  54177. <doc>
  54178. <![CDATA[This class is used to track shuffle exceptions. It contains routines
  54179. to check an exception that occurred while fetching the Map output to see if it
  54180. matches what was configured. It also provides functions to keep track of
  54181. the number of exceptions that occurred and if a limit is set, it will
  54182. abort the TT. The limit is a percent of exceptions of the last X number of
  54183. requests.]]>
  54184. </doc>
  54185. </class>
  54186. <!-- end class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  54187. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  54188. <class name="SkipBadRecords" extends="java.lang.Object"
  54189. abstract="false"
  54190. static="false" final="false" visibility="public"
  54191. deprecated="not deprecated">
  54192. <constructor name="SkipBadRecords"
  54193. static="false" final="false" visibility="public"
  54194. deprecated="not deprecated">
  54195. </constructor>
  54196. <method name="getAttemptsToStartSkipping" return="int"
  54197. abstract="false" native="false" synchronized="false"
  54198. static="true" final="false" visibility="public"
  54199. deprecated="not deprecated">
  54200. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54201. <doc>
  54202. <![CDATA[Get the number of Task attempts AFTER which skip mode
  54203. will be kicked off. When skip mode is kicked off, the
  54204. tasks reports the range of records which it will process
  54205. next to the TaskTracker. So that on failures, TT knows which
  54206. ones are possibly the bad records. On further executions,
  54207. those are skipped.
  54208. Default value is 2.
  54209. @param conf the configuration
  54210. @return attemptsToStartSkipping no of task attempts]]>
  54211. </doc>
  54212. </method>
  54213. <method name="setAttemptsToStartSkipping"
  54214. abstract="false" native="false" synchronized="false"
  54215. static="true" final="false" visibility="public"
  54216. deprecated="not deprecated">
  54217. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54218. <param name="attemptsToStartSkipping" type="int"/>
  54219. <doc>
  54220. <![CDATA[Set the number of Task attempts AFTER which skip mode
  54221. will be kicked off. When skip mode is kicked off, the
  54222. tasks reports the range of records which it will process
  54223. next to the TaskTracker. So that on failures, TT knows which
  54224. ones are possibly the bad records. On further executions,
  54225. those are skipped.
  54226. Default value is 2.
  54227. @param conf the configuration
  54228. @param attemptsToStartSkipping no of task attempts]]>
  54229. </doc>
  54230. </method>
  54231. <method name="getAutoIncrMapperProcCount" return="boolean"
  54232. abstract="false" native="false" synchronized="false"
  54233. static="true" final="false" visibility="public"
  54234. deprecated="not deprecated">
  54235. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54236. <doc>
  54237. <![CDATA[Get the flag which if set to true,
  54238. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  54239. by MapRunner after invoking the map function. This value must be set to
  54240. false for applications which process the records asynchronously
  54241. or buffer the input records. For example streaming.
  54242. In such cases applications should increment this counter on their own.
  54243. Default value is true.
  54244. @param conf the configuration
  54245. @return <code>true</code> if auto increment
  54246. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  54247. <code>false</code> otherwise.]]>
  54248. </doc>
  54249. </method>
  54250. <method name="setAutoIncrMapperProcCount"
  54251. abstract="false" native="false" synchronized="false"
  54252. static="true" final="false" visibility="public"
  54253. deprecated="not deprecated">
  54254. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54255. <param name="autoIncr" type="boolean"/>
  54256. <doc>
  54257. <![CDATA[Set the flag which if set to true,
  54258. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  54259. by MapRunner after invoking the map function. This value must be set to
  54260. false for applications which process the records asynchronously
  54261. or buffer the input records. For example streaming.
  54262. In such cases applications should increment this counter on their own.
  54263. Default value is true.
  54264. @param conf the configuration
  54265. @param autoIncr whether to auto increment
  54266. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  54267. </doc>
  54268. </method>
  54269. <method name="getAutoIncrReducerProcCount" return="boolean"
  54270. abstract="false" native="false" synchronized="false"
  54271. static="true" final="false" visibility="public"
  54272. deprecated="not deprecated">
  54273. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54274. <doc>
  54275. <![CDATA[Get the flag which if set to true,
  54276. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  54277. by framework after invoking the reduce function. This value must be set to
  54278. false for applications which process the records asynchronously
  54279. or buffer the input records. For example streaming.
  54280. In such cases applications should increment this counter on their own.
  54281. Default value is true.
  54282. @param conf the configuration
  54283. @return <code>true</code> if auto increment
  54284. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  54285. <code>false</code> otherwise.]]>
  54286. </doc>
  54287. </method>
  54288. <method name="setAutoIncrReducerProcCount"
  54289. abstract="false" native="false" synchronized="false"
  54290. static="true" final="false" visibility="public"
  54291. deprecated="not deprecated">
  54292. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54293. <param name="autoIncr" type="boolean"/>
  54294. <doc>
  54295. <![CDATA[Set the flag which if set to true,
  54296. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  54297. by framework after invoking the reduce function. This value must be set to
  54298. false for applications which process the records asynchronously
  54299. or buffer the input records. For example streaming.
  54300. In such cases applications should increment this counter on their own.
  54301. Default value is true.
  54302. @param conf the configuration
  54303. @param autoIncr whether to auto increment
  54304. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  54305. </doc>
  54306. </method>
  54307. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  54308. abstract="false" native="false" synchronized="false"
  54309. static="true" final="false" visibility="public"
  54310. deprecated="not deprecated">
  54311. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54312. <doc>
  54313. <![CDATA[Get the directory to which skipped records are written. By default it is
  54314. the sub directory of the output _logs directory.
  54315. User can stop writing skipped records by setting the value null.
  54316. @param conf the configuration.
  54317. @return path skip output directory. Null is returned if this is not set
  54318. and output directory is also not set.]]>
  54319. </doc>
  54320. </method>
  54321. <method name="setSkipOutputPath"
  54322. abstract="false" native="false" synchronized="false"
  54323. static="true" final="false" visibility="public"
  54324. deprecated="not deprecated">
  54325. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54326. <param name="path" type="org.apache.hadoop.fs.Path"/>
  54327. <doc>
  54328. <![CDATA[Set the directory to which skipped records are written. By default it is
  54329. the sub directory of the output _logs directory.
  54330. User can stop writing skipped records by setting the value null.
  54331. @param conf the configuration.
  54332. @param path skip output directory path]]>
  54333. </doc>
  54334. </method>
  54335. <method name="getMapperMaxSkipRecords" return="long"
  54336. abstract="false" native="false" synchronized="false"
  54337. static="true" final="false" visibility="public"
  54338. deprecated="not deprecated">
  54339. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54340. <doc>
  54341. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  54342. bad record in mapper. The number includes the bad record as well.
  54343. To turn the feature of detection/skipping of bad records off, set the
  54344. value to 0.
  54345. The framework tries to narrow down the skipped range by retrying
  54346. until this threshold is met OR all attempts get exhausted for this task.
  54347. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  54348. narrow down. Whatever records(depends on application) get skipped are
  54349. acceptable.
  54350. Default value is 0.
  54351. @param conf the configuration
  54352. @return maxSkipRecs acceptable skip records.]]>
  54353. </doc>
  54354. </method>
  54355. <method name="setMapperMaxSkipRecords"
  54356. abstract="false" native="false" synchronized="false"
  54357. static="true" final="false" visibility="public"
  54358. deprecated="not deprecated">
  54359. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54360. <param name="maxSkipRecs" type="long"/>
  54361. <doc>
  54362. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  54363. bad record in mapper. The number includes the bad record as well.
  54364. To turn the feature of detection/skipping of bad records off, set the
  54365. value to 0.
  54366. The framework tries to narrow down the skipped range by retrying
  54367. until this threshold is met OR all attempts get exhausted for this task.
  54368. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  54369. narrow down. Whatever records(depends on application) get skipped are
  54370. acceptable.
  54371. Default value is 0.
  54372. @param conf the configuration
  54373. @param maxSkipRecs acceptable skip records.]]>
  54374. </doc>
  54375. </method>
  54376. <method name="getReducerMaxSkipGroups" return="long"
  54377. abstract="false" native="false" synchronized="false"
  54378. static="true" final="false" visibility="public"
  54379. deprecated="not deprecated">
  54380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54381. <doc>
  54382. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  54383. bad group in reducer. The number includes the bad group as well.
  54384. To turn the feature of detection/skipping of bad groups off, set the
  54385. value to 0.
  54386. The framework tries to narrow down the skipped range by retrying
  54387. until this threshold is met OR all attempts get exhausted for this task.
  54388. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  54389. narrow down. Whatever groups(depends on application) get skipped are
  54390. acceptable.
  54391. Default value is 0.
  54392. @param conf the configuration
  54393. @return maxSkipGrps acceptable skip groups.]]>
  54394. </doc>
  54395. </method>
  54396. <method name="setReducerMaxSkipGroups"
  54397. abstract="false" native="false" synchronized="false"
  54398. static="true" final="false" visibility="public"
  54399. deprecated="not deprecated">
  54400. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54401. <param name="maxSkipGrps" type="long"/>
  54402. <doc>
  54403. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  54404. bad group in reducer. The number includes the bad group as well.
  54405. To turn the feature of detection/skipping of bad groups off, set the
  54406. value to 0.
  54407. The framework tries to narrow down the skipped range by retrying
  54408. until this threshold is met OR all attempts get exhausted for this task.
  54409. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  54410. narrow down. Whatever groups(depends on application) get skipped are
  54411. acceptable.
  54412. Default value is 0.
  54413. @param conf the configuration
  54414. @param maxSkipGrps acceptable skip groups.]]>
  54415. </doc>
  54416. </method>
  54417. <field name="COUNTER_GROUP" type="java.lang.String"
  54418. transient="false" volatile="false"
  54419. static="true" final="true" visibility="public"
  54420. deprecated="not deprecated">
  54421. <doc>
  54422. <![CDATA[Special counters which are written by the application and are
  54423. used by the framework for detecting bad records. For detecting bad records
  54424. these counters must be incremented by the application.]]>
  54425. </doc>
  54426. </field>
  54427. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  54428. transient="false" volatile="false"
  54429. static="true" final="true" visibility="public"
  54430. deprecated="not deprecated">
  54431. <doc>
  54432. <![CDATA[Number of processed map records.
  54433. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  54434. </doc>
  54435. </field>
  54436. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  54437. transient="false" volatile="false"
  54438. static="true" final="true" visibility="public"
  54439. deprecated="not deprecated">
  54440. <doc>
  54441. <![CDATA[Number of processed reduce groups.
  54442. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  54443. </doc>
  54444. </field>
  54445. <doc>
  54446. <![CDATA[Utility class for skip bad records functionality. It contains various
  54447. settings related to skipping of bad records.
  54448. <p>Hadoop provides an optional mode of execution in which the bad records
  54449. are detected and skipped in further attempts.
  54450. <p>This feature can be used when map/reduce tasks crashes deterministically on
  54451. certain input. This happens due to bugs in the map/reduce function. The usual
  54452. course would be to fix these bugs. But sometimes this is not possible;
  54453. perhaps the bug is in third party libraries for which the source code is
  54454. not available. Due to this, the task never reaches to completion even with
  54455. multiple attempts and complete data for that task is lost.</p>
  54456. <p>With this feature, only a small portion of data is lost surrounding
  54457. the bad record, which may be acceptable for some user applications.
  54458. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  54459. <p>The skipping mode gets kicked off after certain no of failures
  54460. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  54461. <p>In the skipping mode, the map/reduce task maintains the record range which
  54462. is getting processed at all times. Before giving the input to the
  54463. map/reduce function, it sends this record range to the Task tracker.
  54464. If task crashes, the Task tracker knows which one was the last reported
  54465. range. On further attempts that range get skipped.</p>]]>
  54466. </doc>
  54467. </class>
  54468. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  54469. <!-- start class org.apache.hadoop.mapred.Task -->
  54470. <class name="Task" extends="java.lang.Object"
  54471. abstract="true"
  54472. static="false" final="false" visibility="public"
  54473. deprecated="not deprecated">
  54474. <implements name="org.apache.hadoop.io.Writable"/>
  54475. <implements name="org.apache.hadoop.conf.Configurable"/>
  54476. <constructor name="Task"
  54477. static="false" final="false" visibility="public"
  54478. deprecated="not deprecated">
  54479. </constructor>
  54480. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  54481. static="false" final="false" visibility="public"
  54482. deprecated="not deprecated">
  54483. </constructor>
  54484. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  54485. abstract="false" native="false" synchronized="false"
  54486. static="true" final="false" visibility="protected"
  54487. deprecated="not deprecated">
  54488. <param name="uriScheme" type="java.lang.String"/>
  54489. <doc>
  54490. <![CDATA[Counters to measure the usage of the different file systems.
  54491. Always return the String array with two elements. First one is the name of
  54492. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  54493. </doc>
  54494. </method>
  54495. <method name="setJobFile"
  54496. abstract="false" native="false" synchronized="false"
  54497. static="false" final="false" visibility="public"
  54498. deprecated="not deprecated">
  54499. <param name="jobFile" type="java.lang.String"/>
  54500. </method>
  54501. <method name="getJobFile" return="java.lang.String"
  54502. abstract="false" native="false" synchronized="false"
  54503. static="false" final="false" visibility="public"
  54504. deprecated="not deprecated">
  54505. </method>
  54506. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  54507. abstract="false" native="false" synchronized="false"
  54508. static="false" final="false" visibility="public"
  54509. deprecated="not deprecated">
  54510. </method>
  54511. <method name="getNumSlotsRequired" return="int"
  54512. abstract="false" native="false" synchronized="false"
  54513. static="false" final="false" visibility="public"
  54514. deprecated="not deprecated">
  54515. </method>
  54516. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  54517. abstract="false" native="false" synchronized="false"
  54518. static="false" final="false" visibility="public"
  54519. deprecated="not deprecated">
  54520. <doc>
  54521. <![CDATA[Get the job name for this task.
  54522. @return the job name]]>
  54523. </doc>
  54524. </method>
  54525. <method name="setJobTokenSecret"
  54526. abstract="false" native="false" synchronized="false"
  54527. static="false" final="false" visibility="public"
  54528. deprecated="not deprecated">
  54529. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  54530. <doc>
  54531. <![CDATA[Set the job token secret
  54532. @param tokenSecret the secret]]>
  54533. </doc>
  54534. </method>
  54535. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  54536. abstract="false" native="false" synchronized="false"
  54537. static="false" final="false" visibility="public"
  54538. deprecated="not deprecated">
  54539. <doc>
  54540. <![CDATA[Get the job token secret
  54541. @return the token secret]]>
  54542. </doc>
  54543. </method>
  54544. <method name="setJvmContext"
  54545. abstract="false" native="false" synchronized="false"
  54546. static="false" final="false" visibility="public"
  54547. deprecated="not deprecated">
  54548. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  54549. <doc>
  54550. <![CDATA[Set the task JvmContext
  54551. @param jvmContext]]>
  54552. </doc>
  54553. </method>
  54554. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  54555. abstract="false" native="false" synchronized="false"
  54556. static="false" final="false" visibility="public"
  54557. deprecated="not deprecated">
  54558. <doc>
  54559. <![CDATA[Gets the task JvmContext
  54560. @return the jvm context]]>
  54561. </doc>
  54562. </method>
  54563. <method name="getPartition" return="int"
  54564. abstract="false" native="false" synchronized="false"
  54565. static="false" final="false" visibility="public"
  54566. deprecated="not deprecated">
  54567. <doc>
  54568. <![CDATA[Get the index of this task within the job.
  54569. @return the integer part of the task id]]>
  54570. </doc>
  54571. </method>
  54572. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  54573. abstract="false" native="false" synchronized="true"
  54574. static="false" final="false" visibility="public"
  54575. deprecated="not deprecated">
  54576. <doc>
  54577. <![CDATA[Return current phase of the task.
  54578. needs to be synchronized as communication thread sends the phase every second
  54579. @return the curent phase of the task]]>
  54580. </doc>
  54581. </method>
  54582. <method name="setPhase"
  54583. abstract="false" native="false" synchronized="true"
  54584. static="false" final="false" visibility="protected"
  54585. deprecated="not deprecated">
  54586. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  54587. <doc>
  54588. <![CDATA[Set current phase of the task.
  54589. @param phase task phase]]>
  54590. </doc>
  54591. </method>
  54592. <method name="toWriteSkipRecs" return="boolean"
  54593. abstract="false" native="false" synchronized="false"
  54594. static="false" final="false" visibility="protected"
  54595. deprecated="not deprecated">
  54596. <doc>
  54597. <![CDATA[Get whether to write skip records.]]>
  54598. </doc>
  54599. </method>
  54600. <method name="setWriteSkipRecs"
  54601. abstract="false" native="false" synchronized="false"
  54602. static="false" final="false" visibility="protected"
  54603. deprecated="not deprecated">
  54604. <param name="writeSkipRecs" type="boolean"/>
  54605. <doc>
  54606. <![CDATA[Set whether to write skip records.]]>
  54607. </doc>
  54608. </method>
  54609. <method name="reportFatalError"
  54610. abstract="false" native="false" synchronized="false"
  54611. static="false" final="false" visibility="protected"
  54612. deprecated="not deprecated">
  54613. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54614. <param name="throwable" type="java.lang.Throwable"/>
  54615. <param name="logMsg" type="java.lang.String"/>
  54616. <doc>
  54617. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  54618. </doc>
  54619. </method>
  54620. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  54621. abstract="false" native="false" synchronized="false"
  54622. static="false" final="false" visibility="public"
  54623. deprecated="not deprecated">
  54624. <doc>
  54625. <![CDATA[Get skipRanges.]]>
  54626. </doc>
  54627. </method>
  54628. <method name="setSkipRanges"
  54629. abstract="false" native="false" synchronized="false"
  54630. static="false" final="false" visibility="public"
  54631. deprecated="not deprecated">
  54632. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  54633. <doc>
  54634. <![CDATA[Set skipRanges.]]>
  54635. </doc>
  54636. </method>
  54637. <method name="isSkipping" return="boolean"
  54638. abstract="false" native="false" synchronized="false"
  54639. static="false" final="false" visibility="public"
  54640. deprecated="not deprecated">
  54641. <doc>
  54642. <![CDATA[Is Task in skipping mode.]]>
  54643. </doc>
  54644. </method>
  54645. <method name="setSkipping"
  54646. abstract="false" native="false" synchronized="false"
  54647. static="false" final="false" visibility="public"
  54648. deprecated="not deprecated">
  54649. <param name="skipping" type="boolean"/>
  54650. <doc>
  54651. <![CDATA[Sets whether to run Task in skipping mode.
  54652. @param skipping]]>
  54653. </doc>
  54654. </method>
  54655. <method name="getUser" return="java.lang.String"
  54656. abstract="false" native="false" synchronized="false"
  54657. static="false" final="false" visibility="public"
  54658. deprecated="not deprecated">
  54659. <doc>
  54660. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  54661. user name even before it's JobConf is localized. So we explicitly serialize
  54662. the user name.
  54663. @return user]]>
  54664. </doc>
  54665. </method>
  54666. <method name="write"
  54667. abstract="false" native="false" synchronized="false"
  54668. static="false" final="false" visibility="public"
  54669. deprecated="not deprecated">
  54670. <param name="out" type="java.io.DataOutput"/>
  54671. <exception name="IOException" type="java.io.IOException"/>
  54672. </method>
  54673. <method name="readFields"
  54674. abstract="false" native="false" synchronized="false"
  54675. static="false" final="false" visibility="public"
  54676. deprecated="not deprecated">
  54677. <param name="in" type="java.io.DataInput"/>
  54678. <exception name="IOException" type="java.io.IOException"/>
  54679. </method>
  54680. <method name="toString" return="java.lang.String"
  54681. abstract="false" native="false" synchronized="false"
  54682. static="false" final="false" visibility="public"
  54683. deprecated="not deprecated">
  54684. </method>
  54685. <method name="localizeConfiguration"
  54686. abstract="false" native="false" synchronized="false"
  54687. static="false" final="false" visibility="public"
  54688. deprecated="not deprecated">
  54689. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54690. <exception name="IOException" type="java.io.IOException"/>
  54691. <doc>
  54692. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  54693. </doc>
  54694. </method>
  54695. <method name="run"
  54696. abstract="true" native="false" synchronized="false"
  54697. static="false" final="false" visibility="public"
  54698. deprecated="not deprecated">
  54699. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54700. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54701. <exception name="IOException" type="java.io.IOException"/>
  54702. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54703. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54704. <doc>
  54705. <![CDATA[Run this task as a part of the named job. This method is executed in the
  54706. child process and is what invokes user-supplied map, reduce, etc. methods.
  54707. @param umbilical for progress reports]]>
  54708. </doc>
  54709. </method>
  54710. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  54711. abstract="true" native="false" synchronized="false"
  54712. static="false" final="false" visibility="public"
  54713. deprecated="not deprecated">
  54714. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  54715. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  54716. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  54717. <exception name="IOException" type="java.io.IOException"/>
  54718. <doc>
  54719. <![CDATA[Return an approprate thread runner for this task.
  54720. @param tip TODO]]>
  54721. </doc>
  54722. </method>
  54723. <method name="isMapTask" return="boolean"
  54724. abstract="true" native="false" synchronized="false"
  54725. static="false" final="false" visibility="public"
  54726. deprecated="not deprecated">
  54727. </method>
  54728. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  54729. abstract="false" native="false" synchronized="false"
  54730. static="false" final="false" visibility="public"
  54731. deprecated="not deprecated">
  54732. </method>
  54733. <method name="initialize"
  54734. abstract="false" native="false" synchronized="false"
  54735. static="false" final="false" visibility="public"
  54736. deprecated="not deprecated">
  54737. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54738. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54739. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54740. <param name="useNewApi" type="boolean"/>
  54741. <exception name="IOException" type="java.io.IOException"/>
  54742. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54743. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54744. </method>
  54745. <method name="reportNextRecordRange"
  54746. abstract="false" native="false" synchronized="false"
  54747. static="false" final="false" visibility="protected"
  54748. deprecated="not deprecated">
  54749. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54750. <param name="nextRecIndex" type="long"/>
  54751. <exception name="IOException" type="java.io.IOException"/>
  54752. <doc>
  54753. <![CDATA[Reports the next executing record range to TaskTracker.
  54754. @param umbilical
  54755. @param nextRecIndex the record index which would be fed next.
  54756. @throws IOException]]>
  54757. </doc>
  54758. </method>
  54759. <method name="done"
  54760. abstract="false" native="false" synchronized="false"
  54761. static="false" final="false" visibility="public"
  54762. deprecated="not deprecated">
  54763. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54764. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54765. <exception name="IOException" type="java.io.IOException"/>
  54766. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54767. </method>
  54768. <method name="statusUpdate"
  54769. abstract="false" native="false" synchronized="false"
  54770. static="false" final="false" visibility="protected"
  54771. deprecated="not deprecated">
  54772. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54773. <exception name="IOException" type="java.io.IOException"/>
  54774. </method>
  54775. <method name="runTaskCleanupTask"
  54776. abstract="false" native="false" synchronized="false"
  54777. static="false" final="false" visibility="protected"
  54778. deprecated="not deprecated">
  54779. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54780. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54781. <exception name="IOException" type="java.io.IOException"/>
  54782. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54783. </method>
  54784. <method name="runJobCleanupTask"
  54785. abstract="false" native="false" synchronized="false"
  54786. static="false" final="false" visibility="protected"
  54787. deprecated="not deprecated">
  54788. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54789. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54790. <exception name="IOException" type="java.io.IOException"/>
  54791. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54792. </method>
  54793. <method name="supportIsolationRunner" return="boolean"
  54794. abstract="false" native="false" synchronized="false"
  54795. static="false" final="false" visibility="protected"
  54796. deprecated="not deprecated">
  54797. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54798. </method>
  54799. <method name="runJobSetupTask"
  54800. abstract="false" native="false" synchronized="false"
  54801. static="false" final="false" visibility="protected"
  54802. deprecated="not deprecated">
  54803. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54804. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54805. <exception name="IOException" type="java.io.IOException"/>
  54806. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54807. </method>
  54808. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  54809. abstract="false" native="false" synchronized="false"
  54810. static="true" final="false" visibility="protected"
  54811. deprecated="not deprecated">
  54812. <param name="path" type="org.apache.hadoop.fs.Path"/>
  54813. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54814. <exception name="IOException" type="java.io.IOException"/>
  54815. <doc>
  54816. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  54817. with path.
  54818. @param path
  54819. the path.
  54820. @return a Statistics instance, or null if none is found for the scheme.]]>
  54821. </doc>
  54822. </method>
  54823. <method name="setConf"
  54824. abstract="false" native="false" synchronized="false"
  54825. static="false" final="false" visibility="public"
  54826. deprecated="not deprecated">
  54827. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54828. </method>
  54829. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  54830. abstract="false" native="false" synchronized="false"
  54831. static="false" final="false" visibility="public"
  54832. deprecated="not deprecated">
  54833. </method>
  54834. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  54835. abstract="false" native="false" synchronized="false"
  54836. static="true" final="false" visibility="protected"
  54837. deprecated="not deprecated">
  54838. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  54839. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  54840. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  54841. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  54842. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54843. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54844. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  54845. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  54846. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  54847. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  54848. <param name="keyClass" type="java.lang.Class"/>
  54849. <param name="valueClass" type="java.lang.Class"/>
  54850. <exception name="IOException" type="java.io.IOException"/>
  54851. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54852. </method>
  54853. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  54854. transient="false" volatile="false"
  54855. static="true" final="true" visibility="public"
  54856. deprecated="not deprecated">
  54857. </field>
  54858. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  54859. transient="false" volatile="false"
  54860. static="true" final="true" visibility="public"
  54861. deprecated="not deprecated">
  54862. </field>
  54863. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  54864. transient="false" volatile="false"
  54865. static="true" final="true" visibility="protected"
  54866. deprecated="not deprecated">
  54867. <doc>
  54868. <![CDATA[Name of the FileSystem counters' group]]>
  54869. </doc>
  54870. </field>
  54871. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  54872. transient="false" volatile="false"
  54873. static="false" final="false" visibility="protected"
  54874. deprecated="not deprecated">
  54875. </field>
  54876. <field name="jobCleanup" type="boolean"
  54877. transient="false" volatile="false"
  54878. static="false" final="false" visibility="protected"
  54879. deprecated="not deprecated">
  54880. </field>
  54881. <field name="jobSetup" type="boolean"
  54882. transient="false" volatile="false"
  54883. static="false" final="false" visibility="protected"
  54884. deprecated="not deprecated">
  54885. </field>
  54886. <field name="taskCleanup" type="boolean"
  54887. transient="false" volatile="false"
  54888. static="false" final="false" visibility="protected"
  54889. deprecated="not deprecated">
  54890. </field>
  54891. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  54892. transient="false" volatile="false"
  54893. static="false" final="false" visibility="protected"
  54894. deprecated="not deprecated">
  54895. </field>
  54896. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  54897. transient="false" volatile="false"
  54898. static="false" final="false" visibility="protected"
  54899. deprecated="not deprecated">
  54900. </field>
  54901. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  54902. transient="false" volatile="false"
  54903. static="false" final="false" visibility="protected"
  54904. deprecated="not deprecated">
  54905. </field>
  54906. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  54907. transient="false" volatile="false"
  54908. static="false" final="false" visibility="protected"
  54909. deprecated="not deprecated">
  54910. </field>
  54911. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  54912. transient="false" volatile="false"
  54913. static="false" final="false" visibility="protected"
  54914. deprecated="not deprecated">
  54915. </field>
  54916. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  54917. transient="false" volatile="false"
  54918. static="false" final="false" visibility="protected"
  54919. deprecated="not deprecated">
  54920. </field>
  54921. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  54922. transient="false" volatile="false"
  54923. static="false" final="false" visibility="protected"
  54924. deprecated="not deprecated">
  54925. </field>
  54926. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54927. transient="false" volatile="false"
  54928. static="false" final="true" visibility="protected"
  54929. deprecated="not deprecated">
  54930. </field>
  54931. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  54932. transient="false" volatile="false"
  54933. static="false" final="false" visibility="protected"
  54934. deprecated="not deprecated">
  54935. </field>
  54936. <field name="tokenSecret" type="javax.crypto.SecretKey"
  54937. transient="false" volatile="false"
  54938. static="false" final="false" visibility="protected"
  54939. deprecated="not deprecated">
  54940. </field>
  54941. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  54942. transient="false" volatile="false"
  54943. static="false" final="false" visibility="protected"
  54944. deprecated="not deprecated">
  54945. </field>
  54946. <field name="PROGRESS_INTERVAL" type="int"
  54947. transient="false" volatile="false"
  54948. static="true" final="true" visibility="public"
  54949. deprecated="not deprecated">
  54950. <doc>
  54951. <![CDATA[The number of milliseconds between progress reports.]]>
  54952. </doc>
  54953. </field>
  54954. <doc>
  54955. <![CDATA[Base class for tasks.
  54956. This is NOT a public interface.]]>
  54957. </doc>
  54958. </class>
  54959. <!-- end class org.apache.hadoop.mapred.Task -->
  54960. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54961. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  54962. abstract="false"
  54963. static="true" final="false" visibility="protected"
  54964. deprecated="not deprecated">
  54965. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  54966. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  54967. static="false" final="false" visibility="public"
  54968. deprecated="not deprecated">
  54969. </constructor>
  54970. <method name="setWriter"
  54971. abstract="false" native="false" synchronized="true"
  54972. static="false" final="false" visibility="public"
  54973. deprecated="not deprecated">
  54974. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  54975. </method>
  54976. <method name="collect"
  54977. abstract="false" native="false" synchronized="true"
  54978. static="false" final="false" visibility="public"
  54979. deprecated="not deprecated">
  54980. <param name="key" type="java.lang.Object"/>
  54981. <param name="value" type="java.lang.Object"/>
  54982. <exception name="IOException" type="java.io.IOException"/>
  54983. </method>
  54984. <doc>
  54985. <![CDATA[OutputCollector for the combiner.]]>
  54986. </doc>
  54987. </class>
  54988. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54989. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  54990. <class name="Task.CombinerRunner" extends="java.lang.Object"
  54991. abstract="true"
  54992. static="true" final="false" visibility="protected"
  54993. deprecated="not deprecated">
  54994. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54995. transient="false" volatile="false"
  54996. static="false" final="true" visibility="protected"
  54997. deprecated="not deprecated">
  54998. </field>
  54999. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  55000. transient="false" volatile="false"
  55001. static="false" final="true" visibility="protected"
  55002. deprecated="not deprecated">
  55003. </field>
  55004. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  55005. transient="false" volatile="false"
  55006. static="false" final="true" visibility="protected"
  55007. deprecated="not deprecated">
  55008. </field>
  55009. </class>
  55010. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  55011. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  55012. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  55013. abstract="false"
  55014. static="true" final="false" visibility="protected"
  55015. deprecated="not deprecated">
  55016. <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"
  55017. static="false" final="false" visibility="public"
  55018. deprecated="not deprecated">
  55019. <exception name="IOException" type="java.io.IOException"/>
  55020. </constructor>
  55021. <method name="next" return="java.lang.Object"
  55022. abstract="false" native="false" synchronized="false"
  55023. static="false" final="false" visibility="public"
  55024. deprecated="not deprecated">
  55025. </method>
  55026. </class>
  55027. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  55028. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  55029. <class name="Task.Counter" extends="java.lang.Enum"
  55030. abstract="false"
  55031. static="true" final="true" visibility="public"
  55032. deprecated="not deprecated">
  55033. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  55034. abstract="false" native="false" synchronized="false"
  55035. static="true" final="false" visibility="public"
  55036. deprecated="not deprecated">
  55037. </method>
  55038. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  55039. abstract="false" native="false" synchronized="false"
  55040. static="true" final="false" visibility="public"
  55041. deprecated="not deprecated">
  55042. <param name="name" type="java.lang.String"/>
  55043. </method>
  55044. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55045. transient="false" volatile="false"
  55046. static="true" final="true" visibility="public"
  55047. deprecated="not deprecated">
  55048. </field>
  55049. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55050. transient="false" volatile="false"
  55051. static="true" final="true" visibility="public"
  55052. deprecated="not deprecated">
  55053. </field>
  55054. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55055. transient="false" volatile="false"
  55056. static="true" final="true" visibility="public"
  55057. deprecated="not deprecated">
  55058. </field>
  55059. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55060. transient="false" volatile="false"
  55061. static="true" final="true" visibility="public"
  55062. deprecated="not deprecated">
  55063. </field>
  55064. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55065. transient="false" volatile="false"
  55066. static="true" final="true" visibility="public"
  55067. deprecated="not deprecated">
  55068. </field>
  55069. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55070. transient="false" volatile="false"
  55071. static="true" final="true" visibility="public"
  55072. deprecated="not deprecated">
  55073. </field>
  55074. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55075. transient="false" volatile="false"
  55076. static="true" final="true" visibility="public"
  55077. deprecated="not deprecated">
  55078. </field>
  55079. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55080. transient="false" volatile="false"
  55081. static="true" final="true" visibility="public"
  55082. deprecated="not deprecated">
  55083. </field>
  55084. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  55085. transient="false" volatile="false"
  55086. static="true" final="true" visibility="public"
  55087. deprecated="not deprecated">
  55088. </field>
  55089. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55090. transient="false" volatile="false"
  55091. static="true" final="true" visibility="public"
  55092. deprecated="not deprecated">
  55093. </field>
  55094. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55095. transient="false" volatile="false"
  55096. static="true" final="true" visibility="public"
  55097. deprecated="not deprecated">
  55098. </field>
  55099. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55100. transient="false" volatile="false"
  55101. static="true" final="true" visibility="public"
  55102. deprecated="not deprecated">
  55103. </field>
  55104. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  55105. transient="false" volatile="false"
  55106. static="true" final="true" visibility="public"
  55107. deprecated="not deprecated">
  55108. </field>
  55109. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55110. transient="false" volatile="false"
  55111. static="true" final="true" visibility="public"
  55112. deprecated="not deprecated">
  55113. </field>
  55114. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  55115. transient="false" volatile="false"
  55116. static="true" final="true" visibility="public"
  55117. deprecated="not deprecated">
  55118. </field>
  55119. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55120. transient="false" volatile="false"
  55121. static="true" final="true" visibility="public"
  55122. deprecated="not deprecated">
  55123. </field>
  55124. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  55125. transient="false" volatile="false"
  55126. static="true" final="true" visibility="public"
  55127. deprecated="not deprecated">
  55128. </field>
  55129. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55130. transient="false" volatile="false"
  55131. static="true" final="true" visibility="public"
  55132. deprecated="not deprecated">
  55133. </field>
  55134. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55135. transient="false" volatile="false"
  55136. static="true" final="true" visibility="public"
  55137. deprecated="not deprecated">
  55138. </field>
  55139. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  55140. transient="false" volatile="false"
  55141. static="true" final="true" visibility="public"
  55142. deprecated="not deprecated">
  55143. </field>
  55144. </class>
  55145. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  55146. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  55147. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  55148. abstract="false"
  55149. static="true" final="false" visibility="protected"
  55150. deprecated="not deprecated">
  55151. </class>
  55152. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  55153. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  55154. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  55155. abstract="false"
  55156. static="true" final="false" visibility="protected"
  55157. deprecated="not deprecated">
  55158. <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"
  55159. static="false" final="false" visibility="protected"
  55160. deprecated="not deprecated">
  55161. </constructor>
  55162. <method name="combine"
  55163. abstract="false" native="false" synchronized="false"
  55164. static="false" final="false" visibility="protected"
  55165. deprecated="not deprecated">
  55166. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  55167. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  55168. <exception name="IOException" type="java.io.IOException"/>
  55169. </method>
  55170. </class>
  55171. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  55172. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  55173. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  55174. abstract="false"
  55175. static="false" final="false" visibility="protected"
  55176. deprecated="not deprecated">
  55177. <implements name="java.lang.Runnable"/>
  55178. <implements name="org.apache.hadoop.mapred.Reporter"/>
  55179. <method name="setStatus"
  55180. abstract="false" native="false" synchronized="false"
  55181. static="false" final="false" visibility="public"
  55182. deprecated="not deprecated">
  55183. <param name="status" type="java.lang.String"/>
  55184. </method>
  55185. <method name="setProgress"
  55186. abstract="false" native="false" synchronized="false"
  55187. static="false" final="false" visibility="public"
  55188. deprecated="not deprecated">
  55189. <param name="progress" type="float"/>
  55190. </method>
  55191. <method name="progress"
  55192. abstract="false" native="false" synchronized="false"
  55193. static="false" final="false" visibility="public"
  55194. deprecated="not deprecated">
  55195. </method>
  55196. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  55197. abstract="false" native="false" synchronized="false"
  55198. static="false" final="false" visibility="public"
  55199. deprecated="not deprecated">
  55200. <param name="group" type="java.lang.String"/>
  55201. <param name="name" type="java.lang.String"/>
  55202. </method>
  55203. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  55204. abstract="false" native="false" synchronized="false"
  55205. static="false" final="false" visibility="public"
  55206. deprecated="not deprecated">
  55207. <param name="name" type="java.lang.Enum"/>
  55208. </method>
  55209. <method name="incrCounter"
  55210. abstract="false" native="false" synchronized="false"
  55211. static="false" final="false" visibility="public"
  55212. deprecated="not deprecated">
  55213. <param name="key" type="java.lang.Enum"/>
  55214. <param name="amount" type="long"/>
  55215. </method>
  55216. <method name="incrCounter"
  55217. abstract="false" native="false" synchronized="false"
  55218. static="false" final="false" visibility="public"
  55219. deprecated="not deprecated">
  55220. <param name="group" type="java.lang.String"/>
  55221. <param name="counter" type="java.lang.String"/>
  55222. <param name="amount" type="long"/>
  55223. </method>
  55224. <method name="setInputSplit"
  55225. abstract="false" native="false" synchronized="false"
  55226. static="false" final="false" visibility="public"
  55227. deprecated="not deprecated">
  55228. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  55229. </method>
  55230. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  55231. abstract="false" native="false" synchronized="false"
  55232. static="false" final="false" visibility="public"
  55233. deprecated="not deprecated">
  55234. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  55235. </method>
  55236. <method name="run"
  55237. abstract="false" native="false" synchronized="false"
  55238. static="false" final="false" visibility="public"
  55239. deprecated="not deprecated">
  55240. <doc>
  55241. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  55242. It sends progress updates if progress has been made or if the task needs to
  55243. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  55244. </doc>
  55245. </method>
  55246. <method name="startCommunicationThread"
  55247. abstract="false" native="false" synchronized="false"
  55248. static="false" final="false" visibility="public"
  55249. deprecated="not deprecated">
  55250. </method>
  55251. <method name="stopCommunicationThread"
  55252. abstract="false" native="false" synchronized="false"
  55253. static="false" final="false" visibility="public"
  55254. deprecated="not deprecated">
  55255. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55256. </method>
  55257. </class>
  55258. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  55259. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  55260. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  55261. abstract="false"
  55262. static="false" final="false" visibility="public"
  55263. deprecated="not deprecated">
  55264. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  55265. abstract="false" native="false" synchronized="false"
  55266. static="false" final="false" visibility="public"
  55267. deprecated="not deprecated">
  55268. <doc>
  55269. <![CDATA[Get the taskAttemptID.
  55270. @return TaskAttemptID]]>
  55271. </doc>
  55272. </method>
  55273. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  55274. abstract="false" native="false" synchronized="false"
  55275. static="false" final="false" visibility="public"
  55276. deprecated="not deprecated">
  55277. </method>
  55278. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  55279. abstract="false" native="false" synchronized="false"
  55280. static="false" final="false" visibility="public"
  55281. deprecated="not deprecated">
  55282. </method>
  55283. <method name="progress"
  55284. abstract="false" native="false" synchronized="false"
  55285. static="false" final="false" visibility="public"
  55286. deprecated="not deprecated">
  55287. </method>
  55288. </class>
  55289. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  55290. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  55291. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  55292. abstract="false"
  55293. static="false" final="false" visibility="public"
  55294. deprecated="not deprecated">
  55295. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  55296. static="false" final="false" visibility="public"
  55297. deprecated="not deprecated">
  55298. <doc>
  55299. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  55300. @param taskId TaskID that this task belongs to
  55301. @param id the task attempt number]]>
  55302. </doc>
  55303. </constructor>
  55304. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  55305. static="false" final="false" visibility="public"
  55306. deprecated="not deprecated">
  55307. <doc>
  55308. <![CDATA[Constructs a TaskId object from given parts.
  55309. @param jtIdentifier jobTracker identifier
  55310. @param jobId job number
  55311. @param isMap whether the tip is a map
  55312. @param taskId taskId number
  55313. @param id the task attempt number]]>
  55314. </doc>
  55315. </constructor>
  55316. <constructor name="TaskAttemptID"
  55317. static="false" final="false" visibility="public"
  55318. deprecated="not deprecated">
  55319. </constructor>
  55320. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  55321. abstract="false" native="false" synchronized="false"
  55322. static="true" final="false" visibility="public"
  55323. deprecated="not deprecated">
  55324. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  55325. <doc>
  55326. <![CDATA[Downgrade a new TaskAttemptID to an old one
  55327. @param old the new id
  55328. @return either old or a new TaskAttemptID constructed to match old]]>
  55329. </doc>
  55330. </method>
  55331. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  55332. abstract="false" native="false" synchronized="false"
  55333. static="false" final="false" visibility="public"
  55334. deprecated="not deprecated">
  55335. </method>
  55336. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55337. abstract="false" native="false" synchronized="false"
  55338. static="false" final="false" visibility="public"
  55339. deprecated="not deprecated">
  55340. </method>
  55341. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  55342. abstract="false" native="false" synchronized="false"
  55343. static="true" final="false" visibility="public"
  55344. deprecated="not deprecated">
  55345. <param name="in" type="java.io.DataInput"/>
  55346. <exception name="IOException" type="java.io.IOException"/>
  55347. </method>
  55348. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  55349. abstract="false" native="false" synchronized="false"
  55350. static="true" final="false" visibility="public"
  55351. deprecated="not deprecated">
  55352. <param name="str" type="java.lang.String"/>
  55353. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  55354. <doc>
  55355. <![CDATA[Construct a TaskAttemptID object from given string
  55356. @return constructed TaskAttemptID object or null if the given String is null
  55357. @throws IllegalArgumentException if the given string is malformed]]>
  55358. </doc>
  55359. </method>
  55360. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  55361. abstract="false" native="false" synchronized="false"
  55362. static="true" final="false" visibility="public"
  55363. deprecated="not deprecated">
  55364. <param name="jtIdentifier" type="java.lang.String"/>
  55365. <param name="jobId" type="java.lang.Integer"/>
  55366. <param name="isMap" type="java.lang.Boolean"/>
  55367. <param name="taskId" type="java.lang.Integer"/>
  55368. <param name="attemptId" type="java.lang.Integer"/>
  55369. <doc>
  55370. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  55371. be given null, in which case that part of the regex will be generic.
  55372. For example to obtain a regex matching <i>all task attempt IDs</i>
  55373. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  55374. map task</i>, we would use :
  55375. <pre>
  55376. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  55377. </pre>
  55378. which will return :
  55379. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  55380. @param jtIdentifier jobTracker identifier, or null
  55381. @param jobId job number, or null
  55382. @param isMap whether the tip is a map, or null
  55383. @param taskId taskId number, or null
  55384. @param attemptId the task attempt number, or null
  55385. @return a regex pattern matching TaskAttemptIDs]]>
  55386. </doc>
  55387. </method>
  55388. <doc>
  55389. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  55390. a task attempt. Each task attempt is one particular instance of a Map or
  55391. Reduce Task identified by its TaskID.
  55392. TaskAttemptID consists of 2 parts. First part is the
  55393. {@link TaskID}, that this TaskAttemptID belongs to.
  55394. Second part is the task attempt number. <br>
  55395. An example TaskAttemptID is :
  55396. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  55397. zeroth task attempt for the fifth map task in the third job
  55398. running at the jobtracker started at <code>200707121733</code>.
  55399. <p>
  55400. Applications should never construct or parse TaskAttemptID strings
  55401. , but rather use appropriate constructors or {@link #forName(String)}
  55402. method.
  55403. @see JobID
  55404. @see TaskID]]>
  55405. </doc>
  55406. </class>
  55407. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  55408. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  55409. <class name="TaskCompletionEvent" extends="java.lang.Object"
  55410. abstract="false"
  55411. static="false" final="false" visibility="public"
  55412. deprecated="not deprecated">
  55413. <implements name="org.apache.hadoop.io.Writable"/>
  55414. <constructor name="TaskCompletionEvent"
  55415. static="false" final="false" visibility="public"
  55416. deprecated="not deprecated">
  55417. <doc>
  55418. <![CDATA[Default constructor for Writable.]]>
  55419. </doc>
  55420. </constructor>
  55421. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  55422. static="false" final="false" visibility="public"
  55423. deprecated="not deprecated">
  55424. <doc>
  55425. <![CDATA[Constructor. eventId should be created externally and incremented
  55426. per event for each job.
  55427. @param eventId event id, event id should be unique and assigned in
  55428. incrementally, starting from 0.
  55429. @param taskId task id
  55430. @param status task's status
  55431. @param taskTrackerHttp task tracker's host:port for http.]]>
  55432. </doc>
  55433. </constructor>
  55434. <method name="getEventId" return="int"
  55435. abstract="false" native="false" synchronized="false"
  55436. static="false" final="false" visibility="public"
  55437. deprecated="not deprecated">
  55438. <doc>
  55439. <![CDATA[Returns event Id.
  55440. @return event id]]>
  55441. </doc>
  55442. </method>
  55443. <method name="getTaskId" return="java.lang.String"
  55444. abstract="false" native="false" synchronized="false"
  55445. static="false" final="false" visibility="public"
  55446. deprecated="use {@link #getTaskAttemptId()} instead.">
  55447. <doc>
  55448. <![CDATA[Returns task id.
  55449. @return task id
  55450. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  55451. </doc>
  55452. </method>
  55453. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  55454. abstract="false" native="false" synchronized="false"
  55455. static="false" final="false" visibility="public"
  55456. deprecated="not deprecated">
  55457. <doc>
  55458. <![CDATA[Returns task id.
  55459. @return task id]]>
  55460. </doc>
  55461. </method>
  55462. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55463. abstract="false" native="false" synchronized="false"
  55464. static="false" final="false" visibility="public"
  55465. deprecated="not deprecated">
  55466. <doc>
  55467. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  55468. @return task tracker status]]>
  55469. </doc>
  55470. </method>
  55471. <method name="getTaskTrackerHttp" return="java.lang.String"
  55472. abstract="false" native="false" synchronized="false"
  55473. static="false" final="false" visibility="public"
  55474. deprecated="not deprecated">
  55475. <doc>
  55476. <![CDATA[http location of the tasktracker where this task ran.
  55477. @return http location of tasktracker user logs]]>
  55478. </doc>
  55479. </method>
  55480. <method name="getTaskRunTime" return="int"
  55481. abstract="false" native="false" synchronized="false"
  55482. static="false" final="false" visibility="public"
  55483. deprecated="not deprecated">
  55484. <doc>
  55485. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  55486. </doc>
  55487. </method>
  55488. <method name="setTaskRunTime"
  55489. abstract="false" native="false" synchronized="false"
  55490. static="false" final="false" visibility="public"
  55491. deprecated="not deprecated">
  55492. <param name="taskCompletionTime" type="int"/>
  55493. <doc>
  55494. <![CDATA[Set the task completion time
  55495. @param taskCompletionTime time (in millisec) the task took to complete]]>
  55496. </doc>
  55497. </method>
  55498. <method name="setEventId"
  55499. abstract="false" native="false" synchronized="false"
  55500. static="false" final="false" visibility="public"
  55501. deprecated="not deprecated">
  55502. <param name="eventId" type="int"/>
  55503. <doc>
  55504. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  55505. @param eventId]]>
  55506. </doc>
  55507. </method>
  55508. <method name="setTaskId"
  55509. abstract="false" native="false" synchronized="false"
  55510. static="false" final="false" visibility="public"
  55511. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  55512. <param name="taskId" type="java.lang.String"/>
  55513. <doc>
  55514. <![CDATA[Sets task id.
  55515. @param taskId
  55516. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  55517. </doc>
  55518. </method>
  55519. <method name="setTaskID"
  55520. abstract="false" native="false" synchronized="false"
  55521. static="false" final="false" visibility="public"
  55522. deprecated="not deprecated">
  55523. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55524. <doc>
  55525. <![CDATA[Sets task id.
  55526. @param taskId]]>
  55527. </doc>
  55528. </method>
  55529. <method name="setTaskStatus"
  55530. abstract="false" native="false" synchronized="false"
  55531. static="false" final="false" visibility="public"
  55532. deprecated="not deprecated">
  55533. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  55534. <doc>
  55535. <![CDATA[Set task status.
  55536. @param status]]>
  55537. </doc>
  55538. </method>
  55539. <method name="setTaskTrackerHttp"
  55540. abstract="false" native="false" synchronized="false"
  55541. static="false" final="false" visibility="public"
  55542. deprecated="not deprecated">
  55543. <param name="taskTrackerHttp" type="java.lang.String"/>
  55544. <doc>
  55545. <![CDATA[Set task tracker http location.
  55546. @param taskTrackerHttp]]>
  55547. </doc>
  55548. </method>
  55549. <method name="toString" return="java.lang.String"
  55550. abstract="false" native="false" synchronized="false"
  55551. static="false" final="false" visibility="public"
  55552. deprecated="not deprecated">
  55553. </method>
  55554. <method name="equals" return="boolean"
  55555. abstract="false" native="false" synchronized="false"
  55556. static="false" final="false" visibility="public"
  55557. deprecated="not deprecated">
  55558. <param name="o" type="java.lang.Object"/>
  55559. </method>
  55560. <method name="hashCode" return="int"
  55561. abstract="false" native="false" synchronized="false"
  55562. static="false" final="false" visibility="public"
  55563. deprecated="not deprecated">
  55564. </method>
  55565. <method name="isMapTask" return="boolean"
  55566. abstract="false" native="false" synchronized="false"
  55567. static="false" final="false" visibility="public"
  55568. deprecated="not deprecated">
  55569. </method>
  55570. <method name="idWithinJob" return="int"
  55571. abstract="false" native="false" synchronized="false"
  55572. static="false" final="false" visibility="public"
  55573. deprecated="not deprecated">
  55574. </method>
  55575. <method name="write"
  55576. abstract="false" native="false" synchronized="false"
  55577. static="false" final="false" visibility="public"
  55578. deprecated="not deprecated">
  55579. <param name="out" type="java.io.DataOutput"/>
  55580. <exception name="IOException" type="java.io.IOException"/>
  55581. </method>
  55582. <method name="readFields"
  55583. abstract="false" native="false" synchronized="false"
  55584. static="false" final="false" visibility="public"
  55585. deprecated="not deprecated">
  55586. <param name="in" type="java.io.DataInput"/>
  55587. <exception name="IOException" type="java.io.IOException"/>
  55588. </method>
  55589. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  55590. transient="false" volatile="false"
  55591. static="true" final="true" visibility="public"
  55592. deprecated="not deprecated">
  55593. </field>
  55594. <doc>
  55595. <![CDATA[This is used to track task completion events on
  55596. job tracker.]]>
  55597. </doc>
  55598. </class>
  55599. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  55600. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  55601. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  55602. abstract="false"
  55603. static="true" final="true" visibility="public"
  55604. deprecated="not deprecated">
  55605. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  55606. abstract="false" native="false" synchronized="false"
  55607. static="true" final="false" visibility="public"
  55608. deprecated="not deprecated">
  55609. </method>
  55610. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55611. abstract="false" native="false" synchronized="false"
  55612. static="true" final="false" visibility="public"
  55613. deprecated="not deprecated">
  55614. <param name="name" type="java.lang.String"/>
  55615. </method>
  55616. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55617. transient="false" volatile="false"
  55618. static="true" final="true" visibility="public"
  55619. deprecated="not deprecated">
  55620. </field>
  55621. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55622. transient="false" volatile="false"
  55623. static="true" final="true" visibility="public"
  55624. deprecated="not deprecated">
  55625. </field>
  55626. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55627. transient="false" volatile="false"
  55628. static="true" final="true" visibility="public"
  55629. deprecated="not deprecated">
  55630. </field>
  55631. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55632. transient="false" volatile="false"
  55633. static="true" final="true" visibility="public"
  55634. deprecated="not deprecated">
  55635. </field>
  55636. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55637. transient="false" volatile="false"
  55638. static="true" final="true" visibility="public"
  55639. deprecated="not deprecated">
  55640. </field>
  55641. </class>
  55642. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  55643. <!-- start class org.apache.hadoop.mapred.TaskController -->
  55644. <class name="TaskController" extends="java.lang.Object"
  55645. abstract="true"
  55646. static="false" final="false" visibility="public"
  55647. deprecated="not deprecated">
  55648. <implements name="org.apache.hadoop.conf.Configurable"/>
  55649. <constructor name="TaskController"
  55650. static="false" final="false" visibility="public"
  55651. deprecated="not deprecated">
  55652. </constructor>
  55653. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  55654. abstract="false" native="false" synchronized="false"
  55655. static="false" final="false" visibility="public"
  55656. deprecated="not deprecated">
  55657. </method>
  55658. <method name="getLocalDirs" return="java.lang.String[]"
  55659. abstract="false" native="false" synchronized="false"
  55660. static="false" final="false" visibility="public"
  55661. deprecated="not deprecated">
  55662. </method>
  55663. <method name="setConf"
  55664. abstract="false" native="false" synchronized="false"
  55665. static="false" final="false" visibility="public"
  55666. deprecated="not deprecated">
  55667. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55668. </method>
  55669. <method name="setup"
  55670. abstract="true" native="false" synchronized="false"
  55671. static="false" final="false" visibility="public"
  55672. deprecated="not deprecated">
  55673. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  55674. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  55675. <exception name="IOException" type="java.io.IOException"/>
  55676. <doc>
  55677. <![CDATA[Does initialization and setup.
  55678. @param allocator the local dir allocator to use
  55679. @param localStorage local storage to obtain dirs from]]>
  55680. </doc>
  55681. </method>
  55682. <method name="initializeJob"
  55683. abstract="true" native="false" synchronized="false"
  55684. static="false" final="false" visibility="public"
  55685. deprecated="not deprecated">
  55686. <param name="user" type="java.lang.String"/>
  55687. <param name="jobid" type="java.lang.String"/>
  55688. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  55689. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  55690. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55691. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  55692. <exception name="IOException" type="java.io.IOException"/>
  55693. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55694. <doc>
  55695. <![CDATA[Create all of the directories necessary for the job to start and download
  55696. all of the job and private distributed cache files.
  55697. Creates both the user directories and the job log directory.
  55698. @param user the user name
  55699. @param jobid the job
  55700. @param credentials a filename containing the job secrets
  55701. @param jobConf the path to the localized configuration file
  55702. @param taskTracker the connection the task tracker
  55703. @param ttAddr the tasktracker's RPC address
  55704. @throws IOException
  55705. @throws InterruptedException]]>
  55706. </doc>
  55707. </method>
  55708. <method name="launchTask" return="int"
  55709. abstract="true" native="false" synchronized="false"
  55710. static="false" final="false" visibility="public"
  55711. deprecated="not deprecated">
  55712. <param name="user" type="java.lang.String"/>
  55713. <param name="jobId" type="java.lang.String"/>
  55714. <param name="attemptId" type="java.lang.String"/>
  55715. <param name="setup" type="java.util.List"/>
  55716. <param name="jvmArguments" type="java.util.List"/>
  55717. <param name="currentWorkDirectory" type="java.io.File"/>
  55718. <param name="stdout" type="java.lang.String"/>
  55719. <param name="stderr" type="java.lang.String"/>
  55720. <exception name="IOException" type="java.io.IOException"/>
  55721. <doc>
  55722. <![CDATA[Create all of the directories for the task and launches the child jvm.
  55723. @param user the user name
  55724. @param jobId the jobId in question
  55725. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  55726. @param setup list of shell commands to execute before the jvm
  55727. @param jvmArguments list of jvm arguments
  55728. @param currentWorkDirectory the full path of the cwd for the task
  55729. @param stdout the file to redirect stdout to
  55730. @param stderr the file to redirect stderr to
  55731. @return the exit code for the task
  55732. @throws IOException]]>
  55733. </doc>
  55734. </method>
  55735. <method name="signalTask"
  55736. abstract="true" native="false" synchronized="false"
  55737. static="false" final="false" visibility="public"
  55738. deprecated="not deprecated">
  55739. <param name="user" type="java.lang.String"/>
  55740. <param name="taskPid" type="int"/>
  55741. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  55742. <exception name="IOException" type="java.io.IOException"/>
  55743. <doc>
  55744. <![CDATA[Send a signal to a task pid as the user.
  55745. @param user the user name
  55746. @param taskPid the pid of the task
  55747. @param signal the id of the signal to send]]>
  55748. </doc>
  55749. </method>
  55750. <method name="deleteAsUser"
  55751. abstract="true" native="false" synchronized="false"
  55752. static="false" final="false" visibility="public"
  55753. deprecated="not deprecated">
  55754. <param name="user" type="java.lang.String"/>
  55755. <param name="subDir" type="java.lang.String"/>
  55756. <exception name="IOException" type="java.io.IOException"/>
  55757. <doc>
  55758. <![CDATA[Delete the user's files under all of the task tracker root directories.
  55759. @param user the user name
  55760. @param subDir the path relative to the user's subdirectory under
  55761. the task tracker root directories.
  55762. @throws IOException]]>
  55763. </doc>
  55764. </method>
  55765. <method name="createLogDir"
  55766. abstract="false" native="false" synchronized="false"
  55767. static="false" final="false" visibility="public"
  55768. deprecated="not deprecated">
  55769. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55770. <param name="isCleanup" type="boolean"/>
  55771. <exception name="IOException" type="java.io.IOException"/>
  55772. <doc>
  55773. <![CDATA[Creates task log dir
  55774. @param taskID ID of the task
  55775. @param isCleanup If the task is cleanup task or not
  55776. @throws IOException]]>
  55777. </doc>
  55778. </method>
  55779. <method name="deleteLogAsUser"
  55780. abstract="true" native="false" synchronized="false"
  55781. static="false" final="false" visibility="public"
  55782. deprecated="not deprecated">
  55783. <param name="user" type="java.lang.String"/>
  55784. <param name="subDir" type="java.lang.String"/>
  55785. <exception name="IOException" type="java.io.IOException"/>
  55786. <doc>
  55787. <![CDATA[Delete the user's files under the userlogs directory.
  55788. @param user the user to work as
  55789. @param subDir the path under the userlogs directory.
  55790. @throws IOException]]>
  55791. </doc>
  55792. </method>
  55793. <method name="truncateLogsAsUser"
  55794. abstract="true" native="false" synchronized="false"
  55795. static="false" final="false" visibility="public"
  55796. deprecated="not deprecated">
  55797. <param name="user" type="java.lang.String"/>
  55798. <param name="allAttempts" type="java.util.List"/>
  55799. <exception name="IOException" type="java.io.IOException"/>
  55800. <doc>
  55801. <![CDATA[Run the passed command as the user
  55802. @param user
  55803. @param allAttempts the list of attempts that the JVM ran
  55804. @throws IOException]]>
  55805. </doc>
  55806. </method>
  55807. <method name="getRunAsUser" return="java.lang.String"
  55808. abstract="false" native="false" synchronized="false"
  55809. static="false" final="false" visibility="public"
  55810. deprecated="not deprecated">
  55811. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55812. <doc>
  55813. <![CDATA[Returns the local unix user that a given job will run as.]]>
  55814. </doc>
  55815. </method>
  55816. <method name="writeCommand" return="java.lang.String"
  55817. abstract="false" native="false" synchronized="false"
  55818. static="true" final="false" visibility="protected"
  55819. deprecated="not deprecated">
  55820. <param name="cmdLine" type="java.lang.String"/>
  55821. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  55822. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  55823. <exception name="IOException" type="java.io.IOException"/>
  55824. </method>
  55825. <method name="logOutput"
  55826. abstract="false" native="false" synchronized="false"
  55827. static="false" final="false" visibility="protected"
  55828. deprecated="not deprecated">
  55829. <param name="output" type="java.lang.String"/>
  55830. </method>
  55831. <field name="LOG" type="org.apache.commons.logging.Log"
  55832. transient="false" volatile="false"
  55833. static="true" final="true" visibility="public"
  55834. deprecated="not deprecated">
  55835. </field>
  55836. <field name="COMMAND_FILE" type="java.lang.String"
  55837. transient="false" volatile="false"
  55838. static="true" final="true" visibility="protected"
  55839. deprecated="not deprecated">
  55840. </field>
  55841. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  55842. transient="false" volatile="false"
  55843. static="false" final="false" visibility="protected"
  55844. deprecated="not deprecated">
  55845. </field>
  55846. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  55847. transient="false" volatile="false"
  55848. static="false" final="false" visibility="protected"
  55849. deprecated="not deprecated">
  55850. </field>
  55851. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  55852. transient="false" volatile="false"
  55853. static="true" final="true" visibility="public"
  55854. deprecated="not deprecated">
  55855. </field>
  55856. <doc>
  55857. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  55858. also the launching and killing of task JVMs.
  55859. This class defines the API for initializing, finalizing and cleaning
  55860. up of tasks, as also the launching and killing task JVMs.
  55861. Subclasses of this class will implement the logic required for
  55862. performing the actual actions.
  55863. <br/>
  55864. NOTE: This class is internal only class and not intended for users!!]]>
  55865. </doc>
  55866. </class>
  55867. <!-- end class org.apache.hadoop.mapred.TaskController -->
  55868. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  55869. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  55870. abstract="false"
  55871. static="false" final="false" visibility="public"
  55872. deprecated="not deprecated">
  55873. <constructor name="TaskGraphServlet"
  55874. static="false" final="false" visibility="public"
  55875. deprecated="not deprecated">
  55876. </constructor>
  55877. <method name="doGet"
  55878. abstract="false" native="false" synchronized="false"
  55879. static="false" final="false" visibility="public"
  55880. deprecated="not deprecated">
  55881. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55882. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55883. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55884. <exception name="IOException" type="java.io.IOException"/>
  55885. </method>
  55886. <field name="width" type="int"
  55887. transient="false" volatile="false"
  55888. static="true" final="true" visibility="public"
  55889. deprecated="not deprecated">
  55890. <doc>
  55891. <![CDATA[height of the graph w/o margins]]>
  55892. </doc>
  55893. </field>
  55894. <field name="height" type="int"
  55895. transient="false" volatile="false"
  55896. static="true" final="true" visibility="public"
  55897. deprecated="not deprecated">
  55898. <doc>
  55899. <![CDATA[height of the graph w/o margins]]>
  55900. </doc>
  55901. </field>
  55902. <field name="ymargin" type="int"
  55903. transient="false" volatile="false"
  55904. static="true" final="true" visibility="public"
  55905. deprecated="not deprecated">
  55906. <doc>
  55907. <![CDATA[margin space on y axis]]>
  55908. </doc>
  55909. </field>
  55910. <field name="xmargin" type="int"
  55911. transient="false" volatile="false"
  55912. static="true" final="true" visibility="public"
  55913. deprecated="not deprecated">
  55914. <doc>
  55915. <![CDATA[margin space on x axis]]>
  55916. </doc>
  55917. </field>
  55918. <doc>
  55919. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  55920. statuses]]>
  55921. </doc>
  55922. </class>
  55923. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  55924. <!-- start class org.apache.hadoop.mapred.TaskID -->
  55925. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  55926. abstract="false"
  55927. static="false" final="false" visibility="public"
  55928. deprecated="not deprecated">
  55929. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  55930. static="false" final="false" visibility="public"
  55931. deprecated="not deprecated">
  55932. <doc>
  55933. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  55934. @param jobId JobID that this tip belongs to
  55935. @param isMap whether the tip is a map
  55936. @param id the tip number]]>
  55937. </doc>
  55938. </constructor>
  55939. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  55940. static="false" final="false" visibility="public"
  55941. deprecated="not deprecated">
  55942. <doc>
  55943. <![CDATA[Constructs a TaskInProgressId object from given parts.
  55944. @param jtIdentifier jobTracker identifier
  55945. @param jobId job number
  55946. @param isMap whether the tip is a map
  55947. @param id the tip number]]>
  55948. </doc>
  55949. </constructor>
  55950. <constructor name="TaskID"
  55951. static="false" final="false" visibility="public"
  55952. deprecated="not deprecated">
  55953. </constructor>
  55954. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  55955. abstract="false" native="false" synchronized="false"
  55956. static="true" final="false" visibility="public"
  55957. deprecated="not deprecated">
  55958. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  55959. <doc>
  55960. <![CDATA[Downgrade a new TaskID to an old one
  55961. @param old a new or old TaskID
  55962. @return either old or a new TaskID build to match old]]>
  55963. </doc>
  55964. </method>
  55965. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  55966. abstract="false" native="false" synchronized="false"
  55967. static="true" final="false" visibility="public"
  55968. deprecated="not deprecated">
  55969. <param name="in" type="java.io.DataInput"/>
  55970. <exception name="IOException" type="java.io.IOException"/>
  55971. </method>
  55972. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55973. abstract="false" native="false" synchronized="false"
  55974. static="false" final="false" visibility="public"
  55975. deprecated="not deprecated">
  55976. </method>
  55977. <method name="getTaskIDsPattern" return="java.lang.String"
  55978. abstract="false" native="false" synchronized="false"
  55979. static="true" final="false" visibility="public"
  55980. deprecated="not deprecated">
  55981. <param name="jtIdentifier" type="java.lang.String"/>
  55982. <param name="jobId" type="java.lang.Integer"/>
  55983. <param name="isMap" type="java.lang.Boolean"/>
  55984. <param name="taskId" type="java.lang.Integer"/>
  55985. <doc>
  55986. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  55987. be given null, in which case that part of the regex will be generic.
  55988. For example to obtain a regex matching <i>the first map task</i>
  55989. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  55990. <pre>
  55991. TaskID.getTaskIDsPattern(null, null, true, 1);
  55992. </pre>
  55993. which will return :
  55994. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  55995. @param jtIdentifier jobTracker identifier, or null
  55996. @param jobId job number, or null
  55997. @param isMap whether the tip is a map, or null
  55998. @param taskId taskId number, or null
  55999. @return a regex pattern matching TaskIDs]]>
  56000. </doc>
  56001. </method>
  56002. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  56003. abstract="false" native="false" synchronized="false"
  56004. static="true" final="false" visibility="public"
  56005. deprecated="not deprecated">
  56006. <param name="str" type="java.lang.String"/>
  56007. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  56008. </method>
  56009. <doc>
  56010. <![CDATA[TaskID represents the immutable and unique identifier for
  56011. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  56012. execute the Map or Reduce Task, each of which are uniquely indentified by
  56013. their TaskAttemptID.
  56014. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  56015. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  56016. representing whether the task is a map task or a reduce task.
  56017. And the third part is the task number. <br>
  56018. An example TaskID is :
  56019. <code>task_200707121733_0003_m_000005</code> , which represents the
  56020. fifth map task in the third job running at the jobtracker
  56021. started at <code>200707121733</code>.
  56022. <p>
  56023. Applications should never construct or parse TaskID strings
  56024. , but rather use appropriate constructors or {@link #forName(String)}
  56025. method.
  56026. @see JobID
  56027. @see TaskAttemptID]]>
  56028. </doc>
  56029. </class>
  56030. <!-- end class org.apache.hadoop.mapred.TaskID -->
  56031. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  56032. <class name="TaskLog" extends="java.lang.Object"
  56033. abstract="false"
  56034. static="false" final="false" visibility="public"
  56035. deprecated="not deprecated">
  56036. <constructor name="TaskLog"
  56037. static="false" final="false" visibility="public"
  56038. deprecated="not deprecated">
  56039. </constructor>
  56040. <method name="createTaskAttemptLogDir"
  56041. abstract="false" native="false" synchronized="false"
  56042. static="true" final="false" visibility="public"
  56043. deprecated="not deprecated">
  56044. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56045. <param name="isCleanup" type="boolean"/>
  56046. <param name="localDirs" type="java.lang.String[]"/>
  56047. <exception name="IOException" type="java.io.IOException"/>
  56048. <doc>
  56049. <![CDATA[Create log directory for the given attempt. This involves creating the
  56050. following and setting proper permissions for the new directories
  56051. <br>{hadoop.log.dir}/userlogs/<jobid>
  56052. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  56053. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  56054. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  56055. @param taskID attempt-id for which log dir is to be created
  56056. @param isCleanup Is this attempt a cleanup attempt ?
  56057. @param localDirs mapred local directories
  56058. @throws IOException]]>
  56059. </doc>
  56060. </method>
  56061. <method name="getTaskAttemptLogDir" return="java.lang.String"
  56062. abstract="false" native="false" synchronized="false"
  56063. static="true" final="false" visibility="public"
  56064. deprecated="not deprecated">
  56065. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56066. <param name="cleanupSuffix" type="java.lang.String"/>
  56067. <param name="localDirs" type="java.lang.String[]"/>
  56068. <exception name="IOException" type="java.io.IOException"/>
  56069. <doc>
  56070. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  56071. selected mapred local directory.
  56072. @param taskID attempt-id for which log dir path is needed
  56073. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  56074. @param localDirs mapred local directories
  56075. @return target task attempt log directory
  56076. @throws IOException]]>
  56077. </doc>
  56078. </method>
  56079. <method name="getTaskLogFile" return="java.io.File"
  56080. abstract="false" native="false" synchronized="false"
  56081. static="true" final="false" visibility="public"
  56082. deprecated="not deprecated">
  56083. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56084. <param name="isCleanup" type="boolean"/>
  56085. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  56086. </method>
  56087. <method name="getBaseLogDir" return="java.lang.String"
  56088. abstract="false" native="false" synchronized="false"
  56089. static="true" final="false" visibility="public"
  56090. deprecated="not deprecated">
  56091. </method>
  56092. <method name="syncLogs"
  56093. abstract="false" native="false" synchronized="true"
  56094. static="true" final="false" visibility="public"
  56095. deprecated="not deprecated">
  56096. <param name="logLocation" type="java.lang.String"/>
  56097. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56098. <param name="isCleanup" type="boolean"/>
  56099. <param name="segmented" type="boolean"/>
  56100. <exception name="IOException" type="java.io.IOException"/>
  56101. </method>
  56102. <method name="getTaskLogLength" return="long"
  56103. abstract="false" native="false" synchronized="false"
  56104. static="true" final="false" visibility="public"
  56105. deprecated="not deprecated">
  56106. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56107. <doc>
  56108. <![CDATA[Get the desired maximum length of task's logs.
  56109. @param conf the job to look in
  56110. @return the number of bytes to cap the log files at]]>
  56111. </doc>
  56112. </method>
  56113. <method name="captureOutAndError" return="java.util.List"
  56114. abstract="false" native="false" synchronized="false"
  56115. static="true" final="false" visibility="public"
  56116. deprecated="not deprecated">
  56117. <param name="cmd" type="java.util.List"/>
  56118. <param name="stdoutFilename" type="java.io.File"/>
  56119. <param name="stderrFilename" type="java.io.File"/>
  56120. <param name="tailLength" type="long"/>
  56121. <exception name="IOException" type="java.io.IOException"/>
  56122. <doc>
  56123. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  56124. If the tailLength is 0, the entire output will be saved.
  56125. @param cmd The command and the arguments that should be run
  56126. @param stdoutFilename The filename that stdout should be saved to
  56127. @param stderrFilename The filename that stderr should be saved to
  56128. @param tailLength The length of the tail to be saved.
  56129. @return the modified command that should be run]]>
  56130. </doc>
  56131. </method>
  56132. <method name="captureOutAndError" return="java.util.List"
  56133. abstract="false" native="false" synchronized="false"
  56134. static="true" final="false" visibility="public"
  56135. deprecated="not deprecated">
  56136. <param name="setup" type="java.util.List"/>
  56137. <param name="cmd" type="java.util.List"/>
  56138. <param name="stdoutFilename" type="java.io.File"/>
  56139. <param name="stderrFilename" type="java.io.File"/>
  56140. <param name="tailLength" type="long"/>
  56141. <exception name="IOException" type="java.io.IOException"/>
  56142. <doc>
  56143. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  56144. Setup commands such as setting memory limit can be passed which
  56145. will be executed before exec.
  56146. If the tailLength is 0, the entire output will be saved.
  56147. @param setup The setup commands for the execed process.
  56148. @param cmd The command and the arguments that should be run
  56149. @param stdoutFilename The filename that stdout should be saved to
  56150. @param stderrFilename The filename that stderr should be saved to
  56151. @param tailLength The length of the tail to be saved.
  56152. @return the modified command that should be run]]>
  56153. </doc>
  56154. </method>
  56155. <method name="captureOutAndError" return="java.util.List"
  56156. abstract="false" native="false" synchronized="false"
  56157. static="true" final="false" visibility="public"
  56158. deprecated="pidFiles are no more used. Instead pid is exported to
  56159. env variable JVM_PID.">
  56160. <param name="setup" type="java.util.List"/>
  56161. <param name="cmd" type="java.util.List"/>
  56162. <param name="stdoutFilename" type="java.io.File"/>
  56163. <param name="stderrFilename" type="java.io.File"/>
  56164. <param name="tailLength" type="long"/>
  56165. <param name="pidFileName" type="java.lang.String"/>
  56166. <exception name="IOException" type="java.io.IOException"/>
  56167. <doc>
  56168. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  56169. Setup commands such as setting memory limit can be passed which
  56170. will be executed before exec.
  56171. If the tailLength is 0, the entire output will be saved.
  56172. @param setup The setup commands for the execed process.
  56173. @param cmd The command and the arguments that should be run
  56174. @param stdoutFilename The filename that stdout should be saved to
  56175. @param stderrFilename The filename that stderr should be saved to
  56176. @param tailLength The length of the tail to be saved.
  56177. @deprecated pidFiles are no more used. Instead pid is exported to
  56178. env variable JVM_PID.
  56179. @return the modified command that should be run]]>
  56180. </doc>
  56181. </method>
  56182. <method name="captureOutAndError" return="java.util.List"
  56183. abstract="false" native="false" synchronized="false"
  56184. static="true" final="false" visibility="public"
  56185. deprecated="pidFiles are no more used. Instead pid is exported to
  56186. env variable JVM_PID.">
  56187. <param name="setup" type="java.util.List"/>
  56188. <param name="cmd" type="java.util.List"/>
  56189. <param name="stdoutFilename" type="java.io.File"/>
  56190. <param name="stderrFilename" type="java.io.File"/>
  56191. <param name="tailLength" type="long"/>
  56192. <param name="useSetsid" type="boolean"/>
  56193. <param name="pidFileName" type="java.lang.String"/>
  56194. <exception name="IOException" type="java.io.IOException"/>
  56195. <doc>
  56196. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  56197. Setup commands such as setting memory limit can be passed which
  56198. will be executed before exec.
  56199. If the tailLength is 0, the entire output will be saved.
  56200. @param setup The setup commands for the execed process.
  56201. @param cmd The command and the arguments that should be run
  56202. @param stdoutFilename The filename that stdout should be saved to
  56203. @param stderrFilename The filename that stderr should be saved to
  56204. @param tailLength The length of the tail to be saved.
  56205. @param useSetsid Should setsid be used in the command or not.
  56206. @deprecated pidFiles are no more used. Instead pid is exported to
  56207. env variable JVM_PID.
  56208. @return the modified command that should be run]]>
  56209. </doc>
  56210. </method>
  56211. <method name="captureOutAndError" return="java.util.List"
  56212. abstract="false" native="false" synchronized="false"
  56213. static="true" final="false" visibility="public"
  56214. deprecated="not deprecated">
  56215. <param name="setup" type="java.util.List"/>
  56216. <param name="cmd" type="java.util.List"/>
  56217. <param name="stdoutFilename" type="java.io.File"/>
  56218. <param name="stderrFilename" type="java.io.File"/>
  56219. <param name="tailLength" type="long"/>
  56220. <param name="useSetsid" type="boolean"/>
  56221. <exception name="IOException" type="java.io.IOException"/>
  56222. <doc>
  56223. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  56224. Setup commands such as setting memory limit can be passed which
  56225. will be executed before exec.
  56226. If the tailLength is 0, the entire output will be saved.
  56227. @param setup The setup commands for the execed process.
  56228. @param cmd The command and the arguments that should be run
  56229. @param stdoutFilename The filename that stdout should be saved to
  56230. @param stderrFilename The filename that stderr should be saved to
  56231. @param tailLength The length of the tail to be saved.
  56232. @param useSetsid Should setsid be used in the command or not.
  56233. @return the modified command that should be run]]>
  56234. </doc>
  56235. </method>
  56236. <method name="addCommand" return="java.lang.String"
  56237. abstract="false" native="false" synchronized="false"
  56238. static="true" final="false" visibility="public"
  56239. deprecated="not deprecated">
  56240. <param name="cmd" type="java.util.List"/>
  56241. <param name="isExecutable" type="boolean"/>
  56242. <exception name="IOException" type="java.io.IOException"/>
  56243. <doc>
  56244. <![CDATA[Add quotes to each of the command strings and
  56245. return as a single string
  56246. @param cmd The command to be quoted
  56247. @param isExecutable makes shell path if the first
  56248. argument is executable
  56249. @return returns The quoted string.
  56250. @throws IOException]]>
  56251. </doc>
  56252. </method>
  56253. <method name="captureDebugOut" return="java.util.List"
  56254. abstract="false" native="false" synchronized="false"
  56255. static="true" final="false" visibility="public"
  56256. deprecated="not deprecated">
  56257. <param name="cmd" type="java.util.List"/>
  56258. <param name="debugoutFilename" type="java.io.File"/>
  56259. <exception name="IOException" type="java.io.IOException"/>
  56260. <doc>
  56261. <![CDATA[Wrap a command in a shell to capture debug script's
  56262. stdout and stderr to debugout.
  56263. @param cmd The command and the arguments that should be run
  56264. @param debugoutFilename The filename that stdout and stderr
  56265. should be saved to.
  56266. @return the modified command that should be run
  56267. @throws IOException]]>
  56268. </doc>
  56269. </method>
  56270. <method name="getUserLogDir" return="java.io.File"
  56271. abstract="false" native="false" synchronized="false"
  56272. static="true" final="false" visibility="public"
  56273. deprecated="not deprecated">
  56274. </method>
  56275. <method name="getJobDir" return="java.io.File"
  56276. abstract="false" native="false" synchronized="false"
  56277. static="true" final="false" visibility="public"
  56278. deprecated="not deprecated">
  56279. <param name="jobid" type="java.lang.String"/>
  56280. <doc>
  56281. <![CDATA[Get the user log directory for the job jobid.
  56282. @param jobid string representation of the jobid
  56283. @return user log directory for the job]]>
  56284. </doc>
  56285. </method>
  56286. <method name="getJobDir" return="java.io.File"
  56287. abstract="false" native="false" synchronized="false"
  56288. static="true" final="false" visibility="public"
  56289. deprecated="not deprecated">
  56290. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  56291. <doc>
  56292. <![CDATA[Get the user log directory for the job jobid.
  56293. @param jobid the jobid object
  56294. @return user log directory for the job]]>
  56295. </doc>
  56296. </method>
  56297. <doc>
  56298. <![CDATA[A simple logger to handle the task-specific user logs.
  56299. This class uses the system property <code>hadoop.log.dir</code>.
  56300. This class is for Map/Reduce internal use only.]]>
  56301. </doc>
  56302. </class>
  56303. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  56304. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  56305. <class name="TaskLog.LogName" extends="java.lang.Enum"
  56306. abstract="false"
  56307. static="true" final="true" visibility="public"
  56308. deprecated="not deprecated">
  56309. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  56310. abstract="false" native="false" synchronized="false"
  56311. static="true" final="false" visibility="public"
  56312. deprecated="not deprecated">
  56313. </method>
  56314. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  56315. abstract="false" native="false" synchronized="false"
  56316. static="true" final="false" visibility="public"
  56317. deprecated="not deprecated">
  56318. <param name="name" type="java.lang.String"/>
  56319. </method>
  56320. <method name="toString" return="java.lang.String"
  56321. abstract="false" native="false" synchronized="false"
  56322. static="false" final="false" visibility="public"
  56323. deprecated="not deprecated">
  56324. </method>
  56325. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  56326. transient="false" volatile="false"
  56327. static="true" final="true" visibility="public"
  56328. deprecated="not deprecated">
  56329. <doc>
  56330. <![CDATA[Log on the stdout of the task.]]>
  56331. </doc>
  56332. </field>
  56333. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  56334. transient="false" volatile="false"
  56335. static="true" final="true" visibility="public"
  56336. deprecated="not deprecated">
  56337. <doc>
  56338. <![CDATA[Log on the stderr of the task.]]>
  56339. </doc>
  56340. </field>
  56341. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  56342. transient="false" volatile="false"
  56343. static="true" final="true" visibility="public"
  56344. deprecated="not deprecated">
  56345. <doc>
  56346. <![CDATA[Log on the map-reduce system logs of the task.]]>
  56347. </doc>
  56348. </field>
  56349. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  56350. transient="false" volatile="false"
  56351. static="true" final="true" visibility="public"
  56352. deprecated="not deprecated">
  56353. <doc>
  56354. <![CDATA[The java profiler information.]]>
  56355. </doc>
  56356. </field>
  56357. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  56358. transient="false" volatile="false"
  56359. static="true" final="true" visibility="public"
  56360. deprecated="not deprecated">
  56361. <doc>
  56362. <![CDATA[Log the debug script's stdout]]>
  56363. </doc>
  56364. </field>
  56365. <doc>
  56366. <![CDATA[The filter for userlogs.]]>
  56367. </doc>
  56368. </class>
  56369. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  56370. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  56371. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  56372. abstract="false"
  56373. static="false" final="false" visibility="public"
  56374. deprecated="not deprecated">
  56375. <constructor name="TaskLogAppender"
  56376. static="false" final="false" visibility="public"
  56377. deprecated="not deprecated">
  56378. </constructor>
  56379. <method name="activateOptions"
  56380. abstract="false" native="false" synchronized="false"
  56381. static="false" final="false" visibility="public"
  56382. deprecated="not deprecated">
  56383. </method>
  56384. <method name="append"
  56385. abstract="false" native="false" synchronized="false"
  56386. static="false" final="false" visibility="public"
  56387. deprecated="not deprecated">
  56388. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  56389. </method>
  56390. <method name="flush"
  56391. abstract="false" native="false" synchronized="false"
  56392. static="false" final="false" visibility="public"
  56393. deprecated="not deprecated">
  56394. </method>
  56395. <method name="close"
  56396. abstract="false" native="false" synchronized="true"
  56397. static="false" final="false" visibility="public"
  56398. deprecated="not deprecated">
  56399. </method>
  56400. <method name="getTaskId" return="java.lang.String"
  56401. abstract="false" native="false" synchronized="false"
  56402. static="false" final="false" visibility="public"
  56403. deprecated="not deprecated">
  56404. <doc>
  56405. <![CDATA[Getter/Setter methods for log4j.]]>
  56406. </doc>
  56407. </method>
  56408. <method name="setTaskId"
  56409. abstract="false" native="false" synchronized="false"
  56410. static="false" final="false" visibility="public"
  56411. deprecated="not deprecated">
  56412. <param name="taskId" type="java.lang.String"/>
  56413. </method>
  56414. <method name="getTotalLogFileSize" return="long"
  56415. abstract="false" native="false" synchronized="false"
  56416. static="false" final="false" visibility="public"
  56417. deprecated="not deprecated">
  56418. </method>
  56419. <method name="setTotalLogFileSize"
  56420. abstract="false" native="false" synchronized="false"
  56421. static="false" final="false" visibility="public"
  56422. deprecated="not deprecated">
  56423. <param name="logSize" type="long"/>
  56424. </method>
  56425. <method name="setIsCleanup"
  56426. abstract="false" native="false" synchronized="false"
  56427. static="false" final="false" visibility="public"
  56428. deprecated="not deprecated">
  56429. <param name="isCleanup" type="boolean"/>
  56430. <doc>
  56431. <![CDATA[Set whether the task is a cleanup attempt or not.
  56432. @param isCleanup
  56433. true if the task is cleanup attempt, false otherwise.]]>
  56434. </doc>
  56435. </method>
  56436. <method name="getIsCleanup" return="boolean"
  56437. abstract="false" native="false" synchronized="false"
  56438. static="false" final="false" visibility="public"
  56439. deprecated="not deprecated">
  56440. <doc>
  56441. <![CDATA[Get whether task is cleanup attempt or not.
  56442. @return true if the task is cleanup attempt, false otherwise.]]>
  56443. </doc>
  56444. </method>
  56445. <doc>
  56446. <![CDATA[A simple log4j-appender for the task child's
  56447. map-reduce system logs.]]>
  56448. </doc>
  56449. </class>
  56450. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  56451. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  56452. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  56453. abstract="false"
  56454. static="false" final="false" visibility="public"
  56455. deprecated="not deprecated">
  56456. <constructor name="TaskLogServlet"
  56457. static="false" final="false" visibility="public"
  56458. deprecated="not deprecated">
  56459. </constructor>
  56460. <method name="getTaskLogUrl" return="java.lang.String"
  56461. abstract="false" native="false" synchronized="false"
  56462. static="true" final="false" visibility="public"
  56463. deprecated="not deprecated">
  56464. <param name="taskTrackerHostName" type="java.lang.String"/>
  56465. <param name="httpPort" type="java.lang.String"/>
  56466. <param name="taskAttemptID" type="java.lang.String"/>
  56467. <doc>
  56468. <![CDATA[Construct the taskLogUrl
  56469. @param taskTrackerHostName
  56470. @param httpPort
  56471. @param taskAttemptID
  56472. @return the taskLogUrl]]>
  56473. </doc>
  56474. </method>
  56475. <method name="doGet"
  56476. abstract="false" native="false" synchronized="false"
  56477. static="false" final="false" visibility="public"
  56478. deprecated="not deprecated">
  56479. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  56480. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  56481. <exception name="ServletException" type="javax.servlet.ServletException"/>
  56482. <exception name="IOException" type="java.io.IOException"/>
  56483. <doc>
  56484. <![CDATA[Get the logs via http.]]>
  56485. </doc>
  56486. </method>
  56487. <doc>
  56488. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  56489. </doc>
  56490. </class>
  56491. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  56492. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  56493. <class name="TaskLogsTruncater" extends="java.lang.Object"
  56494. abstract="false"
  56495. static="false" final="false" visibility="public"
  56496. deprecated="not deprecated">
  56497. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  56498. static="false" final="false" visibility="public"
  56499. deprecated="not deprecated">
  56500. </constructor>
  56501. <method name="shouldTruncateLogs" return="boolean"
  56502. abstract="false" native="false" synchronized="false"
  56503. static="false" final="false" visibility="public"
  56504. deprecated="not deprecated">
  56505. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  56506. <exception name="IOException" type="java.io.IOException"/>
  56507. <doc>
  56508. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  56509. particular JVM
  56510. @param lInfo
  56511. @return is truncation required?
  56512. @throws IOException]]>
  56513. </doc>
  56514. </method>
  56515. <method name="truncateLogs"
  56516. abstract="false" native="false" synchronized="false"
  56517. static="false" final="false" visibility="public"
  56518. deprecated="not deprecated">
  56519. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  56520. <doc>
  56521. <![CDATA[Process the removed task's logs. This involves truncating them to
  56522. retainSize.]]>
  56523. </doc>
  56524. </method>
  56525. <method name="main"
  56526. abstract="false" native="false" synchronized="false"
  56527. static="true" final="false" visibility="public"
  56528. deprecated="not deprecated">
  56529. <param name="args" type="java.lang.String[]"/>
  56530. <exception name="IOException" type="java.io.IOException"/>
  56531. </method>
  56532. <doc>
  56533. <![CDATA[The class for truncating the user logs.
  56534. Should be used only by {@link UserLogManager}.]]>
  56535. </doc>
  56536. </class>
  56537. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  56538. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  56539. <class name="TaskReport" extends="java.lang.Object"
  56540. abstract="false"
  56541. static="false" final="false" visibility="public"
  56542. deprecated="not deprecated">
  56543. <implements name="org.apache.hadoop.io.Writable"/>
  56544. <constructor name="TaskReport"
  56545. static="false" final="false" visibility="public"
  56546. deprecated="not deprecated">
  56547. </constructor>
  56548. <method name="getTaskId" return="java.lang.String"
  56549. abstract="false" native="false" synchronized="false"
  56550. static="false" final="false" visibility="public"
  56551. deprecated="use {@link #getTaskID()} instead">
  56552. <doc>
  56553. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  56554. </doc>
  56555. </method>
  56556. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  56557. abstract="false" native="false" synchronized="false"
  56558. static="false" final="false" visibility="public"
  56559. deprecated="not deprecated">
  56560. <doc>
  56561. <![CDATA[The id of the task.]]>
  56562. </doc>
  56563. </method>
  56564. <method name="getProgress" return="float"
  56565. abstract="false" native="false" synchronized="false"
  56566. static="false" final="false" visibility="public"
  56567. deprecated="not deprecated">
  56568. <doc>
  56569. <![CDATA[The amount completed, between zero and one.]]>
  56570. </doc>
  56571. </method>
  56572. <method name="getState" return="java.lang.String"
  56573. abstract="false" native="false" synchronized="false"
  56574. static="false" final="false" visibility="public"
  56575. deprecated="not deprecated">
  56576. <doc>
  56577. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  56578. </doc>
  56579. </method>
  56580. <method name="getDiagnostics" return="java.lang.String[]"
  56581. abstract="false" native="false" synchronized="false"
  56582. static="false" final="false" visibility="public"
  56583. deprecated="not deprecated">
  56584. <doc>
  56585. <![CDATA[A list of error messages.]]>
  56586. </doc>
  56587. </method>
  56588. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  56589. abstract="false" native="false" synchronized="false"
  56590. static="false" final="false" visibility="public"
  56591. deprecated="not deprecated">
  56592. <doc>
  56593. <![CDATA[A table of counters.]]>
  56594. </doc>
  56595. </method>
  56596. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  56597. abstract="false" native="false" synchronized="false"
  56598. static="false" final="false" visibility="public"
  56599. deprecated="not deprecated">
  56600. <doc>
  56601. <![CDATA[The current status]]>
  56602. </doc>
  56603. </method>
  56604. <method name="getFinishTime" return="long"
  56605. abstract="false" native="false" synchronized="false"
  56606. static="false" final="false" visibility="public"
  56607. deprecated="not deprecated">
  56608. <doc>
  56609. <![CDATA[Get finish time of task.
  56610. @return 0, if finish time was not set else returns finish time.]]>
  56611. </doc>
  56612. </method>
  56613. <method name="getStartTime" return="long"
  56614. abstract="false" native="false" synchronized="false"
  56615. static="false" final="false" visibility="public"
  56616. deprecated="not deprecated">
  56617. <doc>
  56618. <![CDATA[Get start time of task.
  56619. @return 0 if start time was not set, else start time.]]>
  56620. </doc>
  56621. </method>
  56622. <method name="setSuccessfulAttempt"
  56623. abstract="false" native="false" synchronized="false"
  56624. static="false" final="false" visibility="public"
  56625. deprecated="not deprecated">
  56626. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56627. <doc>
  56628. <![CDATA[set successful attempt ID of the task.]]>
  56629. </doc>
  56630. </method>
  56631. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  56632. abstract="false" native="false" synchronized="false"
  56633. static="false" final="false" visibility="public"
  56634. deprecated="not deprecated">
  56635. <doc>
  56636. <![CDATA[Get the attempt ID that took this task to completion]]>
  56637. </doc>
  56638. </method>
  56639. <method name="setRunningTaskAttempts"
  56640. abstract="false" native="false" synchronized="false"
  56641. static="false" final="false" visibility="public"
  56642. deprecated="not deprecated">
  56643. <param name="runningAttempts" type="java.util.Collection"/>
  56644. <doc>
  56645. <![CDATA[set running attempt(s) of the task.]]>
  56646. </doc>
  56647. </method>
  56648. <method name="getRunningTaskAttempts" return="java.util.Collection"
  56649. abstract="false" native="false" synchronized="false"
  56650. static="false" final="false" visibility="public"
  56651. deprecated="not deprecated">
  56652. <doc>
  56653. <![CDATA[Get the running task attempt IDs for this task]]>
  56654. </doc>
  56655. </method>
  56656. <method name="equals" return="boolean"
  56657. abstract="false" native="false" synchronized="false"
  56658. static="false" final="false" visibility="public"
  56659. deprecated="not deprecated">
  56660. <param name="o" type="java.lang.Object"/>
  56661. </method>
  56662. <method name="hashCode" return="int"
  56663. abstract="false" native="false" synchronized="false"
  56664. static="false" final="false" visibility="public"
  56665. deprecated="not deprecated">
  56666. </method>
  56667. <method name="write"
  56668. abstract="false" native="false" synchronized="false"
  56669. static="false" final="false" visibility="public"
  56670. deprecated="not deprecated">
  56671. <param name="out" type="java.io.DataOutput"/>
  56672. <exception name="IOException" type="java.io.IOException"/>
  56673. </method>
  56674. <method name="readFields"
  56675. abstract="false" native="false" synchronized="false"
  56676. static="false" final="false" visibility="public"
  56677. deprecated="not deprecated">
  56678. <param name="in" type="java.io.DataInput"/>
  56679. <exception name="IOException" type="java.io.IOException"/>
  56680. </method>
  56681. <doc>
  56682. <![CDATA[A report on the state of a task.]]>
  56683. </doc>
  56684. </class>
  56685. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  56686. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  56687. <class name="TaskStatus" extends="java.lang.Object"
  56688. abstract="true"
  56689. static="false" final="false" visibility="public"
  56690. deprecated="not deprecated">
  56691. <implements name="org.apache.hadoop.io.Writable"/>
  56692. <implements name="java.lang.Cloneable"/>
  56693. <constructor name="TaskStatus"
  56694. static="false" final="false" visibility="public"
  56695. deprecated="not deprecated">
  56696. </constructor>
  56697. <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"
  56698. static="false" final="false" visibility="public"
  56699. deprecated="not deprecated">
  56700. </constructor>
  56701. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  56702. abstract="false" native="false" synchronized="false"
  56703. static="false" final="false" visibility="public"
  56704. deprecated="not deprecated">
  56705. </method>
  56706. <method name="getIsMap" return="boolean"
  56707. abstract="true" native="false" synchronized="false"
  56708. static="false" final="false" visibility="public"
  56709. deprecated="not deprecated">
  56710. </method>
  56711. <method name="getNumSlots" return="int"
  56712. abstract="false" native="false" synchronized="false"
  56713. static="false" final="false" visibility="public"
  56714. deprecated="not deprecated">
  56715. </method>
  56716. <method name="getProgress" return="float"
  56717. abstract="false" native="false" synchronized="false"
  56718. static="false" final="false" visibility="public"
  56719. deprecated="not deprecated">
  56720. </method>
  56721. <method name="setProgress"
  56722. abstract="false" native="false" synchronized="false"
  56723. static="false" final="false" visibility="public"
  56724. deprecated="not deprecated">
  56725. <param name="progress" type="float"/>
  56726. </method>
  56727. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  56728. abstract="false" native="false" synchronized="false"
  56729. static="false" final="false" visibility="public"
  56730. deprecated="not deprecated">
  56731. </method>
  56732. <method name="getTaskTracker" return="java.lang.String"
  56733. abstract="false" native="false" synchronized="false"
  56734. static="false" final="false" visibility="public"
  56735. deprecated="not deprecated">
  56736. </method>
  56737. <method name="setTaskTracker"
  56738. abstract="false" native="false" synchronized="false"
  56739. static="false" final="false" visibility="public"
  56740. deprecated="not deprecated">
  56741. <param name="tracker" type="java.lang.String"/>
  56742. </method>
  56743. <method name="setRunState"
  56744. abstract="false" native="false" synchronized="false"
  56745. static="false" final="false" visibility="public"
  56746. deprecated="not deprecated">
  56747. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  56748. </method>
  56749. <method name="getDiagnosticInfo" return="java.lang.String"
  56750. abstract="false" native="false" synchronized="false"
  56751. static="false" final="false" visibility="public"
  56752. deprecated="not deprecated">
  56753. </method>
  56754. <method name="setDiagnosticInfo"
  56755. abstract="false" native="false" synchronized="false"
  56756. static="false" final="false" visibility="public"
  56757. deprecated="not deprecated">
  56758. <param name="info" type="java.lang.String"/>
  56759. </method>
  56760. <method name="getStateString" return="java.lang.String"
  56761. abstract="false" native="false" synchronized="false"
  56762. static="false" final="false" visibility="public"
  56763. deprecated="not deprecated">
  56764. </method>
  56765. <method name="setStateString"
  56766. abstract="false" native="false" synchronized="false"
  56767. static="false" final="false" visibility="public"
  56768. deprecated="not deprecated">
  56769. <param name="stateString" type="java.lang.String"/>
  56770. </method>
  56771. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  56772. abstract="false" native="false" synchronized="false"
  56773. static="false" final="false" visibility="public"
  56774. deprecated="not deprecated">
  56775. <doc>
  56776. <![CDATA[Get the next record range which is going to be processed by Task.
  56777. @return nextRecordRange]]>
  56778. </doc>
  56779. </method>
  56780. <method name="setNextRecordRange"
  56781. abstract="false" native="false" synchronized="false"
  56782. static="false" final="false" visibility="public"
  56783. deprecated="not deprecated">
  56784. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  56785. <doc>
  56786. <![CDATA[Set the next record range which is going to be processed by Task.
  56787. @param nextRecordRange]]>
  56788. </doc>
  56789. </method>
  56790. <method name="getFinishTime" return="long"
  56791. abstract="false" native="false" synchronized="false"
  56792. static="false" final="false" visibility="public"
  56793. deprecated="not deprecated">
  56794. <doc>
  56795. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  56796. are not set before, these are set to finishTime. It takes care of
  56797. the case when shuffle, sort and finish are completed with in the
  56798. heartbeat interval and are not reported separately. if task state is
  56799. TaskStatus.FAILED then finish time represents when the task failed.
  56800. @return finish time of the task.]]>
  56801. </doc>
  56802. </method>
  56803. <method name="getShuffleFinishTime" return="long"
  56804. abstract="false" native="false" synchronized="false"
  56805. static="false" final="false" visibility="public"
  56806. deprecated="not deprecated">
  56807. <doc>
  56808. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  56809. not set due to shuffle/sort/finish phases ending within same
  56810. heartbeat interval, it is set to finish time of next phase i.e. sort
  56811. or task finish when these are set.
  56812. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  56813. it returns approximate shuffle finish time.]]>
  56814. </doc>
  56815. </method>
  56816. <method name="getSortFinishTime" return="long"
  56817. abstract="false" native="false" synchronized="false"
  56818. static="false" final="false" visibility="public"
  56819. deprecated="not deprecated">
  56820. <doc>
  56821. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  56822. due to sort and reduce phase finishing in same heartebat interval, it is
  56823. set to finish time, when finish time is set.
  56824. @return 0 if sort finish time and finish time are not set, else returns sort
  56825. finish time if that is set, else it returns finish time.]]>
  56826. </doc>
  56827. </method>
  56828. <method name="getStartTime" return="long"
  56829. abstract="false" native="false" synchronized="false"
  56830. static="false" final="false" visibility="public"
  56831. deprecated="not deprecated">
  56832. <doc>
  56833. <![CDATA[Get start time of the task.
  56834. @return 0 is start time is not set, else returns start time.]]>
  56835. </doc>
  56836. </method>
  56837. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56838. abstract="false" native="false" synchronized="false"
  56839. static="false" final="false" visibility="public"
  56840. deprecated="not deprecated">
  56841. <doc>
  56842. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  56843. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  56844. @return .]]>
  56845. </doc>
  56846. </method>
  56847. <method name="getIncludeCounters" return="boolean"
  56848. abstract="false" native="false" synchronized="false"
  56849. static="false" final="false" visibility="public"
  56850. deprecated="not deprecated">
  56851. </method>
  56852. <method name="setIncludeCounters"
  56853. abstract="false" native="false" synchronized="false"
  56854. static="false" final="false" visibility="public"
  56855. deprecated="not deprecated">
  56856. <param name="send" type="boolean"/>
  56857. </method>
  56858. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  56859. abstract="false" native="false" synchronized="false"
  56860. static="false" final="false" visibility="public"
  56861. deprecated="not deprecated">
  56862. <doc>
  56863. <![CDATA[Get task's counters.]]>
  56864. </doc>
  56865. </method>
  56866. <method name="setCounters"
  56867. abstract="false" native="false" synchronized="false"
  56868. static="false" final="false" visibility="public"
  56869. deprecated="not deprecated">
  56870. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  56871. <doc>
  56872. <![CDATA[Set the task's counters.
  56873. @param counters]]>
  56874. </doc>
  56875. </method>
  56876. <method name="getOutputSize" return="long"
  56877. abstract="false" native="false" synchronized="false"
  56878. static="false" final="false" visibility="public"
  56879. deprecated="not deprecated">
  56880. <doc>
  56881. <![CDATA[Returns the number of bytes of output from this map.]]>
  56882. </doc>
  56883. </method>
  56884. <method name="getFetchFailedMaps" return="java.util.List"
  56885. abstract="false" native="false" synchronized="false"
  56886. static="false" final="false" visibility="public"
  56887. deprecated="not deprecated">
  56888. <doc>
  56889. <![CDATA[Get the list of maps from which output-fetches failed.
  56890. @return the list of maps from which output-fetches failed.]]>
  56891. </doc>
  56892. </method>
  56893. <method name="clone" return="java.lang.Object"
  56894. abstract="false" native="false" synchronized="false"
  56895. static="false" final="false" visibility="public"
  56896. deprecated="not deprecated">
  56897. </method>
  56898. <method name="write"
  56899. abstract="false" native="false" synchronized="false"
  56900. static="false" final="false" visibility="public"
  56901. deprecated="not deprecated">
  56902. <param name="out" type="java.io.DataOutput"/>
  56903. <exception name="IOException" type="java.io.IOException"/>
  56904. </method>
  56905. <method name="readFields"
  56906. abstract="false" native="false" synchronized="false"
  56907. static="false" final="false" visibility="public"
  56908. deprecated="not deprecated">
  56909. <param name="in" type="java.io.DataInput"/>
  56910. <exception name="IOException" type="java.io.IOException"/>
  56911. </method>
  56912. <doc>
  56913. <![CDATA[Describes the current status of a task. This is
  56914. not intended to be a comprehensive piece of data.]]>
  56915. </doc>
  56916. </class>
  56917. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  56918. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56919. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  56920. abstract="false"
  56921. static="true" final="true" visibility="public"
  56922. deprecated="not deprecated">
  56923. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  56924. abstract="false" native="false" synchronized="false"
  56925. static="true" final="false" visibility="public"
  56926. deprecated="not deprecated">
  56927. </method>
  56928. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56929. abstract="false" native="false" synchronized="false"
  56930. static="true" final="false" visibility="public"
  56931. deprecated="not deprecated">
  56932. <param name="name" type="java.lang.String"/>
  56933. </method>
  56934. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56935. transient="false" volatile="false"
  56936. static="true" final="true" visibility="public"
  56937. deprecated="not deprecated">
  56938. </field>
  56939. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56940. transient="false" volatile="false"
  56941. static="true" final="true" visibility="public"
  56942. deprecated="not deprecated">
  56943. </field>
  56944. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56945. transient="false" volatile="false"
  56946. static="true" final="true" visibility="public"
  56947. deprecated="not deprecated">
  56948. </field>
  56949. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56950. transient="false" volatile="false"
  56951. static="true" final="true" visibility="public"
  56952. deprecated="not deprecated">
  56953. </field>
  56954. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56955. transient="false" volatile="false"
  56956. static="true" final="true" visibility="public"
  56957. deprecated="not deprecated">
  56958. </field>
  56959. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56960. transient="false" volatile="false"
  56961. static="true" final="true" visibility="public"
  56962. deprecated="not deprecated">
  56963. </field>
  56964. </class>
  56965. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56966. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  56967. <class name="TaskStatus.State" extends="java.lang.Enum"
  56968. abstract="false"
  56969. static="true" final="true" visibility="public"
  56970. deprecated="not deprecated">
  56971. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  56972. abstract="false" native="false" synchronized="false"
  56973. static="true" final="false" visibility="public"
  56974. deprecated="not deprecated">
  56975. </method>
  56976. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  56977. abstract="false" native="false" synchronized="false"
  56978. static="true" final="false" visibility="public"
  56979. deprecated="not deprecated">
  56980. <param name="name" type="java.lang.String"/>
  56981. </method>
  56982. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  56983. transient="false" volatile="false"
  56984. static="true" final="true" visibility="public"
  56985. deprecated="not deprecated">
  56986. </field>
  56987. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56988. transient="false" volatile="false"
  56989. static="true" final="true" visibility="public"
  56990. deprecated="not deprecated">
  56991. </field>
  56992. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56993. transient="false" volatile="false"
  56994. static="true" final="true" visibility="public"
  56995. deprecated="not deprecated">
  56996. </field>
  56997. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56998. transient="false" volatile="false"
  56999. static="true" final="true" visibility="public"
  57000. deprecated="not deprecated">
  57001. </field>
  57002. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  57003. transient="false" volatile="false"
  57004. static="true" final="true" visibility="public"
  57005. deprecated="not deprecated">
  57006. </field>
  57007. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  57008. transient="false" volatile="false"
  57009. static="true" final="true" visibility="public"
  57010. deprecated="not deprecated">
  57011. </field>
  57012. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  57013. transient="false" volatile="false"
  57014. static="true" final="true" visibility="public"
  57015. deprecated="not deprecated">
  57016. </field>
  57017. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  57018. transient="false" volatile="false"
  57019. static="true" final="true" visibility="public"
  57020. deprecated="not deprecated">
  57021. </field>
  57022. </class>
  57023. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  57024. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  57025. <class name="TaskTracker" extends="java.lang.Object"
  57026. abstract="false"
  57027. static="false" final="false" visibility="public"
  57028. deprecated="not deprecated">
  57029. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  57030. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57031. <implements name="java.lang.Runnable"/>
  57032. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  57033. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  57034. static="false" final="false" visibility="public"
  57035. deprecated="not deprecated">
  57036. <exception name="IOException" type="java.io.IOException"/>
  57037. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57038. <doc>
  57039. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  57040. </doc>
  57041. </constructor>
  57042. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  57043. abstract="false" native="false" synchronized="false"
  57044. static="false" final="false" visibility="public"
  57045. deprecated="not deprecated">
  57046. </method>
  57047. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  57048. abstract="false" native="false" synchronized="false"
  57049. static="false" final="false" visibility="public"
  57050. deprecated="not deprecated">
  57051. </method>
  57052. <method name="getUserDir" return="java.lang.String"
  57053. abstract="false" native="false" synchronized="false"
  57054. static="true" final="false" visibility="public"
  57055. deprecated="not deprecated">
  57056. <param name="user" type="java.lang.String"/>
  57057. </method>
  57058. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  57059. abstract="false" native="false" synchronized="false"
  57060. static="true" final="false" visibility="public"
  57061. deprecated="not deprecated">
  57062. <param name="user" type="java.lang.String"/>
  57063. </method>
  57064. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  57065. abstract="false" native="false" synchronized="false"
  57066. static="true" final="false" visibility="public"
  57067. deprecated="not deprecated">
  57068. </method>
  57069. <method name="getJobCacheSubdir" return="java.lang.String"
  57070. abstract="false" native="false" synchronized="false"
  57071. static="true" final="false" visibility="public"
  57072. deprecated="not deprecated">
  57073. <param name="user" type="java.lang.String"/>
  57074. </method>
  57075. <method name="getLocalJobDir" return="java.lang.String"
  57076. abstract="false" native="false" synchronized="false"
  57077. static="true" final="false" visibility="public"
  57078. deprecated="not deprecated">
  57079. <param name="user" type="java.lang.String"/>
  57080. <param name="jobid" type="java.lang.String"/>
  57081. </method>
  57082. <method name="getJobJarFile" return="java.lang.String"
  57083. abstract="false" native="false" synchronized="false"
  57084. static="true" final="false" visibility="public"
  57085. deprecated="not deprecated">
  57086. <param name="user" type="java.lang.String"/>
  57087. <param name="jobid" type="java.lang.String"/>
  57088. </method>
  57089. <method name="getLocalTaskDir" return="java.lang.String"
  57090. abstract="false" native="false" synchronized="false"
  57091. static="true" final="false" visibility="public"
  57092. deprecated="not deprecated">
  57093. <param name="user" type="java.lang.String"/>
  57094. <param name="jobid" type="java.lang.String"/>
  57095. <param name="taskid" type="java.lang.String"/>
  57096. </method>
  57097. <method name="getLocalTaskDir" return="java.lang.String"
  57098. abstract="false" native="false" synchronized="false"
  57099. static="true" final="false" visibility="public"
  57100. deprecated="not deprecated">
  57101. <param name="user" type="java.lang.String"/>
  57102. <param name="jobid" type="java.lang.String"/>
  57103. <param name="taskid" type="java.lang.String"/>
  57104. <param name="isCleanupAttempt" type="boolean"/>
  57105. </method>
  57106. <method name="getProtocolVersion" return="long"
  57107. abstract="false" native="false" synchronized="false"
  57108. static="false" final="false" visibility="public"
  57109. deprecated="not deprecated">
  57110. <param name="protocol" type="java.lang.String"/>
  57111. <param name="clientVersion" type="long"/>
  57112. <exception name="IOException" type="java.io.IOException"/>
  57113. </method>
  57114. <method name="cleanupStorage"
  57115. abstract="false" native="false" synchronized="false"
  57116. static="false" final="false" visibility="public"
  57117. deprecated="not deprecated">
  57118. <exception name="IOException" type="java.io.IOException"/>
  57119. <doc>
  57120. <![CDATA[Removes all contents of temporary storage. Called upon
  57121. startup, to remove any leftovers from previous run.]]>
  57122. </doc>
  57123. </method>
  57124. <method name="launchTaskForJob"
  57125. abstract="false" native="false" synchronized="false"
  57126. static="false" final="false" visibility="protected"
  57127. deprecated="not deprecated">
  57128. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  57129. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  57130. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  57131. <exception name="IOException" type="java.io.IOException"/>
  57132. </method>
  57133. <method name="shutdown"
  57134. abstract="false" native="false" synchronized="true"
  57135. static="false" final="false" visibility="public"
  57136. deprecated="not deprecated">
  57137. <exception name="IOException" type="java.io.IOException"/>
  57138. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57139. </method>
  57140. <method name="close"
  57141. abstract="false" native="false" synchronized="true"
  57142. static="false" final="false" visibility="public"
  57143. deprecated="not deprecated">
  57144. <exception name="IOException" type="java.io.IOException"/>
  57145. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57146. <doc>
  57147. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  57148. any running tasks or threads, and cleanup disk space. A new TaskTracker
  57149. within the same process space might be restarted, so everything must be
  57150. clean.
  57151. @throws InterruptedException]]>
  57152. </doc>
  57153. </method>
  57154. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  57155. abstract="false" native="false" synchronized="false"
  57156. static="false" final="false" visibility="public"
  57157. deprecated="not deprecated">
  57158. <doc>
  57159. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  57160. for locating remote files.]]>
  57161. </doc>
  57162. </method>
  57163. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  57164. abstract="false" native="false" synchronized="true"
  57165. static="false" final="false" visibility="public"
  57166. deprecated="not deprecated">
  57167. <doc>
  57168. <![CDATA[Return the port at which the tasktracker bound to]]>
  57169. </doc>
  57170. </method>
  57171. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  57172. abstract="false" native="false" synchronized="false"
  57173. static="false" final="false" visibility="public"
  57174. deprecated="not deprecated">
  57175. </method>
  57176. <method name="run"
  57177. abstract="false" native="false" synchronized="false"
  57178. static="false" final="false" visibility="public"
  57179. deprecated="not deprecated">
  57180. <doc>
  57181. <![CDATA[The server retry loop.
  57182. This while-loop attempts to connect to the JobTracker. It only
  57183. loops when the old TaskTracker has gone bad (its state is
  57184. stale somehow) and we need to reinitialize everything.]]>
  57185. </doc>
  57186. </method>
  57187. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  57188. abstract="false" native="false" synchronized="true"
  57189. static="false" final="false" visibility="public"
  57190. deprecated="not deprecated">
  57191. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  57192. <exception name="IOException" type="java.io.IOException"/>
  57193. <doc>
  57194. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  57195. </doc>
  57196. </method>
  57197. <method name="statusUpdate" return="boolean"
  57198. abstract="false" native="false" synchronized="true"
  57199. static="false" final="false" visibility="public"
  57200. deprecated="not deprecated">
  57201. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57202. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57203. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57204. <exception name="IOException" type="java.io.IOException"/>
  57205. <doc>
  57206. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  57207. </doc>
  57208. </method>
  57209. <method name="reportDiagnosticInfo"
  57210. abstract="false" native="false" synchronized="true"
  57211. static="false" final="false" visibility="public"
  57212. deprecated="not deprecated">
  57213. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57214. <param name="info" type="java.lang.String"/>
  57215. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57216. <exception name="IOException" type="java.io.IOException"/>
  57217. <doc>
  57218. <![CDATA[Called when the task dies before completion, and we want to report back
  57219. diagnostic info]]>
  57220. </doc>
  57221. </method>
  57222. <method name="reportNextRecordRange"
  57223. abstract="false" native="false" synchronized="true"
  57224. static="false" final="false" visibility="public"
  57225. deprecated="not deprecated">
  57226. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57227. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  57228. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57229. <exception name="IOException" type="java.io.IOException"/>
  57230. </method>
  57231. <method name="ping" return="boolean"
  57232. abstract="false" native="false" synchronized="true"
  57233. static="false" final="false" visibility="public"
  57234. deprecated="not deprecated">
  57235. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57236. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57237. <exception name="IOException" type="java.io.IOException"/>
  57238. <doc>
  57239. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  57240. </doc>
  57241. </method>
  57242. <method name="commitPending"
  57243. abstract="false" native="false" synchronized="true"
  57244. static="false" final="false" visibility="public"
  57245. deprecated="not deprecated">
  57246. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57247. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57248. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57249. <exception name="IOException" type="java.io.IOException"/>
  57250. <doc>
  57251. <![CDATA[Task is reporting that it is in commit_pending
  57252. and it is waiting for the commit Response]]>
  57253. </doc>
  57254. </method>
  57255. <method name="canCommit" return="boolean"
  57256. abstract="false" native="false" synchronized="true"
  57257. static="false" final="false" visibility="public"
  57258. deprecated="not deprecated">
  57259. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57260. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57261. <exception name="IOException" type="java.io.IOException"/>
  57262. <doc>
  57263. <![CDATA[Child checking whether it can commit]]>
  57264. </doc>
  57265. </method>
  57266. <method name="done"
  57267. abstract="false" native="false" synchronized="true"
  57268. static="false" final="false" visibility="public"
  57269. deprecated="not deprecated">
  57270. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57271. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57272. <exception name="IOException" type="java.io.IOException"/>
  57273. <doc>
  57274. <![CDATA[The task is done.]]>
  57275. </doc>
  57276. </method>
  57277. <method name="shuffleError"
  57278. abstract="false" native="false" synchronized="true"
  57279. static="false" final="false" visibility="public"
  57280. deprecated="not deprecated">
  57281. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57282. <param name="message" type="java.lang.String"/>
  57283. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57284. <exception name="IOException" type="java.io.IOException"/>
  57285. <doc>
  57286. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  57287. </doc>
  57288. </method>
  57289. <method name="fsError"
  57290. abstract="false" native="false" synchronized="true"
  57291. static="false" final="false" visibility="public"
  57292. deprecated="not deprecated">
  57293. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57294. <param name="message" type="java.lang.String"/>
  57295. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57296. <exception name="IOException" type="java.io.IOException"/>
  57297. <doc>
  57298. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  57299. </doc>
  57300. </method>
  57301. <method name="fatalError"
  57302. abstract="false" native="false" synchronized="true"
  57303. static="false" final="false" visibility="public"
  57304. deprecated="not deprecated">
  57305. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57306. <param name="msg" type="java.lang.String"/>
  57307. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57308. <exception name="IOException" type="java.io.IOException"/>
  57309. <doc>
  57310. <![CDATA[A child task had a fatal error. Kill the task.]]>
  57311. </doc>
  57312. </method>
  57313. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  57314. abstract="false" native="false" synchronized="true"
  57315. static="false" final="false" visibility="public"
  57316. deprecated="not deprecated">
  57317. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  57318. <param name="fromEventId" type="int"/>
  57319. <param name="maxLocs" type="int"/>
  57320. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57321. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57322. <exception name="IOException" type="java.io.IOException"/>
  57323. </method>
  57324. <method name="mapOutputLost"
  57325. abstract="false" native="false" synchronized="true"
  57326. static="false" final="false" visibility="public"
  57327. deprecated="not deprecated">
  57328. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57329. <param name="errorMsg" type="java.lang.String"/>
  57330. <exception name="IOException" type="java.io.IOException"/>
  57331. <doc>
  57332. <![CDATA[A completed map task's output has been lost.]]>
  57333. </doc>
  57334. </method>
  57335. <method name="isIdle" return="boolean"
  57336. abstract="false" native="false" synchronized="true"
  57337. static="false" final="false" visibility="public"
  57338. deprecated="not deprecated">
  57339. <doc>
  57340. <![CDATA[Is this task tracker idle?
  57341. @return has this task tracker finished and cleaned up all of its tasks?]]>
  57342. </doc>
  57343. </method>
  57344. <method name="main"
  57345. abstract="false" native="false" synchronized="false"
  57346. static="true" final="false" visibility="public"
  57347. deprecated="not deprecated">
  57348. <param name="argv" type="java.lang.String[]"/>
  57349. <exception name="Exception" type="java.lang.Exception"/>
  57350. <doc>
  57351. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  57352. </doc>
  57353. </method>
  57354. <method name="isTaskMemoryManagerEnabled" return="boolean"
  57355. abstract="false" native="false" synchronized="false"
  57356. static="false" final="false" visibility="public"
  57357. deprecated="not deprecated">
  57358. <doc>
  57359. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  57360. @return true if enabled, false otherwise.]]>
  57361. </doc>
  57362. </method>
  57363. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  57364. abstract="false" native="false" synchronized="false"
  57365. static="false" final="false" visibility="public"
  57366. deprecated="not deprecated">
  57367. </method>
  57368. <method name="getHostname" return="java.lang.String"
  57369. abstract="false" native="false" synchronized="false"
  57370. static="false" final="false" visibility="public"
  57371. deprecated="not deprecated">
  57372. </method>
  57373. <method name="getVersion" return="java.lang.String"
  57374. abstract="false" native="false" synchronized="false"
  57375. static="false" final="false" visibility="public"
  57376. deprecated="not deprecated">
  57377. </method>
  57378. <method name="getConfigVersion" return="java.lang.String"
  57379. abstract="false" native="false" synchronized="false"
  57380. static="false" final="false" visibility="public"
  57381. deprecated="not deprecated">
  57382. </method>
  57383. <method name="getJobTrackerUrl" return="java.lang.String"
  57384. abstract="false" native="false" synchronized="false"
  57385. static="false" final="false" visibility="public"
  57386. deprecated="not deprecated">
  57387. </method>
  57388. <method name="getRpcPort" return="int"
  57389. abstract="false" native="false" synchronized="false"
  57390. static="false" final="false" visibility="public"
  57391. deprecated="not deprecated">
  57392. </method>
  57393. <method name="getHttpPort" return="int"
  57394. abstract="false" native="false" synchronized="false"
  57395. static="false" final="false" visibility="public"
  57396. deprecated="not deprecated">
  57397. </method>
  57398. <method name="isHealthy" return="boolean"
  57399. abstract="false" native="false" synchronized="false"
  57400. static="false" final="false" visibility="public"
  57401. deprecated="not deprecated">
  57402. </method>
  57403. <method name="getTasksInfoJson" return="java.lang.String"
  57404. abstract="false" native="false" synchronized="false"
  57405. static="false" final="false" visibility="public"
  57406. deprecated="not deprecated">
  57407. </method>
  57408. <method name="updatePrivateDistributedCacheSizes"
  57409. abstract="false" native="false" synchronized="false"
  57410. static="false" final="false" visibility="public"
  57411. deprecated="not deprecated">
  57412. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  57413. <param name="sizes" type="long[]"/>
  57414. <exception name="IOException" type="java.io.IOException"/>
  57415. </method>
  57416. <field name="LOG" type="org.apache.commons.logging.Log"
  57417. transient="false" volatile="false"
  57418. static="true" final="true" visibility="public"
  57419. deprecated="not deprecated">
  57420. </field>
  57421. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  57422. transient="false" volatile="false"
  57423. static="true" final="true" visibility="public"
  57424. deprecated="not deprecated">
  57425. </field>
  57426. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  57427. transient="false" volatile="false"
  57428. static="true" final="true" visibility="public"
  57429. deprecated="not deprecated">
  57430. </field>
  57431. <field name="SUBDIR" type="java.lang.String"
  57432. transient="false" volatile="false"
  57433. static="true" final="true" visibility="public"
  57434. deprecated="not deprecated">
  57435. </field>
  57436. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  57437. transient="false" volatile="false"
  57438. static="true" final="true" visibility="public"
  57439. deprecated="not deprecated">
  57440. </field>
  57441. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  57442. transient="false" volatile="false"
  57443. static="true" final="true" visibility="public"
  57444. deprecated="not deprecated">
  57445. </field>
  57446. <field name="TT_USER_NAME" type="java.lang.String"
  57447. transient="false" volatile="false"
  57448. static="true" final="true" visibility="public"
  57449. deprecated="not deprecated">
  57450. </field>
  57451. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  57452. transient="false" volatile="false"
  57453. static="true" final="true" visibility="public"
  57454. deprecated="not deprecated">
  57455. </field>
  57456. <doc>
  57457. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  57458. in a networked environment. It contacts the JobTracker
  57459. for Task assignments and reporting results.]]>
  57460. </doc>
  57461. </class>
  57462. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  57463. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  57464. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  57465. abstract="false"
  57466. static="true" final="false" visibility="public"
  57467. deprecated="not deprecated">
  57468. <constructor name="TaskTracker.MapOutputServlet"
  57469. static="false" final="false" visibility="public"
  57470. deprecated="not deprecated">
  57471. </constructor>
  57472. <method name="doGet"
  57473. abstract="false" native="false" synchronized="false"
  57474. static="false" final="false" visibility="public"
  57475. deprecated="not deprecated">
  57476. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  57477. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  57478. <exception name="ServletException" type="javax.servlet.ServletException"/>
  57479. <exception name="IOException" type="java.io.IOException"/>
  57480. </method>
  57481. <doc>
  57482. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  57483. to other nodes.]]>
  57484. </doc>
  57485. </class>
  57486. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  57487. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  57488. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  57489. abstract="false"
  57490. static="false" final="false" visibility="public"
  57491. deprecated="not deprecated">
  57492. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  57493. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  57494. static="false" final="false" visibility="public"
  57495. deprecated="not deprecated">
  57496. </constructor>
  57497. <method name="getMetrics"
  57498. abstract="false" native="false" synchronized="false"
  57499. static="false" final="false" visibility="public"
  57500. deprecated="not deprecated">
  57501. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  57502. <param name="all" type="boolean"/>
  57503. </method>
  57504. <method name="completeTask"
  57505. abstract="false" native="false" synchronized="false"
  57506. static="false" final="false" visibility="public"
  57507. deprecated="not deprecated">
  57508. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57509. </method>
  57510. <method name="timedoutTask"
  57511. abstract="false" native="false" synchronized="false"
  57512. static="false" final="false" visibility="public"
  57513. deprecated="not deprecated">
  57514. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57515. </method>
  57516. <method name="taskFailedPing"
  57517. abstract="false" native="false" synchronized="false"
  57518. static="false" final="false" visibility="public"
  57519. deprecated="not deprecated">
  57520. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57521. </method>
  57522. <doc>
  57523. <![CDATA[Instrumentation for metrics v2]]>
  57524. </doc>
  57525. </class>
  57526. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  57527. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  57528. <interface name="TaskTrackerMXBean" abstract="true"
  57529. static="false" final="false" visibility="public"
  57530. deprecated="not deprecated">
  57531. <method name="getHostname" return="java.lang.String"
  57532. abstract="false" native="false" synchronized="false"
  57533. static="false" final="false" visibility="public"
  57534. deprecated="not deprecated">
  57535. <doc>
  57536. <![CDATA[@return the hostname of the tasktracker]]>
  57537. </doc>
  57538. </method>
  57539. <method name="getVersion" return="java.lang.String"
  57540. abstract="false" native="false" synchronized="false"
  57541. static="false" final="false" visibility="public"
  57542. deprecated="not deprecated">
  57543. <doc>
  57544. <![CDATA[@return the version of the code base]]>
  57545. </doc>
  57546. </method>
  57547. <method name="getConfigVersion" return="java.lang.String"
  57548. abstract="false" native="false" synchronized="false"
  57549. static="false" final="false" visibility="public"
  57550. deprecated="not deprecated">
  57551. <doc>
  57552. <![CDATA[@return the config version (from a config properties)]]>
  57553. </doc>
  57554. </method>
  57555. <method name="getJobTrackerUrl" return="java.lang.String"
  57556. abstract="false" native="false" synchronized="false"
  57557. static="false" final="false" visibility="public"
  57558. deprecated="not deprecated">
  57559. <doc>
  57560. <![CDATA[@return the URL of the jobtracker]]>
  57561. </doc>
  57562. </method>
  57563. <method name="getRpcPort" return="int"
  57564. abstract="false" native="false" synchronized="false"
  57565. static="false" final="false" visibility="public"
  57566. deprecated="not deprecated">
  57567. <doc>
  57568. <![CDATA[@return the RPC port of the tasktracker]]>
  57569. </doc>
  57570. </method>
  57571. <method name="getHttpPort" return="int"
  57572. abstract="false" native="false" synchronized="false"
  57573. static="false" final="false" visibility="public"
  57574. deprecated="not deprecated">
  57575. <doc>
  57576. <![CDATA[@return the HTTP port of the tasktracker]]>
  57577. </doc>
  57578. </method>
  57579. <method name="isHealthy" return="boolean"
  57580. abstract="false" native="false" synchronized="false"
  57581. static="false" final="false" visibility="public"
  57582. deprecated="not deprecated">
  57583. <doc>
  57584. <![CDATA[@return the health status of the tasktracker]]>
  57585. </doc>
  57586. </method>
  57587. <method name="getTasksInfoJson" return="java.lang.String"
  57588. abstract="false" native="false" synchronized="false"
  57589. static="false" final="false" visibility="public"
  57590. deprecated="not deprecated">
  57591. <doc>
  57592. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  57593. </doc>
  57594. </method>
  57595. <doc>
  57596. <![CDATA[MXBean interface for TaskTracker]]>
  57597. </doc>
  57598. </interface>
  57599. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  57600. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  57601. <class name="TaskTrackerStatus" extends="java.lang.Object"
  57602. abstract="false"
  57603. static="false" final="false" visibility="public"
  57604. deprecated="not deprecated">
  57605. <implements name="org.apache.hadoop.io.Writable"/>
  57606. <constructor name="TaskTrackerStatus"
  57607. static="false" final="false" visibility="public"
  57608. deprecated="not deprecated">
  57609. </constructor>
  57610. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int"
  57611. static="false" final="false" visibility="public"
  57612. deprecated="not deprecated">
  57613. </constructor>
  57614. <method name="getTrackerName" return="java.lang.String"
  57615. abstract="false" native="false" synchronized="false"
  57616. static="false" final="false" visibility="public"
  57617. deprecated="not deprecated">
  57618. </method>
  57619. <method name="getHost" return="java.lang.String"
  57620. abstract="false" native="false" synchronized="false"
  57621. static="false" final="false" visibility="public"
  57622. deprecated="not deprecated">
  57623. </method>
  57624. <method name="getHttpPort" return="int"
  57625. abstract="false" native="false" synchronized="false"
  57626. static="false" final="false" visibility="public"
  57627. deprecated="not deprecated">
  57628. <doc>
  57629. <![CDATA[Get the port that this task tracker is serving http requests on.
  57630. @return the http port]]>
  57631. </doc>
  57632. </method>
  57633. <method name="getFailures" return="int"
  57634. abstract="false" native="false" synchronized="false"
  57635. static="false" final="false" visibility="public"
  57636. deprecated="not deprecated">
  57637. <doc>
  57638. <![CDATA[Get the number of tasks that have failed on this tracker.
  57639. @return The number of failed tasks]]>
  57640. </doc>
  57641. </method>
  57642. <method name="getTaskReports" return="java.util.List"
  57643. abstract="false" native="false" synchronized="false"
  57644. static="false" final="false" visibility="public"
  57645. deprecated="not deprecated">
  57646. <doc>
  57647. <![CDATA[Get the current tasks at the TaskTracker.
  57648. Tasks are tracked by a {@link TaskStatus} object.
  57649. @return a list of {@link TaskStatus} representing
  57650. the current tasks at the TaskTracker.]]>
  57651. </doc>
  57652. </method>
  57653. <method name="countMapTasks" return="int"
  57654. abstract="false" native="false" synchronized="false"
  57655. static="false" final="false" visibility="public"
  57656. deprecated="not deprecated">
  57657. <doc>
  57658. <![CDATA[Get the number of running map tasks.
  57659. @return the number of running map tasks]]>
  57660. </doc>
  57661. </method>
  57662. <method name="countOccupiedMapSlots" return="int"
  57663. abstract="false" native="false" synchronized="false"
  57664. static="false" final="false" visibility="public"
  57665. deprecated="not deprecated">
  57666. <doc>
  57667. <![CDATA[Get the number of occupied map slots.
  57668. @return the number of occupied map slots]]>
  57669. </doc>
  57670. </method>
  57671. <method name="getAvailableMapSlots" return="int"
  57672. abstract="false" native="false" synchronized="false"
  57673. static="false" final="false" visibility="public"
  57674. deprecated="not deprecated">
  57675. <doc>
  57676. <![CDATA[Get available map slots.
  57677. @return available map slots]]>
  57678. </doc>
  57679. </method>
  57680. <method name="countReduceTasks" return="int"
  57681. abstract="false" native="false" synchronized="false"
  57682. static="false" final="false" visibility="public"
  57683. deprecated="not deprecated">
  57684. <doc>
  57685. <![CDATA[Get the number of running reduce tasks.
  57686. @return the number of running reduce tasks]]>
  57687. </doc>
  57688. </method>
  57689. <method name="countOccupiedReduceSlots" return="int"
  57690. abstract="false" native="false" synchronized="false"
  57691. static="false" final="false" visibility="public"
  57692. deprecated="not deprecated">
  57693. <doc>
  57694. <![CDATA[Get the number of occupied reduce slots.
  57695. @return the number of occupied reduce slots]]>
  57696. </doc>
  57697. </method>
  57698. <method name="getAvailableReduceSlots" return="int"
  57699. abstract="false" native="false" synchronized="false"
  57700. static="false" final="false" visibility="public"
  57701. deprecated="not deprecated">
  57702. <doc>
  57703. <![CDATA[Get available reduce slots.
  57704. @return available reduce slots]]>
  57705. </doc>
  57706. </method>
  57707. <method name="getLastSeen" return="long"
  57708. abstract="false" native="false" synchronized="false"
  57709. static="false" final="false" visibility="public"
  57710. deprecated="not deprecated">
  57711. </method>
  57712. <method name="setLastSeen"
  57713. abstract="false" native="false" synchronized="false"
  57714. static="false" final="false" visibility="public"
  57715. deprecated="not deprecated">
  57716. <param name="lastSeen" type="long"/>
  57717. </method>
  57718. <method name="getMaxMapSlots" return="int"
  57719. abstract="false" native="false" synchronized="false"
  57720. static="false" final="false" visibility="public"
  57721. deprecated="not deprecated">
  57722. <doc>
  57723. <![CDATA[Get the maximum map slots for this node.
  57724. @return the maximum map slots for this node]]>
  57725. </doc>
  57726. </method>
  57727. <method name="getMaxReduceSlots" return="int"
  57728. abstract="false" native="false" synchronized="false"
  57729. static="false" final="false" visibility="public"
  57730. deprecated="not deprecated">
  57731. <doc>
  57732. <![CDATA[Get the maximum reduce slots for this node.
  57733. @return the maximum reduce slots for this node]]>
  57734. </doc>
  57735. </method>
  57736. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  57737. abstract="false" native="false" synchronized="false"
  57738. static="false" final="false" visibility="public"
  57739. deprecated="not deprecated">
  57740. <doc>
  57741. <![CDATA[Returns health status of the task tracker.
  57742. @return health status of Task Tracker]]>
  57743. </doc>
  57744. </method>
  57745. <method name="write"
  57746. abstract="false" native="false" synchronized="false"
  57747. static="false" final="false" visibility="public"
  57748. deprecated="not deprecated">
  57749. <param name="out" type="java.io.DataOutput"/>
  57750. <exception name="IOException" type="java.io.IOException"/>
  57751. </method>
  57752. <method name="readFields"
  57753. abstract="false" native="false" synchronized="false"
  57754. static="false" final="false" visibility="public"
  57755. deprecated="not deprecated">
  57756. <param name="in" type="java.io.DataInput"/>
  57757. <exception name="IOException" type="java.io.IOException"/>
  57758. </method>
  57759. <field name="LOG" type="org.apache.commons.logging.Log"
  57760. transient="false" volatile="false"
  57761. static="true" final="true" visibility="public"
  57762. deprecated="not deprecated">
  57763. </field>
  57764. <field name="UNAVAILABLE" type="int"
  57765. transient="false" volatile="false"
  57766. static="true" final="true" visibility="public"
  57767. deprecated="not deprecated">
  57768. </field>
  57769. <doc>
  57770. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  57771. info on a TaskTracker. The JobTracker maintains a set
  57772. of the most recent TaskTrackerStatus objects for each
  57773. unique TaskTracker it knows about.
  57774. This is NOT a public interface!]]>
  57775. </doc>
  57776. </class>
  57777. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  57778. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  57779. <interface name="TaskUmbilicalProtocol" abstract="true"
  57780. static="false" final="false" visibility="public"
  57781. deprecated="not deprecated">
  57782. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  57783. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  57784. abstract="false" native="false" synchronized="false"
  57785. static="false" final="false" visibility="public"
  57786. deprecated="not deprecated">
  57787. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  57788. <exception name="IOException" type="java.io.IOException"/>
  57789. <doc>
  57790. <![CDATA[Called when a child task process starts, to get its task.
  57791. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  57792. launched it
  57793. @return Task object
  57794. @throws IOException]]>
  57795. </doc>
  57796. </method>
  57797. <method name="statusUpdate" return="boolean"
  57798. abstract="false" native="false" synchronized="false"
  57799. static="false" final="false" visibility="public"
  57800. deprecated="not deprecated">
  57801. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57802. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57803. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57804. <exception name="IOException" type="java.io.IOException"/>
  57805. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57806. <doc>
  57807. <![CDATA[Report child's progress to parent.
  57808. @param taskId task-id of the child
  57809. @param taskStatus status of the child
  57810. @param jvmContext context the jvmContext running the task.
  57811. @throws IOException
  57812. @throws InterruptedException
  57813. @return True if the task is known]]>
  57814. </doc>
  57815. </method>
  57816. <method name="reportDiagnosticInfo"
  57817. abstract="false" native="false" synchronized="false"
  57818. static="false" final="false" visibility="public"
  57819. deprecated="not deprecated">
  57820. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57821. <param name="trace" type="java.lang.String"/>
  57822. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57823. <exception name="IOException" type="java.io.IOException"/>
  57824. <doc>
  57825. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  57826. such messages are held in the job tracker.
  57827. @param taskid the id of the task involved
  57828. @param trace the text to report
  57829. @param jvmContext context the jvmContext running the task.]]>
  57830. </doc>
  57831. </method>
  57832. <method name="reportNextRecordRange"
  57833. abstract="false" native="false" synchronized="false"
  57834. static="false" final="false" visibility="public"
  57835. deprecated="not deprecated">
  57836. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57837. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  57838. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57839. <exception name="IOException" type="java.io.IOException"/>
  57840. <doc>
  57841. <![CDATA[Report the record range which is going to process next by the Task.
  57842. @param taskid the id of the task involved
  57843. @param range the range of record sequence nos
  57844. @param jvmContext context the jvmContext running the task.
  57845. @throws IOException]]>
  57846. </doc>
  57847. </method>
  57848. <method name="ping" return="boolean"
  57849. abstract="false" native="false" synchronized="false"
  57850. static="false" final="false" visibility="public"
  57851. deprecated="not deprecated">
  57852. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57853. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57854. <exception name="IOException" type="java.io.IOException"/>
  57855. <doc>
  57856. <![CDATA[Periodically called by child to check if parent is still alive.
  57857. @param taskid the id of the task involved
  57858. @param jvmContext context the jvmContext running the task.
  57859. @return True if the task is known]]>
  57860. </doc>
  57861. </method>
  57862. <method name="done"
  57863. abstract="false" native="false" synchronized="false"
  57864. static="false" final="false" visibility="public"
  57865. deprecated="not deprecated">
  57866. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57867. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57868. <exception name="IOException" type="java.io.IOException"/>
  57869. <doc>
  57870. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  57871. the task process exits without calling this.
  57872. @param taskid task's id
  57873. @param jvmContext context the jvmContext running the task.]]>
  57874. </doc>
  57875. </method>
  57876. <method name="commitPending"
  57877. abstract="false" native="false" synchronized="false"
  57878. static="false" final="false" visibility="public"
  57879. deprecated="not deprecated">
  57880. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57881. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57882. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57883. <exception name="IOException" type="java.io.IOException"/>
  57884. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57885. <doc>
  57886. <![CDATA[Report that the task is complete, but its commit is pending.
  57887. @param taskId task's id
  57888. @param taskStatus status of the child
  57889. @param jvmContext context the jvmContext running the task.
  57890. @throws IOException]]>
  57891. </doc>
  57892. </method>
  57893. <method name="canCommit" return="boolean"
  57894. abstract="false" native="false" synchronized="false"
  57895. static="false" final="false" visibility="public"
  57896. deprecated="not deprecated">
  57897. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57898. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57899. <exception name="IOException" type="java.io.IOException"/>
  57900. <doc>
  57901. <![CDATA[Polling to know whether the task can go-ahead with commit
  57902. @param taskid
  57903. @param jvmContext context the jvmContext running the task.
  57904. @return true/false
  57905. @throws IOException]]>
  57906. </doc>
  57907. </method>
  57908. <method name="shuffleError"
  57909. abstract="false" native="false" synchronized="false"
  57910. static="false" final="false" visibility="public"
  57911. deprecated="not deprecated">
  57912. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57913. <param name="message" type="java.lang.String"/>
  57914. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57915. <exception name="IOException" type="java.io.IOException"/>
  57916. <doc>
  57917. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  57918. </doc>
  57919. </method>
  57920. <method name="fsError"
  57921. abstract="false" native="false" synchronized="false"
  57922. static="false" final="false" visibility="public"
  57923. deprecated="not deprecated">
  57924. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57925. <param name="message" type="java.lang.String"/>
  57926. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57927. <exception name="IOException" type="java.io.IOException"/>
  57928. <doc>
  57929. <![CDATA[Report that the task encounted a local filesystem error.]]>
  57930. </doc>
  57931. </method>
  57932. <method name="fatalError"
  57933. abstract="false" native="false" synchronized="false"
  57934. static="false" final="false" visibility="public"
  57935. deprecated="not deprecated">
  57936. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57937. <param name="message" type="java.lang.String"/>
  57938. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57939. <exception name="IOException" type="java.io.IOException"/>
  57940. <doc>
  57941. <![CDATA[Report that the task encounted a fatal error.]]>
  57942. </doc>
  57943. </method>
  57944. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  57945. abstract="false" native="false" synchronized="false"
  57946. static="false" final="false" visibility="public"
  57947. deprecated="not deprecated">
  57948. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  57949. <param name="fromIndex" type="int"/>
  57950. <param name="maxLocs" type="int"/>
  57951. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57952. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57953. <exception name="IOException" type="java.io.IOException"/>
  57954. <doc>
  57955. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  57956. Returns an update centered around the map-task-completion-events.
  57957. The update also piggybacks the information whether the events copy at the
  57958. task-tracker has changed or not. This will trigger some action at the
  57959. child-process.
  57960. @param jobId the reducer job id
  57961. @param fromIndex the index starting from which the locations should be
  57962. fetched
  57963. @param maxLocs the max number of locations to fetch
  57964. @param id The attempt id of the task that is trying to communicate
  57965. @return A {@link MapTaskCompletionEventsUpdate}]]>
  57966. </doc>
  57967. </method>
  57968. <method name="updatePrivateDistributedCacheSizes"
  57969. abstract="false" native="false" synchronized="false"
  57970. static="false" final="false" visibility="public"
  57971. deprecated="not deprecated">
  57972. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  57973. <param name="sizes" type="long[]"/>
  57974. <exception name="IOException" type="java.io.IOException"/>
  57975. <doc>
  57976. <![CDATA[The job initializer needs to report the sizes of the archive
  57977. objects and directories in the private distributed cache.
  57978. @param jobId the job to update
  57979. @param sizes the array of sizes that were computed
  57980. @throws IOException]]>
  57981. </doc>
  57982. </method>
  57983. <field name="versionID" type="long"
  57984. transient="false" volatile="false"
  57985. static="true" final="true" visibility="public"
  57986. deprecated="not deprecated">
  57987. <doc>
  57988. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  57989. Changed version to 3 to have progress() return a boolean
  57990. Changed the version to 4, since we have replaced
  57991. TaskUmbilicalProtocol.progress(String, float, String,
  57992. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  57993. with statusUpdate(String, TaskStatus)
  57994. Version 5 changed counters representation for HADOOP-2248
  57995. Version 6 changes the TaskStatus representation for HADOOP-2208
  57996. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  57997. or not the task's output needs to be promoted.
  57998. Version 8 changes {job|tip|task}id's to use their corresponding
  57999. objects rather than strings.
  58000. Version 9 changes the counter representation for HADOOP-1915
  58001. Version 10 changed the TaskStatus format and added reportNextRecordRange
  58002. for HADOOP-153
  58003. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  58004. Version 12 getMapCompletionEvents() now also indicates if the events are
  58005. stale or not. Hence the return type is a class that
  58006. encapsulates the events and whether to reset events index.
  58007. Version 13 changed the getTask method signature for HADOOP-249
  58008. Version 14 changed the getTask method signature for HADOOP-4232
  58009. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  58010. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  58011. Version 17 Change in signature of getTask() for HADOOP-5488
  58012. Version 18 Added fatalError for child to communicate fatal errors to TT
  58013. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  58014. </doc>
  58015. </field>
  58016. <doc>
  58017. <![CDATA[Protocol that task child process uses to contact its parent process. The
  58018. parent is a daemon which which polls the central master for a new map or
  58019. reduce task and runs it as a child process. All communication between child
  58020. and parent is via this protocol.]]>
  58021. </doc>
  58022. </interface>
  58023. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  58024. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  58025. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  58026. abstract="false"
  58027. static="false" final="false" visibility="public"
  58028. deprecated="not deprecated">
  58029. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  58030. <constructor name="TextInputFormat"
  58031. static="false" final="false" visibility="public"
  58032. deprecated="not deprecated">
  58033. </constructor>
  58034. <method name="configure"
  58035. abstract="false" native="false" synchronized="false"
  58036. static="false" final="false" visibility="public"
  58037. deprecated="not deprecated">
  58038. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  58039. </method>
  58040. <method name="isSplitable" return="boolean"
  58041. abstract="false" native="false" synchronized="false"
  58042. static="false" final="false" visibility="protected"
  58043. deprecated="not deprecated">
  58044. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  58045. <param name="file" type="org.apache.hadoop.fs.Path"/>
  58046. </method>
  58047. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  58048. abstract="false" native="false" synchronized="false"
  58049. static="false" final="false" visibility="public"
  58050. deprecated="not deprecated">
  58051. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  58052. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58053. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58054. <exception name="IOException" type="java.io.IOException"/>
  58055. </method>
  58056. <doc>
  58057. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  58058. Either linefeed or carriage-return are used to signal end of line. Keys are
  58059. the position in the file, and values are the line of text..]]>
  58060. </doc>
  58061. </class>
  58062. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  58063. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  58064. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  58065. abstract="false"
  58066. static="false" final="false" visibility="public"
  58067. deprecated="not deprecated">
  58068. <constructor name="TextOutputFormat"
  58069. static="false" final="false" visibility="public"
  58070. deprecated="not deprecated">
  58071. </constructor>
  58072. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  58073. abstract="false" native="false" synchronized="false"
  58074. static="false" final="false" visibility="public"
  58075. deprecated="not deprecated">
  58076. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  58077. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58078. <param name="name" type="java.lang.String"/>
  58079. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  58080. <exception name="IOException" type="java.io.IOException"/>
  58081. </method>
  58082. <doc>
  58083. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  58084. </doc>
  58085. </class>
  58086. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  58087. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  58088. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  58089. abstract="false"
  58090. static="true" final="false" visibility="protected"
  58091. deprecated="not deprecated">
  58092. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  58093. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  58094. static="false" final="false" visibility="public"
  58095. deprecated="not deprecated">
  58096. </constructor>
  58097. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  58098. static="false" final="false" visibility="public"
  58099. deprecated="not deprecated">
  58100. </constructor>
  58101. <method name="write"
  58102. abstract="false" native="false" synchronized="true"
  58103. static="false" final="false" visibility="public"
  58104. deprecated="not deprecated">
  58105. <param name="key" type="java.lang.Object"/>
  58106. <param name="value" type="java.lang.Object"/>
  58107. <exception name="IOException" type="java.io.IOException"/>
  58108. </method>
  58109. <method name="close"
  58110. abstract="false" native="false" synchronized="true"
  58111. static="false" final="false" visibility="public"
  58112. deprecated="not deprecated">
  58113. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58114. <exception name="IOException" type="java.io.IOException"/>
  58115. </method>
  58116. <field name="out" type="java.io.DataOutputStream"
  58117. transient="false" volatile="false"
  58118. static="false" final="false" visibility="protected"
  58119. deprecated="not deprecated">
  58120. </field>
  58121. </class>
  58122. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  58123. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  58124. <class name="TIPStatus" extends="java.lang.Enum"
  58125. abstract="false"
  58126. static="false" final="true" visibility="public"
  58127. deprecated="not deprecated">
  58128. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  58129. abstract="false" native="false" synchronized="false"
  58130. static="true" final="false" visibility="public"
  58131. deprecated="not deprecated">
  58132. </method>
  58133. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  58134. abstract="false" native="false" synchronized="false"
  58135. static="true" final="false" visibility="public"
  58136. deprecated="not deprecated">
  58137. <param name="name" type="java.lang.String"/>
  58138. </method>
  58139. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  58140. transient="false" volatile="false"
  58141. static="true" final="true" visibility="public"
  58142. deprecated="not deprecated">
  58143. </field>
  58144. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  58145. transient="false" volatile="false"
  58146. static="true" final="true" visibility="public"
  58147. deprecated="not deprecated">
  58148. </field>
  58149. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  58150. transient="false" volatile="false"
  58151. static="true" final="true" visibility="public"
  58152. deprecated="not deprecated">
  58153. </field>
  58154. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  58155. transient="false" volatile="false"
  58156. static="true" final="true" visibility="public"
  58157. deprecated="not deprecated">
  58158. </field>
  58159. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  58160. transient="false" volatile="false"
  58161. static="true" final="true" visibility="public"
  58162. deprecated="not deprecated">
  58163. </field>
  58164. <doc>
  58165. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  58166. </doc>
  58167. </class>
  58168. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  58169. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  58170. <class name="UserLogCleaner" extends="java.lang.Thread"
  58171. abstract="false"
  58172. static="false" final="false" visibility="public"
  58173. deprecated="not deprecated">
  58174. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  58175. static="false" final="false" visibility="public"
  58176. deprecated="not deprecated">
  58177. <exception name="IOException" type="java.io.IOException"/>
  58178. </constructor>
  58179. <method name="run"
  58180. abstract="false" native="false" synchronized="false"
  58181. static="false" final="false" visibility="public"
  58182. deprecated="not deprecated">
  58183. </method>
  58184. <method name="deleteJobLogs"
  58185. abstract="false" native="false" synchronized="false"
  58186. static="false" final="false" visibility="public"
  58187. deprecated="not deprecated">
  58188. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  58189. <exception name="IOException" type="java.io.IOException"/>
  58190. </method>
  58191. <method name="addOldUserLogsForDeletion"
  58192. abstract="false" native="false" synchronized="false"
  58193. static="false" final="false" visibility="public"
  58194. deprecated="not deprecated">
  58195. <param name="loc" type="java.io.File"/>
  58196. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  58197. <exception name="IOException" type="java.io.IOException"/>
  58198. <doc>
  58199. <![CDATA[Adds the job log directories for deletion with default retain hours.
  58200. Deletes all other directories, if any.
  58201. @param loc location of log directory
  58202. @param conf
  58203. @throws IOException]]>
  58204. </doc>
  58205. </method>
  58206. <method name="clearOldUserLogs"
  58207. abstract="false" native="false" synchronized="false"
  58208. static="false" final="false" visibility="public"
  58209. deprecated="not deprecated">
  58210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  58211. <exception name="IOException" type="java.io.IOException"/>
  58212. <doc>
  58213. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  58214. reinit/restart of the TaskTracker.
  58215. @param conf
  58216. @throws IOException]]>
  58217. </doc>
  58218. </method>
  58219. <method name="markJobLogsForDeletion"
  58220. abstract="false" native="false" synchronized="false"
  58221. static="false" final="false" visibility="public"
  58222. deprecated="not deprecated">
  58223. <param name="jobCompletionTime" type="long"/>
  58224. <param name="retainHours" type="int"/>
  58225. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  58226. <doc>
  58227. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  58228. retain hours.
  58229. @param jobCompletionTime
  58230. job completion time in millis
  58231. @param retainHours
  58232. the user-log retain hours for the job
  58233. @param jobid
  58234. JobID for which user logs should be deleted]]>
  58235. </doc>
  58236. </method>
  58237. <method name="unmarkJobFromLogDeletion"
  58238. abstract="false" native="false" synchronized="false"
  58239. static="false" final="false" visibility="public"
  58240. deprecated="not deprecated">
  58241. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  58242. <doc>
  58243. <![CDATA[Remove job from user log deletion.
  58244. @param jobid]]>
  58245. </doc>
  58246. </method>
  58247. <doc>
  58248. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  58249. </doc>
  58250. </class>
  58251. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  58252. <!-- start class org.apache.hadoop.mapred.Utils -->
  58253. <class name="Utils" extends="java.lang.Object"
  58254. abstract="false"
  58255. static="false" final="false" visibility="public"
  58256. deprecated="not deprecated">
  58257. <constructor name="Utils"
  58258. static="false" final="false" visibility="public"
  58259. deprecated="not deprecated">
  58260. </constructor>
  58261. <doc>
  58262. <![CDATA[A utility class. It provides
  58263. - file-util
  58264. - A path filter utility to filter out output/part files in the output dir]]>
  58265. </doc>
  58266. </class>
  58267. <!-- end class org.apache.hadoop.mapred.Utils -->
  58268. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  58269. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  58270. abstract="false"
  58271. static="true" final="false" visibility="public"
  58272. deprecated="not deprecated">
  58273. <constructor name="Utils.OutputFileUtils"
  58274. static="false" final="false" visibility="public"
  58275. deprecated="not deprecated">
  58276. </constructor>
  58277. </class>
  58278. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  58279. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  58280. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  58281. abstract="false"
  58282. static="true" final="false" visibility="public"
  58283. deprecated="not deprecated">
  58284. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  58285. static="false" final="false" visibility="public"
  58286. deprecated="not deprecated">
  58287. </constructor>
  58288. <method name="accept" return="boolean"
  58289. abstract="false" native="false" synchronized="false"
  58290. static="false" final="false" visibility="public"
  58291. deprecated="not deprecated">
  58292. <param name="path" type="org.apache.hadoop.fs.Path"/>
  58293. </method>
  58294. <doc>
  58295. <![CDATA[This class filters output(part) files from the given directory
  58296. It does not accept files with filenames _logs and _SUCCESS.
  58297. This can be used to list paths of output directory as follows:
  58298. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  58299. new OutputFilesFilter()));]]>
  58300. </doc>
  58301. </class>
  58302. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  58303. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  58304. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  58305. abstract="false"
  58306. static="true" final="false" visibility="public"
  58307. deprecated="not deprecated">
  58308. <implements name="org.apache.hadoop.fs.PathFilter"/>
  58309. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  58310. static="false" final="false" visibility="public"
  58311. deprecated="not deprecated">
  58312. </constructor>
  58313. <method name="accept" return="boolean"
  58314. abstract="false" native="false" synchronized="false"
  58315. static="false" final="false" visibility="public"
  58316. deprecated="not deprecated">
  58317. <param name="path" type="org.apache.hadoop.fs.Path"/>
  58318. </method>
  58319. <doc>
  58320. <![CDATA[This class filters log files from directory given
  58321. It doesnt accept paths having _logs.
  58322. This can be used to list paths of output directory as follows:
  58323. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  58324. new OutputLogFilter()));]]>
  58325. </doc>
  58326. </class>
  58327. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  58328. </package>
  58329. <package name="org.apache.hadoop.mapred.jobcontrol">
  58330. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  58331. <class name="Job" extends="java.lang.Object"
  58332. abstract="false"
  58333. static="false" final="false" visibility="public"
  58334. deprecated="not deprecated">
  58335. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  58336. static="false" final="false" visibility="public"
  58337. deprecated="not deprecated">
  58338. <exception name="IOException" type="java.io.IOException"/>
  58339. <doc>
  58340. <![CDATA[Construct a job.
  58341. @param jobConf a mapred job configuration representing a job to be executed.
  58342. @param dependingJobs an array of jobs the current job depends on]]>
  58343. </doc>
  58344. </constructor>
  58345. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  58346. static="false" final="false" visibility="public"
  58347. deprecated="not deprecated">
  58348. <exception name="IOException" type="java.io.IOException"/>
  58349. <doc>
  58350. <![CDATA[Construct a job.
  58351. @param jobConf mapred job configuration representing a job to be executed.
  58352. @throws IOException]]>
  58353. </doc>
  58354. </constructor>
  58355. <method name="toString" return="java.lang.String"
  58356. abstract="false" native="false" synchronized="false"
  58357. static="false" final="false" visibility="public"
  58358. deprecated="not deprecated">
  58359. </method>
  58360. <method name="getJobName" return="java.lang.String"
  58361. abstract="false" native="false" synchronized="false"
  58362. static="false" final="false" visibility="public"
  58363. deprecated="not deprecated">
  58364. <doc>
  58365. <![CDATA[@return the job name of this job]]>
  58366. </doc>
  58367. </method>
  58368. <method name="setJobName"
  58369. abstract="false" native="false" synchronized="false"
  58370. static="false" final="false" visibility="public"
  58371. deprecated="not deprecated">
  58372. <param name="jobName" type="java.lang.String"/>
  58373. <doc>
  58374. <![CDATA[Set the job name for this job.
  58375. @param jobName the job name]]>
  58376. </doc>
  58377. </method>
  58378. <method name="getJobID" return="java.lang.String"
  58379. abstract="false" native="false" synchronized="false"
  58380. static="false" final="false" visibility="public"
  58381. deprecated="not deprecated">
  58382. <doc>
  58383. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  58384. </doc>
  58385. </method>
  58386. <method name="setJobID"
  58387. abstract="false" native="false" synchronized="false"
  58388. static="false" final="false" visibility="public"
  58389. deprecated="not deprecated">
  58390. <param name="id" type="java.lang.String"/>
  58391. <doc>
  58392. <![CDATA[Set the job ID for this job.
  58393. @param id the job ID]]>
  58394. </doc>
  58395. </method>
  58396. <method name="getMapredJobID" return="java.lang.String"
  58397. abstract="false" native="false" synchronized="false"
  58398. static="false" final="false" visibility="public"
  58399. deprecated="use {@link #getAssignedJobID()} instead">
  58400. <doc>
  58401. <![CDATA[@return the mapred ID of this job
  58402. @deprecated use {@link #getAssignedJobID()} instead]]>
  58403. </doc>
  58404. </method>
  58405. <method name="setMapredJobID"
  58406. abstract="false" native="false" synchronized="false"
  58407. static="false" final="false" visibility="public"
  58408. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  58409. <param name="mapredJobID" type="java.lang.String"/>
  58410. <doc>
  58411. <![CDATA[Set the mapred ID for this job.
  58412. @param mapredJobID the mapred job ID for this job.
  58413. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  58414. </doc>
  58415. </method>
  58416. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  58417. abstract="false" native="false" synchronized="false"
  58418. static="false" final="false" visibility="public"
  58419. deprecated="not deprecated">
  58420. <doc>
  58421. <![CDATA[@return the mapred ID of this job as assigned by the
  58422. mapred framework.]]>
  58423. </doc>
  58424. </method>
  58425. <method name="setAssignedJobID"
  58426. abstract="false" native="false" synchronized="false"
  58427. static="false" final="false" visibility="public"
  58428. deprecated="not deprecated">
  58429. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  58430. <doc>
  58431. <![CDATA[Set the mapred ID for this job as assigned by the
  58432. mapred framework.
  58433. @param mapredJobID the mapred job ID for this job.]]>
  58434. </doc>
  58435. </method>
  58436. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  58437. abstract="false" native="false" synchronized="false"
  58438. static="false" final="false" visibility="public"
  58439. deprecated="not deprecated">
  58440. <doc>
  58441. <![CDATA[@return the mapred job conf of this job]]>
  58442. </doc>
  58443. </method>
  58444. <method name="setJobConf"
  58445. abstract="false" native="false" synchronized="false"
  58446. static="false" final="false" visibility="public"
  58447. deprecated="not deprecated">
  58448. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  58449. <doc>
  58450. <![CDATA[Set the mapred job conf for this job.
  58451. @param jobConf the mapred job conf for this job.]]>
  58452. </doc>
  58453. </method>
  58454. <method name="getState" return="int"
  58455. abstract="false" native="false" synchronized="true"
  58456. static="false" final="false" visibility="public"
  58457. deprecated="not deprecated">
  58458. <doc>
  58459. <![CDATA[@return the state of this job]]>
  58460. </doc>
  58461. </method>
  58462. <method name="setState"
  58463. abstract="false" native="false" synchronized="true"
  58464. static="false" final="false" visibility="protected"
  58465. deprecated="not deprecated">
  58466. <param name="state" type="int"/>
  58467. <doc>
  58468. <![CDATA[Set the state for this job.
  58469. @param state the new state for this job.]]>
  58470. </doc>
  58471. </method>
  58472. <method name="getMessage" return="java.lang.String"
  58473. abstract="false" native="false" synchronized="false"
  58474. static="false" final="false" visibility="public"
  58475. deprecated="not deprecated">
  58476. <doc>
  58477. <![CDATA[@return the message of this job]]>
  58478. </doc>
  58479. </method>
  58480. <method name="setMessage"
  58481. abstract="false" native="false" synchronized="false"
  58482. static="false" final="false" visibility="public"
  58483. deprecated="not deprecated">
  58484. <param name="message" type="java.lang.String"/>
  58485. <doc>
  58486. <![CDATA[Set the message for this job.
  58487. @param message the message for this job.]]>
  58488. </doc>
  58489. </method>
  58490. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  58491. abstract="false" native="false" synchronized="false"
  58492. static="false" final="false" visibility="public"
  58493. deprecated="not deprecated">
  58494. <doc>
  58495. <![CDATA[@return the job client of this job]]>
  58496. </doc>
  58497. </method>
  58498. <method name="getDependingJobs" return="java.util.ArrayList"
  58499. abstract="false" native="false" synchronized="false"
  58500. static="false" final="false" visibility="public"
  58501. deprecated="not deprecated">
  58502. <doc>
  58503. <![CDATA[@return the depending jobs of this job]]>
  58504. </doc>
  58505. </method>
  58506. <method name="addDependingJob" return="boolean"
  58507. abstract="false" native="false" synchronized="true"
  58508. static="false" final="false" visibility="public"
  58509. deprecated="not deprecated">
  58510. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  58511. <doc>
  58512. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  58513. is waiting to run, not during or afterwards.
  58514. @param dependingJob Job that this Job depends on.
  58515. @return <tt>true</tt> if the Job was added.]]>
  58516. </doc>
  58517. </method>
  58518. <method name="isCompleted" return="boolean"
  58519. abstract="false" native="false" synchronized="false"
  58520. static="false" final="false" visibility="public"
  58521. deprecated="not deprecated">
  58522. <doc>
  58523. <![CDATA[@return true if this job is in a complete state]]>
  58524. </doc>
  58525. </method>
  58526. <method name="isReady" return="boolean"
  58527. abstract="false" native="false" synchronized="false"
  58528. static="false" final="false" visibility="public"
  58529. deprecated="not deprecated">
  58530. <doc>
  58531. <![CDATA[@return true if this job is in READY state]]>
  58532. </doc>
  58533. </method>
  58534. <method name="submit"
  58535. abstract="false" native="false" synchronized="true"
  58536. static="false" final="false" visibility="protected"
  58537. deprecated="not deprecated">
  58538. <doc>
  58539. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  58540. is successful, FAILED otherwise.]]>
  58541. </doc>
  58542. </method>
  58543. <field name="SUCCESS" type="int"
  58544. transient="false" volatile="false"
  58545. static="true" final="true" visibility="public"
  58546. deprecated="not deprecated">
  58547. </field>
  58548. <field name="WAITING" type="int"
  58549. transient="false" volatile="false"
  58550. static="true" final="true" visibility="public"
  58551. deprecated="not deprecated">
  58552. </field>
  58553. <field name="RUNNING" type="int"
  58554. transient="false" volatile="false"
  58555. static="true" final="true" visibility="public"
  58556. deprecated="not deprecated">
  58557. </field>
  58558. <field name="READY" type="int"
  58559. transient="false" volatile="false"
  58560. static="true" final="true" visibility="public"
  58561. deprecated="not deprecated">
  58562. </field>
  58563. <field name="FAILED" type="int"
  58564. transient="false" volatile="false"
  58565. static="true" final="true" visibility="public"
  58566. deprecated="not deprecated">
  58567. </field>
  58568. <field name="DEPENDENT_FAILED" type="int"
  58569. transient="false" volatile="false"
  58570. static="true" final="true" visibility="public"
  58571. deprecated="not deprecated">
  58572. </field>
  58573. <doc>
  58574. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  58575. the states of the depending jobs and updates the state of this job.
  58576. A job starts in the WAITING state. If it does not have any depending jobs, or
  58577. all of the depending jobs are in SUCCESS state, then the job state will become
  58578. READY. If any depending jobs fail, the job will fail too.
  58579. When in READY state, the job can be submitted to Hadoop for execution, with
  58580. the state changing into RUNNING state. From RUNNING state, the job can get into
  58581. SUCCESS or FAILED state, depending the status of the job execution.]]>
  58582. </doc>
  58583. </class>
  58584. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  58585. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  58586. <class name="JobControl" extends="java.lang.Object"
  58587. abstract="false"
  58588. static="false" final="false" visibility="public"
  58589. deprecated="not deprecated">
  58590. <implements name="java.lang.Runnable"/>
  58591. <constructor name="JobControl" type="java.lang.String"
  58592. static="false" final="false" visibility="public"
  58593. deprecated="not deprecated">
  58594. <doc>
  58595. <![CDATA[Construct a job control for a group of jobs.
  58596. @param groupName a name identifying this group]]>
  58597. </doc>
  58598. </constructor>
  58599. <method name="getWaitingJobs" return="java.util.ArrayList"
  58600. abstract="false" native="false" synchronized="false"
  58601. static="false" final="false" visibility="public"
  58602. deprecated="not deprecated">
  58603. <doc>
  58604. <![CDATA[@return the jobs in the waiting state]]>
  58605. </doc>
  58606. </method>
  58607. <method name="getRunningJobs" return="java.util.ArrayList"
  58608. abstract="false" native="false" synchronized="false"
  58609. static="false" final="false" visibility="public"
  58610. deprecated="not deprecated">
  58611. <doc>
  58612. <![CDATA[@return the jobs in the running state]]>
  58613. </doc>
  58614. </method>
  58615. <method name="getReadyJobs" return="java.util.ArrayList"
  58616. abstract="false" native="false" synchronized="false"
  58617. static="false" final="false" visibility="public"
  58618. deprecated="not deprecated">
  58619. <doc>
  58620. <![CDATA[@return the jobs in the ready state]]>
  58621. </doc>
  58622. </method>
  58623. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  58624. abstract="false" native="false" synchronized="false"
  58625. static="false" final="false" visibility="public"
  58626. deprecated="not deprecated">
  58627. <doc>
  58628. <![CDATA[@return the jobs in the success state]]>
  58629. </doc>
  58630. </method>
  58631. <method name="getFailedJobs" return="java.util.ArrayList"
  58632. abstract="false" native="false" synchronized="false"
  58633. static="false" final="false" visibility="public"
  58634. deprecated="not deprecated">
  58635. </method>
  58636. <method name="addJob" return="java.lang.String"
  58637. abstract="false" native="false" synchronized="true"
  58638. static="false" final="false" visibility="public"
  58639. deprecated="not deprecated">
  58640. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  58641. <doc>
  58642. <![CDATA[Add a new job.
  58643. @param aJob the new job]]>
  58644. </doc>
  58645. </method>
  58646. <method name="addJobs"
  58647. abstract="false" native="false" synchronized="false"
  58648. static="false" final="false" visibility="public"
  58649. deprecated="not deprecated">
  58650. <param name="jobs" type="java.util.Collection"/>
  58651. <doc>
  58652. <![CDATA[Add a collection of jobs
  58653. @param jobs]]>
  58654. </doc>
  58655. </method>
  58656. <method name="getState" return="int"
  58657. abstract="false" native="false" synchronized="false"
  58658. static="false" final="false" visibility="public"
  58659. deprecated="not deprecated">
  58660. <doc>
  58661. <![CDATA[@return the thread state]]>
  58662. </doc>
  58663. </method>
  58664. <method name="stop"
  58665. abstract="false" native="false" synchronized="false"
  58666. static="false" final="false" visibility="public"
  58667. deprecated="not deprecated">
  58668. <doc>
  58669. <![CDATA[set the thread state to STOPPING so that the
  58670. thread will stop when it wakes up.]]>
  58671. </doc>
  58672. </method>
  58673. <method name="suspend"
  58674. abstract="false" native="false" synchronized="false"
  58675. static="false" final="false" visibility="public"
  58676. deprecated="not deprecated">
  58677. <doc>
  58678. <![CDATA[suspend the running thread]]>
  58679. </doc>
  58680. </method>
  58681. <method name="resume"
  58682. abstract="false" native="false" synchronized="false"
  58683. static="false" final="false" visibility="public"
  58684. deprecated="not deprecated">
  58685. <doc>
  58686. <![CDATA[resume the suspended thread]]>
  58687. </doc>
  58688. </method>
  58689. <method name="allFinished" return="boolean"
  58690. abstract="false" native="false" synchronized="true"
  58691. static="false" final="false" visibility="public"
  58692. deprecated="not deprecated">
  58693. </method>
  58694. <method name="run"
  58695. abstract="false" native="false" synchronized="false"
  58696. static="false" final="false" visibility="public"
  58697. deprecated="not deprecated">
  58698. <doc>
  58699. <![CDATA[The main loop for the thread.
  58700. The loop does the following:
  58701. Check the states of the running jobs
  58702. Update the states of waiting jobs
  58703. Submit the jobs in ready state]]>
  58704. </doc>
  58705. </method>
  58706. <doc>
  58707. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  58708. the states of the jobs by placing them into different tables according to their
  58709. states.
  58710. This class provides APIs for the client app to add a job to the group and to get
  58711. the jobs in the group in different states. When a
  58712. job is added, an ID unique to the group is assigned to the job.
  58713. This class has a thread that submits jobs when they become ready, monitors the
  58714. states of the running jobs, and updates the states of jobs based on the state changes
  58715. of their depending jobs states. The class provides APIs for suspending/resuming
  58716. the thread,and for stopping the thread.]]>
  58717. </doc>
  58718. </class>
  58719. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  58720. </package>
  58721. <package name="org.apache.hadoop.mapred.join">
  58722. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  58723. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  58724. abstract="false"
  58725. static="false" final="false" visibility="public"
  58726. deprecated="not deprecated">
  58727. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58728. <constructor name="ArrayListBackedIterator"
  58729. static="false" final="false" visibility="public"
  58730. deprecated="not deprecated">
  58731. </constructor>
  58732. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  58733. static="false" final="false" visibility="public"
  58734. deprecated="not deprecated">
  58735. </constructor>
  58736. <method name="hasNext" return="boolean"
  58737. abstract="false" native="false" synchronized="false"
  58738. static="false" final="false" visibility="public"
  58739. deprecated="not deprecated">
  58740. </method>
  58741. <method name="next" return="boolean"
  58742. abstract="false" native="false" synchronized="false"
  58743. static="false" final="false" visibility="public"
  58744. deprecated="not deprecated">
  58745. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58746. <exception name="IOException" type="java.io.IOException"/>
  58747. </method>
  58748. <method name="replay" return="boolean"
  58749. abstract="false" native="false" synchronized="false"
  58750. static="false" final="false" visibility="public"
  58751. deprecated="not deprecated">
  58752. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58753. <exception name="IOException" type="java.io.IOException"/>
  58754. </method>
  58755. <method name="reset"
  58756. abstract="false" native="false" synchronized="false"
  58757. static="false" final="false" visibility="public"
  58758. deprecated="not deprecated">
  58759. </method>
  58760. <method name="add"
  58761. abstract="false" native="false" synchronized="false"
  58762. static="false" final="false" visibility="public"
  58763. deprecated="not deprecated">
  58764. <param name="item" type="org.apache.hadoop.io.Writable"/>
  58765. <exception name="IOException" type="java.io.IOException"/>
  58766. </method>
  58767. <method name="close"
  58768. abstract="false" native="false" synchronized="false"
  58769. static="false" final="false" visibility="public"
  58770. deprecated="not deprecated">
  58771. <exception name="IOException" type="java.io.IOException"/>
  58772. </method>
  58773. <method name="clear"
  58774. abstract="false" native="false" synchronized="false"
  58775. static="false" final="false" visibility="public"
  58776. deprecated="not deprecated">
  58777. </method>
  58778. <doc>
  58779. <![CDATA[This class provides an implementation of ResetableIterator. The
  58780. implementation uses an {@link java.util.ArrayList} to store elements
  58781. added to it, replaying them as requested.
  58782. Prefer {@link StreamBackedIterator}.]]>
  58783. </doc>
  58784. </class>
  58785. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  58786. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  58787. <interface name="ComposableInputFormat" abstract="true"
  58788. static="false" final="false" visibility="public"
  58789. deprecated="not deprecated">
  58790. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  58791. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  58792. abstract="false" native="false" synchronized="false"
  58793. static="false" final="false" visibility="public"
  58794. deprecated="not deprecated">
  58795. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  58796. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58797. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58798. <exception name="IOException" type="java.io.IOException"/>
  58799. </method>
  58800. <doc>
  58801. <![CDATA[Refinement of InputFormat requiring implementors to provide
  58802. ComposableRecordReader instead of RecordReader.]]>
  58803. </doc>
  58804. </interface>
  58805. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  58806. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58807. <interface name="ComposableRecordReader" abstract="true"
  58808. static="false" final="false" visibility="public"
  58809. deprecated="not deprecated">
  58810. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  58811. <implements name="java.lang.Comparable"/>
  58812. <method name="id" return="int"
  58813. abstract="false" native="false" synchronized="false"
  58814. static="false" final="false" visibility="public"
  58815. deprecated="not deprecated">
  58816. <doc>
  58817. <![CDATA[Return the position in the collector this class occupies.]]>
  58818. </doc>
  58819. </method>
  58820. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  58821. abstract="false" native="false" synchronized="false"
  58822. static="false" final="false" visibility="public"
  58823. deprecated="not deprecated">
  58824. <doc>
  58825. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  58826. </doc>
  58827. </method>
  58828. <method name="key"
  58829. abstract="false" native="false" synchronized="false"
  58830. static="false" final="false" visibility="public"
  58831. deprecated="not deprecated">
  58832. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58833. <exception name="IOException" type="java.io.IOException"/>
  58834. <doc>
  58835. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  58836. </doc>
  58837. </method>
  58838. <method name="hasNext" return="boolean"
  58839. abstract="false" native="false" synchronized="false"
  58840. static="false" final="false" visibility="public"
  58841. deprecated="not deprecated">
  58842. <doc>
  58843. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  58844. a call to next(K,V) will succeed.]]>
  58845. </doc>
  58846. </method>
  58847. <method name="skip"
  58848. abstract="false" native="false" synchronized="false"
  58849. static="false" final="false" visibility="public"
  58850. deprecated="not deprecated">
  58851. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58852. <exception name="IOException" type="java.io.IOException"/>
  58853. <doc>
  58854. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  58855. </doc>
  58856. </method>
  58857. <method name="accept"
  58858. abstract="false" native="false" synchronized="false"
  58859. static="false" final="false" visibility="public"
  58860. deprecated="not deprecated">
  58861. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  58862. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58863. <exception name="IOException" type="java.io.IOException"/>
  58864. <doc>
  58865. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  58866. them with the JoinCollector provided.]]>
  58867. </doc>
  58868. </method>
  58869. <doc>
  58870. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  58871. </doc>
  58872. </interface>
  58873. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58874. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58875. <class name="CompositeInputFormat" extends="java.lang.Object"
  58876. abstract="false"
  58877. static="false" final="false" visibility="public"
  58878. deprecated="not deprecated">
  58879. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  58880. <constructor name="CompositeInputFormat"
  58881. static="false" final="false" visibility="public"
  58882. deprecated="not deprecated">
  58883. </constructor>
  58884. <method name="setFormat"
  58885. abstract="false" native="false" synchronized="false"
  58886. static="false" final="false" visibility="public"
  58887. deprecated="not deprecated">
  58888. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58889. <exception name="IOException" type="java.io.IOException"/>
  58890. <doc>
  58891. <![CDATA[Interpret a given string as a composite expression.
  58892. {@code
  58893. func ::= <ident>([<func>,]*<func>)
  58894. func ::= tbl(<class>,"<path>")
  58895. class ::= @see java.lang.Class#forName(java.lang.String)
  58896. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  58897. }
  58898. Reads expression from the <tt>mapred.join.expr</tt> property and
  58899. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  58900. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  58901. InputFormat class listed.
  58902. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  58903. </doc>
  58904. </method>
  58905. <method name="addDefaults"
  58906. abstract="false" native="false" synchronized="false"
  58907. static="false" final="false" visibility="protected"
  58908. deprecated="not deprecated">
  58909. <doc>
  58910. <![CDATA[Adds the default set of identifiers to the parser.]]>
  58911. </doc>
  58912. </method>
  58913. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  58914. abstract="false" native="false" synchronized="false"
  58915. static="false" final="false" visibility="public"
  58916. deprecated="not deprecated">
  58917. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58918. <param name="numSplits" type="int"/>
  58919. <exception name="IOException" type="java.io.IOException"/>
  58920. <doc>
  58921. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  58922. ith split from each child to the ith composite split.]]>
  58923. </doc>
  58924. </method>
  58925. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  58926. abstract="false" native="false" synchronized="false"
  58927. static="false" final="false" visibility="public"
  58928. deprecated="not deprecated">
  58929. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  58930. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58931. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58932. <exception name="IOException" type="java.io.IOException"/>
  58933. <doc>
  58934. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  58935. as defined in the init expression.
  58936. The outermost join need only be composable, not necessarily a composite.
  58937. Mandating TupleWritable isn't strictly correct.]]>
  58938. </doc>
  58939. </method>
  58940. <method name="compose" return="java.lang.String"
  58941. abstract="false" native="false" synchronized="false"
  58942. static="true" final="false" visibility="public"
  58943. deprecated="not deprecated">
  58944. <param name="inf" type="java.lang.Class"/>
  58945. <param name="path" type="java.lang.String"/>
  58946. <doc>
  58947. <![CDATA[Convenience method for constructing composite formats.
  58948. Given InputFormat class (inf), path (p) return:
  58949. {@code tbl(<inf>, <p>) }]]>
  58950. </doc>
  58951. </method>
  58952. <method name="compose" return="java.lang.String"
  58953. abstract="false" native="false" synchronized="false"
  58954. static="true" final="false" visibility="public"
  58955. deprecated="not deprecated">
  58956. <param name="op" type="java.lang.String"/>
  58957. <param name="inf" type="java.lang.Class"/>
  58958. <param name="path" type="java.lang.String[]"/>
  58959. <doc>
  58960. <![CDATA[Convenience method for constructing composite formats.
  58961. Given operation (op), Object class (inf), set of paths (p) return:
  58962. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58963. </doc>
  58964. </method>
  58965. <method name="compose" return="java.lang.String"
  58966. abstract="false" native="false" synchronized="false"
  58967. static="true" final="false" visibility="public"
  58968. deprecated="not deprecated">
  58969. <param name="op" type="java.lang.String"/>
  58970. <param name="inf" type="java.lang.Class"/>
  58971. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  58972. <doc>
  58973. <![CDATA[Convenience method for constructing composite formats.
  58974. Given operation (op), Object class (inf), set of paths (p) return:
  58975. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58976. </doc>
  58977. </method>
  58978. <doc>
  58979. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  58980. and partitioned the same way.
  58981. @see #setFormat
  58982. A user may define new join types by setting the property
  58983. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  58984. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  58985. ComposableRecordReader.
  58986. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  58987. in the join.
  58988. @see JoinRecordReader
  58989. @see MultiFilterRecordReader]]>
  58990. </doc>
  58991. </class>
  58992. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58993. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  58994. <class name="CompositeInputSplit" extends="java.lang.Object"
  58995. abstract="false"
  58996. static="false" final="false" visibility="public"
  58997. deprecated="not deprecated">
  58998. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  58999. <constructor name="CompositeInputSplit"
  59000. static="false" final="false" visibility="public"
  59001. deprecated="not deprecated">
  59002. </constructor>
  59003. <constructor name="CompositeInputSplit" type="int"
  59004. static="false" final="false" visibility="public"
  59005. deprecated="not deprecated">
  59006. </constructor>
  59007. <method name="add"
  59008. abstract="false" native="false" synchronized="false"
  59009. static="false" final="false" visibility="public"
  59010. deprecated="not deprecated">
  59011. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  59012. <exception name="IOException" type="java.io.IOException"/>
  59013. <doc>
  59014. <![CDATA[Add an InputSplit to this collection.
  59015. @throws IOException If capacity was not specified during construction
  59016. or if capacity has been reached.]]>
  59017. </doc>
  59018. </method>
  59019. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  59020. abstract="false" native="false" synchronized="false"
  59021. static="false" final="false" visibility="public"
  59022. deprecated="not deprecated">
  59023. <param name="i" type="int"/>
  59024. <doc>
  59025. <![CDATA[Get ith child InputSplit.]]>
  59026. </doc>
  59027. </method>
  59028. <method name="getLength" return="long"
  59029. abstract="false" native="false" synchronized="false"
  59030. static="false" final="false" visibility="public"
  59031. deprecated="not deprecated">
  59032. <exception name="IOException" type="java.io.IOException"/>
  59033. <doc>
  59034. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  59035. </doc>
  59036. </method>
  59037. <method name="getLength" return="long"
  59038. abstract="false" native="false" synchronized="false"
  59039. static="false" final="false" visibility="public"
  59040. deprecated="not deprecated">
  59041. <param name="i" type="int"/>
  59042. <exception name="IOException" type="java.io.IOException"/>
  59043. <doc>
  59044. <![CDATA[Get the length of ith child InputSplit.]]>
  59045. </doc>
  59046. </method>
  59047. <method name="getLocations" return="java.lang.String[]"
  59048. abstract="false" native="false" synchronized="false"
  59049. static="false" final="false" visibility="public"
  59050. deprecated="not deprecated">
  59051. <exception name="IOException" type="java.io.IOException"/>
  59052. <doc>
  59053. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  59054. </doc>
  59055. </method>
  59056. <method name="getLocation" return="java.lang.String[]"
  59057. abstract="false" native="false" synchronized="false"
  59058. static="false" final="false" visibility="public"
  59059. deprecated="not deprecated">
  59060. <param name="i" type="int"/>
  59061. <exception name="IOException" type="java.io.IOException"/>
  59062. <doc>
  59063. <![CDATA[getLocations from ith InputSplit.]]>
  59064. </doc>
  59065. </method>
  59066. <method name="write"
  59067. abstract="false" native="false" synchronized="false"
  59068. static="false" final="false" visibility="public"
  59069. deprecated="not deprecated">
  59070. <param name="out" type="java.io.DataOutput"/>
  59071. <exception name="IOException" type="java.io.IOException"/>
  59072. <doc>
  59073. <![CDATA[Write splits in the following format.
  59074. {@code
  59075. <count><class1><class2>...<classn><split1><split2>...<splitn>
  59076. }]]>
  59077. </doc>
  59078. </method>
  59079. <method name="readFields"
  59080. abstract="false" native="false" synchronized="false"
  59081. static="false" final="false" visibility="public"
  59082. deprecated="not deprecated">
  59083. <param name="in" type="java.io.DataInput"/>
  59084. <exception name="IOException" type="java.io.IOException"/>
  59085. <doc>
  59086. <![CDATA[{@inheritDoc}
  59087. @throws IOException If the child InputSplit cannot be read, typically
  59088. for faliing access checks.]]>
  59089. </doc>
  59090. </method>
  59091. <doc>
  59092. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  59093. into this collection must have a public default constructor.]]>
  59094. </doc>
  59095. </class>
  59096. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  59097. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  59098. <class name="CompositeRecordReader" extends="java.lang.Object"
  59099. abstract="true"
  59100. static="false" final="false" visibility="public"
  59101. deprecated="not deprecated">
  59102. <implements name="org.apache.hadoop.conf.Configurable"/>
  59103. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  59104. static="false" final="false" visibility="public"
  59105. deprecated="not deprecated">
  59106. <exception name="IOException" type="java.io.IOException"/>
  59107. <doc>
  59108. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  59109. <tt>id</tt> in the parent reader.
  59110. The id of a root CompositeRecordReader is -1 by convention, but relying
  59111. on this is not recommended.]]>
  59112. </doc>
  59113. </constructor>
  59114. <method name="combine" return="boolean"
  59115. abstract="true" native="false" synchronized="false"
  59116. static="false" final="false" visibility="protected"
  59117. deprecated="not deprecated">
  59118. <param name="srcs" type="java.lang.Object[]"/>
  59119. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59120. </method>
  59121. <method name="id" return="int"
  59122. abstract="false" native="false" synchronized="false"
  59123. static="false" final="false" visibility="public"
  59124. deprecated="not deprecated">
  59125. <doc>
  59126. <![CDATA[Return the position in the collector this class occupies.]]>
  59127. </doc>
  59128. </method>
  59129. <method name="setConf"
  59130. abstract="false" native="false" synchronized="false"
  59131. static="false" final="false" visibility="public"
  59132. deprecated="not deprecated">
  59133. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  59134. <doc>
  59135. <![CDATA[{@inheritDoc}]]>
  59136. </doc>
  59137. </method>
  59138. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  59139. abstract="false" native="false" synchronized="false"
  59140. static="false" final="false" visibility="public"
  59141. deprecated="not deprecated">
  59142. <doc>
  59143. <![CDATA[{@inheritDoc}]]>
  59144. </doc>
  59145. </method>
  59146. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  59147. abstract="false" native="false" synchronized="false"
  59148. static="false" final="false" visibility="protected"
  59149. deprecated="not deprecated">
  59150. <doc>
  59151. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  59152. </doc>
  59153. </method>
  59154. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  59155. abstract="false" native="false" synchronized="false"
  59156. static="false" final="false" visibility="protected"
  59157. deprecated="not deprecated">
  59158. <doc>
  59159. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  59160. composite.]]>
  59161. </doc>
  59162. </method>
  59163. <method name="add"
  59164. abstract="false" native="false" synchronized="false"
  59165. static="false" final="false" visibility="public"
  59166. deprecated="not deprecated">
  59167. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59168. <exception name="IOException" type="java.io.IOException"/>
  59169. <doc>
  59170. <![CDATA[Add a RecordReader to this collection.
  59171. The id() of a RecordReader determines where in the Tuple its
  59172. entry will appear. Adding RecordReaders with the same id has
  59173. undefined behavior.]]>
  59174. </doc>
  59175. </method>
  59176. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  59177. abstract="false" native="false" synchronized="false"
  59178. static="false" final="false" visibility="public"
  59179. deprecated="not deprecated">
  59180. <doc>
  59181. <![CDATA[Return the key for the current join or the value at the top of the
  59182. RecordReader heap.]]>
  59183. </doc>
  59184. </method>
  59185. <method name="key"
  59186. abstract="false" native="false" synchronized="false"
  59187. static="false" final="false" visibility="public"
  59188. deprecated="not deprecated">
  59189. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59190. <exception name="IOException" type="java.io.IOException"/>
  59191. <doc>
  59192. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  59193. </doc>
  59194. </method>
  59195. <method name="hasNext" return="boolean"
  59196. abstract="false" native="false" synchronized="false"
  59197. static="false" final="false" visibility="public"
  59198. deprecated="not deprecated">
  59199. <doc>
  59200. <![CDATA[Return true if it is possible that this could emit more values.]]>
  59201. </doc>
  59202. </method>
  59203. <method name="skip"
  59204. abstract="false" native="false" synchronized="false"
  59205. static="false" final="false" visibility="public"
  59206. deprecated="not deprecated">
  59207. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59208. <exception name="IOException" type="java.io.IOException"/>
  59209. <doc>
  59210. <![CDATA[Pass skip key to child RRs.]]>
  59211. </doc>
  59212. </method>
  59213. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  59214. abstract="true" native="false" synchronized="false"
  59215. static="false" final="false" visibility="protected"
  59216. deprecated="not deprecated">
  59217. <doc>
  59218. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  59219. ultimately emitted from this join.]]>
  59220. </doc>
  59221. </method>
  59222. <method name="accept"
  59223. abstract="false" native="false" synchronized="false"
  59224. static="false" final="false" visibility="public"
  59225. deprecated="not deprecated">
  59226. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  59227. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59228. <exception name="IOException" type="java.io.IOException"/>
  59229. <doc>
  59230. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  59231. iterator over values it may emit.]]>
  59232. </doc>
  59233. </method>
  59234. <method name="fillJoinCollector"
  59235. abstract="false" native="false" synchronized="false"
  59236. static="false" final="false" visibility="protected"
  59237. deprecated="not deprecated">
  59238. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  59239. <exception name="IOException" type="java.io.IOException"/>
  59240. <doc>
  59241. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  59242. at that position in the JoinCollector.]]>
  59243. </doc>
  59244. </method>
  59245. <method name="compareTo" return="int"
  59246. abstract="false" native="false" synchronized="false"
  59247. static="false" final="false" visibility="public"
  59248. deprecated="not deprecated">
  59249. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59250. <doc>
  59251. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  59252. with that of another).]]>
  59253. </doc>
  59254. </method>
  59255. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  59256. abstract="false" native="false" synchronized="false"
  59257. static="false" final="false" visibility="public"
  59258. deprecated="not deprecated">
  59259. <doc>
  59260. <![CDATA[Create a new key value common to all child RRs.
  59261. @throws ClassCastException if key classes differ.]]>
  59262. </doc>
  59263. </method>
  59264. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  59265. abstract="false" native="false" synchronized="false"
  59266. static="false" final="false" visibility="protected"
  59267. deprecated="not deprecated">
  59268. <doc>
  59269. <![CDATA[Create a value to be used internally for joins.]]>
  59270. </doc>
  59271. </method>
  59272. <method name="getPos" return="long"
  59273. abstract="false" native="false" synchronized="false"
  59274. static="false" final="false" visibility="public"
  59275. deprecated="not deprecated">
  59276. <exception name="IOException" type="java.io.IOException"/>
  59277. <doc>
  59278. <![CDATA[Unsupported (returns zero in all cases).]]>
  59279. </doc>
  59280. </method>
  59281. <method name="close"
  59282. abstract="false" native="false" synchronized="false"
  59283. static="false" final="false" visibility="public"
  59284. deprecated="not deprecated">
  59285. <exception name="IOException" type="java.io.IOException"/>
  59286. <doc>
  59287. <![CDATA[Close all child RRs.]]>
  59288. </doc>
  59289. </method>
  59290. <method name="getProgress" return="float"
  59291. abstract="false" native="false" synchronized="false"
  59292. static="false" final="false" visibility="public"
  59293. deprecated="not deprecated">
  59294. <exception name="IOException" type="java.io.IOException"/>
  59295. <doc>
  59296. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  59297. </doc>
  59298. </method>
  59299. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  59300. transient="false" volatile="false"
  59301. static="false" final="true" visibility="protected"
  59302. deprecated="not deprecated">
  59303. </field>
  59304. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  59305. transient="false" volatile="false"
  59306. static="false" final="true" visibility="protected"
  59307. deprecated="not deprecated">
  59308. </field>
  59309. <doc>
  59310. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  59311. type and partitioning.]]>
  59312. </doc>
  59313. </class>
  59314. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  59315. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  59316. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  59317. abstract="false"
  59318. static="false" final="false" visibility="public"
  59319. deprecated="not deprecated">
  59320. <method name="combine" return="boolean"
  59321. abstract="false" native="false" synchronized="false"
  59322. static="false" final="false" visibility="protected"
  59323. deprecated="not deprecated">
  59324. <param name="srcs" type="java.lang.Object[]"/>
  59325. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59326. <doc>
  59327. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  59328. </doc>
  59329. </method>
  59330. <doc>
  59331. <![CDATA[Full inner join.]]>
  59332. </doc>
  59333. </class>
  59334. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  59335. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  59336. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  59337. abstract="true"
  59338. static="false" final="false" visibility="public"
  59339. deprecated="not deprecated">
  59340. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59341. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  59342. static="false" final="false" visibility="public"
  59343. deprecated="not deprecated">
  59344. <exception name="IOException" type="java.io.IOException"/>
  59345. </constructor>
  59346. <method name="next" return="boolean"
  59347. abstract="false" native="false" synchronized="false"
  59348. static="false" final="false" visibility="public"
  59349. deprecated="not deprecated">
  59350. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59351. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59352. <exception name="IOException" type="java.io.IOException"/>
  59353. <doc>
  59354. <![CDATA[Emit the next set of key, value pairs as defined by the child
  59355. RecordReaders and operation associated with this composite RR.]]>
  59356. </doc>
  59357. </method>
  59358. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  59359. abstract="false" native="false" synchronized="false"
  59360. static="false" final="false" visibility="public"
  59361. deprecated="not deprecated">
  59362. <doc>
  59363. <![CDATA[{@inheritDoc}]]>
  59364. </doc>
  59365. </method>
  59366. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  59367. abstract="false" native="false" synchronized="false"
  59368. static="false" final="false" visibility="protected"
  59369. deprecated="not deprecated">
  59370. <doc>
  59371. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  59372. </doc>
  59373. </method>
  59374. <doc>
  59375. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  59376. </doc>
  59377. </class>
  59378. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  59379. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  59380. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  59381. abstract="false"
  59382. static="false" final="false" visibility="protected"
  59383. deprecated="not deprecated">
  59384. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59385. <constructor name="JoinRecordReader.JoinDelegationIterator"
  59386. static="false" final="false" visibility="protected"
  59387. deprecated="not deprecated">
  59388. </constructor>
  59389. <method name="hasNext" return="boolean"
  59390. abstract="false" native="false" synchronized="false"
  59391. static="false" final="false" visibility="public"
  59392. deprecated="not deprecated">
  59393. </method>
  59394. <method name="next" return="boolean"
  59395. abstract="false" native="false" synchronized="false"
  59396. static="false" final="false" visibility="public"
  59397. deprecated="not deprecated">
  59398. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59399. <exception name="IOException" type="java.io.IOException"/>
  59400. </method>
  59401. <method name="replay" return="boolean"
  59402. abstract="false" native="false" synchronized="false"
  59403. static="false" final="false" visibility="public"
  59404. deprecated="not deprecated">
  59405. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59406. <exception name="IOException" type="java.io.IOException"/>
  59407. </method>
  59408. <method name="reset"
  59409. abstract="false" native="false" synchronized="false"
  59410. static="false" final="false" visibility="public"
  59411. deprecated="not deprecated">
  59412. </method>
  59413. <method name="add"
  59414. abstract="false" native="false" synchronized="false"
  59415. static="false" final="false" visibility="public"
  59416. deprecated="not deprecated">
  59417. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59418. <exception name="IOException" type="java.io.IOException"/>
  59419. </method>
  59420. <method name="close"
  59421. abstract="false" native="false" synchronized="false"
  59422. static="false" final="false" visibility="public"
  59423. deprecated="not deprecated">
  59424. <exception name="IOException" type="java.io.IOException"/>
  59425. </method>
  59426. <method name="clear"
  59427. abstract="false" native="false" synchronized="false"
  59428. static="false" final="false" visibility="public"
  59429. deprecated="not deprecated">
  59430. </method>
  59431. <doc>
  59432. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  59433. provide an iterator proxy wrapping its operation.]]>
  59434. </doc>
  59435. </class>
  59436. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  59437. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  59438. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  59439. abstract="true"
  59440. static="false" final="false" visibility="public"
  59441. deprecated="not deprecated">
  59442. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59443. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  59444. static="false" final="false" visibility="public"
  59445. deprecated="not deprecated">
  59446. <exception name="IOException" type="java.io.IOException"/>
  59447. </constructor>
  59448. <method name="emit" return="org.apache.hadoop.io.Writable"
  59449. abstract="true" native="false" synchronized="false"
  59450. static="false" final="false" visibility="protected"
  59451. deprecated="not deprecated">
  59452. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59453. <exception name="IOException" type="java.io.IOException"/>
  59454. <doc>
  59455. <![CDATA[For each tuple emitted, return a value (typically one of the values
  59456. in the tuple).
  59457. Modifying the Writables in the tuple is permitted and unlikely to affect
  59458. join behavior in most cases, but it is not recommended. It's safer to
  59459. clone first.]]>
  59460. </doc>
  59461. </method>
  59462. <method name="combine" return="boolean"
  59463. abstract="false" native="false" synchronized="false"
  59464. static="false" final="false" visibility="protected"
  59465. deprecated="not deprecated">
  59466. <param name="srcs" type="java.lang.Object[]"/>
  59467. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59468. <doc>
  59469. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  59470. collector (the outer join of child RRs).]]>
  59471. </doc>
  59472. </method>
  59473. <method name="next" return="boolean"
  59474. abstract="false" native="false" synchronized="false"
  59475. static="false" final="false" visibility="public"
  59476. deprecated="not deprecated">
  59477. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59478. <param name="value" type="org.apache.hadoop.io.Writable"/>
  59479. <exception name="IOException" type="java.io.IOException"/>
  59480. <doc>
  59481. <![CDATA[{@inheritDoc}]]>
  59482. </doc>
  59483. </method>
  59484. <method name="createValue" return="org.apache.hadoop.io.Writable"
  59485. abstract="false" native="false" synchronized="false"
  59486. static="false" final="false" visibility="public"
  59487. deprecated="not deprecated">
  59488. <doc>
  59489. <![CDATA[{@inheritDoc}]]>
  59490. </doc>
  59491. </method>
  59492. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  59493. abstract="false" native="false" synchronized="false"
  59494. static="false" final="false" visibility="protected"
  59495. deprecated="not deprecated">
  59496. <doc>
  59497. <![CDATA[Return an iterator returning a single value from the tuple.
  59498. @see MultiFilterDelegationIterator]]>
  59499. </doc>
  59500. </method>
  59501. <doc>
  59502. <![CDATA[Base class for Composite join returning values derived from multiple
  59503. sources, but generally not tuples.]]>
  59504. </doc>
  59505. </class>
  59506. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  59507. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  59508. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  59509. abstract="false"
  59510. static="false" final="false" visibility="protected"
  59511. deprecated="not deprecated">
  59512. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59513. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  59514. static="false" final="false" visibility="protected"
  59515. deprecated="not deprecated">
  59516. </constructor>
  59517. <method name="hasNext" return="boolean"
  59518. abstract="false" native="false" synchronized="false"
  59519. static="false" final="false" visibility="public"
  59520. deprecated="not deprecated">
  59521. </method>
  59522. <method name="next" return="boolean"
  59523. abstract="false" native="false" synchronized="false"
  59524. static="false" final="false" visibility="public"
  59525. deprecated="not deprecated">
  59526. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59527. <exception name="IOException" type="java.io.IOException"/>
  59528. </method>
  59529. <method name="replay" return="boolean"
  59530. abstract="false" native="false" synchronized="false"
  59531. static="false" final="false" visibility="public"
  59532. deprecated="not deprecated">
  59533. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59534. <exception name="IOException" type="java.io.IOException"/>
  59535. </method>
  59536. <method name="reset"
  59537. abstract="false" native="false" synchronized="false"
  59538. static="false" final="false" visibility="public"
  59539. deprecated="not deprecated">
  59540. </method>
  59541. <method name="add"
  59542. abstract="false" native="false" synchronized="false"
  59543. static="false" final="false" visibility="public"
  59544. deprecated="not deprecated">
  59545. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59546. <exception name="IOException" type="java.io.IOException"/>
  59547. </method>
  59548. <method name="close"
  59549. abstract="false" native="false" synchronized="false"
  59550. static="false" final="false" visibility="public"
  59551. deprecated="not deprecated">
  59552. <exception name="IOException" type="java.io.IOException"/>
  59553. </method>
  59554. <method name="clear"
  59555. abstract="false" native="false" synchronized="false"
  59556. static="false" final="false" visibility="public"
  59557. deprecated="not deprecated">
  59558. </method>
  59559. <doc>
  59560. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  59561. </doc>
  59562. </class>
  59563. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  59564. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  59565. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  59566. abstract="false"
  59567. static="false" final="false" visibility="public"
  59568. deprecated="not deprecated">
  59569. <method name="combine" return="boolean"
  59570. abstract="false" native="false" synchronized="false"
  59571. static="false" final="false" visibility="protected"
  59572. deprecated="not deprecated">
  59573. <param name="srcs" type="java.lang.Object[]"/>
  59574. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59575. <doc>
  59576. <![CDATA[Emit everything from the collector.]]>
  59577. </doc>
  59578. </method>
  59579. <doc>
  59580. <![CDATA[Full outer join.]]>
  59581. </doc>
  59582. </class>
  59583. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  59584. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  59585. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  59586. abstract="false"
  59587. static="false" final="false" visibility="public"
  59588. deprecated="not deprecated">
  59589. <method name="emit" return="org.apache.hadoop.io.Writable"
  59590. abstract="false" native="false" synchronized="false"
  59591. static="false" final="false" visibility="protected"
  59592. deprecated="not deprecated">
  59593. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  59594. <doc>
  59595. <![CDATA[Emit the value with the highest position in the tuple.]]>
  59596. </doc>
  59597. </method>
  59598. <method name="fillJoinCollector"
  59599. abstract="false" native="false" synchronized="false"
  59600. static="false" final="false" visibility="protected"
  59601. deprecated="not deprecated">
  59602. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  59603. <exception name="IOException" type="java.io.IOException"/>
  59604. <doc>
  59605. <![CDATA[Instead of filling the JoinCollector with iterators from all
  59606. data sources, fill only the rightmost for this key.
  59607. This not only saves space by discarding the other sources, but
  59608. it also emits the number of key-value pairs in the preferred
  59609. RecordReader instead of repeating that stream n times, where
  59610. n is the cardinality of the cross product of the discarded
  59611. streams for the given key.]]>
  59612. </doc>
  59613. </method>
  59614. <doc>
  59615. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  59616. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  59617. from S3 over S2, and values from S2 over S1 for all keys
  59618. emitted from all sources.]]>
  59619. </doc>
  59620. </class>
  59621. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  59622. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  59623. <class name="Parser" extends="java.lang.Object"
  59624. abstract="false"
  59625. static="false" final="false" visibility="public"
  59626. deprecated="not deprecated">
  59627. <constructor name="Parser"
  59628. static="false" final="false" visibility="public"
  59629. deprecated="not deprecated">
  59630. </constructor>
  59631. <doc>
  59632. <![CDATA[Very simple shift-reduce parser for join expressions.
  59633. This should be sufficient for the user extension permitted now, but ought to
  59634. be replaced with a parser generator if more complex grammars are supported.
  59635. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  59636. of formals requires a different internal node type, which is responsible for
  59637. interpreting the list of tokens it receives. This is sufficient for the
  59638. current grammar, but it has several annoying properties that might inhibit
  59639. extension. In particular, parenthesis are always function calls; an
  59640. algebraic or filter grammar would not only require a node type, but must
  59641. also work around the internals of this parser.
  59642. For most other cases, adding classes to the hierarchy- particularly by
  59643. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  59644. straightforward. One need only override the relevant method(s) (usually only
  59645. {@link CompositeRecordReader#combine}) and include a property to map its
  59646. value to an identifier in the parser.]]>
  59647. </doc>
  59648. </class>
  59649. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  59650. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  59651. <class name="Parser.Node" extends="java.lang.Object"
  59652. abstract="true"
  59653. static="true" final="false" visibility="public"
  59654. deprecated="not deprecated">
  59655. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  59656. <constructor name="Parser.Node" type="java.lang.String"
  59657. static="false" final="false" visibility="protected"
  59658. deprecated="not deprecated">
  59659. </constructor>
  59660. <method name="addIdentifier"
  59661. abstract="false" native="false" synchronized="false"
  59662. static="true" final="false" visibility="protected"
  59663. deprecated="not deprecated">
  59664. <param name="ident" type="java.lang.String"/>
  59665. <param name="mcstrSig" type="java.lang.Class[]"/>
  59666. <param name="nodetype" type="java.lang.Class"/>
  59667. <param name="cl" type="java.lang.Class"/>
  59668. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  59669. <doc>
  59670. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  59671. tree and to the ComposableRecordReader to be created, including the
  59672. formals required to invoke the constructor.
  59673. The nodetype and constructor signature should be filled in from the
  59674. child node.]]>
  59675. </doc>
  59676. </method>
  59677. <method name="setID"
  59678. abstract="false" native="false" synchronized="false"
  59679. static="false" final="false" visibility="protected"
  59680. deprecated="not deprecated">
  59681. <param name="id" type="int"/>
  59682. </method>
  59683. <method name="setKeyComparator"
  59684. abstract="false" native="false" synchronized="false"
  59685. static="false" final="false" visibility="protected"
  59686. deprecated="not deprecated">
  59687. <param name="cmpcl" type="java.lang.Class"/>
  59688. </method>
  59689. <field name="rrCstrMap" type="java.util.Map"
  59690. transient="false" volatile="false"
  59691. static="true" final="true" visibility="protected"
  59692. deprecated="not deprecated">
  59693. </field>
  59694. <field name="id" type="int"
  59695. transient="false" volatile="false"
  59696. static="false" final="false" visibility="protected"
  59697. deprecated="not deprecated">
  59698. </field>
  59699. <field name="ident" type="java.lang.String"
  59700. transient="false" volatile="false"
  59701. static="false" final="false" visibility="protected"
  59702. deprecated="not deprecated">
  59703. </field>
  59704. <field name="cmpcl" type="java.lang.Class"
  59705. transient="false" volatile="false"
  59706. static="false" final="false" visibility="protected"
  59707. deprecated="not deprecated">
  59708. </field>
  59709. </class>
  59710. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  59711. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  59712. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59713. abstract="false"
  59714. static="true" final="false" visibility="public"
  59715. deprecated="not deprecated">
  59716. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  59717. abstract="false" native="false" synchronized="false"
  59718. static="false" final="false" visibility="public"
  59719. deprecated="not deprecated">
  59720. </method>
  59721. </class>
  59722. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  59723. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  59724. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59725. abstract="false"
  59726. static="true" final="false" visibility="public"
  59727. deprecated="not deprecated">
  59728. <constructor name="Parser.NumToken" type="double"
  59729. static="false" final="false" visibility="public"
  59730. deprecated="not deprecated">
  59731. </constructor>
  59732. <method name="getNum" return="double"
  59733. abstract="false" native="false" synchronized="false"
  59734. static="false" final="false" visibility="public"
  59735. deprecated="not deprecated">
  59736. </method>
  59737. </class>
  59738. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  59739. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  59740. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59741. abstract="false"
  59742. static="true" final="false" visibility="public"
  59743. deprecated="not deprecated">
  59744. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  59745. static="false" final="false" visibility="public"
  59746. deprecated="not deprecated">
  59747. </constructor>
  59748. <method name="getStr" return="java.lang.String"
  59749. abstract="false" native="false" synchronized="false"
  59750. static="false" final="false" visibility="public"
  59751. deprecated="not deprecated">
  59752. </method>
  59753. </class>
  59754. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  59755. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  59756. <class name="Parser.Token" extends="java.lang.Object"
  59757. abstract="false"
  59758. static="true" final="false" visibility="public"
  59759. deprecated="not deprecated">
  59760. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  59761. abstract="false" native="false" synchronized="false"
  59762. static="false" final="false" visibility="public"
  59763. deprecated="not deprecated">
  59764. </method>
  59765. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  59766. abstract="false" native="false" synchronized="false"
  59767. static="false" final="false" visibility="public"
  59768. deprecated="not deprecated">
  59769. <exception name="IOException" type="java.io.IOException"/>
  59770. </method>
  59771. <method name="getNum" return="double"
  59772. abstract="false" native="false" synchronized="false"
  59773. static="false" final="false" visibility="public"
  59774. deprecated="not deprecated">
  59775. <exception name="IOException" type="java.io.IOException"/>
  59776. </method>
  59777. <method name="getStr" return="java.lang.String"
  59778. abstract="false" native="false" synchronized="false"
  59779. static="false" final="false" visibility="public"
  59780. deprecated="not deprecated">
  59781. <exception name="IOException" type="java.io.IOException"/>
  59782. </method>
  59783. <doc>
  59784. <![CDATA[Tagged-union type for tokens from the join expression.
  59785. @see Parser.TType]]>
  59786. </doc>
  59787. </class>
  59788. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  59789. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  59790. <class name="Parser.TType" extends="java.lang.Enum"
  59791. abstract="false"
  59792. static="true" final="true" visibility="public"
  59793. deprecated="not deprecated">
  59794. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  59795. abstract="false" native="false" synchronized="false"
  59796. static="true" final="false" visibility="public"
  59797. deprecated="not deprecated">
  59798. </method>
  59799. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  59800. abstract="false" native="false" synchronized="false"
  59801. static="true" final="false" visibility="public"
  59802. deprecated="not deprecated">
  59803. <param name="name" type="java.lang.String"/>
  59804. </method>
  59805. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  59806. transient="false" volatile="false"
  59807. static="true" final="true" visibility="public"
  59808. deprecated="not deprecated">
  59809. </field>
  59810. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59811. transient="false" volatile="false"
  59812. static="true" final="true" visibility="public"
  59813. deprecated="not deprecated">
  59814. </field>
  59815. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  59816. transient="false" volatile="false"
  59817. static="true" final="true" visibility="public"
  59818. deprecated="not deprecated">
  59819. </field>
  59820. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59821. transient="false" volatile="false"
  59822. static="true" final="true" visibility="public"
  59823. deprecated="not deprecated">
  59824. </field>
  59825. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59826. transient="false" volatile="false"
  59827. static="true" final="true" visibility="public"
  59828. deprecated="not deprecated">
  59829. </field>
  59830. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59831. transient="false" volatile="false"
  59832. static="true" final="true" visibility="public"
  59833. deprecated="not deprecated">
  59834. </field>
  59835. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  59836. transient="false" volatile="false"
  59837. static="true" final="true" visibility="public"
  59838. deprecated="not deprecated">
  59839. </field>
  59840. </class>
  59841. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  59842. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59843. <interface name="ResetableIterator" abstract="true"
  59844. static="false" final="false" visibility="public"
  59845. deprecated="not deprecated">
  59846. <method name="hasNext" return="boolean"
  59847. abstract="false" native="false" synchronized="false"
  59848. static="false" final="false" visibility="public"
  59849. deprecated="not deprecated">
  59850. <doc>
  59851. <![CDATA[True if a call to next may return a value. This is permitted false
  59852. positives, but not false negatives.]]>
  59853. </doc>
  59854. </method>
  59855. <method name="next" return="boolean"
  59856. abstract="false" native="false" synchronized="false"
  59857. static="false" final="false" visibility="public"
  59858. deprecated="not deprecated">
  59859. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59860. <exception name="IOException" type="java.io.IOException"/>
  59861. <doc>
  59862. <![CDATA[Assign next value to actual.
  59863. It is required that elements added to a ResetableIterator be returned in
  59864. the same order after a call to {@link #reset} (FIFO).
  59865. Note that a call to this may fail for nested joins (i.e. more elements
  59866. available, but none satisfying the constraints of the join)]]>
  59867. </doc>
  59868. </method>
  59869. <method name="replay" return="boolean"
  59870. abstract="false" native="false" synchronized="false"
  59871. static="false" final="false" visibility="public"
  59872. deprecated="not deprecated">
  59873. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59874. <exception name="IOException" type="java.io.IOException"/>
  59875. <doc>
  59876. <![CDATA[Assign last value returned to actual.]]>
  59877. </doc>
  59878. </method>
  59879. <method name="reset"
  59880. abstract="false" native="false" synchronized="false"
  59881. static="false" final="false" visibility="public"
  59882. deprecated="not deprecated">
  59883. <doc>
  59884. <![CDATA[Set iterator to return to the start of its range. Must be called after
  59885. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  59886. </doc>
  59887. </method>
  59888. <method name="add"
  59889. abstract="false" native="false" synchronized="false"
  59890. static="false" final="false" visibility="public"
  59891. deprecated="not deprecated">
  59892. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59893. <exception name="IOException" type="java.io.IOException"/>
  59894. <doc>
  59895. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  59896. </doc>
  59897. </method>
  59898. <method name="close"
  59899. abstract="false" native="false" synchronized="false"
  59900. static="false" final="false" visibility="public"
  59901. deprecated="not deprecated">
  59902. <exception name="IOException" type="java.io.IOException"/>
  59903. <doc>
  59904. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  59905. after calling close has undefined behavior.]]>
  59906. </doc>
  59907. </method>
  59908. <method name="clear"
  59909. abstract="false" native="false" synchronized="false"
  59910. static="false" final="false" visibility="public"
  59911. deprecated="not deprecated">
  59912. <doc>
  59913. <![CDATA[Close datasources, but do not release internal resources. Calling this
  59914. method should permit the object to be reused with a different datasource.]]>
  59915. </doc>
  59916. </method>
  59917. <doc>
  59918. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  59919. added to it directly.
  59920. Note that this does not extend {@link java.util.Iterator}.]]>
  59921. </doc>
  59922. </interface>
  59923. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59924. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59925. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  59926. abstract="false"
  59927. static="true" final="false" visibility="public"
  59928. deprecated="not deprecated">
  59929. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59930. <constructor name="ResetableIterator.EMPTY"
  59931. static="false" final="false" visibility="public"
  59932. deprecated="not deprecated">
  59933. </constructor>
  59934. <method name="hasNext" return="boolean"
  59935. abstract="false" native="false" synchronized="false"
  59936. static="false" final="false" visibility="public"
  59937. deprecated="not deprecated">
  59938. </method>
  59939. <method name="reset"
  59940. abstract="false" native="false" synchronized="false"
  59941. static="false" final="false" visibility="public"
  59942. deprecated="not deprecated">
  59943. </method>
  59944. <method name="close"
  59945. abstract="false" native="false" synchronized="false"
  59946. static="false" final="false" visibility="public"
  59947. deprecated="not deprecated">
  59948. <exception name="IOException" type="java.io.IOException"/>
  59949. </method>
  59950. <method name="clear"
  59951. abstract="false" native="false" synchronized="false"
  59952. static="false" final="false" visibility="public"
  59953. deprecated="not deprecated">
  59954. </method>
  59955. <method name="next" return="boolean"
  59956. abstract="false" native="false" synchronized="false"
  59957. static="false" final="false" visibility="public"
  59958. deprecated="not deprecated">
  59959. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59960. <exception name="IOException" type="java.io.IOException"/>
  59961. </method>
  59962. <method name="replay" return="boolean"
  59963. abstract="false" native="false" synchronized="false"
  59964. static="false" final="false" visibility="public"
  59965. deprecated="not deprecated">
  59966. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59967. <exception name="IOException" type="java.io.IOException"/>
  59968. </method>
  59969. <method name="add"
  59970. abstract="false" native="false" synchronized="false"
  59971. static="false" final="false" visibility="public"
  59972. deprecated="not deprecated">
  59973. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59974. <exception name="IOException" type="java.io.IOException"/>
  59975. </method>
  59976. </class>
  59977. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59978. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  59979. <class name="StreamBackedIterator" extends="java.lang.Object"
  59980. abstract="false"
  59981. static="false" final="false" visibility="public"
  59982. deprecated="not deprecated">
  59983. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59984. <constructor name="StreamBackedIterator"
  59985. static="false" final="false" visibility="public"
  59986. deprecated="not deprecated">
  59987. </constructor>
  59988. <method name="hasNext" return="boolean"
  59989. abstract="false" native="false" synchronized="false"
  59990. static="false" final="false" visibility="public"
  59991. deprecated="not deprecated">
  59992. </method>
  59993. <method name="next" return="boolean"
  59994. abstract="false" native="false" synchronized="false"
  59995. static="false" final="false" visibility="public"
  59996. deprecated="not deprecated">
  59997. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59998. <exception name="IOException" type="java.io.IOException"/>
  59999. </method>
  60000. <method name="replay" return="boolean"
  60001. abstract="false" native="false" synchronized="false"
  60002. static="false" final="false" visibility="public"
  60003. deprecated="not deprecated">
  60004. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60005. <exception name="IOException" type="java.io.IOException"/>
  60006. </method>
  60007. <method name="reset"
  60008. abstract="false" native="false" synchronized="false"
  60009. static="false" final="false" visibility="public"
  60010. deprecated="not deprecated">
  60011. </method>
  60012. <method name="add"
  60013. abstract="false" native="false" synchronized="false"
  60014. static="false" final="false" visibility="public"
  60015. deprecated="not deprecated">
  60016. <param name="item" type="org.apache.hadoop.io.Writable"/>
  60017. <exception name="IOException" type="java.io.IOException"/>
  60018. </method>
  60019. <method name="close"
  60020. abstract="false" native="false" synchronized="false"
  60021. static="false" final="false" visibility="public"
  60022. deprecated="not deprecated">
  60023. <exception name="IOException" type="java.io.IOException"/>
  60024. </method>
  60025. <method name="clear"
  60026. abstract="false" native="false" synchronized="false"
  60027. static="false" final="false" visibility="public"
  60028. deprecated="not deprecated">
  60029. </method>
  60030. <doc>
  60031. <![CDATA[This class provides an implementation of ResetableIterator. This
  60032. implementation uses a byte array to store elements added to it.]]>
  60033. </doc>
  60034. </class>
  60035. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  60036. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  60037. <class name="TupleWritable" extends="java.lang.Object"
  60038. abstract="false"
  60039. static="false" final="false" visibility="public"
  60040. deprecated="not deprecated">
  60041. <implements name="org.apache.hadoop.io.Writable"/>
  60042. <implements name="java.lang.Iterable"/>
  60043. <constructor name="TupleWritable"
  60044. static="false" final="false" visibility="public"
  60045. deprecated="not deprecated">
  60046. <doc>
  60047. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  60048. </doc>
  60049. </constructor>
  60050. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  60051. static="false" final="false" visibility="public"
  60052. deprecated="not deprecated">
  60053. <doc>
  60054. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  60055. &quot;written&quot; values.]]>
  60056. </doc>
  60057. </constructor>
  60058. <method name="has" return="boolean"
  60059. abstract="false" native="false" synchronized="false"
  60060. static="false" final="false" visibility="public"
  60061. deprecated="not deprecated">
  60062. <param name="i" type="int"/>
  60063. <doc>
  60064. <![CDATA[Return true if tuple has an element at the position provided.]]>
  60065. </doc>
  60066. </method>
  60067. <method name="get" return="org.apache.hadoop.io.Writable"
  60068. abstract="false" native="false" synchronized="false"
  60069. static="false" final="false" visibility="public"
  60070. deprecated="not deprecated">
  60071. <param name="i" type="int"/>
  60072. <doc>
  60073. <![CDATA[Get ith Writable from Tuple.]]>
  60074. </doc>
  60075. </method>
  60076. <method name="size" return="int"
  60077. abstract="false" native="false" synchronized="false"
  60078. static="false" final="false" visibility="public"
  60079. deprecated="not deprecated">
  60080. <doc>
  60081. <![CDATA[The number of children in this Tuple.]]>
  60082. </doc>
  60083. </method>
  60084. <method name="equals" return="boolean"
  60085. abstract="false" native="false" synchronized="false"
  60086. static="false" final="false" visibility="public"
  60087. deprecated="not deprecated">
  60088. <param name="other" type="java.lang.Object"/>
  60089. <doc>
  60090. <![CDATA[{@inheritDoc}]]>
  60091. </doc>
  60092. </method>
  60093. <method name="hashCode" return="int"
  60094. abstract="false" native="false" synchronized="false"
  60095. static="false" final="false" visibility="public"
  60096. deprecated="not deprecated">
  60097. </method>
  60098. <method name="iterator" return="java.util.Iterator"
  60099. abstract="false" native="false" synchronized="false"
  60100. static="false" final="false" visibility="public"
  60101. deprecated="not deprecated">
  60102. <doc>
  60103. <![CDATA[Return an iterator over the elements in this tuple.
  60104. Note that this doesn't flatten the tuple; one may receive tuples
  60105. from this iterator.]]>
  60106. </doc>
  60107. </method>
  60108. <method name="toString" return="java.lang.String"
  60109. abstract="false" native="false" synchronized="false"
  60110. static="false" final="false" visibility="public"
  60111. deprecated="not deprecated">
  60112. <doc>
  60113. <![CDATA[Convert Tuple to String as in the following.
  60114. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  60115. </doc>
  60116. </method>
  60117. <method name="write"
  60118. abstract="false" native="false" synchronized="false"
  60119. static="false" final="false" visibility="public"
  60120. deprecated="not deprecated">
  60121. <param name="out" type="java.io.DataOutput"/>
  60122. <exception name="IOException" type="java.io.IOException"/>
  60123. <doc>
  60124. <![CDATA[Writes each Writable to <code>out</code>.
  60125. TupleWritable format:
  60126. {@code
  60127. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  60128. }]]>
  60129. </doc>
  60130. </method>
  60131. <method name="readFields"
  60132. abstract="false" native="false" synchronized="false"
  60133. static="false" final="false" visibility="public"
  60134. deprecated="not deprecated">
  60135. <param name="in" type="java.io.DataInput"/>
  60136. <exception name="IOException" type="java.io.IOException"/>
  60137. <doc>
  60138. <![CDATA[{@inheritDoc}]]>
  60139. </doc>
  60140. </method>
  60141. <doc>
  60142. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  60143. This is *not* a general-purpose tuple type. In almost all cases, users are
  60144. encouraged to implement their own serializable types, which can perform
  60145. better validation and provide more efficient encodings than this class is
  60146. capable. TupleWritable relies on the join framework for type safety and
  60147. assumes its instances will rarely be persisted, assumptions not only
  60148. incompatible with, but contrary to the general case.
  60149. @see org.apache.hadoop.io.Writable]]>
  60150. </doc>
  60151. </class>
  60152. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  60153. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  60154. <class name="WrappedRecordReader" extends="java.lang.Object"
  60155. abstract="false"
  60156. static="false" final="false" visibility="public"
  60157. deprecated="not deprecated">
  60158. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60159. <method name="id" return="int"
  60160. abstract="false" native="false" synchronized="false"
  60161. static="false" final="false" visibility="public"
  60162. deprecated="not deprecated">
  60163. <doc>
  60164. <![CDATA[{@inheritDoc}]]>
  60165. </doc>
  60166. </method>
  60167. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  60168. abstract="false" native="false" synchronized="false"
  60169. static="false" final="false" visibility="public"
  60170. deprecated="not deprecated">
  60171. <doc>
  60172. <![CDATA[Return the key at the head of this RR.]]>
  60173. </doc>
  60174. </method>
  60175. <method name="key"
  60176. abstract="false" native="false" synchronized="false"
  60177. static="false" final="false" visibility="public"
  60178. deprecated="not deprecated">
  60179. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  60180. <exception name="IOException" type="java.io.IOException"/>
  60181. <doc>
  60182. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  60183. </doc>
  60184. </method>
  60185. <method name="hasNext" return="boolean"
  60186. abstract="false" native="false" synchronized="false"
  60187. static="false" final="false" visibility="public"
  60188. deprecated="not deprecated">
  60189. <doc>
  60190. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  60191. is exhausted.]]>
  60192. </doc>
  60193. </method>
  60194. <method name="skip"
  60195. abstract="false" native="false" synchronized="false"
  60196. static="false" final="false" visibility="public"
  60197. deprecated="not deprecated">
  60198. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60199. <exception name="IOException" type="java.io.IOException"/>
  60200. <doc>
  60201. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  60202. </doc>
  60203. </method>
  60204. <method name="next" return="boolean"
  60205. abstract="false" native="false" synchronized="false"
  60206. static="false" final="false" visibility="protected"
  60207. deprecated="not deprecated">
  60208. <exception name="IOException" type="java.io.IOException"/>
  60209. <doc>
  60210. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  60211. the RR and this are exhausted.]]>
  60212. </doc>
  60213. </method>
  60214. <method name="accept"
  60215. abstract="false" native="false" synchronized="false"
  60216. static="false" final="false" visibility="public"
  60217. deprecated="not deprecated">
  60218. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  60219. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60220. <exception name="IOException" type="java.io.IOException"/>
  60221. <doc>
  60222. <![CDATA[Add an iterator to the collector at the position occupied by this
  60223. RecordReader over the values in this stream paired with the key
  60224. provided (ie register a stream of values from this source matching K
  60225. with a collector).]]>
  60226. </doc>
  60227. </method>
  60228. <method name="next" return="boolean"
  60229. abstract="false" native="false" synchronized="false"
  60230. static="false" final="false" visibility="public"
  60231. deprecated="not deprecated">
  60232. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60233. <param name="value" type="org.apache.hadoop.io.Writable"/>
  60234. <exception name="IOException" type="java.io.IOException"/>
  60235. <doc>
  60236. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  60237. get next key-value pair from proxied RR.]]>
  60238. </doc>
  60239. </method>
  60240. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  60241. abstract="false" native="false" synchronized="false"
  60242. static="false" final="false" visibility="public"
  60243. deprecated="not deprecated">
  60244. <doc>
  60245. <![CDATA[Request new key from proxied RR.]]>
  60246. </doc>
  60247. </method>
  60248. <method name="createValue" return="org.apache.hadoop.io.Writable"
  60249. abstract="false" native="false" synchronized="false"
  60250. static="false" final="false" visibility="public"
  60251. deprecated="not deprecated">
  60252. <doc>
  60253. <![CDATA[Request new value from proxied RR.]]>
  60254. </doc>
  60255. </method>
  60256. <method name="getProgress" return="float"
  60257. abstract="false" native="false" synchronized="false"
  60258. static="false" final="false" visibility="public"
  60259. deprecated="not deprecated">
  60260. <exception name="IOException" type="java.io.IOException"/>
  60261. <doc>
  60262. <![CDATA[Request progress from proxied RR.]]>
  60263. </doc>
  60264. </method>
  60265. <method name="getPos" return="long"
  60266. abstract="false" native="false" synchronized="false"
  60267. static="false" final="false" visibility="public"
  60268. deprecated="not deprecated">
  60269. <exception name="IOException" type="java.io.IOException"/>
  60270. <doc>
  60271. <![CDATA[Request position from proxied RR.]]>
  60272. </doc>
  60273. </method>
  60274. <method name="close"
  60275. abstract="false" native="false" synchronized="false"
  60276. static="false" final="false" visibility="public"
  60277. deprecated="not deprecated">
  60278. <exception name="IOException" type="java.io.IOException"/>
  60279. <doc>
  60280. <![CDATA[Forward close request to proxied RR.]]>
  60281. </doc>
  60282. </method>
  60283. <method name="compareTo" return="int"
  60284. abstract="false" native="false" synchronized="false"
  60285. static="false" final="false" visibility="public"
  60286. deprecated="not deprecated">
  60287. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60288. <doc>
  60289. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  60290. with that of another).]]>
  60291. </doc>
  60292. </method>
  60293. <method name="equals" return="boolean"
  60294. abstract="false" native="false" synchronized="false"
  60295. static="false" final="false" visibility="public"
  60296. deprecated="not deprecated">
  60297. <param name="other" type="java.lang.Object"/>
  60298. <doc>
  60299. <![CDATA[Return true iff compareTo(other) retn true.]]>
  60300. </doc>
  60301. </method>
  60302. <method name="hashCode" return="int"
  60303. abstract="false" native="false" synchronized="false"
  60304. static="false" final="false" visibility="public"
  60305. deprecated="not deprecated">
  60306. </method>
  60307. <doc>
  60308. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  60309. This class keeps track of the &quot;head&quot; key-value pair for the
  60310. provided RecordReader and keeps a store of values matching a key when
  60311. this source is participating in a join.]]>
  60312. </doc>
  60313. </class>
  60314. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  60315. </package>
  60316. <package name="org.apache.hadoop.mapred.lib">
  60317. <!-- start class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  60318. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner"
  60319. abstract="false"
  60320. static="false" final="false" visibility="public"
  60321. deprecated="not deprecated">
  60322. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  60323. <constructor name="BinaryPartitioner"
  60324. static="false" final="false" visibility="public"
  60325. deprecated="not deprecated">
  60326. </constructor>
  60327. <method name="configure"
  60328. abstract="false" native="false" synchronized="false"
  60329. static="false" final="false" visibility="public"
  60330. deprecated="not deprecated">
  60331. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60332. </method>
  60333. <doc>
  60334. <![CDATA[Partition {@link BinaryComparable} keys using a configurable part of
  60335. the bytes array returned by {@link BinaryComparable#getBytes()}.
  60336. @see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner]]>
  60337. </doc>
  60338. </class>
  60339. <!-- end class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  60340. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  60341. <class name="ChainMapper" extends="java.lang.Object"
  60342. abstract="false"
  60343. static="false" final="false" visibility="public"
  60344. deprecated="not deprecated">
  60345. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60346. <constructor name="ChainMapper"
  60347. static="false" final="false" visibility="public"
  60348. deprecated="not deprecated">
  60349. <doc>
  60350. <![CDATA[Constructor.]]>
  60351. </doc>
  60352. </constructor>
  60353. <method name="addMapper"
  60354. abstract="false" native="false" synchronized="false"
  60355. static="true" final="false" visibility="public"
  60356. deprecated="not deprecated">
  60357. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60358. <param name="klass" type="java.lang.Class"/>
  60359. <param name="inputKeyClass" type="java.lang.Class"/>
  60360. <param name="inputValueClass" type="java.lang.Class"/>
  60361. <param name="outputKeyClass" type="java.lang.Class"/>
  60362. <param name="outputValueClass" type="java.lang.Class"/>
  60363. <param name="byValue" type="boolean"/>
  60364. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  60365. <doc>
  60366. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  60367. <p/>
  60368. It has to be specified how key and values are passed from one element of
  60369. the chain to the next, by value or by reference. If a Mapper leverages the
  60370. assumed semantics that the key and values are not modified by the collector
  60371. 'by value' must be used. If the Mapper does not expect this semantics, as
  60372. an optimization to avoid serialization and deserialization 'by reference'
  60373. can be used.
  60374. <p/>
  60375. For the added Mapper the configuration given for it,
  60376. <code>mapperConf</code>, have precedence over the job's JobConf. This
  60377. precedence is in effect when the task is running.
  60378. <p/>
  60379. IMPORTANT: There is no need to specify the output key/value classes for the
  60380. ChainMapper, this is done by the addMapper for the last mapper in the chain
  60381. <p/>
  60382. @param job job's JobConf to add the Mapper class.
  60383. @param klass the Mapper class to add.
  60384. @param inputKeyClass mapper input key class.
  60385. @param inputValueClass mapper input value class.
  60386. @param outputKeyClass mapper output key class.
  60387. @param outputValueClass mapper output value class.
  60388. @param byValue indicates if key/values should be passed by value
  60389. to the next Mapper in the chain, if any.
  60390. @param mapperConf a JobConf with the configuration for the Mapper
  60391. class. It is recommended to use a JobConf without default values using the
  60392. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  60393. </doc>
  60394. </method>
  60395. <method name="configure"
  60396. abstract="false" native="false" synchronized="false"
  60397. static="false" final="false" visibility="public"
  60398. deprecated="not deprecated">
  60399. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60400. <doc>
  60401. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  60402. <p/>
  60403. If this method is overriden <code>super.configure(...)</code> should be
  60404. invoked at the beginning of the overwriter method.]]>
  60405. </doc>
  60406. </method>
  60407. <method name="map"
  60408. abstract="false" native="false" synchronized="false"
  60409. static="false" final="false" visibility="public"
  60410. deprecated="not deprecated">
  60411. <param name="key" type="java.lang.Object"/>
  60412. <param name="value" type="java.lang.Object"/>
  60413. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60414. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60415. <exception name="IOException" type="java.io.IOException"/>
  60416. <doc>
  60417. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  60418. </doc>
  60419. </method>
  60420. <method name="close"
  60421. abstract="false" native="false" synchronized="false"
  60422. static="false" final="false" visibility="public"
  60423. deprecated="not deprecated">
  60424. <exception name="IOException" type="java.io.IOException"/>
  60425. <doc>
  60426. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  60427. <p/>
  60428. If this method is overriden <code>super.close()</code> should be
  60429. invoked at the end of the overwriter method.]]>
  60430. </doc>
  60431. </method>
  60432. <doc>
  60433. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  60434. Map task.
  60435. <p/>
  60436. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  60437. the first becomes the input of the second, and so on until the last Mapper,
  60438. the output of the last Mapper will be written to the task's output.
  60439. <p/>
  60440. The key functionality of this feature is that the Mappers in the chain do not
  60441. need to be aware that they are executed in a chain. This enables having
  60442. reusable specialized Mappers that can be combined to perform composite
  60443. operations within a single task.
  60444. <p/>
  60445. Special care has to be taken when creating chains that the key/values output
  60446. by a Mapper are valid for the following Mapper in the chain. It is assumed
  60447. all Mappers and the Reduce in the chain use maching output and input key and
  60448. value classes as no conversion is done by the chaining code.
  60449. <p/>
  60450. Using the ChainMapper and the ChainReducer classes is possible to compose
  60451. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  60452. immediate benefit of this pattern is a dramatic reduction in disk IO.
  60453. <p/>
  60454. IMPORTANT: There is no need to specify the output key/value classes for the
  60455. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  60456. <p/>
  60457. ChainMapper usage pattern:
  60458. <p/>
  60459. <pre>
  60460. ...
  60461. conf.setJobName("chain");
  60462. conf.setInputFormat(TextInputFormat.class);
  60463. conf.setOutputFormat(TextOutputFormat.class);
  60464. <p/>
  60465. JobConf mapAConf = new JobConf(false);
  60466. ...
  60467. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  60468. Text.class, Text.class, true, mapAConf);
  60469. <p/>
  60470. JobConf mapBConf = new JobConf(false);
  60471. ...
  60472. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  60473. LongWritable.class, Text.class, false, mapBConf);
  60474. <p/>
  60475. JobConf reduceConf = new JobConf(false);
  60476. ...
  60477. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  60478. Text.class, Text.class, true, reduceConf);
  60479. <p/>
  60480. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  60481. LongWritable.class, Text.class, false, null);
  60482. <p/>
  60483. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  60484. LongWritable.class, LongWritable.class, true, null);
  60485. <p/>
  60486. FileInputFormat.setInputPaths(conf, inDir);
  60487. FileOutputFormat.setOutputPath(conf, outDir);
  60488. ...
  60489. <p/>
  60490. JobClient jc = new JobClient(conf);
  60491. RunningJob job = jc.submitJob(conf);
  60492. ...
  60493. </pre>]]>
  60494. </doc>
  60495. </class>
  60496. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  60497. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  60498. <class name="ChainReducer" extends="java.lang.Object"
  60499. abstract="false"
  60500. static="false" final="false" visibility="public"
  60501. deprecated="not deprecated">
  60502. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60503. <constructor name="ChainReducer"
  60504. static="false" final="false" visibility="public"
  60505. deprecated="not deprecated">
  60506. <doc>
  60507. <![CDATA[Constructor.]]>
  60508. </doc>
  60509. </constructor>
  60510. <method name="setReducer"
  60511. abstract="false" native="false" synchronized="false"
  60512. static="true" final="false" visibility="public"
  60513. deprecated="not deprecated">
  60514. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60515. <param name="klass" type="java.lang.Class"/>
  60516. <param name="inputKeyClass" type="java.lang.Class"/>
  60517. <param name="inputValueClass" type="java.lang.Class"/>
  60518. <param name="outputKeyClass" type="java.lang.Class"/>
  60519. <param name="outputValueClass" type="java.lang.Class"/>
  60520. <param name="byValue" type="boolean"/>
  60521. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  60522. <doc>
  60523. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  60524. <p/>
  60525. It has to be specified how key and values are passed from one element of
  60526. the chain to the next, by value or by reference. If a Reducer leverages the
  60527. assumed semantics that the key and values are not modified by the collector
  60528. 'by value' must be used. If the Reducer does not expect this semantics, as
  60529. an optimization to avoid serialization and deserialization 'by reference'
  60530. can be used.
  60531. <p/>
  60532. For the added Reducer the configuration given for it,
  60533. <code>reducerConf</code>, have precedence over the job's JobConf. This
  60534. precedence is in effect when the task is running.
  60535. <p/>
  60536. IMPORTANT: There is no need to specify the output key/value classes for the
  60537. ChainReducer, this is done by the setReducer or the addMapper for the last
  60538. element in the chain.
  60539. @param job job's JobConf to add the Reducer class.
  60540. @param klass the Reducer class to add.
  60541. @param inputKeyClass reducer input key class.
  60542. @param inputValueClass reducer input value class.
  60543. @param outputKeyClass reducer output key class.
  60544. @param outputValueClass reducer output value class.
  60545. @param byValue indicates if key/values should be passed by value
  60546. to the next Mapper in the chain, if any.
  60547. @param reducerConf a JobConf with the configuration for the Reducer
  60548. class. It is recommended to use a JobConf without default values using the
  60549. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  60550. </doc>
  60551. </method>
  60552. <method name="addMapper"
  60553. abstract="false" native="false" synchronized="false"
  60554. static="true" final="false" visibility="public"
  60555. deprecated="not deprecated">
  60556. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60557. <param name="klass" type="java.lang.Class"/>
  60558. <param name="inputKeyClass" type="java.lang.Class"/>
  60559. <param name="inputValueClass" type="java.lang.Class"/>
  60560. <param name="outputKeyClass" type="java.lang.Class"/>
  60561. <param name="outputValueClass" type="java.lang.Class"/>
  60562. <param name="byValue" type="boolean"/>
  60563. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  60564. <doc>
  60565. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  60566. <p/>
  60567. It has to be specified how key and values are passed from one element of
  60568. the chain to the next, by value or by reference. If a Mapper leverages the
  60569. assumed semantics that the key and values are not modified by the collector
  60570. 'by value' must be used. If the Mapper does not expect this semantics, as
  60571. an optimization to avoid serialization and deserialization 'by reference'
  60572. can be used.
  60573. <p/>
  60574. For the added Mapper the configuration given for it,
  60575. <code>mapperConf</code>, have precedence over the job's JobConf. This
  60576. precedence is in effect when the task is running.
  60577. <p/>
  60578. IMPORTANT: There is no need to specify the output key/value classes for the
  60579. ChainMapper, this is done by the addMapper for the last mapper in the chain
  60580. .
  60581. @param job chain job's JobConf to add the Mapper class.
  60582. @param klass the Mapper class to add.
  60583. @param inputKeyClass mapper input key class.
  60584. @param inputValueClass mapper input value class.
  60585. @param outputKeyClass mapper output key class.
  60586. @param outputValueClass mapper output value class.
  60587. @param byValue indicates if key/values should be passed by value
  60588. to the next Mapper in the chain, if any.
  60589. @param mapperConf a JobConf with the configuration for the Mapper
  60590. class. It is recommended to use a JobConf without default values using the
  60591. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  60592. </doc>
  60593. </method>
  60594. <method name="configure"
  60595. abstract="false" native="false" synchronized="false"
  60596. static="false" final="false" visibility="public"
  60597. deprecated="not deprecated">
  60598. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60599. <doc>
  60600. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  60601. <p/>
  60602. If this method is overriden <code>super.configure(...)</code> should be
  60603. invoked at the beginning of the overwriter method.]]>
  60604. </doc>
  60605. </method>
  60606. <method name="reduce"
  60607. abstract="false" native="false" synchronized="false"
  60608. static="false" final="false" visibility="public"
  60609. deprecated="not deprecated">
  60610. <param name="key" type="java.lang.Object"/>
  60611. <param name="values" type="java.util.Iterator"/>
  60612. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60613. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60614. <exception name="IOException" type="java.io.IOException"/>
  60615. <doc>
  60616. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  60617. <code>map(...) </code> methods of the Mappers in the chain.]]>
  60618. </doc>
  60619. </method>
  60620. <method name="close"
  60621. abstract="false" native="false" synchronized="false"
  60622. static="false" final="false" visibility="public"
  60623. deprecated="not deprecated">
  60624. <exception name="IOException" type="java.io.IOException"/>
  60625. <doc>
  60626. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  60627. <p/>
  60628. If this method is overriden <code>super.close()</code> should be
  60629. invoked at the end of the overwriter method.]]>
  60630. </doc>
  60631. </method>
  60632. <doc>
  60633. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  60634. Reducer within the Reducer task.
  60635. <p/>
  60636. For each record output by the Reducer, the Mapper classes are invoked in a
  60637. chained (or piped) fashion, the output of the first becomes the input of the
  60638. second, and so on until the last Mapper, the output of the last Mapper will
  60639. be written to the task's output.
  60640. <p/>
  60641. The key functionality of this feature is that the Mappers in the chain do not
  60642. need to be aware that they are executed after the Reducer or in a chain.
  60643. This enables having reusable specialized Mappers that can be combined to
  60644. perform composite operations within a single task.
  60645. <p/>
  60646. Special care has to be taken when creating chains that the key/values output
  60647. by a Mapper are valid for the following Mapper in the chain. It is assumed
  60648. all Mappers and the Reduce in the chain use maching output and input key and
  60649. value classes as no conversion is done by the chaining code.
  60650. <p/>
  60651. Using the ChainMapper and the ChainReducer classes is possible to compose
  60652. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  60653. immediate benefit of this pattern is a dramatic reduction in disk IO.
  60654. <p/>
  60655. IMPORTANT: There is no need to specify the output key/value classes for the
  60656. ChainReducer, this is done by the setReducer or the addMapper for the last
  60657. element in the chain.
  60658. <p/>
  60659. ChainReducer usage pattern:
  60660. <p/>
  60661. <pre>
  60662. ...
  60663. conf.setJobName("chain");
  60664. conf.setInputFormat(TextInputFormat.class);
  60665. conf.setOutputFormat(TextOutputFormat.class);
  60666. <p/>
  60667. JobConf mapAConf = new JobConf(false);
  60668. ...
  60669. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  60670. Text.class, Text.class, true, mapAConf);
  60671. <p/>
  60672. JobConf mapBConf = new JobConf(false);
  60673. ...
  60674. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  60675. LongWritable.class, Text.class, false, mapBConf);
  60676. <p/>
  60677. JobConf reduceConf = new JobConf(false);
  60678. ...
  60679. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  60680. Text.class, Text.class, true, reduceConf);
  60681. <p/>
  60682. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  60683. LongWritable.class, Text.class, false, null);
  60684. <p/>
  60685. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  60686. LongWritable.class, LongWritable.class, true, null);
  60687. <p/>
  60688. FileInputFormat.setInputPaths(conf, inDir);
  60689. FileOutputFormat.setOutputPath(conf, outDir);
  60690. ...
  60691. <p/>
  60692. JobClient jc = new JobClient(conf);
  60693. RunningJob job = jc.submitJob(conf);
  60694. ...
  60695. </pre>]]>
  60696. </doc>
  60697. </class>
  60698. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  60699. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  60700. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  60701. abstract="true"
  60702. static="false" final="false" visibility="public"
  60703. deprecated="not deprecated">
  60704. <constructor name="CombineFileInputFormat"
  60705. static="false" final="false" visibility="public"
  60706. deprecated="not deprecated">
  60707. <doc>
  60708. <![CDATA[default constructor]]>
  60709. </doc>
  60710. </constructor>
  60711. <method name="setMaxSplitSize"
  60712. abstract="false" native="false" synchronized="false"
  60713. static="false" final="false" visibility="protected"
  60714. deprecated="not deprecated">
  60715. <param name="maxSplitSize" type="long"/>
  60716. <doc>
  60717. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  60718. approximately equal to the specified size.]]>
  60719. </doc>
  60720. </method>
  60721. <method name="setMinSplitSizeNode"
  60722. abstract="false" native="false" synchronized="false"
  60723. static="false" final="false" visibility="protected"
  60724. deprecated="not deprecated">
  60725. <param name="minSplitSizeNode" type="long"/>
  60726. <doc>
  60727. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  60728. This applies to data that is left over after combining data on a single
  60729. node into splits that are of maximum size specified by maxSplitSize.
  60730. This leftover data will be combined into its own split if its size
  60731. exceeds minSplitSizeNode.]]>
  60732. </doc>
  60733. </method>
  60734. <method name="setMinSplitSizeRack"
  60735. abstract="false" native="false" synchronized="false"
  60736. static="false" final="false" visibility="protected"
  60737. deprecated="not deprecated">
  60738. <param name="minSplitSizeRack" type="long"/>
  60739. <doc>
  60740. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  60741. This applies to data that is left over after combining data on a single
  60742. rack into splits that are of maximum size specified by maxSplitSize.
  60743. This leftover data will be combined into its own split if its size
  60744. exceeds minSplitSizeRack.]]>
  60745. </doc>
  60746. </method>
  60747. <method name="createPool"
  60748. abstract="false" native="false" synchronized="false"
  60749. static="false" final="false" visibility="protected"
  60750. deprecated="not deprecated">
  60751. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60752. <param name="filters" type="java.util.List"/>
  60753. <doc>
  60754. <![CDATA[Create a new pool and add the filters to it.
  60755. A split cannot have files from different pools.]]>
  60756. </doc>
  60757. </method>
  60758. <method name="createPool"
  60759. abstract="false" native="false" synchronized="false"
  60760. static="false" final="false" visibility="protected"
  60761. deprecated="not deprecated">
  60762. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60763. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  60764. <doc>
  60765. <![CDATA[Create a new pool and add the filters to it.
  60766. A pathname can satisfy any one of the specified filters.
  60767. A split cannot have files from different pools.]]>
  60768. </doc>
  60769. </method>
  60770. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60771. abstract="false" native="false" synchronized="false"
  60772. static="false" final="false" visibility="public"
  60773. deprecated="not deprecated">
  60774. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60775. <param name="numSplits" type="int"/>
  60776. <exception name="IOException" type="java.io.IOException"/>
  60777. </method>
  60778. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60779. abstract="true" native="false" synchronized="false"
  60780. static="false" final="false" visibility="public"
  60781. deprecated="not deprecated">
  60782. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60783. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60784. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60785. <exception name="IOException" type="java.io.IOException"/>
  60786. <doc>
  60787. <![CDATA[This is not implemented yet.]]>
  60788. </doc>
  60789. </method>
  60790. <doc>
  60791. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  60792. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  60793. Splits are constructed from the files under the input paths.
  60794. A split cannot have files from different pools.
  60795. Each split returned may contain blocks from different files.
  60796. If a maxSplitSize is specified, then blocks on the same node are
  60797. combined to form a single split. Blocks that are left over are
  60798. then combined with other blocks in the same rack.
  60799. If maxSplitSize is not specified, then blocks from the same rack
  60800. are combined in a single split; no attempt is made to create
  60801. node-local splits.
  60802. If the maxSplitSize is equal to the block size, then this class
  60803. is similar to the default spliting behaviour in Hadoop: each
  60804. block is a locally processed split.
  60805. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  60806. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  60807. @see CombineFileSplit]]>
  60808. </doc>
  60809. </class>
  60810. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  60811. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  60812. <class name="CombineFileRecordReader" extends="java.lang.Object"
  60813. abstract="false"
  60814. static="false" final="false" visibility="public"
  60815. deprecated="not deprecated">
  60816. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  60817. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  60818. static="false" final="false" visibility="public"
  60819. deprecated="not deprecated">
  60820. <exception name="IOException" type="java.io.IOException"/>
  60821. <doc>
  60822. <![CDATA[A generic RecordReader that can hand out different recordReaders
  60823. for each chunk in the CombineFileSplit.]]>
  60824. </doc>
  60825. </constructor>
  60826. <method name="next" return="boolean"
  60827. abstract="false" native="false" synchronized="false"
  60828. static="false" final="false" visibility="public"
  60829. deprecated="not deprecated">
  60830. <param name="key" type="java.lang.Object"/>
  60831. <param name="value" type="java.lang.Object"/>
  60832. <exception name="IOException" type="java.io.IOException"/>
  60833. </method>
  60834. <method name="createKey" return="java.lang.Object"
  60835. abstract="false" native="false" synchronized="false"
  60836. static="false" final="false" visibility="public"
  60837. deprecated="not deprecated">
  60838. </method>
  60839. <method name="createValue" return="java.lang.Object"
  60840. abstract="false" native="false" synchronized="false"
  60841. static="false" final="false" visibility="public"
  60842. deprecated="not deprecated">
  60843. </method>
  60844. <method name="getPos" return="long"
  60845. abstract="false" native="false" synchronized="false"
  60846. static="false" final="false" visibility="public"
  60847. deprecated="not deprecated">
  60848. <exception name="IOException" type="java.io.IOException"/>
  60849. <doc>
  60850. <![CDATA[return the amount of data processed]]>
  60851. </doc>
  60852. </method>
  60853. <method name="close"
  60854. abstract="false" native="false" synchronized="false"
  60855. static="false" final="false" visibility="public"
  60856. deprecated="not deprecated">
  60857. <exception name="IOException" type="java.io.IOException"/>
  60858. </method>
  60859. <method name="getProgress" return="float"
  60860. abstract="false" native="false" synchronized="false"
  60861. static="false" final="false" visibility="public"
  60862. deprecated="not deprecated">
  60863. <exception name="IOException" type="java.io.IOException"/>
  60864. <doc>
  60865. <![CDATA[return progress based on the amount of data processed so far.]]>
  60866. </doc>
  60867. </method>
  60868. <method name="initNextRecordReader" return="boolean"
  60869. abstract="false" native="false" synchronized="false"
  60870. static="false" final="false" visibility="protected"
  60871. deprecated="not deprecated">
  60872. <exception name="IOException" type="java.io.IOException"/>
  60873. <doc>
  60874. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  60875. </doc>
  60876. </method>
  60877. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60878. transient="false" volatile="false"
  60879. static="false" final="false" visibility="protected"
  60880. deprecated="not deprecated">
  60881. </field>
  60882. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  60883. transient="false" volatile="false"
  60884. static="false" final="false" visibility="protected"
  60885. deprecated="not deprecated">
  60886. </field>
  60887. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  60888. transient="false" volatile="false"
  60889. static="false" final="false" visibility="protected"
  60890. deprecated="not deprecated">
  60891. </field>
  60892. <field name="rrClass" type="java.lang.Class"
  60893. transient="false" volatile="false"
  60894. static="false" final="false" visibility="protected"
  60895. deprecated="not deprecated">
  60896. </field>
  60897. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  60898. transient="false" volatile="false"
  60899. static="false" final="false" visibility="protected"
  60900. deprecated="not deprecated">
  60901. </field>
  60902. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  60903. transient="false" volatile="false"
  60904. static="false" final="false" visibility="protected"
  60905. deprecated="not deprecated">
  60906. </field>
  60907. <field name="idx" type="int"
  60908. transient="false" volatile="false"
  60909. static="false" final="false" visibility="protected"
  60910. deprecated="not deprecated">
  60911. </field>
  60912. <field name="progress" type="long"
  60913. transient="false" volatile="false"
  60914. static="false" final="false" visibility="protected"
  60915. deprecated="not deprecated">
  60916. </field>
  60917. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  60918. transient="false" volatile="false"
  60919. static="false" final="false" visibility="protected"
  60920. deprecated="not deprecated">
  60921. </field>
  60922. <doc>
  60923. <![CDATA[A generic RecordReader that can hand out different recordReaders
  60924. for each chunk in a {@link CombineFileSplit}.
  60925. A CombineFileSplit can combine data chunks from multiple files.
  60926. This class allows using different RecordReaders for processing
  60927. these data chunks from different files.
  60928. @see CombineFileSplit]]>
  60929. </doc>
  60930. </class>
  60931. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  60932. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  60933. <class name="CombineFileSplit" extends="java.lang.Object"
  60934. abstract="false"
  60935. static="false" final="false" visibility="public"
  60936. deprecated="not deprecated">
  60937. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  60938. <constructor name="CombineFileSplit"
  60939. static="false" final="false" visibility="public"
  60940. deprecated="not deprecated">
  60941. <doc>
  60942. <![CDATA[default constructor]]>
  60943. </doc>
  60944. </constructor>
  60945. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  60946. static="false" final="false" visibility="public"
  60947. deprecated="not deprecated">
  60948. </constructor>
  60949. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  60950. static="false" final="false" visibility="public"
  60951. deprecated="not deprecated">
  60952. </constructor>
  60953. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60954. static="false" final="false" visibility="public"
  60955. deprecated="not deprecated">
  60956. <exception name="IOException" type="java.io.IOException"/>
  60957. <doc>
  60958. <![CDATA[Copy constructor]]>
  60959. </doc>
  60960. </constructor>
  60961. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  60962. abstract="false" native="false" synchronized="false"
  60963. static="false" final="false" visibility="public"
  60964. deprecated="not deprecated">
  60965. </method>
  60966. <method name="getLength" return="long"
  60967. abstract="false" native="false" synchronized="false"
  60968. static="false" final="false" visibility="public"
  60969. deprecated="not deprecated">
  60970. </method>
  60971. <method name="getStartOffsets" return="long[]"
  60972. abstract="false" native="false" synchronized="false"
  60973. static="false" final="false" visibility="public"
  60974. deprecated="not deprecated">
  60975. <doc>
  60976. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  60977. </doc>
  60978. </method>
  60979. <method name="getLengths" return="long[]"
  60980. abstract="false" native="false" synchronized="false"
  60981. static="false" final="false" visibility="public"
  60982. deprecated="not deprecated">
  60983. <doc>
  60984. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  60985. </doc>
  60986. </method>
  60987. <method name="getOffset" return="long"
  60988. abstract="false" native="false" synchronized="false"
  60989. static="false" final="false" visibility="public"
  60990. deprecated="not deprecated">
  60991. <param name="i" type="int"/>
  60992. <doc>
  60993. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  60994. </doc>
  60995. </method>
  60996. <method name="getLength" return="long"
  60997. abstract="false" native="false" synchronized="false"
  60998. static="false" final="false" visibility="public"
  60999. deprecated="not deprecated">
  61000. <param name="i" type="int"/>
  61001. <doc>
  61002. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  61003. </doc>
  61004. </method>
  61005. <method name="getNumPaths" return="int"
  61006. abstract="false" native="false" synchronized="false"
  61007. static="false" final="false" visibility="public"
  61008. deprecated="not deprecated">
  61009. <doc>
  61010. <![CDATA[Returns the number of Paths in the split]]>
  61011. </doc>
  61012. </method>
  61013. <method name="getPath" return="org.apache.hadoop.fs.Path"
  61014. abstract="false" native="false" synchronized="false"
  61015. static="false" final="false" visibility="public"
  61016. deprecated="not deprecated">
  61017. <param name="i" type="int"/>
  61018. <doc>
  61019. <![CDATA[Returns the i<sup>th</sup> Path]]>
  61020. </doc>
  61021. </method>
  61022. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  61023. abstract="false" native="false" synchronized="false"
  61024. static="false" final="false" visibility="public"
  61025. deprecated="not deprecated">
  61026. <doc>
  61027. <![CDATA[Returns all the Paths in the split]]>
  61028. </doc>
  61029. </method>
  61030. <method name="getLocations" return="java.lang.String[]"
  61031. abstract="false" native="false" synchronized="false"
  61032. static="false" final="false" visibility="public"
  61033. deprecated="not deprecated">
  61034. <exception name="IOException" type="java.io.IOException"/>
  61035. <doc>
  61036. <![CDATA[Returns all the Paths where this input-split resides]]>
  61037. </doc>
  61038. </method>
  61039. <method name="readFields"
  61040. abstract="false" native="false" synchronized="false"
  61041. static="false" final="false" visibility="public"
  61042. deprecated="not deprecated">
  61043. <param name="in" type="java.io.DataInput"/>
  61044. <exception name="IOException" type="java.io.IOException"/>
  61045. </method>
  61046. <method name="write"
  61047. abstract="false" native="false" synchronized="false"
  61048. static="false" final="false" visibility="public"
  61049. deprecated="not deprecated">
  61050. <param name="out" type="java.io.DataOutput"/>
  61051. <exception name="IOException" type="java.io.IOException"/>
  61052. </method>
  61053. <method name="toString" return="java.lang.String"
  61054. abstract="false" native="false" synchronized="false"
  61055. static="false" final="false" visibility="public"
  61056. deprecated="not deprecated">
  61057. </method>
  61058. <doc>
  61059. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  61060. CombineFileSplit * class does not represent a split of a file, but a split of input files
  61061. into smaller sets. A split may contain blocks from different file but all
  61062. the blocks in the same split are probably local to some rack <br>
  61063. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  61064. with reading one record per file.
  61065. @see org.apache.hadoop.mapred.FileSplit
  61066. @see CombineFileInputFormat]]>
  61067. </doc>
  61068. </class>
  61069. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  61070. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  61071. <class name="DelegatingInputFormat" extends="java.lang.Object"
  61072. abstract="false"
  61073. static="false" final="false" visibility="public"
  61074. deprecated="not deprecated">
  61075. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  61076. <constructor name="DelegatingInputFormat"
  61077. static="false" final="false" visibility="public"
  61078. deprecated="not deprecated">
  61079. </constructor>
  61080. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  61081. abstract="false" native="false" synchronized="false"
  61082. static="false" final="false" visibility="public"
  61083. deprecated="not deprecated">
  61084. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61085. <param name="numSplits" type="int"/>
  61086. <exception name="IOException" type="java.io.IOException"/>
  61087. </method>
  61088. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  61089. abstract="false" native="false" synchronized="false"
  61090. static="false" final="false" visibility="public"
  61091. deprecated="not deprecated">
  61092. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  61093. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61094. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61095. <exception name="IOException" type="java.io.IOException"/>
  61096. </method>
  61097. <doc>
  61098. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  61099. InputFormats.
  61100. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  61101. </doc>
  61102. </class>
  61103. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  61104. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  61105. <class name="DelegatingMapper" extends="java.lang.Object"
  61106. abstract="false"
  61107. static="false" final="false" visibility="public"
  61108. deprecated="not deprecated">
  61109. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61110. <constructor name="DelegatingMapper"
  61111. static="false" final="false" visibility="public"
  61112. deprecated="not deprecated">
  61113. </constructor>
  61114. <method name="map"
  61115. abstract="false" native="false" synchronized="false"
  61116. static="false" final="false" visibility="public"
  61117. deprecated="not deprecated">
  61118. <param name="key" type="java.lang.Object"/>
  61119. <param name="value" type="java.lang.Object"/>
  61120. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  61121. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61122. <exception name="IOException" type="java.io.IOException"/>
  61123. </method>
  61124. <method name="configure"
  61125. abstract="false" native="false" synchronized="false"
  61126. static="false" final="false" visibility="public"
  61127. deprecated="not deprecated">
  61128. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61129. </method>
  61130. <method name="close"
  61131. abstract="false" native="false" synchronized="false"
  61132. static="false" final="false" visibility="public"
  61133. deprecated="not deprecated">
  61134. <exception name="IOException" type="java.io.IOException"/>
  61135. </method>
  61136. <doc>
  61137. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  61138. mappers.
  61139. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  61140. </doc>
  61141. </class>
  61142. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  61143. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  61144. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  61145. abstract="false"
  61146. static="false" final="false" visibility="public"
  61147. deprecated="not deprecated">
  61148. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61149. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61150. <constructor name="FieldSelectionMapReduce"
  61151. static="false" final="false" visibility="public"
  61152. deprecated="not deprecated">
  61153. </constructor>
  61154. <method name="map"
  61155. abstract="false" native="false" synchronized="false"
  61156. static="false" final="false" visibility="public"
  61157. deprecated="not deprecated">
  61158. <param name="key" type="java.lang.Object"/>
  61159. <param name="val" type="java.lang.Object"/>
  61160. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61161. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61162. <exception name="IOException" type="java.io.IOException"/>
  61163. <doc>
  61164. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  61165. </doc>
  61166. </method>
  61167. <method name="configure"
  61168. abstract="false" native="false" synchronized="false"
  61169. static="false" final="false" visibility="public"
  61170. deprecated="not deprecated">
  61171. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61172. </method>
  61173. <method name="close"
  61174. abstract="false" native="false" synchronized="false"
  61175. static="false" final="false" visibility="public"
  61176. deprecated="not deprecated">
  61177. <exception name="IOException" type="java.io.IOException"/>
  61178. </method>
  61179. <method name="reduce"
  61180. abstract="false" native="false" synchronized="false"
  61181. static="false" final="false" visibility="public"
  61182. deprecated="not deprecated">
  61183. <param name="key" type="org.apache.hadoop.io.Text"/>
  61184. <param name="values" type="java.util.Iterator"/>
  61185. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61186. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61187. <exception name="IOException" type="java.io.IOException"/>
  61188. </method>
  61189. <field name="LOG" type="org.apache.commons.logging.Log"
  61190. transient="false" volatile="false"
  61191. static="true" final="true" visibility="public"
  61192. deprecated="not deprecated">
  61193. </field>
  61194. <doc>
  61195. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  61196. field selections in a manner similar to unix cut. The input data is treated
  61197. as fields separated by a user specified separator (the default value is
  61198. "\t"). The user can specify a list of fields that form the map output keys,
  61199. and a list of fields that form the map output values. If the inputformat is
  61200. TextInputFormat, the mapper will ignore the key to the map function. and the
  61201. fields are from the value only. Otherwise, the fields are the union of those
  61202. from the key and those from the value.
  61203. The field separator is under attribute "mapred.data.field.separator"
  61204. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  61205. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  61206. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  61207. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  61208. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  61209. the fields starting from field 3. The open range field spec applies value fields only.
  61210. They have no effect on the key fields.
  61211. 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,
  61212. and use fields 6,5,1,2,3,7 and above for values.
  61213. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  61214. The reducer extracts output key/value pairs in a similar manner, except that
  61215. the key is never ignored.]]>
  61216. </doc>
  61217. </class>
  61218. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  61219. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  61220. <class name="HashPartitioner" extends="java.lang.Object"
  61221. abstract="false"
  61222. static="false" final="false" visibility="public"
  61223. deprecated="not deprecated">
  61224. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61225. <constructor name="HashPartitioner"
  61226. static="false" final="false" visibility="public"
  61227. deprecated="not deprecated">
  61228. </constructor>
  61229. <method name="configure"
  61230. abstract="false" native="false" synchronized="false"
  61231. static="false" final="false" visibility="public"
  61232. deprecated="not deprecated">
  61233. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61234. </method>
  61235. <method name="getPartition" return="int"
  61236. abstract="false" native="false" synchronized="false"
  61237. static="false" final="false" visibility="public"
  61238. deprecated="not deprecated">
  61239. <param name="key" type="java.lang.Object"/>
  61240. <param name="value" type="java.lang.Object"/>
  61241. <param name="numReduceTasks" type="int"/>
  61242. <doc>
  61243. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  61244. </doc>
  61245. </method>
  61246. <doc>
  61247. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  61248. </doc>
  61249. </class>
  61250. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  61251. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  61252. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61253. abstract="false"
  61254. static="false" final="false" visibility="public"
  61255. deprecated="not deprecated">
  61256. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61257. <constructor name="IdentityMapper"
  61258. static="false" final="false" visibility="public"
  61259. deprecated="not deprecated">
  61260. </constructor>
  61261. <method name="map"
  61262. abstract="false" native="false" synchronized="false"
  61263. static="false" final="false" visibility="public"
  61264. deprecated="not deprecated">
  61265. <param name="key" type="java.lang.Object"/>
  61266. <param name="val" type="java.lang.Object"/>
  61267. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61268. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61269. <exception name="IOException" type="java.io.IOException"/>
  61270. <doc>
  61271. <![CDATA[The identify function. Input key/value pair is written directly to
  61272. output.]]>
  61273. </doc>
  61274. </method>
  61275. <doc>
  61276. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  61277. </doc>
  61278. </class>
  61279. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  61280. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  61281. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  61282. abstract="false"
  61283. static="false" final="false" visibility="public"
  61284. deprecated="not deprecated">
  61285. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61286. <constructor name="IdentityReducer"
  61287. static="false" final="false" visibility="public"
  61288. deprecated="not deprecated">
  61289. </constructor>
  61290. <method name="reduce"
  61291. abstract="false" native="false" synchronized="false"
  61292. static="false" final="false" visibility="public"
  61293. deprecated="not deprecated">
  61294. <param name="key" type="java.lang.Object"/>
  61295. <param name="values" type="java.util.Iterator"/>
  61296. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61297. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61298. <exception name="IOException" type="java.io.IOException"/>
  61299. <doc>
  61300. <![CDATA[Writes all keys and values directly to output.]]>
  61301. </doc>
  61302. </method>
  61303. <doc>
  61304. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  61305. </doc>
  61306. </class>
  61307. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  61308. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  61309. <class name="InputSampler" extends="java.lang.Object"
  61310. abstract="false"
  61311. static="false" final="false" visibility="public"
  61312. deprecated="not deprecated">
  61313. <implements name="org.apache.hadoop.util.Tool"/>
  61314. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  61315. static="false" final="false" visibility="public"
  61316. deprecated="not deprecated">
  61317. </constructor>
  61318. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  61319. abstract="false" native="false" synchronized="false"
  61320. static="false" final="false" visibility="public"
  61321. deprecated="not deprecated">
  61322. </method>
  61323. <method name="setConf"
  61324. abstract="false" native="false" synchronized="false"
  61325. static="false" final="false" visibility="public"
  61326. deprecated="not deprecated">
  61327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  61328. </method>
  61329. <method name="writePartitionFile"
  61330. abstract="false" native="false" synchronized="false"
  61331. static="true" final="false" visibility="public"
  61332. deprecated="not deprecated">
  61333. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61334. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  61335. <exception name="IOException" type="java.io.IOException"/>
  61336. <doc>
  61337. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  61338. Queries the sampler for a sample keyset, sorts by the output key
  61339. comparator, selects the keys for each rank, and writes to the destination
  61340. returned from {@link
  61341. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  61342. </doc>
  61343. </method>
  61344. <method name="run" return="int"
  61345. abstract="false" native="false" synchronized="false"
  61346. static="false" final="false" visibility="public"
  61347. deprecated="not deprecated">
  61348. <param name="args" type="java.lang.String[]"/>
  61349. <exception name="Exception" type="java.lang.Exception"/>
  61350. <doc>
  61351. <![CDATA[Driver for InputSampler from the command line.
  61352. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  61353. </doc>
  61354. </method>
  61355. <method name="main"
  61356. abstract="false" native="false" synchronized="false"
  61357. static="true" final="false" visibility="public"
  61358. deprecated="not deprecated">
  61359. <param name="args" type="java.lang.String[]"/>
  61360. <exception name="Exception" type="java.lang.Exception"/>
  61361. </method>
  61362. <doc>
  61363. <![CDATA[Utility for collecting samples and writing a partition file for
  61364. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  61365. </doc>
  61366. </class>
  61367. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  61368. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  61369. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  61370. abstract="false"
  61371. static="true" final="false" visibility="public"
  61372. deprecated="not deprecated">
  61373. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  61374. <constructor name="InputSampler.IntervalSampler" type="double"
  61375. static="false" final="false" visibility="public"
  61376. deprecated="not deprecated">
  61377. <doc>
  61378. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  61379. @param freq The frequency with which records will be emitted.]]>
  61380. </doc>
  61381. </constructor>
  61382. <constructor name="InputSampler.IntervalSampler" type="double, int"
  61383. static="false" final="false" visibility="public"
  61384. deprecated="not deprecated">
  61385. <doc>
  61386. <![CDATA[Create a new IntervalSampler.
  61387. @param freq The frequency with which records will be emitted.
  61388. @param maxSplitsSampled The maximum number of splits to examine.
  61389. @see #getSample]]>
  61390. </doc>
  61391. </constructor>
  61392. <method name="getSample" return="java.lang.Object[]"
  61393. abstract="false" native="false" synchronized="false"
  61394. static="false" final="false" visibility="public"
  61395. deprecated="not deprecated">
  61396. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  61397. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61398. <exception name="IOException" type="java.io.IOException"/>
  61399. <doc>
  61400. <![CDATA[For each split sampled, emit when the ratio of the number of records
  61401. retained to the total record count is less than the specified
  61402. frequency.]]>
  61403. </doc>
  61404. </method>
  61405. <doc>
  61406. <![CDATA[Sample from s splits at regular intervals.
  61407. Useful for sorted data.]]>
  61408. </doc>
  61409. </class>
  61410. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  61411. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  61412. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  61413. abstract="false"
  61414. static="true" final="false" visibility="public"
  61415. deprecated="not deprecated">
  61416. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  61417. <constructor name="InputSampler.RandomSampler" type="double, int"
  61418. static="false" final="false" visibility="public"
  61419. deprecated="not deprecated">
  61420. <doc>
  61421. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  61422. This will read every split at the client, which is very expensive.
  61423. @param freq Probability with which a key will be chosen.
  61424. @param numSamples Total number of samples to obtain from all selected
  61425. splits.]]>
  61426. </doc>
  61427. </constructor>
  61428. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  61429. static="false" final="false" visibility="public"
  61430. deprecated="not deprecated">
  61431. <doc>
  61432. <![CDATA[Create a new RandomSampler.
  61433. @param freq Probability with which a key will be chosen.
  61434. @param numSamples Total number of samples to obtain from all selected
  61435. splits.
  61436. @param maxSplitsSampled The maximum number of splits to examine.]]>
  61437. </doc>
  61438. </constructor>
  61439. <method name="getSample" return="java.lang.Object[]"
  61440. abstract="false" native="false" synchronized="false"
  61441. static="false" final="false" visibility="public"
  61442. deprecated="not deprecated">
  61443. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  61444. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61445. <exception name="IOException" type="java.io.IOException"/>
  61446. <doc>
  61447. <![CDATA[Randomize the split order, then take the specified number of keys from
  61448. each split sampled, where each key is selected with the specified
  61449. probability and possibly replaced by a subsequently selected key when
  61450. the quota of keys from that split is satisfied.]]>
  61451. </doc>
  61452. </method>
  61453. <doc>
  61454. <![CDATA[Sample from random points in the input.
  61455. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  61456. each split.]]>
  61457. </doc>
  61458. </class>
  61459. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  61460. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  61461. <interface name="InputSampler.Sampler" abstract="true"
  61462. static="true" final="false" visibility="public"
  61463. deprecated="not deprecated">
  61464. <method name="getSample" return="java.lang.Object[]"
  61465. abstract="false" native="false" synchronized="false"
  61466. static="false" final="false" visibility="public"
  61467. deprecated="not deprecated">
  61468. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  61469. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61470. <exception name="IOException" type="java.io.IOException"/>
  61471. <doc>
  61472. <![CDATA[For a given job, collect and return a subset of the keys from the
  61473. input data.]]>
  61474. </doc>
  61475. </method>
  61476. <doc>
  61477. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  61478. </doc>
  61479. </interface>
  61480. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  61481. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  61482. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  61483. abstract="false"
  61484. static="true" final="false" visibility="public"
  61485. deprecated="not deprecated">
  61486. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  61487. <constructor name="InputSampler.SplitSampler" type="int"
  61488. static="false" final="false" visibility="public"
  61489. deprecated="not deprecated">
  61490. <doc>
  61491. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  61492. Takes the first numSamples / numSplits records from each split.
  61493. @param numSamples Total number of samples to obtain from all selected
  61494. splits.]]>
  61495. </doc>
  61496. </constructor>
  61497. <constructor name="InputSampler.SplitSampler" type="int, int"
  61498. static="false" final="false" visibility="public"
  61499. deprecated="not deprecated">
  61500. <doc>
  61501. <![CDATA[Create a new SplitSampler.
  61502. @param numSamples Total number of samples to obtain from all selected
  61503. splits.
  61504. @param maxSplitsSampled The maximum number of splits to examine.]]>
  61505. </doc>
  61506. </constructor>
  61507. <method name="getSample" return="java.lang.Object[]"
  61508. abstract="false" native="false" synchronized="false"
  61509. static="false" final="false" visibility="public"
  61510. deprecated="not deprecated">
  61511. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  61512. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61513. <exception name="IOException" type="java.io.IOException"/>
  61514. <doc>
  61515. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  61516. </doc>
  61517. </method>
  61518. <doc>
  61519. <![CDATA[Samples the first n records from s splits.
  61520. Inexpensive way to sample random data.]]>
  61521. </doc>
  61522. </class>
  61523. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  61524. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  61525. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61526. abstract="false"
  61527. static="false" final="false" visibility="public"
  61528. deprecated="not deprecated">
  61529. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61530. <constructor name="InverseMapper"
  61531. static="false" final="false" visibility="public"
  61532. deprecated="not deprecated">
  61533. </constructor>
  61534. <method name="map"
  61535. abstract="false" native="false" synchronized="false"
  61536. static="false" final="false" visibility="public"
  61537. deprecated="not deprecated">
  61538. <param name="key" type="java.lang.Object"/>
  61539. <param name="value" type="java.lang.Object"/>
  61540. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61541. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61542. <exception name="IOException" type="java.io.IOException"/>
  61543. <doc>
  61544. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  61545. </doc>
  61546. </method>
  61547. <doc>
  61548. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  61549. </doc>
  61550. </class>
  61551. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  61552. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  61553. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  61554. abstract="false"
  61555. static="false" final="false" visibility="public"
  61556. deprecated="not deprecated">
  61557. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  61558. <constructor name="KeyFieldBasedComparator"
  61559. static="false" final="false" visibility="public"
  61560. deprecated="not deprecated">
  61561. </constructor>
  61562. <method name="configure"
  61563. abstract="false" native="false" synchronized="false"
  61564. static="false" final="false" visibility="public"
  61565. deprecated="not deprecated">
  61566. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61567. </method>
  61568. <method name="compare" return="int"
  61569. abstract="false" native="false" synchronized="false"
  61570. static="false" final="false" visibility="public"
  61571. deprecated="not deprecated">
  61572. <param name="b1" type="byte[]"/>
  61573. <param name="s1" type="int"/>
  61574. <param name="l1" type="int"/>
  61575. <param name="b2" type="byte[]"/>
  61576. <param name="s2" type="int"/>
  61577. <param name="l2" type="int"/>
  61578. </method>
  61579. <doc>
  61580. <![CDATA[This comparator implementation provides a subset of the features provided
  61581. by the Unix/GNU Sort. In particular, the supported features are:
  61582. -n, (Sort numerically)
  61583. -r, (Reverse the result of comparison)
  61584. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  61585. of the field to use, and c is the number of the first character from the
  61586. beginning of the field. Fields and character posns are numbered starting
  61587. with 1; a character position of zero in pos2 indicates the field's last
  61588. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  61589. of the field); if omitted from pos2, it defaults to 0 (the end of the
  61590. field). opts are ordering options (any of 'nr' as described above).
  61591. We assume that the fields in the key are separated by
  61592. map.output.key.field.separator.]]>
  61593. </doc>
  61594. </class>
  61595. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  61596. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  61597. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  61598. abstract="false"
  61599. static="false" final="false" visibility="public"
  61600. deprecated="not deprecated">
  61601. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61602. <constructor name="KeyFieldBasedPartitioner"
  61603. static="false" final="false" visibility="public"
  61604. deprecated="not deprecated">
  61605. </constructor>
  61606. <method name="configure"
  61607. abstract="false" native="false" synchronized="false"
  61608. static="false" final="false" visibility="public"
  61609. deprecated="not deprecated">
  61610. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61611. </method>
  61612. <method name="getPartition" return="int"
  61613. abstract="false" native="false" synchronized="false"
  61614. static="false" final="false" visibility="public"
  61615. deprecated="not deprecated">
  61616. <param name="key" type="java.lang.Object"/>
  61617. <param name="value" type="java.lang.Object"/>
  61618. <param name="numReduceTasks" type="int"/>
  61619. </method>
  61620. <method name="hashCode" return="int"
  61621. abstract="false" native="false" synchronized="false"
  61622. static="false" final="false" visibility="protected"
  61623. deprecated="not deprecated">
  61624. <param name="b" type="byte[]"/>
  61625. <param name="start" type="int"/>
  61626. <param name="end" type="int"/>
  61627. <param name="currentHash" type="int"/>
  61628. </method>
  61629. <method name="getPartition" return="int"
  61630. abstract="false" native="false" synchronized="false"
  61631. static="false" final="false" visibility="protected"
  61632. deprecated="not deprecated">
  61633. <param name="hash" type="int"/>
  61634. <param name="numReduceTasks" type="int"/>
  61635. </method>
  61636. <doc>
  61637. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  61638. {@link KeyFieldBasedComparator}.
  61639. The key specification supported is of the form -k pos1[,pos2], where,
  61640. pos is of the form f[.c][opts], where f is the number
  61641. of the key field to use, and c is the number of the first character from
  61642. the beginning of the field. Fields and character posns are numbered
  61643. starting with 1; a character position of zero in pos2 indicates the
  61644. field's last character. If '.c' is omitted from pos1, it defaults to 1
  61645. (the beginning of the field); if omitted from pos2, it defaults to 0
  61646. (the end of the field).]]>
  61647. </doc>
  61648. </class>
  61649. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  61650. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  61651. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  61652. abstract="false"
  61653. static="false" final="false" visibility="public"
  61654. deprecated="not deprecated">
  61655. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61656. <constructor name="LongSumReducer"
  61657. static="false" final="false" visibility="public"
  61658. deprecated="not deprecated">
  61659. </constructor>
  61660. <method name="reduce"
  61661. abstract="false" native="false" synchronized="false"
  61662. static="false" final="false" visibility="public"
  61663. deprecated="not deprecated">
  61664. <param name="key" type="java.lang.Object"/>
  61665. <param name="values" type="java.util.Iterator"/>
  61666. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61667. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61668. <exception name="IOException" type="java.io.IOException"/>
  61669. </method>
  61670. <doc>
  61671. <![CDATA[A {@link Reducer} that sums long values.]]>
  61672. </doc>
  61673. </class>
  61674. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  61675. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  61676. <class name="MultipleInputs" extends="java.lang.Object"
  61677. abstract="false"
  61678. static="false" final="false" visibility="public"
  61679. deprecated="not deprecated">
  61680. <constructor name="MultipleInputs"
  61681. static="false" final="false" visibility="public"
  61682. deprecated="not deprecated">
  61683. </constructor>
  61684. <method name="addInputPath"
  61685. abstract="false" native="false" synchronized="false"
  61686. static="true" final="false" visibility="public"
  61687. deprecated="not deprecated">
  61688. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61689. <param name="path" type="org.apache.hadoop.fs.Path"/>
  61690. <param name="inputFormatClass" type="java.lang.Class"/>
  61691. <doc>
  61692. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  61693. inputs for the map-reduce job.
  61694. @param conf The configuration of the job
  61695. @param path {@link Path} to be added to the list of inputs for the job
  61696. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  61697. </doc>
  61698. </method>
  61699. <method name="addInputPath"
  61700. abstract="false" native="false" synchronized="false"
  61701. static="true" final="false" visibility="public"
  61702. deprecated="not deprecated">
  61703. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61704. <param name="path" type="org.apache.hadoop.fs.Path"/>
  61705. <param name="inputFormatClass" type="java.lang.Class"/>
  61706. <param name="mapperClass" type="java.lang.Class"/>
  61707. <doc>
  61708. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  61709. {@link Mapper} to the list of inputs for the map-reduce job.
  61710. @param conf The configuration of the job
  61711. @param path {@link Path} to be added to the list of inputs for the job
  61712. @param inputFormatClass {@link InputFormat} class to use for this path
  61713. @param mapperClass {@link Mapper} class to use for this path]]>
  61714. </doc>
  61715. </method>
  61716. <doc>
  61717. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  61718. a different {@link InputFormat} and {@link Mapper} for each path]]>
  61719. </doc>
  61720. </class>
  61721. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  61722. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  61723. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  61724. abstract="true"
  61725. static="false" final="false" visibility="public"
  61726. deprecated="not deprecated">
  61727. <constructor name="MultipleOutputFormat"
  61728. static="false" final="false" visibility="public"
  61729. deprecated="not deprecated">
  61730. </constructor>
  61731. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61732. abstract="false" native="false" synchronized="false"
  61733. static="false" final="false" visibility="public"
  61734. deprecated="not deprecated">
  61735. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61736. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61737. <param name="name" type="java.lang.String"/>
  61738. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61739. <exception name="IOException" type="java.io.IOException"/>
  61740. <doc>
  61741. <![CDATA[Create a composite record writer that can write key/value data to different
  61742. output files
  61743. @param fs
  61744. the file system to use
  61745. @param job
  61746. the job conf for the job
  61747. @param name
  61748. the leaf file name for the output file (such as part-00000")
  61749. @param arg3
  61750. a progressable for reporting progress.
  61751. @return a composite record writer
  61752. @throws IOException]]>
  61753. </doc>
  61754. </method>
  61755. <method name="generateLeafFileName" return="java.lang.String"
  61756. abstract="false" native="false" synchronized="false"
  61757. static="false" final="false" visibility="protected"
  61758. deprecated="not deprecated">
  61759. <param name="name" type="java.lang.String"/>
  61760. <doc>
  61761. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  61762. not change the leaf file name (such as part-00000)
  61763. @param name
  61764. the leaf file name for the output file
  61765. @return the given leaf file name]]>
  61766. </doc>
  61767. </method>
  61768. <method name="generateFileNameForKeyValue" return="java.lang.String"
  61769. abstract="false" native="false" synchronized="false"
  61770. static="false" final="false" visibility="protected"
  61771. deprecated="not deprecated">
  61772. <param name="key" type="java.lang.Object"/>
  61773. <param name="value" type="java.lang.Object"/>
  61774. <param name="name" type="java.lang.String"/>
  61775. <doc>
  61776. <![CDATA[Generate the file output file name based on the given key and the leaf file
  61777. name. The default behavior is that the file name does not depend on the
  61778. key.
  61779. @param key
  61780. the key of the output data
  61781. @param name
  61782. the leaf file name
  61783. @return generated file name]]>
  61784. </doc>
  61785. </method>
  61786. <method name="generateActualKey" return="java.lang.Object"
  61787. abstract="false" native="false" synchronized="false"
  61788. static="false" final="false" visibility="protected"
  61789. deprecated="not deprecated">
  61790. <param name="key" type="java.lang.Object"/>
  61791. <param name="value" type="java.lang.Object"/>
  61792. <doc>
  61793. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  61794. the actual key is equal to the given key
  61795. @param key
  61796. the key of the output data
  61797. @param value
  61798. the value of the output data
  61799. @return the actual key derived from the given key/value]]>
  61800. </doc>
  61801. </method>
  61802. <method name="generateActualValue" return="java.lang.Object"
  61803. abstract="false" native="false" synchronized="false"
  61804. static="false" final="false" visibility="protected"
  61805. deprecated="not deprecated">
  61806. <param name="key" type="java.lang.Object"/>
  61807. <param name="value" type="java.lang.Object"/>
  61808. <doc>
  61809. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  61810. the actual value is equal to the given value
  61811. @param key
  61812. the key of the output data
  61813. @param value
  61814. the value of the output data
  61815. @return the actual value derived from the given key/value]]>
  61816. </doc>
  61817. </method>
  61818. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  61819. abstract="false" native="false" synchronized="false"
  61820. static="false" final="false" visibility="protected"
  61821. deprecated="not deprecated">
  61822. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61823. <param name="name" type="java.lang.String"/>
  61824. <doc>
  61825. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  61826. the map input file does not exists (i.e. this is not for a map only job),
  61827. the given name is returned unchanged. If the config value for
  61828. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  61829. name is returned unchanged. Otherwise, return a file name consisting of the
  61830. N trailing legs of the input file name where N is the config value for
  61831. "num.of.trailing.legs.to.use".
  61832. @param job
  61833. the job config
  61834. @param name
  61835. the output file name
  61836. @return the outfile name based on a given anme and the input file name.]]>
  61837. </doc>
  61838. </method>
  61839. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61840. abstract="true" native="false" synchronized="false"
  61841. static="false" final="false" visibility="protected"
  61842. deprecated="not deprecated">
  61843. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61844. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61845. <param name="name" type="java.lang.String"/>
  61846. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61847. <exception name="IOException" type="java.io.IOException"/>
  61848. <doc>
  61849. <![CDATA[@param fs
  61850. the file system to use
  61851. @param job
  61852. a job conf object
  61853. @param name
  61854. the name of the file over which a record writer object will be
  61855. constructed
  61856. @param arg3
  61857. a progressable object
  61858. @return A RecordWriter object over the given file
  61859. @throws IOException]]>
  61860. </doc>
  61861. </method>
  61862. <doc>
  61863. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  61864. output data to different output files. There are three basic use cases for
  61865. this class.
  61866. Case one: This class is used for a map reduce job with at least one reducer.
  61867. The reducer wants to write data to different files depending on the actual
  61868. keys. It is assumed that a key (or value) encodes the actual key (value)
  61869. and the desired location for the actual key (value).
  61870. Case two: This class is used for a map only job. The job wants to use an
  61871. output file name that is either a part of the input file name of the input
  61872. data, or some derivation of it.
  61873. Case three: This class is used for a map only job. The job wants to use an
  61874. output file name that depends on both the keys and the input file name,]]>
  61875. </doc>
  61876. </class>
  61877. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  61878. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  61879. <class name="MultipleOutputs" extends="java.lang.Object"
  61880. abstract="false"
  61881. static="false" final="false" visibility="public"
  61882. deprecated="not deprecated">
  61883. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  61884. static="false" final="false" visibility="public"
  61885. deprecated="not deprecated">
  61886. <doc>
  61887. <![CDATA[Creates and initializes multiple named outputs support, it should be
  61888. instantiated in the Mapper/Reducer configure method.
  61889. @param job the job configuration object]]>
  61890. </doc>
  61891. </constructor>
  61892. <method name="getNamedOutputsList" return="java.util.List"
  61893. abstract="false" native="false" synchronized="false"
  61894. static="true" final="false" visibility="public"
  61895. deprecated="not deprecated">
  61896. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61897. <doc>
  61898. <![CDATA[Returns list of channel names.
  61899. @param conf job conf
  61900. @return List of channel Names]]>
  61901. </doc>
  61902. </method>
  61903. <method name="isMultiNamedOutput" return="boolean"
  61904. abstract="false" native="false" synchronized="false"
  61905. static="true" final="false" visibility="public"
  61906. deprecated="not deprecated">
  61907. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61908. <param name="namedOutput" type="java.lang.String"/>
  61909. <doc>
  61910. <![CDATA[Returns if a named output is multiple.
  61911. @param conf job conf
  61912. @param namedOutput named output
  61913. @return <code>true</code> if the name output is multi, <code>false</code>
  61914. if it is single. If the name output is not defined it returns
  61915. <code>false</code>]]>
  61916. </doc>
  61917. </method>
  61918. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  61919. abstract="false" native="false" synchronized="false"
  61920. static="true" final="false" visibility="public"
  61921. deprecated="not deprecated">
  61922. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61923. <param name="namedOutput" type="java.lang.String"/>
  61924. <doc>
  61925. <![CDATA[Returns the named output OutputFormat.
  61926. @param conf job conf
  61927. @param namedOutput named output
  61928. @return namedOutput OutputFormat]]>
  61929. </doc>
  61930. </method>
  61931. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  61932. abstract="false" native="false" synchronized="false"
  61933. static="true" final="false" visibility="public"
  61934. deprecated="not deprecated">
  61935. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61936. <param name="namedOutput" type="java.lang.String"/>
  61937. <doc>
  61938. <![CDATA[Returns the key class for a named output.
  61939. @param conf job conf
  61940. @param namedOutput named output
  61941. @return class for the named output key]]>
  61942. </doc>
  61943. </method>
  61944. <method name="getNamedOutputValueClass" return="java.lang.Class"
  61945. abstract="false" native="false" synchronized="false"
  61946. static="true" final="false" visibility="public"
  61947. deprecated="not deprecated">
  61948. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61949. <param name="namedOutput" type="java.lang.String"/>
  61950. <doc>
  61951. <![CDATA[Returns the value class for a named output.
  61952. @param conf job conf
  61953. @param namedOutput named output
  61954. @return class of named output value]]>
  61955. </doc>
  61956. </method>
  61957. <method name="addNamedOutput"
  61958. abstract="false" native="false" synchronized="false"
  61959. static="true" final="false" visibility="public"
  61960. deprecated="not deprecated">
  61961. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61962. <param name="namedOutput" type="java.lang.String"/>
  61963. <param name="outputFormatClass" type="java.lang.Class"/>
  61964. <param name="keyClass" type="java.lang.Class"/>
  61965. <param name="valueClass" type="java.lang.Class"/>
  61966. <doc>
  61967. <![CDATA[Adds a named output for the job.
  61968. <p/>
  61969. @param conf job conf to add the named output
  61970. @param namedOutput named output name, it has to be a word, letters
  61971. and numbers only, cannot be the word 'part' as
  61972. that is reserved for the
  61973. default output.
  61974. @param outputFormatClass OutputFormat class.
  61975. @param keyClass key class
  61976. @param valueClass value class]]>
  61977. </doc>
  61978. </method>
  61979. <method name="addMultiNamedOutput"
  61980. abstract="false" native="false" synchronized="false"
  61981. static="true" final="false" visibility="public"
  61982. deprecated="not deprecated">
  61983. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61984. <param name="namedOutput" type="java.lang.String"/>
  61985. <param name="outputFormatClass" type="java.lang.Class"/>
  61986. <param name="keyClass" type="java.lang.Class"/>
  61987. <param name="valueClass" type="java.lang.Class"/>
  61988. <doc>
  61989. <![CDATA[Adds a multi named output for the job.
  61990. <p/>
  61991. @param conf job conf to add the named output
  61992. @param namedOutput named output name, it has to be a word, letters
  61993. and numbers only, cannot be the word 'part' as
  61994. that is reserved for the
  61995. default output.
  61996. @param outputFormatClass OutputFormat class.
  61997. @param keyClass key class
  61998. @param valueClass value class]]>
  61999. </doc>
  62000. </method>
  62001. <method name="setCountersEnabled"
  62002. abstract="false" native="false" synchronized="false"
  62003. static="true" final="false" visibility="public"
  62004. deprecated="not deprecated">
  62005. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62006. <param name="enabled" type="boolean"/>
  62007. <doc>
  62008. <![CDATA[Enables or disables counters for the named outputs.
  62009. <p/>
  62010. By default these counters are disabled.
  62011. <p/>
  62012. MultipleOutputs supports counters, by default the are disabled.
  62013. The counters group is the {@link MultipleOutputs} class name.
  62014. </p>
  62015. The names of the counters are the same as the named outputs. For multi
  62016. named outputs the name of the counter is the concatenation of the named
  62017. output, and underscore '_' and the multiname.
  62018. @param conf job conf to enableadd the named output.
  62019. @param enabled indicates if the counters will be enabled or not.]]>
  62020. </doc>
  62021. </method>
  62022. <method name="getCountersEnabled" return="boolean"
  62023. abstract="false" native="false" synchronized="false"
  62024. static="true" final="false" visibility="public"
  62025. deprecated="not deprecated">
  62026. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62027. <doc>
  62028. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  62029. <p/>
  62030. By default these counters are disabled.
  62031. <p/>
  62032. MultipleOutputs supports counters, by default the are disabled.
  62033. The counters group is the {@link MultipleOutputs} class name.
  62034. </p>
  62035. The names of the counters are the same as the named outputs. For multi
  62036. named outputs the name of the counter is the concatenation of the named
  62037. output, and underscore '_' and the multiname.
  62038. @param conf job conf to enableadd the named output.
  62039. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  62040. </doc>
  62041. </method>
  62042. <method name="getNamedOutputs" return="java.util.Iterator"
  62043. abstract="false" native="false" synchronized="false"
  62044. static="false" final="false" visibility="public"
  62045. deprecated="not deprecated">
  62046. <doc>
  62047. <![CDATA[Returns iterator with the defined name outputs.
  62048. @return iterator with the defined named outputs]]>
  62049. </doc>
  62050. </method>
  62051. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  62052. abstract="false" native="false" synchronized="false"
  62053. static="false" final="false" visibility="public"
  62054. deprecated="not deprecated">
  62055. <param name="namedOutput" type="java.lang.String"/>
  62056. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62057. <exception name="IOException" type="java.io.IOException"/>
  62058. <doc>
  62059. <![CDATA[Gets the output collector for a named output.
  62060. <p/>
  62061. @param namedOutput the named output name
  62062. @param reporter the reporter
  62063. @return the output collector for the given named output
  62064. @throws IOException thrown if output collector could not be created]]>
  62065. </doc>
  62066. </method>
  62067. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  62068. abstract="false" native="false" synchronized="false"
  62069. static="false" final="false" visibility="public"
  62070. deprecated="not deprecated">
  62071. <param name="namedOutput" type="java.lang.String"/>
  62072. <param name="multiName" type="java.lang.String"/>
  62073. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62074. <exception name="IOException" type="java.io.IOException"/>
  62075. <doc>
  62076. <![CDATA[Gets the output collector for a multi named output.
  62077. <p/>
  62078. @param namedOutput the named output name
  62079. @param multiName the multi name part
  62080. @param reporter the reporter
  62081. @return the output collector for the given named output
  62082. @throws IOException thrown if output collector could not be created]]>
  62083. </doc>
  62084. </method>
  62085. <method name="close"
  62086. abstract="false" native="false" synchronized="false"
  62087. static="false" final="false" visibility="public"
  62088. deprecated="not deprecated">
  62089. <exception name="IOException" type="java.io.IOException"/>
  62090. <doc>
  62091. <![CDATA[Closes all the opened named outputs.
  62092. <p/>
  62093. If overriden subclasses must invoke <code>super.close()</code> at the
  62094. end of their <code>close()</code>
  62095. @throws java.io.IOException thrown if any of the MultipleOutput files
  62096. could not be closed properly.]]>
  62097. </doc>
  62098. </method>
  62099. <doc>
  62100. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  62101. than the job default output via the <code>OutputCollector</code> passed to
  62102. the <code>map()</code> and <code>reduce()</code> methods of the
  62103. <code>Mapper</code> and <code>Reducer</code> implementations.
  62104. <p/>
  62105. Each additional output, or named output, may be configured with its own
  62106. <code>OutputFormat</code>, with its own key class and with its own value
  62107. class.
  62108. <p/>
  62109. A named output can be a single file or a multi file. The later is refered as
  62110. a multi named output.
  62111. <p/>
  62112. A multi named output is an unbound set of files all sharing the same
  62113. <code>OutputFormat</code>, key class and value class configuration.
  62114. <p/>
  62115. When named outputs are used within a <code>Mapper</code> implementation,
  62116. key/values written to a name output are not part of the reduce phase, only
  62117. key/values written to the job <code>OutputCollector</code> are part of the
  62118. reduce phase.
  62119. <p/>
  62120. MultipleOutputs supports counters, by default the are disabled. The counters
  62121. group is the {@link MultipleOutputs} class name.
  62122. </p>
  62123. The names of the counters are the same as the named outputs. For multi
  62124. named outputs the name of the counter is the concatenation of the named
  62125. output, and underscore '_' and the multiname.
  62126. <p/>
  62127. Job configuration usage pattern is:
  62128. <pre>
  62129. JobConf conf = new JobConf();
  62130. conf.setInputPath(inDir);
  62131. FileOutputFormat.setOutputPath(conf, outDir);
  62132. conf.setMapperClass(MOMap.class);
  62133. conf.setReducerClass(MOReduce.class);
  62134. ...
  62135. // Defines additional single text based output 'text' for the job
  62136. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  62137. LongWritable.class, Text.class);
  62138. // Defines additional multi sequencefile based output 'sequence' for the
  62139. // job
  62140. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  62141. SequenceFileOutputFormat.class,
  62142. LongWritable.class, Text.class);
  62143. ...
  62144. JobClient jc = new JobClient();
  62145. RunningJob job = jc.submitJob(conf);
  62146. ...
  62147. </pre>
  62148. <p/>
  62149. Job configuration usage pattern is:
  62150. <pre>
  62151. public class MOReduce implements
  62152. Reducer&lt;WritableComparable, Writable&gt; {
  62153. private MultipleOutputs mos;
  62154. public void configure(JobConf conf) {
  62155. ...
  62156. mos = new MultipleOutputs(conf);
  62157. }
  62158. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  62159. OutputCollector output, Reporter reporter)
  62160. throws IOException {
  62161. ...
  62162. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  62163. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  62164. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  62165. ...
  62166. }
  62167. public void close() throws IOException {
  62168. mos.close();
  62169. ...
  62170. }
  62171. }
  62172. </pre>]]>
  62173. </doc>
  62174. </class>
  62175. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  62176. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  62177. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  62178. abstract="false"
  62179. static="false" final="false" visibility="public"
  62180. deprecated="not deprecated">
  62181. <constructor name="MultipleSequenceFileOutputFormat"
  62182. static="false" final="false" visibility="public"
  62183. deprecated="not deprecated">
  62184. </constructor>
  62185. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  62186. abstract="false" native="false" synchronized="false"
  62187. static="false" final="false" visibility="protected"
  62188. deprecated="not deprecated">
  62189. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  62190. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62191. <param name="name" type="java.lang.String"/>
  62192. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  62193. <exception name="IOException" type="java.io.IOException"/>
  62194. </method>
  62195. <doc>
  62196. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  62197. to different output files in sequence file output format.]]>
  62198. </doc>
  62199. </class>
  62200. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  62201. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  62202. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  62203. abstract="false"
  62204. static="false" final="false" visibility="public"
  62205. deprecated="not deprecated">
  62206. <constructor name="MultipleTextOutputFormat"
  62207. static="false" final="false" visibility="public"
  62208. deprecated="not deprecated">
  62209. </constructor>
  62210. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  62211. abstract="false" native="false" synchronized="false"
  62212. static="false" final="false" visibility="protected"
  62213. deprecated="not deprecated">
  62214. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  62215. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62216. <param name="name" type="java.lang.String"/>
  62217. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  62218. <exception name="IOException" type="java.io.IOException"/>
  62219. </method>
  62220. <doc>
  62221. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  62222. data to different output files in Text output format.]]>
  62223. </doc>
  62224. </class>
  62225. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  62226. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  62227. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  62228. abstract="false"
  62229. static="false" final="false" visibility="public"
  62230. deprecated="not deprecated">
  62231. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  62232. <constructor name="MultithreadedMapRunner"
  62233. static="false" final="false" visibility="public"
  62234. deprecated="not deprecated">
  62235. </constructor>
  62236. <method name="configure"
  62237. abstract="false" native="false" synchronized="false"
  62238. static="false" final="false" visibility="public"
  62239. deprecated="not deprecated">
  62240. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  62241. </method>
  62242. <method name="run"
  62243. abstract="false" native="false" synchronized="false"
  62244. static="false" final="false" visibility="public"
  62245. deprecated="not deprecated">
  62246. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  62247. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62248. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62249. <exception name="IOException" type="java.io.IOException"/>
  62250. </method>
  62251. <doc>
  62252. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  62253. <p>
  62254. It can be used instead of the default implementation,
  62255. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  62256. bound in order to improve throughput.
  62257. <p>
  62258. Map implementations using this MapRunnable must be thread-safe.
  62259. <p>
  62260. The Map-Reduce job has to be configured to use this MapRunnable class (using
  62261. the JobConf.setMapRunnerClass method) and
  62262. the number of thread the thread-pool can use with the
  62263. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  62264. value is 10 threads.
  62265. <p>]]>
  62266. </doc>
  62267. </class>
  62268. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  62269. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  62270. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  62271. abstract="false"
  62272. static="false" final="false" visibility="public"
  62273. deprecated="not deprecated">
  62274. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  62275. <constructor name="NLineInputFormat"
  62276. static="false" final="false" visibility="public"
  62277. deprecated="not deprecated">
  62278. </constructor>
  62279. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62280. abstract="false" native="false" synchronized="false"
  62281. static="false" final="false" visibility="public"
  62282. deprecated="not deprecated">
  62283. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  62284. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62285. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62286. <exception name="IOException" type="java.io.IOException"/>
  62287. </method>
  62288. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  62289. abstract="false" native="false" synchronized="false"
  62290. static="false" final="false" visibility="public"
  62291. deprecated="not deprecated">
  62292. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62293. <param name="numSplits" type="int"/>
  62294. <exception name="IOException" type="java.io.IOException"/>
  62295. <doc>
  62296. <![CDATA[Logically splits the set of input files for the job, splits N lines
  62297. of the input as one split.
  62298. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  62299. </doc>
  62300. </method>
  62301. <method name="configure"
  62302. abstract="false" native="false" synchronized="false"
  62303. static="false" final="false" visibility="public"
  62304. deprecated="not deprecated">
  62305. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62306. </method>
  62307. <doc>
  62308. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  62309. In many "pleasantly" parallel applications, each process/mapper
  62310. processes the same input file (s), but with computations are
  62311. controlled by different parameters.(Referred to as "parameter sweeps").
  62312. One way to achieve this, is to specify a set of parameters
  62313. (one set per line) as input in a control file
  62314. (which is the input path to the map-reduce application,
  62315. where as the input dataset is specified
  62316. via a config variable in JobConf.).
  62317. The NLineInputFormat can be used in such applications, that splits
  62318. the input file such that by default, one line is fed as
  62319. a value to one map task, and key is the offset.
  62320. i.e. (k,v) is (LongWritable, Text).
  62321. The location hints will span the whole mapred cluster.]]>
  62322. </doc>
  62323. </class>
  62324. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  62325. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  62326. <class name="NullOutputFormat" extends="java.lang.Object"
  62327. abstract="false"
  62328. static="false" final="false" visibility="public"
  62329. deprecated="not deprecated">
  62330. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  62331. <constructor name="NullOutputFormat"
  62332. static="false" final="false" visibility="public"
  62333. deprecated="not deprecated">
  62334. </constructor>
  62335. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  62336. abstract="false" native="false" synchronized="false"
  62337. static="false" final="false" visibility="public"
  62338. deprecated="not deprecated">
  62339. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  62340. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62341. <param name="name" type="java.lang.String"/>
  62342. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  62343. </method>
  62344. <method name="checkOutputSpecs"
  62345. abstract="false" native="false" synchronized="false"
  62346. static="false" final="false" visibility="public"
  62347. deprecated="not deprecated">
  62348. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  62349. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62350. </method>
  62351. <doc>
  62352. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  62353. </doc>
  62354. </class>
  62355. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  62356. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  62357. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62358. abstract="false"
  62359. static="false" final="false" visibility="public"
  62360. deprecated="not deprecated">
  62361. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62362. <constructor name="RegexMapper"
  62363. static="false" final="false" visibility="public"
  62364. deprecated="not deprecated">
  62365. </constructor>
  62366. <method name="configure"
  62367. abstract="false" native="false" synchronized="false"
  62368. static="false" final="false" visibility="public"
  62369. deprecated="not deprecated">
  62370. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62371. </method>
  62372. <method name="map"
  62373. abstract="false" native="false" synchronized="false"
  62374. static="false" final="false" visibility="public"
  62375. deprecated="not deprecated">
  62376. <param name="key" type="java.lang.Object"/>
  62377. <param name="value" type="org.apache.hadoop.io.Text"/>
  62378. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62379. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62380. <exception name="IOException" type="java.io.IOException"/>
  62381. </method>
  62382. <doc>
  62383. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  62384. </doc>
  62385. </class>
  62386. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  62387. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  62388. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62389. abstract="false"
  62390. static="false" final="false" visibility="public"
  62391. deprecated="not deprecated">
  62392. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62393. <constructor name="TokenCountMapper"
  62394. static="false" final="false" visibility="public"
  62395. deprecated="not deprecated">
  62396. </constructor>
  62397. <method name="map"
  62398. abstract="false" native="false" synchronized="false"
  62399. static="false" final="false" visibility="public"
  62400. deprecated="not deprecated">
  62401. <param name="key" type="java.lang.Object"/>
  62402. <param name="value" type="org.apache.hadoop.io.Text"/>
  62403. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62404. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62405. <exception name="IOException" type="java.io.IOException"/>
  62406. </method>
  62407. <doc>
  62408. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  62409. {@link StringTokenizer} to break text into tokens.]]>
  62410. </doc>
  62411. </class>
  62412. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  62413. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  62414. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  62415. abstract="false"
  62416. static="false" final="false" visibility="public"
  62417. deprecated="not deprecated">
  62418. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62419. <constructor name="TotalOrderPartitioner"
  62420. static="false" final="false" visibility="public"
  62421. deprecated="not deprecated">
  62422. </constructor>
  62423. <method name="configure"
  62424. abstract="false" native="false" synchronized="false"
  62425. static="false" final="false" visibility="public"
  62426. deprecated="not deprecated">
  62427. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62428. <doc>
  62429. <![CDATA[Read in the partition file and build indexing data structures.
  62430. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  62431. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  62432. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  62433. will be built. Otherwise, keys will be located using a binary search of
  62434. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  62435. defined for this job. The input file must be sorted with the same
  62436. comparator and contain {@link
  62437. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  62438. </doc>
  62439. </method>
  62440. <method name="getPartition" return="int"
  62441. abstract="false" native="false" synchronized="false"
  62442. static="false" final="false" visibility="public"
  62443. deprecated="not deprecated">
  62444. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62445. <param name="value" type="java.lang.Object"/>
  62446. <param name="numPartitions" type="int"/>
  62447. </method>
  62448. <method name="setPartitionFile"
  62449. abstract="false" native="false" synchronized="false"
  62450. static="true" final="false" visibility="public"
  62451. deprecated="not deprecated">
  62452. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62453. <param name="p" type="org.apache.hadoop.fs.Path"/>
  62454. <doc>
  62455. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  62456. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  62457. keys in the SequenceFile.]]>
  62458. </doc>
  62459. </method>
  62460. <method name="getPartitionFile" return="java.lang.String"
  62461. abstract="false" native="false" synchronized="false"
  62462. static="true" final="false" visibility="public"
  62463. deprecated="not deprecated">
  62464. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62465. <doc>
  62466. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  62467. @see #setPartitionFile(JobConf,Path)]]>
  62468. </doc>
  62469. </method>
  62470. <field name="DEFAULT_PATH" type="java.lang.String"
  62471. transient="false" volatile="false"
  62472. static="true" final="true" visibility="public"
  62473. deprecated="not deprecated">
  62474. </field>
  62475. <doc>
  62476. <![CDATA[Partitioner effecting a total order by reading split points from
  62477. an externally generated source.]]>
  62478. </doc>
  62479. </class>
  62480. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  62481. </package>
  62482. <package name="org.apache.hadoop.mapred.lib.aggregate">
  62483. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  62484. <class name="DoubleValueSum" extends="java.lang.Object"
  62485. abstract="false"
  62486. static="false" final="false" visibility="public"
  62487. deprecated="not deprecated">
  62488. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62489. <constructor name="DoubleValueSum"
  62490. static="false" final="false" visibility="public"
  62491. deprecated="not deprecated">
  62492. <doc>
  62493. <![CDATA[The default constructor]]>
  62494. </doc>
  62495. </constructor>
  62496. <method name="addNextValue"
  62497. abstract="false" native="false" synchronized="false"
  62498. static="false" final="false" visibility="public"
  62499. deprecated="not deprecated">
  62500. <param name="val" type="java.lang.Object"/>
  62501. <doc>
  62502. <![CDATA[add a value to the aggregator
  62503. @param val
  62504. an object whose string representation represents a double value.]]>
  62505. </doc>
  62506. </method>
  62507. <method name="addNextValue"
  62508. abstract="false" native="false" synchronized="false"
  62509. static="false" final="false" visibility="public"
  62510. deprecated="not deprecated">
  62511. <param name="val" type="double"/>
  62512. <doc>
  62513. <![CDATA[add a value to the aggregator
  62514. @param val
  62515. a double value.]]>
  62516. </doc>
  62517. </method>
  62518. <method name="getReport" return="java.lang.String"
  62519. abstract="false" native="false" synchronized="false"
  62520. static="false" final="false" visibility="public"
  62521. deprecated="not deprecated">
  62522. <doc>
  62523. <![CDATA[@return the string representation of the aggregated value]]>
  62524. </doc>
  62525. </method>
  62526. <method name="getSum" return="double"
  62527. abstract="false" native="false" synchronized="false"
  62528. static="false" final="false" visibility="public"
  62529. deprecated="not deprecated">
  62530. <doc>
  62531. <![CDATA[@return the aggregated value]]>
  62532. </doc>
  62533. </method>
  62534. <method name="reset"
  62535. abstract="false" native="false" synchronized="false"
  62536. static="false" final="false" visibility="public"
  62537. deprecated="not deprecated">
  62538. <doc>
  62539. <![CDATA[reset the aggregator]]>
  62540. </doc>
  62541. </method>
  62542. <method name="getCombinerOutput" return="java.util.ArrayList"
  62543. abstract="false" native="false" synchronized="false"
  62544. static="false" final="false" visibility="public"
  62545. deprecated="not deprecated">
  62546. <doc>
  62547. <![CDATA[@return return an array of one element. The element is a string
  62548. representation of the aggregated value. The return value is
  62549. expected to be used by the a combiner.]]>
  62550. </doc>
  62551. </method>
  62552. <doc>
  62553. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  62554. values.]]>
  62555. </doc>
  62556. </class>
  62557. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  62558. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  62559. <class name="LongValueMax" extends="java.lang.Object"
  62560. abstract="false"
  62561. static="false" final="false" visibility="public"
  62562. deprecated="not deprecated">
  62563. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62564. <constructor name="LongValueMax"
  62565. static="false" final="false" visibility="public"
  62566. deprecated="not deprecated">
  62567. <doc>
  62568. <![CDATA[the default constructor]]>
  62569. </doc>
  62570. </constructor>
  62571. <method name="addNextValue"
  62572. abstract="false" native="false" synchronized="false"
  62573. static="false" final="false" visibility="public"
  62574. deprecated="not deprecated">
  62575. <param name="val" type="java.lang.Object"/>
  62576. <doc>
  62577. <![CDATA[add a value to the aggregator
  62578. @param val
  62579. an object whose string representation represents a long value.]]>
  62580. </doc>
  62581. </method>
  62582. <method name="addNextValue"
  62583. abstract="false" native="false" synchronized="false"
  62584. static="false" final="false" visibility="public"
  62585. deprecated="not deprecated">
  62586. <param name="newVal" type="long"/>
  62587. <doc>
  62588. <![CDATA[add a value to the aggregator
  62589. @param newVal
  62590. a long value.]]>
  62591. </doc>
  62592. </method>
  62593. <method name="getVal" return="long"
  62594. abstract="false" native="false" synchronized="false"
  62595. static="false" final="false" visibility="public"
  62596. deprecated="not deprecated">
  62597. <doc>
  62598. <![CDATA[@return the aggregated value]]>
  62599. </doc>
  62600. </method>
  62601. <method name="getReport" return="java.lang.String"
  62602. abstract="false" native="false" synchronized="false"
  62603. static="false" final="false" visibility="public"
  62604. deprecated="not deprecated">
  62605. <doc>
  62606. <![CDATA[@return the string representation of the aggregated value]]>
  62607. </doc>
  62608. </method>
  62609. <method name="reset"
  62610. abstract="false" native="false" synchronized="false"
  62611. static="false" final="false" visibility="public"
  62612. deprecated="not deprecated">
  62613. <doc>
  62614. <![CDATA[reset the aggregator]]>
  62615. </doc>
  62616. </method>
  62617. <method name="getCombinerOutput" return="java.util.ArrayList"
  62618. abstract="false" native="false" synchronized="false"
  62619. static="false" final="false" visibility="public"
  62620. deprecated="not deprecated">
  62621. <doc>
  62622. <![CDATA[@return return an array of one element. The element is a string
  62623. representation of the aggregated value. The return value is
  62624. expected to be used by the a combiner.]]>
  62625. </doc>
  62626. </method>
  62627. <doc>
  62628. <![CDATA[This class implements a value aggregator that maintain the maximum of
  62629. a sequence of long values.]]>
  62630. </doc>
  62631. </class>
  62632. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  62633. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  62634. <class name="LongValueMin" extends="java.lang.Object"
  62635. abstract="false"
  62636. static="false" final="false" visibility="public"
  62637. deprecated="not deprecated">
  62638. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62639. <constructor name="LongValueMin"
  62640. static="false" final="false" visibility="public"
  62641. deprecated="not deprecated">
  62642. <doc>
  62643. <![CDATA[the default constructor]]>
  62644. </doc>
  62645. </constructor>
  62646. <method name="addNextValue"
  62647. abstract="false" native="false" synchronized="false"
  62648. static="false" final="false" visibility="public"
  62649. deprecated="not deprecated">
  62650. <param name="val" type="java.lang.Object"/>
  62651. <doc>
  62652. <![CDATA[add a value to the aggregator
  62653. @param val
  62654. an object whose string representation represents a long value.]]>
  62655. </doc>
  62656. </method>
  62657. <method name="addNextValue"
  62658. abstract="false" native="false" synchronized="false"
  62659. static="false" final="false" visibility="public"
  62660. deprecated="not deprecated">
  62661. <param name="newVal" type="long"/>
  62662. <doc>
  62663. <![CDATA[add a value to the aggregator
  62664. @param newVal
  62665. a long value.]]>
  62666. </doc>
  62667. </method>
  62668. <method name="getVal" return="long"
  62669. abstract="false" native="false" synchronized="false"
  62670. static="false" final="false" visibility="public"
  62671. deprecated="not deprecated">
  62672. <doc>
  62673. <![CDATA[@return the aggregated value]]>
  62674. </doc>
  62675. </method>
  62676. <method name="getReport" return="java.lang.String"
  62677. abstract="false" native="false" synchronized="false"
  62678. static="false" final="false" visibility="public"
  62679. deprecated="not deprecated">
  62680. <doc>
  62681. <![CDATA[@return the string representation of the aggregated value]]>
  62682. </doc>
  62683. </method>
  62684. <method name="reset"
  62685. abstract="false" native="false" synchronized="false"
  62686. static="false" final="false" visibility="public"
  62687. deprecated="not deprecated">
  62688. <doc>
  62689. <![CDATA[reset the aggregator]]>
  62690. </doc>
  62691. </method>
  62692. <method name="getCombinerOutput" return="java.util.ArrayList"
  62693. abstract="false" native="false" synchronized="false"
  62694. static="false" final="false" visibility="public"
  62695. deprecated="not deprecated">
  62696. <doc>
  62697. <![CDATA[@return return an array of one element. The element is a string
  62698. representation of the aggregated value. The return value is
  62699. expected to be used by the a combiner.]]>
  62700. </doc>
  62701. </method>
  62702. <doc>
  62703. <![CDATA[This class implements a value aggregator that maintain the minimum of
  62704. a sequence of long values.]]>
  62705. </doc>
  62706. </class>
  62707. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  62708. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  62709. <class name="LongValueSum" extends="java.lang.Object"
  62710. abstract="false"
  62711. static="false" final="false" visibility="public"
  62712. deprecated="not deprecated">
  62713. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62714. <constructor name="LongValueSum"
  62715. static="false" final="false" visibility="public"
  62716. deprecated="not deprecated">
  62717. <doc>
  62718. <![CDATA[the default constructor]]>
  62719. </doc>
  62720. </constructor>
  62721. <method name="addNextValue"
  62722. abstract="false" native="false" synchronized="false"
  62723. static="false" final="false" visibility="public"
  62724. deprecated="not deprecated">
  62725. <param name="val" type="java.lang.Object"/>
  62726. <doc>
  62727. <![CDATA[add a value to the aggregator
  62728. @param val
  62729. an object whose string representation represents a long value.]]>
  62730. </doc>
  62731. </method>
  62732. <method name="addNextValue"
  62733. abstract="false" native="false" synchronized="false"
  62734. static="false" final="false" visibility="public"
  62735. deprecated="not deprecated">
  62736. <param name="val" type="long"/>
  62737. <doc>
  62738. <![CDATA[add a value to the aggregator
  62739. @param val
  62740. a long value.]]>
  62741. </doc>
  62742. </method>
  62743. <method name="getSum" return="long"
  62744. abstract="false" native="false" synchronized="false"
  62745. static="false" final="false" visibility="public"
  62746. deprecated="not deprecated">
  62747. <doc>
  62748. <![CDATA[@return the aggregated value]]>
  62749. </doc>
  62750. </method>
  62751. <method name="getReport" return="java.lang.String"
  62752. abstract="false" native="false" synchronized="false"
  62753. static="false" final="false" visibility="public"
  62754. deprecated="not deprecated">
  62755. <doc>
  62756. <![CDATA[@return the string representation of the aggregated value]]>
  62757. </doc>
  62758. </method>
  62759. <method name="reset"
  62760. abstract="false" native="false" synchronized="false"
  62761. static="false" final="false" visibility="public"
  62762. deprecated="not deprecated">
  62763. <doc>
  62764. <![CDATA[reset the aggregator]]>
  62765. </doc>
  62766. </method>
  62767. <method name="getCombinerOutput" return="java.util.ArrayList"
  62768. abstract="false" native="false" synchronized="false"
  62769. static="false" final="false" visibility="public"
  62770. deprecated="not deprecated">
  62771. <doc>
  62772. <![CDATA[@return return an array of one element. The element is a string
  62773. representation of the aggregated value. The return value is
  62774. expected to be used by the a combiner.]]>
  62775. </doc>
  62776. </method>
  62777. <doc>
  62778. <![CDATA[This class implements a value aggregator that sums up
  62779. a sequence of long values.]]>
  62780. </doc>
  62781. </class>
  62782. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  62783. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  62784. <class name="StringValueMax" extends="java.lang.Object"
  62785. abstract="false"
  62786. static="false" final="false" visibility="public"
  62787. deprecated="not deprecated">
  62788. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62789. <constructor name="StringValueMax"
  62790. static="false" final="false" visibility="public"
  62791. deprecated="not deprecated">
  62792. <doc>
  62793. <![CDATA[the default constructor]]>
  62794. </doc>
  62795. </constructor>
  62796. <method name="addNextValue"
  62797. abstract="false" native="false" synchronized="false"
  62798. static="false" final="false" visibility="public"
  62799. deprecated="not deprecated">
  62800. <param name="val" type="java.lang.Object"/>
  62801. <doc>
  62802. <![CDATA[add a value to the aggregator
  62803. @param val
  62804. a string.]]>
  62805. </doc>
  62806. </method>
  62807. <method name="getVal" return="java.lang.String"
  62808. abstract="false" native="false" synchronized="false"
  62809. static="false" final="false" visibility="public"
  62810. deprecated="not deprecated">
  62811. <doc>
  62812. <![CDATA[@return the aggregated value]]>
  62813. </doc>
  62814. </method>
  62815. <method name="getReport" return="java.lang.String"
  62816. abstract="false" native="false" synchronized="false"
  62817. static="false" final="false" visibility="public"
  62818. deprecated="not deprecated">
  62819. <doc>
  62820. <![CDATA[@return the string representation of the aggregated value]]>
  62821. </doc>
  62822. </method>
  62823. <method name="reset"
  62824. abstract="false" native="false" synchronized="false"
  62825. static="false" final="false" visibility="public"
  62826. deprecated="not deprecated">
  62827. <doc>
  62828. <![CDATA[reset the aggregator]]>
  62829. </doc>
  62830. </method>
  62831. <method name="getCombinerOutput" return="java.util.ArrayList"
  62832. abstract="false" native="false" synchronized="false"
  62833. static="false" final="false" visibility="public"
  62834. deprecated="not deprecated">
  62835. <doc>
  62836. <![CDATA[@return return an array of one element. The element is a string
  62837. representation of the aggregated value. The return value is
  62838. expected to be used by the a combiner.]]>
  62839. </doc>
  62840. </method>
  62841. <doc>
  62842. <![CDATA[This class implements a value aggregator that maintain the biggest of
  62843. a sequence of strings.]]>
  62844. </doc>
  62845. </class>
  62846. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  62847. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62848. <class name="StringValueMin" extends="java.lang.Object"
  62849. abstract="false"
  62850. static="false" final="false" visibility="public"
  62851. deprecated="not deprecated">
  62852. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62853. <constructor name="StringValueMin"
  62854. static="false" final="false" visibility="public"
  62855. deprecated="not deprecated">
  62856. <doc>
  62857. <![CDATA[the default constructor]]>
  62858. </doc>
  62859. </constructor>
  62860. <method name="addNextValue"
  62861. abstract="false" native="false" synchronized="false"
  62862. static="false" final="false" visibility="public"
  62863. deprecated="not deprecated">
  62864. <param name="val" type="java.lang.Object"/>
  62865. <doc>
  62866. <![CDATA[add a value to the aggregator
  62867. @param val
  62868. a string.]]>
  62869. </doc>
  62870. </method>
  62871. <method name="getVal" return="java.lang.String"
  62872. abstract="false" native="false" synchronized="false"
  62873. static="false" final="false" visibility="public"
  62874. deprecated="not deprecated">
  62875. <doc>
  62876. <![CDATA[@return the aggregated value]]>
  62877. </doc>
  62878. </method>
  62879. <method name="getReport" return="java.lang.String"
  62880. abstract="false" native="false" synchronized="false"
  62881. static="false" final="false" visibility="public"
  62882. deprecated="not deprecated">
  62883. <doc>
  62884. <![CDATA[@return the string representation of the aggregated value]]>
  62885. </doc>
  62886. </method>
  62887. <method name="reset"
  62888. abstract="false" native="false" synchronized="false"
  62889. static="false" final="false" visibility="public"
  62890. deprecated="not deprecated">
  62891. <doc>
  62892. <![CDATA[reset the aggregator]]>
  62893. </doc>
  62894. </method>
  62895. <method name="getCombinerOutput" return="java.util.ArrayList"
  62896. abstract="false" native="false" synchronized="false"
  62897. static="false" final="false" visibility="public"
  62898. deprecated="not deprecated">
  62899. <doc>
  62900. <![CDATA[@return return an array of one element. The element is a string
  62901. representation of the aggregated value. The return value is
  62902. expected to be used by the a combiner.]]>
  62903. </doc>
  62904. </method>
  62905. <doc>
  62906. <![CDATA[This class implements a value aggregator that maintain the smallest of
  62907. a sequence of strings.]]>
  62908. </doc>
  62909. </class>
  62910. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62911. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62912. <class name="UniqValueCount" extends="java.lang.Object"
  62913. abstract="false"
  62914. static="false" final="false" visibility="public"
  62915. deprecated="not deprecated">
  62916. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62917. <constructor name="UniqValueCount"
  62918. static="false" final="false" visibility="public"
  62919. deprecated="not deprecated">
  62920. <doc>
  62921. <![CDATA[the default constructor]]>
  62922. </doc>
  62923. </constructor>
  62924. <constructor name="UniqValueCount" type="long"
  62925. static="false" final="false" visibility="public"
  62926. deprecated="not deprecated">
  62927. <doc>
  62928. <![CDATA[constructor
  62929. @param maxNum the limit in the number of unique values to keep.]]>
  62930. </doc>
  62931. </constructor>
  62932. <method name="setMaxItems" return="long"
  62933. abstract="false" native="false" synchronized="false"
  62934. static="false" final="false" visibility="public"
  62935. deprecated="not deprecated">
  62936. <param name="n" type="long"/>
  62937. <doc>
  62938. <![CDATA[Set the limit on the number of unique values
  62939. @param n the desired limit on the number of unique values
  62940. @return the new limit on the number of unique values]]>
  62941. </doc>
  62942. </method>
  62943. <method name="addNextValue"
  62944. abstract="false" native="false" synchronized="false"
  62945. static="false" final="false" visibility="public"
  62946. deprecated="not deprecated">
  62947. <param name="val" type="java.lang.Object"/>
  62948. <doc>
  62949. <![CDATA[add a value to the aggregator
  62950. @param val
  62951. an object.]]>
  62952. </doc>
  62953. </method>
  62954. <method name="getReport" return="java.lang.String"
  62955. abstract="false" native="false" synchronized="false"
  62956. static="false" final="false" visibility="public"
  62957. deprecated="not deprecated">
  62958. <doc>
  62959. <![CDATA[@return return the number of unique objects aggregated]]>
  62960. </doc>
  62961. </method>
  62962. <method name="getUniqueItems" return="java.util.Set"
  62963. abstract="false" native="false" synchronized="false"
  62964. static="false" final="false" visibility="public"
  62965. deprecated="not deprecated">
  62966. <doc>
  62967. <![CDATA[@return the set of the unique objects]]>
  62968. </doc>
  62969. </method>
  62970. <method name="reset"
  62971. abstract="false" native="false" synchronized="false"
  62972. static="false" final="false" visibility="public"
  62973. deprecated="not deprecated">
  62974. <doc>
  62975. <![CDATA[reset the aggregator]]>
  62976. </doc>
  62977. </method>
  62978. <method name="getCombinerOutput" return="java.util.ArrayList"
  62979. abstract="false" native="false" synchronized="false"
  62980. static="false" final="false" visibility="public"
  62981. deprecated="not deprecated">
  62982. <doc>
  62983. <![CDATA[@return return an array of the unique objects. The return value is
  62984. expected to be used by the a combiner.]]>
  62985. </doc>
  62986. </method>
  62987. <doc>
  62988. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  62989. </doc>
  62990. </class>
  62991. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62992. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  62993. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  62994. abstract="false"
  62995. static="false" final="false" visibility="public"
  62996. deprecated="not deprecated">
  62997. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  62998. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  62999. static="false" final="false" visibility="public"
  63000. deprecated="not deprecated">
  63001. <doc>
  63002. <![CDATA[@param className the class name of the user defined descriptor class
  63003. @param job a configure object used for decriptor configuration]]>
  63004. </doc>
  63005. </constructor>
  63006. <method name="createInstance" return="java.lang.Object"
  63007. abstract="false" native="false" synchronized="false"
  63008. static="true" final="false" visibility="public"
  63009. deprecated="not deprecated">
  63010. <param name="className" type="java.lang.String"/>
  63011. <doc>
  63012. <![CDATA[Create an instance of the given class
  63013. @param className the name of the class
  63014. @return a dynamically created instance of the given class]]>
  63015. </doc>
  63016. </method>
  63017. <method name="generateKeyValPairs" return="java.util.ArrayList"
  63018. abstract="false" native="false" synchronized="false"
  63019. static="false" final="false" visibility="public"
  63020. deprecated="not deprecated">
  63021. <param name="key" type="java.lang.Object"/>
  63022. <param name="val" type="java.lang.Object"/>
  63023. <doc>
  63024. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  63025. by delegating the invocation to the real object.
  63026. @param key
  63027. input key
  63028. @param val
  63029. input value
  63030. @return a list of aggregation id/value pairs. An aggregation id encodes an
  63031. aggregation type which is used to guide the way to aggregate the
  63032. value in the reduce/combiner phrase of an Aggregate based job.]]>
  63033. </doc>
  63034. </method>
  63035. <method name="toString" return="java.lang.String"
  63036. abstract="false" native="false" synchronized="false"
  63037. static="false" final="false" visibility="public"
  63038. deprecated="not deprecated">
  63039. <doc>
  63040. <![CDATA[@return the string representation of this object.]]>
  63041. </doc>
  63042. </method>
  63043. <method name="configure"
  63044. abstract="false" native="false" synchronized="false"
  63045. static="false" final="false" visibility="public"
  63046. deprecated="not deprecated">
  63047. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63048. <doc>
  63049. <![CDATA[Do nothing.]]>
  63050. </doc>
  63051. </method>
  63052. <doc>
  63053. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  63054. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  63055. name of a user defined class that may be dynamically loaded. The other is to
  63056. deligate inviokations of generateKeyValPairs function to the created object.]]>
  63057. </doc>
  63058. </class>
  63059. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  63060. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  63061. <interface name="ValueAggregator" abstract="true"
  63062. static="false" final="false" visibility="public"
  63063. deprecated="not deprecated">
  63064. <method name="addNextValue"
  63065. abstract="false" native="false" synchronized="false"
  63066. static="false" final="false" visibility="public"
  63067. deprecated="not deprecated">
  63068. <param name="val" type="java.lang.Object"/>
  63069. <doc>
  63070. <![CDATA[add a value to the aggregator
  63071. @param val the value to be added]]>
  63072. </doc>
  63073. </method>
  63074. <method name="reset"
  63075. abstract="false" native="false" synchronized="false"
  63076. static="false" final="false" visibility="public"
  63077. deprecated="not deprecated">
  63078. <doc>
  63079. <![CDATA[reset the aggregator]]>
  63080. </doc>
  63081. </method>
  63082. <method name="getReport" return="java.lang.String"
  63083. abstract="false" native="false" synchronized="false"
  63084. static="false" final="false" visibility="public"
  63085. deprecated="not deprecated">
  63086. <doc>
  63087. <![CDATA[@return the string representation of the agregator]]>
  63088. </doc>
  63089. </method>
  63090. <method name="getCombinerOutput" return="java.util.ArrayList"
  63091. abstract="false" native="false" synchronized="false"
  63092. static="false" final="false" visibility="public"
  63093. deprecated="not deprecated">
  63094. <doc>
  63095. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  63096. </doc>
  63097. </method>
  63098. <doc>
  63099. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  63100. </doc>
  63101. </interface>
  63102. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  63103. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  63104. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  63105. abstract="false"
  63106. static="false" final="false" visibility="public"
  63107. deprecated="not deprecated">
  63108. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  63109. <constructor name="ValueAggregatorBaseDescriptor"
  63110. static="false" final="false" visibility="public"
  63111. deprecated="not deprecated">
  63112. </constructor>
  63113. <method name="generateEntry" return="java.util.Map.Entry"
  63114. abstract="false" native="false" synchronized="false"
  63115. static="true" final="false" visibility="public"
  63116. deprecated="not deprecated">
  63117. <param name="type" type="java.lang.String"/>
  63118. <param name="id" type="java.lang.String"/>
  63119. <param name="val" type="org.apache.hadoop.io.Text"/>
  63120. <doc>
  63121. <![CDATA[@param type the aggregation type
  63122. @param id the aggregation id
  63123. @param val the val associated with the id to be aggregated
  63124. @return an Entry whose key is the aggregation id prefixed with
  63125. the aggregation type.]]>
  63126. </doc>
  63127. </method>
  63128. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  63129. abstract="false" native="false" synchronized="false"
  63130. static="true" final="false" visibility="public"
  63131. deprecated="not deprecated">
  63132. <param name="type" type="java.lang.String"/>
  63133. <doc>
  63134. <![CDATA[@param type the aggregation type
  63135. @return a value aggregator of the given type.]]>
  63136. </doc>
  63137. </method>
  63138. <method name="generateKeyValPairs" return="java.util.ArrayList"
  63139. abstract="false" native="false" synchronized="false"
  63140. static="false" final="false" visibility="public"
  63141. deprecated="not deprecated">
  63142. <param name="key" type="java.lang.Object"/>
  63143. <param name="val" type="java.lang.Object"/>
  63144. <doc>
  63145. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  63146. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  63147. its aggregation id. If the input is a file split,
  63148. the second id of the same type will be generated too, with the file name
  63149. as its aggregation id. This achieves the behavior of counting the total number
  63150. of records in the input data, and the number of records in each input file.
  63151. @param key
  63152. input key
  63153. @param val
  63154. input value
  63155. @return a list of aggregation id/value pairs. An aggregation id encodes an
  63156. aggregation type which is used to guide the way to aggregate the
  63157. value in the reduce/combiner phrase of an Aggregate based job.]]>
  63158. </doc>
  63159. </method>
  63160. <method name="configure"
  63161. abstract="false" native="false" synchronized="false"
  63162. static="false" final="false" visibility="public"
  63163. deprecated="not deprecated">
  63164. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63165. <doc>
  63166. <![CDATA[get the input file name.
  63167. @param job a job configuration object]]>
  63168. </doc>
  63169. </method>
  63170. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  63171. transient="false" volatile="false"
  63172. static="true" final="true" visibility="public"
  63173. deprecated="not deprecated">
  63174. </field>
  63175. <field name="LONG_VALUE_SUM" type="java.lang.String"
  63176. transient="false" volatile="false"
  63177. static="true" final="true" visibility="public"
  63178. deprecated="not deprecated">
  63179. </field>
  63180. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  63181. transient="false" volatile="false"
  63182. static="true" final="true" visibility="public"
  63183. deprecated="not deprecated">
  63184. </field>
  63185. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  63186. transient="false" volatile="false"
  63187. static="true" final="true" visibility="public"
  63188. deprecated="not deprecated">
  63189. </field>
  63190. <field name="LONG_VALUE_MAX" type="java.lang.String"
  63191. transient="false" volatile="false"
  63192. static="true" final="true" visibility="public"
  63193. deprecated="not deprecated">
  63194. </field>
  63195. <field name="LONG_VALUE_MIN" type="java.lang.String"
  63196. transient="false" volatile="false"
  63197. static="true" final="true" visibility="public"
  63198. deprecated="not deprecated">
  63199. </field>
  63200. <field name="STRING_VALUE_MAX" type="java.lang.String"
  63201. transient="false" volatile="false"
  63202. static="true" final="true" visibility="public"
  63203. deprecated="not deprecated">
  63204. </field>
  63205. <field name="STRING_VALUE_MIN" type="java.lang.String"
  63206. transient="false" volatile="false"
  63207. static="true" final="true" visibility="public"
  63208. deprecated="not deprecated">
  63209. </field>
  63210. <field name="inputFile" type="java.lang.String"
  63211. transient="false" volatile="false"
  63212. static="false" final="false" visibility="public"
  63213. deprecated="not deprecated">
  63214. </field>
  63215. <doc>
  63216. <![CDATA[This class implements the common functionalities of
  63217. the subclasses of ValueAggregatorDescriptor class.]]>
  63218. </doc>
  63219. </class>
  63220. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  63221. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  63222. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  63223. abstract="false"
  63224. static="false" final="false" visibility="public"
  63225. deprecated="not deprecated">
  63226. <constructor name="ValueAggregatorCombiner"
  63227. static="false" final="false" visibility="public"
  63228. deprecated="not deprecated">
  63229. </constructor>
  63230. <method name="configure"
  63231. abstract="false" native="false" synchronized="false"
  63232. static="false" final="false" visibility="public"
  63233. deprecated="not deprecated">
  63234. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63235. <doc>
  63236. <![CDATA[Combiner does not need to configure.]]>
  63237. </doc>
  63238. </method>
  63239. <method name="reduce"
  63240. abstract="false" native="false" synchronized="false"
  63241. static="false" final="false" visibility="public"
  63242. deprecated="not deprecated">
  63243. <param name="key" type="org.apache.hadoop.io.Text"/>
  63244. <param name="values" type="java.util.Iterator"/>
  63245. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63246. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63247. <exception name="IOException" type="java.io.IOException"/>
  63248. <doc>
  63249. <![CDATA[Combines values for a given key.
  63250. @param key the key is expected to be a Text object, whose prefix indicates
  63251. the type of aggregation to aggregate the values.
  63252. @param values the values to combine
  63253. @param output to collect combined values]]>
  63254. </doc>
  63255. </method>
  63256. <method name="close"
  63257. abstract="false" native="false" synchronized="false"
  63258. static="false" final="false" visibility="public"
  63259. deprecated="not deprecated">
  63260. <exception name="IOException" type="java.io.IOException"/>
  63261. <doc>
  63262. <![CDATA[Do nothing.]]>
  63263. </doc>
  63264. </method>
  63265. <method name="map"
  63266. abstract="false" native="false" synchronized="false"
  63267. static="false" final="false" visibility="public"
  63268. deprecated="not deprecated">
  63269. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  63270. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  63271. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  63272. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  63273. <exception name="IOException" type="java.io.IOException"/>
  63274. <doc>
  63275. <![CDATA[Do nothing. Should not be called.]]>
  63276. </doc>
  63277. </method>
  63278. <doc>
  63279. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  63280. </doc>
  63281. </class>
  63282. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  63283. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  63284. <interface name="ValueAggregatorDescriptor" abstract="true"
  63285. static="false" final="false" visibility="public"
  63286. deprecated="not deprecated">
  63287. <method name="generateKeyValPairs" return="java.util.ArrayList"
  63288. abstract="false" native="false" synchronized="false"
  63289. static="false" final="false" visibility="public"
  63290. deprecated="not deprecated">
  63291. <param name="key" type="java.lang.Object"/>
  63292. <param name="val" type="java.lang.Object"/>
  63293. <doc>
  63294. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  63295. This function is usually called by the mapper of an Aggregate based job.
  63296. @param key
  63297. input key
  63298. @param val
  63299. input value
  63300. @return a list of aggregation id/value pairs. An aggregation id encodes an
  63301. aggregation type which is used to guide the way to aggregate the
  63302. value in the reduce/combiner phrase of an Aggregate based job.]]>
  63303. </doc>
  63304. </method>
  63305. <method name="configure"
  63306. abstract="false" native="false" synchronized="false"
  63307. static="false" final="false" visibility="public"
  63308. deprecated="not deprecated">
  63309. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63310. <doc>
  63311. <![CDATA[Configure the object
  63312. @param job
  63313. a JobConf object that may contain the information that can be used
  63314. to configure the object.]]>
  63315. </doc>
  63316. </method>
  63317. <field name="TYPE_SEPARATOR" type="java.lang.String"
  63318. transient="false" volatile="false"
  63319. static="true" final="true" visibility="public"
  63320. deprecated="not deprecated">
  63321. </field>
  63322. <field name="ONE" type="org.apache.hadoop.io.Text"
  63323. transient="false" volatile="false"
  63324. static="true" final="true" visibility="public"
  63325. deprecated="not deprecated">
  63326. </field>
  63327. <doc>
  63328. <![CDATA[This interface defines the contract a value aggregator descriptor must
  63329. support. Such a descriptor can be configured with a JobConf object. Its main
  63330. function is to generate a list of aggregation-id/value pairs. An aggregation
  63331. id encodes an aggregation type which is used to guide the way to aggregate
  63332. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  63333. an Aggregate based map/reduce job may create one or more of
  63334. ValueAggregatorDescriptor objects at configuration time. For each input
  63335. key/value pair, the mapper will use those objects to create aggregation
  63336. id/value pairs.]]>
  63337. </doc>
  63338. </interface>
  63339. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  63340. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  63341. <class name="ValueAggregatorJob" extends="java.lang.Object"
  63342. abstract="false"
  63343. static="false" final="false" visibility="public"
  63344. deprecated="not deprecated">
  63345. <constructor name="ValueAggregatorJob"
  63346. static="false" final="false" visibility="public"
  63347. deprecated="not deprecated">
  63348. </constructor>
  63349. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  63350. abstract="false" native="false" synchronized="false"
  63351. static="true" final="false" visibility="public"
  63352. deprecated="not deprecated">
  63353. <param name="args" type="java.lang.String[]"/>
  63354. <param name="descriptors" type="java.lang.Class[]"/>
  63355. <exception name="IOException" type="java.io.IOException"/>
  63356. </method>
  63357. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  63358. abstract="false" native="false" synchronized="false"
  63359. static="true" final="false" visibility="public"
  63360. deprecated="not deprecated">
  63361. <param name="args" type="java.lang.String[]"/>
  63362. <exception name="IOException" type="java.io.IOException"/>
  63363. </method>
  63364. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  63365. abstract="false" native="false" synchronized="false"
  63366. static="true" final="false" visibility="public"
  63367. deprecated="not deprecated">
  63368. <param name="args" type="java.lang.String[]"/>
  63369. <exception name="IOException" type="java.io.IOException"/>
  63370. <doc>
  63371. <![CDATA[Create an Aggregate based map/reduce job.
  63372. @param args the arguments used for job creation. Generic hadoop
  63373. arguments are accepted.
  63374. @return a JobConf object ready for submission.
  63375. @throws IOException
  63376. @see GenericOptionsParser]]>
  63377. </doc>
  63378. </method>
  63379. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  63380. abstract="false" native="false" synchronized="false"
  63381. static="true" final="false" visibility="public"
  63382. deprecated="not deprecated">
  63383. <param name="args" type="java.lang.String[]"/>
  63384. <param name="descriptors" type="java.lang.Class[]"/>
  63385. <exception name="IOException" type="java.io.IOException"/>
  63386. </method>
  63387. <method name="setAggregatorDescriptors"
  63388. abstract="false" native="false" synchronized="false"
  63389. static="true" final="false" visibility="public"
  63390. deprecated="not deprecated">
  63391. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63392. <param name="descriptors" type="java.lang.Class[]"/>
  63393. </method>
  63394. <method name="main"
  63395. abstract="false" native="false" synchronized="false"
  63396. static="true" final="false" visibility="public"
  63397. deprecated="not deprecated">
  63398. <param name="args" type="java.lang.String[]"/>
  63399. <exception name="IOException" type="java.io.IOException"/>
  63400. <doc>
  63401. <![CDATA[create and run an Aggregate based map/reduce job.
  63402. @param args the arguments used for job creation
  63403. @throws IOException]]>
  63404. </doc>
  63405. </method>
  63406. <doc>
  63407. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  63408. framework. The Aggregate is a specialization of map/reduce framework,
  63409. specilizing for performing various simple aggregations.
  63410. Generally speaking, in order to implement an application using Map/Reduce
  63411. model, the developer is to implement Map and Reduce functions (and possibly
  63412. combine function). However, a lot of applications related to counting and
  63413. statistics computing have very similar characteristics. Aggregate abstracts
  63414. out the general patterns of these functions and implementing those patterns.
  63415. In particular, the package provides generic mapper/redducer/combiner classes,
  63416. and a set of built-in value aggregators, and a generic utility class that
  63417. helps user create map/reduce jobs using the generic class. The built-in
  63418. aggregators include:
  63419. sum over numeric values count the number of distinct values compute the
  63420. histogram of values compute the minimum, maximum, media,average, standard
  63421. deviation of numeric values
  63422. The developer using Aggregate will need only to provide a plugin class
  63423. conforming to the following interface:
  63424. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  63425. generateKeyValPairs(Object key, Object value); public void
  63426. configure(JobConfjob); }
  63427. The package also provides a base class, ValueAggregatorBaseDescriptor,
  63428. implementing the above interface. The user can extend the base class and
  63429. implement generateKeyValPairs accordingly.
  63430. The primary work of generateKeyValPairs is to emit one or more key/value
  63431. pairs based on the input key/value pair. The key in an output key/value pair
  63432. encode two pieces of information: aggregation type and aggregation id. The
  63433. value will be aggregated onto the aggregation id according the aggregation
  63434. type.
  63435. This class offers a function to generate a map/reduce job using Aggregate
  63436. framework. The function takes the following parameters: input directory spec
  63437. input format (text or sequence file) output directory a file specifying the
  63438. user plugin class]]>
  63439. </doc>
  63440. </class>
  63441. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  63442. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  63443. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  63444. abstract="true"
  63445. static="false" final="false" visibility="public"
  63446. deprecated="not deprecated">
  63447. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63448. <implements name="org.apache.hadoop.mapred.Reducer"/>
  63449. <constructor name="ValueAggregatorJobBase"
  63450. static="false" final="false" visibility="public"
  63451. deprecated="not deprecated">
  63452. </constructor>
  63453. <method name="configure"
  63454. abstract="false" native="false" synchronized="false"
  63455. static="false" final="false" visibility="public"
  63456. deprecated="not deprecated">
  63457. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63458. </method>
  63459. <method name="logSpec"
  63460. abstract="false" native="false" synchronized="false"
  63461. static="false" final="false" visibility="protected"
  63462. deprecated="not deprecated">
  63463. </method>
  63464. <method name="close"
  63465. abstract="false" native="false" synchronized="false"
  63466. static="false" final="false" visibility="public"
  63467. deprecated="not deprecated">
  63468. <exception name="IOException" type="java.io.IOException"/>
  63469. </method>
  63470. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  63471. transient="false" volatile="false"
  63472. static="false" final="false" visibility="protected"
  63473. deprecated="not deprecated">
  63474. </field>
  63475. <doc>
  63476. <![CDATA[This abstract class implements some common functionalities of the
  63477. the generic mapper, reducer and combiner classes of Aggregate.]]>
  63478. </doc>
  63479. </class>
  63480. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  63481. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  63482. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  63483. abstract="false"
  63484. static="false" final="false" visibility="public"
  63485. deprecated="not deprecated">
  63486. <constructor name="ValueAggregatorMapper"
  63487. static="false" final="false" visibility="public"
  63488. deprecated="not deprecated">
  63489. </constructor>
  63490. <method name="map"
  63491. abstract="false" native="false" synchronized="false"
  63492. static="false" final="false" visibility="public"
  63493. deprecated="not deprecated">
  63494. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  63495. <param name="value" type="org.apache.hadoop.io.Writable"/>
  63496. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63497. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63498. <exception name="IOException" type="java.io.IOException"/>
  63499. <doc>
  63500. <![CDATA[the map function. It iterates through the value aggregator descriptor
  63501. list to generate aggregation id/value pairs and emit them.]]>
  63502. </doc>
  63503. </method>
  63504. <method name="reduce"
  63505. abstract="false" native="false" synchronized="false"
  63506. static="false" final="false" visibility="public"
  63507. deprecated="not deprecated">
  63508. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  63509. <param name="arg1" type="java.util.Iterator"/>
  63510. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  63511. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  63512. <exception name="IOException" type="java.io.IOException"/>
  63513. <doc>
  63514. <![CDATA[Do nothing. Should not be called.]]>
  63515. </doc>
  63516. </method>
  63517. <doc>
  63518. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  63519. </doc>
  63520. </class>
  63521. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  63522. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  63523. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  63524. abstract="false"
  63525. static="false" final="false" visibility="public"
  63526. deprecated="not deprecated">
  63527. <constructor name="ValueAggregatorReducer"
  63528. static="false" final="false" visibility="public"
  63529. deprecated="not deprecated">
  63530. </constructor>
  63531. <method name="reduce"
  63532. abstract="false" native="false" synchronized="false"
  63533. static="false" final="false" visibility="public"
  63534. deprecated="not deprecated">
  63535. <param name="key" type="org.apache.hadoop.io.Text"/>
  63536. <param name="values" type="java.util.Iterator"/>
  63537. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63538. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63539. <exception name="IOException" type="java.io.IOException"/>
  63540. <doc>
  63541. <![CDATA[@param key
  63542. the key is expected to be a Text object, whose prefix indicates
  63543. the type of aggregation to aggregate the values. In effect, data
  63544. driven computing is achieved. It is assumed that each aggregator's
  63545. getReport method emits appropriate output for the aggregator. This
  63546. may be further customiized.
  63547. @value the values to be aggregated]]>
  63548. </doc>
  63549. </method>
  63550. <method name="map"
  63551. abstract="false" native="false" synchronized="false"
  63552. static="false" final="false" visibility="public"
  63553. deprecated="not deprecated">
  63554. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  63555. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  63556. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  63557. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  63558. <exception name="IOException" type="java.io.IOException"/>
  63559. <doc>
  63560. <![CDATA[Do nothing. Should not be called]]>
  63561. </doc>
  63562. </method>
  63563. <doc>
  63564. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  63565. </doc>
  63566. </class>
  63567. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  63568. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  63569. <class name="ValueHistogram" extends="java.lang.Object"
  63570. abstract="false"
  63571. static="false" final="false" visibility="public"
  63572. deprecated="not deprecated">
  63573. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63574. <constructor name="ValueHistogram"
  63575. static="false" final="false" visibility="public"
  63576. deprecated="not deprecated">
  63577. </constructor>
  63578. <method name="addNextValue"
  63579. abstract="false" native="false" synchronized="false"
  63580. static="false" final="false" visibility="public"
  63581. deprecated="not deprecated">
  63582. <param name="val" type="java.lang.Object"/>
  63583. <doc>
  63584. <![CDATA[add the given val to the aggregator.
  63585. @param val the value to be added. It is expected to be a string
  63586. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  63587. </doc>
  63588. </method>
  63589. <method name="getReport" return="java.lang.String"
  63590. abstract="false" native="false" synchronized="false"
  63591. static="false" final="false" visibility="public"
  63592. deprecated="not deprecated">
  63593. <doc>
  63594. <![CDATA[@return the string representation of this aggregator.
  63595. It includes the following basic statistics of the histogram:
  63596. the number of unique values
  63597. the minimum value
  63598. the media value
  63599. the maximum value
  63600. the average value
  63601. the standard deviation]]>
  63602. </doc>
  63603. </method>
  63604. <method name="getReportDetails" return="java.lang.String"
  63605. abstract="false" native="false" synchronized="false"
  63606. static="false" final="false" visibility="public"
  63607. deprecated="not deprecated">
  63608. <doc>
  63609. <![CDATA[@return a string representation of the list of value/frequence pairs of
  63610. the histogram]]>
  63611. </doc>
  63612. </method>
  63613. <method name="getCombinerOutput" return="java.util.ArrayList"
  63614. abstract="false" native="false" synchronized="false"
  63615. static="false" final="false" visibility="public"
  63616. deprecated="not deprecated">
  63617. <doc>
  63618. <![CDATA[@return a list value/frequence pairs.
  63619. The return value is expected to be used by the reducer.]]>
  63620. </doc>
  63621. </method>
  63622. <method name="getReportItems" return="java.util.TreeMap"
  63623. abstract="false" native="false" synchronized="false"
  63624. static="false" final="false" visibility="public"
  63625. deprecated="not deprecated">
  63626. <doc>
  63627. <![CDATA[@return a TreeMap representation of the histogram]]>
  63628. </doc>
  63629. </method>
  63630. <method name="reset"
  63631. abstract="false" native="false" synchronized="false"
  63632. static="false" final="false" visibility="public"
  63633. deprecated="not deprecated">
  63634. <doc>
  63635. <![CDATA[reset the aggregator]]>
  63636. </doc>
  63637. </method>
  63638. <doc>
  63639. <![CDATA[This class implements a value aggregator that computes the
  63640. histogram of a sequence of strings.]]>
  63641. </doc>
  63642. </class>
  63643. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  63644. </package>
  63645. <package name="org.apache.hadoop.mapred.lib.db">
  63646. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  63647. <class name="DBConfiguration" extends="java.lang.Object"
  63648. abstract="false"
  63649. static="false" final="false" visibility="public"
  63650. deprecated="not deprecated">
  63651. <method name="configureDB"
  63652. abstract="false" native="false" synchronized="false"
  63653. static="true" final="false" visibility="public"
  63654. deprecated="not deprecated">
  63655. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63656. <param name="driverClass" type="java.lang.String"/>
  63657. <param name="dbUrl" type="java.lang.String"/>
  63658. <param name="userName" type="java.lang.String"/>
  63659. <param name="passwd" type="java.lang.String"/>
  63660. <doc>
  63661. <![CDATA[Sets the DB access related fields in the JobConf.
  63662. @param job the job
  63663. @param driverClass JDBC Driver class name
  63664. @param dbUrl JDBC DB access URL.
  63665. @param userName DB access username
  63666. @param passwd DB access passwd]]>
  63667. </doc>
  63668. </method>
  63669. <method name="configureDB"
  63670. abstract="false" native="false" synchronized="false"
  63671. static="true" final="false" visibility="public"
  63672. deprecated="not deprecated">
  63673. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63674. <param name="driverClass" type="java.lang.String"/>
  63675. <param name="dbUrl" type="java.lang.String"/>
  63676. <doc>
  63677. <![CDATA[Sets the DB access related fields in the JobConf.
  63678. @param job the job
  63679. @param driverClass JDBC Driver class name
  63680. @param dbUrl JDBC DB access URL.]]>
  63681. </doc>
  63682. </method>
  63683. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  63684. transient="false" volatile="false"
  63685. static="true" final="true" visibility="public"
  63686. deprecated="not deprecated">
  63687. <doc>
  63688. <![CDATA[The JDBC Driver class name]]>
  63689. </doc>
  63690. </field>
  63691. <field name="URL_PROPERTY" type="java.lang.String"
  63692. transient="false" volatile="false"
  63693. static="true" final="true" visibility="public"
  63694. deprecated="not deprecated">
  63695. <doc>
  63696. <![CDATA[JDBC Database access URL]]>
  63697. </doc>
  63698. </field>
  63699. <field name="USERNAME_PROPERTY" type="java.lang.String"
  63700. transient="false" volatile="false"
  63701. static="true" final="true" visibility="public"
  63702. deprecated="not deprecated">
  63703. <doc>
  63704. <![CDATA[User name to access the database]]>
  63705. </doc>
  63706. </field>
  63707. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  63708. transient="false" volatile="false"
  63709. static="true" final="true" visibility="public"
  63710. deprecated="not deprecated">
  63711. <doc>
  63712. <![CDATA[Password to access the database]]>
  63713. </doc>
  63714. </field>
  63715. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  63716. transient="false" volatile="false"
  63717. static="true" final="true" visibility="public"
  63718. deprecated="not deprecated">
  63719. <doc>
  63720. <![CDATA[Input table name]]>
  63721. </doc>
  63722. </field>
  63723. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  63724. transient="false" volatile="false"
  63725. static="true" final="true" visibility="public"
  63726. deprecated="not deprecated">
  63727. <doc>
  63728. <![CDATA[Field names in the Input table]]>
  63729. </doc>
  63730. </field>
  63731. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  63732. transient="false" volatile="false"
  63733. static="true" final="true" visibility="public"
  63734. deprecated="not deprecated">
  63735. <doc>
  63736. <![CDATA[WHERE clause in the input SELECT statement]]>
  63737. </doc>
  63738. </field>
  63739. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  63740. transient="false" volatile="false"
  63741. static="true" final="true" visibility="public"
  63742. deprecated="not deprecated">
  63743. <doc>
  63744. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  63745. </doc>
  63746. </field>
  63747. <field name="INPUT_QUERY" type="java.lang.String"
  63748. transient="false" volatile="false"
  63749. static="true" final="true" visibility="public"
  63750. deprecated="not deprecated">
  63751. <doc>
  63752. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  63753. </doc>
  63754. </field>
  63755. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  63756. transient="false" volatile="false"
  63757. static="true" final="true" visibility="public"
  63758. deprecated="not deprecated">
  63759. <doc>
  63760. <![CDATA[Input query to get the count of records]]>
  63761. </doc>
  63762. </field>
  63763. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  63764. transient="false" volatile="false"
  63765. static="true" final="true" visibility="public"
  63766. deprecated="not deprecated">
  63767. <doc>
  63768. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  63769. </doc>
  63770. </field>
  63771. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  63772. transient="false" volatile="false"
  63773. static="true" final="true" visibility="public"
  63774. deprecated="not deprecated">
  63775. <doc>
  63776. <![CDATA[Output table name]]>
  63777. </doc>
  63778. </field>
  63779. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  63780. transient="false" volatile="false"
  63781. static="true" final="true" visibility="public"
  63782. deprecated="not deprecated">
  63783. <doc>
  63784. <![CDATA[Field names in the Output table]]>
  63785. </doc>
  63786. </field>
  63787. <doc>
  63788. <![CDATA[A container for configuration property names for jobs with DB input/output.
  63789. <br>
  63790. The job can be configured using the static methods in this class,
  63791. {@link DBInputFormat}, and {@link DBOutputFormat}.
  63792. <p>
  63793. Alternatively, the properties can be set in the configuration with proper
  63794. values.
  63795. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  63796. @see DBInputFormat#setInput(JobConf, Class, String, String)
  63797. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  63798. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  63799. </doc>
  63800. </class>
  63801. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  63802. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  63803. <class name="DBInputFormat" extends="java.lang.Object"
  63804. abstract="false"
  63805. static="false" final="false" visibility="public"
  63806. deprecated="not deprecated">
  63807. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  63808. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  63809. <constructor name="DBInputFormat"
  63810. static="false" final="false" visibility="public"
  63811. deprecated="not deprecated">
  63812. </constructor>
  63813. <method name="configure"
  63814. abstract="false" native="false" synchronized="false"
  63815. static="false" final="false" visibility="public"
  63816. deprecated="not deprecated">
  63817. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63818. <doc>
  63819. <![CDATA[{@inheritDoc}]]>
  63820. </doc>
  63821. </method>
  63822. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63823. abstract="false" native="false" synchronized="false"
  63824. static="false" final="false" visibility="public"
  63825. deprecated="not deprecated">
  63826. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63827. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63828. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63829. <exception name="IOException" type="java.io.IOException"/>
  63830. <doc>
  63831. <![CDATA[{@inheritDoc}]]>
  63832. </doc>
  63833. </method>
  63834. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63835. abstract="false" native="false" synchronized="false"
  63836. static="false" final="false" visibility="public"
  63837. deprecated="not deprecated">
  63838. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63839. <param name="chunks" type="int"/>
  63840. <exception name="IOException" type="java.io.IOException"/>
  63841. <doc>
  63842. <![CDATA[{@inheritDoc}]]>
  63843. </doc>
  63844. </method>
  63845. <method name="getCountQuery" return="java.lang.String"
  63846. abstract="false" native="false" synchronized="false"
  63847. static="false" final="false" visibility="protected"
  63848. deprecated="not deprecated">
  63849. <doc>
  63850. <![CDATA[Returns the query for getting the total number of rows,
  63851. subclasses can override this for custom behaviour.]]>
  63852. </doc>
  63853. </method>
  63854. <method name="setInput"
  63855. abstract="false" native="false" synchronized="false"
  63856. static="true" final="false" visibility="public"
  63857. deprecated="not deprecated">
  63858. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63859. <param name="inputClass" type="java.lang.Class"/>
  63860. <param name="tableName" type="java.lang.String"/>
  63861. <param name="conditions" type="java.lang.String"/>
  63862. <param name="orderBy" type="java.lang.String"/>
  63863. <param name="fieldNames" type="java.lang.String[]"/>
  63864. <doc>
  63865. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63866. @param job The job
  63867. @param inputClass the class object implementing DBWritable, which is the
  63868. Java object holding tuple fields.
  63869. @param tableName The table to read data from
  63870. @param conditions The condition which to select data with, eg. '(updated >
  63871. 20070101 AND length > 0)'
  63872. @param orderBy the fieldNames in the orderBy clause.
  63873. @param fieldNames The field names in the table
  63874. @see #setInput(JobConf, Class, String, String)]]>
  63875. </doc>
  63876. </method>
  63877. <method name="setInput"
  63878. abstract="false" native="false" synchronized="false"
  63879. static="true" final="false" visibility="public"
  63880. deprecated="not deprecated">
  63881. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63882. <param name="inputClass" type="java.lang.Class"/>
  63883. <param name="inputQuery" type="java.lang.String"/>
  63884. <param name="inputCountQuery" type="java.lang.String"/>
  63885. <doc>
  63886. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63887. @param job The job
  63888. @param inputClass the class object implementing DBWritable, which is the
  63889. Java object holding tuple fields.
  63890. @param inputQuery the input query to select fields. Example :
  63891. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  63892. @param inputCountQuery the input query that returns the number of records in
  63893. the table.
  63894. Example : "SELECT COUNT(f1) FROM Mytable"
  63895. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  63896. </doc>
  63897. </method>
  63898. <doc>
  63899. <![CDATA[A InputFormat that reads input data from an SQL table.
  63900. <p>
  63901. DBInputFormat emits LongWritables containing the record number as
  63902. key and DBWritables as value.
  63903. The SQL query, and input class can be using one of the two
  63904. setInput methods.]]>
  63905. </doc>
  63906. </class>
  63907. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  63908. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63909. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  63910. abstract="false"
  63911. static="true" final="false" visibility="protected"
  63912. deprecated="not deprecated">
  63913. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  63914. <constructor name="DBInputFormat.DBInputSplit"
  63915. static="false" final="false" visibility="public"
  63916. deprecated="not deprecated">
  63917. <doc>
  63918. <![CDATA[Default Constructor]]>
  63919. </doc>
  63920. </constructor>
  63921. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  63922. static="false" final="false" visibility="public"
  63923. deprecated="not deprecated">
  63924. <doc>
  63925. <![CDATA[Convenience Constructor
  63926. @param start the index of the first row to select
  63927. @param end the index of the last row to select]]>
  63928. </doc>
  63929. </constructor>
  63930. <method name="getLocations" return="java.lang.String[]"
  63931. abstract="false" native="false" synchronized="false"
  63932. static="false" final="false" visibility="public"
  63933. deprecated="not deprecated">
  63934. <exception name="IOException" type="java.io.IOException"/>
  63935. <doc>
  63936. <![CDATA[{@inheritDoc}]]>
  63937. </doc>
  63938. </method>
  63939. <method name="getStart" return="long"
  63940. abstract="false" native="false" synchronized="false"
  63941. static="false" final="false" visibility="public"
  63942. deprecated="not deprecated">
  63943. <doc>
  63944. <![CDATA[@return The index of the first row to select]]>
  63945. </doc>
  63946. </method>
  63947. <method name="getEnd" return="long"
  63948. abstract="false" native="false" synchronized="false"
  63949. static="false" final="false" visibility="public"
  63950. deprecated="not deprecated">
  63951. <doc>
  63952. <![CDATA[@return The index of the last row to select]]>
  63953. </doc>
  63954. </method>
  63955. <method name="getLength" return="long"
  63956. abstract="false" native="false" synchronized="false"
  63957. static="false" final="false" visibility="public"
  63958. deprecated="not deprecated">
  63959. <exception name="IOException" type="java.io.IOException"/>
  63960. <doc>
  63961. <![CDATA[@return The total row count in this split]]>
  63962. </doc>
  63963. </method>
  63964. <method name="readFields"
  63965. abstract="false" native="false" synchronized="false"
  63966. static="false" final="false" visibility="public"
  63967. deprecated="not deprecated">
  63968. <param name="input" type="java.io.DataInput"/>
  63969. <exception name="IOException" type="java.io.IOException"/>
  63970. <doc>
  63971. <![CDATA[{@inheritDoc}]]>
  63972. </doc>
  63973. </method>
  63974. <method name="write"
  63975. abstract="false" native="false" synchronized="false"
  63976. static="false" final="false" visibility="public"
  63977. deprecated="not deprecated">
  63978. <param name="output" type="java.io.DataOutput"/>
  63979. <exception name="IOException" type="java.io.IOException"/>
  63980. <doc>
  63981. <![CDATA[{@inheritDoc}]]>
  63982. </doc>
  63983. </method>
  63984. <doc>
  63985. <![CDATA[A InputSplit that spans a set of rows]]>
  63986. </doc>
  63987. </class>
  63988. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63989. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  63990. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  63991. abstract="false"
  63992. static="false" final="false" visibility="protected"
  63993. deprecated="not deprecated">
  63994. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  63995. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  63996. static="false" final="false" visibility="protected"
  63997. deprecated="not deprecated">
  63998. <exception name="SQLException" type="java.sql.SQLException"/>
  63999. <doc>
  64000. <![CDATA[@param split The InputSplit to read data for
  64001. @throws SQLException]]>
  64002. </doc>
  64003. </constructor>
  64004. <method name="getSelectQuery" return="java.lang.String"
  64005. abstract="false" native="false" synchronized="false"
  64006. static="false" final="false" visibility="protected"
  64007. deprecated="not deprecated">
  64008. <doc>
  64009. <![CDATA[Returns the query for selecting the records,
  64010. subclasses can override this for custom behaviour.]]>
  64011. </doc>
  64012. </method>
  64013. <method name="close"
  64014. abstract="false" native="false" synchronized="false"
  64015. static="false" final="false" visibility="public"
  64016. deprecated="not deprecated">
  64017. <exception name="IOException" type="java.io.IOException"/>
  64018. <doc>
  64019. <![CDATA[{@inheritDoc}]]>
  64020. </doc>
  64021. </method>
  64022. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  64023. abstract="false" native="false" synchronized="false"
  64024. static="false" final="false" visibility="public"
  64025. deprecated="not deprecated">
  64026. <doc>
  64027. <![CDATA[{@inheritDoc}]]>
  64028. </doc>
  64029. </method>
  64030. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  64031. abstract="false" native="false" synchronized="false"
  64032. static="false" final="false" visibility="public"
  64033. deprecated="not deprecated">
  64034. <doc>
  64035. <![CDATA[{@inheritDoc}]]>
  64036. </doc>
  64037. </method>
  64038. <method name="getPos" return="long"
  64039. abstract="false" native="false" synchronized="false"
  64040. static="false" final="false" visibility="public"
  64041. deprecated="not deprecated">
  64042. <exception name="IOException" type="java.io.IOException"/>
  64043. <doc>
  64044. <![CDATA[{@inheritDoc}]]>
  64045. </doc>
  64046. </method>
  64047. <method name="getProgress" return="float"
  64048. abstract="false" native="false" synchronized="false"
  64049. static="false" final="false" visibility="public"
  64050. deprecated="not deprecated">
  64051. <exception name="IOException" type="java.io.IOException"/>
  64052. <doc>
  64053. <![CDATA[{@inheritDoc}]]>
  64054. </doc>
  64055. </method>
  64056. <method name="next" return="boolean"
  64057. abstract="false" native="false" synchronized="false"
  64058. static="false" final="false" visibility="public"
  64059. deprecated="not deprecated">
  64060. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  64061. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  64062. <exception name="IOException" type="java.io.IOException"/>
  64063. <doc>
  64064. <![CDATA[{@inheritDoc}]]>
  64065. </doc>
  64066. </method>
  64067. <doc>
  64068. <![CDATA[A RecordReader that reads records from a SQL table.
  64069. Emits LongWritables containing the record number as
  64070. key and DBWritables as value.]]>
  64071. </doc>
  64072. </class>
  64073. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  64074. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  64075. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  64076. abstract="false"
  64077. static="true" final="false" visibility="public"
  64078. deprecated="not deprecated">
  64079. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  64080. <implements name="org.apache.hadoop.io.Writable"/>
  64081. <constructor name="DBInputFormat.NullDBWritable"
  64082. static="false" final="false" visibility="public"
  64083. deprecated="not deprecated">
  64084. </constructor>
  64085. <method name="readFields"
  64086. abstract="false" native="false" synchronized="false"
  64087. static="false" final="false" visibility="public"
  64088. deprecated="not deprecated">
  64089. <param name="in" type="java.io.DataInput"/>
  64090. <exception name="IOException" type="java.io.IOException"/>
  64091. </method>
  64092. <method name="readFields"
  64093. abstract="false" native="false" synchronized="false"
  64094. static="false" final="false" visibility="public"
  64095. deprecated="not deprecated">
  64096. <param name="arg0" type="java.sql.ResultSet"/>
  64097. <exception name="SQLException" type="java.sql.SQLException"/>
  64098. </method>
  64099. <method name="write"
  64100. abstract="false" native="false" synchronized="false"
  64101. static="false" final="false" visibility="public"
  64102. deprecated="not deprecated">
  64103. <param name="out" type="java.io.DataOutput"/>
  64104. <exception name="IOException" type="java.io.IOException"/>
  64105. </method>
  64106. <method name="write"
  64107. abstract="false" native="false" synchronized="false"
  64108. static="false" final="false" visibility="public"
  64109. deprecated="not deprecated">
  64110. <param name="arg0" type="java.sql.PreparedStatement"/>
  64111. <exception name="SQLException" type="java.sql.SQLException"/>
  64112. </method>
  64113. <doc>
  64114. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  64115. </doc>
  64116. </class>
  64117. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  64118. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  64119. <class name="DBOutputFormat" extends="java.lang.Object"
  64120. abstract="false"
  64121. static="false" final="false" visibility="public"
  64122. deprecated="not deprecated">
  64123. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  64124. <constructor name="DBOutputFormat"
  64125. static="false" final="false" visibility="public"
  64126. deprecated="not deprecated">
  64127. </constructor>
  64128. <method name="constructQuery" return="java.lang.String"
  64129. abstract="false" native="false" synchronized="false"
  64130. static="false" final="false" visibility="protected"
  64131. deprecated="not deprecated">
  64132. <param name="table" type="java.lang.String"/>
  64133. <param name="fieldNames" type="java.lang.String[]"/>
  64134. <doc>
  64135. <![CDATA[Constructs the query used as the prepared statement to insert data.
  64136. @param table
  64137. the table to insert into
  64138. @param fieldNames
  64139. the fields to insert into. If field names are unknown, supply an
  64140. array of nulls.]]>
  64141. </doc>
  64142. </method>
  64143. <method name="checkOutputSpecs"
  64144. abstract="false" native="false" synchronized="false"
  64145. static="false" final="false" visibility="public"
  64146. deprecated="not deprecated">
  64147. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  64148. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64149. <exception name="IOException" type="java.io.IOException"/>
  64150. <doc>
  64151. <![CDATA[{@inheritDoc}]]>
  64152. </doc>
  64153. </method>
  64154. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64155. abstract="false" native="false" synchronized="false"
  64156. static="false" final="false" visibility="public"
  64157. deprecated="not deprecated">
  64158. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  64159. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64160. <param name="name" type="java.lang.String"/>
  64161. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  64162. <exception name="IOException" type="java.io.IOException"/>
  64163. <doc>
  64164. <![CDATA[{@inheritDoc}]]>
  64165. </doc>
  64166. </method>
  64167. <method name="setOutput"
  64168. abstract="false" native="false" synchronized="false"
  64169. static="true" final="false" visibility="public"
  64170. deprecated="not deprecated">
  64171. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64172. <param name="tableName" type="java.lang.String"/>
  64173. <param name="fieldNames" type="java.lang.String[]"/>
  64174. <doc>
  64175. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  64176. @param job
  64177. The job
  64178. @param tableName
  64179. The table to insert data into
  64180. @param fieldNames
  64181. The field names in the table. If unknown, supply the appropriate
  64182. number of nulls.]]>
  64183. </doc>
  64184. </method>
  64185. <doc>
  64186. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  64187. <p>
  64188. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  64189. key has a type extending DBWritable. Returned {@link RecordWriter}
  64190. writes <b>only the key</b> to the database with a batch SQL query.]]>
  64191. </doc>
  64192. </class>
  64193. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  64194. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  64195. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  64196. abstract="false"
  64197. static="false" final="false" visibility="protected"
  64198. deprecated="not deprecated">
  64199. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  64200. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  64201. static="false" final="false" visibility="protected"
  64202. deprecated="not deprecated">
  64203. <exception name="SQLException" type="java.sql.SQLException"/>
  64204. </constructor>
  64205. <method name="close"
  64206. abstract="false" native="false" synchronized="false"
  64207. static="false" final="false" visibility="public"
  64208. deprecated="not deprecated">
  64209. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64210. <exception name="IOException" type="java.io.IOException"/>
  64211. <doc>
  64212. <![CDATA[{@inheritDoc}]]>
  64213. </doc>
  64214. </method>
  64215. <method name="write"
  64216. abstract="false" native="false" synchronized="false"
  64217. static="false" final="false" visibility="public"
  64218. deprecated="not deprecated">
  64219. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  64220. <param name="value" type="java.lang.Object"/>
  64221. <exception name="IOException" type="java.io.IOException"/>
  64222. <doc>
  64223. <![CDATA[{@inheritDoc}]]>
  64224. </doc>
  64225. </method>
  64226. <doc>
  64227. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  64228. </doc>
  64229. </class>
  64230. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  64231. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  64232. <interface name="DBWritable" abstract="true"
  64233. static="false" final="false" visibility="public"
  64234. deprecated="not deprecated">
  64235. <method name="write"
  64236. abstract="false" native="false" synchronized="false"
  64237. static="false" final="false" visibility="public"
  64238. deprecated="not deprecated">
  64239. <param name="statement" type="java.sql.PreparedStatement"/>
  64240. <exception name="SQLException" type="java.sql.SQLException"/>
  64241. <doc>
  64242. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  64243. @param statement the statement that the fields are put into.
  64244. @throws SQLException]]>
  64245. </doc>
  64246. </method>
  64247. <method name="readFields"
  64248. abstract="false" native="false" synchronized="false"
  64249. static="false" final="false" visibility="public"
  64250. deprecated="not deprecated">
  64251. <param name="resultSet" type="java.sql.ResultSet"/>
  64252. <exception name="SQLException" type="java.sql.SQLException"/>
  64253. <doc>
  64254. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  64255. @param resultSet the {@link ResultSet} to get the fields from.
  64256. @throws SQLException]]>
  64257. </doc>
  64258. </method>
  64259. <doc>
  64260. <![CDATA[Objects that are read from/written to a database should implement
  64261. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  64262. except that the {@link #write(PreparedStatement)} method takes a
  64263. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  64264. takes a {@link ResultSet}.
  64265. <p>
  64266. Implementations are responsible for writing the fields of the object
  64267. to PreparedStatement, and reading the fields of the object from the
  64268. ResultSet.
  64269. <p>Example:</p>
  64270. If we have the following table in the database :
  64271. <pre>
  64272. CREATE TABLE MyTable (
  64273. counter INTEGER NOT NULL,
  64274. timestamp BIGINT NOT NULL,
  64275. );
  64276. </pre>
  64277. then we can read/write the tuples from/to the table with :
  64278. <p><pre>
  64279. public class MyWritable implements Writable, DBWritable {
  64280. // Some data
  64281. private int counter;
  64282. private long timestamp;
  64283. //Writable#write() implementation
  64284. public void write(DataOutput out) throws IOException {
  64285. out.writeInt(counter);
  64286. out.writeLong(timestamp);
  64287. }
  64288. //Writable#readFields() implementation
  64289. public void readFields(DataInput in) throws IOException {
  64290. counter = in.readInt();
  64291. timestamp = in.readLong();
  64292. }
  64293. public void write(PreparedStatement statement) throws SQLException {
  64294. statement.setInt(1, counter);
  64295. statement.setLong(2, timestamp);
  64296. }
  64297. public void readFields(ResultSet resultSet) throws SQLException {
  64298. counter = resultSet.getInt(1);
  64299. timestamp = resultSet.getLong(2);
  64300. }
  64301. }
  64302. </pre></p>]]>
  64303. </doc>
  64304. </interface>
  64305. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  64306. </package>
  64307. <package name="org.apache.hadoop.mapred.pipes">
  64308. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  64309. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  64310. abstract="false"
  64311. static="false" final="false" visibility="public"
  64312. deprecated="not deprecated">
  64313. <implements name="org.apache.hadoop.util.Tool"/>
  64314. <constructor name="Submitter"
  64315. static="false" final="false" visibility="public"
  64316. deprecated="not deprecated">
  64317. </constructor>
  64318. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  64319. static="false" final="false" visibility="public"
  64320. deprecated="not deprecated">
  64321. </constructor>
  64322. <method name="getExecutable" return="java.lang.String"
  64323. abstract="false" native="false" synchronized="false"
  64324. static="true" final="false" visibility="public"
  64325. deprecated="not deprecated">
  64326. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64327. <doc>
  64328. <![CDATA[Get the URI of the application's executable.
  64329. @param conf
  64330. @return the URI where the application's executable is located]]>
  64331. </doc>
  64332. </method>
  64333. <method name="setExecutable"
  64334. abstract="false" native="false" synchronized="false"
  64335. static="true" final="false" visibility="public"
  64336. deprecated="not deprecated">
  64337. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64338. <param name="executable" type="java.lang.String"/>
  64339. <doc>
  64340. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  64341. location.
  64342. @param conf
  64343. @param executable The URI of the application's executable.]]>
  64344. </doc>
  64345. </method>
  64346. <method name="setIsJavaRecordReader"
  64347. abstract="false" native="false" synchronized="false"
  64348. static="true" final="false" visibility="public"
  64349. deprecated="not deprecated">
  64350. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64351. <param name="value" type="boolean"/>
  64352. <doc>
  64353. <![CDATA[Set whether the job is using a Java RecordReader.
  64354. @param conf the configuration to modify
  64355. @param value the new value]]>
  64356. </doc>
  64357. </method>
  64358. <method name="getIsJavaRecordReader" return="boolean"
  64359. abstract="false" native="false" synchronized="false"
  64360. static="true" final="false" visibility="public"
  64361. deprecated="not deprecated">
  64362. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64363. <doc>
  64364. <![CDATA[Check whether the job is using a Java RecordReader
  64365. @param conf the configuration to check
  64366. @return is it a Java RecordReader?]]>
  64367. </doc>
  64368. </method>
  64369. <method name="setIsJavaMapper"
  64370. abstract="false" native="false" synchronized="false"
  64371. static="true" final="false" visibility="public"
  64372. deprecated="not deprecated">
  64373. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64374. <param name="value" type="boolean"/>
  64375. <doc>
  64376. <![CDATA[Set whether the Mapper is written in Java.
  64377. @param conf the configuration to modify
  64378. @param value the new value]]>
  64379. </doc>
  64380. </method>
  64381. <method name="getIsJavaMapper" return="boolean"
  64382. abstract="false" native="false" synchronized="false"
  64383. static="true" final="false" visibility="public"
  64384. deprecated="not deprecated">
  64385. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64386. <doc>
  64387. <![CDATA[Check whether the job is using a Java Mapper.
  64388. @param conf the configuration to check
  64389. @return is it a Java Mapper?]]>
  64390. </doc>
  64391. </method>
  64392. <method name="setIsJavaReducer"
  64393. abstract="false" native="false" synchronized="false"
  64394. static="true" final="false" visibility="public"
  64395. deprecated="not deprecated">
  64396. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64397. <param name="value" type="boolean"/>
  64398. <doc>
  64399. <![CDATA[Set whether the Reducer is written in Java.
  64400. @param conf the configuration to modify
  64401. @param value the new value]]>
  64402. </doc>
  64403. </method>
  64404. <method name="getIsJavaReducer" return="boolean"
  64405. abstract="false" native="false" synchronized="false"
  64406. static="true" final="false" visibility="public"
  64407. deprecated="not deprecated">
  64408. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64409. <doc>
  64410. <![CDATA[Check whether the job is using a Java Reducer.
  64411. @param conf the configuration to check
  64412. @return is it a Java Reducer?]]>
  64413. </doc>
  64414. </method>
  64415. <method name="setIsJavaRecordWriter"
  64416. abstract="false" native="false" synchronized="false"
  64417. static="true" final="false" visibility="public"
  64418. deprecated="not deprecated">
  64419. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64420. <param name="value" type="boolean"/>
  64421. <doc>
  64422. <![CDATA[Set whether the job will use a Java RecordWriter.
  64423. @param conf the configuration to modify
  64424. @param value the new value to set]]>
  64425. </doc>
  64426. </method>
  64427. <method name="getIsJavaRecordWriter" return="boolean"
  64428. abstract="false" native="false" synchronized="false"
  64429. static="true" final="false" visibility="public"
  64430. deprecated="not deprecated">
  64431. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64432. <doc>
  64433. <![CDATA[Will the reduce use a Java RecordWriter?
  64434. @param conf the configuration to check
  64435. @return true, if the output of the job will be written by Java]]>
  64436. </doc>
  64437. </method>
  64438. <method name="getKeepCommandFile" return="boolean"
  64439. abstract="false" native="false" synchronized="false"
  64440. static="true" final="false" visibility="public"
  64441. deprecated="not deprecated">
  64442. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64443. <doc>
  64444. <![CDATA[Does the user want to keep the command file for debugging? If this is
  64445. true, pipes will write a copy of the command data to a file in the
  64446. task directory named "downlink.data", which may be used to run the C++
  64447. program under the debugger. You probably also want to set
  64448. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  64449. being deleted.
  64450. To run using the data file, set the environment variable
  64451. "hadoop.pipes.command.file" to point to the file.
  64452. @param conf the configuration to check
  64453. @return will the framework save the command file?]]>
  64454. </doc>
  64455. </method>
  64456. <method name="setKeepCommandFile"
  64457. abstract="false" native="false" synchronized="false"
  64458. static="true" final="false" visibility="public"
  64459. deprecated="not deprecated">
  64460. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64461. <param name="keep" type="boolean"/>
  64462. <doc>
  64463. <![CDATA[Set whether to keep the command file for debugging
  64464. @param conf the configuration to modify
  64465. @param keep the new value]]>
  64466. </doc>
  64467. </method>
  64468. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  64469. abstract="false" native="false" synchronized="false"
  64470. static="true" final="false" visibility="public"
  64471. deprecated="Use {@link Submitter#runJob(JobConf)}">
  64472. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64473. <exception name="IOException" type="java.io.IOException"/>
  64474. <doc>
  64475. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  64476. to the job to run under pipes are made to the configuration.
  64477. @param conf the job to submit to the cluster (MODIFIED)
  64478. @throws IOException
  64479. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  64480. </doc>
  64481. </method>
  64482. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  64483. abstract="false" native="false" synchronized="false"
  64484. static="true" final="false" visibility="public"
  64485. deprecated="not deprecated">
  64486. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64487. <exception name="IOException" type="java.io.IOException"/>
  64488. <doc>
  64489. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  64490. to the job to run under pipes are made to the configuration.
  64491. @param conf the job to submit to the cluster (MODIFIED)
  64492. @throws IOException]]>
  64493. </doc>
  64494. </method>
  64495. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  64496. abstract="false" native="false" synchronized="false"
  64497. static="true" final="false" visibility="public"
  64498. deprecated="not deprecated">
  64499. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64500. <exception name="IOException" type="java.io.IOException"/>
  64501. <doc>
  64502. <![CDATA[Submit a job to the Map-Reduce framework.
  64503. This returns a handle to the {@link RunningJob} which can be used to track
  64504. the running-job.
  64505. @param conf the job configuration.
  64506. @return a handle to the {@link RunningJob} which can be used to track the
  64507. running-job.
  64508. @throws IOException]]>
  64509. </doc>
  64510. </method>
  64511. <method name="run" return="int"
  64512. abstract="false" native="false" synchronized="false"
  64513. static="false" final="false" visibility="public"
  64514. deprecated="not deprecated">
  64515. <param name="args" type="java.lang.String[]"/>
  64516. <exception name="Exception" type="java.lang.Exception"/>
  64517. </method>
  64518. <method name="main"
  64519. abstract="false" native="false" synchronized="false"
  64520. static="true" final="false" visibility="public"
  64521. deprecated="not deprecated">
  64522. <param name="args" type="java.lang.String[]"/>
  64523. <exception name="Exception" type="java.lang.Exception"/>
  64524. <doc>
  64525. <![CDATA[Submit a pipes job based on the command line arguments.
  64526. @param args]]>
  64527. </doc>
  64528. </method>
  64529. <field name="LOG" type="org.apache.commons.logging.Log"
  64530. transient="false" volatile="false"
  64531. static="true" final="true" visibility="protected"
  64532. deprecated="not deprecated">
  64533. </field>
  64534. <doc>
  64535. <![CDATA[The main entry point and job submitter. It may either be used as a command
  64536. line-based or API-based method to launch Pipes jobs.]]>
  64537. </doc>
  64538. </class>
  64539. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  64540. </package>
  64541. <package name="org.apache.hadoop.mapred.tools">
  64542. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  64543. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  64544. abstract="false"
  64545. static="false" final="false" visibility="public"
  64546. deprecated="not deprecated">
  64547. <implements name="org.apache.hadoop.util.Tool"/>
  64548. <constructor name="MRAdmin"
  64549. static="false" final="false" visibility="public"
  64550. deprecated="not deprecated">
  64551. </constructor>
  64552. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  64553. static="false" final="false" visibility="public"
  64554. deprecated="not deprecated">
  64555. </constructor>
  64556. <method name="refreshSuperUserGroupsConfiguration" return="int"
  64557. abstract="false" native="false" synchronized="false"
  64558. static="false" final="false" visibility="public"
  64559. deprecated="not deprecated">
  64560. <exception name="IOException" type="java.io.IOException"/>
  64561. <doc>
  64562. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  64563. @return exitcode 0 on success, non-zero on failure
  64564. @throws IOException]]>
  64565. </doc>
  64566. </method>
  64567. <method name="run" return="int"
  64568. abstract="false" native="false" synchronized="false"
  64569. static="false" final="false" visibility="public"
  64570. deprecated="not deprecated">
  64571. <param name="args" type="java.lang.String[]"/>
  64572. <exception name="Exception" type="java.lang.Exception"/>
  64573. </method>
  64574. <method name="main"
  64575. abstract="false" native="false" synchronized="false"
  64576. static="true" final="false" visibility="public"
  64577. deprecated="not deprecated">
  64578. <param name="args" type="java.lang.String[]"/>
  64579. <exception name="Exception" type="java.lang.Exception"/>
  64580. </method>
  64581. <doc>
  64582. <![CDATA[Administrative access to Hadoop Map-Reduce.
  64583. Currently it only provides the ability to connect to the {@link JobTracker}
  64584. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  64585. properties.]]>
  64586. </doc>
  64587. </class>
  64588. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  64589. </package>
  64590. <package name="org.apache.hadoop.mapreduce">
  64591. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  64592. <class name="ClusterMetrics" extends="java.lang.Object"
  64593. abstract="false"
  64594. static="false" final="false" visibility="public"
  64595. deprecated="not deprecated">
  64596. <implements name="org.apache.hadoop.io.Writable"/>
  64597. <constructor name="ClusterMetrics"
  64598. static="false" final="false" visibility="public"
  64599. deprecated="not deprecated">
  64600. </constructor>
  64601. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  64602. static="false" final="false" visibility="public"
  64603. deprecated="not deprecated">
  64604. </constructor>
  64605. <method name="getRunningMaps" return="int"
  64606. abstract="false" native="false" synchronized="false"
  64607. static="false" final="false" visibility="public"
  64608. deprecated="not deprecated">
  64609. <doc>
  64610. <![CDATA[Get the number of running map tasks in the cluster.
  64611. @return running maps]]>
  64612. </doc>
  64613. </method>
  64614. <method name="getRunningReduces" return="int"
  64615. abstract="false" native="false" synchronized="false"
  64616. static="false" final="false" visibility="public"
  64617. deprecated="not deprecated">
  64618. <doc>
  64619. <![CDATA[Get the number of running reduce tasks in the cluster.
  64620. @return running reduces]]>
  64621. </doc>
  64622. </method>
  64623. <method name="getOccupiedMapSlots" return="int"
  64624. abstract="false" native="false" synchronized="false"
  64625. static="false" final="false" visibility="public"
  64626. deprecated="not deprecated">
  64627. <doc>
  64628. <![CDATA[Get number of occupied map slots in the cluster.
  64629. @return occupied map slot count]]>
  64630. </doc>
  64631. </method>
  64632. <method name="getOccupiedReduceSlots" return="int"
  64633. abstract="false" native="false" synchronized="false"
  64634. static="false" final="false" visibility="public"
  64635. deprecated="not deprecated">
  64636. <doc>
  64637. <![CDATA[Get the number of occupied reduce slots in the cluster.
  64638. @return occupied reduce slot count]]>
  64639. </doc>
  64640. </method>
  64641. <method name="getReservedMapSlots" return="int"
  64642. abstract="false" native="false" synchronized="false"
  64643. static="false" final="false" visibility="public"
  64644. deprecated="not deprecated">
  64645. <doc>
  64646. <![CDATA[Get number of reserved map slots in the cluster.
  64647. @return reserved map slot count]]>
  64648. </doc>
  64649. </method>
  64650. <method name="getReservedReduceSlots" return="int"
  64651. abstract="false" native="false" synchronized="false"
  64652. static="false" final="false" visibility="public"
  64653. deprecated="not deprecated">
  64654. <doc>
  64655. <![CDATA[Get the number of reserved reduce slots in the cluster.
  64656. @return reserved reduce slot count]]>
  64657. </doc>
  64658. </method>
  64659. <method name="getMapSlotCapacity" return="int"
  64660. abstract="false" native="false" synchronized="false"
  64661. static="false" final="false" visibility="public"
  64662. deprecated="not deprecated">
  64663. <doc>
  64664. <![CDATA[Get the total number of map slots in the cluster.
  64665. @return map slot capacity]]>
  64666. </doc>
  64667. </method>
  64668. <method name="getReduceSlotCapacity" return="int"
  64669. abstract="false" native="false" synchronized="false"
  64670. static="false" final="false" visibility="public"
  64671. deprecated="not deprecated">
  64672. <doc>
  64673. <![CDATA[Get the total number of reduce slots in the cluster.
  64674. @return reduce slot capacity]]>
  64675. </doc>
  64676. </method>
  64677. <method name="getTotalJobSubmissions" return="int"
  64678. abstract="false" native="false" synchronized="false"
  64679. static="false" final="false" visibility="public"
  64680. deprecated="not deprecated">
  64681. <doc>
  64682. <![CDATA[Get the total number of job submissions in the cluster.
  64683. @return total number of job submissions]]>
  64684. </doc>
  64685. </method>
  64686. <method name="getTaskTrackerCount" return="int"
  64687. abstract="false" native="false" synchronized="false"
  64688. static="false" final="false" visibility="public"
  64689. deprecated="not deprecated">
  64690. <doc>
  64691. <![CDATA[Get the number of active trackers in the cluster.
  64692. @return active tracker count.]]>
  64693. </doc>
  64694. </method>
  64695. <method name="getBlackListedTaskTrackerCount" return="int"
  64696. abstract="false" native="false" synchronized="false"
  64697. static="false" final="false" visibility="public"
  64698. deprecated="not deprecated">
  64699. <doc>
  64700. <![CDATA[Get the number of blacklisted trackers in the cluster.
  64701. @return blacklisted tracker count]]>
  64702. </doc>
  64703. </method>
  64704. <method name="getGrayListedTaskTrackerCount" return="int"
  64705. abstract="false" native="false" synchronized="false"
  64706. static="false" final="false" visibility="public"
  64707. deprecated="not deprecated">
  64708. <doc>
  64709. <![CDATA[Get the number of graylisted trackers in the cluster.
  64710. @return graylisted tracker count]]>
  64711. </doc>
  64712. </method>
  64713. <method name="getDecommissionedTaskTrackerCount" return="int"
  64714. abstract="false" native="false" synchronized="false"
  64715. static="false" final="false" visibility="public"
  64716. deprecated="not deprecated">
  64717. <doc>
  64718. <![CDATA[Get the number of decommissioned trackers in the cluster.
  64719. @return decommissioned tracker count]]>
  64720. </doc>
  64721. </method>
  64722. <method name="readFields"
  64723. abstract="false" native="false" synchronized="false"
  64724. static="false" final="false" visibility="public"
  64725. deprecated="not deprecated">
  64726. <param name="in" type="java.io.DataInput"/>
  64727. <exception name="IOException" type="java.io.IOException"/>
  64728. </method>
  64729. <method name="write"
  64730. abstract="false" native="false" synchronized="false"
  64731. static="false" final="false" visibility="public"
  64732. deprecated="not deprecated">
  64733. <param name="out" type="java.io.DataOutput"/>
  64734. <exception name="IOException" type="java.io.IOException"/>
  64735. </method>
  64736. <doc>
  64737. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  64738. <p><code>ClusterMetrics</code> provides clients with information such as:
  64739. <ol>
  64740. <li>
  64741. Size of the cluster.
  64742. </li>
  64743. <li>
  64744. Number of blacklisted and decommissioned trackers.
  64745. </li>
  64746. <li>
  64747. Slot capacity of the cluster.
  64748. </li>
  64749. <li>
  64750. The number of currently occupied/reserved map & reduce slots.
  64751. </li>
  64752. <li>
  64753. The number of currently running map & reduce tasks.
  64754. </li>
  64755. <li>
  64756. The number of job submissions.
  64757. </li>
  64758. </ol></p>]]>
  64759. </doc>
  64760. </class>
  64761. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  64762. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  64763. <class name="Counter" extends="java.lang.Object"
  64764. abstract="false"
  64765. static="false" final="false" visibility="public"
  64766. deprecated="not deprecated">
  64767. <implements name="org.apache.hadoop.io.Writable"/>
  64768. <constructor name="Counter"
  64769. static="false" final="false" visibility="protected"
  64770. deprecated="not deprecated">
  64771. </constructor>
  64772. <constructor name="Counter" type="java.lang.String, java.lang.String"
  64773. static="false" final="false" visibility="protected"
  64774. deprecated="not deprecated">
  64775. </constructor>
  64776. <method name="setDisplayName"
  64777. abstract="false" native="false" synchronized="true"
  64778. static="false" final="false" visibility="protected"
  64779. deprecated="not deprecated">
  64780. <param name="displayName" type="java.lang.String"/>
  64781. </method>
  64782. <method name="readFields"
  64783. abstract="false" native="false" synchronized="true"
  64784. static="false" final="false" visibility="public"
  64785. deprecated="not deprecated">
  64786. <param name="in" type="java.io.DataInput"/>
  64787. <exception name="IOException" type="java.io.IOException"/>
  64788. <doc>
  64789. <![CDATA[Read the binary representation of the counter]]>
  64790. </doc>
  64791. </method>
  64792. <method name="write"
  64793. abstract="false" native="false" synchronized="true"
  64794. static="false" final="false" visibility="public"
  64795. deprecated="not deprecated">
  64796. <param name="out" type="java.io.DataOutput"/>
  64797. <exception name="IOException" type="java.io.IOException"/>
  64798. <doc>
  64799. <![CDATA[Write the binary representation of the counter]]>
  64800. </doc>
  64801. </method>
  64802. <method name="getName" return="java.lang.String"
  64803. abstract="false" native="false" synchronized="true"
  64804. static="false" final="false" visibility="public"
  64805. deprecated="not deprecated">
  64806. </method>
  64807. <method name="getDisplayName" return="java.lang.String"
  64808. abstract="false" native="false" synchronized="true"
  64809. static="false" final="false" visibility="public"
  64810. deprecated="not deprecated">
  64811. <doc>
  64812. <![CDATA[Get the name of the counter.
  64813. @return the user facing name of the counter]]>
  64814. </doc>
  64815. </method>
  64816. <method name="getValue" return="long"
  64817. abstract="false" native="false" synchronized="true"
  64818. static="false" final="false" visibility="public"
  64819. deprecated="not deprecated">
  64820. <doc>
  64821. <![CDATA[What is the current value of this counter?
  64822. @return the current value]]>
  64823. </doc>
  64824. </method>
  64825. <method name="setValue"
  64826. abstract="false" native="false" synchronized="true"
  64827. static="false" final="false" visibility="public"
  64828. deprecated="not deprecated">
  64829. <param name="value" type="long"/>
  64830. <doc>
  64831. <![CDATA[Set this counter by the given value
  64832. @param value the value to set]]>
  64833. </doc>
  64834. </method>
  64835. <method name="increment"
  64836. abstract="false" native="false" synchronized="true"
  64837. static="false" final="false" visibility="public"
  64838. deprecated="not deprecated">
  64839. <param name="incr" type="long"/>
  64840. <doc>
  64841. <![CDATA[Increment this counter by the given value
  64842. @param incr the value to increase this counter by]]>
  64843. </doc>
  64844. </method>
  64845. <method name="equals" return="boolean"
  64846. abstract="false" native="false" synchronized="true"
  64847. static="false" final="false" visibility="public"
  64848. deprecated="not deprecated">
  64849. <param name="genericRight" type="java.lang.Object"/>
  64850. </method>
  64851. <method name="hashCode" return="int"
  64852. abstract="false" native="false" synchronized="true"
  64853. static="false" final="false" visibility="public"
  64854. deprecated="not deprecated">
  64855. </method>
  64856. <doc>
  64857. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  64858. <p><code>Counters</code> represent global counters, defined either by the
  64859. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  64860. an {@link Enum} and has a long for the value.</p>
  64861. <p><code>Counters</code> are bunched into Groups, each comprising of
  64862. counters from a particular <code>Enum</code> class.]]>
  64863. </doc>
  64864. </class>
  64865. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  64866. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  64867. <class name="CounterGroup" extends="java.lang.Object"
  64868. abstract="false"
  64869. static="false" final="false" visibility="public"
  64870. deprecated="not deprecated">
  64871. <implements name="org.apache.hadoop.io.Writable"/>
  64872. <implements name="java.lang.Iterable"/>
  64873. <constructor name="CounterGroup" type="java.lang.String"
  64874. static="false" final="false" visibility="protected"
  64875. deprecated="not deprecated">
  64876. </constructor>
  64877. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  64878. static="false" final="false" visibility="protected"
  64879. deprecated="not deprecated">
  64880. </constructor>
  64881. <method name="getName" return="java.lang.String"
  64882. abstract="false" native="false" synchronized="true"
  64883. static="false" final="false" visibility="public"
  64884. deprecated="not deprecated">
  64885. <doc>
  64886. <![CDATA[Get the internal name of the group
  64887. @return the internal name]]>
  64888. </doc>
  64889. </method>
  64890. <method name="getDisplayName" return="java.lang.String"
  64891. abstract="false" native="false" synchronized="true"
  64892. static="false" final="false" visibility="public"
  64893. deprecated="not deprecated">
  64894. <doc>
  64895. <![CDATA[Get the display name of the group.
  64896. @return the human readable name]]>
  64897. </doc>
  64898. </method>
  64899. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64900. abstract="false" native="false" synchronized="false"
  64901. static="false" final="false" visibility="protected"
  64902. deprecated="not deprecated">
  64903. <param name="counterName" type="java.lang.String"/>
  64904. <param name="displayName" type="java.lang.String"/>
  64905. <doc>
  64906. <![CDATA[Internal to find a counter in a group.
  64907. @param counterName the name of the counter
  64908. @param displayName the display name of the counter
  64909. @return the counter that was found or added]]>
  64910. </doc>
  64911. </method>
  64912. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64913. abstract="false" native="false" synchronized="true"
  64914. static="false" final="false" visibility="public"
  64915. deprecated="not deprecated">
  64916. <param name="counterName" type="java.lang.String"/>
  64917. </method>
  64918. <method name="iterator" return="java.util.Iterator"
  64919. abstract="false" native="false" synchronized="true"
  64920. static="false" final="false" visibility="public"
  64921. deprecated="not deprecated">
  64922. </method>
  64923. <method name="write"
  64924. abstract="false" native="false" synchronized="true"
  64925. static="false" final="false" visibility="public"
  64926. deprecated="not deprecated">
  64927. <param name="out" type="java.io.DataOutput"/>
  64928. <exception name="IOException" type="java.io.IOException"/>
  64929. </method>
  64930. <method name="readFields"
  64931. abstract="false" native="false" synchronized="true"
  64932. static="false" final="false" visibility="public"
  64933. deprecated="not deprecated">
  64934. <param name="in" type="java.io.DataInput"/>
  64935. <exception name="IOException" type="java.io.IOException"/>
  64936. </method>
  64937. <method name="size" return="int"
  64938. abstract="false" native="false" synchronized="true"
  64939. static="false" final="false" visibility="public"
  64940. deprecated="not deprecated">
  64941. <doc>
  64942. <![CDATA[Returns the number of counters in this group.]]>
  64943. </doc>
  64944. </method>
  64945. <method name="equals" return="boolean"
  64946. abstract="false" native="false" synchronized="true"
  64947. static="false" final="false" visibility="public"
  64948. deprecated="not deprecated">
  64949. <param name="genericRight" type="java.lang.Object"/>
  64950. </method>
  64951. <method name="hashCode" return="int"
  64952. abstract="false" native="false" synchronized="true"
  64953. static="false" final="false" visibility="public"
  64954. deprecated="not deprecated">
  64955. </method>
  64956. <method name="incrAllCounters"
  64957. abstract="false" native="false" synchronized="true"
  64958. static="false" final="false" visibility="public"
  64959. deprecated="not deprecated">
  64960. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  64961. </method>
  64962. <doc>
  64963. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  64964. it is an {@link Enum} subclass and the counters are the values.]]>
  64965. </doc>
  64966. </class>
  64967. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  64968. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  64969. <class name="Counters" extends="java.lang.Object"
  64970. abstract="false"
  64971. static="false" final="false" visibility="public"
  64972. deprecated="not deprecated">
  64973. <implements name="org.apache.hadoop.io.Writable"/>
  64974. <implements name="java.lang.Iterable"/>
  64975. <constructor name="Counters"
  64976. static="false" final="false" visibility="public"
  64977. deprecated="not deprecated">
  64978. </constructor>
  64979. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  64980. static="false" final="false" visibility="public"
  64981. deprecated="not deprecated">
  64982. </constructor>
  64983. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64984. abstract="false" native="false" synchronized="false"
  64985. static="false" final="false" visibility="public"
  64986. deprecated="not deprecated">
  64987. <param name="groupName" type="java.lang.String"/>
  64988. <param name="counterName" type="java.lang.String"/>
  64989. </method>
  64990. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64991. abstract="false" native="false" synchronized="true"
  64992. static="false" final="false" visibility="public"
  64993. deprecated="not deprecated">
  64994. <param name="key" type="java.lang.Enum"/>
  64995. <doc>
  64996. <![CDATA[Find the counter for the given enum. The same enum will always return the
  64997. same counter.
  64998. @param key the counter key
  64999. @return the matching counter object]]>
  65000. </doc>
  65001. </method>
  65002. <method name="getGroupNames" return="java.util.Collection"
  65003. abstract="false" native="false" synchronized="true"
  65004. static="false" final="false" visibility="public"
  65005. deprecated="not deprecated">
  65006. <doc>
  65007. <![CDATA[Returns the names of all counter classes.
  65008. @return Set of counter names.]]>
  65009. </doc>
  65010. </method>
  65011. <method name="iterator" return="java.util.Iterator"
  65012. abstract="false" native="false" synchronized="false"
  65013. static="false" final="false" visibility="public"
  65014. deprecated="not deprecated">
  65015. </method>
  65016. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  65017. abstract="false" native="false" synchronized="true"
  65018. static="false" final="false" visibility="public"
  65019. deprecated="not deprecated">
  65020. <param name="groupName" type="java.lang.String"/>
  65021. <doc>
  65022. <![CDATA[Returns the named counter group, or an empty group if there is none
  65023. with the specified name.]]>
  65024. </doc>
  65025. </method>
  65026. <method name="countCounters" return="int"
  65027. abstract="false" native="false" synchronized="true"
  65028. static="false" final="false" visibility="public"
  65029. deprecated="not deprecated">
  65030. <doc>
  65031. <![CDATA[Returns the total number of counters, by summing the number of counters
  65032. in each group.]]>
  65033. </doc>
  65034. </method>
  65035. <method name="write"
  65036. abstract="false" native="false" synchronized="true"
  65037. static="false" final="false" visibility="public"
  65038. deprecated="not deprecated">
  65039. <param name="out" type="java.io.DataOutput"/>
  65040. <exception name="IOException" type="java.io.IOException"/>
  65041. <doc>
  65042. <![CDATA[Write the set of groups.
  65043. The external format is:
  65044. #groups (groupName group)*
  65045. i.e. the number of groups followed by 0 or more groups, where each
  65046. group is of the form:
  65047. groupDisplayName #counters (false | true counter)*
  65048. where each counter is of the form:
  65049. name (false | true displayName) value]]>
  65050. </doc>
  65051. </method>
  65052. <method name="readFields"
  65053. abstract="false" native="false" synchronized="true"
  65054. static="false" final="false" visibility="public"
  65055. deprecated="not deprecated">
  65056. <param name="in" type="java.io.DataInput"/>
  65057. <exception name="IOException" type="java.io.IOException"/>
  65058. <doc>
  65059. <![CDATA[Read a set of groups.]]>
  65060. </doc>
  65061. </method>
  65062. <method name="toString" return="java.lang.String"
  65063. abstract="false" native="false" synchronized="true"
  65064. static="false" final="false" visibility="public"
  65065. deprecated="not deprecated">
  65066. <doc>
  65067. <![CDATA[Return textual representation of the counter values.]]>
  65068. </doc>
  65069. </method>
  65070. <method name="incrAllCounters"
  65071. abstract="false" native="false" synchronized="true"
  65072. static="false" final="false" visibility="public"
  65073. deprecated="not deprecated">
  65074. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  65075. <doc>
  65076. <![CDATA[Increments multiple counters by their amounts in another Counters
  65077. instance.
  65078. @param other the other Counters instance]]>
  65079. </doc>
  65080. </method>
  65081. <method name="equals" return="boolean"
  65082. abstract="false" native="false" synchronized="false"
  65083. static="false" final="false" visibility="public"
  65084. deprecated="not deprecated">
  65085. <param name="genericRight" type="java.lang.Object"/>
  65086. </method>
  65087. <method name="hashCode" return="int"
  65088. abstract="false" native="false" synchronized="false"
  65089. static="false" final="false" visibility="public"
  65090. deprecated="not deprecated">
  65091. </method>
  65092. </class>
  65093. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  65094. <!-- start class org.apache.hadoop.mapreduce.ID -->
  65095. <class name="ID" extends="java.lang.Object"
  65096. abstract="true"
  65097. static="false" final="false" visibility="public"
  65098. deprecated="not deprecated">
  65099. <implements name="org.apache.hadoop.io.WritableComparable"/>
  65100. <constructor name="ID" type="int"
  65101. static="false" final="false" visibility="public"
  65102. deprecated="not deprecated">
  65103. <doc>
  65104. <![CDATA[constructs an ID object from the given int]]>
  65105. </doc>
  65106. </constructor>
  65107. <constructor name="ID"
  65108. static="false" final="false" visibility="protected"
  65109. deprecated="not deprecated">
  65110. </constructor>
  65111. <method name="getId" return="int"
  65112. abstract="false" native="false" synchronized="false"
  65113. static="false" final="false" visibility="public"
  65114. deprecated="not deprecated">
  65115. <doc>
  65116. <![CDATA[returns the int which represents the identifier]]>
  65117. </doc>
  65118. </method>
  65119. <method name="toString" return="java.lang.String"
  65120. abstract="false" native="false" synchronized="false"
  65121. static="false" final="false" visibility="public"
  65122. deprecated="not deprecated">
  65123. </method>
  65124. <method name="hashCode" return="int"
  65125. abstract="false" native="false" synchronized="false"
  65126. static="false" final="false" visibility="public"
  65127. deprecated="not deprecated">
  65128. </method>
  65129. <method name="equals" return="boolean"
  65130. abstract="false" native="false" synchronized="false"
  65131. static="false" final="false" visibility="public"
  65132. deprecated="not deprecated">
  65133. <param name="o" type="java.lang.Object"/>
  65134. </method>
  65135. <method name="compareTo" return="int"
  65136. abstract="false" native="false" synchronized="false"
  65137. static="false" final="false" visibility="public"
  65138. deprecated="not deprecated">
  65139. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  65140. <doc>
  65141. <![CDATA[Compare IDs by associated numbers]]>
  65142. </doc>
  65143. </method>
  65144. <method name="readFields"
  65145. abstract="false" native="false" synchronized="false"
  65146. static="false" final="false" visibility="public"
  65147. deprecated="not deprecated">
  65148. <param name="in" type="java.io.DataInput"/>
  65149. <exception name="IOException" type="java.io.IOException"/>
  65150. </method>
  65151. <method name="write"
  65152. abstract="false" native="false" synchronized="false"
  65153. static="false" final="false" visibility="public"
  65154. deprecated="not deprecated">
  65155. <param name="out" type="java.io.DataOutput"/>
  65156. <exception name="IOException" type="java.io.IOException"/>
  65157. </method>
  65158. <field name="SEPARATOR" type="char"
  65159. transient="false" volatile="false"
  65160. static="true" final="true" visibility="protected"
  65161. deprecated="not deprecated">
  65162. </field>
  65163. <field name="id" type="int"
  65164. transient="false" volatile="false"
  65165. static="false" final="false" visibility="protected"
  65166. deprecated="not deprecated">
  65167. </field>
  65168. <doc>
  65169. <![CDATA[A general identifier, which internally stores the id
  65170. as an integer. This is the super class of {@link JobID},
  65171. {@link TaskID} and {@link TaskAttemptID}.
  65172. @see JobID
  65173. @see TaskID
  65174. @see TaskAttemptID]]>
  65175. </doc>
  65176. </class>
  65177. <!-- end class org.apache.hadoop.mapreduce.ID -->
  65178. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  65179. <class name="InputFormat" extends="java.lang.Object"
  65180. abstract="true"
  65181. static="false" final="false" visibility="public"
  65182. deprecated="not deprecated">
  65183. <constructor name="InputFormat"
  65184. static="false" final="false" visibility="public"
  65185. deprecated="not deprecated">
  65186. </constructor>
  65187. <method name="getSplits" return="java.util.List"
  65188. abstract="true" native="false" synchronized="false"
  65189. static="false" final="false" visibility="public"
  65190. deprecated="not deprecated">
  65191. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  65192. <exception name="IOException" type="java.io.IOException"/>
  65193. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65194. <doc>
  65195. <![CDATA[Logically split the set of input files for the job.
  65196. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  65197. for processing.</p>
  65198. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  65199. input files are not physically split into chunks. For e.g. a split could
  65200. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  65201. also creates the {@link RecordReader} to read the {@link InputSplit}.
  65202. @param context job configuration.
  65203. @return an array of {@link InputSplit}s for the job.]]>
  65204. </doc>
  65205. </method>
  65206. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  65207. abstract="true" native="false" synchronized="false"
  65208. static="false" final="false" visibility="public"
  65209. deprecated="not deprecated">
  65210. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  65211. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65212. <exception name="IOException" type="java.io.IOException"/>
  65213. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65214. <doc>
  65215. <![CDATA[Create a record reader for a given split. The framework will call
  65216. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  65217. the split is used.
  65218. @param split the split to be read
  65219. @param context the information about the task
  65220. @return a new record reader
  65221. @throws IOException
  65222. @throws InterruptedException]]>
  65223. </doc>
  65224. </method>
  65225. <doc>
  65226. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  65227. Map-Reduce job.
  65228. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  65229. job to:<p>
  65230. <ol>
  65231. <li>
  65232. Validate the input-specification of the job.
  65233. <li>
  65234. Split-up the input file(s) into logical {@link InputSplit}s, each of
  65235. which is then assigned to an individual {@link Mapper}.
  65236. </li>
  65237. <li>
  65238. Provide the {@link RecordReader} implementation to be used to glean
  65239. input records from the logical <code>InputSplit</code> for processing by
  65240. the {@link Mapper}.
  65241. </li>
  65242. </ol>
  65243. <p>The default behavior of file-based {@link InputFormat}s, typically
  65244. sub-classes of {@link FileInputFormat}, is to split the
  65245. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  65246. bytes, of the input files. However, the {@link FileSystem} blocksize of
  65247. the input files is treated as an upper bound for input splits. A lower bound
  65248. on the split size can be set via
  65249. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  65250. mapred.min.split.size</a>.</p>
  65251. <p>Clearly, logical splits based on input-size is insufficient for many
  65252. applications since record boundaries are to respected. In such cases, the
  65253. application has to also implement a {@link RecordReader} on whom lies the
  65254. responsibility to respect record-boundaries and present a record-oriented
  65255. view of the logical <code>InputSplit</code> to the individual task.
  65256. @see InputSplit
  65257. @see RecordReader
  65258. @see FileInputFormat]]>
  65259. </doc>
  65260. </class>
  65261. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  65262. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  65263. <class name="InputSplit" extends="java.lang.Object"
  65264. abstract="true"
  65265. static="false" final="false" visibility="public"
  65266. deprecated="not deprecated">
  65267. <constructor name="InputSplit"
  65268. static="false" final="false" visibility="public"
  65269. deprecated="not deprecated">
  65270. </constructor>
  65271. <method name="getLength" return="long"
  65272. abstract="true" native="false" synchronized="false"
  65273. static="false" final="false" visibility="public"
  65274. deprecated="not deprecated">
  65275. <exception name="IOException" type="java.io.IOException"/>
  65276. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65277. <doc>
  65278. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  65279. @return the number of bytes in the split
  65280. @throws IOException
  65281. @throws InterruptedException]]>
  65282. </doc>
  65283. </method>
  65284. <method name="getLocations" return="java.lang.String[]"
  65285. abstract="true" native="false" synchronized="false"
  65286. static="false" final="false" visibility="public"
  65287. deprecated="not deprecated">
  65288. <exception name="IOException" type="java.io.IOException"/>
  65289. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65290. <doc>
  65291. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  65292. The locations do not need to be serialized.
  65293. @return a new array of the node nodes.
  65294. @throws IOException
  65295. @throws InterruptedException]]>
  65296. </doc>
  65297. </method>
  65298. <doc>
  65299. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  65300. individual {@link Mapper}.
  65301. <p>Typically, it presents a byte-oriented view on the input and is the
  65302. responsibility of {@link RecordReader} of the job to process this and present
  65303. a record-oriented view.
  65304. @see InputFormat
  65305. @see RecordReader]]>
  65306. </doc>
  65307. </class>
  65308. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  65309. <!-- start class org.apache.hadoop.mapreduce.Job -->
  65310. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  65311. abstract="false"
  65312. static="false" final="false" visibility="public"
  65313. deprecated="not deprecated">
  65314. <constructor name="Job"
  65315. static="false" final="false" visibility="public"
  65316. deprecated="not deprecated">
  65317. <exception name="IOException" type="java.io.IOException"/>
  65318. </constructor>
  65319. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  65320. static="false" final="false" visibility="public"
  65321. deprecated="not deprecated">
  65322. <exception name="IOException" type="java.io.IOException"/>
  65323. </constructor>
  65324. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  65325. static="false" final="false" visibility="public"
  65326. deprecated="not deprecated">
  65327. <exception name="IOException" type="java.io.IOException"/>
  65328. </constructor>
  65329. <method name="setNumReduceTasks"
  65330. abstract="false" native="false" synchronized="false"
  65331. static="false" final="false" visibility="public"
  65332. deprecated="not deprecated">
  65333. <param name="tasks" type="int"/>
  65334. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65335. <doc>
  65336. <![CDATA[Set the number of reduce tasks for the job.
  65337. @param tasks the number of reduce tasks
  65338. @throws IllegalStateException if the job is submitted]]>
  65339. </doc>
  65340. </method>
  65341. <method name="setWorkingDirectory"
  65342. abstract="false" native="false" synchronized="false"
  65343. static="false" final="false" visibility="public"
  65344. deprecated="not deprecated">
  65345. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  65346. <exception name="IOException" type="java.io.IOException"/>
  65347. <doc>
  65348. <![CDATA[Set the current working directory for the default file system.
  65349. @param dir the new current working directory.
  65350. @throws IllegalStateException if the job is submitted]]>
  65351. </doc>
  65352. </method>
  65353. <method name="setInputFormatClass"
  65354. abstract="false" native="false" synchronized="false"
  65355. static="false" final="false" visibility="public"
  65356. deprecated="not deprecated">
  65357. <param name="cls" type="java.lang.Class"/>
  65358. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65359. <doc>
  65360. <![CDATA[Set the {@link InputFormat} for the job.
  65361. @param cls the <code>InputFormat</code> to use
  65362. @throws IllegalStateException if the job is submitted]]>
  65363. </doc>
  65364. </method>
  65365. <method name="setOutputFormatClass"
  65366. abstract="false" native="false" synchronized="false"
  65367. static="false" final="false" visibility="public"
  65368. deprecated="not deprecated">
  65369. <param name="cls" type="java.lang.Class"/>
  65370. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65371. <doc>
  65372. <![CDATA[Set the {@link OutputFormat} for the job.
  65373. @param cls the <code>OutputFormat</code> to use
  65374. @throws IllegalStateException if the job is submitted]]>
  65375. </doc>
  65376. </method>
  65377. <method name="setMapperClass"
  65378. abstract="false" native="false" synchronized="false"
  65379. static="false" final="false" visibility="public"
  65380. deprecated="not deprecated">
  65381. <param name="cls" type="java.lang.Class"/>
  65382. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65383. <doc>
  65384. <![CDATA[Set the {@link Mapper} for the job.
  65385. @param cls the <code>Mapper</code> to use
  65386. @throws IllegalStateException if the job is submitted]]>
  65387. </doc>
  65388. </method>
  65389. <method name="setJarByClass"
  65390. abstract="false" native="false" synchronized="false"
  65391. static="false" final="false" visibility="public"
  65392. deprecated="not deprecated">
  65393. <param name="cls" type="java.lang.Class"/>
  65394. <doc>
  65395. <![CDATA[Set the Jar by finding where a given class came from.
  65396. @param cls the example class]]>
  65397. </doc>
  65398. </method>
  65399. <method name="getJar" return="java.lang.String"
  65400. abstract="false" native="false" synchronized="false"
  65401. static="false" final="false" visibility="public"
  65402. deprecated="not deprecated">
  65403. <doc>
  65404. <![CDATA[Get the pathname of the job's jar.
  65405. @return the pathname]]>
  65406. </doc>
  65407. </method>
  65408. <method name="setCombinerClass"
  65409. abstract="false" native="false" synchronized="false"
  65410. static="false" final="false" visibility="public"
  65411. deprecated="not deprecated">
  65412. <param name="cls" type="java.lang.Class"/>
  65413. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65414. <doc>
  65415. <![CDATA[Set the combiner class for the job.
  65416. @param cls the combiner to use
  65417. @throws IllegalStateException if the job is submitted]]>
  65418. </doc>
  65419. </method>
  65420. <method name="setReducerClass"
  65421. abstract="false" native="false" synchronized="false"
  65422. static="false" final="false" visibility="public"
  65423. deprecated="not deprecated">
  65424. <param name="cls" type="java.lang.Class"/>
  65425. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65426. <doc>
  65427. <![CDATA[Set the {@link Reducer} for the job.
  65428. @param cls the <code>Reducer</code> to use
  65429. @throws IllegalStateException if the job is submitted]]>
  65430. </doc>
  65431. </method>
  65432. <method name="setPartitionerClass"
  65433. abstract="false" native="false" synchronized="false"
  65434. static="false" final="false" visibility="public"
  65435. deprecated="not deprecated">
  65436. <param name="cls" type="java.lang.Class"/>
  65437. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65438. <doc>
  65439. <![CDATA[Set the {@link Partitioner} for the job.
  65440. @param cls the <code>Partitioner</code> to use
  65441. @throws IllegalStateException if the job is submitted]]>
  65442. </doc>
  65443. </method>
  65444. <method name="setMapOutputKeyClass"
  65445. abstract="false" native="false" synchronized="false"
  65446. static="false" final="false" visibility="public"
  65447. deprecated="not deprecated">
  65448. <param name="theClass" type="java.lang.Class"/>
  65449. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65450. <doc>
  65451. <![CDATA[Set the key class for the map output data. This allows the user to
  65452. specify the map output key class to be different than the final output
  65453. value class.
  65454. @param theClass the map output key class.
  65455. @throws IllegalStateException if the job is submitted]]>
  65456. </doc>
  65457. </method>
  65458. <method name="setMapOutputValueClass"
  65459. abstract="false" native="false" synchronized="false"
  65460. static="false" final="false" visibility="public"
  65461. deprecated="not deprecated">
  65462. <param name="theClass" type="java.lang.Class"/>
  65463. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65464. <doc>
  65465. <![CDATA[Set the value class for the map output data. This allows the user to
  65466. specify the map output value class to be different than the final output
  65467. value class.
  65468. @param theClass the map output value class.
  65469. @throws IllegalStateException if the job is submitted]]>
  65470. </doc>
  65471. </method>
  65472. <method name="setOutputKeyClass"
  65473. abstract="false" native="false" synchronized="false"
  65474. static="false" final="false" visibility="public"
  65475. deprecated="not deprecated">
  65476. <param name="theClass" type="java.lang.Class"/>
  65477. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65478. <doc>
  65479. <![CDATA[Set the key class for the job output data.
  65480. @param theClass the key class for the job output data.
  65481. @throws IllegalStateException if the job is submitted]]>
  65482. </doc>
  65483. </method>
  65484. <method name="setOutputValueClass"
  65485. abstract="false" native="false" synchronized="false"
  65486. static="false" final="false" visibility="public"
  65487. deprecated="not deprecated">
  65488. <param name="theClass" type="java.lang.Class"/>
  65489. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65490. <doc>
  65491. <![CDATA[Set the value class for job outputs.
  65492. @param theClass the value class for job outputs.
  65493. @throws IllegalStateException if the job is submitted]]>
  65494. </doc>
  65495. </method>
  65496. <method name="setSortComparatorClass"
  65497. abstract="false" native="false" synchronized="false"
  65498. static="false" final="false" visibility="public"
  65499. deprecated="not deprecated">
  65500. <param name="cls" type="java.lang.Class"/>
  65501. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65502. <doc>
  65503. <![CDATA[Define the comparator that controls how the keys are sorted before they
  65504. are passed to the {@link Reducer}.
  65505. @param cls the raw comparator
  65506. @throws IllegalStateException if the job is submitted]]>
  65507. </doc>
  65508. </method>
  65509. <method name="setGroupingComparatorClass"
  65510. abstract="false" native="false" synchronized="false"
  65511. static="false" final="false" visibility="public"
  65512. deprecated="not deprecated">
  65513. <param name="cls" type="java.lang.Class"/>
  65514. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65515. <doc>
  65516. <![CDATA[Define the comparator that controls which keys are grouped together
  65517. for a single call to
  65518. {@link Reducer#reduce(Object, Iterable,
  65519. org.apache.hadoop.mapreduce.Reducer.Context)}
  65520. @param cls the raw comparator to use
  65521. @throws IllegalStateException if the job is submitted]]>
  65522. </doc>
  65523. </method>
  65524. <method name="setJobName"
  65525. abstract="false" native="false" synchronized="false"
  65526. static="false" final="false" visibility="public"
  65527. deprecated="not deprecated">
  65528. <param name="name" type="java.lang.String"/>
  65529. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  65530. <doc>
  65531. <![CDATA[Set the user-specified job name.
  65532. @param name the job's new name.
  65533. @throws IllegalStateException if the job is submitted]]>
  65534. </doc>
  65535. </method>
  65536. <method name="setSpeculativeExecution"
  65537. abstract="false" native="false" synchronized="false"
  65538. static="false" final="false" visibility="public"
  65539. deprecated="not deprecated">
  65540. <param name="speculativeExecution" type="boolean"/>
  65541. <doc>
  65542. <![CDATA[Turn speculative execution on or off for this job.
  65543. @param speculativeExecution <code>true</code> if speculative execution
  65544. should be turned on, else <code>false</code>.]]>
  65545. </doc>
  65546. </method>
  65547. <method name="setMapSpeculativeExecution"
  65548. abstract="false" native="false" synchronized="false"
  65549. static="false" final="false" visibility="public"
  65550. deprecated="not deprecated">
  65551. <param name="speculativeExecution" type="boolean"/>
  65552. <doc>
  65553. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  65554. @param speculativeExecution <code>true</code> if speculative execution
  65555. should be turned on for map tasks,
  65556. else <code>false</code>.]]>
  65557. </doc>
  65558. </method>
  65559. <method name="setReduceSpeculativeExecution"
  65560. abstract="false" native="false" synchronized="false"
  65561. static="false" final="false" visibility="public"
  65562. deprecated="not deprecated">
  65563. <param name="speculativeExecution" type="boolean"/>
  65564. <doc>
  65565. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  65566. @param speculativeExecution <code>true</code> if speculative execution
  65567. should be turned on for reduce tasks,
  65568. else <code>false</code>.]]>
  65569. </doc>
  65570. </method>
  65571. <method name="getTrackingURL" return="java.lang.String"
  65572. abstract="false" native="false" synchronized="false"
  65573. static="false" final="false" visibility="public"
  65574. deprecated="not deprecated">
  65575. <doc>
  65576. <![CDATA[Get the URL where some job progress information will be displayed.
  65577. @return the URL where some job progress information will be displayed.]]>
  65578. </doc>
  65579. </method>
  65580. <method name="setupProgress" return="float"
  65581. abstract="false" native="false" synchronized="false"
  65582. static="false" final="false" visibility="public"
  65583. deprecated="not deprecated">
  65584. <exception name="IOException" type="java.io.IOException"/>
  65585. <doc>
  65586. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  65587. and 1.0. When the job setup is completed, the function returns 1.0.
  65588. @return the progress of the job's setup.
  65589. @throws IOException]]>
  65590. </doc>
  65591. </method>
  65592. <method name="mapProgress" return="float"
  65593. abstract="false" native="false" synchronized="false"
  65594. static="false" final="false" visibility="public"
  65595. deprecated="not deprecated">
  65596. <exception name="IOException" type="java.io.IOException"/>
  65597. <doc>
  65598. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  65599. and 1.0. When all map tasks have completed, the function returns 1.0.
  65600. @return the progress of the job's map-tasks.
  65601. @throws IOException]]>
  65602. </doc>
  65603. </method>
  65604. <method name="reduceProgress" return="float"
  65605. abstract="false" native="false" synchronized="false"
  65606. static="false" final="false" visibility="public"
  65607. deprecated="not deprecated">
  65608. <exception name="IOException" type="java.io.IOException"/>
  65609. <doc>
  65610. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  65611. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  65612. @return the progress of the job's reduce-tasks.
  65613. @throws IOException]]>
  65614. </doc>
  65615. </method>
  65616. <method name="isComplete" return="boolean"
  65617. abstract="false" native="false" synchronized="false"
  65618. static="false" final="false" visibility="public"
  65619. deprecated="not deprecated">
  65620. <exception name="IOException" type="java.io.IOException"/>
  65621. <doc>
  65622. <![CDATA[Check if the job is finished or not.
  65623. This is a non-blocking call.
  65624. @return <code>true</code> if the job is complete, else <code>false</code>.
  65625. @throws IOException]]>
  65626. </doc>
  65627. </method>
  65628. <method name="isSuccessful" return="boolean"
  65629. abstract="false" native="false" synchronized="false"
  65630. static="false" final="false" visibility="public"
  65631. deprecated="not deprecated">
  65632. <exception name="IOException" type="java.io.IOException"/>
  65633. <doc>
  65634. <![CDATA[Check if the job completed successfully.
  65635. @return <code>true</code> if the job succeeded, else <code>false</code>.
  65636. @throws IOException]]>
  65637. </doc>
  65638. </method>
  65639. <method name="killJob"
  65640. abstract="false" native="false" synchronized="false"
  65641. static="false" final="false" visibility="public"
  65642. deprecated="not deprecated">
  65643. <exception name="IOException" type="java.io.IOException"/>
  65644. <doc>
  65645. <![CDATA[Kill the running job. Blocks until all job tasks have been
  65646. killed as well. If the job is no longer running, it simply returns.
  65647. @throws IOException]]>
  65648. </doc>
  65649. </method>
  65650. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  65651. abstract="false" native="false" synchronized="false"
  65652. static="false" final="false" visibility="public"
  65653. deprecated="not deprecated">
  65654. <param name="startFrom" type="int"/>
  65655. <exception name="IOException" type="java.io.IOException"/>
  65656. <doc>
  65657. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  65658. @param startFrom index to start fetching events from
  65659. @return an array of {@link TaskCompletionEvent}s
  65660. @throws IOException]]>
  65661. </doc>
  65662. </method>
  65663. <method name="killTask"
  65664. abstract="false" native="false" synchronized="false"
  65665. static="false" final="false" visibility="public"
  65666. deprecated="not deprecated">
  65667. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  65668. <exception name="IOException" type="java.io.IOException"/>
  65669. <doc>
  65670. <![CDATA[Kill indicated task attempt.
  65671. @param taskId the id of the task to be terminated.
  65672. @throws IOException]]>
  65673. </doc>
  65674. </method>
  65675. <method name="failTask"
  65676. abstract="false" native="false" synchronized="false"
  65677. static="false" final="false" visibility="public"
  65678. deprecated="not deprecated">
  65679. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  65680. <exception name="IOException" type="java.io.IOException"/>
  65681. <doc>
  65682. <![CDATA[Fail indicated task attempt.
  65683. @param taskId the id of the task to be terminated.
  65684. @throws IOException]]>
  65685. </doc>
  65686. </method>
  65687. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  65688. abstract="false" native="false" synchronized="false"
  65689. static="false" final="false" visibility="public"
  65690. deprecated="not deprecated">
  65691. <exception name="IOException" type="java.io.IOException"/>
  65692. <doc>
  65693. <![CDATA[Gets the counters for this job.
  65694. @return the counters for this job.
  65695. @throws IOException]]>
  65696. </doc>
  65697. </method>
  65698. <method name="setCancelDelegationTokenUponJobCompletion"
  65699. abstract="false" native="false" synchronized="false"
  65700. static="false" final="false" visibility="public"
  65701. deprecated="not deprecated">
  65702. <param name="value" type="boolean"/>
  65703. <doc>
  65704. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  65705. tokens upon job completion. Defaults to true.]]>
  65706. </doc>
  65707. </method>
  65708. <method name="submit"
  65709. abstract="false" native="false" synchronized="false"
  65710. static="false" final="false" visibility="public"
  65711. deprecated="not deprecated">
  65712. <exception name="IOException" type="java.io.IOException"/>
  65713. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65714. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65715. <doc>
  65716. <![CDATA[Submit the job to the cluster and return immediately.
  65717. @throws IOException]]>
  65718. </doc>
  65719. </method>
  65720. <method name="waitForCompletion" return="boolean"
  65721. abstract="false" native="false" synchronized="false"
  65722. static="false" final="false" visibility="public"
  65723. deprecated="not deprecated">
  65724. <param name="verbose" type="boolean"/>
  65725. <exception name="IOException" type="java.io.IOException"/>
  65726. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65727. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65728. <doc>
  65729. <![CDATA[Submit the job to the cluster and wait for it to finish.
  65730. @param verbose print the progress to the user
  65731. @return true if the job succeeded
  65732. @throws IOException thrown if the communication with the
  65733. <code>JobTracker</code> is lost]]>
  65734. </doc>
  65735. </method>
  65736. <doc>
  65737. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  65738. job, submit it, control its execution, and query the state. The set methods
  65739. only work until the job is submitted, afterwards they will throw an
  65740. IllegalStateException.]]>
  65741. </doc>
  65742. </class>
  65743. <!-- end class org.apache.hadoop.mapreduce.Job -->
  65744. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  65745. <class name="Job.JobState" extends="java.lang.Enum"
  65746. abstract="false"
  65747. static="true" final="true" visibility="public"
  65748. deprecated="not deprecated">
  65749. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  65750. abstract="false" native="false" synchronized="false"
  65751. static="true" final="false" visibility="public"
  65752. deprecated="not deprecated">
  65753. </method>
  65754. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  65755. abstract="false" native="false" synchronized="false"
  65756. static="true" final="false" visibility="public"
  65757. deprecated="not deprecated">
  65758. <param name="name" type="java.lang.String"/>
  65759. </method>
  65760. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  65761. transient="false" volatile="false"
  65762. static="true" final="true" visibility="public"
  65763. deprecated="not deprecated">
  65764. </field>
  65765. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  65766. transient="false" volatile="false"
  65767. static="true" final="true" visibility="public"
  65768. deprecated="not deprecated">
  65769. </field>
  65770. </class>
  65771. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  65772. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  65773. <class name="JobACL" extends="java.lang.Enum"
  65774. abstract="false"
  65775. static="false" final="true" visibility="public"
  65776. deprecated="not deprecated">
  65777. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  65778. abstract="false" native="false" synchronized="false"
  65779. static="true" final="false" visibility="public"
  65780. deprecated="not deprecated">
  65781. </method>
  65782. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  65783. abstract="false" native="false" synchronized="false"
  65784. static="true" final="false" visibility="public"
  65785. deprecated="not deprecated">
  65786. <param name="name" type="java.lang.String"/>
  65787. </method>
  65788. <method name="getAclName" return="java.lang.String"
  65789. abstract="false" native="false" synchronized="false"
  65790. static="false" final="false" visibility="public"
  65791. deprecated="not deprecated">
  65792. <doc>
  65793. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  65794. property for specifying the ACL for the job.
  65795. @return aclName]]>
  65796. </doc>
  65797. </method>
  65798. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  65799. transient="false" volatile="false"
  65800. static="true" final="true" visibility="public"
  65801. deprecated="not deprecated">
  65802. <doc>
  65803. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  65804. related details.]]>
  65805. </doc>
  65806. </field>
  65807. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  65808. transient="false" volatile="false"
  65809. static="true" final="true" visibility="public"
  65810. deprecated="not deprecated">
  65811. <doc>
  65812. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  65813. killing the job, killing/failing a task of the job or setting priority of
  65814. the job.]]>
  65815. </doc>
  65816. </field>
  65817. <doc>
  65818. <![CDATA[Job related ACLs]]>
  65819. </doc>
  65820. </class>
  65821. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  65822. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  65823. <class name="JobContext" extends="java.lang.Object"
  65824. abstract="false"
  65825. static="false" final="false" visibility="public"
  65826. deprecated="not deprecated">
  65827. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  65828. static="false" final="false" visibility="public"
  65829. deprecated="not deprecated">
  65830. </constructor>
  65831. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  65832. abstract="false" native="false" synchronized="false"
  65833. static="false" final="false" visibility="public"
  65834. deprecated="not deprecated">
  65835. <doc>
  65836. <![CDATA[Return the configuration for the job.
  65837. @return the shared configuration object]]>
  65838. </doc>
  65839. </method>
  65840. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  65841. abstract="false" native="false" synchronized="false"
  65842. static="false" final="false" visibility="public"
  65843. deprecated="not deprecated">
  65844. <doc>
  65845. <![CDATA[Get credentials for the job.
  65846. @return credentials for the job]]>
  65847. </doc>
  65848. </method>
  65849. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  65850. abstract="false" native="false" synchronized="false"
  65851. static="false" final="false" visibility="public"
  65852. deprecated="not deprecated">
  65853. <doc>
  65854. <![CDATA[Get the unique ID for the job.
  65855. @return the object with the job id]]>
  65856. </doc>
  65857. </method>
  65858. <method name="getNumReduceTasks" return="int"
  65859. abstract="false" native="false" synchronized="false"
  65860. static="false" final="false" visibility="public"
  65861. deprecated="not deprecated">
  65862. <doc>
  65863. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  65864. <code>1</code>.
  65865. @return the number of reduce tasks for this job.]]>
  65866. </doc>
  65867. </method>
  65868. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  65869. abstract="false" native="false" synchronized="false"
  65870. static="false" final="false" visibility="public"
  65871. deprecated="not deprecated">
  65872. <exception name="IOException" type="java.io.IOException"/>
  65873. <doc>
  65874. <![CDATA[Get the current working directory for the default file system.
  65875. @return the directory name.]]>
  65876. </doc>
  65877. </method>
  65878. <method name="getOutputKeyClass" return="java.lang.Class"
  65879. abstract="false" native="false" synchronized="false"
  65880. static="false" final="false" visibility="public"
  65881. deprecated="not deprecated">
  65882. <doc>
  65883. <![CDATA[Get the key class for the job output data.
  65884. @return the key class for the job output data.]]>
  65885. </doc>
  65886. </method>
  65887. <method name="getOutputValueClass" return="java.lang.Class"
  65888. abstract="false" native="false" synchronized="false"
  65889. static="false" final="false" visibility="public"
  65890. deprecated="not deprecated">
  65891. <doc>
  65892. <![CDATA[Get the value class for job outputs.
  65893. @return the value class for job outputs.]]>
  65894. </doc>
  65895. </method>
  65896. <method name="getMapOutputKeyClass" return="java.lang.Class"
  65897. abstract="false" native="false" synchronized="false"
  65898. static="false" final="false" visibility="public"
  65899. deprecated="not deprecated">
  65900. <doc>
  65901. <![CDATA[Get the key class for the map output data. If it is not set, use the
  65902. (final) output key class. This allows the map output key class to be
  65903. different than the final output key class.
  65904. @return the map output key class.]]>
  65905. </doc>
  65906. </method>
  65907. <method name="getMapOutputValueClass" return="java.lang.Class"
  65908. abstract="false" native="false" synchronized="false"
  65909. static="false" final="false" visibility="public"
  65910. deprecated="not deprecated">
  65911. <doc>
  65912. <![CDATA[Get the value class for the map output data. If it is not set, use the
  65913. (final) output value class This allows the map output value class to be
  65914. different than the final output value class.
  65915. @return the map output value class.]]>
  65916. </doc>
  65917. </method>
  65918. <method name="getJobName" return="java.lang.String"
  65919. abstract="false" native="false" synchronized="false"
  65920. static="false" final="false" visibility="public"
  65921. deprecated="not deprecated">
  65922. <doc>
  65923. <![CDATA[Get the user-specified job name. This is only used to identify the
  65924. job to the user.
  65925. @return the job's name, defaulting to "".]]>
  65926. </doc>
  65927. </method>
  65928. <method name="getInputFormatClass" return="java.lang.Class"
  65929. abstract="false" native="false" synchronized="false"
  65930. static="false" final="false" visibility="public"
  65931. deprecated="not deprecated">
  65932. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65933. <doc>
  65934. <![CDATA[Get the {@link InputFormat} class for the job.
  65935. @return the {@link InputFormat} class for the job.]]>
  65936. </doc>
  65937. </method>
  65938. <method name="getMapperClass" return="java.lang.Class"
  65939. abstract="false" native="false" synchronized="false"
  65940. static="false" final="false" visibility="public"
  65941. deprecated="not deprecated">
  65942. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65943. <doc>
  65944. <![CDATA[Get the {@link Mapper} class for the job.
  65945. @return the {@link Mapper} class for the job.]]>
  65946. </doc>
  65947. </method>
  65948. <method name="getCombinerClass" return="java.lang.Class"
  65949. abstract="false" native="false" synchronized="false"
  65950. static="false" final="false" visibility="public"
  65951. deprecated="not deprecated">
  65952. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65953. <doc>
  65954. <![CDATA[Get the combiner class for the job.
  65955. @return the combiner class for the job.]]>
  65956. </doc>
  65957. </method>
  65958. <method name="getReducerClass" return="java.lang.Class"
  65959. abstract="false" native="false" synchronized="false"
  65960. static="false" final="false" visibility="public"
  65961. deprecated="not deprecated">
  65962. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65963. <doc>
  65964. <![CDATA[Get the {@link Reducer} class for the job.
  65965. @return the {@link Reducer} class for the job.]]>
  65966. </doc>
  65967. </method>
  65968. <method name="getOutputFormatClass" return="java.lang.Class"
  65969. abstract="false" native="false" synchronized="false"
  65970. static="false" final="false" visibility="public"
  65971. deprecated="not deprecated">
  65972. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65973. <doc>
  65974. <![CDATA[Get the {@link OutputFormat} class for the job.
  65975. @return the {@link OutputFormat} class for the job.]]>
  65976. </doc>
  65977. </method>
  65978. <method name="getPartitionerClass" return="java.lang.Class"
  65979. abstract="false" native="false" synchronized="false"
  65980. static="false" final="false" visibility="public"
  65981. deprecated="not deprecated">
  65982. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65983. <doc>
  65984. <![CDATA[Get the {@link Partitioner} class for the job.
  65985. @return the {@link Partitioner} class for the job.]]>
  65986. </doc>
  65987. </method>
  65988. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  65989. abstract="false" native="false" synchronized="false"
  65990. static="false" final="false" visibility="public"
  65991. deprecated="not deprecated">
  65992. <doc>
  65993. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  65994. @return the {@link RawComparator} comparator used to compare keys.]]>
  65995. </doc>
  65996. </method>
  65997. <method name="getJar" return="java.lang.String"
  65998. abstract="false" native="false" synchronized="false"
  65999. static="false" final="false" visibility="public"
  66000. deprecated="not deprecated">
  66001. <doc>
  66002. <![CDATA[Get the pathname of the job's jar.
  66003. @return the pathname]]>
  66004. </doc>
  66005. </method>
  66006. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  66007. abstract="false" native="false" synchronized="false"
  66008. static="false" final="false" visibility="public"
  66009. deprecated="not deprecated">
  66010. <doc>
  66011. <![CDATA[Get the user defined {@link RawComparator} comparator for
  66012. grouping keys of inputs to the reduce.
  66013. @return comparator set by the user for grouping values.
  66014. @see Job#setGroupingComparatorClass(Class) for details.]]>
  66015. </doc>
  66016. </method>
  66017. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  66018. transient="false" volatile="false"
  66019. static="true" final="true" visibility="protected"
  66020. deprecated="not deprecated">
  66021. </field>
  66022. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  66023. transient="false" volatile="false"
  66024. static="true" final="true" visibility="protected"
  66025. deprecated="not deprecated">
  66026. </field>
  66027. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  66028. transient="false" volatile="false"
  66029. static="true" final="true" visibility="protected"
  66030. deprecated="not deprecated">
  66031. </field>
  66032. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  66033. transient="false" volatile="false"
  66034. static="true" final="true" visibility="protected"
  66035. deprecated="not deprecated">
  66036. </field>
  66037. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  66038. transient="false" volatile="false"
  66039. static="true" final="true" visibility="protected"
  66040. deprecated="not deprecated">
  66041. </field>
  66042. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  66043. transient="false" volatile="false"
  66044. static="true" final="true" visibility="protected"
  66045. deprecated="not deprecated">
  66046. </field>
  66047. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  66048. transient="false" volatile="false"
  66049. static="false" final="true" visibility="protected"
  66050. deprecated="not deprecated">
  66051. </field>
  66052. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  66053. transient="false" volatile="false"
  66054. static="false" final="true" visibility="protected"
  66055. deprecated="not deprecated">
  66056. </field>
  66057. <field name="JOB_NAMENODES" type="java.lang.String"
  66058. transient="false" volatile="false"
  66059. static="true" final="true" visibility="public"
  66060. deprecated="not deprecated">
  66061. </field>
  66062. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  66063. transient="false" volatile="false"
  66064. static="true" final="true" visibility="public"
  66065. deprecated="not deprecated">
  66066. </field>
  66067. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  66068. transient="false" volatile="false"
  66069. static="true" final="true" visibility="public"
  66070. deprecated="not deprecated">
  66071. </field>
  66072. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  66073. transient="false" volatile="false"
  66074. static="true" final="true" visibility="public"
  66075. deprecated="not deprecated">
  66076. </field>
  66077. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  66078. transient="false" volatile="false"
  66079. static="true" final="true" visibility="public"
  66080. deprecated="not deprecated">
  66081. </field>
  66082. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  66083. transient="false" volatile="false"
  66084. static="true" final="true" visibility="public"
  66085. deprecated="not deprecated">
  66086. </field>
  66087. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  66088. transient="false" volatile="false"
  66089. static="true" final="true" visibility="public"
  66090. deprecated="not deprecated">
  66091. </field>
  66092. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  66093. transient="false" volatile="false"
  66094. static="false" final="false" visibility="protected"
  66095. deprecated="not deprecated">
  66096. <doc>
  66097. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  66098. </doc>
  66099. </field>
  66100. <doc>
  66101. <![CDATA[A read-only view of the job that is provided to the tasks while they
  66102. are running.]]>
  66103. </doc>
  66104. </class>
  66105. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  66106. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  66107. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  66108. abstract="false"
  66109. static="false" final="false" visibility="public"
  66110. deprecated="not deprecated">
  66111. <implements name="java.lang.Comparable"/>
  66112. <constructor name="JobID" type="java.lang.String, int"
  66113. static="false" final="false" visibility="public"
  66114. deprecated="not deprecated">
  66115. <doc>
  66116. <![CDATA[Constructs a JobID object
  66117. @param jtIdentifier jobTracker identifier
  66118. @param id job number]]>
  66119. </doc>
  66120. </constructor>
  66121. <constructor name="JobID"
  66122. static="false" final="false" visibility="public"
  66123. deprecated="not deprecated">
  66124. </constructor>
  66125. <method name="getJtIdentifier" return="java.lang.String"
  66126. abstract="false" native="false" synchronized="false"
  66127. static="false" final="false" visibility="public"
  66128. deprecated="not deprecated">
  66129. </method>
  66130. <method name="equals" return="boolean"
  66131. abstract="false" native="false" synchronized="false"
  66132. static="false" final="false" visibility="public"
  66133. deprecated="not deprecated">
  66134. <param name="o" type="java.lang.Object"/>
  66135. </method>
  66136. <method name="compareTo" return="int"
  66137. abstract="false" native="false" synchronized="false"
  66138. static="false" final="false" visibility="public"
  66139. deprecated="not deprecated">
  66140. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  66141. <doc>
  66142. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  66143. </doc>
  66144. </method>
  66145. <method name="appendTo" return="java.lang.StringBuilder"
  66146. abstract="false" native="false" synchronized="false"
  66147. static="false" final="false" visibility="public"
  66148. deprecated="not deprecated">
  66149. <param name="builder" type="java.lang.StringBuilder"/>
  66150. <doc>
  66151. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  66152. because the sub-ids use this substring at the start of their string.
  66153. @param builder the builder to append to
  66154. @return the builder that was passed in]]>
  66155. </doc>
  66156. </method>
  66157. <method name="hashCode" return="int"
  66158. abstract="false" native="false" synchronized="false"
  66159. static="false" final="false" visibility="public"
  66160. deprecated="not deprecated">
  66161. </method>
  66162. <method name="toString" return="java.lang.String"
  66163. abstract="false" native="false" synchronized="false"
  66164. static="false" final="false" visibility="public"
  66165. deprecated="not deprecated">
  66166. </method>
  66167. <method name="readFields"
  66168. abstract="false" native="false" synchronized="false"
  66169. static="false" final="false" visibility="public"
  66170. deprecated="not deprecated">
  66171. <param name="in" type="java.io.DataInput"/>
  66172. <exception name="IOException" type="java.io.IOException"/>
  66173. </method>
  66174. <method name="write"
  66175. abstract="false" native="false" synchronized="false"
  66176. static="false" final="false" visibility="public"
  66177. deprecated="not deprecated">
  66178. <param name="out" type="java.io.DataOutput"/>
  66179. <exception name="IOException" type="java.io.IOException"/>
  66180. </method>
  66181. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  66182. abstract="false" native="false" synchronized="false"
  66183. static="true" final="false" visibility="public"
  66184. deprecated="not deprecated">
  66185. <param name="str" type="java.lang.String"/>
  66186. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  66187. <doc>
  66188. <![CDATA[Construct a JobId object from given string
  66189. @return constructed JobId object or null if the given String is null
  66190. @throws IllegalArgumentException if the given string is malformed]]>
  66191. </doc>
  66192. </method>
  66193. <field name="JOB" type="java.lang.String"
  66194. transient="false" volatile="false"
  66195. static="true" final="true" visibility="protected"
  66196. deprecated="not deprecated">
  66197. </field>
  66198. <field name="JOBID_REGEX" type="java.lang.String"
  66199. transient="false" volatile="false"
  66200. static="true" final="true" visibility="public"
  66201. deprecated="not deprecated">
  66202. </field>
  66203. <field name="idFormat" type="java.text.NumberFormat"
  66204. transient="false" volatile="false"
  66205. static="true" final="true" visibility="protected"
  66206. deprecated="not deprecated">
  66207. </field>
  66208. <doc>
  66209. <![CDATA[JobID represents the immutable and unique identifier for
  66210. the job. JobID consists of two parts. First part
  66211. represents the jobtracker identifier, so that jobID to jobtracker map
  66212. is defined. For cluster setup this string is the jobtracker
  66213. start time, for local setting, it is "local".
  66214. Second part of the JobID is the job number. <br>
  66215. An example JobID is :
  66216. <code>job_200707121733_0003</code> , which represents the third job
  66217. running at the jobtracker started at <code>200707121733</code>.
  66218. <p>
  66219. Applications should never construct or parse JobID strings, but rather
  66220. use appropriate constructors or {@link #forName(String)} method.
  66221. @see TaskID
  66222. @see TaskAttemptID
  66223. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  66224. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  66225. </doc>
  66226. </class>
  66227. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  66228. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  66229. <class name="JobStatus" extends="java.lang.Object"
  66230. abstract="false"
  66231. static="false" final="false" visibility="public"
  66232. deprecated="not deprecated">
  66233. <constructor name="JobStatus"
  66234. static="false" final="false" visibility="public"
  66235. deprecated="not deprecated">
  66236. </constructor>
  66237. <doc>
  66238. <![CDATA[Describes the current status of a job.]]>
  66239. </doc>
  66240. </class>
  66241. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  66242. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  66243. <class name="JobStatus.State" extends="java.lang.Enum"
  66244. abstract="false"
  66245. static="true" final="true" visibility="public"
  66246. deprecated="not deprecated">
  66247. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  66248. abstract="false" native="false" synchronized="false"
  66249. static="true" final="false" visibility="public"
  66250. deprecated="not deprecated">
  66251. </method>
  66252. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  66253. abstract="false" native="false" synchronized="false"
  66254. static="true" final="false" visibility="public"
  66255. deprecated="not deprecated">
  66256. <param name="name" type="java.lang.String"/>
  66257. </method>
  66258. <method name="getValue" return="int"
  66259. abstract="false" native="false" synchronized="false"
  66260. static="false" final="false" visibility="public"
  66261. deprecated="not deprecated">
  66262. </method>
  66263. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  66264. transient="false" volatile="false"
  66265. static="true" final="true" visibility="public"
  66266. deprecated="not deprecated">
  66267. </field>
  66268. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  66269. transient="false" volatile="false"
  66270. static="true" final="true" visibility="public"
  66271. deprecated="not deprecated">
  66272. </field>
  66273. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  66274. transient="false" volatile="false"
  66275. static="true" final="true" visibility="public"
  66276. deprecated="not deprecated">
  66277. </field>
  66278. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  66279. transient="false" volatile="false"
  66280. static="true" final="true" visibility="public"
  66281. deprecated="not deprecated">
  66282. </field>
  66283. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  66284. transient="false" volatile="false"
  66285. static="true" final="true" visibility="public"
  66286. deprecated="not deprecated">
  66287. </field>
  66288. <doc>
  66289. <![CDATA[Current state of the job]]>
  66290. </doc>
  66291. </class>
  66292. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  66293. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  66294. <class name="JobSubmissionFiles" extends="java.lang.Object"
  66295. abstract="false"
  66296. static="false" final="false" visibility="public"
  66297. deprecated="not deprecated">
  66298. <constructor name="JobSubmissionFiles"
  66299. static="false" final="false" visibility="public"
  66300. deprecated="not deprecated">
  66301. </constructor>
  66302. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  66303. abstract="false" native="false" synchronized="false"
  66304. static="true" final="false" visibility="public"
  66305. deprecated="not deprecated">
  66306. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  66307. </method>
  66308. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  66309. abstract="false" native="false" synchronized="false"
  66310. static="true" final="false" visibility="public"
  66311. deprecated="not deprecated">
  66312. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  66313. </method>
  66314. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  66315. abstract="false" native="false" synchronized="false"
  66316. static="true" final="false" visibility="public"
  66317. deprecated="not deprecated">
  66318. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  66319. <doc>
  66320. <![CDATA[Get the job conf path.]]>
  66321. </doc>
  66322. </method>
  66323. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  66324. abstract="false" native="false" synchronized="false"
  66325. static="true" final="false" visibility="public"
  66326. deprecated="not deprecated">
  66327. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  66328. <doc>
  66329. <![CDATA[Get the job jar path.]]>
  66330. </doc>
  66331. </method>
  66332. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  66333. abstract="false" native="false" synchronized="false"
  66334. static="true" final="false" visibility="public"
  66335. deprecated="not deprecated">
  66336. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  66337. <doc>
  66338. <![CDATA[Get the job distributed cache files path.
  66339. @param jobSubmitDir]]>
  66340. </doc>
  66341. </method>
  66342. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  66343. abstract="false" native="false" synchronized="false"
  66344. static="true" final="false" visibility="public"
  66345. deprecated="not deprecated">
  66346. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  66347. <doc>
  66348. <![CDATA[Get the job distributed cache archives path.
  66349. @param jobSubmitDir]]>
  66350. </doc>
  66351. </method>
  66352. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  66353. abstract="false" native="false" synchronized="false"
  66354. static="true" final="false" visibility="public"
  66355. deprecated="not deprecated">
  66356. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  66357. <doc>
  66358. <![CDATA[Get the job distributed cache libjars path.
  66359. @param jobSubmitDir]]>
  66360. </doc>
  66361. </method>
  66362. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  66363. abstract="false" native="false" synchronized="false"
  66364. static="true" final="false" visibility="public"
  66365. deprecated="not deprecated">
  66366. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  66367. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  66368. <exception name="IOException" type="java.io.IOException"/>
  66369. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66370. <doc>
  66371. <![CDATA[Initializes the staging directory and returns the path. It also
  66372. keeps track of all necessary ownership & permissions
  66373. @param client
  66374. @param conf]]>
  66375. </doc>
  66376. </method>
  66377. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  66378. transient="false" volatile="false"
  66379. static="true" final="true" visibility="public"
  66380. deprecated="not deprecated">
  66381. </field>
  66382. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  66383. transient="false" volatile="false"
  66384. static="true" final="true" visibility="public"
  66385. deprecated="not deprecated">
  66386. </field>
  66387. <doc>
  66388. <![CDATA[A utility to manage job submission files.<br/>
  66389. <b><i>Note that this class is for framework internal usage only and is
  66390. not to be used by users directly.</i></b>]]>
  66391. </doc>
  66392. </class>
  66393. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  66394. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  66395. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  66396. abstract="false"
  66397. static="false" final="false" visibility="public"
  66398. deprecated="not deprecated">
  66399. <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"
  66400. static="false" final="false" visibility="public"
  66401. deprecated="not deprecated">
  66402. </constructor>
  66403. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  66404. abstract="false" native="false" synchronized="false"
  66405. static="false" final="false" visibility="public"
  66406. deprecated="not deprecated">
  66407. <doc>
  66408. <![CDATA[Get the input split for this map.]]>
  66409. </doc>
  66410. </method>
  66411. <method name="getCurrentKey" return="java.lang.Object"
  66412. abstract="false" native="false" synchronized="false"
  66413. static="false" final="false" visibility="public"
  66414. deprecated="not deprecated">
  66415. <exception name="IOException" type="java.io.IOException"/>
  66416. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66417. </method>
  66418. <method name="getCurrentValue" return="java.lang.Object"
  66419. abstract="false" native="false" synchronized="false"
  66420. static="false" final="false" visibility="public"
  66421. deprecated="not deprecated">
  66422. <exception name="IOException" type="java.io.IOException"/>
  66423. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66424. </method>
  66425. <method name="nextKeyValue" return="boolean"
  66426. abstract="false" native="false" synchronized="false"
  66427. static="false" final="false" visibility="public"
  66428. deprecated="not deprecated">
  66429. <exception name="IOException" type="java.io.IOException"/>
  66430. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66431. </method>
  66432. <doc>
  66433. <![CDATA[The context that is given to the {@link Mapper}.
  66434. @param <KEYIN> the key input type to the Mapper
  66435. @param <VALUEIN> the value input type to the Mapper
  66436. @param <KEYOUT> the key output type from the Mapper
  66437. @param <VALUEOUT> the value output type from the Mapper]]>
  66438. </doc>
  66439. </class>
  66440. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  66441. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  66442. <class name="Mapper" extends="java.lang.Object"
  66443. abstract="false"
  66444. static="false" final="false" visibility="public"
  66445. deprecated="not deprecated">
  66446. <constructor name="Mapper"
  66447. static="false" final="false" visibility="public"
  66448. deprecated="not deprecated">
  66449. </constructor>
  66450. <method name="setup"
  66451. abstract="false" native="false" synchronized="false"
  66452. static="false" final="false" visibility="protected"
  66453. deprecated="not deprecated">
  66454. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  66455. <exception name="IOException" type="java.io.IOException"/>
  66456. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66457. <doc>
  66458. <![CDATA[Called once at the beginning of the task.]]>
  66459. </doc>
  66460. </method>
  66461. <method name="map"
  66462. abstract="false" native="false" synchronized="false"
  66463. static="false" final="false" visibility="protected"
  66464. deprecated="not deprecated">
  66465. <param name="key" type="java.lang.Object"/>
  66466. <param name="value" type="java.lang.Object"/>
  66467. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  66468. <exception name="IOException" type="java.io.IOException"/>
  66469. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66470. <doc>
  66471. <![CDATA[Called once for each key/value pair in the input split. Most applications
  66472. should override this, but the default is the identity function.]]>
  66473. </doc>
  66474. </method>
  66475. <method name="cleanup"
  66476. abstract="false" native="false" synchronized="false"
  66477. static="false" final="false" visibility="protected"
  66478. deprecated="not deprecated">
  66479. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  66480. <exception name="IOException" type="java.io.IOException"/>
  66481. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66482. <doc>
  66483. <![CDATA[Called once at the end of the task.]]>
  66484. </doc>
  66485. </method>
  66486. <method name="run"
  66487. abstract="false" native="false" synchronized="false"
  66488. static="false" final="false" visibility="public"
  66489. deprecated="not deprecated">
  66490. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  66491. <exception name="IOException" type="java.io.IOException"/>
  66492. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66493. <doc>
  66494. <![CDATA[Expert users can override this method for more complete control over the
  66495. execution of the Mapper.
  66496. @param context
  66497. @throws IOException]]>
  66498. </doc>
  66499. </method>
  66500. <doc>
  66501. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  66502. <p>Maps are the individual tasks which transform input records into a
  66503. intermediate records. The transformed intermediate records need not be of
  66504. the same type as the input records. A given input pair may map to zero or
  66505. many output pairs.</p>
  66506. <p>The Hadoop Map-Reduce framework spawns one map task for each
  66507. {@link InputSplit} generated by the {@link InputFormat} for the job.
  66508. <code>Mapper</code> implementations can access the {@link Configuration} for
  66509. the job via the {@link JobContext#getConfiguration()}.
  66510. <p>The framework first calls
  66511. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  66512. {@link #map(Object, Object, Context)}
  66513. for each key/value pair in the <code>InputSplit</code>. Finally
  66514. {@link #cleanup(Context)} is called.</p>
  66515. <p>All intermediate values associated with a given output key are
  66516. subsequently grouped by the framework, and passed to a {@link Reducer} to
  66517. determine the final output. Users can control the sorting and grouping by
  66518. specifying two key {@link RawComparator} classes.</p>
  66519. <p>The <code>Mapper</code> outputs are partitioned per
  66520. <code>Reducer</code>. Users can control which keys (and hence records) go to
  66521. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  66522. <p>Users can optionally specify a <code>combiner</code>, via
  66523. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  66524. intermediate outputs, which helps to cut down the amount of data transferred
  66525. from the <code>Mapper</code> to the <code>Reducer</code>.
  66526. <p>Applications can specify if and how the intermediate
  66527. outputs are to be compressed and which {@link CompressionCodec}s are to be
  66528. used via the <code>Configuration</code>.</p>
  66529. <p>If the job has zero
  66530. reduces then the output of the <code>Mapper</code> is directly written
  66531. to the {@link OutputFormat} without sorting by keys.</p>
  66532. <p>Example:</p>
  66533. <p><blockquote><pre>
  66534. public class TokenCounterMapper
  66535. extends Mapper<Object, Text, Text, IntWritable>{
  66536. private final static IntWritable one = new IntWritable(1);
  66537. private Text word = new Text();
  66538. public void map(Object key, Text value, Context context) throws IOException {
  66539. StringTokenizer itr = new StringTokenizer(value.toString());
  66540. while (itr.hasMoreTokens()) {
  66541. word.set(itr.nextToken());
  66542. context.collect(word, one);
  66543. }
  66544. }
  66545. }
  66546. </pre></blockquote></p>
  66547. <p>Applications may override the {@link #run(Context)} method to exert
  66548. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  66549. etc.</p>
  66550. @see InputFormat
  66551. @see JobContext
  66552. @see Partitioner
  66553. @see Reducer]]>
  66554. </doc>
  66555. </class>
  66556. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  66557. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  66558. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  66559. abstract="false"
  66560. static="false" final="false" visibility="public"
  66561. deprecated="not deprecated">
  66562. <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"
  66563. static="false" final="false" visibility="public"
  66564. deprecated="not deprecated">
  66565. <exception name="IOException" type="java.io.IOException"/>
  66566. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66567. </constructor>
  66568. </class>
  66569. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  66570. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  66571. <class name="OutputCommitter" extends="java.lang.Object"
  66572. abstract="true"
  66573. static="false" final="false" visibility="public"
  66574. deprecated="not deprecated">
  66575. <constructor name="OutputCommitter"
  66576. static="false" final="false" visibility="public"
  66577. deprecated="not deprecated">
  66578. </constructor>
  66579. <method name="setupJob"
  66580. abstract="true" native="false" synchronized="false"
  66581. static="false" final="false" visibility="public"
  66582. deprecated="not deprecated">
  66583. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  66584. <exception name="IOException" type="java.io.IOException"/>
  66585. <doc>
  66586. <![CDATA[For the framework to setup the job output during initialization
  66587. @param jobContext Context of the job whose output is being written.
  66588. @throws IOException if temporary output could not be created]]>
  66589. </doc>
  66590. </method>
  66591. <method name="commitJob"
  66592. abstract="false" native="false" synchronized="false"
  66593. static="false" final="false" visibility="public"
  66594. deprecated="not deprecated">
  66595. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  66596. <exception name="IOException" type="java.io.IOException"/>
  66597. <doc>
  66598. <![CDATA[For cleaning up the job's output after job completion. Note that this
  66599. is invoked for jobs with final run state as
  66600. {@link JobStatus.State#SUCCEEDED}
  66601. @param jobContext Context of the job whose output is being written.
  66602. @throws IOException]]>
  66603. </doc>
  66604. </method>
  66605. <method name="cleanupJob"
  66606. abstract="false" native="false" synchronized="false"
  66607. static="false" final="false" visibility="public"
  66608. deprecated="use {@link #commitJob(JobContext)} or
  66609. {@link #abortJob(JobContext, JobStatus.State)} instead">
  66610. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66611. <exception name="IOException" type="java.io.IOException"/>
  66612. <doc>
  66613. <![CDATA[For cleaning up the job's output after job completion
  66614. @deprecated use {@link #commitJob(JobContext)} or
  66615. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  66616. </doc>
  66617. </method>
  66618. <method name="abortJob"
  66619. abstract="false" native="false" synchronized="false"
  66620. static="false" final="false" visibility="public"
  66621. deprecated="not deprecated">
  66622. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  66623. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  66624. <exception name="IOException" type="java.io.IOException"/>
  66625. <doc>
  66626. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  66627. jobs with final run state as {@link JobStatus.State#FAILED} or
  66628. {@link JobStatus.State#KILLED}.
  66629. @param jobContext Context of the job whose output is being written.
  66630. @param state final run state of the job, should be either
  66631. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  66632. @throws IOException]]>
  66633. </doc>
  66634. </method>
  66635. <method name="setupTask"
  66636. abstract="true" native="false" synchronized="false"
  66637. static="false" final="false" visibility="public"
  66638. deprecated="not deprecated">
  66639. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66640. <exception name="IOException" type="java.io.IOException"/>
  66641. <doc>
  66642. <![CDATA[Sets up output for the task.
  66643. @param taskContext Context of the task whose output is being written.
  66644. @throws IOException]]>
  66645. </doc>
  66646. </method>
  66647. <method name="needsTaskCommit" return="boolean"
  66648. abstract="true" native="false" synchronized="false"
  66649. static="false" final="false" visibility="public"
  66650. deprecated="not deprecated">
  66651. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66652. <exception name="IOException" type="java.io.IOException"/>
  66653. <doc>
  66654. <![CDATA[Check whether task needs a commit
  66655. @param taskContext
  66656. @return true/false
  66657. @throws IOException]]>
  66658. </doc>
  66659. </method>
  66660. <method name="commitTask"
  66661. abstract="true" native="false" synchronized="false"
  66662. static="false" final="false" visibility="public"
  66663. deprecated="not deprecated">
  66664. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66665. <exception name="IOException" type="java.io.IOException"/>
  66666. <doc>
  66667. <![CDATA[To promote the task's temporary output to final output location
  66668. The task's output is moved to the job's output directory.
  66669. @param taskContext Context of the task whose output is being written.
  66670. @throws IOException if commit is not]]>
  66671. </doc>
  66672. </method>
  66673. <method name="abortTask"
  66674. abstract="true" native="false" synchronized="false"
  66675. static="false" final="false" visibility="public"
  66676. deprecated="not deprecated">
  66677. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66678. <exception name="IOException" type="java.io.IOException"/>
  66679. <doc>
  66680. <![CDATA[Discard the task output
  66681. @param taskContext
  66682. @throws IOException]]>
  66683. </doc>
  66684. </method>
  66685. <doc>
  66686. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  66687. Map-Reduce job.
  66688. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  66689. the job to:<p>
  66690. <ol>
  66691. <li>
  66692. Setup the job during initialization. For example, create the temporary
  66693. output directory for the job during the initialization of the job.
  66694. </li>
  66695. <li>
  66696. Cleanup the job after the job completion. For example, remove the
  66697. temporary output directory after the job completion.
  66698. </li>
  66699. <li>
  66700. Setup the task temporary output.
  66701. </li>
  66702. <li>
  66703. Check whether a task needs a commit. This is to avoid the commit
  66704. procedure if a task does not need commit.
  66705. </li>
  66706. <li>
  66707. Commit of the task output.
  66708. </li>
  66709. <li>
  66710. Discard the task commit.
  66711. </li>
  66712. </ol>
  66713. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  66714. @see JobContext
  66715. @see TaskAttemptContext]]>
  66716. </doc>
  66717. </class>
  66718. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  66719. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  66720. <class name="OutputFormat" extends="java.lang.Object"
  66721. abstract="true"
  66722. static="false" final="false" visibility="public"
  66723. deprecated="not deprecated">
  66724. <constructor name="OutputFormat"
  66725. static="false" final="false" visibility="public"
  66726. deprecated="not deprecated">
  66727. </constructor>
  66728. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  66729. abstract="true" native="false" synchronized="false"
  66730. static="false" final="false" visibility="public"
  66731. deprecated="not deprecated">
  66732. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66733. <exception name="IOException" type="java.io.IOException"/>
  66734. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66735. <doc>
  66736. <![CDATA[Get the {@link RecordWriter} for the given task.
  66737. @param context the information about the current task.
  66738. @return a {@link RecordWriter} to write the output for the job.
  66739. @throws IOException]]>
  66740. </doc>
  66741. </method>
  66742. <method name="checkOutputSpecs"
  66743. abstract="true" native="false" synchronized="false"
  66744. static="false" final="false" visibility="public"
  66745. deprecated="not deprecated">
  66746. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66747. <exception name="IOException" type="java.io.IOException"/>
  66748. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66749. <doc>
  66750. <![CDATA[Check for validity of the output-specification for the job.
  66751. <p>This is to validate the output specification for the job when it is
  66752. a job is submitted. Typically checks that it does not already exist,
  66753. throwing an exception when it already exists, so that output is not
  66754. overwritten.</p>
  66755. @param context information about the job
  66756. @throws IOException when output should not be attempted]]>
  66757. </doc>
  66758. </method>
  66759. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  66760. abstract="true" native="false" synchronized="false"
  66761. static="false" final="false" visibility="public"
  66762. deprecated="not deprecated">
  66763. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66764. <exception name="IOException" type="java.io.IOException"/>
  66765. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66766. <doc>
  66767. <![CDATA[Get the output committer for this output format. This is responsible
  66768. for ensuring the output is committed correctly.
  66769. @param context the task context
  66770. @return an output committer
  66771. @throws IOException
  66772. @throws InterruptedException]]>
  66773. </doc>
  66774. </method>
  66775. <doc>
  66776. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  66777. Map-Reduce job.
  66778. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  66779. job to:<p>
  66780. <ol>
  66781. <li>
  66782. Validate the output-specification of the job. For e.g. check that the
  66783. output directory doesn't already exist.
  66784. <li>
  66785. Provide the {@link RecordWriter} implementation to be used to write out
  66786. the output files of the job. Output files are stored in a
  66787. {@link FileSystem}.
  66788. </li>
  66789. </ol>
  66790. @see RecordWriter]]>
  66791. </doc>
  66792. </class>
  66793. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  66794. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  66795. <class name="Partitioner" extends="java.lang.Object"
  66796. abstract="true"
  66797. static="false" final="false" visibility="public"
  66798. deprecated="not deprecated">
  66799. <constructor name="Partitioner"
  66800. static="false" final="false" visibility="public"
  66801. deprecated="not deprecated">
  66802. </constructor>
  66803. <method name="getPartition" return="int"
  66804. abstract="true" native="false" synchronized="false"
  66805. static="false" final="false" visibility="public"
  66806. deprecated="not deprecated">
  66807. <param name="key" type="java.lang.Object"/>
  66808. <param name="value" type="java.lang.Object"/>
  66809. <param name="numPartitions" type="int"/>
  66810. <doc>
  66811. <![CDATA[Get the partition number for a given key (hence record) given the total
  66812. number of partitions i.e. number of reduce-tasks for the job.
  66813. <p>Typically a hash function on a all or a subset of the key.</p>
  66814. @param key the key to be partioned.
  66815. @param value the entry value.
  66816. @param numPartitions the total number of partitions.
  66817. @return the partition number for the <code>key</code>.]]>
  66818. </doc>
  66819. </method>
  66820. <doc>
  66821. <![CDATA[Partitions the key space.
  66822. <p><code>Partitioner</code> controls the partitioning of the keys of the
  66823. intermediate map-outputs. The key (or a subset of the key) is used to derive
  66824. the partition, typically by a hash function. The total number of partitions
  66825. is the same as the number of reduce tasks for the job. Hence this controls
  66826. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  66827. record) is sent for reduction.</p>
  66828. @see Reducer]]>
  66829. </doc>
  66830. </class>
  66831. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  66832. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  66833. <class name="RecordReader" extends="java.lang.Object"
  66834. abstract="true"
  66835. static="false" final="false" visibility="public"
  66836. deprecated="not deprecated">
  66837. <implements name="java.io.Closeable"/>
  66838. <constructor name="RecordReader"
  66839. static="false" final="false" visibility="public"
  66840. deprecated="not deprecated">
  66841. </constructor>
  66842. <method name="initialize"
  66843. abstract="true" native="false" synchronized="false"
  66844. static="false" final="false" visibility="public"
  66845. deprecated="not deprecated">
  66846. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  66847. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66848. <exception name="IOException" type="java.io.IOException"/>
  66849. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66850. <doc>
  66851. <![CDATA[Called once at initialization.
  66852. @param split the split that defines the range of records to read
  66853. @param context the information about the task
  66854. @throws IOException
  66855. @throws InterruptedException]]>
  66856. </doc>
  66857. </method>
  66858. <method name="nextKeyValue" return="boolean"
  66859. abstract="true" native="false" synchronized="false"
  66860. static="false" final="false" visibility="public"
  66861. deprecated="not deprecated">
  66862. <exception name="IOException" type="java.io.IOException"/>
  66863. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66864. <doc>
  66865. <![CDATA[Read the next key, value pair.
  66866. @return true if a key/value pair was read
  66867. @throws IOException
  66868. @throws InterruptedException]]>
  66869. </doc>
  66870. </method>
  66871. <method name="getCurrentKey" return="java.lang.Object"
  66872. abstract="true" native="false" synchronized="false"
  66873. static="false" final="false" visibility="public"
  66874. deprecated="not deprecated">
  66875. <exception name="IOException" type="java.io.IOException"/>
  66876. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66877. <doc>
  66878. <![CDATA[Get the current key
  66879. @return the current key or null if there is no current key
  66880. @throws IOException
  66881. @throws InterruptedException]]>
  66882. </doc>
  66883. </method>
  66884. <method name="getCurrentValue" return="java.lang.Object"
  66885. abstract="true" native="false" synchronized="false"
  66886. static="false" final="false" visibility="public"
  66887. deprecated="not deprecated">
  66888. <exception name="IOException" type="java.io.IOException"/>
  66889. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66890. <doc>
  66891. <![CDATA[Get the current value.
  66892. @return the object that was read
  66893. @throws IOException
  66894. @throws InterruptedException]]>
  66895. </doc>
  66896. </method>
  66897. <method name="getProgress" return="float"
  66898. abstract="true" native="false" synchronized="false"
  66899. static="false" final="false" visibility="public"
  66900. deprecated="not deprecated">
  66901. <exception name="IOException" type="java.io.IOException"/>
  66902. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66903. <doc>
  66904. <![CDATA[The current progress of the record reader through its data.
  66905. @return a number between 0.0 and 1.0 that is the fraction of the data read
  66906. @throws IOException
  66907. @throws InterruptedException]]>
  66908. </doc>
  66909. </method>
  66910. <method name="close"
  66911. abstract="true" native="false" synchronized="false"
  66912. static="false" final="false" visibility="public"
  66913. deprecated="not deprecated">
  66914. <exception name="IOException" type="java.io.IOException"/>
  66915. <doc>
  66916. <![CDATA[Close the record reader.]]>
  66917. </doc>
  66918. </method>
  66919. <doc>
  66920. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  66921. {@link Mapper}.
  66922. @param <KEYIN>
  66923. @param <VALUEIN>]]>
  66924. </doc>
  66925. </class>
  66926. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  66927. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  66928. <class name="RecordWriter" extends="java.lang.Object"
  66929. abstract="true"
  66930. static="false" final="false" visibility="public"
  66931. deprecated="not deprecated">
  66932. <constructor name="RecordWriter"
  66933. static="false" final="false" visibility="public"
  66934. deprecated="not deprecated">
  66935. </constructor>
  66936. <method name="write"
  66937. abstract="true" native="false" synchronized="false"
  66938. static="false" final="false" visibility="public"
  66939. deprecated="not deprecated">
  66940. <param name="key" type="java.lang.Object"/>
  66941. <param name="value" type="java.lang.Object"/>
  66942. <exception name="IOException" type="java.io.IOException"/>
  66943. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66944. <doc>
  66945. <![CDATA[Writes a key/value pair.
  66946. @param key the key to write.
  66947. @param value the value to write.
  66948. @throws IOException]]>
  66949. </doc>
  66950. </method>
  66951. <method name="close"
  66952. abstract="true" native="false" synchronized="false"
  66953. static="false" final="false" visibility="public"
  66954. deprecated="not deprecated">
  66955. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66956. <exception name="IOException" type="java.io.IOException"/>
  66957. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66958. <doc>
  66959. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  66960. @param context the context of the task
  66961. @throws IOException]]>
  66962. </doc>
  66963. </method>
  66964. <doc>
  66965. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  66966. to an output file.
  66967. <p><code>RecordWriter</code> implementations write the job outputs to the
  66968. {@link FileSystem}.
  66969. @see OutputFormat]]>
  66970. </doc>
  66971. </class>
  66972. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  66973. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  66974. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  66975. abstract="false"
  66976. static="false" final="false" visibility="public"
  66977. deprecated="not deprecated">
  66978. <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"
  66979. static="false" final="false" visibility="public"
  66980. deprecated="not deprecated">
  66981. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66982. <exception name="IOException" type="java.io.IOException"/>
  66983. </constructor>
  66984. <method name="nextKey" return="boolean"
  66985. abstract="false" native="false" synchronized="false"
  66986. static="false" final="false" visibility="public"
  66987. deprecated="not deprecated">
  66988. <exception name="IOException" type="java.io.IOException"/>
  66989. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66990. <doc>
  66991. <![CDATA[Start processing next unique key.]]>
  66992. </doc>
  66993. </method>
  66994. <method name="nextKeyValue" return="boolean"
  66995. abstract="false" native="false" synchronized="false"
  66996. static="false" final="false" visibility="public"
  66997. deprecated="not deprecated">
  66998. <exception name="IOException" type="java.io.IOException"/>
  66999. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67000. <doc>
  67001. <![CDATA[Advance to the next key/value pair.]]>
  67002. </doc>
  67003. </method>
  67004. <method name="getCurrentKey" return="java.lang.Object"
  67005. abstract="false" native="false" synchronized="false"
  67006. static="false" final="false" visibility="public"
  67007. deprecated="not deprecated">
  67008. </method>
  67009. <method name="getCurrentValue" return="java.lang.Object"
  67010. abstract="false" native="false" synchronized="false"
  67011. static="false" final="false" visibility="public"
  67012. deprecated="not deprecated">
  67013. </method>
  67014. <method name="getValues" return="java.lang.Iterable"
  67015. abstract="false" native="false" synchronized="false"
  67016. static="false" final="false" visibility="public"
  67017. deprecated="not deprecated">
  67018. <exception name="IOException" type="java.io.IOException"/>
  67019. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67020. <doc>
  67021. <![CDATA[Iterate through the values for the current key, reusing the same value
  67022. object, which is stored in the context.
  67023. @return the series of values associated with the current key. All of the
  67024. objects returned directly and indirectly from this method are reused.]]>
  67025. </doc>
  67026. </method>
  67027. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  67028. transient="false" volatile="false"
  67029. static="false" final="false" visibility="protected"
  67030. deprecated="not deprecated">
  67031. </field>
  67032. <doc>
  67033. <![CDATA[The context passed to the {@link Reducer}.
  67034. @param <KEYIN> the class of the input keys
  67035. @param <VALUEIN> the class of the input values
  67036. @param <KEYOUT> the class of the output keys
  67037. @param <VALUEOUT> the class of the output values]]>
  67038. </doc>
  67039. </class>
  67040. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  67041. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  67042. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  67043. abstract="false"
  67044. static="false" final="false" visibility="protected"
  67045. deprecated="not deprecated">
  67046. <implements name="java.lang.Iterable"/>
  67047. <constructor name="ReduceContext.ValueIterable"
  67048. static="false" final="false" visibility="protected"
  67049. deprecated="not deprecated">
  67050. </constructor>
  67051. <method name="iterator" return="java.util.Iterator"
  67052. abstract="false" native="false" synchronized="false"
  67053. static="false" final="false" visibility="public"
  67054. deprecated="not deprecated">
  67055. </method>
  67056. </class>
  67057. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  67058. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  67059. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  67060. abstract="false"
  67061. static="false" final="false" visibility="protected"
  67062. deprecated="not deprecated">
  67063. <implements name="java.util.Iterator"/>
  67064. <constructor name="ReduceContext.ValueIterator"
  67065. static="false" final="false" visibility="protected"
  67066. deprecated="not deprecated">
  67067. </constructor>
  67068. <method name="hasNext" return="boolean"
  67069. abstract="false" native="false" synchronized="false"
  67070. static="false" final="false" visibility="public"
  67071. deprecated="not deprecated">
  67072. </method>
  67073. <method name="next" return="java.lang.Object"
  67074. abstract="false" native="false" synchronized="false"
  67075. static="false" final="false" visibility="public"
  67076. deprecated="not deprecated">
  67077. </method>
  67078. <method name="remove"
  67079. abstract="false" native="false" synchronized="false"
  67080. static="false" final="false" visibility="public"
  67081. deprecated="not deprecated">
  67082. </method>
  67083. </class>
  67084. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  67085. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  67086. <class name="Reducer" extends="java.lang.Object"
  67087. abstract="false"
  67088. static="false" final="false" visibility="public"
  67089. deprecated="not deprecated">
  67090. <constructor name="Reducer"
  67091. static="false" final="false" visibility="public"
  67092. deprecated="not deprecated">
  67093. </constructor>
  67094. <method name="setup"
  67095. abstract="false" native="false" synchronized="false"
  67096. static="false" final="false" visibility="protected"
  67097. deprecated="not deprecated">
  67098. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  67099. <exception name="IOException" type="java.io.IOException"/>
  67100. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67101. <doc>
  67102. <![CDATA[Called once at the start of the task.]]>
  67103. </doc>
  67104. </method>
  67105. <method name="reduce"
  67106. abstract="false" native="false" synchronized="false"
  67107. static="false" final="false" visibility="protected"
  67108. deprecated="not deprecated">
  67109. <param name="key" type="java.lang.Object"/>
  67110. <param name="values" type="java.lang.Iterable"/>
  67111. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  67112. <exception name="IOException" type="java.io.IOException"/>
  67113. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67114. <doc>
  67115. <![CDATA[This method is called once for each key. Most applications will define
  67116. their reduce class by overriding this method. The default implementation
  67117. is an identity function.]]>
  67118. </doc>
  67119. </method>
  67120. <method name="cleanup"
  67121. abstract="false" native="false" synchronized="false"
  67122. static="false" final="false" visibility="protected"
  67123. deprecated="not deprecated">
  67124. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  67125. <exception name="IOException" type="java.io.IOException"/>
  67126. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67127. <doc>
  67128. <![CDATA[Called once at the end of the task.]]>
  67129. </doc>
  67130. </method>
  67131. <method name="run"
  67132. abstract="false" native="false" synchronized="false"
  67133. static="false" final="false" visibility="public"
  67134. deprecated="not deprecated">
  67135. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  67136. <exception name="IOException" type="java.io.IOException"/>
  67137. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67138. <doc>
  67139. <![CDATA[Advanced application writers can use the
  67140. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  67141. control how the reduce task works.]]>
  67142. </doc>
  67143. </method>
  67144. <doc>
  67145. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  67146. values.
  67147. <p><code>Reducer</code> implementations
  67148. can access the {@link Configuration} for the job via the
  67149. {@link JobContext#getConfiguration()} method.</p>
  67150. <p><code>Reducer</code> has 3 primary phases:</p>
  67151. <ol>
  67152. <li>
  67153. <h4 id="Shuffle">Shuffle</h4>
  67154. <p>The <code>Reducer</code> copies the sorted output from each
  67155. {@link Mapper} using HTTP across the network.</p>
  67156. </li>
  67157. <li>
  67158. <h4 id="Sort">Sort</h4>
  67159. <p>The framework merge sorts <code>Reducer</code> inputs by
  67160. <code>key</code>s
  67161. (since different <code>Mapper</code>s may have output the same key).</p>
  67162. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  67163. being fetched they are merged.</p>
  67164. <h5 id="SecondarySort">SecondarySort</h5>
  67165. <p>To achieve a secondary sort on the values returned by the value
  67166. iterator, the application should extend the key with the secondary
  67167. key and define a grouping comparator. The keys will be sorted using the
  67168. entire key, but will be grouped using the grouping comparator to decide
  67169. which keys and values are sent in the same call to reduce.The grouping
  67170. comparator is specified via
  67171. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  67172. controlled by
  67173. {@link Job#setSortComparatorClass(Class)}.</p>
  67174. For example, say that you want to find duplicate web pages and tag them
  67175. all with the url of the "best" known example. You would set up the job
  67176. like:
  67177. <ul>
  67178. <li>Map Input Key: url</li>
  67179. <li>Map Input Value: document</li>
  67180. <li>Map Output Key: document checksum, url pagerank</li>
  67181. <li>Map Output Value: url</li>
  67182. <li>Partitioner: by checksum</li>
  67183. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  67184. <li>OutputValueGroupingComparator: by checksum</li>
  67185. </ul>
  67186. </li>
  67187. <li>
  67188. <h4 id="Reduce">Reduce</h4>
  67189. <p>In this phase the
  67190. {@link #reduce(Object, Iterable, Context)}
  67191. method is called for each <code>&lt;key, (collection of values)></code> in
  67192. the sorted inputs.</p>
  67193. <p>The output of the reduce task is typically written to a
  67194. {@link RecordWriter} via
  67195. {@link Context#write(Object, Object)}.</p>
  67196. </li>
  67197. </ol>
  67198. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  67199. <p>Example:</p>
  67200. <p><blockquote><pre>
  67201. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  67202. Key,IntWritable> {
  67203. private IntWritable result = new IntWritable();
  67204. public void reduce(Key key, Iterable<IntWritable> values,
  67205. Context context) throws IOException {
  67206. int sum = 0;
  67207. for (IntWritable val : values) {
  67208. sum += val.get();
  67209. }
  67210. result.set(sum);
  67211. context.collect(key, result);
  67212. }
  67213. }
  67214. </pre></blockquote></p>
  67215. @see Mapper
  67216. @see Partitioner]]>
  67217. </doc>
  67218. </class>
  67219. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  67220. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  67221. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  67222. abstract="false"
  67223. static="false" final="false" visibility="public"
  67224. deprecated="not deprecated">
  67225. <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"
  67226. static="false" final="false" visibility="public"
  67227. deprecated="not deprecated">
  67228. <exception name="IOException" type="java.io.IOException"/>
  67229. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67230. </constructor>
  67231. </class>
  67232. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  67233. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  67234. <class name="StatusReporter" extends="java.lang.Object"
  67235. abstract="true"
  67236. static="false" final="false" visibility="public"
  67237. deprecated="not deprecated">
  67238. <constructor name="StatusReporter"
  67239. static="false" final="false" visibility="public"
  67240. deprecated="not deprecated">
  67241. </constructor>
  67242. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  67243. abstract="true" native="false" synchronized="false"
  67244. static="false" final="false" visibility="public"
  67245. deprecated="not deprecated">
  67246. <param name="name" type="java.lang.Enum"/>
  67247. </method>
  67248. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  67249. abstract="true" native="false" synchronized="false"
  67250. static="false" final="false" visibility="public"
  67251. deprecated="not deprecated">
  67252. <param name="group" type="java.lang.String"/>
  67253. <param name="name" type="java.lang.String"/>
  67254. </method>
  67255. <method name="progress"
  67256. abstract="true" native="false" synchronized="false"
  67257. static="false" final="false" visibility="public"
  67258. deprecated="not deprecated">
  67259. </method>
  67260. <method name="setStatus"
  67261. abstract="true" native="false" synchronized="false"
  67262. static="false" final="false" visibility="public"
  67263. deprecated="not deprecated">
  67264. <param name="status" type="java.lang.String"/>
  67265. </method>
  67266. </class>
  67267. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  67268. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  67269. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  67270. abstract="false"
  67271. static="false" final="false" visibility="public"
  67272. deprecated="not deprecated">
  67273. <implements name="org.apache.hadoop.util.Progressable"/>
  67274. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  67275. static="false" final="false" visibility="public"
  67276. deprecated="not deprecated">
  67277. </constructor>
  67278. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  67279. abstract="false" native="false" synchronized="false"
  67280. static="false" final="false" visibility="public"
  67281. deprecated="not deprecated">
  67282. <doc>
  67283. <![CDATA[Get the unique name for this task attempt.]]>
  67284. </doc>
  67285. </method>
  67286. <method name="setStatus"
  67287. abstract="false" native="false" synchronized="false"
  67288. static="false" final="false" visibility="public"
  67289. deprecated="not deprecated">
  67290. <param name="msg" type="java.lang.String"/>
  67291. <exception name="IOException" type="java.io.IOException"/>
  67292. <doc>
  67293. <![CDATA[Set the current status of the task to the given string.]]>
  67294. </doc>
  67295. </method>
  67296. <method name="getStatus" return="java.lang.String"
  67297. abstract="false" native="false" synchronized="false"
  67298. static="false" final="false" visibility="public"
  67299. deprecated="not deprecated">
  67300. <doc>
  67301. <![CDATA[Get the last set status message.
  67302. @return the current status message]]>
  67303. </doc>
  67304. </method>
  67305. <method name="progress"
  67306. abstract="false" native="false" synchronized="false"
  67307. static="false" final="false" visibility="public"
  67308. deprecated="not deprecated">
  67309. <doc>
  67310. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  67311. </doc>
  67312. </method>
  67313. <doc>
  67314. <![CDATA[The context for task attempts.]]>
  67315. </doc>
  67316. </class>
  67317. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  67318. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  67319. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  67320. abstract="false"
  67321. static="false" final="false" visibility="public"
  67322. deprecated="not deprecated">
  67323. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  67324. static="false" final="false" visibility="public"
  67325. deprecated="not deprecated">
  67326. <doc>
  67327. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  67328. @param taskId TaskID that this task belongs to
  67329. @param id the task attempt number]]>
  67330. </doc>
  67331. </constructor>
  67332. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  67333. static="false" final="false" visibility="public"
  67334. deprecated="not deprecated">
  67335. <doc>
  67336. <![CDATA[Constructs a TaskId object from given parts.
  67337. @param jtIdentifier jobTracker identifier
  67338. @param jobId job number
  67339. @param isMap whether the tip is a map
  67340. @param taskId taskId number
  67341. @param id the task attempt number]]>
  67342. </doc>
  67343. </constructor>
  67344. <constructor name="TaskAttemptID"
  67345. static="false" final="false" visibility="public"
  67346. deprecated="not deprecated">
  67347. </constructor>
  67348. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  67349. abstract="false" native="false" synchronized="false"
  67350. static="false" final="false" visibility="public"
  67351. deprecated="not deprecated">
  67352. <doc>
  67353. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  67354. </doc>
  67355. </method>
  67356. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  67357. abstract="false" native="false" synchronized="false"
  67358. static="false" final="false" visibility="public"
  67359. deprecated="not deprecated">
  67360. <doc>
  67361. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  67362. </doc>
  67363. </method>
  67364. <method name="isMap" return="boolean"
  67365. abstract="false" native="false" synchronized="false"
  67366. static="false" final="false" visibility="public"
  67367. deprecated="not deprecated">
  67368. <doc>
  67369. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  67370. </doc>
  67371. </method>
  67372. <method name="equals" return="boolean"
  67373. abstract="false" native="false" synchronized="false"
  67374. static="false" final="false" visibility="public"
  67375. deprecated="not deprecated">
  67376. <param name="o" type="java.lang.Object"/>
  67377. </method>
  67378. <method name="appendTo" return="java.lang.StringBuilder"
  67379. abstract="false" native="false" synchronized="false"
  67380. static="false" final="false" visibility="protected"
  67381. deprecated="not deprecated">
  67382. <param name="builder" type="java.lang.StringBuilder"/>
  67383. <doc>
  67384. <![CDATA[Add the unique string to the StringBuilder
  67385. @param builder the builder to append ot
  67386. @return the builder that was passed in.]]>
  67387. </doc>
  67388. </method>
  67389. <method name="readFields"
  67390. abstract="false" native="false" synchronized="false"
  67391. static="false" final="false" visibility="public"
  67392. deprecated="not deprecated">
  67393. <param name="in" type="java.io.DataInput"/>
  67394. <exception name="IOException" type="java.io.IOException"/>
  67395. </method>
  67396. <method name="write"
  67397. abstract="false" native="false" synchronized="false"
  67398. static="false" final="false" visibility="public"
  67399. deprecated="not deprecated">
  67400. <param name="out" type="java.io.DataOutput"/>
  67401. <exception name="IOException" type="java.io.IOException"/>
  67402. </method>
  67403. <method name="hashCode" return="int"
  67404. abstract="false" native="false" synchronized="false"
  67405. static="false" final="false" visibility="public"
  67406. deprecated="not deprecated">
  67407. </method>
  67408. <method name="compareTo" return="int"
  67409. abstract="false" native="false" synchronized="false"
  67410. static="false" final="false" visibility="public"
  67411. deprecated="not deprecated">
  67412. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  67413. <doc>
  67414. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  67415. </doc>
  67416. </method>
  67417. <method name="toString" return="java.lang.String"
  67418. abstract="false" native="false" synchronized="false"
  67419. static="false" final="false" visibility="public"
  67420. deprecated="not deprecated">
  67421. </method>
  67422. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  67423. abstract="false" native="false" synchronized="false"
  67424. static="true" final="false" visibility="public"
  67425. deprecated="not deprecated">
  67426. <param name="str" type="java.lang.String"/>
  67427. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  67428. <doc>
  67429. <![CDATA[Construct a TaskAttemptID object from given string
  67430. @return constructed TaskAttemptID object or null if the given String is null
  67431. @throws IllegalArgumentException if the given string is malformed]]>
  67432. </doc>
  67433. </method>
  67434. <field name="ATTEMPT" type="java.lang.String"
  67435. transient="false" volatile="false"
  67436. static="true" final="true" visibility="protected"
  67437. deprecated="not deprecated">
  67438. </field>
  67439. <doc>
  67440. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  67441. a task attempt. Each task attempt is one particular instance of a Map or
  67442. Reduce Task identified by its TaskID.
  67443. TaskAttemptID consists of 2 parts. First part is the
  67444. {@link TaskID}, that this TaskAttemptID belongs to.
  67445. Second part is the task attempt number. <br>
  67446. An example TaskAttemptID is :
  67447. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  67448. zeroth task attempt for the fifth map task in the third job
  67449. running at the jobtracker started at <code>200707121733</code>.
  67450. <p>
  67451. Applications should never construct or parse TaskAttemptID strings
  67452. , but rather use appropriate constructors or {@link #forName(String)}
  67453. method.
  67454. @see JobID
  67455. @see TaskID]]>
  67456. </doc>
  67457. </class>
  67458. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  67459. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  67460. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  67461. abstract="false"
  67462. static="false" final="false" visibility="public"
  67463. deprecated="not deprecated">
  67464. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  67465. static="false" final="false" visibility="public"
  67466. deprecated="not deprecated">
  67467. <doc>
  67468. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  67469. @param jobId JobID that this tip belongs to
  67470. @param isMap whether the tip is a map
  67471. @param id the tip number]]>
  67472. </doc>
  67473. </constructor>
  67474. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  67475. static="false" final="false" visibility="public"
  67476. deprecated="not deprecated">
  67477. <doc>
  67478. <![CDATA[Constructs a TaskInProgressId object from given parts.
  67479. @param jtIdentifier jobTracker identifier
  67480. @param jobId job number
  67481. @param isMap whether the tip is a map
  67482. @param id the tip number]]>
  67483. </doc>
  67484. </constructor>
  67485. <constructor name="TaskID"
  67486. static="false" final="false" visibility="public"
  67487. deprecated="not deprecated">
  67488. </constructor>
  67489. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  67490. abstract="false" native="false" synchronized="false"
  67491. static="false" final="false" visibility="public"
  67492. deprecated="not deprecated">
  67493. <doc>
  67494. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  67495. </doc>
  67496. </method>
  67497. <method name="isMap" return="boolean"
  67498. abstract="false" native="false" synchronized="false"
  67499. static="false" final="false" visibility="public"
  67500. deprecated="not deprecated">
  67501. <doc>
  67502. <![CDATA[Returns whether this TaskID is a map ID]]>
  67503. </doc>
  67504. </method>
  67505. <method name="equals" return="boolean"
  67506. abstract="false" native="false" synchronized="false"
  67507. static="false" final="false" visibility="public"
  67508. deprecated="not deprecated">
  67509. <param name="o" type="java.lang.Object"/>
  67510. </method>
  67511. <method name="compareTo" return="int"
  67512. abstract="false" native="false" synchronized="false"
  67513. static="false" final="false" visibility="public"
  67514. deprecated="not deprecated">
  67515. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  67516. <doc>
  67517. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  67518. defined as greater then maps.]]>
  67519. </doc>
  67520. </method>
  67521. <method name="toString" return="java.lang.String"
  67522. abstract="false" native="false" synchronized="false"
  67523. static="false" final="false" visibility="public"
  67524. deprecated="not deprecated">
  67525. </method>
  67526. <method name="appendTo" return="java.lang.StringBuilder"
  67527. abstract="false" native="false" synchronized="false"
  67528. static="false" final="false" visibility="protected"
  67529. deprecated="not deprecated">
  67530. <param name="builder" type="java.lang.StringBuilder"/>
  67531. <doc>
  67532. <![CDATA[Add the unique string to the given builder.
  67533. @param builder the builder to append to
  67534. @return the builder that was passed in]]>
  67535. </doc>
  67536. </method>
  67537. <method name="hashCode" return="int"
  67538. abstract="false" native="false" synchronized="false"
  67539. static="false" final="false" visibility="public"
  67540. deprecated="not deprecated">
  67541. </method>
  67542. <method name="readFields"
  67543. abstract="false" native="false" synchronized="false"
  67544. static="false" final="false" visibility="public"
  67545. deprecated="not deprecated">
  67546. <param name="in" type="java.io.DataInput"/>
  67547. <exception name="IOException" type="java.io.IOException"/>
  67548. </method>
  67549. <method name="write"
  67550. abstract="false" native="false" synchronized="false"
  67551. static="false" final="false" visibility="public"
  67552. deprecated="not deprecated">
  67553. <param name="out" type="java.io.DataOutput"/>
  67554. <exception name="IOException" type="java.io.IOException"/>
  67555. </method>
  67556. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  67557. abstract="false" native="false" synchronized="false"
  67558. static="true" final="false" visibility="public"
  67559. deprecated="not deprecated">
  67560. <param name="str" type="java.lang.String"/>
  67561. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  67562. <doc>
  67563. <![CDATA[Construct a TaskID object from given string
  67564. @return constructed TaskID object or null if the given String is null
  67565. @throws IllegalArgumentException if the given string is malformed]]>
  67566. </doc>
  67567. </method>
  67568. <field name="TASK" type="java.lang.String"
  67569. transient="false" volatile="false"
  67570. static="true" final="true" visibility="protected"
  67571. deprecated="not deprecated">
  67572. </field>
  67573. <field name="idFormat" type="java.text.NumberFormat"
  67574. transient="false" volatile="false"
  67575. static="true" final="true" visibility="protected"
  67576. deprecated="not deprecated">
  67577. </field>
  67578. <doc>
  67579. <![CDATA[TaskID represents the immutable and unique identifier for
  67580. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  67581. execute the Map or Reduce Task, each of which are uniquely indentified by
  67582. their TaskAttemptID.
  67583. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  67584. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  67585. representing whether the task is a map task or a reduce task.
  67586. And the third part is the task number. <br>
  67587. An example TaskID is :
  67588. <code>task_200707121733_0003_m_000005</code> , which represents the
  67589. fifth map task in the third job running at the jobtracker
  67590. started at <code>200707121733</code>.
  67591. <p>
  67592. Applications should never construct or parse TaskID strings
  67593. , but rather use appropriate constructors or {@link #forName(String)}
  67594. method.
  67595. @see JobID
  67596. @see TaskAttemptID]]>
  67597. </doc>
  67598. </class>
  67599. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  67600. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  67601. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  67602. abstract="true"
  67603. static="false" final="false" visibility="public"
  67604. deprecated="not deprecated">
  67605. <implements name="org.apache.hadoop.util.Progressable"/>
  67606. <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"
  67607. static="false" final="false" visibility="public"
  67608. deprecated="not deprecated">
  67609. </constructor>
  67610. <method name="nextKeyValue" return="boolean"
  67611. abstract="true" native="false" synchronized="false"
  67612. static="false" final="false" visibility="public"
  67613. deprecated="not deprecated">
  67614. <exception name="IOException" type="java.io.IOException"/>
  67615. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67616. <doc>
  67617. <![CDATA[Advance to the next key, value pair, returning null if at end.
  67618. @return the key object that was read into, or null if no more]]>
  67619. </doc>
  67620. </method>
  67621. <method name="getCurrentKey" return="java.lang.Object"
  67622. abstract="true" native="false" synchronized="false"
  67623. static="false" final="false" visibility="public"
  67624. deprecated="not deprecated">
  67625. <exception name="IOException" type="java.io.IOException"/>
  67626. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67627. <doc>
  67628. <![CDATA[Get the current key.
  67629. @return the current key object or null if there isn't one
  67630. @throws IOException
  67631. @throws InterruptedException]]>
  67632. </doc>
  67633. </method>
  67634. <method name="getCurrentValue" return="java.lang.Object"
  67635. abstract="true" native="false" synchronized="false"
  67636. static="false" final="false" visibility="public"
  67637. deprecated="not deprecated">
  67638. <exception name="IOException" type="java.io.IOException"/>
  67639. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67640. <doc>
  67641. <![CDATA[Get the current value.
  67642. @return the value object that was read into
  67643. @throws IOException
  67644. @throws InterruptedException]]>
  67645. </doc>
  67646. </method>
  67647. <method name="write"
  67648. abstract="false" native="false" synchronized="false"
  67649. static="false" final="false" visibility="public"
  67650. deprecated="not deprecated">
  67651. <param name="key" type="java.lang.Object"/>
  67652. <param name="value" type="java.lang.Object"/>
  67653. <exception name="IOException" type="java.io.IOException"/>
  67654. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67655. <doc>
  67656. <![CDATA[Generate an output key/value pair.]]>
  67657. </doc>
  67658. </method>
  67659. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  67660. abstract="false" native="false" synchronized="false"
  67661. static="false" final="false" visibility="public"
  67662. deprecated="not deprecated">
  67663. <param name="counterName" type="java.lang.Enum"/>
  67664. </method>
  67665. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  67666. abstract="false" native="false" synchronized="false"
  67667. static="false" final="false" visibility="public"
  67668. deprecated="not deprecated">
  67669. <param name="groupName" type="java.lang.String"/>
  67670. <param name="counterName" type="java.lang.String"/>
  67671. </method>
  67672. <method name="progress"
  67673. abstract="false" native="false" synchronized="false"
  67674. static="false" final="false" visibility="public"
  67675. deprecated="not deprecated">
  67676. </method>
  67677. <method name="setStatus"
  67678. abstract="false" native="false" synchronized="false"
  67679. static="false" final="false" visibility="public"
  67680. deprecated="not deprecated">
  67681. <param name="status" type="java.lang.String"/>
  67682. </method>
  67683. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  67684. abstract="false" native="false" synchronized="false"
  67685. static="false" final="false" visibility="public"
  67686. deprecated="not deprecated">
  67687. </method>
  67688. <doc>
  67689. <![CDATA[A context object that allows input and output from the task. It is only
  67690. supplied to the {@link Mapper} or {@link Reducer}.
  67691. @param <KEYIN> the input key type for the task
  67692. @param <VALUEIN> the input value type for the task
  67693. @param <KEYOUT> the output key type for the task
  67694. @param <VALUEOUT> the output value type for the task]]>
  67695. </doc>
  67696. </class>
  67697. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  67698. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  67699. <class name="TaskType" extends="java.lang.Enum"
  67700. abstract="false"
  67701. static="false" final="true" visibility="public"
  67702. deprecated="not deprecated">
  67703. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  67704. abstract="false" native="false" synchronized="false"
  67705. static="true" final="false" visibility="public"
  67706. deprecated="not deprecated">
  67707. </method>
  67708. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  67709. abstract="false" native="false" synchronized="false"
  67710. static="true" final="false" visibility="public"
  67711. deprecated="not deprecated">
  67712. <param name="name" type="java.lang.String"/>
  67713. </method>
  67714. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  67715. transient="false" volatile="false"
  67716. static="true" final="true" visibility="public"
  67717. deprecated="not deprecated">
  67718. </field>
  67719. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  67720. transient="false" volatile="false"
  67721. static="true" final="true" visibility="public"
  67722. deprecated="not deprecated">
  67723. </field>
  67724. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  67725. transient="false" volatile="false"
  67726. static="true" final="true" visibility="public"
  67727. deprecated="not deprecated">
  67728. </field>
  67729. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  67730. transient="false" volatile="false"
  67731. static="true" final="true" visibility="public"
  67732. deprecated="not deprecated">
  67733. </field>
  67734. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  67735. transient="false" volatile="false"
  67736. static="true" final="true" visibility="public"
  67737. deprecated="not deprecated">
  67738. </field>
  67739. <doc>
  67740. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  67741. </doc>
  67742. </class>
  67743. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  67744. </package>
  67745. <package name="org.apache.hadoop.mapreduce.lib.db">
  67746. <!-- start class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  67747. <class name="BigDecimalSplitter" extends="java.lang.Object"
  67748. abstract="false"
  67749. static="false" final="false" visibility="public"
  67750. deprecated="not deprecated">
  67751. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  67752. <constructor name="BigDecimalSplitter"
  67753. static="false" final="false" visibility="public"
  67754. deprecated="not deprecated">
  67755. </constructor>
  67756. <method name="split" return="java.util.List"
  67757. abstract="false" native="false" synchronized="false"
  67758. static="false" final="false" visibility="public"
  67759. deprecated="not deprecated">
  67760. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67761. <param name="results" type="java.sql.ResultSet"/>
  67762. <param name="colName" type="java.lang.String"/>
  67763. <exception name="SQLException" type="java.sql.SQLException"/>
  67764. </method>
  67765. <method name="tryDivide" return="java.math.BigDecimal"
  67766. abstract="false" native="false" synchronized="false"
  67767. static="false" final="false" visibility="protected"
  67768. deprecated="not deprecated">
  67769. <param name="numerator" type="java.math.BigDecimal"/>
  67770. <param name="denominator" type="java.math.BigDecimal"/>
  67771. <doc>
  67772. <![CDATA[Divide numerator by denominator. If impossible in exact mode, use rounding.]]>
  67773. </doc>
  67774. </method>
  67775. <doc>
  67776. <![CDATA[Implement DBSplitter over BigDecimal values.]]>
  67777. </doc>
  67778. </class>
  67779. <!-- end class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  67780. <!-- start class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  67781. <class name="BooleanSplitter" extends="java.lang.Object"
  67782. abstract="false"
  67783. static="false" final="false" visibility="public"
  67784. deprecated="not deprecated">
  67785. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  67786. <constructor name="BooleanSplitter"
  67787. static="false" final="false" visibility="public"
  67788. deprecated="not deprecated">
  67789. </constructor>
  67790. <method name="split" return="java.util.List"
  67791. abstract="false" native="false" synchronized="false"
  67792. static="false" final="false" visibility="public"
  67793. deprecated="not deprecated">
  67794. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67795. <param name="results" type="java.sql.ResultSet"/>
  67796. <param name="colName" type="java.lang.String"/>
  67797. <exception name="SQLException" type="java.sql.SQLException"/>
  67798. </method>
  67799. <doc>
  67800. <![CDATA[Implement DBSplitter over boolean values.]]>
  67801. </doc>
  67802. </class>
  67803. <!-- end class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  67804. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  67805. <class name="DataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat"
  67806. abstract="false"
  67807. static="false" final="false" visibility="public"
  67808. deprecated="not deprecated">
  67809. <implements name="org.apache.hadoop.conf.Configurable"/>
  67810. <constructor name="DataDrivenDBInputFormat"
  67811. static="false" final="false" visibility="public"
  67812. deprecated="not deprecated">
  67813. </constructor>
  67814. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  67815. abstract="false" native="false" synchronized="false"
  67816. static="false" final="false" visibility="protected"
  67817. deprecated="not deprecated">
  67818. <param name="sqlDataType" type="int"/>
  67819. <doc>
  67820. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  67821. </doc>
  67822. </method>
  67823. <method name="getSplits" return="java.util.List"
  67824. abstract="false" native="false" synchronized="false"
  67825. static="false" final="false" visibility="public"
  67826. deprecated="not deprecated">
  67827. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67828. <exception name="IOException" type="java.io.IOException"/>
  67829. <doc>
  67830. <![CDATA[{@inheritDoc}]]>
  67831. </doc>
  67832. </method>
  67833. <method name="getBoundingValsQuery" return="java.lang.String"
  67834. abstract="false" native="false" synchronized="false"
  67835. static="false" final="false" visibility="protected"
  67836. deprecated="not deprecated">
  67837. <doc>
  67838. <![CDATA[@return a query which returns the minimum and maximum values for
  67839. the order-by column.
  67840. The min value should be in the first column, and the
  67841. max value should be in the second column of the results.]]>
  67842. </doc>
  67843. </method>
  67844. <method name="setBoundingQuery"
  67845. abstract="false" native="false" synchronized="false"
  67846. static="true" final="false" visibility="public"
  67847. deprecated="not deprecated">
  67848. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67849. <param name="query" type="java.lang.String"/>
  67850. <doc>
  67851. <![CDATA[Set the user-defined bounding query to use with a user-defined query.
  67852. This *must* include the substring "$CONDITIONS"
  67853. (DataDrivenDBInputFormat.SUBSTITUTE_TOKEN) inside the WHERE clause,
  67854. so that DataDrivenDBInputFormat knows where to insert split clauses.
  67855. e.g., "SELECT foo FROM mytable WHERE $CONDITIONS"
  67856. This will be expanded to something like:
  67857. SELECT foo FROM mytable WHERE (id &gt; 100) AND (id &lt; 250)
  67858. inside each split.]]>
  67859. </doc>
  67860. </method>
  67861. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67862. abstract="false" native="false" synchronized="false"
  67863. static="false" final="false" visibility="protected"
  67864. deprecated="not deprecated">
  67865. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  67866. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67867. <exception name="IOException" type="java.io.IOException"/>
  67868. </method>
  67869. <method name="setInput"
  67870. abstract="false" native="false" synchronized="false"
  67871. static="true" final="false" visibility="public"
  67872. deprecated="not deprecated">
  67873. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67874. <param name="inputClass" type="java.lang.Class"/>
  67875. <param name="tableName" type="java.lang.String"/>
  67876. <param name="conditions" type="java.lang.String"/>
  67877. <param name="splitBy" type="java.lang.String"/>
  67878. <param name="fieldNames" type="java.lang.String[]"/>
  67879. <doc>
  67880. <![CDATA[Note that the "orderBy" column is called the "splitBy" in this version.
  67881. We reuse the same field, but it's not strictly ordering it -- just partitioning
  67882. the results.]]>
  67883. </doc>
  67884. </method>
  67885. <method name="setInput"
  67886. abstract="false" native="false" synchronized="false"
  67887. static="true" final="false" visibility="public"
  67888. deprecated="not deprecated">
  67889. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67890. <param name="inputClass" type="java.lang.Class"/>
  67891. <param name="inputQuery" type="java.lang.String"/>
  67892. <param name="inputBoundingQuery" type="java.lang.String"/>
  67893. <doc>
  67894. <![CDATA[setInput() takes a custom query and a separate "bounding query" to use
  67895. instead of the custom "count query" used by DBInputFormat.]]>
  67896. </doc>
  67897. </method>
  67898. <field name="SUBSTITUTE_TOKEN" type="java.lang.String"
  67899. transient="false" volatile="false"
  67900. static="true" final="true" visibility="public"
  67901. deprecated="not deprecated">
  67902. <doc>
  67903. <![CDATA[If users are providing their own query, the following string is expected to
  67904. appear in the WHERE clause, which will be substituted with a pair of conditions
  67905. on the input to allow input splits to parallelise the import.]]>
  67906. </doc>
  67907. </field>
  67908. <doc>
  67909. <![CDATA[A InputFormat that reads input data from an SQL table.
  67910. Operates like DBInputFormat, but instead of using LIMIT and OFFSET to demarcate
  67911. splits, it tries to generate WHERE clauses which separate the data into roughly
  67912. equivalent shards.]]>
  67913. </doc>
  67914. </class>
  67915. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  67916. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  67917. <class name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  67918. abstract="false"
  67919. static="true" final="false" visibility="public"
  67920. deprecated="not deprecated">
  67921. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit"
  67922. static="false" final="false" visibility="public"
  67923. deprecated="not deprecated">
  67924. <doc>
  67925. <![CDATA[Default Constructor]]>
  67926. </doc>
  67927. </constructor>
  67928. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" type="java.lang.String, java.lang.String"
  67929. static="false" final="false" visibility="public"
  67930. deprecated="not deprecated">
  67931. <doc>
  67932. <![CDATA[Convenience Constructor
  67933. @param lower the string to be put in the WHERE clause to guard on the 'lower' end
  67934. @param upper the string to be put in the WHERE clause to guard on the 'upper' end]]>
  67935. </doc>
  67936. </constructor>
  67937. <method name="getLength" return="long"
  67938. abstract="false" native="false" synchronized="false"
  67939. static="false" final="false" visibility="public"
  67940. deprecated="not deprecated">
  67941. <exception name="IOException" type="java.io.IOException"/>
  67942. <doc>
  67943. <![CDATA[@return The total row count in this split]]>
  67944. </doc>
  67945. </method>
  67946. <method name="readFields"
  67947. abstract="false" native="false" synchronized="false"
  67948. static="false" final="false" visibility="public"
  67949. deprecated="not deprecated">
  67950. <param name="input" type="java.io.DataInput"/>
  67951. <exception name="IOException" type="java.io.IOException"/>
  67952. <doc>
  67953. <![CDATA[{@inheritDoc}]]>
  67954. </doc>
  67955. </method>
  67956. <method name="write"
  67957. abstract="false" native="false" synchronized="false"
  67958. static="false" final="false" visibility="public"
  67959. deprecated="not deprecated">
  67960. <param name="output" type="java.io.DataOutput"/>
  67961. <exception name="IOException" type="java.io.IOException"/>
  67962. <doc>
  67963. <![CDATA[{@inheritDoc}]]>
  67964. </doc>
  67965. </method>
  67966. <method name="getLowerClause" return="java.lang.String"
  67967. abstract="false" native="false" synchronized="false"
  67968. static="false" final="false" visibility="public"
  67969. deprecated="not deprecated">
  67970. </method>
  67971. <method name="getUpperClause" return="java.lang.String"
  67972. abstract="false" native="false" synchronized="false"
  67973. static="false" final="false" visibility="public"
  67974. deprecated="not deprecated">
  67975. </method>
  67976. <doc>
  67977. <![CDATA[A InputSplit that spans a set of rows]]>
  67978. </doc>
  67979. </class>
  67980. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  67981. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  67982. <class name="DataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  67983. abstract="false"
  67984. static="false" final="false" visibility="public"
  67985. deprecated="not deprecated">
  67986. <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"
  67987. static="false" final="false" visibility="public"
  67988. deprecated="not deprecated">
  67989. <exception name="SQLException" type="java.sql.SQLException"/>
  67990. <doc>
  67991. <![CDATA[@param split The InputSplit to read data for
  67992. @throws SQLException]]>
  67993. </doc>
  67994. </constructor>
  67995. <method name="getSelectQuery" return="java.lang.String"
  67996. abstract="false" native="false" synchronized="false"
  67997. static="false" final="false" visibility="protected"
  67998. deprecated="not deprecated">
  67999. <doc>
  68000. <![CDATA[Returns the query for selecting the records,
  68001. subclasses can override this for custom behaviour.]]>
  68002. </doc>
  68003. </method>
  68004. <doc>
  68005. <![CDATA[A RecordReader that reads records from a SQL table,
  68006. using data-driven WHERE clause splits.
  68007. Emits LongWritables containing the record number as
  68008. key and DBWritables as value.]]>
  68009. </doc>
  68010. </class>
  68011. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  68012. <!-- start class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  68013. <class name="DateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.IntegerSplitter"
  68014. abstract="false"
  68015. static="false" final="false" visibility="public"
  68016. deprecated="not deprecated">
  68017. <constructor name="DateSplitter"
  68018. static="false" final="false" visibility="public"
  68019. deprecated="not deprecated">
  68020. </constructor>
  68021. <method name="split" return="java.util.List"
  68022. abstract="false" native="false" synchronized="false"
  68023. static="false" final="false" visibility="public"
  68024. deprecated="not deprecated">
  68025. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68026. <param name="results" type="java.sql.ResultSet"/>
  68027. <param name="colName" type="java.lang.String"/>
  68028. <exception name="SQLException" type="java.sql.SQLException"/>
  68029. </method>
  68030. <method name="dateToString" return="java.lang.String"
  68031. abstract="false" native="false" synchronized="false"
  68032. static="false" final="false" visibility="protected"
  68033. deprecated="not deprecated">
  68034. <param name="d" type="java.util.Date"/>
  68035. <doc>
  68036. <![CDATA[Given a Date 'd', format it as a string for use in a SQL date
  68037. comparison operation.
  68038. @param d the date to format.
  68039. @return the string representing this date in SQL with any appropriate
  68040. quotation characters, etc.]]>
  68041. </doc>
  68042. </method>
  68043. <doc>
  68044. <![CDATA[Implement DBSplitter over date/time values.
  68045. Make use of logic from IntegerSplitter, since date/time are just longs
  68046. in Java.]]>
  68047. </doc>
  68048. </class>
  68049. <!-- end class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  68050. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  68051. <class name="DBConfiguration" extends="java.lang.Object"
  68052. abstract="false"
  68053. static="false" final="false" visibility="public"
  68054. deprecated="not deprecated">
  68055. <constructor name="DBConfiguration" type="org.apache.hadoop.conf.Configuration"
  68056. static="false" final="false" visibility="public"
  68057. deprecated="not deprecated">
  68058. </constructor>
  68059. <method name="configureDB"
  68060. abstract="false" native="false" synchronized="false"
  68061. static="true" final="false" visibility="public"
  68062. deprecated="not deprecated">
  68063. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68064. <param name="driverClass" type="java.lang.String"/>
  68065. <param name="dbUrl" type="java.lang.String"/>
  68066. <param name="userName" type="java.lang.String"/>
  68067. <param name="passwd" type="java.lang.String"/>
  68068. <doc>
  68069. <![CDATA[Sets the DB access related fields in the {@link Configuration}.
  68070. @param conf the configuration
  68071. @param driverClass JDBC Driver class name
  68072. @param dbUrl JDBC DB access URL.
  68073. @param userName DB access username
  68074. @param passwd DB access passwd]]>
  68075. </doc>
  68076. </method>
  68077. <method name="configureDB"
  68078. abstract="false" native="false" synchronized="false"
  68079. static="true" final="false" visibility="public"
  68080. deprecated="not deprecated">
  68081. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  68082. <param name="driverClass" type="java.lang.String"/>
  68083. <param name="dbUrl" type="java.lang.String"/>
  68084. <doc>
  68085. <![CDATA[Sets the DB access related fields in the JobConf.
  68086. @param job the job
  68087. @param driverClass JDBC Driver class name
  68088. @param dbUrl JDBC DB access URL.]]>
  68089. </doc>
  68090. </method>
  68091. <method name="getConnection" return="java.sql.Connection"
  68092. abstract="false" native="false" synchronized="false"
  68093. static="false" final="false" visibility="public"
  68094. deprecated="not deprecated">
  68095. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68096. <exception name="SQLException" type="java.sql.SQLException"/>
  68097. <doc>
  68098. <![CDATA[Returns a connection object o the DB
  68099. @throws ClassNotFoundException
  68100. @throws SQLException]]>
  68101. </doc>
  68102. </method>
  68103. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  68104. abstract="false" native="false" synchronized="false"
  68105. static="false" final="false" visibility="public"
  68106. deprecated="not deprecated">
  68107. </method>
  68108. <method name="getInputTableName" return="java.lang.String"
  68109. abstract="false" native="false" synchronized="false"
  68110. static="false" final="false" visibility="public"
  68111. deprecated="not deprecated">
  68112. </method>
  68113. <method name="setInputTableName"
  68114. abstract="false" native="false" synchronized="false"
  68115. static="false" final="false" visibility="public"
  68116. deprecated="not deprecated">
  68117. <param name="tableName" type="java.lang.String"/>
  68118. </method>
  68119. <method name="getInputFieldNames" return="java.lang.String[]"
  68120. abstract="false" native="false" synchronized="false"
  68121. static="false" final="false" visibility="public"
  68122. deprecated="not deprecated">
  68123. </method>
  68124. <method name="setInputFieldNames"
  68125. abstract="false" native="false" synchronized="false"
  68126. static="false" final="false" visibility="public"
  68127. deprecated="not deprecated">
  68128. <param name="fieldNames" type="java.lang.String[]"/>
  68129. </method>
  68130. <method name="getInputConditions" return="java.lang.String"
  68131. abstract="false" native="false" synchronized="false"
  68132. static="false" final="false" visibility="public"
  68133. deprecated="not deprecated">
  68134. </method>
  68135. <method name="setInputConditions"
  68136. abstract="false" native="false" synchronized="false"
  68137. static="false" final="false" visibility="public"
  68138. deprecated="not deprecated">
  68139. <param name="conditions" type="java.lang.String"/>
  68140. </method>
  68141. <method name="getInputOrderBy" return="java.lang.String"
  68142. abstract="false" native="false" synchronized="false"
  68143. static="false" final="false" visibility="public"
  68144. deprecated="not deprecated">
  68145. </method>
  68146. <method name="setInputOrderBy"
  68147. abstract="false" native="false" synchronized="false"
  68148. static="false" final="false" visibility="public"
  68149. deprecated="not deprecated">
  68150. <param name="orderby" type="java.lang.String"/>
  68151. </method>
  68152. <method name="getInputQuery" return="java.lang.String"
  68153. abstract="false" native="false" synchronized="false"
  68154. static="false" final="false" visibility="public"
  68155. deprecated="not deprecated">
  68156. </method>
  68157. <method name="setInputQuery"
  68158. abstract="false" native="false" synchronized="false"
  68159. static="false" final="false" visibility="public"
  68160. deprecated="not deprecated">
  68161. <param name="query" type="java.lang.String"/>
  68162. </method>
  68163. <method name="getInputCountQuery" return="java.lang.String"
  68164. abstract="false" native="false" synchronized="false"
  68165. static="false" final="false" visibility="public"
  68166. deprecated="not deprecated">
  68167. </method>
  68168. <method name="setInputCountQuery"
  68169. abstract="false" native="false" synchronized="false"
  68170. static="false" final="false" visibility="public"
  68171. deprecated="not deprecated">
  68172. <param name="query" type="java.lang.String"/>
  68173. </method>
  68174. <method name="setInputBoundingQuery"
  68175. abstract="false" native="false" synchronized="false"
  68176. static="false" final="false" visibility="public"
  68177. deprecated="not deprecated">
  68178. <param name="query" type="java.lang.String"/>
  68179. </method>
  68180. <method name="getInputBoundingQuery" return="java.lang.String"
  68181. abstract="false" native="false" synchronized="false"
  68182. static="false" final="false" visibility="public"
  68183. deprecated="not deprecated">
  68184. </method>
  68185. <method name="getInputClass" return="java.lang.Class"
  68186. abstract="false" native="false" synchronized="false"
  68187. static="false" final="false" visibility="public"
  68188. deprecated="not deprecated">
  68189. </method>
  68190. <method name="setInputClass"
  68191. abstract="false" native="false" synchronized="false"
  68192. static="false" final="false" visibility="public"
  68193. deprecated="not deprecated">
  68194. <param name="inputClass" type="java.lang.Class"/>
  68195. </method>
  68196. <method name="getOutputTableName" return="java.lang.String"
  68197. abstract="false" native="false" synchronized="false"
  68198. static="false" final="false" visibility="public"
  68199. deprecated="not deprecated">
  68200. </method>
  68201. <method name="setOutputTableName"
  68202. abstract="false" native="false" synchronized="false"
  68203. static="false" final="false" visibility="public"
  68204. deprecated="not deprecated">
  68205. <param name="tableName" type="java.lang.String"/>
  68206. </method>
  68207. <method name="getOutputFieldNames" return="java.lang.String[]"
  68208. abstract="false" native="false" synchronized="false"
  68209. static="false" final="false" visibility="public"
  68210. deprecated="not deprecated">
  68211. </method>
  68212. <method name="setOutputFieldNames"
  68213. abstract="false" native="false" synchronized="false"
  68214. static="false" final="false" visibility="public"
  68215. deprecated="not deprecated">
  68216. <param name="fieldNames" type="java.lang.String[]"/>
  68217. </method>
  68218. <method name="setOutputFieldCount"
  68219. abstract="false" native="false" synchronized="false"
  68220. static="false" final="false" visibility="public"
  68221. deprecated="not deprecated">
  68222. <param name="fieldCount" type="int"/>
  68223. </method>
  68224. <method name="getOutputFieldCount" return="int"
  68225. abstract="false" native="false" synchronized="false"
  68226. static="false" final="false" visibility="public"
  68227. deprecated="not deprecated">
  68228. </method>
  68229. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  68230. transient="false" volatile="false"
  68231. static="true" final="true" visibility="public"
  68232. deprecated="not deprecated">
  68233. <doc>
  68234. <![CDATA[The JDBC Driver class name]]>
  68235. </doc>
  68236. </field>
  68237. <field name="URL_PROPERTY" type="java.lang.String"
  68238. transient="false" volatile="false"
  68239. static="true" final="true" visibility="public"
  68240. deprecated="not deprecated">
  68241. <doc>
  68242. <![CDATA[JDBC Database access URL]]>
  68243. </doc>
  68244. </field>
  68245. <field name="USERNAME_PROPERTY" type="java.lang.String"
  68246. transient="false" volatile="false"
  68247. static="true" final="true" visibility="public"
  68248. deprecated="not deprecated">
  68249. <doc>
  68250. <![CDATA[User name to access the database]]>
  68251. </doc>
  68252. </field>
  68253. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  68254. transient="false" volatile="false"
  68255. static="true" final="true" visibility="public"
  68256. deprecated="not deprecated">
  68257. <doc>
  68258. <![CDATA[Password to access the database]]>
  68259. </doc>
  68260. </field>
  68261. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  68262. transient="false" volatile="false"
  68263. static="true" final="true" visibility="public"
  68264. deprecated="not deprecated">
  68265. <doc>
  68266. <![CDATA[Input table name]]>
  68267. </doc>
  68268. </field>
  68269. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  68270. transient="false" volatile="false"
  68271. static="true" final="true" visibility="public"
  68272. deprecated="not deprecated">
  68273. <doc>
  68274. <![CDATA[Field names in the Input table]]>
  68275. </doc>
  68276. </field>
  68277. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  68278. transient="false" volatile="false"
  68279. static="true" final="true" visibility="public"
  68280. deprecated="not deprecated">
  68281. <doc>
  68282. <![CDATA[WHERE clause in the input SELECT statement]]>
  68283. </doc>
  68284. </field>
  68285. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  68286. transient="false" volatile="false"
  68287. static="true" final="true" visibility="public"
  68288. deprecated="not deprecated">
  68289. <doc>
  68290. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  68291. </doc>
  68292. </field>
  68293. <field name="INPUT_QUERY" type="java.lang.String"
  68294. transient="false" volatile="false"
  68295. static="true" final="true" visibility="public"
  68296. deprecated="not deprecated">
  68297. <doc>
  68298. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  68299. </doc>
  68300. </field>
  68301. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  68302. transient="false" volatile="false"
  68303. static="true" final="true" visibility="public"
  68304. deprecated="not deprecated">
  68305. <doc>
  68306. <![CDATA[Input query to get the count of records]]>
  68307. </doc>
  68308. </field>
  68309. <field name="INPUT_BOUNDING_QUERY" type="java.lang.String"
  68310. transient="false" volatile="false"
  68311. static="true" final="true" visibility="public"
  68312. deprecated="not deprecated">
  68313. <doc>
  68314. <![CDATA[Input query to get the max and min values of the jdbc.input.query]]>
  68315. </doc>
  68316. </field>
  68317. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  68318. transient="false" volatile="false"
  68319. static="true" final="true" visibility="public"
  68320. deprecated="not deprecated">
  68321. <doc>
  68322. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  68323. </doc>
  68324. </field>
  68325. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  68326. transient="false" volatile="false"
  68327. static="true" final="true" visibility="public"
  68328. deprecated="not deprecated">
  68329. <doc>
  68330. <![CDATA[Output table name]]>
  68331. </doc>
  68332. </field>
  68333. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  68334. transient="false" volatile="false"
  68335. static="true" final="true" visibility="public"
  68336. deprecated="not deprecated">
  68337. <doc>
  68338. <![CDATA[Field names in the Output table]]>
  68339. </doc>
  68340. </field>
  68341. <field name="OUTPUT_FIELD_COUNT_PROPERTY" type="java.lang.String"
  68342. transient="false" volatile="false"
  68343. static="true" final="true" visibility="public"
  68344. deprecated="not deprecated">
  68345. <doc>
  68346. <![CDATA[Number of fields in the Output table]]>
  68347. </doc>
  68348. </field>
  68349. <doc>
  68350. <![CDATA[A container for configuration property names for jobs with DB input/output.
  68351. The job can be configured using the static methods in this class,
  68352. {@link DBInputFormat}, and {@link DBOutputFormat}.
  68353. Alternatively, the properties can be set in the configuration with proper
  68354. values.
  68355. @see DBConfiguration#configureDB(Configuration, String, String, String, String)
  68356. @see DBInputFormat#setInput(Job, Class, String, String)
  68357. @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
  68358. @see DBOutputFormat#setOutput(Job, String, String...)]]>
  68359. </doc>
  68360. </class>
  68361. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  68362. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  68363. <class name="DBInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  68364. abstract="false"
  68365. static="false" final="false" visibility="public"
  68366. deprecated="not deprecated">
  68367. <implements name="org.apache.hadoop.conf.Configurable"/>
  68368. <constructor name="DBInputFormat"
  68369. static="false" final="false" visibility="public"
  68370. deprecated="not deprecated">
  68371. </constructor>
  68372. <method name="setConf"
  68373. abstract="false" native="false" synchronized="false"
  68374. static="false" final="false" visibility="public"
  68375. deprecated="not deprecated">
  68376. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68377. <doc>
  68378. <![CDATA[{@inheritDoc}]]>
  68379. </doc>
  68380. </method>
  68381. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  68382. abstract="false" native="false" synchronized="false"
  68383. static="false" final="false" visibility="public"
  68384. deprecated="not deprecated">
  68385. </method>
  68386. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  68387. abstract="false" native="false" synchronized="false"
  68388. static="false" final="false" visibility="public"
  68389. deprecated="not deprecated">
  68390. </method>
  68391. <method name="getConnection" return="java.sql.Connection"
  68392. abstract="false" native="false" synchronized="false"
  68393. static="false" final="false" visibility="public"
  68394. deprecated="not deprecated">
  68395. </method>
  68396. <method name="getDBProductName" return="java.lang.String"
  68397. abstract="false" native="false" synchronized="false"
  68398. static="false" final="false" visibility="public"
  68399. deprecated="not deprecated">
  68400. </method>
  68401. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  68402. abstract="false" native="false" synchronized="false"
  68403. static="false" final="false" visibility="protected"
  68404. deprecated="not deprecated">
  68405. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  68406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68407. <exception name="IOException" type="java.io.IOException"/>
  68408. </method>
  68409. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  68410. abstract="false" native="false" synchronized="false"
  68411. static="false" final="false" visibility="public"
  68412. deprecated="not deprecated">
  68413. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  68414. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68415. <exception name="IOException" type="java.io.IOException"/>
  68416. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68417. <doc>
  68418. <![CDATA[{@inheritDoc}]]>
  68419. </doc>
  68420. </method>
  68421. <method name="getSplits" return="java.util.List"
  68422. abstract="false" native="false" synchronized="false"
  68423. static="false" final="false" visibility="public"
  68424. deprecated="not deprecated">
  68425. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  68426. <exception name="IOException" type="java.io.IOException"/>
  68427. <doc>
  68428. <![CDATA[{@inheritDoc}]]>
  68429. </doc>
  68430. </method>
  68431. <method name="getCountQuery" return="java.lang.String"
  68432. abstract="false" native="false" synchronized="false"
  68433. static="false" final="false" visibility="protected"
  68434. deprecated="not deprecated">
  68435. <doc>
  68436. <![CDATA[Returns the query for getting the total number of rows,
  68437. subclasses can override this for custom behaviour.]]>
  68438. </doc>
  68439. </method>
  68440. <method name="setInput"
  68441. abstract="false" native="false" synchronized="false"
  68442. static="true" final="false" visibility="public"
  68443. deprecated="not deprecated">
  68444. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  68445. <param name="inputClass" type="java.lang.Class"/>
  68446. <param name="tableName" type="java.lang.String"/>
  68447. <param name="conditions" type="java.lang.String"/>
  68448. <param name="orderBy" type="java.lang.String"/>
  68449. <param name="fieldNames" type="java.lang.String[]"/>
  68450. <doc>
  68451. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  68452. @param job The map-reduce job
  68453. @param inputClass the class object implementing DBWritable, which is the
  68454. Java object holding tuple fields.
  68455. @param tableName The table to read data from
  68456. @param conditions The condition which to select data with,
  68457. eg. '(updated > 20070101 AND length > 0)'
  68458. @param orderBy the fieldNames in the orderBy clause.
  68459. @param fieldNames The field names in the table
  68460. @see #setInput(Job, Class, String, String)]]>
  68461. </doc>
  68462. </method>
  68463. <method name="setInput"
  68464. abstract="false" native="false" synchronized="false"
  68465. static="true" final="false" visibility="public"
  68466. deprecated="not deprecated">
  68467. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  68468. <param name="inputClass" type="java.lang.Class"/>
  68469. <param name="inputQuery" type="java.lang.String"/>
  68470. <param name="inputCountQuery" type="java.lang.String"/>
  68471. <doc>
  68472. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  68473. @param job The map-reduce job
  68474. @param inputClass the class object implementing DBWritable, which is the
  68475. Java object holding tuple fields.
  68476. @param inputQuery the input query to select fields. Example :
  68477. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  68478. @param inputCountQuery the input query that returns
  68479. the number of records in the table.
  68480. Example : "SELECT COUNT(f1) FROM Mytable"
  68481. @see #setInput(Job, Class, String, String, String, String...)]]>
  68482. </doc>
  68483. </method>
  68484. <method name="closeConnection"
  68485. abstract="false" native="false" synchronized="false"
  68486. static="false" final="false" visibility="protected"
  68487. deprecated="not deprecated">
  68488. </method>
  68489. <doc>
  68490. <![CDATA[A InputFormat that reads input data from an SQL table.
  68491. <p>
  68492. DBInputFormat emits LongWritables containing the record number as
  68493. key and DBWritables as value.
  68494. The SQL query, and input class can be using one of the two
  68495. setInput methods.]]>
  68496. </doc>
  68497. </class>
  68498. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  68499. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  68500. <class name="DBInputFormat.DBInputSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  68501. abstract="false"
  68502. static="true" final="false" visibility="public"
  68503. deprecated="not deprecated">
  68504. <implements name="org.apache.hadoop.io.Writable"/>
  68505. <constructor name="DBInputFormat.DBInputSplit"
  68506. static="false" final="false" visibility="public"
  68507. deprecated="not deprecated">
  68508. <doc>
  68509. <![CDATA[Default Constructor]]>
  68510. </doc>
  68511. </constructor>
  68512. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  68513. static="false" final="false" visibility="public"
  68514. deprecated="not deprecated">
  68515. <doc>
  68516. <![CDATA[Convenience Constructor
  68517. @param start the index of the first row to select
  68518. @param end the index of the last row to select]]>
  68519. </doc>
  68520. </constructor>
  68521. <method name="getLocations" return="java.lang.String[]"
  68522. abstract="false" native="false" synchronized="false"
  68523. static="false" final="false" visibility="public"
  68524. deprecated="not deprecated">
  68525. <exception name="IOException" type="java.io.IOException"/>
  68526. <doc>
  68527. <![CDATA[{@inheritDoc}]]>
  68528. </doc>
  68529. </method>
  68530. <method name="getStart" return="long"
  68531. abstract="false" native="false" synchronized="false"
  68532. static="false" final="false" visibility="public"
  68533. deprecated="not deprecated">
  68534. <doc>
  68535. <![CDATA[@return The index of the first row to select]]>
  68536. </doc>
  68537. </method>
  68538. <method name="getEnd" return="long"
  68539. abstract="false" native="false" synchronized="false"
  68540. static="false" final="false" visibility="public"
  68541. deprecated="not deprecated">
  68542. <doc>
  68543. <![CDATA[@return The index of the last row to select]]>
  68544. </doc>
  68545. </method>
  68546. <method name="getLength" return="long"
  68547. abstract="false" native="false" synchronized="false"
  68548. static="false" final="false" visibility="public"
  68549. deprecated="not deprecated">
  68550. <exception name="IOException" type="java.io.IOException"/>
  68551. <doc>
  68552. <![CDATA[@return The total row count in this split]]>
  68553. </doc>
  68554. </method>
  68555. <method name="readFields"
  68556. abstract="false" native="false" synchronized="false"
  68557. static="false" final="false" visibility="public"
  68558. deprecated="not deprecated">
  68559. <param name="input" type="java.io.DataInput"/>
  68560. <exception name="IOException" type="java.io.IOException"/>
  68561. <doc>
  68562. <![CDATA[{@inheritDoc}]]>
  68563. </doc>
  68564. </method>
  68565. <method name="write"
  68566. abstract="false" native="false" synchronized="false"
  68567. static="false" final="false" visibility="public"
  68568. deprecated="not deprecated">
  68569. <param name="output" type="java.io.DataOutput"/>
  68570. <exception name="IOException" type="java.io.IOException"/>
  68571. <doc>
  68572. <![CDATA[{@inheritDoc}]]>
  68573. </doc>
  68574. </method>
  68575. <doc>
  68576. <![CDATA[A InputSplit that spans a set of rows]]>
  68577. </doc>
  68578. </class>
  68579. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  68580. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  68581. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  68582. abstract="false"
  68583. static="true" final="false" visibility="public"
  68584. deprecated="not deprecated">
  68585. <implements name="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  68586. <implements name="org.apache.hadoop.io.Writable"/>
  68587. <constructor name="DBInputFormat.NullDBWritable"
  68588. static="false" final="false" visibility="public"
  68589. deprecated="not deprecated">
  68590. </constructor>
  68591. <method name="readFields"
  68592. abstract="false" native="false" synchronized="false"
  68593. static="false" final="false" visibility="public"
  68594. deprecated="not deprecated">
  68595. <param name="in" type="java.io.DataInput"/>
  68596. <exception name="IOException" type="java.io.IOException"/>
  68597. </method>
  68598. <method name="readFields"
  68599. abstract="false" native="false" synchronized="false"
  68600. static="false" final="false" visibility="public"
  68601. deprecated="not deprecated">
  68602. <param name="arg0" type="java.sql.ResultSet"/>
  68603. <exception name="SQLException" type="java.sql.SQLException"/>
  68604. </method>
  68605. <method name="write"
  68606. abstract="false" native="false" synchronized="false"
  68607. static="false" final="false" visibility="public"
  68608. deprecated="not deprecated">
  68609. <param name="out" type="java.io.DataOutput"/>
  68610. <exception name="IOException" type="java.io.IOException"/>
  68611. </method>
  68612. <method name="write"
  68613. abstract="false" native="false" synchronized="false"
  68614. static="false" final="false" visibility="public"
  68615. deprecated="not deprecated">
  68616. <param name="arg0" type="java.sql.PreparedStatement"/>
  68617. <exception name="SQLException" type="java.sql.SQLException"/>
  68618. </method>
  68619. <doc>
  68620. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  68621. </doc>
  68622. </class>
  68623. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  68624. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  68625. <class name="DBOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  68626. abstract="false"
  68627. static="false" final="false" visibility="public"
  68628. deprecated="not deprecated">
  68629. <constructor name="DBOutputFormat"
  68630. static="false" final="false" visibility="public"
  68631. deprecated="not deprecated">
  68632. </constructor>
  68633. <method name="checkOutputSpecs"
  68634. abstract="false" native="false" synchronized="false"
  68635. static="false" final="false" visibility="public"
  68636. deprecated="not deprecated">
  68637. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  68638. <exception name="IOException" type="java.io.IOException"/>
  68639. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68640. </method>
  68641. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68642. abstract="false" native="false" synchronized="false"
  68643. static="false" final="false" visibility="public"
  68644. deprecated="not deprecated">
  68645. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68646. <exception name="IOException" type="java.io.IOException"/>
  68647. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68648. </method>
  68649. <method name="constructQuery" return="java.lang.String"
  68650. abstract="false" native="false" synchronized="false"
  68651. static="false" final="false" visibility="public"
  68652. deprecated="not deprecated">
  68653. <param name="table" type="java.lang.String"/>
  68654. <param name="fieldNames" type="java.lang.String[]"/>
  68655. <doc>
  68656. <![CDATA[Constructs the query used as the prepared statement to insert data.
  68657. @param table
  68658. the table to insert into
  68659. @param fieldNames
  68660. the fields to insert into. If field names are unknown, supply an
  68661. array of nulls.]]>
  68662. </doc>
  68663. </method>
  68664. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68665. abstract="false" native="false" synchronized="false"
  68666. static="false" final="false" visibility="public"
  68667. deprecated="not deprecated">
  68668. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68669. <exception name="IOException" type="java.io.IOException"/>
  68670. <doc>
  68671. <![CDATA[{@inheritDoc}]]>
  68672. </doc>
  68673. </method>
  68674. <method name="setOutput"
  68675. abstract="false" native="false" synchronized="false"
  68676. static="true" final="false" visibility="public"
  68677. deprecated="not deprecated">
  68678. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  68679. <param name="tableName" type="java.lang.String"/>
  68680. <param name="fieldNames" type="java.lang.String[]"/>
  68681. <exception name="IOException" type="java.io.IOException"/>
  68682. <doc>
  68683. <![CDATA[Initializes the reduce-part of the job with
  68684. the appropriate output settings
  68685. @param job The job
  68686. @param tableName The table to insert data into
  68687. @param fieldNames The field names in the table.]]>
  68688. </doc>
  68689. </method>
  68690. <method name="setOutput"
  68691. abstract="false" native="false" synchronized="false"
  68692. static="true" final="false" visibility="public"
  68693. deprecated="not deprecated">
  68694. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  68695. <param name="tableName" type="java.lang.String"/>
  68696. <param name="fieldCount" type="int"/>
  68697. <exception name="IOException" type="java.io.IOException"/>
  68698. <doc>
  68699. <![CDATA[Initializes the reduce-part of the job
  68700. with the appropriate output settings
  68701. @param job The job
  68702. @param tableName The table to insert data into
  68703. @param fieldCount the number of fields in the table.]]>
  68704. </doc>
  68705. </method>
  68706. <doc>
  68707. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  68708. <p>
  68709. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  68710. key has a type extending DBWritable. Returned {@link RecordWriter}
  68711. writes <b>only the key</b> to the database with a batch SQL query.]]>
  68712. </doc>
  68713. </class>
  68714. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  68715. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  68716. <class name="DBOutputFormat.DBRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  68717. abstract="false"
  68718. static="false" final="false" visibility="public"
  68719. deprecated="not deprecated">
  68720. <constructor name="DBOutputFormat.DBRecordWriter"
  68721. static="false" final="false" visibility="public"
  68722. deprecated="not deprecated">
  68723. <exception name="SQLException" type="java.sql.SQLException"/>
  68724. </constructor>
  68725. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  68726. static="false" final="false" visibility="public"
  68727. deprecated="not deprecated">
  68728. <exception name="SQLException" type="java.sql.SQLException"/>
  68729. </constructor>
  68730. <method name="getConnection" return="java.sql.Connection"
  68731. abstract="false" native="false" synchronized="false"
  68732. static="false" final="false" visibility="public"
  68733. deprecated="not deprecated">
  68734. </method>
  68735. <method name="getStatement" return="java.sql.PreparedStatement"
  68736. abstract="false" native="false" synchronized="false"
  68737. static="false" final="false" visibility="public"
  68738. deprecated="not deprecated">
  68739. </method>
  68740. <method name="close"
  68741. abstract="false" native="false" synchronized="false"
  68742. static="false" final="false" visibility="public"
  68743. deprecated="not deprecated">
  68744. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68745. <exception name="IOException" type="java.io.IOException"/>
  68746. <doc>
  68747. <![CDATA[{@inheritDoc}]]>
  68748. </doc>
  68749. </method>
  68750. <method name="write"
  68751. abstract="false" native="false" synchronized="false"
  68752. static="false" final="false" visibility="public"
  68753. deprecated="not deprecated">
  68754. <param name="key" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  68755. <param name="value" type="java.lang.Object"/>
  68756. <exception name="IOException" type="java.io.IOException"/>
  68757. <doc>
  68758. <![CDATA[{@inheritDoc}]]>
  68759. </doc>
  68760. </method>
  68761. <doc>
  68762. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  68763. </doc>
  68764. </class>
  68765. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  68766. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  68767. <class name="DBRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  68768. abstract="false"
  68769. static="false" final="false" visibility="public"
  68770. deprecated="not deprecated">
  68771. <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"
  68772. static="false" final="false" visibility="public"
  68773. deprecated="not deprecated">
  68774. <exception name="SQLException" type="java.sql.SQLException"/>
  68775. <doc>
  68776. <![CDATA[@param split The InputSplit to read data for
  68777. @throws SQLException]]>
  68778. </doc>
  68779. </constructor>
  68780. <method name="executeQuery" return="java.sql.ResultSet"
  68781. abstract="false" native="false" synchronized="false"
  68782. static="false" final="false" visibility="protected"
  68783. deprecated="not deprecated">
  68784. <param name="query" type="java.lang.String"/>
  68785. <exception name="SQLException" type="java.sql.SQLException"/>
  68786. </method>
  68787. <method name="getSelectQuery" return="java.lang.String"
  68788. abstract="false" native="false" synchronized="false"
  68789. static="false" final="false" visibility="protected"
  68790. deprecated="not deprecated">
  68791. <doc>
  68792. <![CDATA[Returns the query for selecting the records,
  68793. subclasses can override this for custom behaviour.]]>
  68794. </doc>
  68795. </method>
  68796. <method name="close"
  68797. abstract="false" native="false" synchronized="false"
  68798. static="false" final="false" visibility="public"
  68799. deprecated="not deprecated">
  68800. <exception name="IOException" type="java.io.IOException"/>
  68801. <doc>
  68802. <![CDATA[{@inheritDoc}]]>
  68803. </doc>
  68804. </method>
  68805. <method name="initialize"
  68806. abstract="false" native="false" synchronized="false"
  68807. static="false" final="false" visibility="public"
  68808. deprecated="not deprecated">
  68809. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  68810. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68811. <exception name="IOException" type="java.io.IOException"/>
  68812. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68813. </method>
  68814. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  68815. abstract="false" native="false" synchronized="false"
  68816. static="false" final="false" visibility="public"
  68817. deprecated="not deprecated">
  68818. <doc>
  68819. <![CDATA[{@inheritDoc}]]>
  68820. </doc>
  68821. </method>
  68822. <method name="getCurrentValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  68823. abstract="false" native="false" synchronized="false"
  68824. static="false" final="false" visibility="public"
  68825. deprecated="not deprecated">
  68826. <doc>
  68827. <![CDATA[{@inheritDoc}]]>
  68828. </doc>
  68829. </method>
  68830. <method name="createValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  68831. abstract="false" native="false" synchronized="false"
  68832. static="false" final="false" visibility="public"
  68833. deprecated="deprecated, no comment">
  68834. <doc>
  68835. <![CDATA[@deprecated]]>
  68836. </doc>
  68837. </method>
  68838. <method name="getPos" return="long"
  68839. abstract="false" native="false" synchronized="false"
  68840. static="false" final="false" visibility="public"
  68841. deprecated="deprecated, no comment">
  68842. <exception name="IOException" type="java.io.IOException"/>
  68843. <doc>
  68844. <![CDATA[@deprecated]]>
  68845. </doc>
  68846. </method>
  68847. <method name="next" return="boolean"
  68848. abstract="false" native="false" synchronized="false"
  68849. static="false" final="false" visibility="public"
  68850. deprecated="Use {@link #nextKeyValue()}">
  68851. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  68852. <param name="value" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  68853. <exception name="IOException" type="java.io.IOException"/>
  68854. <doc>
  68855. <![CDATA[@deprecated Use {@link #nextKeyValue()}]]>
  68856. </doc>
  68857. </method>
  68858. <method name="getProgress" return="float"
  68859. abstract="false" native="false" synchronized="false"
  68860. static="false" final="false" visibility="public"
  68861. deprecated="not deprecated">
  68862. <exception name="IOException" type="java.io.IOException"/>
  68863. <doc>
  68864. <![CDATA[{@inheritDoc}]]>
  68865. </doc>
  68866. </method>
  68867. <method name="nextKeyValue" return="boolean"
  68868. abstract="false" native="false" synchronized="false"
  68869. static="false" final="false" visibility="public"
  68870. deprecated="not deprecated">
  68871. <exception name="IOException" type="java.io.IOException"/>
  68872. <doc>
  68873. <![CDATA[{@inheritDoc}]]>
  68874. </doc>
  68875. </method>
  68876. <method name="getSplit" return="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  68877. abstract="false" native="false" synchronized="false"
  68878. static="false" final="false" visibility="protected"
  68879. deprecated="not deprecated">
  68880. </method>
  68881. <method name="getFieldNames" return="java.lang.String[]"
  68882. abstract="false" native="false" synchronized="false"
  68883. static="false" final="false" visibility="protected"
  68884. deprecated="not deprecated">
  68885. </method>
  68886. <method name="getTableName" return="java.lang.String"
  68887. abstract="false" native="false" synchronized="false"
  68888. static="false" final="false" visibility="protected"
  68889. deprecated="not deprecated">
  68890. </method>
  68891. <method name="getConditions" return="java.lang.String"
  68892. abstract="false" native="false" synchronized="false"
  68893. static="false" final="false" visibility="protected"
  68894. deprecated="not deprecated">
  68895. </method>
  68896. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  68897. abstract="false" native="false" synchronized="false"
  68898. static="false" final="false" visibility="protected"
  68899. deprecated="not deprecated">
  68900. </method>
  68901. <method name="getConnection" return="java.sql.Connection"
  68902. abstract="false" native="false" synchronized="false"
  68903. static="false" final="false" visibility="protected"
  68904. deprecated="not deprecated">
  68905. </method>
  68906. <method name="getStatement" return="java.sql.PreparedStatement"
  68907. abstract="false" native="false" synchronized="false"
  68908. static="false" final="false" visibility="protected"
  68909. deprecated="not deprecated">
  68910. </method>
  68911. <method name="setStatement"
  68912. abstract="false" native="false" synchronized="false"
  68913. static="false" final="false" visibility="protected"
  68914. deprecated="not deprecated">
  68915. <param name="stmt" type="java.sql.PreparedStatement"/>
  68916. </method>
  68917. <field name="statement" type="java.sql.PreparedStatement"
  68918. transient="false" volatile="false"
  68919. static="false" final="false" visibility="protected"
  68920. deprecated="not deprecated">
  68921. </field>
  68922. <doc>
  68923. <![CDATA[A RecordReader that reads records from a SQL table.
  68924. Emits LongWritables containing the record number as
  68925. key and DBWritables as value.]]>
  68926. </doc>
  68927. </class>
  68928. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  68929. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  68930. <interface name="DBSplitter" abstract="true"
  68931. static="false" final="false" visibility="public"
  68932. deprecated="not deprecated">
  68933. <method name="split" return="java.util.List"
  68934. abstract="false" native="false" synchronized="false"
  68935. static="false" final="false" visibility="public"
  68936. deprecated="not deprecated">
  68937. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68938. <param name="results" type="java.sql.ResultSet"/>
  68939. <param name="colName" type="java.lang.String"/>
  68940. <exception name="SQLException" type="java.sql.SQLException"/>
  68941. <doc>
  68942. <![CDATA[Given a ResultSet containing one record (and already advanced to that record)
  68943. with two columns (a low value, and a high value, both of the same type), determine
  68944. a set of splits that span the given values.]]>
  68945. </doc>
  68946. </method>
  68947. <doc>
  68948. <![CDATA[DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat.
  68949. DataDrivenDBInputFormat needs to interpolate between two values that
  68950. represent the lowest and highest valued records to import. Depending
  68951. on the data-type of the column, this requires different behavior.
  68952. DBSplitter implementations should perform this for a data type or family
  68953. of data types.]]>
  68954. </doc>
  68955. </interface>
  68956. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  68957. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  68958. <interface name="DBWritable" abstract="true"
  68959. static="false" final="false" visibility="public"
  68960. deprecated="not deprecated">
  68961. <method name="write"
  68962. abstract="false" native="false" synchronized="false"
  68963. static="false" final="false" visibility="public"
  68964. deprecated="not deprecated">
  68965. <param name="statement" type="java.sql.PreparedStatement"/>
  68966. <exception name="SQLException" type="java.sql.SQLException"/>
  68967. <doc>
  68968. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  68969. @param statement the statement that the fields are put into.
  68970. @throws SQLException]]>
  68971. </doc>
  68972. </method>
  68973. <method name="readFields"
  68974. abstract="false" native="false" synchronized="false"
  68975. static="false" final="false" visibility="public"
  68976. deprecated="not deprecated">
  68977. <param name="resultSet" type="java.sql.ResultSet"/>
  68978. <exception name="SQLException" type="java.sql.SQLException"/>
  68979. <doc>
  68980. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  68981. @param resultSet the {@link ResultSet} to get the fields from.
  68982. @throws SQLException]]>
  68983. </doc>
  68984. </method>
  68985. <doc>
  68986. <![CDATA[Objects that are read from/written to a database should implement
  68987. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  68988. except that the {@link #write(PreparedStatement)} method takes a
  68989. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  68990. takes a {@link ResultSet}.
  68991. <p>
  68992. Implementations are responsible for writing the fields of the object
  68993. to PreparedStatement, and reading the fields of the object from the
  68994. ResultSet.
  68995. <p>Example:</p>
  68996. If we have the following table in the database :
  68997. <pre>
  68998. CREATE TABLE MyTable (
  68999. counter INTEGER NOT NULL,
  69000. timestamp BIGINT NOT NULL,
  69001. );
  69002. </pre>
  69003. then we can read/write the tuples from/to the table with :
  69004. <p><pre>
  69005. public class MyWritable implements Writable, DBWritable {
  69006. // Some data
  69007. private int counter;
  69008. private long timestamp;
  69009. //Writable#write() implementation
  69010. public void write(DataOutput out) throws IOException {
  69011. out.writeInt(counter);
  69012. out.writeLong(timestamp);
  69013. }
  69014. //Writable#readFields() implementation
  69015. public void readFields(DataInput in) throws IOException {
  69016. counter = in.readInt();
  69017. timestamp = in.readLong();
  69018. }
  69019. public void write(PreparedStatement statement) throws SQLException {
  69020. statement.setInt(1, counter);
  69021. statement.setLong(2, timestamp);
  69022. }
  69023. public void readFields(ResultSet resultSet) throws SQLException {
  69024. counter = resultSet.getInt(1);
  69025. timestamp = resultSet.getLong(2);
  69026. }
  69027. }
  69028. </pre></p>]]>
  69029. </doc>
  69030. </interface>
  69031. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  69032. <!-- start class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  69033. <class name="FloatSplitter" extends="java.lang.Object"
  69034. abstract="false"
  69035. static="false" final="false" visibility="public"
  69036. deprecated="not deprecated">
  69037. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  69038. <constructor name="FloatSplitter"
  69039. static="false" final="false" visibility="public"
  69040. deprecated="not deprecated">
  69041. </constructor>
  69042. <method name="split" return="java.util.List"
  69043. abstract="false" native="false" synchronized="false"
  69044. static="false" final="false" visibility="public"
  69045. deprecated="not deprecated">
  69046. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69047. <param name="results" type="java.sql.ResultSet"/>
  69048. <param name="colName" type="java.lang.String"/>
  69049. <exception name="SQLException" type="java.sql.SQLException"/>
  69050. </method>
  69051. <doc>
  69052. <![CDATA[Implement DBSplitter over floating-point values.]]>
  69053. </doc>
  69054. </class>
  69055. <!-- end class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  69056. <!-- start class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  69057. <class name="IntegerSplitter" extends="java.lang.Object"
  69058. abstract="false"
  69059. static="false" final="false" visibility="public"
  69060. deprecated="not deprecated">
  69061. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  69062. <constructor name="IntegerSplitter"
  69063. static="false" final="false" visibility="public"
  69064. deprecated="not deprecated">
  69065. </constructor>
  69066. <method name="split" return="java.util.List"
  69067. abstract="false" native="false" synchronized="false"
  69068. static="false" final="false" visibility="public"
  69069. deprecated="not deprecated">
  69070. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69071. <param name="results" type="java.sql.ResultSet"/>
  69072. <param name="colName" type="java.lang.String"/>
  69073. <exception name="SQLException" type="java.sql.SQLException"/>
  69074. </method>
  69075. <doc>
  69076. <![CDATA[Implement DBSplitter over integer values.]]>
  69077. </doc>
  69078. </class>
  69079. <!-- end class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  69080. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  69081. <class name="MySQLDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  69082. abstract="false"
  69083. static="false" final="false" visibility="public"
  69084. deprecated="not deprecated">
  69085. <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"
  69086. static="false" final="false" visibility="public"
  69087. deprecated="not deprecated">
  69088. <exception name="SQLException" type="java.sql.SQLException"/>
  69089. </constructor>
  69090. <method name="executeQuery" return="java.sql.ResultSet"
  69091. abstract="false" native="false" synchronized="false"
  69092. static="false" final="false" visibility="protected"
  69093. deprecated="not deprecated">
  69094. <param name="query" type="java.lang.String"/>
  69095. <exception name="SQLException" type="java.sql.SQLException"/>
  69096. </method>
  69097. <doc>
  69098. <![CDATA[A RecordReader that reads records from a MySQL table via DataDrivenDBRecordReader]]>
  69099. </doc>
  69100. </class>
  69101. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  69102. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  69103. <class name="MySQLDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  69104. abstract="false"
  69105. static="false" final="false" visibility="public"
  69106. deprecated="not deprecated">
  69107. <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"
  69108. static="false" final="false" visibility="public"
  69109. deprecated="not deprecated">
  69110. <exception name="SQLException" type="java.sql.SQLException"/>
  69111. </constructor>
  69112. <method name="executeQuery" return="java.sql.ResultSet"
  69113. abstract="false" native="false" synchronized="false"
  69114. static="false" final="false" visibility="protected"
  69115. deprecated="not deprecated">
  69116. <param name="query" type="java.lang.String"/>
  69117. <exception name="SQLException" type="java.sql.SQLException"/>
  69118. </method>
  69119. <doc>
  69120. <![CDATA[A RecordReader that reads records from a MySQL table.]]>
  69121. </doc>
  69122. </class>
  69123. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  69124. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  69125. <class name="OracleDataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat"
  69126. abstract="false"
  69127. static="false" final="false" visibility="public"
  69128. deprecated="not deprecated">
  69129. <implements name="org.apache.hadoop.conf.Configurable"/>
  69130. <constructor name="OracleDataDrivenDBInputFormat"
  69131. static="false" final="false" visibility="public"
  69132. deprecated="not deprecated">
  69133. </constructor>
  69134. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  69135. abstract="false" native="false" synchronized="false"
  69136. static="false" final="false" visibility="protected"
  69137. deprecated="not deprecated">
  69138. <param name="sqlDataType" type="int"/>
  69139. <doc>
  69140. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  69141. </doc>
  69142. </method>
  69143. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69144. abstract="false" native="false" synchronized="false"
  69145. static="false" final="false" visibility="protected"
  69146. deprecated="not deprecated">
  69147. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  69148. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69149. <exception name="IOException" type="java.io.IOException"/>
  69150. </method>
  69151. <doc>
  69152. <![CDATA[A InputFormat that reads input data from an SQL table in an Oracle db.]]>
  69153. </doc>
  69154. </class>
  69155. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  69156. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  69157. <class name="OracleDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  69158. abstract="false"
  69159. static="false" final="false" visibility="public"
  69160. deprecated="not deprecated">
  69161. <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"
  69162. static="false" final="false" visibility="public"
  69163. deprecated="not deprecated">
  69164. <exception name="SQLException" type="java.sql.SQLException"/>
  69165. </constructor>
  69166. <doc>
  69167. <![CDATA[A RecordReader that reads records from a Oracle table via DataDrivenDBRecordReader]]>
  69168. </doc>
  69169. </class>
  69170. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  69171. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  69172. <class name="OracleDateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.DateSplitter"
  69173. abstract="false"
  69174. static="false" final="false" visibility="public"
  69175. deprecated="not deprecated">
  69176. <constructor name="OracleDateSplitter"
  69177. static="false" final="false" visibility="public"
  69178. deprecated="not deprecated">
  69179. </constructor>
  69180. <method name="dateToString" return="java.lang.String"
  69181. abstract="false" native="false" synchronized="false"
  69182. static="false" final="false" visibility="protected"
  69183. deprecated="not deprecated">
  69184. <param name="d" type="java.util.Date"/>
  69185. </method>
  69186. <doc>
  69187. <![CDATA[Implement DBSplitter over date/time values returned by an Oracle db.
  69188. Make use of logic from DateSplitter, since this just needs to use
  69189. some Oracle-specific functions on the formatting end when generating
  69190. InputSplits.]]>
  69191. </doc>
  69192. </class>
  69193. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  69194. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  69195. <class name="OracleDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  69196. abstract="false"
  69197. static="false" final="false" visibility="public"
  69198. deprecated="not deprecated">
  69199. <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"
  69200. static="false" final="false" visibility="public"
  69201. deprecated="not deprecated">
  69202. <exception name="SQLException" type="java.sql.SQLException"/>
  69203. </constructor>
  69204. <method name="getSelectQuery" return="java.lang.String"
  69205. abstract="false" native="false" synchronized="false"
  69206. static="false" final="false" visibility="protected"
  69207. deprecated="not deprecated">
  69208. <doc>
  69209. <![CDATA[Returns the query for selecting the records from an Oracle DB.]]>
  69210. </doc>
  69211. </method>
  69212. <method name="setSessionTimeZone"
  69213. abstract="false" native="false" synchronized="false"
  69214. static="true" final="false" visibility="public"
  69215. deprecated="not deprecated">
  69216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69217. <param name="conn" type="java.sql.Connection"/>
  69218. <exception name="SQLException" type="java.sql.SQLException"/>
  69219. <doc>
  69220. <![CDATA[Set session time zone
  69221. @param conf The current configuration.
  69222. We read the 'oracle.sessionTimeZone' property from here.
  69223. @param conn The connection to alter the timezone properties of.]]>
  69224. </doc>
  69225. </method>
  69226. <field name="SESSION_TIMEZONE_KEY" type="java.lang.String"
  69227. transient="false" volatile="false"
  69228. static="true" final="true" visibility="public"
  69229. deprecated="not deprecated">
  69230. <doc>
  69231. <![CDATA[Configuration key to set to a timezone string.]]>
  69232. </doc>
  69233. </field>
  69234. <doc>
  69235. <![CDATA[A RecordReader that reads records from an Oracle SQL table.]]>
  69236. </doc>
  69237. </class>
  69238. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  69239. <!-- start class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  69240. <class name="TextSplitter" extends="org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter"
  69241. abstract="false"
  69242. static="false" final="false" visibility="public"
  69243. deprecated="not deprecated">
  69244. <constructor name="TextSplitter"
  69245. static="false" final="false" visibility="public"
  69246. deprecated="not deprecated">
  69247. </constructor>
  69248. <method name="split" return="java.util.List"
  69249. abstract="false" native="false" synchronized="false"
  69250. static="false" final="false" visibility="public"
  69251. deprecated="not deprecated">
  69252. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69253. <param name="results" type="java.sql.ResultSet"/>
  69254. <param name="colName" type="java.lang.String"/>
  69255. <exception name="SQLException" type="java.sql.SQLException"/>
  69256. <doc>
  69257. <![CDATA[This method needs to determine the splits between two user-provided strings.
  69258. In the case where the user's strings are 'A' and 'Z', this is not hard; we
  69259. could create two splits from ['A', 'M') and ['M', 'Z'], 26 splits for strings
  69260. beginning with each letter, etc.
  69261. If a user has provided us with the strings "Ham" and "Haze", however, we need
  69262. to create splits that differ in the third letter.
  69263. The algorithm used is as follows:
  69264. Since there are 2**16 unicode characters, we interpret characters as digits in
  69265. base 65536. Given a string 's' containing characters s_0, s_1 .. s_n, we interpret
  69266. the string as the number: 0.s_0 s_1 s_2.. s_n in base 65536. Having mapped the
  69267. low and high strings into floating-point values, we then use the BigDecimalSplitter
  69268. to establish the even split points, then map the resulting floating point values
  69269. back into strings.]]>
  69270. </doc>
  69271. </method>
  69272. <doc>
  69273. <![CDATA[Implement DBSplitter over text strings.]]>
  69274. </doc>
  69275. </class>
  69276. <!-- end class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  69277. </package>
  69278. <package name="org.apache.hadoop.mapreduce.lib.fieldsel">
  69279. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  69280. <class name="FieldSelectionHelper" extends="java.lang.Object"
  69281. abstract="false"
  69282. static="false" final="false" visibility="public"
  69283. deprecated="not deprecated">
  69284. <constructor name="FieldSelectionHelper"
  69285. static="false" final="false" visibility="public"
  69286. deprecated="not deprecated">
  69287. </constructor>
  69288. <constructor name="FieldSelectionHelper" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  69289. static="false" final="false" visibility="public"
  69290. deprecated="not deprecated">
  69291. </constructor>
  69292. <method name="parseOutputKeyValueSpec" return="int"
  69293. abstract="false" native="false" synchronized="false"
  69294. static="true" final="false" visibility="public"
  69295. deprecated="not deprecated">
  69296. <param name="keyValueSpec" type="java.lang.String"/>
  69297. <param name="keyFieldList" type="java.util.List"/>
  69298. <param name="valueFieldList" type="java.util.List"/>
  69299. </method>
  69300. <method name="specToString" return="java.lang.String"
  69301. abstract="false" native="false" synchronized="false"
  69302. static="true" final="false" visibility="public"
  69303. deprecated="not deprecated">
  69304. <param name="fieldSeparator" type="java.lang.String"/>
  69305. <param name="keyValueSpec" type="java.lang.String"/>
  69306. <param name="allValueFieldsFrom" type="int"/>
  69307. <param name="keyFieldList" type="java.util.List"/>
  69308. <param name="valueFieldList" type="java.util.List"/>
  69309. </method>
  69310. <method name="getKey" return="org.apache.hadoop.io.Text"
  69311. abstract="false" native="false" synchronized="false"
  69312. static="false" final="false" visibility="public"
  69313. deprecated="not deprecated">
  69314. </method>
  69315. <method name="getValue" return="org.apache.hadoop.io.Text"
  69316. abstract="false" native="false" synchronized="false"
  69317. static="false" final="false" visibility="public"
  69318. deprecated="not deprecated">
  69319. </method>
  69320. <method name="extractOutputKeyValue"
  69321. abstract="false" native="false" synchronized="false"
  69322. static="false" final="false" visibility="public"
  69323. deprecated="not deprecated">
  69324. <param name="key" type="java.lang.String"/>
  69325. <param name="val" type="java.lang.String"/>
  69326. <param name="fieldSep" type="java.lang.String"/>
  69327. <param name="keyFieldList" type="java.util.List"/>
  69328. <param name="valFieldList" type="java.util.List"/>
  69329. <param name="allValueFieldsFrom" type="int"/>
  69330. <param name="ignoreKey" type="boolean"/>
  69331. <param name="isMap" type="boolean"/>
  69332. </method>
  69333. <field name="emptyText" type="org.apache.hadoop.io.Text"
  69334. transient="false" volatile="false"
  69335. static="true" final="false" visibility="public"
  69336. deprecated="not deprecated">
  69337. </field>
  69338. <field name="DATA_FIELD_SEPERATOR" type="java.lang.String"
  69339. transient="false" volatile="false"
  69340. static="true" final="true" visibility="public"
  69341. deprecated="not deprecated">
  69342. </field>
  69343. <field name="MAP_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  69344. transient="false" volatile="false"
  69345. static="true" final="true" visibility="public"
  69346. deprecated="not deprecated">
  69347. </field>
  69348. <field name="REDUCE_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  69349. transient="false" volatile="false"
  69350. static="true" final="true" visibility="public"
  69351. deprecated="not deprecated">
  69352. </field>
  69353. <doc>
  69354. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  69355. field selections in a manner similar to unix cut. The input data is treated
  69356. as fields separated by a user specified separator (the default value is
  69357. "\t"). The user can specify a list of fields that form the map output keys,
  69358. and a list of fields that form the map output values. If the inputformat is
  69359. TextInputFormat, the mapper will ignore the key to the map function. and the
  69360. fields are from the value only. Otherwise, the fields are the union of those
  69361. from the key and those from the value.
  69362. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  69363. The map output field list spec is under attribute
  69364. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  69365. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  69366. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  69367. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  69368. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  69369. the fields starting from field 3. The open range field spec applies value fields only.
  69370. They have no effect on the key fields.
  69371. 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,
  69372. and use fields 6,5,1,2,3,7 and above for values.
  69373. The reduce output field list spec is under attribute
  69374. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  69375. The reducer extracts output key/value pairs in a similar manner, except that
  69376. the key is never ignored.]]>
  69377. </doc>
  69378. </class>
  69379. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  69380. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  69381. <class name="FieldSelectionMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  69382. abstract="false"
  69383. static="false" final="false" visibility="public"
  69384. deprecated="not deprecated">
  69385. <constructor name="FieldSelectionMapper"
  69386. static="false" final="false" visibility="public"
  69387. deprecated="not deprecated">
  69388. </constructor>
  69389. <method name="setup"
  69390. abstract="false" native="false" synchronized="false"
  69391. static="false" final="false" visibility="public"
  69392. deprecated="not deprecated">
  69393. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69394. <exception name="IOException" type="java.io.IOException"/>
  69395. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69396. </method>
  69397. <method name="map"
  69398. abstract="false" native="false" synchronized="false"
  69399. static="false" final="false" visibility="public"
  69400. deprecated="not deprecated">
  69401. <param name="key" type="java.lang.Object"/>
  69402. <param name="val" type="java.lang.Object"/>
  69403. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69404. <exception name="IOException" type="java.io.IOException"/>
  69405. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69406. <doc>
  69407. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  69408. </doc>
  69409. </method>
  69410. <field name="LOG" type="org.apache.commons.logging.Log"
  69411. transient="false" volatile="false"
  69412. static="true" final="true" visibility="public"
  69413. deprecated="not deprecated">
  69414. </field>
  69415. <doc>
  69416. <![CDATA[This class implements a mapper class that can be used to perform
  69417. field selections in a manner similar to unix cut. The input data is treated
  69418. as fields separated by a user specified separator (the default value is
  69419. "\t"). The user can specify a list of fields that form the map output keys,
  69420. and a list of fields that form the map output values. If the inputformat is
  69421. TextInputFormat, the mapper will ignore the key to the map function. and the
  69422. fields are from the value only. Otherwise, the fields are the union of those
  69423. from the key and those from the value.
  69424. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  69425. The map output field list spec is under attribute
  69426. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  69427. The value is expected to be like
  69428. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,) separated
  69429. field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec can be a
  69430. simple number (e.g. 5) specifying a specific field, or a range (like 2-5)
  69431. to specify a range of fields, or an open range (like 3-) specifying all
  69432. the fields starting from field 3. The open range field spec applies value
  69433. fields only. They have no effect on the key fields.
  69434. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  69435. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  69436. </doc>
  69437. </class>
  69438. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  69439. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  69440. <class name="FieldSelectionReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  69441. abstract="false"
  69442. static="false" final="false" visibility="public"
  69443. deprecated="not deprecated">
  69444. <constructor name="FieldSelectionReducer"
  69445. static="false" final="false" visibility="public"
  69446. deprecated="not deprecated">
  69447. </constructor>
  69448. <method name="setup"
  69449. abstract="false" native="false" synchronized="false"
  69450. static="false" final="false" visibility="public"
  69451. deprecated="not deprecated">
  69452. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69453. <exception name="IOException" type="java.io.IOException"/>
  69454. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69455. </method>
  69456. <method name="reduce"
  69457. abstract="false" native="false" synchronized="false"
  69458. static="false" final="false" visibility="public"
  69459. deprecated="not deprecated">
  69460. <param name="key" type="org.apache.hadoop.io.Text"/>
  69461. <param name="values" type="java.lang.Iterable"/>
  69462. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69463. <exception name="IOException" type="java.io.IOException"/>
  69464. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69465. </method>
  69466. <field name="LOG" type="org.apache.commons.logging.Log"
  69467. transient="false" volatile="false"
  69468. static="true" final="true" visibility="public"
  69469. deprecated="not deprecated">
  69470. </field>
  69471. <doc>
  69472. <![CDATA[This class implements a reducer class that can be used to perform field
  69473. selections in a manner similar to unix cut.
  69474. The input data is treated as fields separated by a user specified
  69475. separator (the default value is "\t"). The user can specify a list of
  69476. fields that form the reduce output keys, and a list of fields that form
  69477. the reduce output values. The fields are the union of those from the key
  69478. and those from the value.
  69479. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  69480. The reduce output field list spec is under attribute
  69481. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  69482. The value is expected to be like
  69483. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,)
  69484. separated field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec
  69485. can be a simple number (e.g. 5) specifying a specific field, or a range
  69486. (like 2-5) to specify a range of fields, or an open range (like 3-)
  69487. specifying all the fields starting from field 3. The open range field
  69488. spec applies value fields only. They have no effect on the key fields.
  69489. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  69490. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  69491. </doc>
  69492. </class>
  69493. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  69494. </package>
  69495. <package name="org.apache.hadoop.mapreduce.lib.input">
  69496. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  69497. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  69498. abstract="true"
  69499. static="false" final="false" visibility="public"
  69500. deprecated="not deprecated">
  69501. <constructor name="CombineFileInputFormat"
  69502. static="false" final="false" visibility="public"
  69503. deprecated="not deprecated">
  69504. <doc>
  69505. <![CDATA[default constructor]]>
  69506. </doc>
  69507. </constructor>
  69508. <method name="setMaxSplitSize"
  69509. abstract="false" native="false" synchronized="false"
  69510. static="false" final="false" visibility="protected"
  69511. deprecated="not deprecated">
  69512. <param name="maxSplitSize" type="long"/>
  69513. <doc>
  69514. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  69515. approximately equal to the specified size.]]>
  69516. </doc>
  69517. </method>
  69518. <method name="setMinSplitSizeNode"
  69519. abstract="false" native="false" synchronized="false"
  69520. static="false" final="false" visibility="protected"
  69521. deprecated="not deprecated">
  69522. <param name="minSplitSizeNode" type="long"/>
  69523. <doc>
  69524. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  69525. This applies to data that is left over after combining data on a single
  69526. node into splits that are of maximum size specified by maxSplitSize.
  69527. This leftover data will be combined into its own split if its size
  69528. exceeds minSplitSizeNode.]]>
  69529. </doc>
  69530. </method>
  69531. <method name="setMinSplitSizeRack"
  69532. abstract="false" native="false" synchronized="false"
  69533. static="false" final="false" visibility="protected"
  69534. deprecated="not deprecated">
  69535. <param name="minSplitSizeRack" type="long"/>
  69536. <doc>
  69537. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  69538. This applies to data that is left over after combining data on a single
  69539. rack into splits that are of maximum size specified by maxSplitSize.
  69540. This leftover data will be combined into its own split if its size
  69541. exceeds minSplitSizeRack.]]>
  69542. </doc>
  69543. </method>
  69544. <method name="createPool"
  69545. abstract="false" native="false" synchronized="false"
  69546. static="false" final="false" visibility="protected"
  69547. deprecated="not deprecated">
  69548. <param name="filters" type="java.util.List"/>
  69549. <doc>
  69550. <![CDATA[Create a new pool and add the filters to it.
  69551. A split cannot have files from different pools.]]>
  69552. </doc>
  69553. </method>
  69554. <method name="createPool"
  69555. abstract="false" native="false" synchronized="false"
  69556. static="false" final="false" visibility="protected"
  69557. deprecated="not deprecated">
  69558. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  69559. <doc>
  69560. <![CDATA[Create a new pool and add the filters to it.
  69561. A pathname can satisfy any one of the specified filters.
  69562. A split cannot have files from different pools.]]>
  69563. </doc>
  69564. </method>
  69565. <method name="isSplitable" return="boolean"
  69566. abstract="false" native="false" synchronized="false"
  69567. static="false" final="false" visibility="protected"
  69568. deprecated="not deprecated">
  69569. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69570. <param name="file" type="org.apache.hadoop.fs.Path"/>
  69571. </method>
  69572. <method name="getSplits" return="java.util.List"
  69573. abstract="false" native="false" synchronized="false"
  69574. static="false" final="false" visibility="public"
  69575. deprecated="not deprecated">
  69576. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69577. <exception name="IOException" type="java.io.IOException"/>
  69578. </method>
  69579. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69580. abstract="true" native="false" synchronized="false"
  69581. static="false" final="false" visibility="public"
  69582. deprecated="not deprecated">
  69583. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69584. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69585. <exception name="IOException" type="java.io.IOException"/>
  69586. <doc>
  69587. <![CDATA[This is not implemented yet.]]>
  69588. </doc>
  69589. </method>
  69590. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  69591. abstract="false" native="false" synchronized="false"
  69592. static="false" final="false" visibility="protected"
  69593. deprecated="not deprecated">
  69594. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69595. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  69596. <exception name="IOException" type="java.io.IOException"/>
  69597. </method>
  69598. <field name="SPLIT_MINSIZE_PERNODE" type="java.lang.String"
  69599. transient="false" volatile="false"
  69600. static="true" final="true" visibility="public"
  69601. deprecated="not deprecated">
  69602. </field>
  69603. <field name="SPLIT_MINSIZE_PERRACK" type="java.lang.String"
  69604. transient="false" volatile="false"
  69605. static="true" final="true" visibility="public"
  69606. deprecated="not deprecated">
  69607. </field>
  69608. <doc>
  69609. <![CDATA[An abstract {@link InputFormat} that returns {@link CombineFileSplit}'s in
  69610. {@link InputFormat#getSplits(JobContext)} method.
  69611. Splits are constructed from the files under the input paths.
  69612. A split cannot have files from different pools.
  69613. Each split returned may contain blocks from different files.
  69614. If a maxSplitSize is specified, then blocks on the same node are
  69615. combined to form a single split. Blocks that are left over are
  69616. then combined with other blocks in the same rack.
  69617. If maxSplitSize is not specified, then blocks from the same rack
  69618. are combined in a single split; no attempt is made to create
  69619. node-local splits.
  69620. If the maxSplitSize is equal to the block size, then this class
  69621. is similar to the default splitting behavior in Hadoop: each
  69622. block is a locally processed split.
  69623. Subclasses implement
  69624. {@link InputFormat#createRecordReader(InputSplit, TaskAttemptContext)}
  69625. to construct <code>RecordReader</code>'s for
  69626. <code>CombineFileSplit</code>'s.
  69627. @see CombineFileSplit]]>
  69628. </doc>
  69629. </class>
  69630. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  69631. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  69632. <class name="CombineFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  69633. abstract="false"
  69634. static="false" final="false" visibility="public"
  69635. deprecated="not deprecated">
  69636. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit, org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.Class"
  69637. static="false" final="false" visibility="public"
  69638. deprecated="not deprecated">
  69639. <exception name="IOException" type="java.io.IOException"/>
  69640. <doc>
  69641. <![CDATA[A generic RecordReader that can hand out different recordReaders
  69642. for each chunk in the CombineFileSplit.]]>
  69643. </doc>
  69644. </constructor>
  69645. <method name="initialize"
  69646. abstract="false" native="false" synchronized="false"
  69647. static="false" final="false" visibility="public"
  69648. deprecated="not deprecated">
  69649. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69650. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69651. <exception name="IOException" type="java.io.IOException"/>
  69652. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69653. </method>
  69654. <method name="nextKeyValue" return="boolean"
  69655. abstract="false" native="false" synchronized="false"
  69656. static="false" final="false" visibility="public"
  69657. deprecated="not deprecated">
  69658. <exception name="IOException" type="java.io.IOException"/>
  69659. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69660. </method>
  69661. <method name="getCurrentKey" return="java.lang.Object"
  69662. abstract="false" native="false" synchronized="false"
  69663. static="false" final="false" visibility="public"
  69664. deprecated="not deprecated">
  69665. <exception name="IOException" type="java.io.IOException"/>
  69666. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69667. </method>
  69668. <method name="getCurrentValue" return="java.lang.Object"
  69669. abstract="false" native="false" synchronized="false"
  69670. static="false" final="false" visibility="public"
  69671. deprecated="not deprecated">
  69672. <exception name="IOException" type="java.io.IOException"/>
  69673. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69674. </method>
  69675. <method name="close"
  69676. abstract="false" native="false" synchronized="false"
  69677. static="false" final="false" visibility="public"
  69678. deprecated="not deprecated">
  69679. <exception name="IOException" type="java.io.IOException"/>
  69680. </method>
  69681. <method name="getProgress" return="float"
  69682. abstract="false" native="false" synchronized="false"
  69683. static="false" final="false" visibility="public"
  69684. deprecated="not deprecated">
  69685. <exception name="IOException" type="java.io.IOException"/>
  69686. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69687. <doc>
  69688. <![CDATA[return progress based on the amount of data processed so far.]]>
  69689. </doc>
  69690. </method>
  69691. <method name="initNextRecordReader" return="boolean"
  69692. abstract="false" native="false" synchronized="false"
  69693. static="false" final="false" visibility="protected"
  69694. deprecated="not deprecated">
  69695. <exception name="IOException" type="java.io.IOException"/>
  69696. <doc>
  69697. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  69698. </doc>
  69699. </method>
  69700. <field name="split" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  69701. transient="false" volatile="false"
  69702. static="false" final="false" visibility="protected"
  69703. deprecated="not deprecated">
  69704. </field>
  69705. <field name="rrClass" type="java.lang.Class"
  69706. transient="false" volatile="false"
  69707. static="false" final="false" visibility="protected"
  69708. deprecated="not deprecated">
  69709. </field>
  69710. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  69711. transient="false" volatile="false"
  69712. static="false" final="false" visibility="protected"
  69713. deprecated="not deprecated">
  69714. </field>
  69715. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  69716. transient="false" volatile="false"
  69717. static="false" final="false" visibility="protected"
  69718. deprecated="not deprecated">
  69719. </field>
  69720. <field name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"
  69721. transient="false" volatile="false"
  69722. static="false" final="false" visibility="protected"
  69723. deprecated="not deprecated">
  69724. </field>
  69725. <field name="idx" type="int"
  69726. transient="false" volatile="false"
  69727. static="false" final="false" visibility="protected"
  69728. deprecated="not deprecated">
  69729. </field>
  69730. <field name="progress" type="long"
  69731. transient="false" volatile="false"
  69732. static="false" final="false" visibility="protected"
  69733. deprecated="not deprecated">
  69734. </field>
  69735. <field name="curReader" type="org.apache.hadoop.mapreduce.RecordReader"
  69736. transient="false" volatile="false"
  69737. static="false" final="false" visibility="protected"
  69738. deprecated="not deprecated">
  69739. </field>
  69740. <doc>
  69741. <![CDATA[A generic RecordReader that can hand out different recordReaders
  69742. for each chunk in a {@link CombineFileSplit}.
  69743. A CombineFileSplit can combine data chunks from multiple files.
  69744. This class allows using different RecordReaders for processing
  69745. these data chunks from different files.
  69746. @see CombineFileSplit]]>
  69747. </doc>
  69748. </class>
  69749. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  69750. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  69751. <class name="CombineFileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  69752. abstract="false"
  69753. static="false" final="false" visibility="public"
  69754. deprecated="not deprecated">
  69755. <implements name="org.apache.hadoop.io.Writable"/>
  69756. <constructor name="CombineFileSplit"
  69757. static="false" final="false" visibility="public"
  69758. deprecated="not deprecated">
  69759. <doc>
  69760. <![CDATA[default constructor]]>
  69761. </doc>
  69762. </constructor>
  69763. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  69764. static="false" final="false" visibility="public"
  69765. deprecated="not deprecated">
  69766. </constructor>
  69767. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[]"
  69768. static="false" final="false" visibility="public"
  69769. deprecated="not deprecated">
  69770. </constructor>
  69771. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  69772. static="false" final="false" visibility="public"
  69773. deprecated="not deprecated">
  69774. <exception name="IOException" type="java.io.IOException"/>
  69775. <doc>
  69776. <![CDATA[Copy constructor]]>
  69777. </doc>
  69778. </constructor>
  69779. <method name="getLength" return="long"
  69780. abstract="false" native="false" synchronized="false"
  69781. static="false" final="false" visibility="public"
  69782. deprecated="not deprecated">
  69783. </method>
  69784. <method name="getStartOffsets" return="long[]"
  69785. abstract="false" native="false" synchronized="false"
  69786. static="false" final="false" visibility="public"
  69787. deprecated="not deprecated">
  69788. <doc>
  69789. <![CDATA[Returns an array containing the start offsets of the files in the split]]>
  69790. </doc>
  69791. </method>
  69792. <method name="getLengths" return="long[]"
  69793. abstract="false" native="false" synchronized="false"
  69794. static="false" final="false" visibility="public"
  69795. deprecated="not deprecated">
  69796. <doc>
  69797. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  69798. </doc>
  69799. </method>
  69800. <method name="getOffset" return="long"
  69801. abstract="false" native="false" synchronized="false"
  69802. static="false" final="false" visibility="public"
  69803. deprecated="not deprecated">
  69804. <param name="i" type="int"/>
  69805. <doc>
  69806. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  69807. </doc>
  69808. </method>
  69809. <method name="getLength" return="long"
  69810. abstract="false" native="false" synchronized="false"
  69811. static="false" final="false" visibility="public"
  69812. deprecated="not deprecated">
  69813. <param name="i" type="int"/>
  69814. <doc>
  69815. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  69816. </doc>
  69817. </method>
  69818. <method name="getNumPaths" return="int"
  69819. abstract="false" native="false" synchronized="false"
  69820. static="false" final="false" visibility="public"
  69821. deprecated="not deprecated">
  69822. <doc>
  69823. <![CDATA[Returns the number of Paths in the split]]>
  69824. </doc>
  69825. </method>
  69826. <method name="getPath" return="org.apache.hadoop.fs.Path"
  69827. abstract="false" native="false" synchronized="false"
  69828. static="false" final="false" visibility="public"
  69829. deprecated="not deprecated">
  69830. <param name="i" type="int"/>
  69831. <doc>
  69832. <![CDATA[Returns the i<sup>th</sup> Path]]>
  69833. </doc>
  69834. </method>
  69835. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  69836. abstract="false" native="false" synchronized="false"
  69837. static="false" final="false" visibility="public"
  69838. deprecated="not deprecated">
  69839. <doc>
  69840. <![CDATA[Returns all the Paths in the split]]>
  69841. </doc>
  69842. </method>
  69843. <method name="getLocations" return="java.lang.String[]"
  69844. abstract="false" native="false" synchronized="false"
  69845. static="false" final="false" visibility="public"
  69846. deprecated="not deprecated">
  69847. <exception name="IOException" type="java.io.IOException"/>
  69848. <doc>
  69849. <![CDATA[Returns all the Paths where this input-split resides]]>
  69850. </doc>
  69851. </method>
  69852. <method name="readFields"
  69853. abstract="false" native="false" synchronized="false"
  69854. static="false" final="false" visibility="public"
  69855. deprecated="not deprecated">
  69856. <param name="in" type="java.io.DataInput"/>
  69857. <exception name="IOException" type="java.io.IOException"/>
  69858. </method>
  69859. <method name="write"
  69860. abstract="false" native="false" synchronized="false"
  69861. static="false" final="false" visibility="public"
  69862. deprecated="not deprecated">
  69863. <param name="out" type="java.io.DataOutput"/>
  69864. <exception name="IOException" type="java.io.IOException"/>
  69865. </method>
  69866. <method name="toString" return="java.lang.String"
  69867. abstract="false" native="false" synchronized="false"
  69868. static="false" final="false" visibility="public"
  69869. deprecated="not deprecated">
  69870. </method>
  69871. <doc>
  69872. <![CDATA[A sub-collection of input files.
  69873. Unlike {@link FileSplit}, CombineFileSplit class does not represent
  69874. a split of a file, but a split of input files into smaller sets.
  69875. A split may contain blocks from different file but all
  69876. the blocks in the same split are probably local to some rack <br>
  69877. CombineFileSplit can be used to implement {@link RecordReader}'s,
  69878. with reading one record per file.
  69879. @see FileSplit
  69880. @see CombineFileInputFormat]]>
  69881. </doc>
  69882. </class>
  69883. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  69884. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  69885. <class name="DelegatingInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  69886. abstract="false"
  69887. static="false" final="false" visibility="public"
  69888. deprecated="not deprecated">
  69889. <constructor name="DelegatingInputFormat"
  69890. static="false" final="false" visibility="public"
  69891. deprecated="not deprecated">
  69892. </constructor>
  69893. <method name="getSplits" return="java.util.List"
  69894. abstract="false" native="false" synchronized="false"
  69895. static="false" final="false" visibility="public"
  69896. deprecated="not deprecated">
  69897. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69898. <exception name="IOException" type="java.io.IOException"/>
  69899. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69900. </method>
  69901. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69902. abstract="false" native="false" synchronized="false"
  69903. static="false" final="false" visibility="public"
  69904. deprecated="not deprecated">
  69905. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69906. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69907. <exception name="IOException" type="java.io.IOException"/>
  69908. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69909. </method>
  69910. <doc>
  69911. <![CDATA[An {@link InputFormat} that delegates behavior of paths to multiple other
  69912. InputFormats.
  69913. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  69914. </doc>
  69915. </class>
  69916. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  69917. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  69918. <class name="DelegatingMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  69919. abstract="false"
  69920. static="false" final="false" visibility="public"
  69921. deprecated="not deprecated">
  69922. <constructor name="DelegatingMapper"
  69923. static="false" final="false" visibility="public"
  69924. deprecated="not deprecated">
  69925. </constructor>
  69926. <method name="setup"
  69927. abstract="false" native="false" synchronized="false"
  69928. static="false" final="false" visibility="protected"
  69929. deprecated="not deprecated">
  69930. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69931. <exception name="IOException" type="java.io.IOException"/>
  69932. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69933. </method>
  69934. <method name="run"
  69935. abstract="false" native="false" synchronized="false"
  69936. static="false" final="false" visibility="public"
  69937. deprecated="not deprecated">
  69938. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69939. <exception name="IOException" type="java.io.IOException"/>
  69940. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69941. </method>
  69942. <doc>
  69943. <![CDATA[An {@link Mapper} that delegates behavior of paths to multiple other
  69944. mappers.
  69945. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  69946. </doc>
  69947. </class>
  69948. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  69949. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  69950. <class name="DelegatingRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  69951. abstract="false"
  69952. static="false" final="false" visibility="public"
  69953. deprecated="not deprecated">
  69954. <constructor name="DelegatingRecordReader" type="org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext"
  69955. static="false" final="false" visibility="public"
  69956. deprecated="not deprecated">
  69957. <exception name="IOException" type="java.io.IOException"/>
  69958. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69959. <doc>
  69960. <![CDATA[Constructs the DelegatingRecordReader.
  69961. @param split TaggegInputSplit object
  69962. @param context TaskAttemptContext object
  69963. @throws IOException
  69964. @throws InterruptedException]]>
  69965. </doc>
  69966. </constructor>
  69967. <method name="close"
  69968. abstract="false" native="false" synchronized="false"
  69969. static="false" final="false" visibility="public"
  69970. deprecated="not deprecated">
  69971. <exception name="IOException" type="java.io.IOException"/>
  69972. </method>
  69973. <method name="getCurrentKey" return="java.lang.Object"
  69974. abstract="false" native="false" synchronized="false"
  69975. static="false" final="false" visibility="public"
  69976. deprecated="not deprecated">
  69977. <exception name="IOException" type="java.io.IOException"/>
  69978. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69979. </method>
  69980. <method name="getCurrentValue" return="java.lang.Object"
  69981. abstract="false" native="false" synchronized="false"
  69982. static="false" final="false" visibility="public"
  69983. deprecated="not deprecated">
  69984. <exception name="IOException" type="java.io.IOException"/>
  69985. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69986. </method>
  69987. <method name="getProgress" return="float"
  69988. abstract="false" native="false" synchronized="false"
  69989. static="false" final="false" visibility="public"
  69990. deprecated="not deprecated">
  69991. <exception name="IOException" type="java.io.IOException"/>
  69992. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69993. </method>
  69994. <method name="initialize"
  69995. abstract="false" native="false" synchronized="false"
  69996. static="false" final="false" visibility="public"
  69997. deprecated="not deprecated">
  69998. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69999. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70000. <exception name="IOException" type="java.io.IOException"/>
  70001. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70002. </method>
  70003. <method name="nextKeyValue" return="boolean"
  70004. abstract="false" native="false" synchronized="false"
  70005. static="false" final="false" visibility="public"
  70006. deprecated="not deprecated">
  70007. <exception name="IOException" type="java.io.IOException"/>
  70008. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70009. </method>
  70010. <doc>
  70011. <![CDATA[This is a delegating RecordReader, which delegates the functionality to the
  70012. underlying record reader in {@link TaggedInputSplit}]]>
  70013. </doc>
  70014. </class>
  70015. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  70016. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  70017. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  70018. abstract="true"
  70019. static="false" final="false" visibility="public"
  70020. deprecated="not deprecated">
  70021. <constructor name="FileInputFormat"
  70022. static="false" final="false" visibility="public"
  70023. deprecated="not deprecated">
  70024. </constructor>
  70025. <method name="getFormatMinSplitSize" return="long"
  70026. abstract="false" native="false" synchronized="false"
  70027. static="false" final="false" visibility="protected"
  70028. deprecated="not deprecated">
  70029. <doc>
  70030. <![CDATA[Get the lower bound on split size imposed by the format.
  70031. @return the number of bytes of the minimal split for this format]]>
  70032. </doc>
  70033. </method>
  70034. <method name="isSplitable" return="boolean"
  70035. abstract="false" native="false" synchronized="false"
  70036. static="false" final="false" visibility="protected"
  70037. deprecated="not deprecated">
  70038. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70039. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  70040. <doc>
  70041. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  70042. stream compressed, it will not be.
  70043. <code>FileInputFormat</code> implementations can override this and return
  70044. <code>false</code> to ensure that individual input files are never split-up
  70045. so that {@link Mapper}s process entire files.
  70046. @param context the job context
  70047. @param filename the file name to check
  70048. @return is this file splitable?]]>
  70049. </doc>
  70050. </method>
  70051. <method name="setInputPathFilter"
  70052. abstract="false" native="false" synchronized="false"
  70053. static="true" final="false" visibility="public"
  70054. deprecated="not deprecated">
  70055. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70056. <param name="filter" type="java.lang.Class"/>
  70057. <doc>
  70058. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  70059. @param job the job to modify
  70060. @param filter the PathFilter class use for filtering the input paths.]]>
  70061. </doc>
  70062. </method>
  70063. <method name="setMinInputSplitSize"
  70064. abstract="false" native="false" synchronized="false"
  70065. static="true" final="false" visibility="public"
  70066. deprecated="not deprecated">
  70067. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70068. <param name="size" type="long"/>
  70069. <doc>
  70070. <![CDATA[Set the minimum input split size
  70071. @param job the job to modify
  70072. @param size the minimum size]]>
  70073. </doc>
  70074. </method>
  70075. <method name="getMinSplitSize" return="long"
  70076. abstract="false" native="false" synchronized="false"
  70077. static="true" final="false" visibility="public"
  70078. deprecated="not deprecated">
  70079. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70080. <doc>
  70081. <![CDATA[Get the minimum split size
  70082. @param job the job
  70083. @return the minimum number of bytes that can be in a split]]>
  70084. </doc>
  70085. </method>
  70086. <method name="setMaxInputSplitSize"
  70087. abstract="false" native="false" synchronized="false"
  70088. static="true" final="false" visibility="public"
  70089. deprecated="not deprecated">
  70090. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70091. <param name="size" type="long"/>
  70092. <doc>
  70093. <![CDATA[Set the maximum split size
  70094. @param job the job to modify
  70095. @param size the maximum split size]]>
  70096. </doc>
  70097. </method>
  70098. <method name="getMaxSplitSize" return="long"
  70099. abstract="false" native="false" synchronized="false"
  70100. static="true" final="false" visibility="public"
  70101. deprecated="not deprecated">
  70102. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70103. <doc>
  70104. <![CDATA[Get the maximum split size.
  70105. @param context the job to look at.
  70106. @return the maximum number of bytes a split can include]]>
  70107. </doc>
  70108. </method>
  70109. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  70110. abstract="false" native="false" synchronized="false"
  70111. static="true" final="false" visibility="public"
  70112. deprecated="not deprecated">
  70113. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70114. <doc>
  70115. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  70116. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  70117. </doc>
  70118. </method>
  70119. <method name="listStatus" return="java.util.List"
  70120. abstract="false" native="false" synchronized="false"
  70121. static="false" final="false" visibility="protected"
  70122. deprecated="not deprecated">
  70123. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70124. <exception name="IOException" type="java.io.IOException"/>
  70125. <doc>
  70126. <![CDATA[List input directories.
  70127. Subclasses may override to, e.g., select only files matching a regular
  70128. expression.
  70129. @param job the job to list input paths for
  70130. @return array of FileStatus objects
  70131. @throws IOException if zero items.]]>
  70132. </doc>
  70133. </method>
  70134. <method name="getSplits" return="java.util.List"
  70135. abstract="false" native="false" synchronized="false"
  70136. static="false" final="false" visibility="public"
  70137. deprecated="not deprecated">
  70138. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70139. <exception name="IOException" type="java.io.IOException"/>
  70140. <doc>
  70141. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  70142. </doc>
  70143. </method>
  70144. <method name="computeSplitSize" return="long"
  70145. abstract="false" native="false" synchronized="false"
  70146. static="false" final="false" visibility="protected"
  70147. deprecated="not deprecated">
  70148. <param name="blockSize" type="long"/>
  70149. <param name="minSize" type="long"/>
  70150. <param name="maxSize" type="long"/>
  70151. </method>
  70152. <method name="getBlockIndex" return="int"
  70153. abstract="false" native="false" synchronized="false"
  70154. static="false" final="false" visibility="protected"
  70155. deprecated="not deprecated">
  70156. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  70157. <param name="offset" type="long"/>
  70158. </method>
  70159. <method name="setInputPaths"
  70160. abstract="false" native="false" synchronized="false"
  70161. static="true" final="false" visibility="public"
  70162. deprecated="not deprecated">
  70163. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70164. <param name="commaSeparatedPaths" type="java.lang.String"/>
  70165. <exception name="IOException" type="java.io.IOException"/>
  70166. <doc>
  70167. <![CDATA[Sets the given comma separated paths as the list of inputs
  70168. for the map-reduce job.
  70169. @param job the job
  70170. @param commaSeparatedPaths Comma separated paths to be set as
  70171. the list of inputs for the map-reduce job.]]>
  70172. </doc>
  70173. </method>
  70174. <method name="addInputPaths"
  70175. abstract="false" native="false" synchronized="false"
  70176. static="true" final="false" visibility="public"
  70177. deprecated="not deprecated">
  70178. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70179. <param name="commaSeparatedPaths" type="java.lang.String"/>
  70180. <exception name="IOException" type="java.io.IOException"/>
  70181. <doc>
  70182. <![CDATA[Add the given comma separated paths to the list of inputs for
  70183. the map-reduce job.
  70184. @param job The job to modify
  70185. @param commaSeparatedPaths Comma separated paths to be added to
  70186. the list of inputs for the map-reduce job.]]>
  70187. </doc>
  70188. </method>
  70189. <method name="setInputPaths"
  70190. abstract="false" native="false" synchronized="false"
  70191. static="true" final="false" visibility="public"
  70192. deprecated="not deprecated">
  70193. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70194. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  70195. <exception name="IOException" type="java.io.IOException"/>
  70196. <doc>
  70197. <![CDATA[Set the array of {@link Path}s as the list of inputs
  70198. for the map-reduce job.
  70199. @param job The job to modify
  70200. @param inputPaths the {@link Path}s of the input directories/files
  70201. for the map-reduce job.]]>
  70202. </doc>
  70203. </method>
  70204. <method name="addInputPath"
  70205. abstract="false" native="false" synchronized="false"
  70206. static="true" final="false" visibility="public"
  70207. deprecated="not deprecated">
  70208. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70209. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70210. <exception name="IOException" type="java.io.IOException"/>
  70211. <doc>
  70212. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  70213. @param job The {@link Job} to modify
  70214. @param path {@link Path} to be added to the list of inputs for
  70215. the map-reduce job.]]>
  70216. </doc>
  70217. </method>
  70218. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  70219. abstract="false" native="false" synchronized="false"
  70220. static="true" final="false" visibility="public"
  70221. deprecated="not deprecated">
  70222. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70223. <doc>
  70224. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  70225. @param context The job
  70226. @return the list of input {@link Path}s for the map-reduce job.]]>
  70227. </doc>
  70228. </method>
  70229. <doc>
  70230. <![CDATA[A base class for file-based {@link InputFormat}s.
  70231. <p><code>FileInputFormat</code> is the base class for all file-based
  70232. <code>InputFormat</code>s. This provides a generic implementation of
  70233. {@link #getSplits(JobContext)}.
  70234. Subclasses of <code>FileInputFormat</code> can also override the
  70235. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  70236. not split-up and are processed as a whole by {@link Mapper}s.]]>
  70237. </doc>
  70238. </class>
  70239. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  70240. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  70241. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  70242. abstract="false"
  70243. static="true" final="true" visibility="public"
  70244. deprecated="not deprecated">
  70245. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  70246. abstract="false" native="false" synchronized="false"
  70247. static="true" final="false" visibility="public"
  70248. deprecated="not deprecated">
  70249. </method>
  70250. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  70251. abstract="false" native="false" synchronized="false"
  70252. static="true" final="false" visibility="public"
  70253. deprecated="not deprecated">
  70254. <param name="name" type="java.lang.String"/>
  70255. </method>
  70256. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  70257. transient="false" volatile="false"
  70258. static="true" final="true" visibility="public"
  70259. deprecated="not deprecated">
  70260. </field>
  70261. </class>
  70262. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  70263. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  70264. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  70265. abstract="false"
  70266. static="false" final="false" visibility="public"
  70267. deprecated="not deprecated">
  70268. <implements name="org.apache.hadoop.io.Writable"/>
  70269. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  70270. static="false" final="false" visibility="public"
  70271. deprecated="not deprecated">
  70272. <doc>
  70273. <![CDATA[Constructs a split with host information
  70274. @param file the file name
  70275. @param start the position of the first byte in the file to process
  70276. @param length the number of bytes in the file to process
  70277. @param hosts the list of hosts containing the block, possibly null]]>
  70278. </doc>
  70279. </constructor>
  70280. <method name="getPath" return="org.apache.hadoop.fs.Path"
  70281. abstract="false" native="false" synchronized="false"
  70282. static="false" final="false" visibility="public"
  70283. deprecated="not deprecated">
  70284. <doc>
  70285. <![CDATA[The file containing this split's data.]]>
  70286. </doc>
  70287. </method>
  70288. <method name="getStart" return="long"
  70289. abstract="false" native="false" synchronized="false"
  70290. static="false" final="false" visibility="public"
  70291. deprecated="not deprecated">
  70292. <doc>
  70293. <![CDATA[The position of the first byte in the file to process.]]>
  70294. </doc>
  70295. </method>
  70296. <method name="getLength" return="long"
  70297. abstract="false" native="false" synchronized="false"
  70298. static="false" final="false" visibility="public"
  70299. deprecated="not deprecated">
  70300. <doc>
  70301. <![CDATA[The number of bytes in the file to process.]]>
  70302. </doc>
  70303. </method>
  70304. <method name="toString" return="java.lang.String"
  70305. abstract="false" native="false" synchronized="false"
  70306. static="false" final="false" visibility="public"
  70307. deprecated="not deprecated">
  70308. </method>
  70309. <method name="write"
  70310. abstract="false" native="false" synchronized="false"
  70311. static="false" final="false" visibility="public"
  70312. deprecated="not deprecated">
  70313. <param name="out" type="java.io.DataOutput"/>
  70314. <exception name="IOException" type="java.io.IOException"/>
  70315. </method>
  70316. <method name="readFields"
  70317. abstract="false" native="false" synchronized="false"
  70318. static="false" final="false" visibility="public"
  70319. deprecated="not deprecated">
  70320. <param name="in" type="java.io.DataInput"/>
  70321. <exception name="IOException" type="java.io.IOException"/>
  70322. </method>
  70323. <method name="getLocations" return="java.lang.String[]"
  70324. abstract="false" native="false" synchronized="false"
  70325. static="false" final="false" visibility="public"
  70326. deprecated="not deprecated">
  70327. <exception name="IOException" type="java.io.IOException"/>
  70328. </method>
  70329. <doc>
  70330. <![CDATA[A section of an input file. Returned by {@link
  70331. InputFormat#getSplits(JobContext)} and passed to
  70332. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  70333. </doc>
  70334. </class>
  70335. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  70336. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  70337. <class name="InvalidInputException" extends="java.io.IOException"
  70338. abstract="false"
  70339. static="false" final="false" visibility="public"
  70340. deprecated="not deprecated">
  70341. <constructor name="InvalidInputException" type="java.util.List"
  70342. static="false" final="false" visibility="public"
  70343. deprecated="not deprecated">
  70344. <doc>
  70345. <![CDATA[Create the exception with the given list.
  70346. @param probs the list of problems to report. this list is not copied.]]>
  70347. </doc>
  70348. </constructor>
  70349. <method name="getProblems" return="java.util.List"
  70350. abstract="false" native="false" synchronized="false"
  70351. static="false" final="false" visibility="public"
  70352. deprecated="not deprecated">
  70353. <doc>
  70354. <![CDATA[Get the complete list of the problems reported.
  70355. @return the list of problems, which must not be modified]]>
  70356. </doc>
  70357. </method>
  70358. <method name="getMessage" return="java.lang.String"
  70359. abstract="false" native="false" synchronized="false"
  70360. static="false" final="false" visibility="public"
  70361. deprecated="not deprecated">
  70362. <doc>
  70363. <![CDATA[Get a summary message of the problems found.
  70364. @return the concatenated messages from all of the problems.]]>
  70365. </doc>
  70366. </method>
  70367. <doc>
  70368. <![CDATA[This class wraps a list of problems with the input, so that the user
  70369. can get a list of problems together instead of finding and fixing them one
  70370. by one.]]>
  70371. </doc>
  70372. </class>
  70373. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  70374. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  70375. <class name="KeyValueLineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70376. abstract="false"
  70377. static="false" final="false" visibility="public"
  70378. deprecated="not deprecated">
  70379. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration"
  70380. static="false" final="false" visibility="public"
  70381. deprecated="not deprecated">
  70382. <exception name="IOException" type="java.io.IOException"/>
  70383. </constructor>
  70384. <method name="getKeyClass" return="java.lang.Class"
  70385. abstract="false" native="false" synchronized="false"
  70386. static="false" final="false" visibility="public"
  70387. deprecated="not deprecated">
  70388. </method>
  70389. <method name="initialize"
  70390. abstract="false" native="false" synchronized="false"
  70391. static="false" final="false" visibility="public"
  70392. deprecated="not deprecated">
  70393. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70394. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70395. <exception name="IOException" type="java.io.IOException"/>
  70396. </method>
  70397. <method name="findSeparator" return="int"
  70398. abstract="false" native="false" synchronized="false"
  70399. static="true" final="false" visibility="public"
  70400. deprecated="not deprecated">
  70401. <param name="utf" type="byte[]"/>
  70402. <param name="start" type="int"/>
  70403. <param name="length" type="int"/>
  70404. <param name="sep" type="byte"/>
  70405. </method>
  70406. <method name="setKeyValue"
  70407. abstract="false" native="false" synchronized="false"
  70408. static="true" final="false" visibility="public"
  70409. deprecated="not deprecated">
  70410. <param name="key" type="org.apache.hadoop.io.Text"/>
  70411. <param name="value" type="org.apache.hadoop.io.Text"/>
  70412. <param name="line" type="byte[]"/>
  70413. <param name="lineLen" type="int"/>
  70414. <param name="pos" type="int"/>
  70415. </method>
  70416. <method name="nextKeyValue" return="boolean"
  70417. abstract="false" native="false" synchronized="true"
  70418. static="false" final="false" visibility="public"
  70419. deprecated="not deprecated">
  70420. <exception name="IOException" type="java.io.IOException"/>
  70421. <doc>
  70422. <![CDATA[Read key/value pair in a line.]]>
  70423. </doc>
  70424. </method>
  70425. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  70426. abstract="false" native="false" synchronized="false"
  70427. static="false" final="false" visibility="public"
  70428. deprecated="not deprecated">
  70429. </method>
  70430. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  70431. abstract="false" native="false" synchronized="false"
  70432. static="false" final="false" visibility="public"
  70433. deprecated="not deprecated">
  70434. </method>
  70435. <method name="getProgress" return="float"
  70436. abstract="false" native="false" synchronized="false"
  70437. static="false" final="false" visibility="public"
  70438. deprecated="not deprecated">
  70439. <exception name="IOException" type="java.io.IOException"/>
  70440. </method>
  70441. <method name="close"
  70442. abstract="false" native="false" synchronized="true"
  70443. static="false" final="false" visibility="public"
  70444. deprecated="not deprecated">
  70445. <exception name="IOException" type="java.io.IOException"/>
  70446. </method>
  70447. <field name="KEY_VALUE_SEPERATOR" type="java.lang.String"
  70448. transient="false" volatile="false"
  70449. static="true" final="true" visibility="public"
  70450. deprecated="not deprecated">
  70451. </field>
  70452. <doc>
  70453. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  70454. separator character. The separator can be specified in config file
  70455. under the attribute name mapreduce.input.keyvaluelinerecordreader.key.value.separator. The default
  70456. separator is the tab character ('\t').]]>
  70457. </doc>
  70458. </class>
  70459. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  70460. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  70461. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  70462. abstract="false"
  70463. static="false" final="false" visibility="public"
  70464. deprecated="not deprecated">
  70465. <constructor name="KeyValueTextInputFormat"
  70466. static="false" final="false" visibility="public"
  70467. deprecated="not deprecated">
  70468. </constructor>
  70469. <method name="isSplitable" return="boolean"
  70470. abstract="false" native="false" synchronized="false"
  70471. static="false" final="false" visibility="protected"
  70472. deprecated="not deprecated">
  70473. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70474. <param name="file" type="org.apache.hadoop.fs.Path"/>
  70475. </method>
  70476. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70477. abstract="false" native="false" synchronized="false"
  70478. static="false" final="false" visibility="public"
  70479. deprecated="not deprecated">
  70480. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70481. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70482. <exception name="IOException" type="java.io.IOException"/>
  70483. </method>
  70484. <doc>
  70485. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  70486. Either line feed or carriage-return are used to signal end of line.
  70487. Each line is divided into key and value parts by a separator byte. If no
  70488. such a byte exists, the key will be the entire line and value will be empty.]]>
  70489. </doc>
  70490. </class>
  70491. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  70492. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  70493. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70494. abstract="false"
  70495. static="false" final="false" visibility="public"
  70496. deprecated="not deprecated">
  70497. <constructor name="LineRecordReader"
  70498. static="false" final="false" visibility="public"
  70499. deprecated="not deprecated">
  70500. </constructor>
  70501. <method name="initialize"
  70502. abstract="false" native="false" synchronized="false"
  70503. static="false" final="false" visibility="public"
  70504. deprecated="not deprecated">
  70505. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70506. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70507. <exception name="IOException" type="java.io.IOException"/>
  70508. </method>
  70509. <method name="nextKeyValue" return="boolean"
  70510. abstract="false" native="false" synchronized="false"
  70511. static="false" final="false" visibility="public"
  70512. deprecated="not deprecated">
  70513. <exception name="IOException" type="java.io.IOException"/>
  70514. </method>
  70515. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  70516. abstract="false" native="false" synchronized="false"
  70517. static="false" final="false" visibility="public"
  70518. deprecated="not deprecated">
  70519. </method>
  70520. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  70521. abstract="false" native="false" synchronized="false"
  70522. static="false" final="false" visibility="public"
  70523. deprecated="not deprecated">
  70524. </method>
  70525. <method name="getProgress" return="float"
  70526. abstract="false" native="false" synchronized="false"
  70527. static="false" final="false" visibility="public"
  70528. deprecated="not deprecated">
  70529. <doc>
  70530. <![CDATA[Get the progress within the split]]>
  70531. </doc>
  70532. </method>
  70533. <method name="close"
  70534. abstract="false" native="false" synchronized="true"
  70535. static="false" final="false" visibility="public"
  70536. deprecated="not deprecated">
  70537. <exception name="IOException" type="java.io.IOException"/>
  70538. </method>
  70539. <doc>
  70540. <![CDATA[Treats keys as offset in file and value as line.]]>
  70541. </doc>
  70542. </class>
  70543. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  70544. <!-- start class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  70545. <class name="MultipleInputs" extends="java.lang.Object"
  70546. abstract="false"
  70547. static="false" final="false" visibility="public"
  70548. deprecated="not deprecated">
  70549. <constructor name="MultipleInputs"
  70550. static="false" final="false" visibility="public"
  70551. deprecated="not deprecated">
  70552. </constructor>
  70553. <method name="addInputPath"
  70554. abstract="false" native="false" synchronized="false"
  70555. static="true" final="false" visibility="public"
  70556. deprecated="not deprecated">
  70557. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70558. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70559. <param name="inputFormatClass" type="java.lang.Class"/>
  70560. <doc>
  70561. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  70562. inputs for the map-reduce job.
  70563. @param job The {@link Job}
  70564. @param path {@link Path} to be added to the list of inputs for the job
  70565. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  70566. </doc>
  70567. </method>
  70568. <method name="addInputPath"
  70569. abstract="false" native="false" synchronized="false"
  70570. static="true" final="false" visibility="public"
  70571. deprecated="not deprecated">
  70572. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70573. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70574. <param name="inputFormatClass" type="java.lang.Class"/>
  70575. <param name="mapperClass" type="java.lang.Class"/>
  70576. <doc>
  70577. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  70578. {@link Mapper} to the list of inputs for the map-reduce job.
  70579. @param job The {@link Job}
  70580. @param path {@link Path} to be added to the list of inputs for the job
  70581. @param inputFormatClass {@link InputFormat} class to use for this path
  70582. @param mapperClass {@link Mapper} class to use for this path]]>
  70583. </doc>
  70584. </method>
  70585. <field name="DIR_FORMATS" type="java.lang.String"
  70586. transient="false" volatile="false"
  70587. static="true" final="true" visibility="public"
  70588. deprecated="not deprecated">
  70589. </field>
  70590. <field name="DIR_MAPPERS" type="java.lang.String"
  70591. transient="false" volatile="false"
  70592. static="true" final="true" visibility="public"
  70593. deprecated="not deprecated">
  70594. </field>
  70595. <doc>
  70596. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  70597. a different {@link InputFormat} and {@link Mapper} for each path]]>
  70598. </doc>
  70599. </class>
  70600. <!-- end class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  70601. <!-- start class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  70602. <class name="NLineInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  70603. abstract="false"
  70604. static="false" final="false" visibility="public"
  70605. deprecated="not deprecated">
  70606. <constructor name="NLineInputFormat"
  70607. static="false" final="false" visibility="public"
  70608. deprecated="not deprecated">
  70609. </constructor>
  70610. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70611. abstract="false" native="false" synchronized="false"
  70612. static="false" final="false" visibility="public"
  70613. deprecated="not deprecated">
  70614. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70615. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70616. <exception name="IOException" type="java.io.IOException"/>
  70617. </method>
  70618. <method name="getSplits" return="java.util.List"
  70619. abstract="false" native="false" synchronized="false"
  70620. static="false" final="false" visibility="public"
  70621. deprecated="not deprecated">
  70622. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70623. <exception name="IOException" type="java.io.IOException"/>
  70624. <doc>
  70625. <![CDATA[Logically splits the set of input files for the job, splits N lines
  70626. of the input as one split.
  70627. @see FileInputFormat#getSplits(JobContext)]]>
  70628. </doc>
  70629. </method>
  70630. <method name="getSplitsForFile" return="java.util.List"
  70631. abstract="false" native="false" synchronized="false"
  70632. static="true" final="false" visibility="public"
  70633. deprecated="not deprecated">
  70634. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  70635. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70636. <param name="numLinesPerSplit" type="int"/>
  70637. <exception name="IOException" type="java.io.IOException"/>
  70638. </method>
  70639. <method name="setNumLinesPerSplit"
  70640. abstract="false" native="false" synchronized="false"
  70641. static="true" final="false" visibility="public"
  70642. deprecated="not deprecated">
  70643. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70644. <param name="numLines" type="int"/>
  70645. <doc>
  70646. <![CDATA[Set the number of lines per split
  70647. @param job the job to modify
  70648. @param numLines the number of lines per split]]>
  70649. </doc>
  70650. </method>
  70651. <method name="getNumLinesPerSplit" return="int"
  70652. abstract="false" native="false" synchronized="false"
  70653. static="true" final="false" visibility="public"
  70654. deprecated="not deprecated">
  70655. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70656. <doc>
  70657. <![CDATA[Get the number of lines per split
  70658. @param job the job
  70659. @return the number of lines per split]]>
  70660. </doc>
  70661. </method>
  70662. <field name="LINES_PER_MAP" type="java.lang.String"
  70663. transient="false" volatile="false"
  70664. static="true" final="true" visibility="public"
  70665. deprecated="not deprecated">
  70666. </field>
  70667. <doc>
  70668. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  70669. In many "pleasantly" parallel applications, each process/mapper
  70670. processes the same input file (s), but with computations are
  70671. controlled by different parameters.(Referred to as "parameter sweeps").
  70672. One way to achieve this, is to specify a set of parameters
  70673. (one set per line) as input in a control file
  70674. (which is the input path to the map-reduce application,
  70675. where as the input dataset is specified
  70676. via a config variable in JobConf.).
  70677. The NLineInputFormat can be used in such applications, that splits
  70678. the input file such that by default, one line is fed as
  70679. a value to one map task, and key is the offset.
  70680. i.e. (k,v) is (LongWritable, Text).
  70681. The location hints will span the whole mapred cluster.]]>
  70682. </doc>
  70683. </class>
  70684. <!-- end class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  70685. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  70686. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  70687. abstract="false"
  70688. static="false" final="false" visibility="public"
  70689. deprecated="not deprecated">
  70690. <constructor name="SequenceFileAsBinaryInputFormat"
  70691. static="false" final="false" visibility="public"
  70692. deprecated="not deprecated">
  70693. </constructor>
  70694. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70695. abstract="false" native="false" synchronized="false"
  70696. static="false" final="false" visibility="public"
  70697. deprecated="not deprecated">
  70698. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70699. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70700. <exception name="IOException" type="java.io.IOException"/>
  70701. </method>
  70702. <doc>
  70703. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  70704. format.]]>
  70705. </doc>
  70706. </class>
  70707. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  70708. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  70709. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70710. abstract="false"
  70711. static="true" final="false" visibility="public"
  70712. deprecated="not deprecated">
  70713. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader"
  70714. static="false" final="false" visibility="public"
  70715. deprecated="not deprecated">
  70716. </constructor>
  70717. <method name="initialize"
  70718. abstract="false" native="false" synchronized="false"
  70719. static="false" final="false" visibility="public"
  70720. deprecated="not deprecated">
  70721. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70722. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70723. <exception name="IOException" type="java.io.IOException"/>
  70724. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70725. </method>
  70726. <method name="getCurrentKey" return="org.apache.hadoop.io.BytesWritable"
  70727. abstract="false" native="false" synchronized="false"
  70728. static="false" final="false" visibility="public"
  70729. deprecated="not deprecated">
  70730. <exception name="IOException" type="java.io.IOException"/>
  70731. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70732. </method>
  70733. <method name="getCurrentValue" return="org.apache.hadoop.io.BytesWritable"
  70734. abstract="false" native="false" synchronized="false"
  70735. static="false" final="false" visibility="public"
  70736. deprecated="not deprecated">
  70737. <exception name="IOException" type="java.io.IOException"/>
  70738. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70739. </method>
  70740. <method name="getKeyClassName" return="java.lang.String"
  70741. abstract="false" native="false" synchronized="false"
  70742. static="false" final="false" visibility="public"
  70743. deprecated="not deprecated">
  70744. <doc>
  70745. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  70746. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  70747. </doc>
  70748. </method>
  70749. <method name="getValueClassName" return="java.lang.String"
  70750. abstract="false" native="false" synchronized="false"
  70751. static="false" final="false" visibility="public"
  70752. deprecated="not deprecated">
  70753. <doc>
  70754. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  70755. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  70756. </doc>
  70757. </method>
  70758. <method name="nextKeyValue" return="boolean"
  70759. abstract="false" native="false" synchronized="true"
  70760. static="false" final="false" visibility="public"
  70761. deprecated="not deprecated">
  70762. <exception name="IOException" type="java.io.IOException"/>
  70763. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70764. <doc>
  70765. <![CDATA[Read raw bytes from a SequenceFile.]]>
  70766. </doc>
  70767. </method>
  70768. <method name="close"
  70769. abstract="false" native="false" synchronized="false"
  70770. static="false" final="false" visibility="public"
  70771. deprecated="not deprecated">
  70772. <exception name="IOException" type="java.io.IOException"/>
  70773. </method>
  70774. <method name="getProgress" return="float"
  70775. abstract="false" native="false" synchronized="false"
  70776. static="false" final="false" visibility="public"
  70777. deprecated="not deprecated">
  70778. <exception name="IOException" type="java.io.IOException"/>
  70779. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70780. <doc>
  70781. <![CDATA[Return the progress within the input split
  70782. @return 0.0 to 1.0 of the input byte range]]>
  70783. </doc>
  70784. </method>
  70785. <doc>
  70786. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  70787. </doc>
  70788. </class>
  70789. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  70790. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  70791. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  70792. abstract="false"
  70793. static="false" final="false" visibility="public"
  70794. deprecated="not deprecated">
  70795. <constructor name="SequenceFileAsTextInputFormat"
  70796. static="false" final="false" visibility="public"
  70797. deprecated="not deprecated">
  70798. </constructor>
  70799. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70800. abstract="false" native="false" synchronized="false"
  70801. static="false" final="false" visibility="public"
  70802. deprecated="not deprecated">
  70803. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70804. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70805. <exception name="IOException" type="java.io.IOException"/>
  70806. </method>
  70807. <doc>
  70808. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates
  70809. SequenceFileAsTextRecordReader which converts the input keys and values
  70810. to their String forms by calling toString() method.]]>
  70811. </doc>
  70812. </class>
  70813. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  70814. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  70815. <class name="SequenceFileAsTextRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70816. abstract="false"
  70817. static="false" final="false" visibility="public"
  70818. deprecated="not deprecated">
  70819. <constructor name="SequenceFileAsTextRecordReader"
  70820. static="false" final="false" visibility="public"
  70821. deprecated="not deprecated">
  70822. <exception name="IOException" type="java.io.IOException"/>
  70823. </constructor>
  70824. <method name="initialize"
  70825. abstract="false" native="false" synchronized="false"
  70826. static="false" final="false" visibility="public"
  70827. deprecated="not deprecated">
  70828. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70829. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70830. <exception name="IOException" type="java.io.IOException"/>
  70831. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70832. </method>
  70833. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  70834. abstract="false" native="false" synchronized="false"
  70835. static="false" final="false" visibility="public"
  70836. deprecated="not deprecated">
  70837. <exception name="IOException" type="java.io.IOException"/>
  70838. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70839. </method>
  70840. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  70841. abstract="false" native="false" synchronized="false"
  70842. static="false" final="false" visibility="public"
  70843. deprecated="not deprecated">
  70844. <exception name="IOException" type="java.io.IOException"/>
  70845. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70846. </method>
  70847. <method name="nextKeyValue" return="boolean"
  70848. abstract="false" native="false" synchronized="true"
  70849. static="false" final="false" visibility="public"
  70850. deprecated="not deprecated">
  70851. <exception name="IOException" type="java.io.IOException"/>
  70852. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70853. <doc>
  70854. <![CDATA[Read key/value pair in a line.]]>
  70855. </doc>
  70856. </method>
  70857. <method name="getProgress" return="float"
  70858. abstract="false" native="false" synchronized="false"
  70859. static="false" final="false" visibility="public"
  70860. deprecated="not deprecated">
  70861. <exception name="IOException" type="java.io.IOException"/>
  70862. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70863. </method>
  70864. <method name="close"
  70865. abstract="false" native="false" synchronized="true"
  70866. static="false" final="false" visibility="public"
  70867. deprecated="not deprecated">
  70868. <exception name="IOException" type="java.io.IOException"/>
  70869. </method>
  70870. <doc>
  70871. <![CDATA[This class converts the input keys and values to their String forms by
  70872. calling toString() method. This class to SequenceFileAsTextInputFormat
  70873. class is as LineRecordReader class to TextInputFormat class.]]>
  70874. </doc>
  70875. </class>
  70876. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  70877. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  70878. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  70879. abstract="false"
  70880. static="false" final="false" visibility="public"
  70881. deprecated="not deprecated">
  70882. <constructor name="SequenceFileInputFilter"
  70883. static="false" final="false" visibility="public"
  70884. deprecated="not deprecated">
  70885. </constructor>
  70886. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70887. abstract="false" native="false" synchronized="false"
  70888. static="false" final="false" visibility="public"
  70889. deprecated="not deprecated">
  70890. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70891. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70892. <exception name="IOException" type="java.io.IOException"/>
  70893. <doc>
  70894. <![CDATA[Create a record reader for the given split
  70895. @param split file split
  70896. @param context the task-attempt context
  70897. @return RecordReader]]>
  70898. </doc>
  70899. </method>
  70900. <method name="setFilterClass"
  70901. abstract="false" native="false" synchronized="false"
  70902. static="true" final="false" visibility="public"
  70903. deprecated="not deprecated">
  70904. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70905. <param name="filterClass" type="java.lang.Class"/>
  70906. <doc>
  70907. <![CDATA[set the filter class
  70908. @param job The job
  70909. @param filterClass filter class]]>
  70910. </doc>
  70911. </method>
  70912. <field name="LOG" type="org.apache.commons.logging.Log"
  70913. transient="false" volatile="false"
  70914. static="true" final="true" visibility="public"
  70915. deprecated="not deprecated">
  70916. </field>
  70917. <field name="FILTER_CLASS" type="java.lang.String"
  70918. transient="false" volatile="false"
  70919. static="true" final="true" visibility="public"
  70920. deprecated="not deprecated">
  70921. </field>
  70922. <field name="FILTER_FREQUENCY" type="java.lang.String"
  70923. transient="false" volatile="false"
  70924. static="true" final="true" visibility="public"
  70925. deprecated="not deprecated">
  70926. </field>
  70927. <field name="FILTER_REGEX" type="java.lang.String"
  70928. transient="false" volatile="false"
  70929. static="true" final="true" visibility="public"
  70930. deprecated="not deprecated">
  70931. </field>
  70932. <doc>
  70933. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  70934. The sample is decided by the filter class set by the job.]]>
  70935. </doc>
  70936. </class>
  70937. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  70938. <!-- start interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  70939. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  70940. static="true" final="false" visibility="public"
  70941. deprecated="not deprecated">
  70942. <implements name="org.apache.hadoop.conf.Configurable"/>
  70943. <method name="accept" return="boolean"
  70944. abstract="false" native="false" synchronized="false"
  70945. static="false" final="false" visibility="public"
  70946. deprecated="not deprecated">
  70947. <param name="key" type="java.lang.Object"/>
  70948. <doc>
  70949. <![CDATA[filter function
  70950. Decide if a record should be filtered or not
  70951. @param key record key
  70952. @return true if a record is accepted; return false otherwise]]>
  70953. </doc>
  70954. </method>
  70955. <doc>
  70956. <![CDATA[filter interface]]>
  70957. </doc>
  70958. </interface>
  70959. <!-- end interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  70960. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  70961. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  70962. abstract="true"
  70963. static="true" final="false" visibility="public"
  70964. deprecated="not deprecated">
  70965. <implements name="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter"/>
  70966. <constructor name="SequenceFileInputFilter.FilterBase"
  70967. static="false" final="false" visibility="public"
  70968. deprecated="not deprecated">
  70969. </constructor>
  70970. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  70971. abstract="false" native="false" synchronized="false"
  70972. static="false" final="false" visibility="public"
  70973. deprecated="not deprecated">
  70974. </method>
  70975. <doc>
  70976. <![CDATA[base class for Filters]]>
  70977. </doc>
  70978. </class>
  70979. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  70980. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  70981. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  70982. abstract="false"
  70983. static="true" final="false" visibility="public"
  70984. deprecated="not deprecated">
  70985. <constructor name="SequenceFileInputFilter.MD5Filter"
  70986. static="false" final="false" visibility="public"
  70987. deprecated="not deprecated">
  70988. </constructor>
  70989. <method name="setFrequency"
  70990. abstract="false" native="false" synchronized="false"
  70991. static="true" final="false" visibility="public"
  70992. deprecated="not deprecated">
  70993. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70994. <param name="frequency" type="int"/>
  70995. <doc>
  70996. <![CDATA[set the filtering frequency in configuration
  70997. @param conf configuration
  70998. @param frequency filtering frequency]]>
  70999. </doc>
  71000. </method>
  71001. <method name="setConf"
  71002. abstract="false" native="false" synchronized="false"
  71003. static="false" final="false" visibility="public"
  71004. deprecated="not deprecated">
  71005. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71006. <doc>
  71007. <![CDATA[configure the filter according to configuration
  71008. @param conf configuration]]>
  71009. </doc>
  71010. </method>
  71011. <method name="accept" return="boolean"
  71012. abstract="false" native="false" synchronized="false"
  71013. static="false" final="false" visibility="public"
  71014. deprecated="not deprecated">
  71015. <param name="key" type="java.lang.Object"/>
  71016. <doc>
  71017. <![CDATA[Filtering method
  71018. If MD5(key) % frequency==0, return true; otherwise return false
  71019. @see Filter#accept(Object)]]>
  71020. </doc>
  71021. </method>
  71022. <field name="MD5_LEN" type="int"
  71023. transient="false" volatile="false"
  71024. static="true" final="true" visibility="public"
  71025. deprecated="not deprecated">
  71026. </field>
  71027. <doc>
  71028. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  71029. key against a filtering frequency <i>f</i>. The filtering criteria is
  71030. MD5(key) % f == 0.]]>
  71031. </doc>
  71032. </class>
  71033. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  71034. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  71035. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  71036. abstract="false"
  71037. static="true" final="false" visibility="public"
  71038. deprecated="not deprecated">
  71039. <constructor name="SequenceFileInputFilter.PercentFilter"
  71040. static="false" final="false" visibility="public"
  71041. deprecated="not deprecated">
  71042. </constructor>
  71043. <method name="setFrequency"
  71044. abstract="false" native="false" synchronized="false"
  71045. static="true" final="false" visibility="public"
  71046. deprecated="not deprecated">
  71047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71048. <param name="frequency" type="int"/>
  71049. <doc>
  71050. <![CDATA[set the frequency and stores it in conf
  71051. @param conf configuration
  71052. @param frequency filtering frequencey]]>
  71053. </doc>
  71054. </method>
  71055. <method name="setConf"
  71056. abstract="false" native="false" synchronized="false"
  71057. static="false" final="false" visibility="public"
  71058. deprecated="not deprecated">
  71059. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71060. <doc>
  71061. <![CDATA[configure the filter by checking the configuration
  71062. @param conf configuration]]>
  71063. </doc>
  71064. </method>
  71065. <method name="accept" return="boolean"
  71066. abstract="false" native="false" synchronized="false"
  71067. static="false" final="false" visibility="public"
  71068. deprecated="not deprecated">
  71069. <param name="key" type="java.lang.Object"/>
  71070. <doc>
  71071. <![CDATA[Filtering method
  71072. If record# % frequency==0, return true; otherwise return false
  71073. @see Filter#accept(Object)]]>
  71074. </doc>
  71075. </method>
  71076. <doc>
  71077. <![CDATA[This class returns a percentage of records
  71078. The percentage is determined by a filtering frequency <i>f</i> using
  71079. the criteria record# % f == 0.
  71080. For example, if the frequency is 10, one out of 10 records is returned.]]>
  71081. </doc>
  71082. </class>
  71083. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  71084. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  71085. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  71086. abstract="false"
  71087. static="true" final="false" visibility="public"
  71088. deprecated="not deprecated">
  71089. <constructor name="SequenceFileInputFilter.RegexFilter"
  71090. static="false" final="false" visibility="public"
  71091. deprecated="not deprecated">
  71092. </constructor>
  71093. <method name="setPattern"
  71094. abstract="false" native="false" synchronized="false"
  71095. static="true" final="false" visibility="public"
  71096. deprecated="not deprecated">
  71097. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71098. <param name="regex" type="java.lang.String"/>
  71099. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  71100. <doc>
  71101. <![CDATA[Define the filtering regex and stores it in conf
  71102. @param conf where the regex is set
  71103. @param regex regex used as a filter]]>
  71104. </doc>
  71105. </method>
  71106. <method name="setConf"
  71107. abstract="false" native="false" synchronized="false"
  71108. static="false" final="false" visibility="public"
  71109. deprecated="not deprecated">
  71110. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71111. <doc>
  71112. <![CDATA[configure the Filter by checking the configuration]]>
  71113. </doc>
  71114. </method>
  71115. <method name="accept" return="boolean"
  71116. abstract="false" native="false" synchronized="false"
  71117. static="false" final="false" visibility="public"
  71118. deprecated="not deprecated">
  71119. <param name="key" type="java.lang.Object"/>
  71120. <doc>
  71121. <![CDATA[Filtering method
  71122. If key matches the regex, return true; otherwise return false
  71123. @see Filter#accept(Object)]]>
  71124. </doc>
  71125. </method>
  71126. <doc>
  71127. <![CDATA[Records filter by matching key to regex]]>
  71128. </doc>
  71129. </class>
  71130. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  71131. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  71132. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71133. abstract="false"
  71134. static="false" final="false" visibility="public"
  71135. deprecated="not deprecated">
  71136. <constructor name="SequenceFileInputFormat"
  71137. static="false" final="false" visibility="public"
  71138. deprecated="not deprecated">
  71139. </constructor>
  71140. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71141. abstract="false" native="false" synchronized="false"
  71142. static="false" final="false" visibility="public"
  71143. deprecated="not deprecated">
  71144. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71145. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71146. <exception name="IOException" type="java.io.IOException"/>
  71147. </method>
  71148. <method name="getFormatMinSplitSize" return="long"
  71149. abstract="false" native="false" synchronized="false"
  71150. static="false" final="false" visibility="protected"
  71151. deprecated="not deprecated">
  71152. </method>
  71153. <method name="listStatus" return="java.util.List"
  71154. abstract="false" native="false" synchronized="false"
  71155. static="false" final="false" visibility="protected"
  71156. deprecated="not deprecated">
  71157. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71158. <exception name="IOException" type="java.io.IOException"/>
  71159. </method>
  71160. <doc>
  71161. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  71162. </doc>
  71163. </class>
  71164. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  71165. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  71166. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71167. abstract="false"
  71168. static="false" final="false" visibility="public"
  71169. deprecated="not deprecated">
  71170. <constructor name="SequenceFileRecordReader"
  71171. static="false" final="false" visibility="public"
  71172. deprecated="not deprecated">
  71173. </constructor>
  71174. <method name="initialize"
  71175. abstract="false" native="false" synchronized="false"
  71176. static="false" final="false" visibility="public"
  71177. deprecated="not deprecated">
  71178. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71179. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71180. <exception name="IOException" type="java.io.IOException"/>
  71181. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71182. </method>
  71183. <method name="nextKeyValue" return="boolean"
  71184. abstract="false" native="false" synchronized="false"
  71185. static="false" final="false" visibility="public"
  71186. deprecated="not deprecated">
  71187. <exception name="IOException" type="java.io.IOException"/>
  71188. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71189. </method>
  71190. <method name="getCurrentKey" return="java.lang.Object"
  71191. abstract="false" native="false" synchronized="false"
  71192. static="false" final="false" visibility="public"
  71193. deprecated="not deprecated">
  71194. </method>
  71195. <method name="getCurrentValue" return="java.lang.Object"
  71196. abstract="false" native="false" synchronized="false"
  71197. static="false" final="false" visibility="public"
  71198. deprecated="not deprecated">
  71199. </method>
  71200. <method name="getProgress" return="float"
  71201. abstract="false" native="false" synchronized="false"
  71202. static="false" final="false" visibility="public"
  71203. deprecated="not deprecated">
  71204. <exception name="IOException" type="java.io.IOException"/>
  71205. <doc>
  71206. <![CDATA[Return the progress within the input split
  71207. @return 0.0 to 1.0 of the input byte range]]>
  71208. </doc>
  71209. </method>
  71210. <method name="close"
  71211. abstract="false" native="false" synchronized="true"
  71212. static="false" final="false" visibility="public"
  71213. deprecated="not deprecated">
  71214. <exception name="IOException" type="java.io.IOException"/>
  71215. </method>
  71216. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  71217. transient="false" volatile="false"
  71218. static="false" final="false" visibility="protected"
  71219. deprecated="not deprecated">
  71220. </field>
  71221. <doc>
  71222. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  71223. </doc>
  71224. </class>
  71225. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  71226. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  71227. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71228. abstract="false"
  71229. static="false" final="false" visibility="public"
  71230. deprecated="not deprecated">
  71231. <constructor name="TextInputFormat"
  71232. static="false" final="false" visibility="public"
  71233. deprecated="not deprecated">
  71234. </constructor>
  71235. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71236. abstract="false" native="false" synchronized="false"
  71237. static="false" final="false" visibility="public"
  71238. deprecated="not deprecated">
  71239. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71240. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71241. </method>
  71242. <method name="isSplitable" return="boolean"
  71243. abstract="false" native="false" synchronized="false"
  71244. static="false" final="false" visibility="protected"
  71245. deprecated="not deprecated">
  71246. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71247. <param name="file" type="org.apache.hadoop.fs.Path"/>
  71248. </method>
  71249. <doc>
  71250. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  71251. Either linefeed or carriage-return are used to signal end of line. Keys are
  71252. the position in the file, and values are the line of text..]]>
  71253. </doc>
  71254. </class>
  71255. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  71256. </package>
  71257. <package name="org.apache.hadoop.mapreduce.lib.jobcontrol">
  71258. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  71259. <class name="ControlledJob" extends="java.lang.Object"
  71260. abstract="false"
  71261. static="false" final="false" visibility="public"
  71262. deprecated="not deprecated">
  71263. <constructor name="ControlledJob" type="org.apache.hadoop.mapreduce.Job, java.util.List"
  71264. static="false" final="false" visibility="public"
  71265. deprecated="not deprecated">
  71266. <exception name="IOException" type="java.io.IOException"/>
  71267. <doc>
  71268. <![CDATA[Construct a job.
  71269. @param job a mapreduce job to be executed.
  71270. @param dependingJobs an array of jobs the current job depends on]]>
  71271. </doc>
  71272. </constructor>
  71273. <constructor name="ControlledJob" type="org.apache.hadoop.conf.Configuration"
  71274. static="false" final="false" visibility="public"
  71275. deprecated="not deprecated">
  71276. <exception name="IOException" type="java.io.IOException"/>
  71277. <doc>
  71278. <![CDATA[Construct a job.
  71279. @param conf mapred job configuration representing a job to be executed.
  71280. @throws IOException]]>
  71281. </doc>
  71282. </constructor>
  71283. <method name="toString" return="java.lang.String"
  71284. abstract="false" native="false" synchronized="false"
  71285. static="false" final="false" visibility="public"
  71286. deprecated="not deprecated">
  71287. </method>
  71288. <method name="getJobName" return="java.lang.String"
  71289. abstract="false" native="false" synchronized="false"
  71290. static="false" final="false" visibility="public"
  71291. deprecated="not deprecated">
  71292. <doc>
  71293. <![CDATA[@return the job name of this job]]>
  71294. </doc>
  71295. </method>
  71296. <method name="setJobName"
  71297. abstract="false" native="false" synchronized="false"
  71298. static="false" final="false" visibility="public"
  71299. deprecated="not deprecated">
  71300. <param name="jobName" type="java.lang.String"/>
  71301. <doc>
  71302. <![CDATA[Set the job name for this job.
  71303. @param jobName the job name]]>
  71304. </doc>
  71305. </method>
  71306. <method name="getJobID" return="java.lang.String"
  71307. abstract="false" native="false" synchronized="false"
  71308. static="false" final="false" visibility="public"
  71309. deprecated="not deprecated">
  71310. <doc>
  71311. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  71312. </doc>
  71313. </method>
  71314. <method name="setJobID"
  71315. abstract="false" native="false" synchronized="false"
  71316. static="false" final="false" visibility="public"
  71317. deprecated="not deprecated">
  71318. <param name="id" type="java.lang.String"/>
  71319. <doc>
  71320. <![CDATA[Set the job ID for this job.
  71321. @param id the job ID]]>
  71322. </doc>
  71323. </method>
  71324. <method name="getMapredJobID" return="org.apache.hadoop.mapreduce.JobID"
  71325. abstract="false" native="false" synchronized="false"
  71326. static="false" final="false" visibility="public"
  71327. deprecated="not deprecated">
  71328. <doc>
  71329. <![CDATA[@return the mapred ID of this job as assigned by the
  71330. mapred framework.]]>
  71331. </doc>
  71332. </method>
  71333. <method name="getJob" return="org.apache.hadoop.mapreduce.Job"
  71334. abstract="false" native="false" synchronized="true"
  71335. static="false" final="false" visibility="public"
  71336. deprecated="not deprecated">
  71337. <doc>
  71338. <![CDATA[@return the mapreduce job]]>
  71339. </doc>
  71340. </method>
  71341. <method name="setJob"
  71342. abstract="false" native="false" synchronized="true"
  71343. static="false" final="false" visibility="public"
  71344. deprecated="not deprecated">
  71345. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71346. <doc>
  71347. <![CDATA[Set the mapreduce job
  71348. @param job the mapreduce job for this job.]]>
  71349. </doc>
  71350. </method>
  71351. <method name="getJobState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71352. abstract="false" native="false" synchronized="true"
  71353. static="false" final="false" visibility="public"
  71354. deprecated="not deprecated">
  71355. <doc>
  71356. <![CDATA[@return the state of this job]]>
  71357. </doc>
  71358. </method>
  71359. <method name="setJobState"
  71360. abstract="false" native="false" synchronized="true"
  71361. static="false" final="false" visibility="protected"
  71362. deprecated="not deprecated">
  71363. <param name="state" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"/>
  71364. <doc>
  71365. <![CDATA[Set the state for this job.
  71366. @param state the new state for this job.]]>
  71367. </doc>
  71368. </method>
  71369. <method name="getMessage" return="java.lang.String"
  71370. abstract="false" native="false" synchronized="true"
  71371. static="false" final="false" visibility="public"
  71372. deprecated="not deprecated">
  71373. <doc>
  71374. <![CDATA[@return the message of this job]]>
  71375. </doc>
  71376. </method>
  71377. <method name="setMessage"
  71378. abstract="false" native="false" synchronized="true"
  71379. static="false" final="false" visibility="public"
  71380. deprecated="not deprecated">
  71381. <param name="message" type="java.lang.String"/>
  71382. <doc>
  71383. <![CDATA[Set the message for this job.
  71384. @param message the message for this job.]]>
  71385. </doc>
  71386. </method>
  71387. <method name="getDependentJobs" return="java.util.List"
  71388. abstract="false" native="false" synchronized="false"
  71389. static="false" final="false" visibility="public"
  71390. deprecated="not deprecated">
  71391. <doc>
  71392. <![CDATA[@return the depending jobs of this job]]>
  71393. </doc>
  71394. </method>
  71395. <method name="addDependingJob" return="boolean"
  71396. abstract="false" native="false" synchronized="true"
  71397. static="false" final="false" visibility="public"
  71398. deprecated="not deprecated">
  71399. <param name="dependingJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  71400. <doc>
  71401. <![CDATA[Add a job to this jobs' dependency list.
  71402. Dependent jobs can only be added while a Job
  71403. is waiting to run, not during or afterwards.
  71404. @param dependingJob Job that this Job depends on.
  71405. @return <tt>true</tt> if the Job was added.]]>
  71406. </doc>
  71407. </method>
  71408. <method name="isCompleted" return="boolean"
  71409. abstract="false" native="false" synchronized="true"
  71410. static="false" final="false" visibility="public"
  71411. deprecated="not deprecated">
  71412. <doc>
  71413. <![CDATA[@return true if this job is in a complete state]]>
  71414. </doc>
  71415. </method>
  71416. <method name="isReady" return="boolean"
  71417. abstract="false" native="false" synchronized="true"
  71418. static="false" final="false" visibility="public"
  71419. deprecated="not deprecated">
  71420. <doc>
  71421. <![CDATA[@return true if this job is in READY state]]>
  71422. </doc>
  71423. </method>
  71424. <method name="killJob"
  71425. abstract="false" native="false" synchronized="false"
  71426. static="false" final="false" visibility="public"
  71427. deprecated="not deprecated">
  71428. <exception name="IOException" type="java.io.IOException"/>
  71429. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71430. </method>
  71431. <method name="failJob"
  71432. abstract="false" native="false" synchronized="true"
  71433. static="false" final="false" visibility="public"
  71434. deprecated="not deprecated">
  71435. <param name="message" type="java.lang.String"/>
  71436. <exception name="IOException" type="java.io.IOException"/>
  71437. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71438. </method>
  71439. <method name="submit"
  71440. abstract="false" native="false" synchronized="true"
  71441. static="false" final="false" visibility="protected"
  71442. deprecated="not deprecated">
  71443. <doc>
  71444. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  71445. is successful, FAILED otherwise.]]>
  71446. </doc>
  71447. </method>
  71448. <field name="CREATE_DIR" type="java.lang.String"
  71449. transient="false" volatile="false"
  71450. static="true" final="true" visibility="public"
  71451. deprecated="not deprecated">
  71452. </field>
  71453. <doc>
  71454. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  71455. the states of the depending jobs and updates the state of this job.
  71456. A job starts in the WAITING state. If it does not have any depending jobs,
  71457. or all of the depending jobs are in SUCCESS state, then the job state
  71458. will become READY. If any depending jobs fail, the job will fail too.
  71459. When in READY state, the job can be submitted to Hadoop for execution, with
  71460. the state changing into RUNNING state. From RUNNING state, the job
  71461. can get into SUCCESS or FAILED state, depending
  71462. the status of the job execution.]]>
  71463. </doc>
  71464. </class>
  71465. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  71466. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  71467. <class name="ControlledJob.State" extends="java.lang.Enum"
  71468. abstract="false"
  71469. static="true" final="true" visibility="public"
  71470. deprecated="not deprecated">
  71471. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State[]"
  71472. abstract="false" native="false" synchronized="false"
  71473. static="true" final="false" visibility="public"
  71474. deprecated="not deprecated">
  71475. </method>
  71476. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71477. abstract="false" native="false" synchronized="false"
  71478. static="true" final="false" visibility="public"
  71479. deprecated="not deprecated">
  71480. <param name="name" type="java.lang.String"/>
  71481. </method>
  71482. <field name="SUCCESS" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71483. transient="false" volatile="false"
  71484. static="true" final="true" visibility="public"
  71485. deprecated="not deprecated">
  71486. </field>
  71487. <field name="WAITING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71488. transient="false" volatile="false"
  71489. static="true" final="true" visibility="public"
  71490. deprecated="not deprecated">
  71491. </field>
  71492. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71493. transient="false" volatile="false"
  71494. static="true" final="true" visibility="public"
  71495. deprecated="not deprecated">
  71496. </field>
  71497. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71498. transient="false" volatile="false"
  71499. static="true" final="true" visibility="public"
  71500. deprecated="not deprecated">
  71501. </field>
  71502. <field name="FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71503. transient="false" volatile="false"
  71504. static="true" final="true" visibility="public"
  71505. deprecated="not deprecated">
  71506. </field>
  71507. <field name="DEPENDENT_FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  71508. transient="false" volatile="false"
  71509. static="true" final="true" visibility="public"
  71510. deprecated="not deprecated">
  71511. </field>
  71512. </class>
  71513. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  71514. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  71515. <class name="JobControl" extends="java.lang.Object"
  71516. abstract="false"
  71517. static="false" final="false" visibility="public"
  71518. deprecated="not deprecated">
  71519. <implements name="java.lang.Runnable"/>
  71520. <constructor name="JobControl" type="java.lang.String"
  71521. static="false" final="false" visibility="public"
  71522. deprecated="not deprecated">
  71523. <doc>
  71524. <![CDATA[Construct a job control for a group of jobs.
  71525. @param groupName a name identifying this group]]>
  71526. </doc>
  71527. </constructor>
  71528. <method name="getWaitingJobList" return="java.util.List"
  71529. abstract="false" native="false" synchronized="false"
  71530. static="false" final="false" visibility="public"
  71531. deprecated="not deprecated">
  71532. <doc>
  71533. <![CDATA[@return the jobs in the waiting state]]>
  71534. </doc>
  71535. </method>
  71536. <method name="getRunningJobList" return="java.util.List"
  71537. abstract="false" native="false" synchronized="false"
  71538. static="false" final="false" visibility="public"
  71539. deprecated="not deprecated">
  71540. <doc>
  71541. <![CDATA[@return the jobs in the running state]]>
  71542. </doc>
  71543. </method>
  71544. <method name="getReadyJobsList" return="java.util.List"
  71545. abstract="false" native="false" synchronized="false"
  71546. static="false" final="false" visibility="public"
  71547. deprecated="not deprecated">
  71548. <doc>
  71549. <![CDATA[@return the jobs in the ready state]]>
  71550. </doc>
  71551. </method>
  71552. <method name="getSuccessfulJobList" return="java.util.List"
  71553. abstract="false" native="false" synchronized="false"
  71554. static="false" final="false" visibility="public"
  71555. deprecated="not deprecated">
  71556. <doc>
  71557. <![CDATA[@return the jobs in the success state]]>
  71558. </doc>
  71559. </method>
  71560. <method name="getFailedJobList" return="java.util.List"
  71561. abstract="false" native="false" synchronized="false"
  71562. static="false" final="false" visibility="public"
  71563. deprecated="not deprecated">
  71564. </method>
  71565. <method name="addJob" return="java.lang.String"
  71566. abstract="false" native="false" synchronized="true"
  71567. static="false" final="false" visibility="public"
  71568. deprecated="not deprecated">
  71569. <param name="aJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  71570. <doc>
  71571. <![CDATA[Add a new job.
  71572. @param aJob the new job]]>
  71573. </doc>
  71574. </method>
  71575. <method name="addJobCollection"
  71576. abstract="false" native="false" synchronized="false"
  71577. static="false" final="false" visibility="public"
  71578. deprecated="not deprecated">
  71579. <param name="jobs" type="java.util.Collection"/>
  71580. <doc>
  71581. <![CDATA[Add a collection of jobs
  71582. @param jobs]]>
  71583. </doc>
  71584. </method>
  71585. <method name="getThreadState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71586. abstract="false" native="false" synchronized="false"
  71587. static="false" final="false" visibility="public"
  71588. deprecated="not deprecated">
  71589. <doc>
  71590. <![CDATA[@return the thread state]]>
  71591. </doc>
  71592. </method>
  71593. <method name="stop"
  71594. abstract="false" native="false" synchronized="false"
  71595. static="false" final="false" visibility="public"
  71596. deprecated="not deprecated">
  71597. <doc>
  71598. <![CDATA[set the thread state to STOPPING so that the
  71599. thread will stop when it wakes up.]]>
  71600. </doc>
  71601. </method>
  71602. <method name="suspend"
  71603. abstract="false" native="false" synchronized="false"
  71604. static="false" final="false" visibility="public"
  71605. deprecated="not deprecated">
  71606. <doc>
  71607. <![CDATA[suspend the running thread]]>
  71608. </doc>
  71609. </method>
  71610. <method name="resume"
  71611. abstract="false" native="false" synchronized="false"
  71612. static="false" final="false" visibility="public"
  71613. deprecated="not deprecated">
  71614. <doc>
  71615. <![CDATA[resume the suspended thread]]>
  71616. </doc>
  71617. </method>
  71618. <method name="allFinished" return="boolean"
  71619. abstract="false" native="false" synchronized="true"
  71620. static="false" final="false" visibility="public"
  71621. deprecated="not deprecated">
  71622. </method>
  71623. <method name="run"
  71624. abstract="false" native="false" synchronized="false"
  71625. static="false" final="false" visibility="public"
  71626. deprecated="not deprecated">
  71627. <doc>
  71628. <![CDATA[The main loop for the thread.
  71629. The loop does the following:
  71630. Check the states of the running jobs
  71631. Update the states of waiting jobs
  71632. Submit the jobs in ready state]]>
  71633. </doc>
  71634. </method>
  71635. <doc>
  71636. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency.
  71637. It tracks the states of the jobs by placing them into different tables
  71638. according to their states.
  71639. This class provides APIs for the client app to add a job to the group
  71640. and to get the jobs in the group in different states. When a job is
  71641. added, an ID unique to the group is assigned to the job.
  71642. This class has a thread that submits jobs when they become ready,
  71643. monitors the states of the running jobs, and updates the states of jobs
  71644. based on the state changes of their depending jobs states. The class
  71645. provides APIs for suspending/resuming the thread, and
  71646. for stopping the thread.]]>
  71647. </doc>
  71648. </class>
  71649. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  71650. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  71651. <class name="JobControl.ThreadState" extends="java.lang.Enum"
  71652. abstract="false"
  71653. static="true" final="true" visibility="public"
  71654. deprecated="not deprecated">
  71655. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState[]"
  71656. abstract="false" native="false" synchronized="false"
  71657. static="true" final="false" visibility="public"
  71658. deprecated="not deprecated">
  71659. </method>
  71660. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71661. abstract="false" native="false" synchronized="false"
  71662. static="true" final="false" visibility="public"
  71663. deprecated="not deprecated">
  71664. <param name="name" type="java.lang.String"/>
  71665. </method>
  71666. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71667. transient="false" volatile="false"
  71668. static="true" final="true" visibility="public"
  71669. deprecated="not deprecated">
  71670. </field>
  71671. <field name="SUSPENDED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71672. transient="false" volatile="false"
  71673. static="true" final="true" visibility="public"
  71674. deprecated="not deprecated">
  71675. </field>
  71676. <field name="STOPPED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71677. transient="false" volatile="false"
  71678. static="true" final="true" visibility="public"
  71679. deprecated="not deprecated">
  71680. </field>
  71681. <field name="STOPPING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71682. transient="false" volatile="false"
  71683. static="true" final="true" visibility="public"
  71684. deprecated="not deprecated">
  71685. </field>
  71686. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  71687. transient="false" volatile="false"
  71688. static="true" final="true" visibility="public"
  71689. deprecated="not deprecated">
  71690. </field>
  71691. </class>
  71692. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  71693. </package>
  71694. <package name="org.apache.hadoop.mapreduce.lib.map">
  71695. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  71696. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71697. abstract="false"
  71698. static="false" final="false" visibility="public"
  71699. deprecated="not deprecated">
  71700. <constructor name="InverseMapper"
  71701. static="false" final="false" visibility="public"
  71702. deprecated="not deprecated">
  71703. </constructor>
  71704. <method name="map"
  71705. abstract="false" native="false" synchronized="false"
  71706. static="false" final="false" visibility="public"
  71707. deprecated="not deprecated">
  71708. <param name="key" type="java.lang.Object"/>
  71709. <param name="value" type="java.lang.Object"/>
  71710. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71711. <exception name="IOException" type="java.io.IOException"/>
  71712. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71713. <doc>
  71714. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  71715. </doc>
  71716. </method>
  71717. <doc>
  71718. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  71719. </doc>
  71720. </class>
  71721. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  71722. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  71723. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71724. abstract="false"
  71725. static="false" final="false" visibility="public"
  71726. deprecated="not deprecated">
  71727. <constructor name="MultithreadedMapper"
  71728. static="false" final="false" visibility="public"
  71729. deprecated="not deprecated">
  71730. </constructor>
  71731. <method name="getNumberOfThreads" return="int"
  71732. abstract="false" native="false" synchronized="false"
  71733. static="true" final="false" visibility="public"
  71734. deprecated="not deprecated">
  71735. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71736. <doc>
  71737. <![CDATA[The number of threads in the thread pool that will run the map function.
  71738. @param job the job
  71739. @return the number of threads]]>
  71740. </doc>
  71741. </method>
  71742. <method name="setNumberOfThreads"
  71743. abstract="false" native="false" synchronized="false"
  71744. static="true" final="false" visibility="public"
  71745. deprecated="not deprecated">
  71746. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71747. <param name="threads" type="int"/>
  71748. <doc>
  71749. <![CDATA[Set the number of threads in the pool for running maps.
  71750. @param job the job to modify
  71751. @param threads the new number of threads]]>
  71752. </doc>
  71753. </method>
  71754. <method name="getMapperClass" return="java.lang.Class"
  71755. abstract="false" native="false" synchronized="false"
  71756. static="true" final="false" visibility="public"
  71757. deprecated="not deprecated">
  71758. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71759. <doc>
  71760. <![CDATA[Get the application's mapper class.
  71761. @param <K1> the map's input key type
  71762. @param <V1> the map's input value type
  71763. @param <K2> the map's output key type
  71764. @param <V2> the map's output value type
  71765. @param job the job
  71766. @return the mapper class to run]]>
  71767. </doc>
  71768. </method>
  71769. <method name="setMapperClass"
  71770. abstract="false" native="false" synchronized="false"
  71771. static="true" final="false" visibility="public"
  71772. deprecated="not deprecated">
  71773. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71774. <param name="cls" type="java.lang.Class"/>
  71775. <doc>
  71776. <![CDATA[Set the application's mapper class.
  71777. @param <K1> the map input key type
  71778. @param <V1> the map input value type
  71779. @param <K2> the map output key type
  71780. @param <V2> the map output value type
  71781. @param job the job to modify
  71782. @param cls the class to use as the mapper]]>
  71783. </doc>
  71784. </method>
  71785. <method name="run"
  71786. abstract="false" native="false" synchronized="false"
  71787. static="false" final="false" visibility="public"
  71788. deprecated="not deprecated">
  71789. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71790. <exception name="IOException" type="java.io.IOException"/>
  71791. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71792. <doc>
  71793. <![CDATA[Run the application's maps using a thread pool.]]>
  71794. </doc>
  71795. </method>
  71796. <doc>
  71797. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  71798. <p>
  71799. It can be used instead of the default implementation,
  71800. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  71801. bound in order to improve throughput.
  71802. <p>
  71803. Mapper implementations using this MapRunnable must be thread-safe.
  71804. <p>
  71805. The Map-Reduce job has to be configured with the mapper to use via
  71806. {@link #setMapperClass(Configuration, Class)} and
  71807. the number of thread the thread-pool can use with the
  71808. {@link #getNumberOfThreads(Configuration) method. The default
  71809. value is 10 threads.
  71810. <p>]]>
  71811. </doc>
  71812. </class>
  71813. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  71814. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  71815. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71816. abstract="false"
  71817. static="false" final="false" visibility="public"
  71818. deprecated="not deprecated">
  71819. <constructor name="TokenCounterMapper"
  71820. static="false" final="false" visibility="public"
  71821. deprecated="not deprecated">
  71822. </constructor>
  71823. <method name="map"
  71824. abstract="false" native="false" synchronized="false"
  71825. static="false" final="false" visibility="public"
  71826. deprecated="not deprecated">
  71827. <param name="key" type="java.lang.Object"/>
  71828. <param name="value" type="org.apache.hadoop.io.Text"/>
  71829. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71830. <exception name="IOException" type="java.io.IOException"/>
  71831. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71832. </method>
  71833. <doc>
  71834. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  71835. </doc>
  71836. </class>
  71837. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  71838. </package>
  71839. <package name="org.apache.hadoop.mapreduce.lib.output">
  71840. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  71841. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  71842. abstract="false"
  71843. static="false" final="false" visibility="public"
  71844. deprecated="not deprecated">
  71845. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  71846. static="false" final="false" visibility="public"
  71847. deprecated="not deprecated">
  71848. <exception name="IOException" type="java.io.IOException"/>
  71849. <doc>
  71850. <![CDATA[Create a file output committer
  71851. @param outputPath the job's output path
  71852. @param context the task's context
  71853. @throws IOException]]>
  71854. </doc>
  71855. </constructor>
  71856. <method name="setupJob"
  71857. abstract="false" native="false" synchronized="false"
  71858. static="false" final="false" visibility="public"
  71859. deprecated="not deprecated">
  71860. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71861. <exception name="IOException" type="java.io.IOException"/>
  71862. <doc>
  71863. <![CDATA[Create the temporary directory that is the root of all of the task
  71864. work directories.
  71865. @param context the job's context]]>
  71866. </doc>
  71867. </method>
  71868. <method name="commitJob"
  71869. abstract="false" native="false" synchronized="false"
  71870. static="false" final="false" visibility="public"
  71871. deprecated="not deprecated">
  71872. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71873. <exception name="IOException" type="java.io.IOException"/>
  71874. <doc>
  71875. <![CDATA[Delete the temporary directory, including all of the work directories.
  71876. This is called for all jobs whose final run state is SUCCEEDED
  71877. @param context the job's context.]]>
  71878. </doc>
  71879. </method>
  71880. <method name="cleanupJob"
  71881. abstract="false" native="false" synchronized="false"
  71882. static="false" final="false" visibility="public"
  71883. deprecated="not deprecated">
  71884. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71885. <exception name="IOException" type="java.io.IOException"/>
  71886. </method>
  71887. <method name="abortJob"
  71888. abstract="false" native="false" synchronized="false"
  71889. static="false" final="false" visibility="public"
  71890. deprecated="not deprecated">
  71891. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71892. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  71893. <exception name="IOException" type="java.io.IOException"/>
  71894. <doc>
  71895. <![CDATA[Delete the temporary directory, including all of the work directories.
  71896. @param context the job's context
  71897. @param state final run state of the job, should be FAILED or KILLED]]>
  71898. </doc>
  71899. </method>
  71900. <method name="setupTask"
  71901. abstract="false" native="false" synchronized="false"
  71902. static="false" final="false" visibility="public"
  71903. deprecated="not deprecated">
  71904. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71905. <exception name="IOException" type="java.io.IOException"/>
  71906. <doc>
  71907. <![CDATA[No task setup required.]]>
  71908. </doc>
  71909. </method>
  71910. <method name="commitTask"
  71911. abstract="false" native="false" synchronized="false"
  71912. static="false" final="false" visibility="public"
  71913. deprecated="not deprecated">
  71914. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71915. <exception name="IOException" type="java.io.IOException"/>
  71916. <doc>
  71917. <![CDATA[Move the files from the work directory to the job output directory
  71918. @param context the task context]]>
  71919. </doc>
  71920. </method>
  71921. <method name="abortTask"
  71922. abstract="false" native="false" synchronized="false"
  71923. static="false" final="false" visibility="public"
  71924. deprecated="not deprecated">
  71925. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71926. <doc>
  71927. <![CDATA[Delete the work directory]]>
  71928. </doc>
  71929. </method>
  71930. <method name="needsTaskCommit" return="boolean"
  71931. abstract="false" native="false" synchronized="false"
  71932. static="false" final="false" visibility="public"
  71933. deprecated="not deprecated">
  71934. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71935. <exception name="IOException" type="java.io.IOException"/>
  71936. <doc>
  71937. <![CDATA[Did this task write any files in the work directory?
  71938. @param context the task's context]]>
  71939. </doc>
  71940. </method>
  71941. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  71942. abstract="false" native="false" synchronized="false"
  71943. static="false" final="false" visibility="public"
  71944. deprecated="not deprecated">
  71945. <exception name="IOException" type="java.io.IOException"/>
  71946. <doc>
  71947. <![CDATA[Get the directory that the task should write results into
  71948. @return the work directory
  71949. @throws IOException]]>
  71950. </doc>
  71951. </method>
  71952. <field name="TEMP_DIR_NAME" type="java.lang.String"
  71953. transient="false" volatile="false"
  71954. static="true" final="true" visibility="protected"
  71955. deprecated="not deprecated">
  71956. <doc>
  71957. <![CDATA[Temporary directory name]]>
  71958. </doc>
  71959. </field>
  71960. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  71961. transient="false" volatile="false"
  71962. static="true" final="true" visibility="public"
  71963. deprecated="not deprecated">
  71964. </field>
  71965. <doc>
  71966. <![CDATA[An {@link OutputCommitter} that commits files specified
  71967. in job output directory i.e. ${mapred.output.dir}.]]>
  71968. </doc>
  71969. </class>
  71970. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  71971. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  71972. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  71973. abstract="true"
  71974. static="false" final="false" visibility="public"
  71975. deprecated="not deprecated">
  71976. <constructor name="FileOutputFormat"
  71977. static="false" final="false" visibility="public"
  71978. deprecated="not deprecated">
  71979. </constructor>
  71980. <method name="setCompressOutput"
  71981. abstract="false" native="false" synchronized="false"
  71982. static="true" final="false" visibility="public"
  71983. deprecated="not deprecated">
  71984. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71985. <param name="compress" type="boolean"/>
  71986. <doc>
  71987. <![CDATA[Set whether the output of the job is compressed.
  71988. @param job the job to modify
  71989. @param compress should the output of the job be compressed?]]>
  71990. </doc>
  71991. </method>
  71992. <method name="getCompressOutput" return="boolean"
  71993. abstract="false" native="false" synchronized="false"
  71994. static="true" final="false" visibility="public"
  71995. deprecated="not deprecated">
  71996. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71997. <doc>
  71998. <![CDATA[Is the job output compressed?
  71999. @param job the Job to look in
  72000. @return <code>true</code> if the job output should be compressed,
  72001. <code>false</code> otherwise]]>
  72002. </doc>
  72003. </method>
  72004. <method name="setOutputCompressorClass"
  72005. abstract="false" native="false" synchronized="false"
  72006. static="true" final="false" visibility="public"
  72007. deprecated="not deprecated">
  72008. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72009. <param name="codecClass" type="java.lang.Class"/>
  72010. <doc>
  72011. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  72012. @param job the job to modify
  72013. @param codecClass the {@link CompressionCodec} to be used to
  72014. compress the job outputs]]>
  72015. </doc>
  72016. </method>
  72017. <method name="getOutputCompressorClass" return="java.lang.Class"
  72018. abstract="false" native="false" synchronized="false"
  72019. static="true" final="false" visibility="public"
  72020. deprecated="not deprecated">
  72021. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72022. <param name="defaultValue" type="java.lang.Class"/>
  72023. <doc>
  72024. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  72025. @param job the {@link Job} to look in
  72026. @param defaultValue the {@link CompressionCodec} to return if not set
  72027. @return the {@link CompressionCodec} to be used to compress the
  72028. job outputs
  72029. @throws IllegalArgumentException if the class was specified, but not found]]>
  72030. </doc>
  72031. </method>
  72032. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72033. abstract="true" native="false" synchronized="false"
  72034. static="false" final="false" visibility="public"
  72035. deprecated="not deprecated">
  72036. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72037. <exception name="IOException" type="java.io.IOException"/>
  72038. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72039. </method>
  72040. <method name="checkOutputSpecs"
  72041. abstract="false" native="false" synchronized="false"
  72042. static="false" final="false" visibility="public"
  72043. deprecated="not deprecated">
  72044. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72045. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  72046. <exception name="IOException" type="java.io.IOException"/>
  72047. </method>
  72048. <method name="setOutputPath"
  72049. abstract="false" native="false" synchronized="false"
  72050. static="true" final="false" visibility="public"
  72051. deprecated="not deprecated">
  72052. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72053. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  72054. <doc>
  72055. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  72056. @param job The job to modify
  72057. @param outputDir the {@link Path} of the output directory for
  72058. the map-reduce job.]]>
  72059. </doc>
  72060. </method>
  72061. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  72062. abstract="false" native="false" synchronized="false"
  72063. static="true" final="false" visibility="public"
  72064. deprecated="not deprecated">
  72065. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72066. <doc>
  72067. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  72068. @return the {@link Path} to the output directory for the map-reduce job.
  72069. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  72070. </doc>
  72071. </method>
  72072. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  72073. abstract="false" native="false" synchronized="false"
  72074. static="true" final="false" visibility="public"
  72075. deprecated="not deprecated">
  72076. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  72077. <exception name="IOException" type="java.io.IOException"/>
  72078. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72079. <doc>
  72080. <![CDATA[Get the {@link Path} to the task's temporary output directory
  72081. for the map-reduce job
  72082. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  72083. <p>Some applications need to create/write-to side-files, which differ from
  72084. the actual job-outputs.
  72085. <p>In such cases there could be issues with 2 instances of the same TIP
  72086. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  72087. same file (path) on HDFS. Hence the application-writer will have to pick
  72088. unique names per task-attempt (e.g. using the attemptid, say
  72089. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  72090. <p>To get around this the Map-Reduce framework helps the application-writer
  72091. out by maintaining a special
  72092. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  72093. sub-directory for each task-attempt on HDFS where the output of the
  72094. task-attempt goes. On successful completion of the task-attempt the files
  72095. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  72096. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  72097. framework discards the sub-directory of unsuccessful task-attempts. This
  72098. is completely transparent to the application.</p>
  72099. <p>The application-writer can take advantage of this by creating any
  72100. side-files required in a work directory during execution
  72101. of his task i.e. via
  72102. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  72103. the framework will move them out similarly - thus she doesn't have to pick
  72104. unique paths per task-attempt.</p>
  72105. <p>The entire discussion holds true for maps of jobs with
  72106. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  72107. goes directly to HDFS.</p>
  72108. @return the {@link Path} to the task's temporary output directory
  72109. for the map-reduce job.]]>
  72110. </doc>
  72111. </method>
  72112. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  72113. abstract="false" native="false" synchronized="false"
  72114. static="true" final="false" visibility="public"
  72115. deprecated="not deprecated">
  72116. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  72117. <param name="name" type="java.lang.String"/>
  72118. <param name="extension" type="java.lang.String"/>
  72119. <exception name="IOException" type="java.io.IOException"/>
  72120. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72121. <doc>
  72122. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  72123. the task within the job output directory.
  72124. <p>The path can be used to create custom files from within the map and
  72125. reduce tasks. The path name will be unique for each task. The path parent
  72126. will be the job output directory.</p>ls
  72127. <p>This method uses the {@link #getUniqueFile} method to make the file name
  72128. unique for the task.</p>
  72129. @param context the context for the task.
  72130. @param name the name for the file.
  72131. @param extension the extension for the file
  72132. @return a unique path accross all tasks of the job.]]>
  72133. </doc>
  72134. </method>
  72135. <method name="getUniqueFile" return="java.lang.String"
  72136. abstract="false" native="false" synchronized="true"
  72137. static="true" final="false" visibility="public"
  72138. deprecated="not deprecated">
  72139. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72140. <param name="name" type="java.lang.String"/>
  72141. <param name="extension" type="java.lang.String"/>
  72142. <doc>
  72143. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  72144. @param context the task that is calling this
  72145. @param name the base filename
  72146. @param extension the filename extension
  72147. @return a string like $name-[mr]-$id$extension]]>
  72148. </doc>
  72149. </method>
  72150. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  72151. abstract="false" native="false" synchronized="false"
  72152. static="false" final="false" visibility="public"
  72153. deprecated="not deprecated">
  72154. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72155. <param name="extension" type="java.lang.String"/>
  72156. <exception name="IOException" type="java.io.IOException"/>
  72157. <doc>
  72158. <![CDATA[Get the default path and filename for the output format.
  72159. @param context the task context
  72160. @param extension an extension to add to the filename
  72161. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  72162. @throws IOException]]>
  72163. </doc>
  72164. </method>
  72165. <method name="getOutputName" return="java.lang.String"
  72166. abstract="false" native="false" synchronized="false"
  72167. static="true" final="false" visibility="protected"
  72168. deprecated="not deprecated">
  72169. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72170. <doc>
  72171. <![CDATA[Get the base output name for the output file.]]>
  72172. </doc>
  72173. </method>
  72174. <method name="setOutputName"
  72175. abstract="false" native="false" synchronized="false"
  72176. static="true" final="false" visibility="protected"
  72177. deprecated="not deprecated">
  72178. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72179. <param name="name" type="java.lang.String"/>
  72180. <doc>
  72181. <![CDATA[Set the base output name for output file to be created.]]>
  72182. </doc>
  72183. </method>
  72184. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  72185. abstract="false" native="false" synchronized="true"
  72186. static="false" final="false" visibility="public"
  72187. deprecated="not deprecated">
  72188. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72189. <exception name="IOException" type="java.io.IOException"/>
  72190. </method>
  72191. <field name="BASE_OUTPUT_NAME" type="java.lang.String"
  72192. transient="false" volatile="false"
  72193. static="true" final="true" visibility="protected"
  72194. deprecated="not deprecated">
  72195. </field>
  72196. <field name="PART" type="java.lang.String"
  72197. transient="false" volatile="false"
  72198. static="true" final="true" visibility="protected"
  72199. deprecated="not deprecated">
  72200. </field>
  72201. <doc>
  72202. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  72203. </doc>
  72204. </class>
  72205. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  72206. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  72207. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  72208. abstract="false"
  72209. static="true" final="true" visibility="public"
  72210. deprecated="not deprecated">
  72211. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  72212. abstract="false" native="false" synchronized="false"
  72213. static="true" final="false" visibility="public"
  72214. deprecated="not deprecated">
  72215. </method>
  72216. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  72217. abstract="false" native="false" synchronized="false"
  72218. static="true" final="false" visibility="public"
  72219. deprecated="not deprecated">
  72220. <param name="name" type="java.lang.String"/>
  72221. </method>
  72222. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  72223. transient="false" volatile="false"
  72224. static="true" final="true" visibility="public"
  72225. deprecated="not deprecated">
  72226. </field>
  72227. </class>
  72228. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  72229. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  72230. <class name="FilterOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  72231. abstract="false"
  72232. static="false" final="false" visibility="public"
  72233. deprecated="not deprecated">
  72234. <constructor name="FilterOutputFormat"
  72235. static="false" final="false" visibility="public"
  72236. deprecated="not deprecated">
  72237. </constructor>
  72238. <constructor name="FilterOutputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  72239. static="false" final="false" visibility="public"
  72240. deprecated="not deprecated">
  72241. <doc>
  72242. <![CDATA[Create a FilterOutputFormat based on the underlying output format.
  72243. @param baseOut the underlying OutputFormat]]>
  72244. </doc>
  72245. </constructor>
  72246. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72247. abstract="false" native="false" synchronized="false"
  72248. static="false" final="false" visibility="public"
  72249. deprecated="not deprecated">
  72250. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72251. <exception name="IOException" type="java.io.IOException"/>
  72252. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72253. </method>
  72254. <method name="checkOutputSpecs"
  72255. abstract="false" native="false" synchronized="false"
  72256. static="false" final="false" visibility="public"
  72257. deprecated="not deprecated">
  72258. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72259. <exception name="IOException" type="java.io.IOException"/>
  72260. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72261. </method>
  72262. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  72263. abstract="false" native="false" synchronized="false"
  72264. static="false" final="false" visibility="public"
  72265. deprecated="not deprecated">
  72266. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72267. <exception name="IOException" type="java.io.IOException"/>
  72268. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72269. </method>
  72270. <field name="baseOut" type="org.apache.hadoop.mapreduce.OutputFormat"
  72271. transient="false" volatile="false"
  72272. static="false" final="false" visibility="protected"
  72273. deprecated="not deprecated">
  72274. </field>
  72275. <doc>
  72276. <![CDATA[FilterOutputFormat is a convenience class that wraps OutputFormat.]]>
  72277. </doc>
  72278. </class>
  72279. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  72280. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  72281. <class name="FilterOutputFormat.FilterRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  72282. abstract="false"
  72283. static="true" final="false" visibility="public"
  72284. deprecated="not deprecated">
  72285. <constructor name="FilterOutputFormat.FilterRecordWriter"
  72286. static="false" final="false" visibility="public"
  72287. deprecated="not deprecated">
  72288. </constructor>
  72289. <constructor name="FilterOutputFormat.FilterRecordWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  72290. static="false" final="false" visibility="public"
  72291. deprecated="not deprecated">
  72292. </constructor>
  72293. <method name="write"
  72294. abstract="false" native="false" synchronized="false"
  72295. static="false" final="false" visibility="public"
  72296. deprecated="not deprecated">
  72297. <param name="key" type="java.lang.Object"/>
  72298. <param name="value" type="java.lang.Object"/>
  72299. <exception name="IOException" type="java.io.IOException"/>
  72300. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72301. </method>
  72302. <method name="close"
  72303. abstract="false" native="false" synchronized="false"
  72304. static="false" final="false" visibility="public"
  72305. deprecated="not deprecated">
  72306. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72307. <exception name="IOException" type="java.io.IOException"/>
  72308. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72309. </method>
  72310. <field name="rawWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  72311. transient="false" volatile="false"
  72312. static="false" final="false" visibility="protected"
  72313. deprecated="not deprecated">
  72314. </field>
  72315. <doc>
  72316. <![CDATA[<code>FilterRecordWriter</code> is a convenience wrapper
  72317. class that extends the {@link RecordWriter}.]]>
  72318. </doc>
  72319. </class>
  72320. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  72321. <!-- start class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  72322. <class name="LazyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat"
  72323. abstract="false"
  72324. static="false" final="false" visibility="public"
  72325. deprecated="not deprecated">
  72326. <constructor name="LazyOutputFormat"
  72327. static="false" final="false" visibility="public"
  72328. deprecated="not deprecated">
  72329. </constructor>
  72330. <method name="setOutputFormatClass"
  72331. abstract="false" native="false" synchronized="false"
  72332. static="true" final="false" visibility="public"
  72333. deprecated="not deprecated">
  72334. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72335. <param name="theClass" type="java.lang.Class"/>
  72336. <doc>
  72337. <![CDATA[Set the underlying output format for LazyOutputFormat.
  72338. @param job the {@link Job} to modify
  72339. @param theClass the underlying class]]>
  72340. </doc>
  72341. </method>
  72342. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72343. abstract="false" native="false" synchronized="false"
  72344. static="false" final="false" visibility="public"
  72345. deprecated="not deprecated">
  72346. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72347. <exception name="IOException" type="java.io.IOException"/>
  72348. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72349. </method>
  72350. <method name="checkOutputSpecs"
  72351. abstract="false" native="false" synchronized="false"
  72352. static="false" final="false" visibility="public"
  72353. deprecated="not deprecated">
  72354. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72355. <exception name="IOException" type="java.io.IOException"/>
  72356. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72357. </method>
  72358. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  72359. abstract="false" native="false" synchronized="false"
  72360. static="false" final="false" visibility="public"
  72361. deprecated="not deprecated">
  72362. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72363. <exception name="IOException" type="java.io.IOException"/>
  72364. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72365. </method>
  72366. <field name="OUTPUT_FORMAT" type="java.lang.String"
  72367. transient="false" volatile="false"
  72368. static="true" final="false" visibility="public"
  72369. deprecated="not deprecated">
  72370. </field>
  72371. <doc>
  72372. <![CDATA[A Convenience class that creates output lazily.]]>
  72373. </doc>
  72374. </class>
  72375. <!-- end class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  72376. <!-- start class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  72377. <class name="MultipleOutputs" extends="java.lang.Object"
  72378. abstract="false"
  72379. static="false" final="false" visibility="public"
  72380. deprecated="not deprecated">
  72381. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  72382. static="false" final="false" visibility="public"
  72383. deprecated="not deprecated">
  72384. <doc>
  72385. <![CDATA[Creates and initializes multiple outputs support,
  72386. it should be instantiated in the Mapper/Reducer setup method.
  72387. @param context the TaskInputOutputContext object]]>
  72388. </doc>
  72389. </constructor>
  72390. <method name="addNamedOutput"
  72391. abstract="false" native="false" synchronized="false"
  72392. static="true" final="false" visibility="public"
  72393. deprecated="not deprecated">
  72394. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72395. <param name="namedOutput" type="java.lang.String"/>
  72396. <param name="outputFormatClass" type="java.lang.Class"/>
  72397. <param name="keyClass" type="java.lang.Class"/>
  72398. <param name="valueClass" type="java.lang.Class"/>
  72399. <doc>
  72400. <![CDATA[Adds a named output for the job.
  72401. <p/>
  72402. @param job job to add the named output
  72403. @param namedOutput named output name, it has to be a word, letters
  72404. and numbers only, cannot be the word 'part' as
  72405. that is reserved for the default output.
  72406. @param outputFormatClass OutputFormat class.
  72407. @param keyClass key class
  72408. @param valueClass value class]]>
  72409. </doc>
  72410. </method>
  72411. <method name="setCountersEnabled"
  72412. abstract="false" native="false" synchronized="false"
  72413. static="true" final="false" visibility="public"
  72414. deprecated="not deprecated">
  72415. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72416. <param name="enabled" type="boolean"/>
  72417. <doc>
  72418. <![CDATA[Enables or disables counters for the named outputs.
  72419. The counters group is the {@link MultipleOutputs} class name.
  72420. The names of the counters are the same as the named outputs. These
  72421. counters count the number records written to each output name.
  72422. By default these counters are disabled.
  72423. @param job job to enable counters
  72424. @param enabled indicates if the counters will be enabled or not.]]>
  72425. </doc>
  72426. </method>
  72427. <method name="getCountersEnabled" return="boolean"
  72428. abstract="false" native="false" synchronized="false"
  72429. static="true" final="false" visibility="public"
  72430. deprecated="not deprecated">
  72431. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72432. <doc>
  72433. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  72434. By default these counters are disabled.
  72435. @param job the job
  72436. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  72437. </doc>
  72438. </method>
  72439. <method name="write"
  72440. abstract="false" native="false" synchronized="false"
  72441. static="false" final="false" visibility="public"
  72442. deprecated="not deprecated">
  72443. <param name="namedOutput" type="java.lang.String"/>
  72444. <param name="key" type="java.lang.Object"/>
  72445. <param name="value" type="java.lang.Object"/>
  72446. <exception name="IOException" type="java.io.IOException"/>
  72447. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72448. <doc>
  72449. <![CDATA[Write key and value to the namedOutput.
  72450. Output path is a unique file generated for the namedOutput.
  72451. For example, {namedOutput}-(m|r)-{part-number}
  72452. @param namedOutput the named output name
  72453. @param key the key
  72454. @param value the value]]>
  72455. </doc>
  72456. </method>
  72457. <method name="write"
  72458. abstract="false" native="false" synchronized="false"
  72459. static="false" final="false" visibility="public"
  72460. deprecated="not deprecated">
  72461. <param name="namedOutput" type="java.lang.String"/>
  72462. <param name="key" type="java.lang.Object"/>
  72463. <param name="value" type="java.lang.Object"/>
  72464. <param name="baseOutputPath" type="java.lang.String"/>
  72465. <exception name="IOException" type="java.io.IOException"/>
  72466. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72467. <doc>
  72468. <![CDATA[Write key and value to baseOutputPath using the namedOutput.
  72469. @param namedOutput the named output name
  72470. @param key the key
  72471. @param value the value
  72472. @param baseOutputPath base-output path to write the record to.
  72473. Note: Framework will generate unique filename for the baseOutputPath]]>
  72474. </doc>
  72475. </method>
  72476. <method name="write"
  72477. abstract="false" native="false" synchronized="false"
  72478. static="false" final="false" visibility="public"
  72479. deprecated="not deprecated">
  72480. <param name="key" type="java.lang.Object"/>
  72481. <param name="value" type="java.lang.Object"/>
  72482. <param name="baseOutputPath" type="java.lang.String"/>
  72483. <exception name="IOException" type="java.io.IOException"/>
  72484. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72485. <doc>
  72486. <![CDATA[Write key value to an output file name.
  72487. Gets the record writer from job's output format.
  72488. Job's output format should be a FileOutputFormat.
  72489. @param key the key
  72490. @param value the value
  72491. @param baseOutputPath base-output path to write the record to.
  72492. Note: Framework will generate unique filename for the baseOutputPath]]>
  72493. </doc>
  72494. </method>
  72495. <method name="close"
  72496. abstract="false" native="false" synchronized="false"
  72497. static="false" final="false" visibility="public"
  72498. deprecated="not deprecated">
  72499. <exception name="IOException" type="java.io.IOException"/>
  72500. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72501. <doc>
  72502. <![CDATA[Closes all the opened outputs.
  72503. This should be called from cleanup method of map/reduce task.
  72504. If overridden subclasses must invoke <code>super.close()</code> at the
  72505. end of their <code>close()</code>]]>
  72506. </doc>
  72507. </method>
  72508. <doc>
  72509. <![CDATA[The MultipleOutputs class simplifies writing output data
  72510. to multiple outputs
  72511. <p>
  72512. Case one: writing to additional outputs other than the job default output.
  72513. Each additional output, or named output, may be configured with its own
  72514. <code>OutputFormat</code>, with its own key class and with its own value
  72515. class.
  72516. <p>
  72517. Case two: to write data to different files provided by user
  72518. </p>
  72519. <p>
  72520. MultipleOutputs supports counters, by default they are disabled. The
  72521. counters group is the {@link MultipleOutputs} class name. The names of the
  72522. counters are the same as the output name. These count the number records
  72523. written to each output name.
  72524. </p>
  72525. Usage pattern for job submission:
  72526. <pre>
  72527. Job job = new Job();
  72528. FileInputFormat.setInputPath(job, inDir);
  72529. FileOutputFormat.setOutputPath(job, outDir);
  72530. job.setMapperClass(MOMap.class);
  72531. job.setReducerClass(MOReduce.class);
  72532. ...
  72533. // Defines additional single text based output 'text' for the job
  72534. MultipleOutputs.addNamedOutput(job, "text", TextOutputFormat.class,
  72535. LongWritable.class, Text.class);
  72536. // Defines additional sequence-file based output 'sequence' for the job
  72537. MultipleOutputs.addNamedOutput(job, "seq",
  72538. SequenceFileOutputFormat.class,
  72539. LongWritable.class, Text.class);
  72540. ...
  72541. job.waitForCompletion(true);
  72542. ...
  72543. </pre>
  72544. <p>
  72545. Usage in Reducer:
  72546. <pre>
  72547. <K, V> String generateFileName(K k, V v) {
  72548. return k.toString() + "_" + v.toString();
  72549. }
  72550. public class MOReduce extends
  72551. Reducer&lt;WritableComparable, Writable,WritableComparable, Writable&gt; {
  72552. private MultipleOutputs mos;
  72553. public void setup(Context context) {
  72554. ...
  72555. mos = new MultipleOutputs(context);
  72556. }
  72557. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  72558. Context context)
  72559. throws IOException {
  72560. ...
  72561. mos.write("text", , key, new Text("Hello"));
  72562. mos.write("seq", LongWritable(1), new Text("Bye"), "seq_a");
  72563. mos.write("seq", LongWritable(2), key, new Text("Chau"), "seq_b");
  72564. mos.write(key, new Text("value"), generateFileName(key, new Text("value")));
  72565. ...
  72566. }
  72567. public void cleanup(Context) throws IOException {
  72568. mos.close();
  72569. ...
  72570. }
  72571. }
  72572. </pre>]]>
  72573. </doc>
  72574. </class>
  72575. <!-- end class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  72576. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  72577. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  72578. abstract="false"
  72579. static="false" final="false" visibility="public"
  72580. deprecated="not deprecated">
  72581. <constructor name="NullOutputFormat"
  72582. static="false" final="false" visibility="public"
  72583. deprecated="not deprecated">
  72584. </constructor>
  72585. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72586. abstract="false" native="false" synchronized="false"
  72587. static="false" final="false" visibility="public"
  72588. deprecated="not deprecated">
  72589. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72590. </method>
  72591. <method name="checkOutputSpecs"
  72592. abstract="false" native="false" synchronized="false"
  72593. static="false" final="false" visibility="public"
  72594. deprecated="not deprecated">
  72595. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72596. </method>
  72597. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  72598. abstract="false" native="false" synchronized="false"
  72599. static="false" final="false" visibility="public"
  72600. deprecated="not deprecated">
  72601. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72602. </method>
  72603. <doc>
  72604. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  72605. </doc>
  72606. </class>
  72607. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  72608. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  72609. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat"
  72610. abstract="false"
  72611. static="false" final="false" visibility="public"
  72612. deprecated="not deprecated">
  72613. <constructor name="SequenceFileAsBinaryOutputFormat"
  72614. static="false" final="false" visibility="public"
  72615. deprecated="not deprecated">
  72616. </constructor>
  72617. <method name="setSequenceFileOutputKeyClass"
  72618. abstract="false" native="false" synchronized="false"
  72619. static="true" final="false" visibility="public"
  72620. deprecated="not deprecated">
  72621. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72622. <param name="theClass" type="java.lang.Class"/>
  72623. <doc>
  72624. <![CDATA[Set the key class for the {@link SequenceFile}
  72625. <p>This allows the user to specify the key class to be different
  72626. from the actual class ({@link BytesWritable}) used for writing </p>
  72627. @param job the {@link Job} to modify
  72628. @param theClass the SequenceFile output key class.]]>
  72629. </doc>
  72630. </method>
  72631. <method name="setSequenceFileOutputValueClass"
  72632. abstract="false" native="false" synchronized="false"
  72633. static="true" final="false" visibility="public"
  72634. deprecated="not deprecated">
  72635. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72636. <param name="theClass" type="java.lang.Class"/>
  72637. <doc>
  72638. <![CDATA[Set the value class for the {@link SequenceFile}
  72639. <p>This allows the user to specify the value class to be different
  72640. from the actual class ({@link BytesWritable}) used for writing </p>
  72641. @param job the {@link Job} to modify
  72642. @param theClass the SequenceFile output key class.]]>
  72643. </doc>
  72644. </method>
  72645. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  72646. abstract="false" native="false" synchronized="false"
  72647. static="true" final="false" visibility="public"
  72648. deprecated="not deprecated">
  72649. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72650. <doc>
  72651. <![CDATA[Get the key class for the {@link SequenceFile}
  72652. @return the key class of the {@link SequenceFile}]]>
  72653. </doc>
  72654. </method>
  72655. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  72656. abstract="false" native="false" synchronized="false"
  72657. static="true" final="false" visibility="public"
  72658. deprecated="not deprecated">
  72659. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72660. <doc>
  72661. <![CDATA[Get the value class for the {@link SequenceFile}
  72662. @return the value class of the {@link SequenceFile}]]>
  72663. </doc>
  72664. </method>
  72665. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72666. abstract="false" native="false" synchronized="false"
  72667. static="false" final="false" visibility="public"
  72668. deprecated="not deprecated">
  72669. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72670. <exception name="IOException" type="java.io.IOException"/>
  72671. </method>
  72672. <method name="getSequenceWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  72673. abstract="false" native="false" synchronized="false"
  72674. static="false" final="false" visibility="protected"
  72675. deprecated="not deprecated">
  72676. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72677. <param name="keyClass" type="java.lang.Class"/>
  72678. <param name="valueClass" type="java.lang.Class"/>
  72679. <exception name="IOException" type="java.io.IOException"/>
  72680. </method>
  72681. <method name="checkOutputSpecs"
  72682. abstract="false" native="false" synchronized="false"
  72683. static="false" final="false" visibility="public"
  72684. deprecated="not deprecated">
  72685. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72686. <exception name="IOException" type="java.io.IOException"/>
  72687. </method>
  72688. <field name="KEY_CLASS" type="java.lang.String"
  72689. transient="false" volatile="false"
  72690. static="true" final="false" visibility="public"
  72691. deprecated="not deprecated">
  72692. </field>
  72693. <field name="VALUE_CLASS" type="java.lang.String"
  72694. transient="false" volatile="false"
  72695. static="true" final="false" visibility="public"
  72696. deprecated="not deprecated">
  72697. </field>
  72698. <doc>
  72699. <![CDATA[An {@link org.apache.hadoop.mapreduce.OutputFormat} that writes keys,
  72700. values to {@link SequenceFile}s in binary(raw) format]]>
  72701. </doc>
  72702. </class>
  72703. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  72704. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  72705. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  72706. abstract="false"
  72707. static="true" final="false" visibility="public"
  72708. deprecated="not deprecated">
  72709. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  72710. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  72711. static="false" final="false" visibility="public"
  72712. deprecated="not deprecated">
  72713. </constructor>
  72714. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  72715. static="false" final="false" visibility="public"
  72716. deprecated="not deprecated">
  72717. </constructor>
  72718. <method name="reset"
  72719. abstract="false" native="false" synchronized="false"
  72720. static="false" final="false" visibility="public"
  72721. deprecated="not deprecated">
  72722. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  72723. </method>
  72724. <method name="writeUncompressedBytes"
  72725. abstract="false" native="false" synchronized="false"
  72726. static="false" final="false" visibility="public"
  72727. deprecated="not deprecated">
  72728. <param name="outStream" type="java.io.DataOutputStream"/>
  72729. <exception name="IOException" type="java.io.IOException"/>
  72730. </method>
  72731. <method name="writeCompressedBytes"
  72732. abstract="false" native="false" synchronized="false"
  72733. static="false" final="false" visibility="public"
  72734. deprecated="not deprecated">
  72735. <param name="outStream" type="java.io.DataOutputStream"/>
  72736. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  72737. <exception name="IOException" type="java.io.IOException"/>
  72738. </method>
  72739. <method name="getSize" return="int"
  72740. abstract="false" native="false" synchronized="false"
  72741. static="false" final="false" visibility="public"
  72742. deprecated="not deprecated">
  72743. </method>
  72744. <doc>
  72745. <![CDATA[Inner class used for appendRaw]]>
  72746. </doc>
  72747. </class>
  72748. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  72749. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  72750. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  72751. abstract="false"
  72752. static="false" final="false" visibility="public"
  72753. deprecated="not deprecated">
  72754. <constructor name="SequenceFileOutputFormat"
  72755. static="false" final="false" visibility="public"
  72756. deprecated="not deprecated">
  72757. </constructor>
  72758. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72759. abstract="false" native="false" synchronized="false"
  72760. static="false" final="false" visibility="public"
  72761. deprecated="not deprecated">
  72762. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72763. <exception name="IOException" type="java.io.IOException"/>
  72764. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72765. </method>
  72766. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  72767. abstract="false" native="false" synchronized="false"
  72768. static="true" final="false" visibility="public"
  72769. deprecated="not deprecated">
  72770. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72771. <doc>
  72772. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  72773. @param job the {@link Job}
  72774. @return the {@link CompressionType} for the output {@link SequenceFile},
  72775. defaulting to {@link CompressionType#RECORD}]]>
  72776. </doc>
  72777. </method>
  72778. <method name="setOutputCompressionType"
  72779. abstract="false" native="false" synchronized="false"
  72780. static="true" final="false" visibility="public"
  72781. deprecated="not deprecated">
  72782. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72783. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  72784. <doc>
  72785. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  72786. @param job the {@link Job} to modify
  72787. @param style the {@link CompressionType} for the output
  72788. {@link SequenceFile}]]>
  72789. </doc>
  72790. </method>
  72791. <doc>
  72792. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  72793. </doc>
  72794. </class>
  72795. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  72796. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  72797. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  72798. abstract="false"
  72799. static="false" final="false" visibility="public"
  72800. deprecated="not deprecated">
  72801. <constructor name="TextOutputFormat"
  72802. static="false" final="false" visibility="public"
  72803. deprecated="not deprecated">
  72804. </constructor>
  72805. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  72806. abstract="false" native="false" synchronized="false"
  72807. static="false" final="false" visibility="public"
  72808. deprecated="not deprecated">
  72809. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72810. <exception name="IOException" type="java.io.IOException"/>
  72811. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72812. </method>
  72813. <doc>
  72814. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  72815. </doc>
  72816. </class>
  72817. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  72818. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  72819. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  72820. abstract="false"
  72821. static="true" final="false" visibility="protected"
  72822. deprecated="not deprecated">
  72823. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  72824. static="false" final="false" visibility="public"
  72825. deprecated="not deprecated">
  72826. </constructor>
  72827. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  72828. static="false" final="false" visibility="public"
  72829. deprecated="not deprecated">
  72830. </constructor>
  72831. <method name="write"
  72832. abstract="false" native="false" synchronized="true"
  72833. static="false" final="false" visibility="public"
  72834. deprecated="not deprecated">
  72835. <param name="key" type="java.lang.Object"/>
  72836. <param name="value" type="java.lang.Object"/>
  72837. <exception name="IOException" type="java.io.IOException"/>
  72838. </method>
  72839. <method name="close"
  72840. abstract="false" native="false" synchronized="true"
  72841. static="false" final="false" visibility="public"
  72842. deprecated="not deprecated">
  72843. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72844. <exception name="IOException" type="java.io.IOException"/>
  72845. </method>
  72846. <field name="out" type="java.io.DataOutputStream"
  72847. transient="false" volatile="false"
  72848. static="false" final="false" visibility="protected"
  72849. deprecated="not deprecated">
  72850. </field>
  72851. </class>
  72852. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  72853. </package>
  72854. <package name="org.apache.hadoop.mapreduce.lib.partition">
  72855. <!-- start class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  72856. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  72857. abstract="false"
  72858. static="false" final="false" visibility="public"
  72859. deprecated="not deprecated">
  72860. <implements name="org.apache.hadoop.conf.Configurable"/>
  72861. <constructor name="BinaryPartitioner"
  72862. static="false" final="false" visibility="public"
  72863. deprecated="not deprecated">
  72864. </constructor>
  72865. <method name="setOffsets"
  72866. abstract="false" native="false" synchronized="false"
  72867. static="true" final="false" visibility="public"
  72868. deprecated="not deprecated">
  72869. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72870. <param name="left" type="int"/>
  72871. <param name="right" type="int"/>
  72872. <doc>
  72873. <![CDATA[Set the subarray to be used for partitioning to
  72874. <code>bytes[left:(right+1)]</code> in Python syntax.
  72875. @param conf configuration object
  72876. @param left left Python-style offset
  72877. @param right right Python-style offset]]>
  72878. </doc>
  72879. </method>
  72880. <method name="setLeftOffset"
  72881. abstract="false" native="false" synchronized="false"
  72882. static="true" final="false" visibility="public"
  72883. deprecated="not deprecated">
  72884. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72885. <param name="offset" type="int"/>
  72886. <doc>
  72887. <![CDATA[Set the subarray to be used for partitioning to
  72888. <code>bytes[offset:]</code> in Python syntax.
  72889. @param conf configuration object
  72890. @param offset left Python-style offset]]>
  72891. </doc>
  72892. </method>
  72893. <method name="setRightOffset"
  72894. abstract="false" native="false" synchronized="false"
  72895. static="true" final="false" visibility="public"
  72896. deprecated="not deprecated">
  72897. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72898. <param name="offset" type="int"/>
  72899. <doc>
  72900. <![CDATA[Set the subarray to be used for partitioning to
  72901. <code>bytes[:(offset+1)]</code> in Python syntax.
  72902. @param conf configuration object
  72903. @param offset right Python-style offset]]>
  72904. </doc>
  72905. </method>
  72906. <method name="setConf"
  72907. abstract="false" native="false" synchronized="false"
  72908. static="false" final="false" visibility="public"
  72909. deprecated="not deprecated">
  72910. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72911. </method>
  72912. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72913. abstract="false" native="false" synchronized="false"
  72914. static="false" final="false" visibility="public"
  72915. deprecated="not deprecated">
  72916. </method>
  72917. <method name="getPartition" return="int"
  72918. abstract="false" native="false" synchronized="false"
  72919. static="false" final="false" visibility="public"
  72920. deprecated="not deprecated">
  72921. <param name="key" type="org.apache.hadoop.io.BinaryComparable"/>
  72922. <param name="value" type="java.lang.Object"/>
  72923. <param name="numPartitions" type="int"/>
  72924. <doc>
  72925. <![CDATA[Use (the specified slice of the array returned by)
  72926. {@link BinaryComparable#getBytes()} to partition.]]>
  72927. </doc>
  72928. </method>
  72929. <doc>
  72930. <![CDATA[<p>Partition {@link BinaryComparable} keys using a configurable part of
  72931. the bytes array returned by {@link BinaryComparable#getBytes()}.</p>
  72932. <p>The subarray to be used for the partitioning can be defined by means
  72933. of the following properties:
  72934. <ul>
  72935. <li>
  72936. <i>mapred.binary.partitioner.left.offset</i>:
  72937. left offset in array (0 by default)
  72938. </li>
  72939. <li>
  72940. <i>mapred.binary.partitioner.right.offset</i>:
  72941. right offset in array (-1 by default)
  72942. </li>
  72943. </ul>
  72944. Like in Python, both negative and positive offsets are allowed, but
  72945. the meaning is slightly different. In case of an array of length 5,
  72946. for instance, the possible offsets are:
  72947. <pre><code>
  72948. +---+---+---+---+---+
  72949. | B | B | B | B | B |
  72950. +---+---+---+---+---+
  72951. 0 1 2 3 4
  72952. -5 -4 -3 -2 -1
  72953. </code></pre>
  72954. The first row of numbers gives the position of the offsets 0...5 in
  72955. the array; the second row gives the corresponding negative offsets.
  72956. Contrary to Python, the specified subarray has byte <code>i</code>
  72957. and <code>j</code> as first and last element, repectively, when
  72958. <code>i</code> and <code>j</code> are the left and right offset.
  72959. <p>For Hadoop programs written in Java, it is advisable to use one of
  72960. the following static convenience methods for setting the offsets:
  72961. <ul>
  72962. <li>{@link #setOffsets}</li>
  72963. <li>{@link #setLeftOffset}</li>
  72964. <li>{@link #setRightOffset}</li>
  72965. </ul></p>]]>
  72966. </doc>
  72967. </class>
  72968. <!-- end class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  72969. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  72970. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  72971. abstract="false"
  72972. static="false" final="false" visibility="public"
  72973. deprecated="not deprecated">
  72974. <constructor name="HashPartitioner"
  72975. static="false" final="false" visibility="public"
  72976. deprecated="not deprecated">
  72977. </constructor>
  72978. <method name="getPartition" return="int"
  72979. abstract="false" native="false" synchronized="false"
  72980. static="false" final="false" visibility="public"
  72981. deprecated="not deprecated">
  72982. <param name="key" type="java.lang.Object"/>
  72983. <param name="value" type="java.lang.Object"/>
  72984. <param name="numReduceTasks" type="int"/>
  72985. <doc>
  72986. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  72987. </doc>
  72988. </method>
  72989. <doc>
  72990. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  72991. </doc>
  72992. </class>
  72993. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  72994. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  72995. <class name="InputSampler" extends="org.apache.hadoop.conf.Configured"
  72996. abstract="false"
  72997. static="false" final="false" visibility="public"
  72998. deprecated="not deprecated">
  72999. <implements name="org.apache.hadoop.util.Tool"/>
  73000. <constructor name="InputSampler" type="org.apache.hadoop.conf.Configuration"
  73001. static="false" final="false" visibility="public"
  73002. deprecated="not deprecated">
  73003. </constructor>
  73004. <method name="writePartitionFile"
  73005. abstract="false" native="false" synchronized="false"
  73006. static="true" final="false" visibility="public"
  73007. deprecated="not deprecated">
  73008. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73009. <param name="sampler" type="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  73010. <exception name="IOException" type="java.io.IOException"/>
  73011. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  73012. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73013. <doc>
  73014. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  73015. Queries the sampler for a sample keyset, sorts by the output key
  73016. comparator, selects the keys for each rank, and writes to the destination
  73017. returned from {@link TotalOrderPartitioner#getPartitionFile}.]]>
  73018. </doc>
  73019. </method>
  73020. <method name="run" return="int"
  73021. abstract="false" native="false" synchronized="false"
  73022. static="false" final="false" visibility="public"
  73023. deprecated="not deprecated">
  73024. <param name="args" type="java.lang.String[]"/>
  73025. <exception name="Exception" type="java.lang.Exception"/>
  73026. <doc>
  73027. <![CDATA[Driver for InputSampler from the command line.
  73028. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  73029. </doc>
  73030. </method>
  73031. <method name="main"
  73032. abstract="false" native="false" synchronized="false"
  73033. static="true" final="false" visibility="public"
  73034. deprecated="not deprecated">
  73035. <param name="args" type="java.lang.String[]"/>
  73036. <exception name="Exception" type="java.lang.Exception"/>
  73037. </method>
  73038. <doc>
  73039. <![CDATA[Utility for collecting samples and writing a partition file for
  73040. {@link TotalOrderPartitioner}.]]>
  73041. </doc>
  73042. </class>
  73043. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  73044. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  73045. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  73046. abstract="false"
  73047. static="true" final="false" visibility="public"
  73048. deprecated="not deprecated">
  73049. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  73050. <constructor name="InputSampler.IntervalSampler" type="double"
  73051. static="false" final="false" visibility="public"
  73052. deprecated="not deprecated">
  73053. <doc>
  73054. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  73055. @param freq The frequency with which records will be emitted.]]>
  73056. </doc>
  73057. </constructor>
  73058. <constructor name="InputSampler.IntervalSampler" type="double, int"
  73059. static="false" final="false" visibility="public"
  73060. deprecated="not deprecated">
  73061. <doc>
  73062. <![CDATA[Create a new IntervalSampler.
  73063. @param freq The frequency with which records will be emitted.
  73064. @param maxSplitsSampled The maximum number of splits to examine.
  73065. @see #getSample]]>
  73066. </doc>
  73067. </constructor>
  73068. <method name="getSample" return="java.lang.Object[]"
  73069. abstract="false" native="false" synchronized="false"
  73070. static="false" final="false" visibility="public"
  73071. deprecated="not deprecated">
  73072. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  73073. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73074. <exception name="IOException" type="java.io.IOException"/>
  73075. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73076. <doc>
  73077. <![CDATA[For each split sampled, emit when the ratio of the number of records
  73078. retained to the total record count is less than the specified
  73079. frequency.]]>
  73080. </doc>
  73081. </method>
  73082. <doc>
  73083. <![CDATA[Sample from s splits at regular intervals.
  73084. Useful for sorted data.]]>
  73085. </doc>
  73086. </class>
  73087. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  73088. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  73089. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  73090. abstract="false"
  73091. static="true" final="false" visibility="public"
  73092. deprecated="not deprecated">
  73093. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  73094. <constructor name="InputSampler.RandomSampler" type="double, int"
  73095. static="false" final="false" visibility="public"
  73096. deprecated="not deprecated">
  73097. <doc>
  73098. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  73099. This will read every split at the client, which is very expensive.
  73100. @param freq Probability with which a key will be chosen.
  73101. @param numSamples Total number of samples to obtain from all selected
  73102. splits.]]>
  73103. </doc>
  73104. </constructor>
  73105. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  73106. static="false" final="false" visibility="public"
  73107. deprecated="not deprecated">
  73108. <doc>
  73109. <![CDATA[Create a new RandomSampler.
  73110. @param freq Probability with which a key will be chosen.
  73111. @param numSamples Total number of samples to obtain from all selected
  73112. splits.
  73113. @param maxSplitsSampled The maximum number of splits to examine.]]>
  73114. </doc>
  73115. </constructor>
  73116. <method name="getSample" return="java.lang.Object[]"
  73117. abstract="false" native="false" synchronized="false"
  73118. static="false" final="false" visibility="public"
  73119. deprecated="not deprecated">
  73120. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  73121. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73122. <exception name="IOException" type="java.io.IOException"/>
  73123. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73124. <doc>
  73125. <![CDATA[Randomize the split order, then take the specified number of keys from
  73126. each split sampled, where each key is selected with the specified
  73127. probability and possibly replaced by a subsequently selected key when
  73128. the quota of keys from that split is satisfied.]]>
  73129. </doc>
  73130. </method>
  73131. <doc>
  73132. <![CDATA[Sample from random points in the input.
  73133. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  73134. each split.]]>
  73135. </doc>
  73136. </class>
  73137. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  73138. <!-- start interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  73139. <interface name="InputSampler.Sampler" abstract="true"
  73140. static="true" final="false" visibility="public"
  73141. deprecated="not deprecated">
  73142. <method name="getSample" return="java.lang.Object[]"
  73143. abstract="false" native="false" synchronized="false"
  73144. static="false" final="false" visibility="public"
  73145. deprecated="not deprecated">
  73146. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  73147. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73148. <exception name="IOException" type="java.io.IOException"/>
  73149. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73150. <doc>
  73151. <![CDATA[For a given job, collect and return a subset of the keys from the
  73152. input data.]]>
  73153. </doc>
  73154. </method>
  73155. <doc>
  73156. <![CDATA[Interface to sample using an
  73157. {@link org.apache.hadoop.mapreduce.InputFormat}.]]>
  73158. </doc>
  73159. </interface>
  73160. <!-- end interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  73161. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  73162. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  73163. abstract="false"
  73164. static="true" final="false" visibility="public"
  73165. deprecated="not deprecated">
  73166. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  73167. <constructor name="InputSampler.SplitSampler" type="int"
  73168. static="false" final="false" visibility="public"
  73169. deprecated="not deprecated">
  73170. <doc>
  73171. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  73172. Takes the first numSamples / numSplits records from each split.
  73173. @param numSamples Total number of samples to obtain from all selected
  73174. splits.]]>
  73175. </doc>
  73176. </constructor>
  73177. <constructor name="InputSampler.SplitSampler" type="int, int"
  73178. static="false" final="false" visibility="public"
  73179. deprecated="not deprecated">
  73180. <doc>
  73181. <![CDATA[Create a new SplitSampler.
  73182. @param numSamples Total number of samples to obtain from all selected
  73183. splits.
  73184. @param maxSplitsSampled The maximum number of splits to examine.]]>
  73185. </doc>
  73186. </constructor>
  73187. <method name="getSample" return="java.lang.Object[]"
  73188. abstract="false" native="false" synchronized="false"
  73189. static="false" final="false" visibility="public"
  73190. deprecated="not deprecated">
  73191. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  73192. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73193. <exception name="IOException" type="java.io.IOException"/>
  73194. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73195. <doc>
  73196. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  73197. </doc>
  73198. </method>
  73199. <doc>
  73200. <![CDATA[Samples the first n records from s splits.
  73201. Inexpensive way to sample random data.]]>
  73202. </doc>
  73203. </class>
  73204. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  73205. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  73206. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  73207. abstract="false"
  73208. static="false" final="false" visibility="public"
  73209. deprecated="not deprecated">
  73210. <implements name="org.apache.hadoop.conf.Configurable"/>
  73211. <constructor name="KeyFieldBasedComparator"
  73212. static="false" final="false" visibility="public"
  73213. deprecated="not deprecated">
  73214. </constructor>
  73215. <method name="setConf"
  73216. abstract="false" native="false" synchronized="false"
  73217. static="false" final="false" visibility="public"
  73218. deprecated="not deprecated">
  73219. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73220. </method>
  73221. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  73222. abstract="false" native="false" synchronized="false"
  73223. static="false" final="false" visibility="public"
  73224. deprecated="not deprecated">
  73225. </method>
  73226. <method name="compare" return="int"
  73227. abstract="false" native="false" synchronized="false"
  73228. static="false" final="false" visibility="public"
  73229. deprecated="not deprecated">
  73230. <param name="b1" type="byte[]"/>
  73231. <param name="s1" type="int"/>
  73232. <param name="l1" type="int"/>
  73233. <param name="b2" type="byte[]"/>
  73234. <param name="s2" type="int"/>
  73235. <param name="l2" type="int"/>
  73236. </method>
  73237. <method name="setKeyFieldComparatorOptions"
  73238. abstract="false" native="false" synchronized="false"
  73239. static="true" final="false" visibility="public"
  73240. deprecated="not deprecated">
  73241. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73242. <param name="keySpec" type="java.lang.String"/>
  73243. <doc>
  73244. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  73245. @param keySpec the key specification of the form -k pos1[,pos2], where,
  73246. pos is of the form f[.c][opts], where f is the number
  73247. of the key field to use, and c is the number of the first character from
  73248. the beginning of the field. Fields and character posns are numbered
  73249. starting with 1; a character position of zero in pos2 indicates the
  73250. field's last character. If '.c' is omitted from pos1, it defaults to 1
  73251. (the beginning of the field); if omitted from pos2, it defaults to 0
  73252. (the end of the field). opts are ordering options. The supported options
  73253. are:
  73254. -n, (Sort numerically)
  73255. -r, (Reverse the result of comparison)]]>
  73256. </doc>
  73257. </method>
  73258. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  73259. abstract="false" native="false" synchronized="false"
  73260. static="true" final="false" visibility="public"
  73261. deprecated="not deprecated">
  73262. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73263. <doc>
  73264. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  73265. </doc>
  73266. </method>
  73267. <field name="COMPARATOR_OPTIONS" type="java.lang.String"
  73268. transient="false" volatile="false"
  73269. static="true" final="false" visibility="public"
  73270. deprecated="not deprecated">
  73271. </field>
  73272. <doc>
  73273. <![CDATA[This comparator implementation provides a subset of the features provided
  73274. by the Unix/GNU Sort. In particular, the supported features are:
  73275. -n, (Sort numerically)
  73276. -r, (Reverse the result of comparison)
  73277. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  73278. of the field to use, and c is the number of the first character from the
  73279. beginning of the field. Fields and character posns are numbered starting
  73280. with 1; a character position of zero in pos2 indicates the field's last
  73281. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  73282. of the field); if omitted from pos2, it defaults to 0 (the end of the
  73283. field). opts are ordering options (any of 'nr' as described above).
  73284. We assume that the fields in the key are separated by
  73285. {@link JobContext#MAP_OUTPUT_KEY_FIELD_SEPERATOR}.]]>
  73286. </doc>
  73287. </class>
  73288. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  73289. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  73290. <class name="KeyFieldBasedPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  73291. abstract="false"
  73292. static="false" final="false" visibility="public"
  73293. deprecated="not deprecated">
  73294. <implements name="org.apache.hadoop.conf.Configurable"/>
  73295. <constructor name="KeyFieldBasedPartitioner"
  73296. static="false" final="false" visibility="public"
  73297. deprecated="not deprecated">
  73298. </constructor>
  73299. <method name="setConf"
  73300. abstract="false" native="false" synchronized="false"
  73301. static="false" final="false" visibility="public"
  73302. deprecated="not deprecated">
  73303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73304. </method>
  73305. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  73306. abstract="false" native="false" synchronized="false"
  73307. static="false" final="false" visibility="public"
  73308. deprecated="not deprecated">
  73309. </method>
  73310. <method name="getPartition" return="int"
  73311. abstract="false" native="false" synchronized="false"
  73312. static="false" final="false" visibility="public"
  73313. deprecated="not deprecated">
  73314. <param name="key" type="java.lang.Object"/>
  73315. <param name="value" type="java.lang.Object"/>
  73316. <param name="numReduceTasks" type="int"/>
  73317. </method>
  73318. <method name="hashCode" return="int"
  73319. abstract="false" native="false" synchronized="false"
  73320. static="false" final="false" visibility="protected"
  73321. deprecated="not deprecated">
  73322. <param name="b" type="byte[]"/>
  73323. <param name="start" type="int"/>
  73324. <param name="end" type="int"/>
  73325. <param name="currentHash" type="int"/>
  73326. </method>
  73327. <method name="getPartition" return="int"
  73328. abstract="false" native="false" synchronized="false"
  73329. static="false" final="false" visibility="protected"
  73330. deprecated="not deprecated">
  73331. <param name="hash" type="int"/>
  73332. <param name="numReduceTasks" type="int"/>
  73333. </method>
  73334. <method name="setKeyFieldPartitionerOptions"
  73335. abstract="false" native="false" synchronized="false"
  73336. static="false" final="false" visibility="public"
  73337. deprecated="not deprecated">
  73338. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73339. <param name="keySpec" type="java.lang.String"/>
  73340. <doc>
  73341. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  73342. {@link Partitioner}
  73343. @param keySpec the key specification of the form -k pos1[,pos2], where,
  73344. pos is of the form f[.c][opts], where f is the number
  73345. of the key field to use, and c is the number of the first character from
  73346. the beginning of the field. Fields and character posns are numbered
  73347. starting with 1; a character position of zero in pos2 indicates the
  73348. field's last character. If '.c' is omitted from pos1, it defaults to 1
  73349. (the beginning of the field); if omitted from pos2, it defaults to 0
  73350. (the end of the field).]]>
  73351. </doc>
  73352. </method>
  73353. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  73354. abstract="false" native="false" synchronized="false"
  73355. static="false" final="false" visibility="public"
  73356. deprecated="not deprecated">
  73357. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73358. <doc>
  73359. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  73360. </doc>
  73361. </method>
  73362. <field name="PARTITIONER_OPTIONS" type="java.lang.String"
  73363. transient="false" volatile="false"
  73364. static="true" final="false" visibility="public"
  73365. deprecated="not deprecated">
  73366. </field>
  73367. <doc>
  73368. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  73369. {@link KeyFieldBasedComparator}.
  73370. The key specification supported is of the form -k pos1[,pos2], where,
  73371. pos is of the form f[.c][opts], where f is the number
  73372. of the key field to use, and c is the number of the first character from
  73373. the beginning of the field. Fields and character posns are numbered
  73374. starting with 1; a character position of zero in pos2 indicates the
  73375. field's last character. If '.c' is omitted from pos1, it defaults to 1
  73376. (the beginning of the field); if omitted from pos2, it defaults to 0
  73377. (the end of the field).]]>
  73378. </doc>
  73379. </class>
  73380. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  73381. <!-- start class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  73382. <class name="TotalOrderPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  73383. abstract="false"
  73384. static="false" final="false" visibility="public"
  73385. deprecated="not deprecated">
  73386. <implements name="org.apache.hadoop.conf.Configurable"/>
  73387. <constructor name="TotalOrderPartitioner"
  73388. static="false" final="false" visibility="public"
  73389. deprecated="not deprecated">
  73390. </constructor>
  73391. <method name="setConf"
  73392. abstract="false" native="false" synchronized="false"
  73393. static="false" final="false" visibility="public"
  73394. deprecated="not deprecated">
  73395. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73396. <doc>
  73397. <![CDATA[Read in the partition file and build indexing data structures.
  73398. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  73399. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  73400. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  73401. will be built. Otherwise, keys will be located using a binary search of
  73402. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  73403. defined for this job. The input file must be sorted with the same
  73404. comparator and contain {@link Job#getNumReduceTasks()} - 1 keys.]]>
  73405. </doc>
  73406. </method>
  73407. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  73408. abstract="false" native="false" synchronized="false"
  73409. static="false" final="false" visibility="public"
  73410. deprecated="not deprecated">
  73411. </method>
  73412. <method name="getPartition" return="int"
  73413. abstract="false" native="false" synchronized="false"
  73414. static="false" final="false" visibility="public"
  73415. deprecated="not deprecated">
  73416. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  73417. <param name="value" type="java.lang.Object"/>
  73418. <param name="numPartitions" type="int"/>
  73419. </method>
  73420. <method name="setPartitionFile"
  73421. abstract="false" native="false" synchronized="false"
  73422. static="true" final="false" visibility="public"
  73423. deprecated="not deprecated">
  73424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73425. <param name="p" type="org.apache.hadoop.fs.Path"/>
  73426. <doc>
  73427. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  73428. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  73429. keys in the SequenceFile.]]>
  73430. </doc>
  73431. </method>
  73432. <method name="getPartitionFile" return="java.lang.String"
  73433. abstract="false" native="false" synchronized="false"
  73434. static="true" final="false" visibility="public"
  73435. deprecated="not deprecated">
  73436. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73437. <doc>
  73438. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  73439. @see #setPartitionFile(Configuration, Path)]]>
  73440. </doc>
  73441. </method>
  73442. <field name="DEFAULT_PATH" type="java.lang.String"
  73443. transient="false" volatile="false"
  73444. static="true" final="true" visibility="public"
  73445. deprecated="not deprecated">
  73446. </field>
  73447. <field name="PARTITIONER_PATH" type="java.lang.String"
  73448. transient="false" volatile="false"
  73449. static="true" final="true" visibility="public"
  73450. deprecated="not deprecated">
  73451. </field>
  73452. <field name="MAX_TRIE_DEPTH" type="java.lang.String"
  73453. transient="false" volatile="false"
  73454. static="true" final="true" visibility="public"
  73455. deprecated="not deprecated">
  73456. </field>
  73457. <field name="NATURAL_ORDER" type="java.lang.String"
  73458. transient="false" volatile="false"
  73459. static="true" final="true" visibility="public"
  73460. deprecated="not deprecated">
  73461. </field>
  73462. <doc>
  73463. <![CDATA[Partitioner effecting a total order by reading split points from
  73464. an externally generated source.]]>
  73465. </doc>
  73466. </class>
  73467. <!-- end class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  73468. </package>
  73469. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  73470. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  73471. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  73472. abstract="false"
  73473. static="false" final="false" visibility="public"
  73474. deprecated="not deprecated">
  73475. <constructor name="IntSumReducer"
  73476. static="false" final="false" visibility="public"
  73477. deprecated="not deprecated">
  73478. </constructor>
  73479. <method name="reduce"
  73480. abstract="false" native="false" synchronized="false"
  73481. static="false" final="false" visibility="public"
  73482. deprecated="not deprecated">
  73483. <param name="key" type="java.lang.Object"/>
  73484. <param name="values" type="java.lang.Iterable"/>
  73485. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  73486. <exception name="IOException" type="java.io.IOException"/>
  73487. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73488. </method>
  73489. </class>
  73490. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  73491. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  73492. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  73493. abstract="false"
  73494. static="false" final="false" visibility="public"
  73495. deprecated="not deprecated">
  73496. <constructor name="LongSumReducer"
  73497. static="false" final="false" visibility="public"
  73498. deprecated="not deprecated">
  73499. </constructor>
  73500. <method name="reduce"
  73501. abstract="false" native="false" synchronized="false"
  73502. static="false" final="false" visibility="public"
  73503. deprecated="not deprecated">
  73504. <param name="key" type="java.lang.Object"/>
  73505. <param name="values" type="java.lang.Iterable"/>
  73506. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  73507. <exception name="IOException" type="java.io.IOException"/>
  73508. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73509. </method>
  73510. </class>
  73511. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  73512. </package>
  73513. <package name="org.apache.hadoop.mapreduce.security">
  73514. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  73515. <class name="SecureShuffleUtils" extends="java.lang.Object"
  73516. abstract="false"
  73517. static="false" final="false" visibility="public"
  73518. deprecated="not deprecated">
  73519. <constructor name="SecureShuffleUtils"
  73520. static="false" final="false" visibility="public"
  73521. deprecated="not deprecated">
  73522. </constructor>
  73523. <method name="generateHash" return="java.lang.String"
  73524. abstract="false" native="false" synchronized="false"
  73525. static="true" final="false" visibility="public"
  73526. deprecated="not deprecated">
  73527. <param name="msg" type="byte[]"/>
  73528. <param name="key" type="javax.crypto.SecretKey"/>
  73529. <doc>
  73530. <![CDATA[Base64 encoded hash of msg
  73531. @param msg]]>
  73532. </doc>
  73533. </method>
  73534. <method name="hashFromString" return="java.lang.String"
  73535. abstract="false" native="false" synchronized="false"
  73536. static="true" final="false" visibility="public"
  73537. deprecated="not deprecated">
  73538. <param name="enc_str" type="java.lang.String"/>
  73539. <param name="key" type="javax.crypto.SecretKey"/>
  73540. <exception name="IOException" type="java.io.IOException"/>
  73541. <doc>
  73542. <![CDATA[Aux util to calculate hash of a String
  73543. @param enc_str
  73544. @param key
  73545. @return Base64 encodedHash
  73546. @throws IOException]]>
  73547. </doc>
  73548. </method>
  73549. <method name="verifyReply"
  73550. abstract="false" native="false" synchronized="false"
  73551. static="true" final="false" visibility="public"
  73552. deprecated="not deprecated">
  73553. <param name="base64Hash" type="java.lang.String"/>
  73554. <param name="msg" type="java.lang.String"/>
  73555. <param name="key" type="javax.crypto.SecretKey"/>
  73556. <exception name="IOException" type="java.io.IOException"/>
  73557. <doc>
  73558. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  73559. @param base64Hash (Base64 encoded hash)
  73560. @param msg
  73561. @throws IOException if not the same]]>
  73562. </doc>
  73563. </method>
  73564. <method name="buildMsgFrom" return="java.lang.String"
  73565. abstract="false" native="false" synchronized="false"
  73566. static="true" final="false" visibility="public"
  73567. deprecated="not deprecated">
  73568. <param name="url" type="java.net.URL"/>
  73569. <doc>
  73570. <![CDATA[Shuffle specific utils - build string for encoding from URL
  73571. @param url
  73572. @return string for encoding]]>
  73573. </doc>
  73574. </method>
  73575. <method name="buildMsgFrom" return="java.lang.String"
  73576. abstract="false" native="false" synchronized="false"
  73577. static="true" final="false" visibility="public"
  73578. deprecated="not deprecated">
  73579. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  73580. <doc>
  73581. <![CDATA[Shuffle specific utils - build string for encoding from URL
  73582. @param request
  73583. @return string for encoding]]>
  73584. </doc>
  73585. </method>
  73586. <method name="toHex" return="java.lang.String"
  73587. abstract="false" native="false" synchronized="false"
  73588. static="true" final="false" visibility="public"
  73589. deprecated="not deprecated">
  73590. <param name="ba" type="byte[]"/>
  73591. <doc>
  73592. <![CDATA[byte array to Hex String
  73593. @param ba
  73594. @return string with HEX value of the key]]>
  73595. </doc>
  73596. </method>
  73597. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  73598. transient="false" volatile="false"
  73599. static="true" final="true" visibility="public"
  73600. deprecated="not deprecated">
  73601. </field>
  73602. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  73603. transient="false" volatile="false"
  73604. static="true" final="true" visibility="public"
  73605. deprecated="not deprecated">
  73606. </field>
  73607. <doc>
  73608. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  73609. </doc>
  73610. </class>
  73611. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  73612. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  73613. <class name="TokenCache" extends="java.lang.Object"
  73614. abstract="false"
  73615. static="false" final="false" visibility="public"
  73616. deprecated="not deprecated">
  73617. <constructor name="TokenCache"
  73618. static="false" final="false" visibility="public"
  73619. deprecated="not deprecated">
  73620. </constructor>
  73621. <method name="getSecretKey" return="byte[]"
  73622. abstract="false" native="false" synchronized="false"
  73623. static="true" final="false" visibility="public"
  73624. deprecated="not deprecated">
  73625. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73626. <param name="alias" type="org.apache.hadoop.io.Text"/>
  73627. <doc>
  73628. <![CDATA[auxiliary method to get user's secret keys..
  73629. @param alias
  73630. @return secret key from the storage]]>
  73631. </doc>
  73632. </method>
  73633. <method name="obtainTokensForNamenodes"
  73634. abstract="false" native="false" synchronized="false"
  73635. static="true" final="false" visibility="public"
  73636. deprecated="not deprecated">
  73637. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73638. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  73639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73640. <exception name="IOException" type="java.io.IOException"/>
  73641. <doc>
  73642. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  73643. corresponding to the paths passed.
  73644. @param ps array of paths
  73645. @param conf configuration
  73646. @throws IOException]]>
  73647. </doc>
  73648. </method>
  73649. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  73650. abstract="false" native="false" synchronized="false"
  73651. static="true" final="false" visibility="public"
  73652. deprecated="not deprecated">
  73653. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73654. <param name="namenode" type="java.lang.String"/>
  73655. <doc>
  73656. <![CDATA[@param namenode
  73657. @return delegation token]]>
  73658. </doc>
  73659. </method>
  73660. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  73661. abstract="false" native="false" synchronized="false"
  73662. static="true" final="false" visibility="public"
  73663. deprecated="not deprecated">
  73664. <param name="jobTokenFile" type="java.lang.String"/>
  73665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73666. <exception name="IOException" type="java.io.IOException"/>
  73667. <doc>
  73668. <![CDATA[load job token from a file
  73669. @param conf
  73670. @throws IOException]]>
  73671. </doc>
  73672. </method>
  73673. <method name="setJobToken"
  73674. abstract="false" native="false" synchronized="false"
  73675. static="true" final="false" visibility="public"
  73676. deprecated="not deprecated">
  73677. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  73678. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73679. <doc>
  73680. <![CDATA[store job token
  73681. @param t]]>
  73682. </doc>
  73683. </method>
  73684. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  73685. abstract="false" native="false" synchronized="false"
  73686. static="true" final="false" visibility="public"
  73687. deprecated="not deprecated">
  73688. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  73689. <doc>
  73690. <![CDATA[@return job token]]>
  73691. </doc>
  73692. </method>
  73693. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  73694. transient="false" volatile="false"
  73695. static="true" final="true" visibility="public"
  73696. deprecated="not deprecated">
  73697. <doc>
  73698. <![CDATA[file name used on HDFS for generated job token]]>
  73699. </doc>
  73700. </field>
  73701. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  73702. transient="false" volatile="false"
  73703. static="true" final="true" visibility="public"
  73704. deprecated="not deprecated">
  73705. <doc>
  73706. <![CDATA[conf setting for job tokens cache file name]]>
  73707. </doc>
  73708. </field>
  73709. <doc>
  73710. <![CDATA[This class provides user facing APIs for transferring secrets from
  73711. the job client to the tasks.
  73712. The secrets can be stored just before submission of jobs and read during
  73713. the task execution.]]>
  73714. </doc>
  73715. </class>
  73716. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  73717. </package>
  73718. <package name="org.apache.hadoop.mapreduce.security.token">
  73719. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  73720. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  73721. abstract="false"
  73722. static="false" final="false" visibility="public"
  73723. deprecated="not deprecated">
  73724. <constructor name="DelegationTokenRenewal"
  73725. static="false" final="false" visibility="public"
  73726. deprecated="not deprecated">
  73727. </constructor>
  73728. <method name="registerDelegationTokensForRenewal"
  73729. abstract="false" native="false" synchronized="true"
  73730. static="true" final="false" visibility="public"
  73731. deprecated="not deprecated">
  73732. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  73733. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  73734. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73735. <exception name="IOException" type="java.io.IOException"/>
  73736. </method>
  73737. <method name="close"
  73738. abstract="false" native="false" synchronized="false"
  73739. static="true" final="false" visibility="public"
  73740. deprecated="not deprecated">
  73741. <doc>
  73742. <![CDATA[removing all tokens renewals]]>
  73743. </doc>
  73744. </method>
  73745. <method name="removeDelegationTokenRenewalForJob"
  73746. abstract="false" native="false" synchronized="false"
  73747. static="true" final="false" visibility="public"
  73748. deprecated="not deprecated">
  73749. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  73750. <doc>
  73751. <![CDATA[removing DT for completed jobs
  73752. @param jobId]]>
  73753. </doc>
  73754. </method>
  73755. <field name="SCHEME" type="java.lang.String"
  73756. transient="false" volatile="false"
  73757. static="true" final="true" visibility="public"
  73758. deprecated="not deprecated">
  73759. </field>
  73760. </class>
  73761. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  73762. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  73763. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  73764. abstract="false"
  73765. static="false" final="false" visibility="public"
  73766. deprecated="not deprecated">
  73767. <constructor name="JobTokenIdentifier"
  73768. static="false" final="false" visibility="public"
  73769. deprecated="not deprecated">
  73770. <doc>
  73771. <![CDATA[Default constructor]]>
  73772. </doc>
  73773. </constructor>
  73774. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  73775. static="false" final="false" visibility="public"
  73776. deprecated="not deprecated">
  73777. <doc>
  73778. <![CDATA[Create a job token identifier from a jobid
  73779. @param jobid the jobid to use]]>
  73780. </doc>
  73781. </constructor>
  73782. <method name="getKind" return="org.apache.hadoop.io.Text"
  73783. abstract="false" native="false" synchronized="false"
  73784. static="false" final="false" visibility="public"
  73785. deprecated="not deprecated">
  73786. <doc>
  73787. <![CDATA[{@inheritDoc}]]>
  73788. </doc>
  73789. </method>
  73790. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  73791. abstract="false" native="false" synchronized="false"
  73792. static="false" final="false" visibility="public"
  73793. deprecated="not deprecated">
  73794. <doc>
  73795. <![CDATA[{@inheritDoc}]]>
  73796. </doc>
  73797. </method>
  73798. <method name="getJobId" return="org.apache.hadoop.io.Text"
  73799. abstract="false" native="false" synchronized="false"
  73800. static="false" final="false" visibility="public"
  73801. deprecated="not deprecated">
  73802. <doc>
  73803. <![CDATA[Get the jobid
  73804. @return the jobid]]>
  73805. </doc>
  73806. </method>
  73807. <method name="readFields"
  73808. abstract="false" native="false" synchronized="false"
  73809. static="false" final="false" visibility="public"
  73810. deprecated="not deprecated">
  73811. <param name="in" type="java.io.DataInput"/>
  73812. <exception name="IOException" type="java.io.IOException"/>
  73813. <doc>
  73814. <![CDATA[{@inheritDoc}]]>
  73815. </doc>
  73816. </method>
  73817. <method name="write"
  73818. abstract="false" native="false" synchronized="false"
  73819. static="false" final="false" visibility="public"
  73820. deprecated="not deprecated">
  73821. <param name="out" type="java.io.DataOutput"/>
  73822. <exception name="IOException" type="java.io.IOException"/>
  73823. <doc>
  73824. <![CDATA[{@inheritDoc}]]>
  73825. </doc>
  73826. </method>
  73827. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  73828. transient="false" volatile="false"
  73829. static="true" final="true" visibility="public"
  73830. deprecated="not deprecated">
  73831. </field>
  73832. <doc>
  73833. <![CDATA[The token identifier for job token]]>
  73834. </doc>
  73835. </class>
  73836. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  73837. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  73838. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  73839. abstract="false"
  73840. static="true" final="false" visibility="public"
  73841. deprecated="not deprecated">
  73842. <constructor name="JobTokenIdentifier.Renewer"
  73843. static="false" final="false" visibility="public"
  73844. deprecated="not deprecated">
  73845. </constructor>
  73846. <method name="getKind" return="org.apache.hadoop.io.Text"
  73847. abstract="false" native="false" synchronized="false"
  73848. static="false" final="false" visibility="protected"
  73849. deprecated="not deprecated">
  73850. </method>
  73851. </class>
  73852. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  73853. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  73854. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  73855. abstract="false"
  73856. static="false" final="false" visibility="public"
  73857. deprecated="not deprecated">
  73858. <constructor name="JobTokenSecretManager"
  73859. static="false" final="false" visibility="public"
  73860. deprecated="not deprecated">
  73861. <doc>
  73862. <![CDATA[Default constructor]]>
  73863. </doc>
  73864. </constructor>
  73865. <method name="createSecretKey" return="javax.crypto.SecretKey"
  73866. abstract="false" native="false" synchronized="false"
  73867. static="true" final="false" visibility="public"
  73868. deprecated="not deprecated">
  73869. <param name="key" type="byte[]"/>
  73870. <doc>
  73871. <![CDATA[Convert the byte[] to a secret key
  73872. @param key the byte[] to create the secret key from
  73873. @return the secret key]]>
  73874. </doc>
  73875. </method>
  73876. <method name="computeHash" return="byte[]"
  73877. abstract="false" native="false" synchronized="false"
  73878. static="true" final="false" visibility="public"
  73879. deprecated="not deprecated">
  73880. <param name="msg" type="byte[]"/>
  73881. <param name="key" type="javax.crypto.SecretKey"/>
  73882. <doc>
  73883. <![CDATA[Compute the HMAC hash of the message using the key
  73884. @param msg the message to hash
  73885. @param key the key to use
  73886. @return the computed hash]]>
  73887. </doc>
  73888. </method>
  73889. <method name="createPassword" return="byte[]"
  73890. abstract="false" native="false" synchronized="false"
  73891. static="false" final="false" visibility="public"
  73892. deprecated="not deprecated">
  73893. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  73894. <doc>
  73895. <![CDATA[Create a new password/secret for the given job token identifier.
  73896. @param identifier the job token identifier
  73897. @return token password/secret]]>
  73898. </doc>
  73899. </method>
  73900. <method name="addTokenForJob"
  73901. abstract="false" native="false" synchronized="false"
  73902. static="false" final="false" visibility="public"
  73903. deprecated="not deprecated">
  73904. <param name="jobId" type="java.lang.String"/>
  73905. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  73906. <doc>
  73907. <![CDATA[Add the job token of a job to cache
  73908. @param jobId the job that owns the token
  73909. @param token the job token]]>
  73910. </doc>
  73911. </method>
  73912. <method name="removeTokenForJob"
  73913. abstract="false" native="false" synchronized="false"
  73914. static="false" final="false" visibility="public"
  73915. deprecated="not deprecated">
  73916. <param name="jobId" type="java.lang.String"/>
  73917. <doc>
  73918. <![CDATA[Remove the cached job token of a job from cache
  73919. @param jobId the job whose token is to be removed]]>
  73920. </doc>
  73921. </method>
  73922. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  73923. abstract="false" native="false" synchronized="false"
  73924. static="false" final="false" visibility="public"
  73925. deprecated="not deprecated">
  73926. <param name="jobId" type="java.lang.String"/>
  73927. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  73928. <doc>
  73929. <![CDATA[Look up the token password/secret for the given jobId.
  73930. @param jobId the jobId to look up
  73931. @return token password/secret as SecretKey
  73932. @throws InvalidToken]]>
  73933. </doc>
  73934. </method>
  73935. <method name="retrievePassword" return="byte[]"
  73936. abstract="false" native="false" synchronized="false"
  73937. static="false" final="false" visibility="public"
  73938. deprecated="not deprecated">
  73939. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  73940. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  73941. <doc>
  73942. <![CDATA[Look up the token password/secret for the given job token identifier.
  73943. @param identifier the job token identifier to look up
  73944. @return token password/secret as byte[]
  73945. @throws InvalidToken]]>
  73946. </doc>
  73947. </method>
  73948. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  73949. abstract="false" native="false" synchronized="false"
  73950. static="false" final="false" visibility="public"
  73951. deprecated="not deprecated">
  73952. <doc>
  73953. <![CDATA[Create an empty job token identifier
  73954. @return a newly created empty job token identifier]]>
  73955. </doc>
  73956. </method>
  73957. <doc>
  73958. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  73959. </doc>
  73960. </class>
  73961. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  73962. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  73963. <class name="JobTokenSelector" extends="java.lang.Object"
  73964. abstract="false"
  73965. static="false" final="false" visibility="public"
  73966. deprecated="not deprecated">
  73967. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  73968. <constructor name="JobTokenSelector"
  73969. static="false" final="false" visibility="public"
  73970. deprecated="not deprecated">
  73971. </constructor>
  73972. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  73973. abstract="false" native="false" synchronized="false"
  73974. static="false" final="false" visibility="public"
  73975. deprecated="not deprecated">
  73976. <param name="service" type="org.apache.hadoop.io.Text"/>
  73977. <param name="tokens" type="java.util.Collection"/>
  73978. </method>
  73979. <doc>
  73980. <![CDATA[Look through tokens to find the first job token that matches the service
  73981. and return it.]]>
  73982. </doc>
  73983. </class>
  73984. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  73985. </package>
  73986. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  73987. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  73988. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  73989. abstract="false"
  73990. static="false" final="false" visibility="public"
  73991. deprecated="not deprecated">
  73992. <constructor name="DelegationTokenIdentifier"
  73993. static="false" final="false" visibility="public"
  73994. deprecated="not deprecated">
  73995. <doc>
  73996. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  73997. </doc>
  73998. </constructor>
  73999. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  74000. static="false" final="false" visibility="public"
  74001. deprecated="not deprecated">
  74002. <doc>
  74003. <![CDATA[Create a new delegation token identifier
  74004. @param owner the effective username of the token owner
  74005. @param renewer the username of the renewer
  74006. @param realUser the real username of the token owner]]>
  74007. </doc>
  74008. </constructor>
  74009. <method name="getKind" return="org.apache.hadoop.io.Text"
  74010. abstract="false" native="false" synchronized="false"
  74011. static="false" final="false" visibility="public"
  74012. deprecated="not deprecated">
  74013. </method>
  74014. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  74015. transient="false" volatile="false"
  74016. static="true" final="true" visibility="public"
  74017. deprecated="not deprecated">
  74018. </field>
  74019. <doc>
  74020. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  74021. </doc>
  74022. </class>
  74023. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  74024. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  74025. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  74026. abstract="false"
  74027. static="false" final="false" visibility="public"
  74028. deprecated="not deprecated">
  74029. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  74030. static="false" final="false" visibility="public"
  74031. deprecated="not deprecated">
  74032. <doc>
  74033. <![CDATA[Create a secret manager
  74034. @param delegationKeyUpdateInterval the number of seconds for rolling new
  74035. secret keys.
  74036. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  74037. tokens
  74038. @param delegationTokenRenewInterval how often the tokens must be renewed
  74039. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  74040. for expired tokens]]>
  74041. </doc>
  74042. </constructor>
  74043. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  74044. abstract="false" native="false" synchronized="false"
  74045. static="false" final="false" visibility="public"
  74046. deprecated="not deprecated">
  74047. </method>
  74048. <doc>
  74049. <![CDATA[A MapReduce specific delegation token secret manager.
  74050. The secret manager is responsible for generating and accepting the password
  74051. for each token.]]>
  74052. </doc>
  74053. </class>
  74054. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  74055. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  74056. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  74057. abstract="false"
  74058. static="false" final="false" visibility="public"
  74059. deprecated="not deprecated">
  74060. <constructor name="DelegationTokenSelector"
  74061. static="false" final="false" visibility="public"
  74062. deprecated="not deprecated">
  74063. </constructor>
  74064. <doc>
  74065. <![CDATA[A delegation token that is specialized for MapReduce]]>
  74066. </doc>
  74067. </class>
  74068. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  74069. </package>
  74070. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  74071. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  74072. <class name="TaskTracker" extends="java.lang.Object"
  74073. abstract="false"
  74074. static="false" final="false" visibility="public"
  74075. deprecated="not deprecated">
  74076. <constructor name="TaskTracker" type="java.lang.String"
  74077. static="false" final="false" visibility="public"
  74078. deprecated="not deprecated">
  74079. <doc>
  74080. <![CDATA[Create a new {@link TaskTracker}.
  74081. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  74082. </doc>
  74083. </constructor>
  74084. <method name="getTrackerName" return="java.lang.String"
  74085. abstract="false" native="false" synchronized="false"
  74086. static="false" final="false" visibility="public"
  74087. deprecated="not deprecated">
  74088. <doc>
  74089. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  74090. @return the unique identifier for the <code>TaskTracker</code>]]>
  74091. </doc>
  74092. </method>
  74093. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  74094. abstract="false" native="false" synchronized="false"
  74095. static="false" final="false" visibility="public"
  74096. deprecated="not deprecated">
  74097. <doc>
  74098. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  74099. @return the current <code>TaskTrackerStatus</code> of the
  74100. <code>TaskTracker</code>]]>
  74101. </doc>
  74102. </method>
  74103. <method name="setStatus"
  74104. abstract="false" native="false" synchronized="false"
  74105. static="false" final="false" visibility="public"
  74106. deprecated="not deprecated">
  74107. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  74108. <doc>
  74109. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  74110. @param status the current <code>TaskTrackerStatus</code> of the
  74111. <code>TaskTracker</code>]]>
  74112. </doc>
  74113. </method>
  74114. <method name="getAvailableSlots" return="int"
  74115. abstract="false" native="false" synchronized="false"
  74116. static="false" final="false" visibility="public"
  74117. deprecated="not deprecated">
  74118. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  74119. <doc>
  74120. <![CDATA[Get the number of currently available slots on this tasktracker for the
  74121. given type of the task.
  74122. @param taskType the {@link TaskType} to check for number of available slots
  74123. @return the number of currently available slots for the given
  74124. <code>taskType</code>]]>
  74125. </doc>
  74126. </method>
  74127. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  74128. abstract="false" native="false" synchronized="false"
  74129. static="false" final="false" visibility="public"
  74130. deprecated="not deprecated">
  74131. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  74132. <doc>
  74133. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  74134. @param taskType {@link TaskType} of the task
  74135. @return the task for which the fallow slot(s) are held,
  74136. <code>null</code> if there are no fallow slots]]>
  74137. </doc>
  74138. </method>
  74139. <method name="reserveSlots"
  74140. abstract="false" native="false" synchronized="false"
  74141. static="false" final="false" visibility="public"
  74142. deprecated="not deprecated">
  74143. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  74144. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  74145. <param name="numSlots" type="int"/>
  74146. <doc>
  74147. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  74148. @param taskType {@link TaskType} of the task
  74149. @param job the job for which slots on this <code>TaskTracker</code>
  74150. are to be reserved
  74151. @param numSlots number of slots to be reserved]]>
  74152. </doc>
  74153. </method>
  74154. <method name="unreserveSlots"
  74155. abstract="false" native="false" synchronized="false"
  74156. static="false" final="false" visibility="public"
  74157. deprecated="not deprecated">
  74158. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  74159. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  74160. <doc>
  74161. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  74162. <code>taskType</code>.
  74163. @param taskType {@link TaskType} of the task
  74164. @param job job whose slots are being un-reserved]]>
  74165. </doc>
  74166. </method>
  74167. <method name="cancelAllReservations"
  74168. abstract="false" native="false" synchronized="false"
  74169. static="false" final="false" visibility="public"
  74170. deprecated="not deprecated">
  74171. <doc>
  74172. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  74173. by the JobTracker.
  74174. The method assumes that the lock on the {@link JobTracker} is obtained
  74175. by the caller.]]>
  74176. </doc>
  74177. </method>
  74178. <doc>
  74179. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  74180. the {@link JobTracker}.]]>
  74181. </doc>
  74182. </class>
  74183. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  74184. </package>
  74185. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  74186. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  74187. <class name="JVMInfo" extends="java.lang.Object"
  74188. abstract="false"
  74189. static="false" final="false" visibility="public"
  74190. deprecated="not deprecated">
  74191. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  74192. static="false" final="false" visibility="public"
  74193. deprecated="not deprecated">
  74194. </constructor>
  74195. <method name="getLogLocation" return="java.io.File"
  74196. abstract="false" native="false" synchronized="false"
  74197. static="false" final="false" visibility="public"
  74198. deprecated="not deprecated">
  74199. </method>
  74200. <method name="getAllAttempts" return="java.util.List"
  74201. abstract="false" native="false" synchronized="false"
  74202. static="false" final="false" visibility="public"
  74203. deprecated="not deprecated">
  74204. </method>
  74205. </class>
  74206. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  74207. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  74208. <class name="Localizer" extends="java.lang.Object"
  74209. abstract="false"
  74210. static="false" final="false" visibility="public"
  74211. deprecated="not deprecated">
  74212. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  74213. static="false" final="false" visibility="public"
  74214. deprecated="not deprecated">
  74215. <doc>
  74216. <![CDATA[Create a Localizer instance
  74217. @param fileSys
  74218. @param lDirs]]>
  74219. </doc>
  74220. </constructor>
  74221. <method name="initializeUserDirs"
  74222. abstract="false" native="false" synchronized="false"
  74223. static="false" final="false" visibility="public"
  74224. deprecated="not deprecated">
  74225. <param name="user" type="java.lang.String"/>
  74226. <exception name="IOException" type="java.io.IOException"/>
  74227. <doc>
  74228. <![CDATA[Initialize the local directories for a particular user on this TT. This
  74229. involves creation and setting permissions of the following directories
  74230. <ul>
  74231. <li>$mapred.local.dir/taskTracker/$user</li>
  74232. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  74233. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  74234. </ul>
  74235. @param user
  74236. @throws IOException]]>
  74237. </doc>
  74238. </method>
  74239. <method name="initializeAttemptDirs"
  74240. abstract="false" native="false" synchronized="false"
  74241. static="false" final="false" visibility="public"
  74242. deprecated="not deprecated">
  74243. <param name="user" type="java.lang.String"/>
  74244. <param name="jobId" type="java.lang.String"/>
  74245. <param name="attemptId" type="java.lang.String"/>
  74246. <exception name="IOException" type="java.io.IOException"/>
  74247. <doc>
  74248. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  74249. LinuxTaskController is in use, child might wish to balance load across
  74250. disks but cannot itself create attempt directory because of the fact that
  74251. job directory is writable only by the TT.
  74252. @param user
  74253. @param jobId
  74254. @param attemptId
  74255. @throws IOException]]>
  74256. </doc>
  74257. </method>
  74258. <doc>
  74259. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  74260. </doc>
  74261. </class>
  74262. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  74263. </package>
  74264. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  74265. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  74266. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  74267. abstract="false"
  74268. static="false" final="false" visibility="public"
  74269. deprecated="not deprecated">
  74270. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  74271. static="false" final="false" visibility="public"
  74272. deprecated="not deprecated">
  74273. <doc>
  74274. <![CDATA[Create the event to delete job log directory.
  74275. @param jobid
  74276. The {@link JobID} whose logs should be deleted.]]>
  74277. </doc>
  74278. </constructor>
  74279. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  74280. abstract="false" native="false" synchronized="false"
  74281. static="false" final="false" visibility="public"
  74282. deprecated="not deprecated">
  74283. <doc>
  74284. <![CDATA[Get the jobid.
  74285. @return object of {@link JobID}]]>
  74286. </doc>
  74287. </method>
  74288. <doc>
  74289. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  74290. </doc>
  74291. </class>
  74292. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  74293. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  74294. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  74295. abstract="false"
  74296. static="false" final="false" visibility="public"
  74297. deprecated="not deprecated">
  74298. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  74299. static="false" final="false" visibility="public"
  74300. deprecated="not deprecated">
  74301. <doc>
  74302. <![CDATA[Create the event for job completion.
  74303. @param jobid
  74304. The completed {@link JobID} .
  74305. @param jobCompletionTime
  74306. The job completion time.
  74307. @param retainHours
  74308. The number of hours for which the job logs should be retained]]>
  74309. </doc>
  74310. </constructor>
  74311. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  74312. abstract="false" native="false" synchronized="false"
  74313. static="false" final="false" visibility="public"
  74314. deprecated="not deprecated">
  74315. <doc>
  74316. <![CDATA[Get the job id.
  74317. @return object of {@link JobID}]]>
  74318. </doc>
  74319. </method>
  74320. <method name="getJobCompletionTime" return="long"
  74321. abstract="false" native="false" synchronized="false"
  74322. static="false" final="false" visibility="public"
  74323. deprecated="not deprecated">
  74324. <doc>
  74325. <![CDATA[Get the job completion time-stamp in milli-seconds.
  74326. @return job completion time.]]>
  74327. </doc>
  74328. </method>
  74329. <method name="getRetainHours" return="int"
  74330. abstract="false" native="false" synchronized="false"
  74331. static="false" final="false" visibility="public"
  74332. deprecated="not deprecated">
  74333. <doc>
  74334. <![CDATA[Get the number of hours for which job logs should be retained.
  74335. @return retainHours]]>
  74336. </doc>
  74337. </method>
  74338. <doc>
  74339. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  74340. </doc>
  74341. </class>
  74342. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  74343. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  74344. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  74345. abstract="false"
  74346. static="false" final="false" visibility="public"
  74347. deprecated="not deprecated">
  74348. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  74349. static="false" final="false" visibility="public"
  74350. deprecated="not deprecated">
  74351. <doc>
  74352. <![CDATA[Create the event to inform the job has started.
  74353. @param jobid
  74354. The {@link JobID} which started]]>
  74355. </doc>
  74356. </constructor>
  74357. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  74358. abstract="false" native="false" synchronized="false"
  74359. static="false" final="false" visibility="public"
  74360. deprecated="not deprecated">
  74361. <doc>
  74362. <![CDATA[Get the job id.
  74363. @return object of {@link JobID}]]>
  74364. </doc>
  74365. </method>
  74366. <doc>
  74367. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  74368. </doc>
  74369. </class>
  74370. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  74371. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  74372. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  74373. abstract="false"
  74374. static="false" final="false" visibility="public"
  74375. deprecated="not deprecated">
  74376. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  74377. static="false" final="false" visibility="public"
  74378. deprecated="not deprecated">
  74379. <doc>
  74380. <![CDATA[Create the event to inform that the jvm has finished.
  74381. @param jvmInfo
  74382. The finished {@link JVMInfo}]]>
  74383. </doc>
  74384. </constructor>
  74385. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  74386. abstract="false" native="false" synchronized="false"
  74387. static="false" final="false" visibility="public"
  74388. deprecated="not deprecated">
  74389. <doc>
  74390. <![CDATA[Get the jvm info.
  74391. @return object of {@link JVMInfo}]]>
  74392. </doc>
  74393. </method>
  74394. <doc>
  74395. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  74396. </doc>
  74397. </class>
  74398. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  74399. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  74400. <class name="UserLogEvent" extends="java.lang.Object"
  74401. abstract="true"
  74402. static="false" final="false" visibility="public"
  74403. deprecated="not deprecated">
  74404. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  74405. static="false" final="false" visibility="protected"
  74406. deprecated="not deprecated">
  74407. </constructor>
  74408. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  74409. abstract="false" native="false" synchronized="false"
  74410. static="false" final="false" visibility="public"
  74411. deprecated="not deprecated">
  74412. <doc>
  74413. <![CDATA[Return the {@link EventType}.
  74414. @return the {@link EventType}.]]>
  74415. </doc>
  74416. </method>
  74417. <doc>
  74418. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  74419. {@link UserLogManager} to inform about an event.]]>
  74420. </doc>
  74421. </class>
  74422. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  74423. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  74424. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  74425. abstract="false"
  74426. static="true" final="true" visibility="public"
  74427. deprecated="not deprecated">
  74428. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  74429. abstract="false" native="false" synchronized="false"
  74430. static="true" final="false" visibility="public"
  74431. deprecated="not deprecated">
  74432. </method>
  74433. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  74434. abstract="false" native="false" synchronized="false"
  74435. static="true" final="false" visibility="public"
  74436. deprecated="not deprecated">
  74437. <param name="name" type="java.lang.String"/>
  74438. </method>
  74439. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  74440. transient="false" volatile="false"
  74441. static="true" final="true" visibility="public"
  74442. deprecated="not deprecated">
  74443. </field>
  74444. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  74445. transient="false" volatile="false"
  74446. static="true" final="true" visibility="public"
  74447. deprecated="not deprecated">
  74448. </field>
  74449. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  74450. transient="false" volatile="false"
  74451. static="true" final="true" visibility="public"
  74452. deprecated="not deprecated">
  74453. </field>
  74454. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  74455. transient="false" volatile="false"
  74456. static="true" final="true" visibility="public"
  74457. deprecated="not deprecated">
  74458. </field>
  74459. </class>
  74460. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  74461. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  74462. <class name="UserLogManager" extends="java.lang.Object"
  74463. abstract="false"
  74464. static="false" final="false" visibility="public"
  74465. deprecated="not deprecated">
  74466. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  74467. static="false" final="false" visibility="public"
  74468. deprecated="not deprecated">
  74469. <exception name="IOException" type="java.io.IOException"/>
  74470. <doc>
  74471. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  74472. It should be explicitly started using {@link #start()} to start functioning
  74473. @param conf The {@link Configuration}
  74474. @param taskController The task controller to delete the log files
  74475. @throws IOException]]>
  74476. </doc>
  74477. </constructor>
  74478. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  74479. static="false" final="false" visibility="public"
  74480. deprecated="not deprecated">
  74481. <exception name="IOException" type="java.io.IOException"/>
  74482. <doc>
  74483. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  74484. This constructor is there mainly for unit tests.
  74485. @param conf The {@link Configuration}
  74486. @throws IOException]]>
  74487. </doc>
  74488. </constructor>
  74489. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  74490. abstract="false" native="false" synchronized="false"
  74491. static="false" final="false" visibility="public"
  74492. deprecated="not deprecated">
  74493. <doc>
  74494. <![CDATA[Get the taskController for deleting logs.
  74495. @return the TaskController]]>
  74496. </doc>
  74497. </method>
  74498. <method name="start"
  74499. abstract="false" native="false" synchronized="false"
  74500. static="false" final="false" visibility="public"
  74501. deprecated="not deprecated">
  74502. <doc>
  74503. <![CDATA[Starts managing the logs]]>
  74504. </doc>
  74505. </method>
  74506. <method name="monitor"
  74507. abstract="false" native="false" synchronized="false"
  74508. static="false" final="false" visibility="protected"
  74509. deprecated="not deprecated">
  74510. <exception name="Exception" type="java.lang.Exception"/>
  74511. </method>
  74512. <method name="processEvent"
  74513. abstract="false" native="false" synchronized="false"
  74514. static="false" final="false" visibility="protected"
  74515. deprecated="not deprecated">
  74516. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  74517. <exception name="IOException" type="java.io.IOException"/>
  74518. </method>
  74519. <method name="clearOldUserLogs"
  74520. abstract="false" native="false" synchronized="false"
  74521. static="false" final="false" visibility="public"
  74522. deprecated="not deprecated">
  74523. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74524. <exception name="IOException" type="java.io.IOException"/>
  74525. <doc>
  74526. <![CDATA[Called during TaskTracker restart/re-init.
  74527. @param conf
  74528. TT's conf
  74529. @throws IOException]]>
  74530. </doc>
  74531. </method>
  74532. <method name="addLogEvent"
  74533. abstract="false" native="false" synchronized="false"
  74534. static="false" final="false" visibility="public"
  74535. deprecated="not deprecated">
  74536. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  74537. <doc>
  74538. <![CDATA[Add the {@link UserLogEvent} for processing.
  74539. @param event]]>
  74540. </doc>
  74541. </method>
  74542. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  74543. abstract="false" native="false" synchronized="false"
  74544. static="false" final="false" visibility="public"
  74545. deprecated="not deprecated">
  74546. <doc>
  74547. <![CDATA[Get {@link UserLogCleaner}.
  74548. This method is called only from unit tests.
  74549. @return {@link UserLogCleaner}]]>
  74550. </doc>
  74551. </method>
  74552. <doc>
  74553. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  74554. </doc>
  74555. </class>
  74556. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  74557. </package>
  74558. <package name="org.apache.hadoop.mapreduce.split">
  74559. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  74560. <class name="JobSplit" extends="java.lang.Object"
  74561. abstract="false"
  74562. static="false" final="false" visibility="public"
  74563. deprecated="not deprecated">
  74564. <constructor name="JobSplit"
  74565. static="false" final="false" visibility="public"
  74566. deprecated="not deprecated">
  74567. </constructor>
  74568. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  74569. transient="false" volatile="false"
  74570. static="true" final="true" visibility="public"
  74571. deprecated="not deprecated">
  74572. </field>
  74573. <doc>
  74574. <![CDATA[This class groups the fundamental classes associated with
  74575. reading/writing splits. The split information is divided into
  74576. two parts based on the consumer of the information. The two
  74577. parts are the split meta information, and the raw split
  74578. information. The first part is consumed by the JobTracker to
  74579. create the tasks' locality data structures. The second part is
  74580. used by the maps at runtime to know what to do!
  74581. These pieces of information are written to two separate files.
  74582. The metainformation file is slurped by the JobTracker during
  74583. job initialization. A map task gets the meta information during
  74584. the launch and it reads the raw split bytes directly from the
  74585. file.]]>
  74586. </doc>
  74587. </class>
  74588. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  74589. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  74590. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  74591. abstract="false"
  74592. static="true" final="false" visibility="public"
  74593. deprecated="not deprecated">
  74594. <implements name="org.apache.hadoop.io.Writable"/>
  74595. <constructor name="JobSplit.SplitMetaInfo"
  74596. static="false" final="false" visibility="public"
  74597. deprecated="not deprecated">
  74598. </constructor>
  74599. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  74600. static="false" final="false" visibility="public"
  74601. deprecated="not deprecated">
  74602. </constructor>
  74603. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  74604. static="false" final="false" visibility="public"
  74605. deprecated="not deprecated">
  74606. <exception name="IOException" type="java.io.IOException"/>
  74607. </constructor>
  74608. <method name="getLocations" return="java.lang.String[]"
  74609. abstract="false" native="false" synchronized="false"
  74610. static="false" final="false" visibility="public"
  74611. deprecated="not deprecated">
  74612. </method>
  74613. <method name="getStartOffset" return="long"
  74614. abstract="false" native="false" synchronized="false"
  74615. static="false" final="false" visibility="public"
  74616. deprecated="not deprecated">
  74617. </method>
  74618. <method name="getInputDataLength" return="long"
  74619. abstract="false" native="false" synchronized="false"
  74620. static="false" final="false" visibility="public"
  74621. deprecated="not deprecated">
  74622. </method>
  74623. <method name="setInputDataLocations"
  74624. abstract="false" native="false" synchronized="false"
  74625. static="false" final="false" visibility="public"
  74626. deprecated="not deprecated">
  74627. <param name="locations" type="java.lang.String[]"/>
  74628. </method>
  74629. <method name="setInputDataLength"
  74630. abstract="false" native="false" synchronized="false"
  74631. static="false" final="false" visibility="public"
  74632. deprecated="not deprecated">
  74633. <param name="length" type="long"/>
  74634. </method>
  74635. <method name="readFields"
  74636. abstract="false" native="false" synchronized="false"
  74637. static="false" final="false" visibility="public"
  74638. deprecated="not deprecated">
  74639. <param name="in" type="java.io.DataInput"/>
  74640. <exception name="IOException" type="java.io.IOException"/>
  74641. </method>
  74642. <method name="write"
  74643. abstract="false" native="false" synchronized="false"
  74644. static="false" final="false" visibility="public"
  74645. deprecated="not deprecated">
  74646. <param name="out" type="java.io.DataOutput"/>
  74647. <exception name="IOException" type="java.io.IOException"/>
  74648. </method>
  74649. <method name="toString" return="java.lang.String"
  74650. abstract="false" native="false" synchronized="false"
  74651. static="false" final="false" visibility="public"
  74652. deprecated="not deprecated">
  74653. </method>
  74654. <doc>
  74655. <![CDATA[This represents the meta information about the task split.
  74656. The main fields are
  74657. - start offset in actual split
  74658. - data length that will be processed in this split
  74659. - hosts on which this split is local]]>
  74660. </doc>
  74661. </class>
  74662. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  74663. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  74664. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  74665. abstract="false"
  74666. static="true" final="false" visibility="public"
  74667. deprecated="not deprecated">
  74668. <constructor name="JobSplit.TaskSplitIndex"
  74669. static="false" final="false" visibility="public"
  74670. deprecated="not deprecated">
  74671. </constructor>
  74672. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  74673. static="false" final="false" visibility="public"
  74674. deprecated="not deprecated">
  74675. </constructor>
  74676. <method name="getStartOffset" return="long"
  74677. abstract="false" native="false" synchronized="false"
  74678. static="false" final="false" visibility="public"
  74679. deprecated="not deprecated">
  74680. </method>
  74681. <method name="getSplitLocation" return="java.lang.String"
  74682. abstract="false" native="false" synchronized="false"
  74683. static="false" final="false" visibility="public"
  74684. deprecated="not deprecated">
  74685. </method>
  74686. <method name="readFields"
  74687. abstract="false" native="false" synchronized="false"
  74688. static="false" final="false" visibility="public"
  74689. deprecated="not deprecated">
  74690. <param name="in" type="java.io.DataInput"/>
  74691. <exception name="IOException" type="java.io.IOException"/>
  74692. </method>
  74693. <method name="write"
  74694. abstract="false" native="false" synchronized="false"
  74695. static="false" final="false" visibility="public"
  74696. deprecated="not deprecated">
  74697. <param name="out" type="java.io.DataOutput"/>
  74698. <exception name="IOException" type="java.io.IOException"/>
  74699. </method>
  74700. <doc>
  74701. <![CDATA[This represents the meta information about the task split that the
  74702. task gets]]>
  74703. </doc>
  74704. </class>
  74705. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  74706. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  74707. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  74708. abstract="false"
  74709. static="true" final="false" visibility="public"
  74710. deprecated="not deprecated">
  74711. <constructor name="JobSplit.TaskSplitMetaInfo"
  74712. static="false" final="false" visibility="public"
  74713. deprecated="not deprecated">
  74714. </constructor>
  74715. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  74716. static="false" final="false" visibility="public"
  74717. deprecated="not deprecated">
  74718. </constructor>
  74719. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  74720. static="false" final="false" visibility="public"
  74721. deprecated="not deprecated">
  74722. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74723. <exception name="IOException" type="java.io.IOException"/>
  74724. </constructor>
  74725. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  74726. static="false" final="false" visibility="public"
  74727. deprecated="not deprecated">
  74728. </constructor>
  74729. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  74730. abstract="false" native="false" synchronized="false"
  74731. static="false" final="false" visibility="public"
  74732. deprecated="not deprecated">
  74733. </method>
  74734. <method name="getSplitLocation" return="java.lang.String"
  74735. abstract="false" native="false" synchronized="false"
  74736. static="false" final="false" visibility="public"
  74737. deprecated="not deprecated">
  74738. </method>
  74739. <method name="getInputDataLength" return="long"
  74740. abstract="false" native="false" synchronized="false"
  74741. static="false" final="false" visibility="public"
  74742. deprecated="not deprecated">
  74743. </method>
  74744. <method name="getLocations" return="java.lang.String[]"
  74745. abstract="false" native="false" synchronized="false"
  74746. static="false" final="false" visibility="public"
  74747. deprecated="not deprecated">
  74748. </method>
  74749. <method name="getStartOffset" return="long"
  74750. abstract="false" native="false" synchronized="false"
  74751. static="false" final="false" visibility="public"
  74752. deprecated="not deprecated">
  74753. </method>
  74754. <doc>
  74755. <![CDATA[This represents the meta information about the task split that the
  74756. JobTracker creates]]>
  74757. </doc>
  74758. </class>
  74759. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  74760. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  74761. <class name="JobSplitWriter" extends="java.lang.Object"
  74762. abstract="false"
  74763. static="false" final="false" visibility="public"
  74764. deprecated="not deprecated">
  74765. <constructor name="JobSplitWriter"
  74766. static="false" final="false" visibility="public"
  74767. deprecated="not deprecated">
  74768. </constructor>
  74769. <method name="createSplitFiles"
  74770. abstract="false" native="false" synchronized="false"
  74771. static="true" final="false" visibility="public"
  74772. deprecated="not deprecated">
  74773. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74774. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74775. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74776. <param name="splits" type="java.util.List"/>
  74777. <exception name="IOException" type="java.io.IOException"/>
  74778. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74779. </method>
  74780. <method name="createSplitFiles"
  74781. abstract="false" native="false" synchronized="false"
  74782. static="true" final="false" visibility="public"
  74783. deprecated="not deprecated">
  74784. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74785. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74786. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74787. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  74788. <exception name="IOException" type="java.io.IOException"/>
  74789. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74790. </method>
  74791. <method name="createSplitFiles"
  74792. abstract="false" native="false" synchronized="false"
  74793. static="true" final="false" visibility="public"
  74794. deprecated="not deprecated">
  74795. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74796. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74797. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74798. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  74799. <exception name="IOException" type="java.io.IOException"/>
  74800. </method>
  74801. <doc>
  74802. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  74803. and the raw bytes parts)]]>
  74804. </doc>
  74805. </class>
  74806. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  74807. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  74808. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  74809. abstract="false"
  74810. static="false" final="false" visibility="public"
  74811. deprecated="not deprecated">
  74812. <constructor name="SplitMetaInfoReader"
  74813. static="false" final="false" visibility="public"
  74814. deprecated="not deprecated">
  74815. </constructor>
  74816. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  74817. abstract="false" native="false" synchronized="false"
  74818. static="true" final="false" visibility="public"
  74819. deprecated="not deprecated">
  74820. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  74821. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  74822. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74823. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  74824. <exception name="IOException" type="java.io.IOException"/>
  74825. </method>
  74826. <doc>
  74827. <![CDATA[A (internal) utility that reads the split meta info and creates
  74828. split meta info objects]]>
  74829. </doc>
  74830. </class>
  74831. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  74832. </package>
  74833. <package name="org.apache.hadoop.tools">
  74834. <!-- start class org.apache.hadoop.tools.DistCh -->
  74835. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  74836. abstract="false"
  74837. static="false" final="false" visibility="public"
  74838. deprecated="not deprecated">
  74839. <method name="run" return="int"
  74840. abstract="false" native="false" synchronized="false"
  74841. static="false" final="false" visibility="public"
  74842. deprecated="not deprecated">
  74843. <param name="args" type="java.lang.String[]"/>
  74844. <exception name="Exception" type="java.lang.Exception"/>
  74845. <doc>
  74846. <![CDATA[This is the main driver for recursively changing files properties.]]>
  74847. </doc>
  74848. </method>
  74849. <method name="main"
  74850. abstract="false" native="false" synchronized="false"
  74851. static="true" final="false" visibility="public"
  74852. deprecated="not deprecated">
  74853. <param name="args" type="java.lang.String[]"/>
  74854. <exception name="Exception" type="java.lang.Exception"/>
  74855. </method>
  74856. <doc>
  74857. <![CDATA[A Map-reduce program to recursively change files properties
  74858. such as owner, group and permission.]]>
  74859. </doc>
  74860. </class>
  74861. <!-- end class org.apache.hadoop.tools.DistCh -->
  74862. <!-- start class org.apache.hadoop.tools.DistCp -->
  74863. <class name="DistCp" extends="java.lang.Object"
  74864. abstract="false"
  74865. static="false" final="false" visibility="public"
  74866. deprecated="not deprecated">
  74867. <implements name="org.apache.hadoop.util.Tool"/>
  74868. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  74869. static="false" final="false" visibility="public"
  74870. deprecated="not deprecated">
  74871. </constructor>
  74872. <method name="setConf"
  74873. abstract="false" native="false" synchronized="false"
  74874. static="false" final="false" visibility="public"
  74875. deprecated="not deprecated">
  74876. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74877. </method>
  74878. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74879. abstract="false" native="false" synchronized="false"
  74880. static="false" final="false" visibility="public"
  74881. deprecated="not deprecated">
  74882. </method>
  74883. <method name="copy"
  74884. abstract="false" native="false" synchronized="false"
  74885. static="true" final="false" visibility="public"
  74886. deprecated="not deprecated">
  74887. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74888. <param name="srcPath" type="java.lang.String"/>
  74889. <param name="destPath" type="java.lang.String"/>
  74890. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  74891. <param name="srcAsList" type="boolean"/>
  74892. <param name="ignoreReadFailures" type="boolean"/>
  74893. <exception name="IOException" type="java.io.IOException"/>
  74894. </method>
  74895. <method name="run" return="int"
  74896. abstract="false" native="false" synchronized="false"
  74897. static="false" final="false" visibility="public"
  74898. deprecated="not deprecated">
  74899. <param name="args" type="java.lang.String[]"/>
  74900. <doc>
  74901. <![CDATA[This is the main driver for recursively copying directories
  74902. across file systems. It takes at least two cmdline parameters. A source
  74903. URL and a destination URL. It then essentially does an "ls -lR" on the
  74904. source URL, and writes the output in a round-robin manner to all the map
  74905. input files. The mapper actually copies the files allotted to it. The
  74906. reduce is empty.]]>
  74907. </doc>
  74908. </method>
  74909. <method name="main"
  74910. abstract="false" native="false" synchronized="false"
  74911. static="true" final="false" visibility="public"
  74912. deprecated="not deprecated">
  74913. <param name="args" type="java.lang.String[]"/>
  74914. <exception name="Exception" type="java.lang.Exception"/>
  74915. </method>
  74916. <method name="getRandomId" return="java.lang.String"
  74917. abstract="false" native="false" synchronized="false"
  74918. static="true" final="false" visibility="public"
  74919. deprecated="not deprecated">
  74920. </method>
  74921. <field name="LOG" type="org.apache.commons.logging.Log"
  74922. transient="false" volatile="false"
  74923. static="true" final="true" visibility="public"
  74924. deprecated="not deprecated">
  74925. </field>
  74926. <doc>
  74927. <![CDATA[A Map-reduce program to recursively copy directories between
  74928. different file-systems.]]>
  74929. </doc>
  74930. </class>
  74931. <!-- end class org.apache.hadoop.tools.DistCp -->
  74932. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  74933. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  74934. abstract="false"
  74935. static="true" final="false" visibility="public"
  74936. deprecated="not deprecated">
  74937. <field name="ERROR_CODE" type="int"
  74938. transient="false" volatile="false"
  74939. static="true" final="true" visibility="public"
  74940. deprecated="not deprecated">
  74941. <doc>
  74942. <![CDATA[Error code for this exception]]>
  74943. </doc>
  74944. </field>
  74945. <doc>
  74946. <![CDATA[An exception class for duplicated source files.]]>
  74947. </doc>
  74948. </class>
  74949. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  74950. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  74951. <class name="HadoopArchives" extends="java.lang.Object"
  74952. abstract="false"
  74953. static="false" final="false" visibility="public"
  74954. deprecated="not deprecated">
  74955. <implements name="org.apache.hadoop.util.Tool"/>
  74956. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  74957. static="false" final="false" visibility="public"
  74958. deprecated="not deprecated">
  74959. </constructor>
  74960. <method name="setConf"
  74961. abstract="false" native="false" synchronized="false"
  74962. static="false" final="false" visibility="public"
  74963. deprecated="not deprecated">
  74964. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74965. </method>
  74966. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74967. abstract="false" native="false" synchronized="false"
  74968. static="false" final="false" visibility="public"
  74969. deprecated="not deprecated">
  74970. </method>
  74971. <method name="run" return="int"
  74972. abstract="false" native="false" synchronized="false"
  74973. static="false" final="false" visibility="public"
  74974. deprecated="not deprecated">
  74975. <param name="args" type="java.lang.String[]"/>
  74976. <exception name="Exception" type="java.lang.Exception"/>
  74977. <doc>
  74978. <![CDATA[the main driver for creating the archives
  74979. it takes at least three command line parameters. The parent path,
  74980. The src and the dest. It does an lsr on the source paths.
  74981. The mapper created archuves and the reducer creates
  74982. the archive index.]]>
  74983. </doc>
  74984. </method>
  74985. <method name="main"
  74986. abstract="false" native="false" synchronized="false"
  74987. static="true" final="false" visibility="public"
  74988. deprecated="not deprecated">
  74989. <param name="args" type="java.lang.String[]"/>
  74990. <doc>
  74991. <![CDATA[the main functions]]>
  74992. </doc>
  74993. </method>
  74994. <field name="VERSION" type="int"
  74995. transient="false" volatile="false"
  74996. static="true" final="true" visibility="public"
  74997. deprecated="not deprecated">
  74998. </field>
  74999. <doc>
  75000. <![CDATA[a archive creation utility.
  75001. This class provides methods that can be used
  75002. to create hadoop archives. For understanding of
  75003. Hadoop archives look at {@link HarFileSystem}.]]>
  75004. </doc>
  75005. </class>
  75006. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  75007. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  75008. <class name="Logalyzer" extends="java.lang.Object"
  75009. abstract="false"
  75010. static="false" final="false" visibility="public"
  75011. deprecated="not deprecated">
  75012. <constructor name="Logalyzer"
  75013. static="false" final="false" visibility="public"
  75014. deprecated="not deprecated">
  75015. </constructor>
  75016. <method name="doArchive"
  75017. abstract="false" native="false" synchronized="false"
  75018. static="false" final="false" visibility="public"
  75019. deprecated="not deprecated">
  75020. <param name="logListURI" type="java.lang.String"/>
  75021. <param name="archiveDirectory" type="java.lang.String"/>
  75022. <exception name="IOException" type="java.io.IOException"/>
  75023. <doc>
  75024. <![CDATA[doArchive: Workhorse function to archive log-files.
  75025. @param logListURI : The uri which will serve list of log-files to archive.
  75026. @param archiveDirectory : The directory to store archived logfiles.
  75027. @throws IOException]]>
  75028. </doc>
  75029. </method>
  75030. <method name="doAnalyze"
  75031. abstract="false" native="false" synchronized="false"
  75032. static="false" final="false" visibility="public"
  75033. deprecated="not deprecated">
  75034. <param name="inputFilesDirectory" type="java.lang.String"/>
  75035. <param name="outputDirectory" type="java.lang.String"/>
  75036. <param name="grepPattern" type="java.lang.String"/>
  75037. <param name="sortColumns" type="java.lang.String"/>
  75038. <param name="columnSeparator" type="java.lang.String"/>
  75039. <exception name="IOException" type="java.io.IOException"/>
  75040. <doc>
  75041. <![CDATA[doAnalyze:
  75042. @param inputFilesDirectory : Directory containing the files to be analyzed.
  75043. @param outputDirectory : Directory to store analysis (output).
  75044. @param grepPattern : Pattern to *grep* for.
  75045. @param sortColumns : Sort specification for output.
  75046. @param columnSeparator : Column separator.
  75047. @throws IOException]]>
  75048. </doc>
  75049. </method>
  75050. <method name="main"
  75051. abstract="false" native="false" synchronized="false"
  75052. static="true" final="false" visibility="public"
  75053. deprecated="not deprecated">
  75054. <param name="args" type="java.lang.String[]"/>
  75055. </method>
  75056. <doc>
  75057. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  75058. <p>
  75059. This tool supports archiving and anaylzing (sort/grep) of log-files.
  75060. It takes as input
  75061. a) Input uri which will serve uris of the logs to be archived.
  75062. b) Output directory (not mandatory).
  75063. b) Directory on dfs to archive the logs.
  75064. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  75065. Usage:
  75066. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  75067. <p>]]>
  75068. </doc>
  75069. </class>
  75070. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  75071. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  75072. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  75073. abstract="false"
  75074. static="true" final="false" visibility="public"
  75075. deprecated="not deprecated">
  75076. <implements name="org.apache.hadoop.conf.Configurable"/>
  75077. <constructor name="Logalyzer.LogComparator"
  75078. static="false" final="false" visibility="public"
  75079. deprecated="not deprecated">
  75080. </constructor>
  75081. <method name="setConf"
  75082. abstract="false" native="false" synchronized="false"
  75083. static="false" final="false" visibility="public"
  75084. deprecated="not deprecated">
  75085. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75086. </method>
  75087. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  75088. abstract="false" native="false" synchronized="false"
  75089. static="false" final="false" visibility="public"
  75090. deprecated="not deprecated">
  75091. </method>
  75092. <method name="compare" return="int"
  75093. abstract="false" native="false" synchronized="false"
  75094. static="false" final="false" visibility="public"
  75095. deprecated="not deprecated">
  75096. <param name="b1" type="byte[]"/>
  75097. <param name="s1" type="int"/>
  75098. <param name="l1" type="int"/>
  75099. <param name="b2" type="byte[]"/>
  75100. <param name="s2" type="int"/>
  75101. <param name="l2" type="int"/>
  75102. </method>
  75103. <doc>
  75104. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  75105. </doc>
  75106. </class>
  75107. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  75108. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  75109. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  75110. abstract="false"
  75111. static="true" final="false" visibility="public"
  75112. deprecated="not deprecated">
  75113. <implements name="org.apache.hadoop.mapred.Mapper"/>
  75114. <constructor name="Logalyzer.LogRegexMapper"
  75115. static="false" final="false" visibility="public"
  75116. deprecated="not deprecated">
  75117. </constructor>
  75118. <method name="configure"
  75119. abstract="false" native="false" synchronized="false"
  75120. static="false" final="false" visibility="public"
  75121. deprecated="not deprecated">
  75122. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  75123. </method>
  75124. <method name="map"
  75125. abstract="false" native="false" synchronized="false"
  75126. static="false" final="false" visibility="public"
  75127. deprecated="not deprecated">
  75128. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  75129. <param name="value" type="org.apache.hadoop.io.Text"/>
  75130. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  75131. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  75132. <exception name="IOException" type="java.io.IOException"/>
  75133. </method>
  75134. <doc>
  75135. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  75136. </doc>
  75137. </class>
  75138. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  75139. </package>
  75140. <package name="org.apache.hadoop.tools.rumen">
  75141. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  75142. <class name="AbstractClusterStory" extends="java.lang.Object"
  75143. abstract="true"
  75144. static="false" final="false" visibility="public"
  75145. deprecated="not deprecated">
  75146. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  75147. <constructor name="AbstractClusterStory"
  75148. static="false" final="false" visibility="public"
  75149. deprecated="not deprecated">
  75150. </constructor>
  75151. <method name="getMachines" return="java.util.Set"
  75152. abstract="false" native="false" synchronized="false"
  75153. static="false" final="false" visibility="public"
  75154. deprecated="not deprecated">
  75155. </method>
  75156. <method name="getRacks" return="java.util.Set"
  75157. abstract="false" native="false" synchronized="true"
  75158. static="false" final="false" visibility="public"
  75159. deprecated="not deprecated">
  75160. </method>
  75161. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  75162. abstract="false" native="false" synchronized="true"
  75163. static="false" final="false" visibility="public"
  75164. deprecated="not deprecated">
  75165. <param name="expected" type="int"/>
  75166. <param name="random" type="java.util.Random"/>
  75167. </method>
  75168. <method name="buildMachineNodeMap"
  75169. abstract="false" native="false" synchronized="true"
  75170. static="false" final="false" visibility="protected"
  75171. deprecated="not deprecated">
  75172. </method>
  75173. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  75174. abstract="false" native="false" synchronized="false"
  75175. static="false" final="false" visibility="public"
  75176. deprecated="not deprecated">
  75177. <param name="name" type="java.lang.String"/>
  75178. </method>
  75179. <method name="distance" return="int"
  75180. abstract="false" native="false" synchronized="false"
  75181. static="false" final="false" visibility="public"
  75182. deprecated="not deprecated">
  75183. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  75184. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  75185. </method>
  75186. <method name="buildRackNodeMap"
  75187. abstract="false" native="false" synchronized="true"
  75188. static="false" final="false" visibility="protected"
  75189. deprecated="not deprecated">
  75190. </method>
  75191. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  75192. abstract="false" native="false" synchronized="false"
  75193. static="false" final="false" visibility="public"
  75194. deprecated="not deprecated">
  75195. <param name="name" type="java.lang.String"/>
  75196. </method>
  75197. <method name="getMaximumDistance" return="int"
  75198. abstract="false" native="false" synchronized="false"
  75199. static="false" final="false" visibility="public"
  75200. deprecated="not deprecated">
  75201. </method>
  75202. <method name="parseTopologyTree"
  75203. abstract="false" native="false" synchronized="true"
  75204. static="false" final="false" visibility="protected"
  75205. deprecated="not deprecated">
  75206. </method>
  75207. <field name="machineNodes" type="java.util.Set"
  75208. transient="false" volatile="false"
  75209. static="false" final="false" visibility="protected"
  75210. deprecated="not deprecated">
  75211. </field>
  75212. <field name="rackNodes" type="java.util.Set"
  75213. transient="false" volatile="false"
  75214. static="false" final="false" visibility="protected"
  75215. deprecated="not deprecated">
  75216. </field>
  75217. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  75218. transient="false" volatile="false"
  75219. static="false" final="false" visibility="protected"
  75220. deprecated="not deprecated">
  75221. </field>
  75222. <field name="mNodeMap" type="java.util.Map"
  75223. transient="false" volatile="false"
  75224. static="false" final="false" visibility="protected"
  75225. deprecated="not deprecated">
  75226. </field>
  75227. <field name="rNodeMap" type="java.util.Map"
  75228. transient="false" volatile="false"
  75229. static="false" final="false" visibility="protected"
  75230. deprecated="not deprecated">
  75231. </field>
  75232. <field name="maximumDistance" type="int"
  75233. transient="false" volatile="false"
  75234. static="false" final="false" visibility="protected"
  75235. deprecated="not deprecated">
  75236. </field>
  75237. <doc>
  75238. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  75239. {@link ClusterStory} by parsing the topology tree.]]>
  75240. </doc>
  75241. </class>
  75242. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  75243. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  75244. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  75245. abstract="false"
  75246. static="false" final="false" visibility="public"
  75247. deprecated="not deprecated">
  75248. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  75249. static="false" final="false" visibility="public"
  75250. deprecated="not deprecated">
  75251. <doc>
  75252. <![CDATA[@param cdf
  75253. builds a CDFRandomValue engine around this
  75254. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  75255. </doc>
  75256. </constructor>
  75257. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  75258. static="false" final="false" visibility="public"
  75259. deprecated="not deprecated">
  75260. <doc>
  75261. <![CDATA[@param cdf
  75262. builds a CDFRandomValue engine around this
  75263. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  75264. @param seed
  75265. the random number generator seed]]>
  75266. </doc>
  75267. </constructor>
  75268. <method name="valueAt" return="long"
  75269. abstract="false" native="false" synchronized="false"
  75270. static="false" final="false" visibility="public"
  75271. deprecated="not deprecated">
  75272. <param name="probability" type="double"/>
  75273. <doc>
  75274. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  75275. epistomological minimum resp. maximum. This is probably okay for the
  75276. minimum, because that likely represents a task where everything went well,
  75277. but for the maximum we may want to develop a way of extrapolating past the
  75278. maximum.]]>
  75279. </doc>
  75280. </method>
  75281. </class>
  75282. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  75283. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  75284. <class name="CDFRandomGenerator" extends="java.lang.Object"
  75285. abstract="true"
  75286. static="false" final="false" visibility="public"
  75287. deprecated="not deprecated">
  75288. <method name="initializeTables"
  75289. abstract="false" native="false" synchronized="false"
  75290. static="false" final="true" visibility="protected"
  75291. deprecated="not deprecated">
  75292. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  75293. </method>
  75294. <method name="floorIndex" return="int"
  75295. abstract="false" native="false" synchronized="false"
  75296. static="false" final="false" visibility="protected"
  75297. deprecated="not deprecated">
  75298. <param name="probe" type="double"/>
  75299. </method>
  75300. <method name="getRankingAt" return="double"
  75301. abstract="false" native="false" synchronized="false"
  75302. static="false" final="false" visibility="protected"
  75303. deprecated="not deprecated">
  75304. <param name="index" type="int"/>
  75305. </method>
  75306. <method name="getDatumAt" return="long"
  75307. abstract="false" native="false" synchronized="false"
  75308. static="false" final="false" visibility="protected"
  75309. deprecated="not deprecated">
  75310. <param name="index" type="int"/>
  75311. </method>
  75312. <method name="randomValue" return="long"
  75313. abstract="false" native="false" synchronized="false"
  75314. static="false" final="false" visibility="public"
  75315. deprecated="not deprecated">
  75316. </method>
  75317. <method name="valueAt" return="long"
  75318. abstract="true" native="false" synchronized="false"
  75319. static="false" final="false" visibility="public"
  75320. deprecated="not deprecated">
  75321. <param name="probability" type="double"/>
  75322. </method>
  75323. <doc>
  75324. <![CDATA[An instance of this class generates random values that confirm to the
  75325. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  75326. approximation of the "real" CDF. We therefore have a choice of interpolation
  75327. rules.
  75328. A concrete subclass of this abstract class will implement valueAt(double)
  75329. using a class-dependent interpolation rule.]]>
  75330. </doc>
  75331. </class>
  75332. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  75333. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  75334. <interface name="ClusterStory" abstract="true"
  75335. static="false" final="false" visibility="public"
  75336. deprecated="not deprecated">
  75337. <method name="getMachines" return="java.util.Set"
  75338. abstract="false" native="false" synchronized="false"
  75339. static="false" final="false" visibility="public"
  75340. deprecated="not deprecated">
  75341. <doc>
  75342. <![CDATA[Get all machines of the cluster.
  75343. @return A read-only set that contains all machines of the cluster.]]>
  75344. </doc>
  75345. </method>
  75346. <method name="getRacks" return="java.util.Set"
  75347. abstract="false" native="false" synchronized="false"
  75348. static="false" final="false" visibility="public"
  75349. deprecated="not deprecated">
  75350. <doc>
  75351. <![CDATA[Get all racks of the cluster.
  75352. @return A read-only set that contains all racks of the cluster.]]>
  75353. </doc>
  75354. </method>
  75355. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  75356. abstract="false" native="false" synchronized="false"
  75357. static="false" final="false" visibility="public"
  75358. deprecated="not deprecated">
  75359. <doc>
  75360. <![CDATA[Get the cluster topology tree.
  75361. @return The root node of the cluster topology tree.]]>
  75362. </doc>
  75363. </method>
  75364. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  75365. abstract="false" native="false" synchronized="false"
  75366. static="false" final="false" visibility="public"
  75367. deprecated="not deprecated">
  75368. <param name="expected" type="int"/>
  75369. <param name="random" type="java.util.Random"/>
  75370. <doc>
  75371. <![CDATA[Select a random set of machines.
  75372. @param expected The expected sample size.
  75373. @param random Random number generator to use.
  75374. @return An array of up to expected number of {@link MachineNode}s.]]>
  75375. </doc>
  75376. </method>
  75377. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  75378. abstract="false" native="false" synchronized="false"
  75379. static="false" final="false" visibility="public"
  75380. deprecated="not deprecated">
  75381. <param name="name" type="java.lang.String"/>
  75382. <doc>
  75383. <![CDATA[Get {@link MachineNode} by its host name.
  75384. @return The {@line MachineNode} with the same name. Or null if not found.]]>
  75385. </doc>
  75386. </method>
  75387. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  75388. abstract="false" native="false" synchronized="false"
  75389. static="false" final="false" visibility="public"
  75390. deprecated="not deprecated">
  75391. <param name="name" type="java.lang.String"/>
  75392. <doc>
  75393. <![CDATA[Get {@link RackNode} by its name.
  75394. @return The {@line RackNode} with the same name. Or null if not found.]]>
  75395. </doc>
  75396. </method>
  75397. <method name="distance" return="int"
  75398. abstract="false" native="false" synchronized="false"
  75399. static="false" final="false" visibility="public"
  75400. deprecated="not deprecated">
  75401. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  75402. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  75403. <doc>
  75404. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  75405. is loosely defined as the length of the longer path for either a or b to
  75406. reach their common ancestor.
  75407. @param a
  75408. @param b
  75409. @return The distance between {@link Node} a and {@link Node} b.]]>
  75410. </doc>
  75411. </method>
  75412. <method name="getMaximumDistance" return="int"
  75413. abstract="false" native="false" synchronized="false"
  75414. static="false" final="false" visibility="public"
  75415. deprecated="not deprecated">
  75416. <doc>
  75417. <![CDATA[Get the maximum distance possible between any two nodes.
  75418. @return the maximum distance possible between any two nodes.]]>
  75419. </doc>
  75420. </method>
  75421. <doc>
  75422. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  75423. including nodes, network topology, and slot configurations.]]>
  75424. </doc>
  75425. </interface>
  75426. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  75427. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  75428. <class name="ClusterTopologyReader" extends="java.lang.Object"
  75429. abstract="false"
  75430. static="false" final="false" visibility="public"
  75431. deprecated="not deprecated">
  75432. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  75433. static="false" final="false" visibility="public"
  75434. deprecated="not deprecated">
  75435. <exception name="IOException" type="java.io.IOException"/>
  75436. <doc>
  75437. <![CDATA[Constructor.
  75438. @param path
  75439. Path to the JSON-encoded topology file, possibly compressed.
  75440. @param conf
  75441. @throws IOException]]>
  75442. </doc>
  75443. </constructor>
  75444. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  75445. static="false" final="false" visibility="public"
  75446. deprecated="not deprecated">
  75447. <exception name="IOException" type="java.io.IOException"/>
  75448. <doc>
  75449. <![CDATA[Constructor.
  75450. @param input
  75451. The input stream for the JSON-encoded topology data.]]>
  75452. </doc>
  75453. </constructor>
  75454. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  75455. abstract="false" native="false" synchronized="false"
  75456. static="false" final="false" visibility="public"
  75457. deprecated="not deprecated">
  75458. <doc>
  75459. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  75460. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  75461. </doc>
  75462. </method>
  75463. <doc>
  75464. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  75465. {@link LoggedNetworkTopology} object.]]>
  75466. </doc>
  75467. </class>
  75468. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  75469. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  75470. <interface name="DeepCompare" abstract="true"
  75471. static="false" final="false" visibility="public"
  75472. deprecated="not deprecated">
  75473. <method name="deepCompare"
  75474. abstract="false" native="false" synchronized="false"
  75475. static="false" final="false" visibility="public"
  75476. deprecated="not deprecated">
  75477. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  75478. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  75479. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  75480. <doc>
  75481. <![CDATA[@param other
  75482. the other comparand that's being compared to me
  75483. @param myLocation
  75484. the path that got to me. In the root, myLocation is null. To
  75485. process the scalar {@code foo} field of the root we will make a
  75486. recursive call with a {@link TreePath} whose {@code fieldName} is
  75487. {@code "bar"} and whose {@code index} is -1 and whose {@code
  75488. parent} is {@code null}. To process the plural {@code bar} field
  75489. of the root we will make a recursive call with a {@link TreePath}
  75490. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  75491. whose {@code parent} is also {@code null}.
  75492. @throws DeepInequalityException]]>
  75493. </doc>
  75494. </method>
  75495. <doc>
  75496. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  75497. not order] with another instance. They do a deep compare. If there is any
  75498. semantically significant difference, an implementer throws an Exception to be
  75499. thrown with a chain of causes describing the chain of field references and
  75500. indices that get you to the miscompared point.]]>
  75501. </doc>
  75502. </interface>
  75503. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  75504. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  75505. <class name="DeepInequalityException" extends="java.lang.Exception"
  75506. abstract="false"
  75507. static="false" final="false" visibility="public"
  75508. deprecated="not deprecated">
  75509. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  75510. static="false" final="false" visibility="public"
  75511. deprecated="not deprecated">
  75512. <doc>
  75513. <![CDATA[@param message
  75514. an exception message
  75515. @param path
  75516. the path that gets from the root to the inequality
  75517. This is the constructor that I intend to have used for this
  75518. exception.]]>
  75519. </doc>
  75520. </constructor>
  75521. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  75522. static="false" final="false" visibility="public"
  75523. deprecated="not deprecated">
  75524. <doc>
  75525. <![CDATA[@param message
  75526. an exception message
  75527. @param path
  75528. the path that gets from the root to the inequality
  75529. This is the constructor that I intend to have used for this
  75530. exception.]]>
  75531. </doc>
  75532. </constructor>
  75533. <doc>
  75534. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  75535. when we run the]]>
  75536. </doc>
  75537. </class>
  75538. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  75539. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  75540. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  75541. abstract="false"
  75542. static="false" final="false" visibility="public"
  75543. deprecated="not deprecated">
  75544. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  75545. <constructor name="DefaultInputDemuxer"
  75546. static="false" final="false" visibility="public"
  75547. deprecated="not deprecated">
  75548. </constructor>
  75549. <method name="bindTo"
  75550. abstract="false" native="false" synchronized="false"
  75551. static="false" final="false" visibility="public"
  75552. deprecated="not deprecated">
  75553. <param name="path" type="org.apache.hadoop.fs.Path"/>
  75554. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75555. <exception name="IOException" type="java.io.IOException"/>
  75556. </method>
  75557. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  75558. abstract="false" native="false" synchronized="false"
  75559. static="false" final="false" visibility="public"
  75560. deprecated="not deprecated">
  75561. <exception name="IOException" type="java.io.IOException"/>
  75562. </method>
  75563. <method name="close"
  75564. abstract="false" native="false" synchronized="false"
  75565. static="false" final="false" visibility="public"
  75566. deprecated="not deprecated">
  75567. <exception name="IOException" type="java.io.IOException"/>
  75568. </method>
  75569. <doc>
  75570. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  75571. each file and returns back the input stream. If the input is compressed, it
  75572. would return a decompression stream.]]>
  75573. </doc>
  75574. </class>
  75575. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  75576. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  75577. <class name="DefaultOutputter" extends="java.lang.Object"
  75578. abstract="false"
  75579. static="false" final="false" visibility="public"
  75580. deprecated="not deprecated">
  75581. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  75582. <constructor name="DefaultOutputter"
  75583. static="false" final="false" visibility="public"
  75584. deprecated="not deprecated">
  75585. </constructor>
  75586. <method name="init"
  75587. abstract="false" native="false" synchronized="false"
  75588. static="false" final="false" visibility="public"
  75589. deprecated="not deprecated">
  75590. <param name="path" type="org.apache.hadoop.fs.Path"/>
  75591. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75592. <exception name="IOException" type="java.io.IOException"/>
  75593. </method>
  75594. <method name="output"
  75595. abstract="false" native="false" synchronized="false"
  75596. static="false" final="false" visibility="public"
  75597. deprecated="not deprecated">
  75598. <param name="object" type="java.lang.Object"/>
  75599. <exception name="IOException" type="java.io.IOException"/>
  75600. </method>
  75601. <method name="close"
  75602. abstract="false" native="false" synchronized="false"
  75603. static="false" final="false" visibility="public"
  75604. deprecated="not deprecated">
  75605. <exception name="IOException" type="java.io.IOException"/>
  75606. </method>
  75607. <doc>
  75608. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  75609. will be applied if the path has the right suffix.]]>
  75610. </doc>
  75611. </class>
  75612. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  75613. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  75614. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  75615. abstract="false"
  75616. static="false" final="false" visibility="public"
  75617. deprecated="not deprecated">
  75618. <implements name="java.io.Closeable"/>
  75619. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  75620. static="false" final="false" visibility="public"
  75621. deprecated="not deprecated">
  75622. <exception name="IOException" type="java.io.IOException"/>
  75623. <doc>
  75624. <![CDATA[Constructor.
  75625. @param reader
  75626. the {@link JobTraceReader} that's being protected
  75627. @param skewBufferSize
  75628. [the number of late jobs that can preced a later out-of-order
  75629. earlier job
  75630. @throws IOException]]>
  75631. </doc>
  75632. </constructor>
  75633. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  75634. static="false" final="false" visibility="public"
  75635. deprecated="not deprecated">
  75636. <exception name="IOException" type="java.io.IOException"/>
  75637. </constructor>
  75638. <method name="close"
  75639. abstract="false" native="false" synchronized="false"
  75640. static="false" final="false" visibility="public"
  75641. deprecated="not deprecated">
  75642. <exception name="IOException" type="java.io.IOException"/>
  75643. </method>
  75644. </class>
  75645. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  75646. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  75647. <class name="EventType" extends="java.lang.Enum"
  75648. abstract="false"
  75649. static="false" final="true" visibility="public"
  75650. deprecated="not deprecated">
  75651. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  75652. abstract="false" native="false" synchronized="false"
  75653. static="true" final="false" visibility="public"
  75654. deprecated="not deprecated">
  75655. </method>
  75656. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  75657. abstract="false" native="false" synchronized="false"
  75658. static="true" final="false" visibility="public"
  75659. deprecated="not deprecated">
  75660. <param name="name" type="java.lang.String"/>
  75661. </method>
  75662. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  75663. transient="false" volatile="false"
  75664. static="true" final="true" visibility="public"
  75665. deprecated="not deprecated">
  75666. </field>
  75667. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  75668. transient="false" volatile="false"
  75669. static="true" final="true" visibility="public"
  75670. deprecated="not deprecated">
  75671. </field>
  75672. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75673. transient="false" volatile="false"
  75674. static="true" final="true" visibility="public"
  75675. deprecated="not deprecated">
  75676. </field>
  75677. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  75678. transient="false" volatile="false"
  75679. static="true" final="true" visibility="public"
  75680. deprecated="not deprecated">
  75681. </field>
  75682. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  75683. transient="false" volatile="false"
  75684. static="true" final="true" visibility="public"
  75685. deprecated="not deprecated">
  75686. </field>
  75687. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75688. transient="false" volatile="false"
  75689. static="true" final="true" visibility="public"
  75690. deprecated="not deprecated">
  75691. </field>
  75692. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75693. transient="false" volatile="false"
  75694. static="true" final="true" visibility="public"
  75695. deprecated="not deprecated">
  75696. </field>
  75697. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  75698. transient="false" volatile="false"
  75699. static="true" final="true" visibility="public"
  75700. deprecated="not deprecated">
  75701. </field>
  75702. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75703. transient="false" volatile="false"
  75704. static="true" final="true" visibility="public"
  75705. deprecated="not deprecated">
  75706. </field>
  75707. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75708. transient="false" volatile="false"
  75709. static="true" final="true" visibility="public"
  75710. deprecated="not deprecated">
  75711. </field>
  75712. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75713. transient="false" volatile="false"
  75714. static="true" final="true" visibility="public"
  75715. deprecated="not deprecated">
  75716. </field>
  75717. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  75718. transient="false" volatile="false"
  75719. static="true" final="true" visibility="public"
  75720. deprecated="not deprecated">
  75721. </field>
  75722. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75723. transient="false" volatile="false"
  75724. static="true" final="true" visibility="public"
  75725. deprecated="not deprecated">
  75726. </field>
  75727. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75728. transient="false" volatile="false"
  75729. static="true" final="true" visibility="public"
  75730. deprecated="not deprecated">
  75731. </field>
  75732. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75733. transient="false" volatile="false"
  75734. static="true" final="true" visibility="public"
  75735. deprecated="not deprecated">
  75736. </field>
  75737. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75738. transient="false" volatile="false"
  75739. static="true" final="true" visibility="public"
  75740. deprecated="not deprecated">
  75741. </field>
  75742. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75743. transient="false" volatile="false"
  75744. static="true" final="true" visibility="public"
  75745. deprecated="not deprecated">
  75746. </field>
  75747. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75748. transient="false" volatile="false"
  75749. static="true" final="true" visibility="public"
  75750. deprecated="not deprecated">
  75751. </field>
  75752. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75753. transient="false" volatile="false"
  75754. static="true" final="true" visibility="public"
  75755. deprecated="not deprecated">
  75756. </field>
  75757. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75758. transient="false" volatile="false"
  75759. static="true" final="true" visibility="public"
  75760. deprecated="not deprecated">
  75761. </field>
  75762. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75763. transient="false" volatile="false"
  75764. static="true" final="true" visibility="public"
  75765. deprecated="not deprecated">
  75766. </field>
  75767. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75768. transient="false" volatile="false"
  75769. static="true" final="true" visibility="public"
  75770. deprecated="not deprecated">
  75771. </field>
  75772. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75773. transient="false" volatile="false"
  75774. static="true" final="true" visibility="public"
  75775. deprecated="not deprecated">
  75776. </field>
  75777. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75778. transient="false" volatile="false"
  75779. static="true" final="true" visibility="public"
  75780. deprecated="not deprecated">
  75781. </field>
  75782. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  75783. transient="false" volatile="false"
  75784. static="true" final="true" visibility="public"
  75785. deprecated="not deprecated">
  75786. </field>
  75787. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  75788. transient="false" volatile="false"
  75789. static="true" final="true" visibility="public"
  75790. deprecated="not deprecated">
  75791. </field>
  75792. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  75793. transient="false" volatile="false"
  75794. static="true" final="true" visibility="public"
  75795. deprecated="not deprecated">
  75796. </field>
  75797. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  75798. transient="false" volatile="false"
  75799. static="true" final="true" visibility="public"
  75800. deprecated="not deprecated">
  75801. </field>
  75802. </class>
  75803. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  75804. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  75805. <class name="Hadoop20JHParser" extends="java.lang.Object"
  75806. abstract="false"
  75807. static="false" final="false" visibility="public"
  75808. deprecated="not deprecated">
  75809. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  75810. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  75811. static="false" final="false" visibility="public"
  75812. deprecated="not deprecated">
  75813. <exception name="IOException" type="java.io.IOException"/>
  75814. </constructor>
  75815. <method name="canParse" return="boolean"
  75816. abstract="false" native="false" synchronized="false"
  75817. static="true" final="false" visibility="public"
  75818. deprecated="not deprecated">
  75819. <param name="input" type="java.io.InputStream"/>
  75820. <exception name="IOException" type="java.io.IOException"/>
  75821. <doc>
  75822. <![CDATA[Can this parser parse the input?
  75823. @param input
  75824. @return Whether this parser can parse the input.
  75825. @throws IOException
  75826. We will deem a stream to be a good 0.20 job history stream if the
  75827. first line is exactly "Meta VERSION=\"1\" ."]]>
  75828. </doc>
  75829. </method>
  75830. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  75831. abstract="false" native="false" synchronized="false"
  75832. static="false" final="false" visibility="public"
  75833. deprecated="not deprecated">
  75834. </method>
  75835. <method name="close"
  75836. abstract="false" native="false" synchronized="false"
  75837. static="false" final="false" visibility="public"
  75838. deprecated="not deprecated">
  75839. <exception name="IOException" type="java.io.IOException"/>
  75840. </method>
  75841. <doc>
  75842. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  75843. </doc>
  75844. </class>
  75845. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  75846. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  75847. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  75848. abstract="false"
  75849. static="false" final="false" visibility="public"
  75850. deprecated="not deprecated">
  75851. <implements name="org.apache.hadoop.util.Tool"/>
  75852. <constructor name="HadoopLogsAnalyzer"
  75853. static="false" final="false" visibility="public"
  75854. deprecated="not deprecated">
  75855. </constructor>
  75856. <method name="run" return="int"
  75857. abstract="false" native="false" synchronized="false"
  75858. static="false" final="false" visibility="public"
  75859. deprecated="not deprecated">
  75860. <param name="args" type="java.lang.String[]"/>
  75861. <exception name="IOException" type="java.io.IOException"/>
  75862. </method>
  75863. <method name="main"
  75864. abstract="false" native="false" synchronized="false"
  75865. static="true" final="false" visibility="public"
  75866. deprecated="not deprecated">
  75867. <param name="args" type="java.lang.String[]"/>
  75868. <doc>
  75869. <![CDATA[@param args
  75870. Last arg is the input file. That file can be a directory, in which
  75871. case you get all the files in sorted order. We will decompress
  75872. files whose nmes end in .gz .
  75873. switches: -c collect line types.
  75874. -d debug mode
  75875. -delays print out the delays [interval between job submit time and
  75876. launch time]
  75877. -runtimes print out the job runtimes
  75878. -spreads print out the ratio of 10%ile and 90%ile, of both the
  75879. successful map task attempt run times and the the successful
  75880. reduce task attempt run times
  75881. -tasktimes prints out individual task time distributions
  75882. collects all the line types and prints the first example of each
  75883. one]]>
  75884. </doc>
  75885. </method>
  75886. <doc>
  75887. <![CDATA[This is the main class for rumen log mining functionality.
  75888. It reads a directory of job tracker logs, and computes various information
  75889. about it. See {@code usage()}, below.]]>
  75890. </doc>
  75891. </class>
  75892. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  75893. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  75894. <interface name="HistoryEvent" abstract="true"
  75895. static="false" final="false" visibility="public"
  75896. deprecated="not deprecated">
  75897. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  75898. abstract="false" native="false" synchronized="false"
  75899. static="false" final="false" visibility="public"
  75900. deprecated="not deprecated">
  75901. <doc>
  75902. <![CDATA[Return this event's type.]]>
  75903. </doc>
  75904. </method>
  75905. </interface>
  75906. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  75907. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  75908. <interface name="InputDemuxer" abstract="true"
  75909. static="false" final="false" visibility="public"
  75910. deprecated="not deprecated">
  75911. <implements name="java.io.Closeable"/>
  75912. <method name="bindTo"
  75913. abstract="false" native="false" synchronized="false"
  75914. static="false" final="false" visibility="public"
  75915. deprecated="not deprecated">
  75916. <param name="path" type="org.apache.hadoop.fs.Path"/>
  75917. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75918. <exception name="IOException" type="java.io.IOException"/>
  75919. <doc>
  75920. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  75921. @param path
  75922. The path to the find it should bind to.
  75923. @param conf
  75924. Configuration
  75925. @throws IOException
  75926. Returns true when the binding succeeds. If the file can be read
  75927. but is in the wrong format, returns false. IOException is
  75928. reserved for read errors.]]>
  75929. </doc>
  75930. </method>
  75931. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  75932. abstract="false" native="false" synchronized="false"
  75933. static="false" final="false" visibility="public"
  75934. deprecated="not deprecated">
  75935. <exception name="IOException" type="java.io.IOException"/>
  75936. <doc>
  75937. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  75938. history file or job conf file name. The input object should be closed
  75939. before calling getNext() again. The old input object would be invalid after
  75940. calling getNext() again.
  75941. @return the next <name, input> pair.]]>
  75942. </doc>
  75943. </method>
  75944. <doc>
  75945. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  75946. streams.]]>
  75947. </doc>
  75948. </interface>
  75949. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  75950. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  75951. <class name="JhCounter" extends="java.lang.Object"
  75952. abstract="false"
  75953. static="false" final="false" visibility="public"
  75954. deprecated="not deprecated">
  75955. <constructor name="JhCounter"
  75956. static="false" final="false" visibility="public"
  75957. deprecated="not deprecated">
  75958. </constructor>
  75959. <field name="name" type="java.lang.String"
  75960. transient="false" volatile="false"
  75961. static="false" final="false" visibility="public"
  75962. deprecated="not deprecated">
  75963. </field>
  75964. <field name="displayName" type="java.lang.String"
  75965. transient="false" volatile="false"
  75966. static="false" final="false" visibility="public"
  75967. deprecated="not deprecated">
  75968. </field>
  75969. <field name="value" type="long"
  75970. transient="false" volatile="false"
  75971. static="false" final="false" visibility="public"
  75972. deprecated="not deprecated">
  75973. </field>
  75974. </class>
  75975. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  75976. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  75977. <class name="JhCounterGroup" extends="java.lang.Object"
  75978. abstract="false"
  75979. static="false" final="false" visibility="public"
  75980. deprecated="not deprecated">
  75981. <constructor name="JhCounterGroup"
  75982. static="false" final="false" visibility="public"
  75983. deprecated="not deprecated">
  75984. </constructor>
  75985. <field name="name" type="java.lang.String"
  75986. transient="false" volatile="false"
  75987. static="false" final="false" visibility="public"
  75988. deprecated="not deprecated">
  75989. </field>
  75990. <field name="displayName" type="java.lang.String"
  75991. transient="false" volatile="false"
  75992. static="false" final="false" visibility="public"
  75993. deprecated="not deprecated">
  75994. </field>
  75995. <field name="counts" type="java.util.List"
  75996. transient="false" volatile="false"
  75997. static="false" final="false" visibility="public"
  75998. deprecated="not deprecated">
  75999. </field>
  76000. </class>
  76001. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  76002. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  76003. <class name="JhCounters" extends="java.lang.Object"
  76004. abstract="false"
  76005. static="false" final="false" visibility="public"
  76006. deprecated="not deprecated">
  76007. <field name="name" type="java.lang.String"
  76008. transient="false" volatile="false"
  76009. static="false" final="false" visibility="public"
  76010. deprecated="not deprecated">
  76011. </field>
  76012. <field name="groups" type="java.util.List"
  76013. transient="false" volatile="false"
  76014. static="false" final="false" visibility="public"
  76015. deprecated="not deprecated">
  76016. </field>
  76017. </class>
  76018. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  76019. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  76020. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  76021. abstract="false"
  76022. static="false" final="false" visibility="public"
  76023. deprecated="not deprecated">
  76024. </class>
  76025. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  76026. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  76027. <class name="JobBuilder" extends="java.lang.Object"
  76028. abstract="false"
  76029. static="false" final="false" visibility="public"
  76030. deprecated="not deprecated">
  76031. <constructor name="JobBuilder" type="java.lang.String"
  76032. static="false" final="false" visibility="public"
  76033. deprecated="not deprecated">
  76034. </constructor>
  76035. <method name="getJobID" return="java.lang.String"
  76036. abstract="false" native="false" synchronized="false"
  76037. static="false" final="false" visibility="public"
  76038. deprecated="not deprecated">
  76039. </method>
  76040. <method name="process"
  76041. abstract="false" native="false" synchronized="false"
  76042. static="false" final="false" visibility="public"
  76043. deprecated="not deprecated">
  76044. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76045. <doc>
  76046. <![CDATA[Process one {@link HistoryEvent}
  76047. @param event
  76048. The {@link HistoryEvent} to be processed.]]>
  76049. </doc>
  76050. </method>
  76051. <method name="process"
  76052. abstract="false" native="false" synchronized="false"
  76053. static="false" final="false" visibility="public"
  76054. deprecated="not deprecated">
  76055. <param name="conf" type="java.util.Properties"/>
  76056. <doc>
  76057. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  76058. to be called once. It is okay to process a conf before, during or after the
  76059. events.
  76060. @param conf
  76061. The job conf properties to be added.]]>
  76062. </doc>
  76063. </method>
  76064. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedJob"
  76065. abstract="false" native="false" synchronized="false"
  76066. static="false" final="false" visibility="public"
  76067. deprecated="not deprecated">
  76068. <doc>
  76069. <![CDATA[Request the builder to build the final object. Once called, the
  76070. {@link JobBuilder} would accept no more events or job-conf properties.
  76071. @return Parsed {@link LoggedJob} object.]]>
  76072. </doc>
  76073. </method>
  76074. <doc>
  76075. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  76076. {@link HistoryEvent}s.]]>
  76077. </doc>
  76078. </class>
  76079. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  76080. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  76081. <class name="JobConfigurationParser" extends="java.lang.Object"
  76082. abstract="false"
  76083. static="false" final="false" visibility="public"
  76084. deprecated="not deprecated">
  76085. <constructor name="JobConfigurationParser" type="java.util.List"
  76086. static="false" final="false" visibility="public"
  76087. deprecated="not deprecated">
  76088. <doc>
  76089. <![CDATA[Constructor
  76090. @param interested
  76091. properties we should extract from the job configuration xml.]]>
  76092. </doc>
  76093. </constructor>
  76094. <doc>
  76095. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  76096. extracts various framework specific properties. It parses the file using a
  76097. stream-parser and thus is more memory efficient. [This optimization may be
  76098. postponed for a future release]]]>
  76099. </doc>
  76100. </class>
  76101. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  76102. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  76103. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  76104. abstract="false"
  76105. static="false" final="true" visibility="public"
  76106. deprecated="not deprecated">
  76107. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  76108. abstract="false" native="false" synchronized="false"
  76109. static="true" final="false" visibility="public"
  76110. deprecated="not deprecated">
  76111. </method>
  76112. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  76113. abstract="false" native="false" synchronized="false"
  76114. static="true" final="false" visibility="public"
  76115. deprecated="not deprecated">
  76116. <param name="name" type="java.lang.String"/>
  76117. </method>
  76118. <method name="getCandidates" return="java.lang.String[]"
  76119. abstract="false" native="false" synchronized="false"
  76120. static="false" final="false" visibility="public"
  76121. deprecated="not deprecated">
  76122. </method>
  76123. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  76124. transient="false" volatile="false"
  76125. static="true" final="true" visibility="public"
  76126. deprecated="not deprecated">
  76127. </field>
  76128. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  76129. transient="false" volatile="false"
  76130. static="true" final="true" visibility="public"
  76131. deprecated="not deprecated">
  76132. </field>
  76133. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  76134. transient="false" volatile="false"
  76135. static="true" final="true" visibility="public"
  76136. deprecated="not deprecated">
  76137. </field>
  76138. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  76139. transient="false" volatile="false"
  76140. static="true" final="true" visibility="public"
  76141. deprecated="not deprecated">
  76142. </field>
  76143. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  76144. transient="false" volatile="false"
  76145. static="true" final="true" visibility="public"
  76146. deprecated="not deprecated">
  76147. </field>
  76148. </class>
  76149. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  76150. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  76151. <class name="JobFinishedEvent" extends="java.lang.Object"
  76152. abstract="false"
  76153. static="false" final="false" visibility="public"
  76154. deprecated="not deprecated">
  76155. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76156. <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"
  76157. static="false" final="false" visibility="public"
  76158. deprecated="not deprecated">
  76159. <doc>
  76160. <![CDATA[Create an event to record successful job completion
  76161. @param id Job ID
  76162. @param finishTime Finish time of the job
  76163. @param finishedMaps The number of finished maps
  76164. @param finishedReduces The number of finished reduces
  76165. @param failedMaps The number of failed maps
  76166. @param failedReduces The number of failed reduces
  76167. @param mapCounters Map Counters for the job
  76168. @param reduceCounters Reduce Counters for the job
  76169. @param totalCounters Total Counters for the job]]>
  76170. </doc>
  76171. </constructor>
  76172. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76173. abstract="false" native="false" synchronized="false"
  76174. static="false" final="false" visibility="public"
  76175. deprecated="not deprecated">
  76176. </method>
  76177. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  76178. abstract="false" native="false" synchronized="false"
  76179. static="false" final="false" visibility="public"
  76180. deprecated="not deprecated">
  76181. <doc>
  76182. <![CDATA[Get the Job ID]]>
  76183. </doc>
  76184. </method>
  76185. <method name="getFinishTime" return="long"
  76186. abstract="false" native="false" synchronized="false"
  76187. static="false" final="false" visibility="public"
  76188. deprecated="not deprecated">
  76189. <doc>
  76190. <![CDATA[Get the job finish time]]>
  76191. </doc>
  76192. </method>
  76193. <method name="getFinishedMaps" return="int"
  76194. abstract="false" native="false" synchronized="false"
  76195. static="false" final="false" visibility="public"
  76196. deprecated="not deprecated">
  76197. <doc>
  76198. <![CDATA[Get the number of finished maps for the job]]>
  76199. </doc>
  76200. </method>
  76201. <method name="getFinishedReduces" return="int"
  76202. abstract="false" native="false" synchronized="false"
  76203. static="false" final="false" visibility="public"
  76204. deprecated="not deprecated">
  76205. <doc>
  76206. <![CDATA[Get the number of finished reducers for the job]]>
  76207. </doc>
  76208. </method>
  76209. <method name="getFailedMaps" return="int"
  76210. abstract="false" native="false" synchronized="false"
  76211. static="false" final="false" visibility="public"
  76212. deprecated="not deprecated">
  76213. <doc>
  76214. <![CDATA[Get the number of failed maps for the job]]>
  76215. </doc>
  76216. </method>
  76217. <method name="getFailedReduces" return="int"
  76218. abstract="false" native="false" synchronized="false"
  76219. static="false" final="false" visibility="public"
  76220. deprecated="not deprecated">
  76221. <doc>
  76222. <![CDATA[Get the number of failed reducers for the job]]>
  76223. </doc>
  76224. </method>
  76225. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  76226. abstract="false" native="false" synchronized="false"
  76227. static="false" final="false" visibility="public"
  76228. deprecated="not deprecated">
  76229. <doc>
  76230. <![CDATA[Get the counters for the job]]>
  76231. </doc>
  76232. </method>
  76233. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  76234. abstract="false" native="false" synchronized="false"
  76235. static="false" final="false" visibility="public"
  76236. deprecated="not deprecated">
  76237. <doc>
  76238. <![CDATA[Get the Map counters for the job]]>
  76239. </doc>
  76240. </method>
  76241. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  76242. abstract="false" native="false" synchronized="false"
  76243. static="false" final="false" visibility="public"
  76244. deprecated="not deprecated">
  76245. <doc>
  76246. <![CDATA[Get the reduce counters for the job]]>
  76247. </doc>
  76248. </method>
  76249. <doc>
  76250. <![CDATA[Event to record successful completion of job]]>
  76251. </doc>
  76252. </class>
  76253. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  76254. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  76255. <interface name="JobHistoryParser" abstract="true"
  76256. static="false" final="false" visibility="public"
  76257. deprecated="not deprecated">
  76258. <implements name="java.io.Closeable"/>
  76259. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  76260. abstract="false" native="false" synchronized="false"
  76261. static="false" final="false" visibility="public"
  76262. deprecated="not deprecated">
  76263. <exception name="IOException" type="java.io.IOException"/>
  76264. <doc>
  76265. <![CDATA[Get the next {@link HistoryEvent}
  76266. @return the next {@link HistoryEvent}. If no more events left, return null.
  76267. @throws IOException]]>
  76268. </doc>
  76269. </method>
  76270. <doc>
  76271. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  76272. </doc>
  76273. </interface>
  76274. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  76275. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  76276. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  76277. abstract="false"
  76278. static="false" final="false" visibility="public"
  76279. deprecated="not deprecated">
  76280. <constructor name="JobHistoryParserFactory"
  76281. static="false" final="false" visibility="public"
  76282. deprecated="not deprecated">
  76283. </constructor>
  76284. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  76285. abstract="false" native="false" synchronized="false"
  76286. static="true" final="false" visibility="public"
  76287. deprecated="not deprecated">
  76288. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  76289. <exception name="IOException" type="java.io.IOException"/>
  76290. </method>
  76291. <doc>
  76292. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  76293. determine the version of job history and return a proper parser.]]>
  76294. </doc>
  76295. </class>
  76296. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  76297. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  76298. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  76299. abstract="false"
  76300. static="false" final="false" visibility="public"
  76301. deprecated="not deprecated">
  76302. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76303. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  76304. static="false" final="false" visibility="public"
  76305. deprecated="not deprecated">
  76306. <doc>
  76307. <![CDATA[Create a event to record the submit and launch time of a job
  76308. @param id Job Id
  76309. @param submitTime Submit time of the job
  76310. @param launchTime Launch time of the job]]>
  76311. </doc>
  76312. </constructor>
  76313. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76314. abstract="false" native="false" synchronized="false"
  76315. static="false" final="false" visibility="public"
  76316. deprecated="not deprecated">
  76317. <doc>
  76318. <![CDATA[Get the Job ID]]>
  76319. </doc>
  76320. </method>
  76321. <method name="getSubmitTime" return="long"
  76322. abstract="false" native="false" synchronized="false"
  76323. static="false" final="false" visibility="public"
  76324. deprecated="not deprecated">
  76325. <doc>
  76326. <![CDATA[Get the Job submit time]]>
  76327. </doc>
  76328. </method>
  76329. <method name="getLaunchTime" return="long"
  76330. abstract="false" native="false" synchronized="false"
  76331. static="false" final="false" visibility="public"
  76332. deprecated="not deprecated">
  76333. <doc>
  76334. <![CDATA[Get the Job launch time]]>
  76335. </doc>
  76336. </method>
  76337. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76338. abstract="false" native="false" synchronized="false"
  76339. static="false" final="false" visibility="public"
  76340. deprecated="not deprecated">
  76341. </method>
  76342. <doc>
  76343. <![CDATA[Event to record changes in the submit and launch time of
  76344. a job]]>
  76345. </doc>
  76346. </class>
  76347. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  76348. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  76349. <class name="JobInitedEvent" extends="java.lang.Object"
  76350. abstract="false"
  76351. static="false" final="false" visibility="public"
  76352. deprecated="not deprecated">
  76353. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76354. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  76355. static="false" final="false" visibility="public"
  76356. deprecated="not deprecated">
  76357. <doc>
  76358. <![CDATA[Create an event to record job initialization
  76359. @param id
  76360. @param launchTime
  76361. @param totalMaps
  76362. @param totalReduces
  76363. @param jobStatus]]>
  76364. </doc>
  76365. </constructor>
  76366. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76367. abstract="false" native="false" synchronized="false"
  76368. static="false" final="false" visibility="public"
  76369. deprecated="not deprecated">
  76370. <doc>
  76371. <![CDATA[Get the job ID]]>
  76372. </doc>
  76373. </method>
  76374. <method name="getLaunchTime" return="long"
  76375. abstract="false" native="false" synchronized="false"
  76376. static="false" final="false" visibility="public"
  76377. deprecated="not deprecated">
  76378. <doc>
  76379. <![CDATA[Get the launch time]]>
  76380. </doc>
  76381. </method>
  76382. <method name="getTotalMaps" return="int"
  76383. abstract="false" native="false" synchronized="false"
  76384. static="false" final="false" visibility="public"
  76385. deprecated="not deprecated">
  76386. <doc>
  76387. <![CDATA[Get the total number of maps]]>
  76388. </doc>
  76389. </method>
  76390. <method name="getTotalReduces" return="int"
  76391. abstract="false" native="false" synchronized="false"
  76392. static="false" final="false" visibility="public"
  76393. deprecated="not deprecated">
  76394. <doc>
  76395. <![CDATA[Get the total number of reduces]]>
  76396. </doc>
  76397. </method>
  76398. <method name="getStatus" return="java.lang.String"
  76399. abstract="false" native="false" synchronized="false"
  76400. static="false" final="false" visibility="public"
  76401. deprecated="not deprecated">
  76402. <doc>
  76403. <![CDATA[Get the status]]>
  76404. </doc>
  76405. </method>
  76406. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76407. abstract="false" native="false" synchronized="false"
  76408. static="false" final="false" visibility="public"
  76409. deprecated="not deprecated">
  76410. <doc>
  76411. <![CDATA[Get the event type]]>
  76412. </doc>
  76413. </method>
  76414. <doc>
  76415. <![CDATA[Event to record the initialization of a job]]>
  76416. </doc>
  76417. </class>
  76418. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  76419. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  76420. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  76421. abstract="false"
  76422. static="false" final="false" visibility="public"
  76423. deprecated="not deprecated">
  76424. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76425. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  76426. static="false" final="false" visibility="public"
  76427. deprecated="not deprecated">
  76428. <doc>
  76429. <![CDATA[Generate an event to record changes in Job priority
  76430. @param id Job Id
  76431. @param priority The new priority of the job]]>
  76432. </doc>
  76433. </constructor>
  76434. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76435. abstract="false" native="false" synchronized="false"
  76436. static="false" final="false" visibility="public"
  76437. deprecated="not deprecated">
  76438. <doc>
  76439. <![CDATA[Get the Job ID]]>
  76440. </doc>
  76441. </method>
  76442. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  76443. abstract="false" native="false" synchronized="false"
  76444. static="false" final="false" visibility="public"
  76445. deprecated="not deprecated">
  76446. <doc>
  76447. <![CDATA[Get the job priority]]>
  76448. </doc>
  76449. </method>
  76450. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76451. abstract="false" native="false" synchronized="false"
  76452. static="false" final="false" visibility="public"
  76453. deprecated="not deprecated">
  76454. <doc>
  76455. <![CDATA[Get the event type]]>
  76456. </doc>
  76457. </method>
  76458. <doc>
  76459. <![CDATA[Event to record the change of priority of a job]]>
  76460. </doc>
  76461. </class>
  76462. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  76463. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  76464. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  76465. abstract="false"
  76466. static="false" final="false" visibility="public"
  76467. deprecated="not deprecated">
  76468. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76469. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  76470. static="false" final="false" visibility="public"
  76471. deprecated="not deprecated">
  76472. <doc>
  76473. <![CDATA[Create an event to record the change in the Job Status
  76474. @param id Job ID
  76475. @param jobStatus The new job status]]>
  76476. </doc>
  76477. </constructor>
  76478. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76479. abstract="false" native="false" synchronized="false"
  76480. static="false" final="false" visibility="public"
  76481. deprecated="not deprecated">
  76482. <doc>
  76483. <![CDATA[Get the Job Id]]>
  76484. </doc>
  76485. </method>
  76486. <method name="getStatus" return="java.lang.String"
  76487. abstract="false" native="false" synchronized="false"
  76488. static="false" final="false" visibility="public"
  76489. deprecated="not deprecated">
  76490. <doc>
  76491. <![CDATA[Get the event status]]>
  76492. </doc>
  76493. </method>
  76494. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76495. abstract="false" native="false" synchronized="false"
  76496. static="false" final="false" visibility="public"
  76497. deprecated="not deprecated">
  76498. <doc>
  76499. <![CDATA[Get the event type]]>
  76500. </doc>
  76501. </method>
  76502. <doc>
  76503. <![CDATA[Event to record the change of status for a job]]>
  76504. </doc>
  76505. </class>
  76506. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  76507. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  76508. <interface name="JobStory" abstract="true"
  76509. static="false" final="false" visibility="public"
  76510. deprecated="not deprecated">
  76511. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  76512. abstract="false" native="false" synchronized="false"
  76513. static="false" final="false" visibility="public"
  76514. deprecated="not deprecated">
  76515. <doc>
  76516. <![CDATA[Get the {@link JobConf} for the job.
  76517. @return the <code>JobConf</code> for the job]]>
  76518. </doc>
  76519. </method>
  76520. <method name="getName" return="java.lang.String"
  76521. abstract="false" native="false" synchronized="false"
  76522. static="false" final="false" visibility="public"
  76523. deprecated="not deprecated">
  76524. <doc>
  76525. <![CDATA[Get the job name.
  76526. @return the job name]]>
  76527. </doc>
  76528. </method>
  76529. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  76530. abstract="false" native="false" synchronized="false"
  76531. static="false" final="false" visibility="public"
  76532. deprecated="not deprecated">
  76533. <doc>
  76534. <![CDATA[Get the job ID
  76535. @return the job ID]]>
  76536. </doc>
  76537. </method>
  76538. <method name="getUser" return="java.lang.String"
  76539. abstract="false" native="false" synchronized="false"
  76540. static="false" final="false" visibility="public"
  76541. deprecated="not deprecated">
  76542. <doc>
  76543. <![CDATA[Get the user who ran the job.
  76544. @return the user who ran the job]]>
  76545. </doc>
  76546. </method>
  76547. <method name="getSubmissionTime" return="long"
  76548. abstract="false" native="false" synchronized="false"
  76549. static="false" final="false" visibility="public"
  76550. deprecated="not deprecated">
  76551. <doc>
  76552. <![CDATA[Get the job submission time.
  76553. @return the job submission time]]>
  76554. </doc>
  76555. </method>
  76556. <method name="getNumberMaps" return="int"
  76557. abstract="false" native="false" synchronized="false"
  76558. static="false" final="false" visibility="public"
  76559. deprecated="not deprecated">
  76560. <doc>
  76561. <![CDATA[Get the number of maps in the {@link JobStory}.
  76562. @return the number of maps in the <code>Job</code>]]>
  76563. </doc>
  76564. </method>
  76565. <method name="getNumberReduces" return="int"
  76566. abstract="false" native="false" synchronized="false"
  76567. static="false" final="false" visibility="public"
  76568. deprecated="not deprecated">
  76569. <doc>
  76570. <![CDATA[Get the number of reduce in the {@link JobStory}.
  76571. @return the number of reduces in the <code>Job</code>]]>
  76572. </doc>
  76573. </method>
  76574. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  76575. abstract="false" native="false" synchronized="false"
  76576. static="false" final="false" visibility="public"
  76577. deprecated="not deprecated">
  76578. <doc>
  76579. <![CDATA[Get the input splits for the job.
  76580. @return the input splits for the job]]>
  76581. </doc>
  76582. </method>
  76583. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  76584. abstract="false" native="false" synchronized="false"
  76585. static="false" final="false" visibility="public"
  76586. deprecated="not deprecated">
  76587. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76588. <param name="taskNumber" type="int"/>
  76589. <doc>
  76590. <![CDATA[Get {@link TaskInfo} for a given task.
  76591. @param taskType {@link TaskType} of the task
  76592. @param taskNumber Partition number of the task
  76593. @return the <code>TaskInfo</code> for the given task]]>
  76594. </doc>
  76595. </method>
  76596. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  76597. abstract="false" native="false" synchronized="false"
  76598. static="false" final="false" visibility="public"
  76599. deprecated="not deprecated">
  76600. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76601. <param name="taskNumber" type="int"/>
  76602. <param name="taskAttemptNumber" type="int"/>
  76603. <doc>
  76604. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  76605. impact of locality (e.g. not needed to make scheduling decisions).
  76606. @param taskType {@link TaskType} of the task-attempt
  76607. @param taskNumber Partition number of the task-attempt
  76608. @param taskAttemptNumber Attempt number of the task
  76609. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  76610. </doc>
  76611. </method>
  76612. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  76613. abstract="false" native="false" synchronized="false"
  76614. static="false" final="false" visibility="public"
  76615. deprecated="not deprecated">
  76616. <param name="taskNumber" type="int"/>
  76617. <param name="taskAttemptNumber" type="int"/>
  76618. <param name="locality" type="int"/>
  76619. <doc>
  76620. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  76621. of locality.
  76622. @param taskNumber Partition number of the task-attempt
  76623. @param taskAttemptNumber Attempt number of the task
  76624. @param locality Data locality of the task as scheduled in simulation
  76625. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  76626. </doc>
  76627. </method>
  76628. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  76629. abstract="false" native="false" synchronized="false"
  76630. static="false" final="false" visibility="public"
  76631. deprecated="not deprecated">
  76632. <doc>
  76633. <![CDATA[Get the outcome of the job execution.
  76634. @return The outcome of the job execution.]]>
  76635. </doc>
  76636. </method>
  76637. <method name="getQueueName" return="java.lang.String"
  76638. abstract="false" native="false" synchronized="false"
  76639. static="false" final="false" visibility="public"
  76640. deprecated="not deprecated">
  76641. <doc>
  76642. <![CDATA[Get the queue where the job is submitted.
  76643. @return the queue where the job is submitted.]]>
  76644. </doc>
  76645. </method>
  76646. <doc>
  76647. <![CDATA[{@link JobStory} represents the runtime information available for a
  76648. completed Map-Reduce job.]]>
  76649. </doc>
  76650. </interface>
  76651. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  76652. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  76653. <interface name="JobStoryProducer" abstract="true"
  76654. static="false" final="false" visibility="public"
  76655. deprecated="not deprecated">
  76656. <implements name="java.io.Closeable"/>
  76657. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  76658. abstract="false" native="false" synchronized="false"
  76659. static="false" final="false" visibility="public"
  76660. deprecated="not deprecated">
  76661. <exception name="IOException" type="java.io.IOException"/>
  76662. <doc>
  76663. <![CDATA[Get the next job.
  76664. @return The next job. Or null if no more job is available.
  76665. @throws IOException]]>
  76666. </doc>
  76667. </method>
  76668. <doc>
  76669. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  76670. </doc>
  76671. </interface>
  76672. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  76673. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  76674. <class name="JobSubmittedEvent" extends="java.lang.Object"
  76675. abstract="false"
  76676. static="false" final="false" visibility="public"
  76677. deprecated="not deprecated">
  76678. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76679. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  76680. static="false" final="false" visibility="public"
  76681. deprecated="Use
  76682. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  76683. instead.">
  76684. <doc>
  76685. <![CDATA[@deprecated Use
  76686. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  76687. instead.]]>
  76688. </doc>
  76689. </constructor>
  76690. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  76691. static="false" final="false" visibility="public"
  76692. deprecated="not deprecated">
  76693. <doc>
  76694. <![CDATA[Create an event to record job submission
  76695. @param id The job Id of the job
  76696. @param jobName Name of the job
  76697. @param userName Name of the user who submitted the job
  76698. @param submitTime Time of submission
  76699. @param jobConfPath Path of the Job Configuration file
  76700. @param jobACLs The configured acls for the job.]]>
  76701. </doc>
  76702. </constructor>
  76703. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76704. abstract="false" native="false" synchronized="false"
  76705. static="false" final="false" visibility="public"
  76706. deprecated="not deprecated">
  76707. <doc>
  76708. <![CDATA[Get the Job Id]]>
  76709. </doc>
  76710. </method>
  76711. <method name="getJobName" return="java.lang.String"
  76712. abstract="false" native="false" synchronized="false"
  76713. static="false" final="false" visibility="public"
  76714. deprecated="not deprecated">
  76715. <doc>
  76716. <![CDATA[Get the Job name]]>
  76717. </doc>
  76718. </method>
  76719. <method name="getUserName" return="java.lang.String"
  76720. abstract="false" native="false" synchronized="false"
  76721. static="false" final="false" visibility="public"
  76722. deprecated="not deprecated">
  76723. <doc>
  76724. <![CDATA[Get the user name]]>
  76725. </doc>
  76726. </method>
  76727. <method name="getSubmitTime" return="long"
  76728. abstract="false" native="false" synchronized="false"
  76729. static="false" final="false" visibility="public"
  76730. deprecated="not deprecated">
  76731. <doc>
  76732. <![CDATA[Get the submit time]]>
  76733. </doc>
  76734. </method>
  76735. <method name="getJobConfPath" return="java.lang.String"
  76736. abstract="false" native="false" synchronized="false"
  76737. static="false" final="false" visibility="public"
  76738. deprecated="not deprecated">
  76739. <doc>
  76740. <![CDATA[Get the Path for the Job Configuration file]]>
  76741. </doc>
  76742. </method>
  76743. <method name="getJobAcls" return="java.util.Map"
  76744. abstract="false" native="false" synchronized="false"
  76745. static="false" final="false" visibility="public"
  76746. deprecated="not deprecated">
  76747. <doc>
  76748. <![CDATA[Get the acls configured for the job]]>
  76749. </doc>
  76750. </method>
  76751. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76752. abstract="false" native="false" synchronized="false"
  76753. static="false" final="false" visibility="public"
  76754. deprecated="not deprecated">
  76755. <doc>
  76756. <![CDATA[Get the event type]]>
  76757. </doc>
  76758. </method>
  76759. <doc>
  76760. <![CDATA[Event to record the submission of a job]]>
  76761. </doc>
  76762. </class>
  76763. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  76764. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  76765. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  76766. abstract="false"
  76767. static="false" final="false" visibility="public"
  76768. deprecated="not deprecated">
  76769. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  76770. static="false" final="false" visibility="public"
  76771. deprecated="not deprecated">
  76772. <exception name="IOException" type="java.io.IOException"/>
  76773. <doc>
  76774. <![CDATA[Constructor.
  76775. @param path
  76776. Path to the JSON trace file, possibly compressed.
  76777. @param conf
  76778. @throws IOException]]>
  76779. </doc>
  76780. </constructor>
  76781. <constructor name="JobTraceReader" type="java.io.InputStream"
  76782. static="false" final="false" visibility="public"
  76783. deprecated="not deprecated">
  76784. <exception name="IOException" type="java.io.IOException"/>
  76785. <doc>
  76786. <![CDATA[Constructor.
  76787. @param input
  76788. The input stream for the JSON trace.]]>
  76789. </doc>
  76790. </constructor>
  76791. <doc>
  76792. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  76793. </doc>
  76794. </class>
  76795. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  76796. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  76797. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  76798. abstract="false"
  76799. static="false" final="false" visibility="public"
  76800. deprecated="not deprecated">
  76801. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  76802. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  76803. static="false" final="false" visibility="public"
  76804. deprecated="not deprecated">
  76805. <doc>
  76806. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  76807. @param id Job ID
  76808. @param finishTime Finish time of the job
  76809. @param finishedMaps Number of finished maps
  76810. @param finishedReduces Number of finished reduces
  76811. @param status Status of the job]]>
  76812. </doc>
  76813. </constructor>
  76814. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  76815. abstract="false" native="false" synchronized="false"
  76816. static="false" final="false" visibility="public"
  76817. deprecated="not deprecated">
  76818. <doc>
  76819. <![CDATA[Get the Job ID]]>
  76820. </doc>
  76821. </method>
  76822. <method name="getFinishTime" return="long"
  76823. abstract="false" native="false" synchronized="false"
  76824. static="false" final="false" visibility="public"
  76825. deprecated="not deprecated">
  76826. <doc>
  76827. <![CDATA[Get the job finish time]]>
  76828. </doc>
  76829. </method>
  76830. <method name="getFinishedMaps" return="int"
  76831. abstract="false" native="false" synchronized="false"
  76832. static="false" final="false" visibility="public"
  76833. deprecated="not deprecated">
  76834. <doc>
  76835. <![CDATA[Get the number of finished maps]]>
  76836. </doc>
  76837. </method>
  76838. <method name="getFinishedReduces" return="int"
  76839. abstract="false" native="false" synchronized="false"
  76840. static="false" final="false" visibility="public"
  76841. deprecated="not deprecated">
  76842. <doc>
  76843. <![CDATA[Get the number of finished reduces]]>
  76844. </doc>
  76845. </method>
  76846. <method name="getStatus" return="java.lang.String"
  76847. abstract="false" native="false" synchronized="false"
  76848. static="false" final="false" visibility="public"
  76849. deprecated="not deprecated">
  76850. <doc>
  76851. <![CDATA[Get the status]]>
  76852. </doc>
  76853. </method>
  76854. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  76855. abstract="false" native="false" synchronized="false"
  76856. static="false" final="false" visibility="public"
  76857. deprecated="not deprecated">
  76858. <doc>
  76859. <![CDATA[Get the event type]]>
  76860. </doc>
  76861. </method>
  76862. <doc>
  76863. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  76864. </doc>
  76865. </class>
  76866. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  76867. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  76868. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  76869. abstract="false"
  76870. static="false" final="false" visibility="public"
  76871. deprecated="not deprecated">
  76872. <implements name="java.io.Closeable"/>
  76873. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  76874. static="false" final="false" visibility="public"
  76875. deprecated="not deprecated">
  76876. <exception name="IOException" type="java.io.IOException"/>
  76877. </constructor>
  76878. <method name="write"
  76879. abstract="false" native="false" synchronized="false"
  76880. static="false" final="false" visibility="public"
  76881. deprecated="not deprecated">
  76882. <param name="object" type="java.lang.Object"/>
  76883. <exception name="IOException" type="java.io.IOException"/>
  76884. </method>
  76885. <method name="close"
  76886. abstract="false" native="false" synchronized="false"
  76887. static="false" final="false" visibility="public"
  76888. deprecated="not deprecated">
  76889. <exception name="IOException" type="java.io.IOException"/>
  76890. </method>
  76891. <doc>
  76892. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  76893. @param <T> The type of the objects to be written.]]>
  76894. </doc>
  76895. </class>
  76896. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  76897. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  76898. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  76899. abstract="false"
  76900. static="false" final="false" visibility="public"
  76901. deprecated="not deprecated">
  76902. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76903. <constructor name="LoggedDiscreteCDF"
  76904. static="false" final="false" visibility="public"
  76905. deprecated="not deprecated">
  76906. </constructor>
  76907. <method name="getMinimum" return="long"
  76908. abstract="false" native="false" synchronized="false"
  76909. static="false" final="false" visibility="public"
  76910. deprecated="not deprecated">
  76911. </method>
  76912. <method name="getRankings" return="java.util.List"
  76913. abstract="false" native="false" synchronized="false"
  76914. static="false" final="false" visibility="public"
  76915. deprecated="not deprecated">
  76916. </method>
  76917. <method name="getMaximum" return="long"
  76918. abstract="false" native="false" synchronized="false"
  76919. static="false" final="false" visibility="public"
  76920. deprecated="not deprecated">
  76921. </method>
  76922. <method name="getNumberValues" return="long"
  76923. abstract="false" native="false" synchronized="false"
  76924. static="false" final="false" visibility="public"
  76925. deprecated="not deprecated">
  76926. </method>
  76927. <method name="deepCompare"
  76928. abstract="false" native="false" synchronized="false"
  76929. static="false" final="false" visibility="public"
  76930. deprecated="not deprecated">
  76931. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76932. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76933. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76934. </method>
  76935. <doc>
  76936. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  76937. distribution function, with this class set up to meet the requirements of the
  76938. Jackson JSON parser/generator.
  76939. All of the public methods are simply accessors for the instance variables we
  76940. want to write out in the JSON files.]]>
  76941. </doc>
  76942. </class>
  76943. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  76944. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  76945. <class name="LoggedJob" extends="java.lang.Object"
  76946. abstract="false"
  76947. static="false" final="false" visibility="public"
  76948. deprecated="not deprecated">
  76949. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76950. <method name="setUnknownAttribute"
  76951. abstract="false" native="false" synchronized="false"
  76952. static="false" final="false" visibility="public"
  76953. deprecated="not deprecated">
  76954. <param name="attributeName" type="java.lang.String"/>
  76955. <param name="ignored" type="java.lang.Object"/>
  76956. </method>
  76957. <method name="getUser" return="java.lang.String"
  76958. abstract="false" native="false" synchronized="false"
  76959. static="false" final="false" visibility="public"
  76960. deprecated="not deprecated">
  76961. </method>
  76962. <method name="getJobID" return="java.lang.String"
  76963. abstract="false" native="false" synchronized="false"
  76964. static="false" final="false" visibility="public"
  76965. deprecated="not deprecated">
  76966. </method>
  76967. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  76968. abstract="false" native="false" synchronized="false"
  76969. static="false" final="false" visibility="public"
  76970. deprecated="not deprecated">
  76971. </method>
  76972. <method name="getComputonsPerMapInputByte" return="long"
  76973. abstract="false" native="false" synchronized="false"
  76974. static="false" final="false" visibility="public"
  76975. deprecated="not deprecated">
  76976. </method>
  76977. <method name="getComputonsPerMapOutputByte" return="long"
  76978. abstract="false" native="false" synchronized="false"
  76979. static="false" final="false" visibility="public"
  76980. deprecated="not deprecated">
  76981. </method>
  76982. <method name="getComputonsPerReduceInputByte" return="long"
  76983. abstract="false" native="false" synchronized="false"
  76984. static="false" final="false" visibility="public"
  76985. deprecated="not deprecated">
  76986. </method>
  76987. <method name="getComputonsPerReduceOutputByte" return="long"
  76988. abstract="false" native="false" synchronized="false"
  76989. static="false" final="false" visibility="public"
  76990. deprecated="not deprecated">
  76991. </method>
  76992. <method name="getSubmitTime" return="long"
  76993. abstract="false" native="false" synchronized="false"
  76994. static="false" final="false" visibility="public"
  76995. deprecated="not deprecated">
  76996. </method>
  76997. <method name="getLaunchTime" return="long"
  76998. abstract="false" native="false" synchronized="false"
  76999. static="false" final="false" visibility="public"
  77000. deprecated="not deprecated">
  77001. </method>
  77002. <method name="getFinishTime" return="long"
  77003. abstract="false" native="false" synchronized="false"
  77004. static="false" final="false" visibility="public"
  77005. deprecated="not deprecated">
  77006. </method>
  77007. <method name="getHeapMegabytes" return="int"
  77008. abstract="false" native="false" synchronized="false"
  77009. static="false" final="false" visibility="public"
  77010. deprecated="not deprecated">
  77011. </method>
  77012. <method name="getTotalMaps" return="int"
  77013. abstract="false" native="false" synchronized="false"
  77014. static="false" final="false" visibility="public"
  77015. deprecated="not deprecated">
  77016. </method>
  77017. <method name="getTotalReduces" return="int"
  77018. abstract="false" native="false" synchronized="false"
  77019. static="false" final="false" visibility="public"
  77020. deprecated="not deprecated">
  77021. </method>
  77022. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77023. abstract="false" native="false" synchronized="false"
  77024. static="false" final="false" visibility="public"
  77025. deprecated="not deprecated">
  77026. </method>
  77027. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  77028. abstract="false" native="false" synchronized="false"
  77029. static="false" final="false" visibility="public"
  77030. deprecated="not deprecated">
  77031. </method>
  77032. <method name="getDirectDependantJobs" return="java.util.List"
  77033. abstract="false" native="false" synchronized="false"
  77034. static="false" final="false" visibility="public"
  77035. deprecated="not deprecated">
  77036. </method>
  77037. <method name="getMapTasks" return="java.util.List"
  77038. abstract="false" native="false" synchronized="false"
  77039. static="false" final="false" visibility="public"
  77040. deprecated="not deprecated">
  77041. </method>
  77042. <method name="getReduceTasks" return="java.util.List"
  77043. abstract="false" native="false" synchronized="false"
  77044. static="false" final="false" visibility="public"
  77045. deprecated="not deprecated">
  77046. </method>
  77047. <method name="getOtherTasks" return="java.util.List"
  77048. abstract="false" native="false" synchronized="false"
  77049. static="false" final="false" visibility="public"
  77050. deprecated="not deprecated">
  77051. </method>
  77052. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  77053. abstract="false" native="false" synchronized="false"
  77054. static="false" final="false" visibility="public"
  77055. deprecated="not deprecated">
  77056. </method>
  77057. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  77058. abstract="false" native="false" synchronized="false"
  77059. static="false" final="false" visibility="public"
  77060. deprecated="not deprecated">
  77061. </method>
  77062. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  77063. abstract="false" native="false" synchronized="false"
  77064. static="false" final="false" visibility="public"
  77065. deprecated="not deprecated">
  77066. </method>
  77067. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  77068. abstract="false" native="false" synchronized="false"
  77069. static="false" final="false" visibility="public"
  77070. deprecated="not deprecated">
  77071. </method>
  77072. <method name="getMapperTriesToSucceed" return="double[]"
  77073. abstract="false" native="false" synchronized="false"
  77074. static="false" final="false" visibility="public"
  77075. deprecated="not deprecated">
  77076. </method>
  77077. <method name="getFailedMapperFraction" return="double"
  77078. abstract="false" native="false" synchronized="false"
  77079. static="false" final="false" visibility="public"
  77080. deprecated="not deprecated">
  77081. </method>
  77082. <method name="getRelativeTime" return="long"
  77083. abstract="false" native="false" synchronized="false"
  77084. static="false" final="false" visibility="public"
  77085. deprecated="not deprecated">
  77086. </method>
  77087. <method name="getQueue" return="java.lang.String"
  77088. abstract="false" native="false" synchronized="false"
  77089. static="false" final="false" visibility="public"
  77090. deprecated="not deprecated">
  77091. </method>
  77092. <method name="getJobName" return="java.lang.String"
  77093. abstract="false" native="false" synchronized="false"
  77094. static="false" final="false" visibility="public"
  77095. deprecated="not deprecated">
  77096. </method>
  77097. <method name="getClusterMapMB" return="int"
  77098. abstract="false" native="false" synchronized="false"
  77099. static="false" final="false" visibility="public"
  77100. deprecated="not deprecated">
  77101. </method>
  77102. <method name="getClusterReduceMB" return="int"
  77103. abstract="false" native="false" synchronized="false"
  77104. static="false" final="false" visibility="public"
  77105. deprecated="not deprecated">
  77106. </method>
  77107. <method name="getJobMapMB" return="int"
  77108. abstract="false" native="false" synchronized="false"
  77109. static="false" final="false" visibility="public"
  77110. deprecated="not deprecated">
  77111. </method>
  77112. <method name="getJobReduceMB" return="int"
  77113. abstract="false" native="false" synchronized="false"
  77114. static="false" final="false" visibility="public"
  77115. deprecated="not deprecated">
  77116. </method>
  77117. <method name="deepCompare"
  77118. abstract="false" native="false" synchronized="false"
  77119. static="false" final="false" visibility="public"
  77120. deprecated="not deprecated">
  77121. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77122. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  77123. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  77124. </method>
  77125. <doc>
  77126. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  77127. details of this class set up to meet the requirements of the Jackson JSON
  77128. parser/generator.
  77129. All of the public methods are simply accessors for the instance variables we
  77130. want to write out in the JSON files.]]>
  77131. </doc>
  77132. </class>
  77133. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  77134. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  77135. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  77136. abstract="false"
  77137. static="true" final="true" visibility="public"
  77138. deprecated="not deprecated">
  77139. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  77140. abstract="false" native="false" synchronized="false"
  77141. static="true" final="false" visibility="public"
  77142. deprecated="not deprecated">
  77143. </method>
  77144. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  77145. abstract="false" native="false" synchronized="false"
  77146. static="true" final="false" visibility="public"
  77147. deprecated="not deprecated">
  77148. <param name="name" type="java.lang.String"/>
  77149. </method>
  77150. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  77151. transient="false" volatile="false"
  77152. static="true" final="true" visibility="public"
  77153. deprecated="not deprecated">
  77154. </field>
  77155. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  77156. transient="false" volatile="false"
  77157. static="true" final="true" visibility="public"
  77158. deprecated="not deprecated">
  77159. </field>
  77160. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  77161. transient="false" volatile="false"
  77162. static="true" final="true" visibility="public"
  77163. deprecated="not deprecated">
  77164. </field>
  77165. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  77166. transient="false" volatile="false"
  77167. static="true" final="true" visibility="public"
  77168. deprecated="not deprecated">
  77169. </field>
  77170. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  77171. transient="false" volatile="false"
  77172. static="true" final="true" visibility="public"
  77173. deprecated="not deprecated">
  77174. </field>
  77175. </class>
  77176. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  77177. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  77178. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  77179. abstract="false"
  77180. static="true" final="true" visibility="public"
  77181. deprecated="not deprecated">
  77182. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  77183. abstract="false" native="false" synchronized="false"
  77184. static="true" final="false" visibility="public"
  77185. deprecated="not deprecated">
  77186. </method>
  77187. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  77188. abstract="false" native="false" synchronized="false"
  77189. static="true" final="false" visibility="public"
  77190. deprecated="not deprecated">
  77191. <param name="name" type="java.lang.String"/>
  77192. </method>
  77193. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  77194. transient="false" volatile="false"
  77195. static="true" final="true" visibility="public"
  77196. deprecated="not deprecated">
  77197. </field>
  77198. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  77199. transient="false" volatile="false"
  77200. static="true" final="true" visibility="public"
  77201. deprecated="not deprecated">
  77202. </field>
  77203. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  77204. transient="false" volatile="false"
  77205. static="true" final="true" visibility="public"
  77206. deprecated="not deprecated">
  77207. </field>
  77208. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  77209. transient="false" volatile="false"
  77210. static="true" final="true" visibility="public"
  77211. deprecated="not deprecated">
  77212. </field>
  77213. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  77214. transient="false" volatile="false"
  77215. static="true" final="true" visibility="public"
  77216. deprecated="not deprecated">
  77217. </field>
  77218. </class>
  77219. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  77220. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  77221. <class name="LoggedLocation" extends="java.lang.Object"
  77222. abstract="false"
  77223. static="false" final="false" visibility="public"
  77224. deprecated="not deprecated">
  77225. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77226. <constructor name="LoggedLocation"
  77227. static="false" final="false" visibility="public"
  77228. deprecated="not deprecated">
  77229. </constructor>
  77230. <method name="getLayers" return="java.util.List"
  77231. abstract="false" native="false" synchronized="false"
  77232. static="false" final="false" visibility="public"
  77233. deprecated="not deprecated">
  77234. </method>
  77235. <method name="setUnknownAttribute"
  77236. abstract="false" native="false" synchronized="false"
  77237. static="false" final="false" visibility="public"
  77238. deprecated="not deprecated">
  77239. <param name="attributeName" type="java.lang.String"/>
  77240. <param name="ignored" type="java.lang.Object"/>
  77241. </method>
  77242. <method name="deepCompare"
  77243. abstract="false" native="false" synchronized="false"
  77244. static="false" final="false" visibility="public"
  77245. deprecated="not deprecated">
  77246. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77247. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  77248. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  77249. </method>
  77250. <doc>
  77251. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  77252. network, represented as a series of membership names, broadest first.
  77253. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  77254. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  77255. would be represented with a ArrayList of two layers, with two {@link String}
  77256. s being {@code "rack1"} and {@code "node1"}.
  77257. The details of this class are set up to meet the requirements of the Jackson
  77258. JSON parser/generator.
  77259. All of the public methods are simply accessors for the instance variables we
  77260. want to write out in the JSON files.]]>
  77261. </doc>
  77262. </class>
  77263. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  77264. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  77265. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  77266. abstract="false"
  77267. static="false" final="false" visibility="public"
  77268. deprecated="not deprecated">
  77269. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77270. <constructor name="LoggedNetworkTopology"
  77271. static="false" final="false" visibility="public"
  77272. deprecated="not deprecated">
  77273. </constructor>
  77274. <method name="setUnknownAttribute"
  77275. abstract="false" native="false" synchronized="false"
  77276. static="false" final="false" visibility="public"
  77277. deprecated="not deprecated">
  77278. <param name="attributeName" type="java.lang.String"/>
  77279. <param name="ignored" type="java.lang.Object"/>
  77280. </method>
  77281. <method name="getName" return="java.lang.String"
  77282. abstract="false" native="false" synchronized="false"
  77283. static="false" final="false" visibility="public"
  77284. deprecated="not deprecated">
  77285. </method>
  77286. <method name="getChildren" return="java.util.List"
  77287. abstract="false" native="false" synchronized="false"
  77288. static="false" final="false" visibility="public"
  77289. deprecated="not deprecated">
  77290. </method>
  77291. <method name="deepCompare"
  77292. abstract="false" native="false" synchronized="false"
  77293. static="false" final="false" visibility="public"
  77294. deprecated="not deprecated">
  77295. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77296. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  77297. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  77298. </method>
  77299. <doc>
  77300. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  77301. hierarchy of hosts. The current version requires the tree to have all leaves
  77302. at the same level.
  77303. All of the public methods are simply accessors for the instance variables we
  77304. want to write out in the JSON files.]]>
  77305. </doc>
  77306. </class>
  77307. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  77308. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  77309. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  77310. abstract="false"
  77311. static="false" final="false" visibility="public"
  77312. deprecated="not deprecated">
  77313. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77314. <constructor name="LoggedSingleRelativeRanking"
  77315. static="false" final="false" visibility="public"
  77316. deprecated="not deprecated">
  77317. </constructor>
  77318. <method name="setUnknownAttribute"
  77319. abstract="false" native="false" synchronized="false"
  77320. static="false" final="false" visibility="public"
  77321. deprecated="not deprecated">
  77322. <param name="attributeName" type="java.lang.String"/>
  77323. <param name="ignored" type="java.lang.Object"/>
  77324. </method>
  77325. <method name="getRelativeRanking" return="double"
  77326. abstract="false" native="false" synchronized="false"
  77327. static="false" final="false" visibility="public"
  77328. deprecated="not deprecated">
  77329. </method>
  77330. <method name="getDatum" return="long"
  77331. abstract="false" native="false" synchronized="false"
  77332. static="false" final="false" visibility="public"
  77333. deprecated="not deprecated">
  77334. </method>
  77335. <method name="deepCompare"
  77336. abstract="false" native="false" synchronized="false"
  77337. static="false" final="false" visibility="public"
  77338. deprecated="not deprecated">
  77339. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77340. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  77341. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  77342. </method>
  77343. <doc>
  77344. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  77345. single point in a discrete CDF.
  77346. All of the public methods are simply accessors for the instance variables we
  77347. want to write out in the JSON files.]]>
  77348. </doc>
  77349. </class>
  77350. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  77351. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  77352. <class name="LoggedTask" extends="java.lang.Object"
  77353. abstract="false"
  77354. static="false" final="false" visibility="public"
  77355. deprecated="not deprecated">
  77356. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77357. <method name="setUnknownAttribute"
  77358. abstract="false" native="false" synchronized="false"
  77359. static="false" final="false" visibility="public"
  77360. deprecated="not deprecated">
  77361. <param name="attributeName" type="java.lang.String"/>
  77362. <param name="ignored" type="java.lang.Object"/>
  77363. </method>
  77364. <method name="getInputBytes" return="long"
  77365. abstract="false" native="false" synchronized="false"
  77366. static="false" final="false" visibility="public"
  77367. deprecated="not deprecated">
  77368. </method>
  77369. <method name="getInputRecords" return="long"
  77370. abstract="false" native="false" synchronized="false"
  77371. static="false" final="false" visibility="public"
  77372. deprecated="not deprecated">
  77373. </method>
  77374. <method name="getOutputBytes" return="long"
  77375. abstract="false" native="false" synchronized="false"
  77376. static="false" final="false" visibility="public"
  77377. deprecated="not deprecated">
  77378. </method>
  77379. <method name="getOutputRecords" return="long"
  77380. abstract="false" native="false" synchronized="false"
  77381. static="false" final="false" visibility="public"
  77382. deprecated="not deprecated">
  77383. </method>
  77384. <method name="getTaskID" 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="getStartTime" return="long"
  77390. abstract="false" native="false" synchronized="false"
  77391. static="false" final="false" visibility="public"
  77392. deprecated="not deprecated">
  77393. </method>
  77394. <method name="getFinishTime" return="long"
  77395. abstract="false" native="false" synchronized="false"
  77396. static="false" final="false" visibility="public"
  77397. deprecated="not deprecated">
  77398. </method>
  77399. <method name="getAttempts" return="java.util.List"
  77400. abstract="false" native="false" synchronized="false"
  77401. static="false" final="false" visibility="public"
  77402. deprecated="not deprecated">
  77403. </method>
  77404. <method name="getPreferredLocations" return="java.util.List"
  77405. abstract="false" native="false" synchronized="false"
  77406. static="false" final="false" visibility="public"
  77407. deprecated="not deprecated">
  77408. </method>
  77409. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77410. abstract="false" native="false" synchronized="false"
  77411. static="false" final="false" visibility="public"
  77412. deprecated="not deprecated">
  77413. </method>
  77414. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77415. abstract="false" native="false" synchronized="false"
  77416. static="false" final="false" visibility="public"
  77417. deprecated="not deprecated">
  77418. </method>
  77419. <method name="incorporateCounters"
  77420. abstract="false" native="false" synchronized="false"
  77421. static="false" final="false" visibility="public"
  77422. deprecated="not deprecated">
  77423. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  77424. </method>
  77425. <method name="deepCompare"
  77426. abstract="false" native="false" synchronized="false"
  77427. static="false" final="false" visibility="public"
  77428. deprecated="not deprecated">
  77429. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77430. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  77431. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  77432. </method>
  77433. <doc>
  77434. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  77435. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  77436. and its runtime.
  77437. All of the public methods are simply accessors for the instance variables we
  77438. want to write out in the JSON files.]]>
  77439. </doc>
  77440. </class>
  77441. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  77442. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  77443. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  77444. abstract="false"
  77445. static="false" final="false" visibility="public"
  77446. deprecated="not deprecated">
  77447. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77448. <method name="setUnknownAttribute"
  77449. abstract="false" native="false" synchronized="false"
  77450. static="false" final="false" visibility="public"
  77451. deprecated="not deprecated">
  77452. <param name="attributeName" type="java.lang.String"/>
  77453. <param name="ignored" type="java.lang.Object"/>
  77454. </method>
  77455. <method name="getShuffleFinished" return="long"
  77456. abstract="false" native="false" synchronized="false"
  77457. static="false" final="false" visibility="public"
  77458. deprecated="not deprecated">
  77459. </method>
  77460. <method name="getSortFinished" return="long"
  77461. abstract="false" native="false" synchronized="false"
  77462. static="false" final="false" visibility="public"
  77463. deprecated="not deprecated">
  77464. </method>
  77465. <method name="getAttemptID" return="java.lang.String"
  77466. abstract="false" native="false" synchronized="false"
  77467. static="false" final="false" visibility="public"
  77468. deprecated="not deprecated">
  77469. </method>
  77470. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77471. abstract="false" native="false" synchronized="false"
  77472. static="false" final="false" visibility="public"
  77473. deprecated="not deprecated">
  77474. </method>
  77475. <method name="getStartTime" return="long"
  77476. abstract="false" native="false" synchronized="false"
  77477. static="false" final="false" visibility="public"
  77478. deprecated="not deprecated">
  77479. </method>
  77480. <method name="getFinishTime" return="long"
  77481. abstract="false" native="false" synchronized="false"
  77482. static="false" final="false" visibility="public"
  77483. deprecated="not deprecated">
  77484. </method>
  77485. <method name="getHostName" return="java.lang.String"
  77486. abstract="false" native="false" synchronized="false"
  77487. static="false" final="false" visibility="public"
  77488. deprecated="not deprecated">
  77489. </method>
  77490. <method name="getHdfsBytesRead" return="long"
  77491. abstract="false" native="false" synchronized="false"
  77492. static="false" final="false" visibility="public"
  77493. deprecated="not deprecated">
  77494. </method>
  77495. <method name="getHdfsBytesWritten" return="long"
  77496. abstract="false" native="false" synchronized="false"
  77497. static="false" final="false" visibility="public"
  77498. deprecated="not deprecated">
  77499. </method>
  77500. <method name="getFileBytesRead" return="long"
  77501. abstract="false" native="false" synchronized="false"
  77502. static="false" final="false" visibility="public"
  77503. deprecated="not deprecated">
  77504. </method>
  77505. <method name="getFileBytesWritten" return="long"
  77506. abstract="false" native="false" synchronized="false"
  77507. static="false" final="false" visibility="public"
  77508. deprecated="not deprecated">
  77509. </method>
  77510. <method name="getMapInputRecords" return="long"
  77511. abstract="false" native="false" synchronized="false"
  77512. static="false" final="false" visibility="public"
  77513. deprecated="not deprecated">
  77514. </method>
  77515. <method name="getMapOutputBytes" return="long"
  77516. abstract="false" native="false" synchronized="false"
  77517. static="false" final="false" visibility="public"
  77518. deprecated="not deprecated">
  77519. </method>
  77520. <method name="getMapOutputRecords" return="long"
  77521. abstract="false" native="false" synchronized="false"
  77522. static="false" final="false" visibility="public"
  77523. deprecated="not deprecated">
  77524. </method>
  77525. <method name="getCombineInputRecords" return="long"
  77526. abstract="false" native="false" synchronized="false"
  77527. static="false" final="false" visibility="public"
  77528. deprecated="not deprecated">
  77529. </method>
  77530. <method name="getReduceInputGroups" return="long"
  77531. abstract="false" native="false" synchronized="false"
  77532. static="false" final="false" visibility="public"
  77533. deprecated="not deprecated">
  77534. </method>
  77535. <method name="getReduceInputRecords" return="long"
  77536. abstract="false" native="false" synchronized="false"
  77537. static="false" final="false" visibility="public"
  77538. deprecated="not deprecated">
  77539. </method>
  77540. <method name="getReduceShuffleBytes" return="long"
  77541. abstract="false" native="false" synchronized="false"
  77542. static="false" final="false" visibility="public"
  77543. deprecated="not deprecated">
  77544. </method>
  77545. <method name="getReduceOutputRecords" return="long"
  77546. abstract="false" native="false" synchronized="false"
  77547. static="false" final="false" visibility="public"
  77548. deprecated="not deprecated">
  77549. </method>
  77550. <method name="getSpilledRecords" return="long"
  77551. abstract="false" native="false" synchronized="false"
  77552. static="false" final="false" visibility="public"
  77553. deprecated="not deprecated">
  77554. </method>
  77555. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  77556. abstract="false" native="false" synchronized="false"
  77557. static="false" final="false" visibility="public"
  77558. deprecated="not deprecated">
  77559. </method>
  77560. <method name="getMapInputBytes" return="long"
  77561. abstract="false" native="false" synchronized="false"
  77562. static="false" final="false" visibility="public"
  77563. deprecated="not deprecated">
  77564. </method>
  77565. <method name="incorporateCounters"
  77566. abstract="false" native="false" synchronized="false"
  77567. static="false" final="false" visibility="public"
  77568. deprecated="not deprecated">
  77569. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  77570. </method>
  77571. <method name="deepCompare"
  77572. abstract="false" native="false" synchronized="false"
  77573. static="false" final="false" visibility="public"
  77574. deprecated="not deprecated">
  77575. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  77576. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  77577. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  77578. </method>
  77579. <doc>
  77580. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  77581. hadoop job. Note that a task can have several attempts.
  77582. All of the public methods are simply accessors for the instance variables we
  77583. want to write out in the JSON files.]]>
  77584. </doc>
  77585. </class>
  77586. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  77587. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  77588. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  77589. abstract="false"
  77590. static="false" final="true" visibility="public"
  77591. deprecated="not deprecated">
  77592. <method name="equals" return="boolean"
  77593. abstract="false" native="false" synchronized="false"
  77594. static="false" final="false" visibility="public"
  77595. deprecated="not deprecated">
  77596. <param name="obj" type="java.lang.Object"/>
  77597. </method>
  77598. <method name="hashCode" return="int"
  77599. abstract="false" native="false" synchronized="false"
  77600. static="false" final="false" visibility="public"
  77601. deprecated="not deprecated">
  77602. </method>
  77603. <method name="getMemory" return="long"
  77604. abstract="false" native="false" synchronized="false"
  77605. static="false" final="false" visibility="public"
  77606. deprecated="not deprecated">
  77607. <doc>
  77608. <![CDATA[Get the available physical RAM of the node.
  77609. @return The available physical RAM of the node, in KB.]]>
  77610. </doc>
  77611. </method>
  77612. <method name="getMapSlots" return="int"
  77613. abstract="false" native="false" synchronized="false"
  77614. static="false" final="false" visibility="public"
  77615. deprecated="not deprecated">
  77616. <doc>
  77617. <![CDATA[Get the number of map slots of the node.
  77618. @return The number of map slots of the node.]]>
  77619. </doc>
  77620. </method>
  77621. <method name="getReduceSlots" return="int"
  77622. abstract="false" native="false" synchronized="false"
  77623. static="false" final="false" visibility="public"
  77624. deprecated="not deprecated">
  77625. <doc>
  77626. <![CDATA[Get the number of reduce slots of the node.
  77627. @return The number of reduce slots fo the node.]]>
  77628. </doc>
  77629. </method>
  77630. <method name="getMemoryPerMapSlot" return="long"
  77631. abstract="false" native="false" synchronized="false"
  77632. static="false" final="false" visibility="public"
  77633. deprecated="not deprecated">
  77634. <doc>
  77635. <![CDATA[Get the amount of RAM reserved for each map slot.
  77636. @return the amount of RAM reserved for each map slot, in KB.]]>
  77637. </doc>
  77638. </method>
  77639. <method name="getMemoryPerReduceSlot" return="long"
  77640. abstract="false" native="false" synchronized="false"
  77641. static="false" final="false" visibility="public"
  77642. deprecated="not deprecated">
  77643. <doc>
  77644. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  77645. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  77646. </doc>
  77647. </method>
  77648. <method name="getNumCores" return="int"
  77649. abstract="false" native="false" synchronized="false"
  77650. static="false" final="false" visibility="public"
  77651. deprecated="not deprecated">
  77652. <doc>
  77653. <![CDATA[Get the number of cores of the node.
  77654. @return the number of cores of the node.]]>
  77655. </doc>
  77656. </method>
  77657. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  77658. abstract="false" native="false" synchronized="false"
  77659. static="false" final="false" visibility="public"
  77660. deprecated="not deprecated">
  77661. <doc>
  77662. <![CDATA[Get the rack node that the machine belongs to.
  77663. @return The rack node that the machine belongs to. Returns null if the
  77664. machine does not belong to any rack.]]>
  77665. </doc>
  77666. </method>
  77667. <method name="addChild" return="boolean"
  77668. abstract="false" native="false" synchronized="true"
  77669. static="false" final="false" visibility="public"
  77670. deprecated="not deprecated">
  77671. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  77672. </method>
  77673. <doc>
  77674. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  77675. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  77676. </doc>
  77677. </class>
  77678. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  77679. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  77680. <class name="MachineNode.Builder" extends="java.lang.Object"
  77681. abstract="false"
  77682. static="true" final="true" visibility="public"
  77683. deprecated="not deprecated">
  77684. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  77685. static="false" final="false" visibility="public"
  77686. deprecated="not deprecated">
  77687. <doc>
  77688. <![CDATA[Start building a new NodeInfo object.
  77689. @param name
  77690. Unique name of the node. Typically the fully qualified domain
  77691. name.]]>
  77692. </doc>
  77693. </constructor>
  77694. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77695. abstract="false" native="false" synchronized="false"
  77696. static="false" final="false" visibility="public"
  77697. deprecated="not deprecated">
  77698. <param name="memory" type="long"/>
  77699. <doc>
  77700. <![CDATA[Set the physical memory of the node.
  77701. @param memory Available RAM in KB.]]>
  77702. </doc>
  77703. </method>
  77704. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77705. abstract="false" native="false" synchronized="false"
  77706. static="false" final="false" visibility="public"
  77707. deprecated="not deprecated">
  77708. <param name="mapSlots" type="int"/>
  77709. <doc>
  77710. <![CDATA[Set the number of map slot for the node.
  77711. @param mapSlots The number of map slots for the node.]]>
  77712. </doc>
  77713. </method>
  77714. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77715. abstract="false" native="false" synchronized="false"
  77716. static="false" final="false" visibility="public"
  77717. deprecated="not deprecated">
  77718. <param name="reduceSlots" type="int"/>
  77719. <doc>
  77720. <![CDATA[Set the number of reduce slot for the node.
  77721. @param reduceSlots The number of reduce slots for the node.]]>
  77722. </doc>
  77723. </method>
  77724. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77725. abstract="false" native="false" synchronized="false"
  77726. static="false" final="false" visibility="public"
  77727. deprecated="not deprecated">
  77728. <param name="memoryPerMapSlot" type="long"/>
  77729. <doc>
  77730. <![CDATA[Set the amount of RAM reserved for each map slot.
  77731. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  77732. </doc>
  77733. </method>
  77734. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77735. abstract="false" native="false" synchronized="false"
  77736. static="false" final="false" visibility="public"
  77737. deprecated="not deprecated">
  77738. <param name="memoryPerReduceSlot" type="long"/>
  77739. <doc>
  77740. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  77741. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  77742. </doc>
  77743. </method>
  77744. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77745. abstract="false" native="false" synchronized="false"
  77746. static="false" final="false" visibility="public"
  77747. deprecated="not deprecated">
  77748. <param name="numCores" type="int"/>
  77749. <doc>
  77750. <![CDATA[Set the number of cores for the node.
  77751. @param numCores Number of cores for the node.]]>
  77752. </doc>
  77753. </method>
  77754. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  77755. abstract="false" native="false" synchronized="false"
  77756. static="false" final="false" visibility="public"
  77757. deprecated="not deprecated">
  77758. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  77759. <doc>
  77760. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  77761. @param ref The reference {@link MachineNode} object.]]>
  77762. </doc>
  77763. </method>
  77764. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  77765. abstract="false" native="false" synchronized="false"
  77766. static="false" final="false" visibility="public"
  77767. deprecated="not deprecated">
  77768. <doc>
  77769. <![CDATA[Build the {@link MachineNode} object.
  77770. @return The {@link MachineNode} object being built.]]>
  77771. </doc>
  77772. </method>
  77773. <doc>
  77774. <![CDATA[Builder for a NodeInfo object]]>
  77775. </doc>
  77776. </class>
  77777. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  77778. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  77779. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  77780. abstract="false"
  77781. static="false" final="false" visibility="public"
  77782. deprecated="not deprecated">
  77783. <constructor name="MapAttempt20LineHistoryEventEmitter"
  77784. static="false" final="false" visibility="protected"
  77785. deprecated="not deprecated">
  77786. </constructor>
  77787. </class>
  77788. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  77789. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  77790. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  77791. abstract="false"
  77792. static="false" final="false" visibility="public"
  77793. deprecated="not deprecated">
  77794. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77795. <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"
  77796. static="false" final="false" visibility="public"
  77797. deprecated="not deprecated">
  77798. <doc>
  77799. <![CDATA[Create an event for successful completion of map attempts
  77800. @param id Task Attempt ID
  77801. @param taskType Type of the task
  77802. @param taskStatus Status of the task
  77803. @param mapFinishTime Finish time of the map phase
  77804. @param finishTime Finish time of the attempt
  77805. @param hostname Name of the host where the map executed
  77806. @param state State string for the attempt
  77807. @param counters Counters for the attempt]]>
  77808. </doc>
  77809. </constructor>
  77810. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  77811. abstract="false" native="false" synchronized="false"
  77812. static="false" final="false" visibility="public"
  77813. deprecated="not deprecated">
  77814. <doc>
  77815. <![CDATA[Get the task ID]]>
  77816. </doc>
  77817. </method>
  77818. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  77819. abstract="false" native="false" synchronized="false"
  77820. static="false" final="false" visibility="public"
  77821. deprecated="not deprecated">
  77822. <doc>
  77823. <![CDATA[Get the attempt id]]>
  77824. </doc>
  77825. </method>
  77826. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  77827. abstract="false" native="false" synchronized="false"
  77828. static="false" final="false" visibility="public"
  77829. deprecated="not deprecated">
  77830. <doc>
  77831. <![CDATA[Get the task type]]>
  77832. </doc>
  77833. </method>
  77834. <method name="getTaskStatus" return="java.lang.String"
  77835. abstract="false" native="false" synchronized="false"
  77836. static="false" final="false" visibility="public"
  77837. deprecated="not deprecated">
  77838. <doc>
  77839. <![CDATA[Get the task status]]>
  77840. </doc>
  77841. </method>
  77842. <method name="getMapFinishTime" return="long"
  77843. abstract="false" native="false" synchronized="false"
  77844. static="false" final="false" visibility="public"
  77845. deprecated="not deprecated">
  77846. <doc>
  77847. <![CDATA[Get the map phase finish time]]>
  77848. </doc>
  77849. </method>
  77850. <method name="getFinishTime" return="long"
  77851. abstract="false" native="false" synchronized="false"
  77852. static="false" final="false" visibility="public"
  77853. deprecated="not deprecated">
  77854. <doc>
  77855. <![CDATA[Get the attempt finish time]]>
  77856. </doc>
  77857. </method>
  77858. <method name="getHostname" return="java.lang.String"
  77859. abstract="false" native="false" synchronized="false"
  77860. static="false" final="false" visibility="public"
  77861. deprecated="not deprecated">
  77862. <doc>
  77863. <![CDATA[Get the host name]]>
  77864. </doc>
  77865. </method>
  77866. <method name="getState" return="java.lang.String"
  77867. abstract="false" native="false" synchronized="false"
  77868. static="false" final="false" visibility="public"
  77869. deprecated="not deprecated">
  77870. <doc>
  77871. <![CDATA[Get the state string]]>
  77872. </doc>
  77873. </method>
  77874. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  77875. abstract="false" native="false" synchronized="false"
  77876. static="false" final="false" visibility="public"
  77877. deprecated="not deprecated">
  77878. <doc>
  77879. <![CDATA[Get the counters]]>
  77880. </doc>
  77881. </method>
  77882. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77883. abstract="false" native="false" synchronized="false"
  77884. static="false" final="false" visibility="public"
  77885. deprecated="not deprecated">
  77886. <doc>
  77887. <![CDATA[Get the event type]]>
  77888. </doc>
  77889. </method>
  77890. <doc>
  77891. <![CDATA[Event to record successful completion of a map attempt]]>
  77892. </doc>
  77893. </class>
  77894. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  77895. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  77896. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  77897. abstract="false"
  77898. static="false" final="false" visibility="public"
  77899. deprecated="not deprecated">
  77900. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  77901. static="false" final="false" visibility="public"
  77902. deprecated="not deprecated">
  77903. </constructor>
  77904. <method name="getRuntime" return="long"
  77905. abstract="false" native="false" synchronized="false"
  77906. static="false" final="false" visibility="public"
  77907. deprecated="not deprecated">
  77908. </method>
  77909. <method name="getMapRuntime" return="long"
  77910. abstract="false" native="false" synchronized="false"
  77911. static="false" final="false" visibility="public"
  77912. deprecated="not deprecated">
  77913. <doc>
  77914. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  77915. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  77916. </doc>
  77917. </method>
  77918. <doc>
  77919. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  77920. map task attempt.]]>
  77921. </doc>
  77922. </class>
  77923. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  77924. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  77925. <class name="Node" extends="java.lang.Object"
  77926. abstract="false"
  77927. static="false" final="false" visibility="public"
  77928. deprecated="not deprecated">
  77929. <implements name="java.lang.Comparable"/>
  77930. <constructor name="Node" type="java.lang.String, int"
  77931. static="false" final="false" visibility="public"
  77932. deprecated="not deprecated">
  77933. <doc>
  77934. <![CDATA[@param name
  77935. A unique name to identify a node in the cluster.
  77936. @param level
  77937. The level of the node in the cluster]]>
  77938. </doc>
  77939. </constructor>
  77940. <method name="getName" return="java.lang.String"
  77941. abstract="false" native="false" synchronized="false"
  77942. static="false" final="false" visibility="public"
  77943. deprecated="not deprecated">
  77944. <doc>
  77945. <![CDATA[Get the name of the node.
  77946. @return The name of the node.]]>
  77947. </doc>
  77948. </method>
  77949. <method name="getLevel" return="int"
  77950. abstract="false" native="false" synchronized="false"
  77951. static="false" final="false" visibility="public"
  77952. deprecated="not deprecated">
  77953. <doc>
  77954. <![CDATA[Get the level of the node.
  77955. @return The level of the node.]]>
  77956. </doc>
  77957. </method>
  77958. <method name="addChild" return="boolean"
  77959. abstract="false" native="false" synchronized="true"
  77960. static="false" final="false" visibility="public"
  77961. deprecated="not deprecated">
  77962. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  77963. <doc>
  77964. <![CDATA[Add a child node to this node.
  77965. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  77966. @return Boolean indicating whether the node is successfully added.]]>
  77967. </doc>
  77968. </method>
  77969. <method name="hasChildren" return="boolean"
  77970. abstract="false" native="false" synchronized="true"
  77971. static="false" final="false" visibility="public"
  77972. deprecated="not deprecated">
  77973. <doc>
  77974. <![CDATA[Does this node have any children?
  77975. @return Boolean indicate whether this node has any children.]]>
  77976. </doc>
  77977. </method>
  77978. <method name="getChildren" return="java.util.Set"
  77979. abstract="false" native="false" synchronized="true"
  77980. static="false" final="false" visibility="public"
  77981. deprecated="not deprecated">
  77982. <doc>
  77983. <![CDATA[Get the children of this node.
  77984. @return The children of this node. If no child, an empty set will be
  77985. returned. The returned set is read-only.]]>
  77986. </doc>
  77987. </method>
  77988. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  77989. abstract="false" native="false" synchronized="false"
  77990. static="false" final="false" visibility="public"
  77991. deprecated="not deprecated">
  77992. <doc>
  77993. <![CDATA[Get the parent node.
  77994. @return the parent node. If root node, return null.]]>
  77995. </doc>
  77996. </method>
  77997. <method name="hashCode" return="int"
  77998. abstract="false" native="false" synchronized="false"
  77999. static="false" final="false" visibility="public"
  78000. deprecated="not deprecated">
  78001. </method>
  78002. <method name="equals" return="boolean"
  78003. abstract="false" native="false" synchronized="false"
  78004. static="false" final="false" visibility="public"
  78005. deprecated="not deprecated">
  78006. <param name="obj" type="java.lang.Object"/>
  78007. </method>
  78008. <method name="toString" return="java.lang.String"
  78009. abstract="false" native="false" synchronized="false"
  78010. static="false" final="false" visibility="public"
  78011. deprecated="not deprecated">
  78012. </method>
  78013. <method name="compareTo" return="int"
  78014. abstract="false" native="false" synchronized="false"
  78015. static="false" final="false" visibility="public"
  78016. deprecated="not deprecated">
  78017. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  78018. </method>
  78019. <doc>
  78020. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  78021. {@MachineNode}, or a {@link RackNode}, etc.]]>
  78022. </doc>
  78023. </class>
  78024. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  78025. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  78026. <interface name="Outputter" abstract="true"
  78027. static="false" final="false" visibility="public"
  78028. deprecated="not deprecated">
  78029. <implements name="java.io.Closeable"/>
  78030. <method name="init"
  78031. abstract="false" native="false" synchronized="false"
  78032. static="false" final="false" visibility="public"
  78033. deprecated="not deprecated">
  78034. <param name="path" type="org.apache.hadoop.fs.Path"/>
  78035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  78036. <exception name="IOException" type="java.io.IOException"/>
  78037. <doc>
  78038. <![CDATA[Initialize the {@link Outputter} to a specific path.
  78039. @param path The {@link Path} to the output file.
  78040. @param conf Configuration
  78041. @throws IOException]]>
  78042. </doc>
  78043. </method>
  78044. <method name="output"
  78045. abstract="false" native="false" synchronized="false"
  78046. static="false" final="false" visibility="public"
  78047. deprecated="not deprecated">
  78048. <param name="object" type="java.lang.Object"/>
  78049. <exception name="IOException" type="java.io.IOException"/>
  78050. <doc>
  78051. <![CDATA[Output an object.
  78052. @param object The objecte.
  78053. @throws IOException]]>
  78054. </doc>
  78055. </method>
  78056. <doc>
  78057. <![CDATA[Interface to output a sequence of objects of type T.]]>
  78058. </doc>
  78059. </interface>
  78060. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  78061. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  78062. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  78063. abstract="false"
  78064. static="false" final="false" visibility="public"
  78065. deprecated="not deprecated">
  78066. <constructor name="Pre21JobHistoryConstants"
  78067. static="false" final="false" visibility="public"
  78068. deprecated="not deprecated">
  78069. </constructor>
  78070. </class>
  78071. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  78072. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  78073. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  78074. abstract="false"
  78075. static="true" final="true" visibility="public"
  78076. deprecated="not deprecated">
  78077. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  78078. abstract="false" native="false" synchronized="false"
  78079. static="true" final="false" visibility="public"
  78080. deprecated="not deprecated">
  78081. </method>
  78082. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78083. abstract="false" native="false" synchronized="false"
  78084. static="true" final="false" visibility="public"
  78085. deprecated="not deprecated">
  78086. <param name="name" type="java.lang.String"/>
  78087. </method>
  78088. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78089. transient="false" volatile="false"
  78090. static="true" final="true" visibility="public"
  78091. deprecated="not deprecated">
  78092. </field>
  78093. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78094. transient="false" volatile="false"
  78095. static="true" final="true" visibility="public"
  78096. deprecated="not deprecated">
  78097. </field>
  78098. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78099. transient="false" volatile="false"
  78100. static="true" final="true" visibility="public"
  78101. deprecated="not deprecated">
  78102. </field>
  78103. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78104. transient="false" volatile="false"
  78105. static="true" final="true" visibility="public"
  78106. deprecated="not deprecated">
  78107. </field>
  78108. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78109. transient="false" volatile="false"
  78110. static="true" final="true" visibility="public"
  78111. deprecated="not deprecated">
  78112. </field>
  78113. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78114. transient="false" volatile="false"
  78115. static="true" final="true" visibility="public"
  78116. deprecated="not deprecated">
  78117. </field>
  78118. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78119. transient="false" volatile="false"
  78120. static="true" final="true" visibility="public"
  78121. deprecated="not deprecated">
  78122. </field>
  78123. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78124. transient="false" volatile="false"
  78125. static="true" final="true" visibility="public"
  78126. deprecated="not deprecated">
  78127. </field>
  78128. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78129. transient="false" volatile="false"
  78130. static="true" final="true" visibility="public"
  78131. deprecated="not deprecated">
  78132. </field>
  78133. <doc>
  78134. <![CDATA[This enum contains some of the values commonly used by history log events.
  78135. since values in history can only be strings - Values.name() is used in
  78136. most places in history file.]]>
  78137. </doc>
  78138. </class>
  78139. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  78140. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  78141. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  78142. abstract="false"
  78143. static="false" final="true" visibility="public"
  78144. deprecated="not deprecated">
  78145. <constructor name="RackNode" type="java.lang.String, int"
  78146. static="false" final="false" visibility="public"
  78147. deprecated="not deprecated">
  78148. </constructor>
  78149. <method name="addChild" return="boolean"
  78150. abstract="false" native="false" synchronized="true"
  78151. static="false" final="false" visibility="public"
  78152. deprecated="not deprecated">
  78153. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  78154. </method>
  78155. <method name="getMachinesInRack" return="java.util.Set"
  78156. abstract="false" native="false" synchronized="false"
  78157. static="false" final="false" visibility="public"
  78158. deprecated="not deprecated">
  78159. <doc>
  78160. <![CDATA[Get the machine nodes that belong to the rack.
  78161. @return The machine nodes that belong to the rack.]]>
  78162. </doc>
  78163. </method>
  78164. <doc>
  78165. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  78166. </doc>
  78167. </class>
  78168. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  78169. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  78170. <class name="RandomSeedGenerator" extends="java.lang.Object"
  78171. abstract="false"
  78172. static="false" final="false" visibility="public"
  78173. deprecated="not deprecated">
  78174. <constructor name="RandomSeedGenerator"
  78175. static="false" final="false" visibility="public"
  78176. deprecated="not deprecated">
  78177. </constructor>
  78178. <method name="getSeed" return="long"
  78179. abstract="false" native="false" synchronized="false"
  78180. static="true" final="false" visibility="public"
  78181. deprecated="not deprecated">
  78182. <param name="streamId" type="java.lang.String"/>
  78183. <param name="masterSeed" type="long"/>
  78184. <doc>
  78185. <![CDATA[Generates a new random seed.
  78186. @param streamId a string identifying the stream of random numbers
  78187. @param masterSeed higher level master random seed
  78188. @return the random seed. Different (streamId, masterSeed) pairs result in
  78189. (vastly) different random seeds.]]>
  78190. </doc>
  78191. </method>
  78192. <doc>
  78193. <![CDATA[The purpose of this class is to generate new random seeds from a master
  78194. seed. This is needed to make the Random().next*() calls in rumen and mumak
  78195. deterministic so that mumak simulations become deterministically replayable.
  78196. In these tools we need many independent streams of random numbers, some of
  78197. which are created dynamically. We seed these streams with the sub-seeds
  78198. returned by RandomSeedGenerator.
  78199. For a slightly more complicated approach to generating multiple streams of
  78200. random numbers with better theoretical guarantees, see
  78201. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  78202. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  78203. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  78204. http://www.iro.umontreal.ca/~lecuyer/papers.html
  78205. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  78206. </doc>
  78207. </class>
  78208. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  78209. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  78210. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  78211. abstract="false"
  78212. static="false" final="false" visibility="public"
  78213. deprecated="not deprecated">
  78214. </class>
  78215. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  78216. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  78217. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  78218. abstract="false"
  78219. static="false" final="false" visibility="public"
  78220. deprecated="not deprecated">
  78221. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78222. <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"
  78223. static="false" final="false" visibility="public"
  78224. deprecated="not deprecated">
  78225. <doc>
  78226. <![CDATA[Create an event to record completion of a reduce attempt
  78227. @param id Attempt Id
  78228. @param taskType Type of task
  78229. @param taskStatus Status of the task
  78230. @param shuffleFinishTime Finish time of the shuffle phase
  78231. @param sortFinishTime Finish time of the sort phase
  78232. @param finishTime Finish time of the attempt
  78233. @param hostname Name of the host where the attempt executed
  78234. @param state State of the attempt
  78235. @param counters Counters for the attempt]]>
  78236. </doc>
  78237. </constructor>
  78238. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78239. abstract="false" native="false" synchronized="false"
  78240. static="false" final="false" visibility="public"
  78241. deprecated="not deprecated">
  78242. <doc>
  78243. <![CDATA[Get the Task ID]]>
  78244. </doc>
  78245. </method>
  78246. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78247. abstract="false" native="false" synchronized="false"
  78248. static="false" final="false" visibility="public"
  78249. deprecated="not deprecated">
  78250. <doc>
  78251. <![CDATA[Get the attempt id]]>
  78252. </doc>
  78253. </method>
  78254. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78255. abstract="false" native="false" synchronized="false"
  78256. static="false" final="false" visibility="public"
  78257. deprecated="not deprecated">
  78258. <doc>
  78259. <![CDATA[Get the task type]]>
  78260. </doc>
  78261. </method>
  78262. <method name="getTaskStatus" return="java.lang.String"
  78263. abstract="false" native="false" synchronized="false"
  78264. static="false" final="false" visibility="public"
  78265. deprecated="not deprecated">
  78266. <doc>
  78267. <![CDATA[Get the task status]]>
  78268. </doc>
  78269. </method>
  78270. <method name="getSortFinishTime" return="long"
  78271. abstract="false" native="false" synchronized="false"
  78272. static="false" final="false" visibility="public"
  78273. deprecated="not deprecated">
  78274. <doc>
  78275. <![CDATA[Get the finish time of the sort phase]]>
  78276. </doc>
  78277. </method>
  78278. <method name="getShuffleFinishTime" return="long"
  78279. abstract="false" native="false" synchronized="false"
  78280. static="false" final="false" visibility="public"
  78281. deprecated="not deprecated">
  78282. <doc>
  78283. <![CDATA[Get the finish time of the shuffle phase]]>
  78284. </doc>
  78285. </method>
  78286. <method name="getFinishTime" return="long"
  78287. abstract="false" native="false" synchronized="false"
  78288. static="false" final="false" visibility="public"
  78289. deprecated="not deprecated">
  78290. <doc>
  78291. <![CDATA[Get the finish time of the attempt]]>
  78292. </doc>
  78293. </method>
  78294. <method name="getHostname" return="java.lang.String"
  78295. abstract="false" native="false" synchronized="false"
  78296. static="false" final="false" visibility="public"
  78297. deprecated="not deprecated">
  78298. <doc>
  78299. <![CDATA[Get the name of the host where the attempt ran]]>
  78300. </doc>
  78301. </method>
  78302. <method name="getState" return="java.lang.String"
  78303. abstract="false" native="false" synchronized="false"
  78304. static="false" final="false" visibility="public"
  78305. deprecated="not deprecated">
  78306. <doc>
  78307. <![CDATA[Get the state string]]>
  78308. </doc>
  78309. </method>
  78310. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  78311. abstract="false" native="false" synchronized="false"
  78312. static="false" final="false" visibility="public"
  78313. deprecated="not deprecated">
  78314. <doc>
  78315. <![CDATA[Get the counters for the attempt]]>
  78316. </doc>
  78317. </method>
  78318. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78319. abstract="false" native="false" synchronized="false"
  78320. static="false" final="false" visibility="public"
  78321. deprecated="not deprecated">
  78322. <doc>
  78323. <![CDATA[Get the event type]]>
  78324. </doc>
  78325. </method>
  78326. <doc>
  78327. <![CDATA[Event to record successful completion of a reduce attempt]]>
  78328. </doc>
  78329. </class>
  78330. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  78331. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  78332. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  78333. abstract="false"
  78334. static="false" final="false" visibility="public"
  78335. deprecated="not deprecated">
  78336. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  78337. static="false" final="false" visibility="public"
  78338. deprecated="not deprecated">
  78339. </constructor>
  78340. <method name="getReduceRuntime" return="long"
  78341. abstract="false" native="false" synchronized="false"
  78342. static="false" final="false" visibility="public"
  78343. deprecated="not deprecated">
  78344. <doc>
  78345. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  78346. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  78347. </doc>
  78348. </method>
  78349. <method name="getShuffleRuntime" return="long"
  78350. abstract="false" native="false" synchronized="false"
  78351. static="false" final="false" visibility="public"
  78352. deprecated="not deprecated">
  78353. <doc>
  78354. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  78355. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  78356. </doc>
  78357. </method>
  78358. <method name="getMergeRuntime" return="long"
  78359. abstract="false" native="false" synchronized="false"
  78360. static="false" final="false" visibility="public"
  78361. deprecated="not deprecated">
  78362. <doc>
  78363. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  78364. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  78365. </doc>
  78366. </method>
  78367. <method name="getRuntime" return="long"
  78368. abstract="false" native="false" synchronized="false"
  78369. static="false" final="false" visibility="public"
  78370. deprecated="not deprecated">
  78371. </method>
  78372. <doc>
  78373. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  78374. reduce task attempt.]]>
  78375. </doc>
  78376. </class>
  78377. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  78378. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  78379. <class name="RewindableInputStream" extends="java.io.InputStream"
  78380. abstract="false"
  78381. static="false" final="false" visibility="public"
  78382. deprecated="not deprecated">
  78383. <constructor name="RewindableInputStream" type="java.io.InputStream"
  78384. static="false" final="false" visibility="public"
  78385. deprecated="not deprecated">
  78386. <doc>
  78387. <![CDATA[Constructor.
  78388. @param input]]>
  78389. </doc>
  78390. </constructor>
  78391. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  78392. static="false" final="false" visibility="public"
  78393. deprecated="not deprecated">
  78394. <doc>
  78395. <![CDATA[Constructor
  78396. @param input
  78397. input stream.
  78398. @param maxBytesToRemember
  78399. Maximum number of bytes we need to remember at the beginning of
  78400. the stream. If {@link #rewind()} is called after so many bytes are
  78401. read from the stream, {@link #rewind()} would fail.]]>
  78402. </doc>
  78403. </constructor>
  78404. <method name="read" return="int"
  78405. abstract="false" native="false" synchronized="false"
  78406. static="false" final="false" visibility="public"
  78407. deprecated="not deprecated">
  78408. <exception name="IOException" type="java.io.IOException"/>
  78409. </method>
  78410. <method name="read" return="int"
  78411. abstract="false" native="false" synchronized="false"
  78412. static="false" final="false" visibility="public"
  78413. deprecated="not deprecated">
  78414. <param name="buffer" type="byte[]"/>
  78415. <param name="offset" type="int"/>
  78416. <param name="length" type="int"/>
  78417. <exception name="IOException" type="java.io.IOException"/>
  78418. </method>
  78419. <method name="close"
  78420. abstract="false" native="false" synchronized="false"
  78421. static="false" final="false" visibility="public"
  78422. deprecated="not deprecated">
  78423. <exception name="IOException" type="java.io.IOException"/>
  78424. </method>
  78425. <method name="rewind" return="java.io.InputStream"
  78426. abstract="false" native="false" synchronized="false"
  78427. static="false" final="false" visibility="public"
  78428. deprecated="not deprecated">
  78429. <exception name="IOException" type="java.io.IOException"/>
  78430. </method>
  78431. <doc>
  78432. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  78433. made more memory efficient by grow the internal buffer adaptively.]]>
  78434. </doc>
  78435. </class>
  78436. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  78437. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  78438. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  78439. abstract="false"
  78440. static="false" final="false" visibility="public"
  78441. deprecated="not deprecated">
  78442. <constructor name="Task20LineHistoryEventEmitter"
  78443. static="false" final="false" visibility="protected"
  78444. deprecated="not deprecated">
  78445. </constructor>
  78446. </class>
  78447. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  78448. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  78449. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  78450. abstract="true"
  78451. static="false" final="false" visibility="public"
  78452. deprecated="not deprecated">
  78453. <constructor name="TaskAttempt20LineEventEmitter"
  78454. static="false" final="false" visibility="protected"
  78455. deprecated="not deprecated">
  78456. </constructor>
  78457. </class>
  78458. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  78459. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  78460. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  78461. abstract="false"
  78462. static="false" final="false" visibility="public"
  78463. deprecated="not deprecated">
  78464. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78465. <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"
  78466. static="false" final="false" visibility="public"
  78467. deprecated="not deprecated">
  78468. <doc>
  78469. <![CDATA[Create an event to record successful finishes for setup and cleanup
  78470. attempts
  78471. @param id Attempt ID
  78472. @param taskType Type of task
  78473. @param taskStatus Status of task
  78474. @param finishTime Finish time of attempt
  78475. @param hostname Host where the attempt executed
  78476. @param state State string
  78477. @param counters Counters for the attempt]]>
  78478. </doc>
  78479. </constructor>
  78480. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78481. abstract="false" native="false" synchronized="false"
  78482. static="false" final="false" visibility="public"
  78483. deprecated="not deprecated">
  78484. <doc>
  78485. <![CDATA[Get the task ID]]>
  78486. </doc>
  78487. </method>
  78488. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78489. abstract="false" native="false" synchronized="false"
  78490. static="false" final="false" visibility="public"
  78491. deprecated="not deprecated">
  78492. <doc>
  78493. <![CDATA[Get the task attempt id]]>
  78494. </doc>
  78495. </method>
  78496. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78497. abstract="false" native="false" synchronized="false"
  78498. static="false" final="false" visibility="public"
  78499. deprecated="not deprecated">
  78500. <doc>
  78501. <![CDATA[Get the task type]]>
  78502. </doc>
  78503. </method>
  78504. <method name="getTaskStatus" return="java.lang.String"
  78505. abstract="false" native="false" synchronized="false"
  78506. static="false" final="false" visibility="public"
  78507. deprecated="not deprecated">
  78508. <doc>
  78509. <![CDATA[Get the task status]]>
  78510. </doc>
  78511. </method>
  78512. <method name="getFinishTime" return="long"
  78513. abstract="false" native="false" synchronized="false"
  78514. static="false" final="false" visibility="public"
  78515. deprecated="not deprecated">
  78516. <doc>
  78517. <![CDATA[Get the attempt finish time]]>
  78518. </doc>
  78519. </method>
  78520. <method name="getHostname" return="java.lang.String"
  78521. abstract="false" native="false" synchronized="false"
  78522. static="false" final="false" visibility="public"
  78523. deprecated="not deprecated">
  78524. <doc>
  78525. <![CDATA[Get the host where the attempt executed]]>
  78526. </doc>
  78527. </method>
  78528. <method name="getState" return="java.lang.String"
  78529. abstract="false" native="false" synchronized="false"
  78530. static="false" final="false" visibility="public"
  78531. deprecated="not deprecated">
  78532. <doc>
  78533. <![CDATA[Get the state string]]>
  78534. </doc>
  78535. </method>
  78536. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  78537. abstract="false" native="false" synchronized="false"
  78538. static="false" final="false" visibility="public"
  78539. deprecated="not deprecated">
  78540. <doc>
  78541. <![CDATA[Get the counters for the attempt]]>
  78542. </doc>
  78543. </method>
  78544. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78545. abstract="false" native="false" synchronized="false"
  78546. static="false" final="false" visibility="public"
  78547. deprecated="not deprecated">
  78548. <doc>
  78549. <![CDATA[Get the event type]]>
  78550. </doc>
  78551. </method>
  78552. <doc>
  78553. <![CDATA[Event to record successful task completion]]>
  78554. </doc>
  78555. </class>
  78556. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  78557. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  78558. <class name="TaskAttemptInfo" extends="java.lang.Object"
  78559. abstract="true"
  78560. static="false" final="false" visibility="public"
  78561. deprecated="not deprecated">
  78562. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  78563. static="false" final="false" visibility="protected"
  78564. deprecated="not deprecated">
  78565. </constructor>
  78566. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  78567. abstract="false" native="false" synchronized="false"
  78568. static="false" final="false" visibility="public"
  78569. deprecated="not deprecated">
  78570. <doc>
  78571. <![CDATA[Get the final {@link TaskStatus.State} of the task-attempt.
  78572. @return the final <code>State</code> of the task-attempt]]>
  78573. </doc>
  78574. </method>
  78575. <method name="getRuntime" return="long"
  78576. abstract="true" native="false" synchronized="false"
  78577. static="false" final="false" visibility="public"
  78578. deprecated="not deprecated">
  78579. <doc>
  78580. <![CDATA[Get the total runtime for the task-attempt.
  78581. @return the total runtime for the task-attempt]]>
  78582. </doc>
  78583. </method>
  78584. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  78585. abstract="false" native="false" synchronized="false"
  78586. static="false" final="false" visibility="public"
  78587. deprecated="not deprecated">
  78588. <doc>
  78589. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  78590. @return the <code>TaskInfo</code> for the given task-attempt]]>
  78591. </doc>
  78592. </method>
  78593. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  78594. transient="false" volatile="false"
  78595. static="false" final="true" visibility="protected"
  78596. deprecated="not deprecated">
  78597. </field>
  78598. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  78599. transient="false" volatile="false"
  78600. static="false" final="true" visibility="protected"
  78601. deprecated="not deprecated">
  78602. </field>
  78603. <doc>
  78604. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  78605. task-attempt gleaned from job-history of the job.]]>
  78606. </doc>
  78607. </class>
  78608. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  78609. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  78610. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  78611. abstract="false"
  78612. static="false" final="false" visibility="public"
  78613. deprecated="not deprecated">
  78614. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78615. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int"
  78616. static="false" final="false" visibility="public"
  78617. deprecated="not deprecated">
  78618. <doc>
  78619. <![CDATA[Create an event to record the start of an attempt
  78620. @param attemptId Id of the attempt
  78621. @param taskType Type of task
  78622. @param startTime Start time of the attempt
  78623. @param trackerName Name of the Task Tracker where attempt is running
  78624. @param httpPort The port number of the tracker]]>
  78625. </doc>
  78626. </constructor>
  78627. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78628. abstract="false" native="false" synchronized="false"
  78629. static="false" final="false" visibility="public"
  78630. deprecated="not deprecated">
  78631. <doc>
  78632. <![CDATA[Get the task id]]>
  78633. </doc>
  78634. </method>
  78635. <method name="getTrackerName" return="java.lang.String"
  78636. abstract="false" native="false" synchronized="false"
  78637. static="false" final="false" visibility="public"
  78638. deprecated="not deprecated">
  78639. <doc>
  78640. <![CDATA[Get the tracker name]]>
  78641. </doc>
  78642. </method>
  78643. <method name="getStartTime" return="long"
  78644. abstract="false" native="false" synchronized="false"
  78645. static="false" final="false" visibility="public"
  78646. deprecated="not deprecated">
  78647. <doc>
  78648. <![CDATA[Get the start time]]>
  78649. </doc>
  78650. </method>
  78651. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78652. abstract="false" native="false" synchronized="false"
  78653. static="false" final="false" visibility="public"
  78654. deprecated="not deprecated">
  78655. <doc>
  78656. <![CDATA[Get the task type]]>
  78657. </doc>
  78658. </method>
  78659. <method name="getHttpPort" return="int"
  78660. abstract="false" native="false" synchronized="false"
  78661. static="false" final="false" visibility="public"
  78662. deprecated="not deprecated">
  78663. <doc>
  78664. <![CDATA[Get the HTTP port]]>
  78665. </doc>
  78666. </method>
  78667. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78668. abstract="false" native="false" synchronized="false"
  78669. static="false" final="false" visibility="public"
  78670. deprecated="not deprecated">
  78671. <doc>
  78672. <![CDATA[Get the attempt id]]>
  78673. </doc>
  78674. </method>
  78675. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78676. abstract="false" native="false" synchronized="false"
  78677. static="false" final="false" visibility="public"
  78678. deprecated="not deprecated">
  78679. <doc>
  78680. <![CDATA[Get the event type]]>
  78681. </doc>
  78682. </method>
  78683. <doc>
  78684. <![CDATA[Event to record start of a task attempt]]>
  78685. </doc>
  78686. </class>
  78687. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  78688. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  78689. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  78690. abstract="false"
  78691. static="false" final="false" visibility="public"
  78692. deprecated="not deprecated">
  78693. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78694. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  78695. static="false" final="false" visibility="public"
  78696. deprecated="not deprecated">
  78697. <doc>
  78698. <![CDATA[Create an event to record the unsuccessful completion of attempts
  78699. @param id Attempt ID
  78700. @param taskType Type of the task
  78701. @param status Status of the attempt
  78702. @param finishTime Finish time of the attempt
  78703. @param hostname Name of the host where the attempt executed
  78704. @param error Error string]]>
  78705. </doc>
  78706. </constructor>
  78707. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78708. abstract="false" native="false" synchronized="false"
  78709. static="false" final="false" visibility="public"
  78710. deprecated="not deprecated">
  78711. <doc>
  78712. <![CDATA[Get the task id]]>
  78713. </doc>
  78714. </method>
  78715. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78716. abstract="false" native="false" synchronized="false"
  78717. static="false" final="false" visibility="public"
  78718. deprecated="not deprecated">
  78719. <doc>
  78720. <![CDATA[Get the task type]]>
  78721. </doc>
  78722. </method>
  78723. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78724. abstract="false" native="false" synchronized="false"
  78725. static="false" final="false" visibility="public"
  78726. deprecated="not deprecated">
  78727. <doc>
  78728. <![CDATA[Get the attempt id]]>
  78729. </doc>
  78730. </method>
  78731. <method name="getFinishTime" return="long"
  78732. abstract="false" native="false" synchronized="false"
  78733. static="false" final="false" visibility="public"
  78734. deprecated="not deprecated">
  78735. <doc>
  78736. <![CDATA[Get the finish time]]>
  78737. </doc>
  78738. </method>
  78739. <method name="getHostname" return="java.lang.String"
  78740. abstract="false" native="false" synchronized="false"
  78741. static="false" final="false" visibility="public"
  78742. deprecated="not deprecated">
  78743. <doc>
  78744. <![CDATA[Get the name of the host where the attempt executed]]>
  78745. </doc>
  78746. </method>
  78747. <method name="getError" return="java.lang.String"
  78748. abstract="false" native="false" synchronized="false"
  78749. static="false" final="false" visibility="public"
  78750. deprecated="not deprecated">
  78751. <doc>
  78752. <![CDATA[Get the error string]]>
  78753. </doc>
  78754. </method>
  78755. <method name="getTaskStatus" return="java.lang.String"
  78756. abstract="false" native="false" synchronized="false"
  78757. static="false" final="false" visibility="public"
  78758. deprecated="not deprecated">
  78759. <doc>
  78760. <![CDATA[Get the task status]]>
  78761. </doc>
  78762. </method>
  78763. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78764. abstract="false" native="false" synchronized="false"
  78765. static="false" final="false" visibility="public"
  78766. deprecated="not deprecated">
  78767. <doc>
  78768. <![CDATA[Get the event type]]>
  78769. </doc>
  78770. </method>
  78771. <doc>
  78772. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  78773. </doc>
  78774. </class>
  78775. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  78776. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  78777. <class name="TaskFailedEvent" extends="java.lang.Object"
  78778. abstract="false"
  78779. static="false" final="false" visibility="public"
  78780. deprecated="not deprecated">
  78781. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78782. <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"
  78783. static="false" final="false" visibility="public"
  78784. deprecated="not deprecated">
  78785. <doc>
  78786. <![CDATA[Create an event to record task failure
  78787. @param id Task ID
  78788. @param finishTime Finish time of the task
  78789. @param taskType Type of the task
  78790. @param error Error String
  78791. @param status Status
  78792. @param failedDueToAttempt The attempt id due to which the task failed]]>
  78793. </doc>
  78794. </constructor>
  78795. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78796. abstract="false" native="false" synchronized="false"
  78797. static="false" final="false" visibility="public"
  78798. deprecated="not deprecated">
  78799. <doc>
  78800. <![CDATA[Get the task id]]>
  78801. </doc>
  78802. </method>
  78803. <method name="getError" return="java.lang.String"
  78804. abstract="false" native="false" synchronized="false"
  78805. static="false" final="false" visibility="public"
  78806. deprecated="not deprecated">
  78807. <doc>
  78808. <![CDATA[Get the error string]]>
  78809. </doc>
  78810. </method>
  78811. <method name="getFinishTime" return="long"
  78812. abstract="false" native="false" synchronized="false"
  78813. static="false" final="false" visibility="public"
  78814. deprecated="not deprecated">
  78815. <doc>
  78816. <![CDATA[Get the finish time of the attempt]]>
  78817. </doc>
  78818. </method>
  78819. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78820. abstract="false" native="false" synchronized="false"
  78821. static="false" final="false" visibility="public"
  78822. deprecated="not deprecated">
  78823. <doc>
  78824. <![CDATA[Get the task type]]>
  78825. </doc>
  78826. </method>
  78827. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  78828. abstract="false" native="false" synchronized="false"
  78829. static="false" final="false" visibility="public"
  78830. deprecated="not deprecated">
  78831. <doc>
  78832. <![CDATA[Get the attempt id due to which the task failed]]>
  78833. </doc>
  78834. </method>
  78835. <method name="getTaskStatus" return="java.lang.String"
  78836. abstract="false" native="false" synchronized="false"
  78837. static="false" final="false" visibility="public"
  78838. deprecated="not deprecated">
  78839. <doc>
  78840. <![CDATA[Get the task status]]>
  78841. </doc>
  78842. </method>
  78843. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78844. abstract="false" native="false" synchronized="false"
  78845. static="false" final="false" visibility="public"
  78846. deprecated="not deprecated">
  78847. <doc>
  78848. <![CDATA[Get the event type]]>
  78849. </doc>
  78850. </method>
  78851. <doc>
  78852. <![CDATA[Event to record the failure of a task]]>
  78853. </doc>
  78854. </class>
  78855. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  78856. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  78857. <class name="TaskFinishedEvent" extends="java.lang.Object"
  78858. abstract="false"
  78859. static="false" final="false" visibility="public"
  78860. deprecated="not deprecated">
  78861. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78862. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  78863. static="false" final="false" visibility="public"
  78864. deprecated="not deprecated">
  78865. <doc>
  78866. <![CDATA[Create an event to record the successful completion of a task
  78867. @param id Task ID
  78868. @param finishTime Finish time of the task
  78869. @param taskType Type of the task
  78870. @param status Status string
  78871. @param counters Counters for the task]]>
  78872. </doc>
  78873. </constructor>
  78874. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78875. abstract="false" native="false" synchronized="false"
  78876. static="false" final="false" visibility="public"
  78877. deprecated="not deprecated">
  78878. <doc>
  78879. <![CDATA[Get task id]]>
  78880. </doc>
  78881. </method>
  78882. <method name="getFinishTime" return="long"
  78883. abstract="false" native="false" synchronized="false"
  78884. static="false" final="false" visibility="public"
  78885. deprecated="not deprecated">
  78886. <doc>
  78887. <![CDATA[Get the task finish time]]>
  78888. </doc>
  78889. </method>
  78890. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  78891. abstract="false" native="false" synchronized="false"
  78892. static="false" final="false" visibility="public"
  78893. deprecated="not deprecated">
  78894. <doc>
  78895. <![CDATA[Get task counters]]>
  78896. </doc>
  78897. </method>
  78898. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  78899. abstract="false" native="false" synchronized="false"
  78900. static="false" final="false" visibility="public"
  78901. deprecated="not deprecated">
  78902. <doc>
  78903. <![CDATA[Get task type]]>
  78904. </doc>
  78905. </method>
  78906. <method name="getTaskStatus" return="java.lang.String"
  78907. abstract="false" native="false" synchronized="false"
  78908. static="false" final="false" visibility="public"
  78909. deprecated="not deprecated">
  78910. <doc>
  78911. <![CDATA[Get task status]]>
  78912. </doc>
  78913. </method>
  78914. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78915. abstract="false" native="false" synchronized="false"
  78916. static="false" final="false" visibility="public"
  78917. deprecated="not deprecated">
  78918. <doc>
  78919. <![CDATA[Get event type]]>
  78920. </doc>
  78921. </method>
  78922. <doc>
  78923. <![CDATA[Event to record the successful completion of a task]]>
  78924. </doc>
  78925. </class>
  78926. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  78927. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  78928. <class name="TaskInfo" extends="java.lang.Object"
  78929. abstract="false"
  78930. static="false" final="false" visibility="public"
  78931. deprecated="not deprecated">
  78932. <constructor name="TaskInfo" type="long, int, long, int, long"
  78933. static="false" final="false" visibility="public"
  78934. deprecated="not deprecated">
  78935. </constructor>
  78936. <method name="getInputBytes" return="long"
  78937. abstract="false" native="false" synchronized="false"
  78938. static="false" final="false" visibility="public"
  78939. deprecated="not deprecated">
  78940. <doc>
  78941. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  78942. may not always match the input bytes to the task.]]>
  78943. </doc>
  78944. </method>
  78945. <method name="getInputRecords" return="int"
  78946. abstract="false" native="false" synchronized="false"
  78947. static="false" final="false" visibility="public"
  78948. deprecated="not deprecated">
  78949. <doc>
  78950. <![CDATA[@return Number of records input to this task.]]>
  78951. </doc>
  78952. </method>
  78953. <method name="getOutputBytes" return="long"
  78954. abstract="false" native="false" synchronized="false"
  78955. static="false" final="false" visibility="public"
  78956. deprecated="not deprecated">
  78957. <doc>
  78958. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  78959. not match output bytes.]]>
  78960. </doc>
  78961. </method>
  78962. <method name="getOutputRecords" return="int"
  78963. abstract="false" native="false" synchronized="false"
  78964. static="false" final="false" visibility="public"
  78965. deprecated="not deprecated">
  78966. <doc>
  78967. <![CDATA[@return Number of records output from this task.]]>
  78968. </doc>
  78969. </method>
  78970. <method name="getTaskMemory" return="long"
  78971. abstract="false" native="false" synchronized="false"
  78972. static="false" final="false" visibility="public"
  78973. deprecated="not deprecated">
  78974. <doc>
  78975. <![CDATA[@return Memory used by the task leq the heap size.]]>
  78976. </doc>
  78977. </method>
  78978. </class>
  78979. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  78980. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  78981. <class name="TaskStartedEvent" extends="java.lang.Object"
  78982. abstract="false"
  78983. static="false" final="false" visibility="public"
  78984. deprecated="not deprecated">
  78985. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78986. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  78987. static="false" final="false" visibility="public"
  78988. deprecated="not deprecated">
  78989. <doc>
  78990. <![CDATA[Create an event to record start of a task
  78991. @param id Task Id
  78992. @param startTime Start time of the task
  78993. @param taskType Type of the task
  78994. @param splitLocations Split locations, applicable for map tasks]]>
  78995. </doc>
  78996. </constructor>
  78997. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  78998. abstract="false" native="false" synchronized="false"
  78999. static="false" final="false" visibility="public"
  79000. deprecated="not deprecated">
  79001. <doc>
  79002. <![CDATA[Get the task id]]>
  79003. </doc>
  79004. </method>
  79005. <method name="getSplitLocations" return="java.lang.String"
  79006. abstract="false" native="false" synchronized="false"
  79007. static="false" final="false" visibility="public"
  79008. deprecated="not deprecated">
  79009. <doc>
  79010. <![CDATA[Get the split locations, applicable for map tasks]]>
  79011. </doc>
  79012. </method>
  79013. <method name="getStartTime" return="long"
  79014. abstract="false" native="false" synchronized="false"
  79015. static="false" final="false" visibility="public"
  79016. deprecated="not deprecated">
  79017. <doc>
  79018. <![CDATA[Get the start time of the task]]>
  79019. </doc>
  79020. </method>
  79021. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  79022. abstract="false" native="false" synchronized="false"
  79023. static="false" final="false" visibility="public"
  79024. deprecated="not deprecated">
  79025. <doc>
  79026. <![CDATA[Get the task type]]>
  79027. </doc>
  79028. </method>
  79029. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79030. abstract="false" native="false" synchronized="false"
  79031. static="false" final="false" visibility="public"
  79032. deprecated="not deprecated">
  79033. <doc>
  79034. <![CDATA[Get the event type]]>
  79035. </doc>
  79036. </method>
  79037. <doc>
  79038. <![CDATA[Event to record the start of a task]]>
  79039. </doc>
  79040. </class>
  79041. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  79042. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  79043. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  79044. abstract="false"
  79045. static="false" final="false" visibility="public"
  79046. deprecated="not deprecated">
  79047. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79048. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  79049. static="false" final="false" visibility="public"
  79050. deprecated="not deprecated">
  79051. <doc>
  79052. <![CDATA[Create an event to record task updates
  79053. @param id Id of the task
  79054. @param finishTime Finish time of the task]]>
  79055. </doc>
  79056. </constructor>
  79057. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  79058. abstract="false" native="false" synchronized="false"
  79059. static="false" final="false" visibility="public"
  79060. deprecated="not deprecated">
  79061. <doc>
  79062. <![CDATA[Get the task ID]]>
  79063. </doc>
  79064. </method>
  79065. <method name="getFinishTime" return="long"
  79066. abstract="false" native="false" synchronized="false"
  79067. static="false" final="false" visibility="public"
  79068. deprecated="not deprecated">
  79069. <doc>
  79070. <![CDATA[Get the task finish time]]>
  79071. </doc>
  79072. </method>
  79073. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79074. abstract="false" native="false" synchronized="false"
  79075. static="false" final="false" visibility="public"
  79076. deprecated="not deprecated">
  79077. <doc>
  79078. <![CDATA[Get the event type]]>
  79079. </doc>
  79080. </method>
  79081. <doc>
  79082. <![CDATA[Event to record updates to a task]]>
  79083. </doc>
  79084. </class>
  79085. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  79086. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  79087. <class name="TopologyBuilder" extends="java.lang.Object"
  79088. abstract="false"
  79089. static="false" final="false" visibility="public"
  79090. deprecated="not deprecated">
  79091. <constructor name="TopologyBuilder"
  79092. static="false" final="false" visibility="public"
  79093. deprecated="not deprecated">
  79094. </constructor>
  79095. <method name="process"
  79096. abstract="false" native="false" synchronized="false"
  79097. static="false" final="false" visibility="public"
  79098. deprecated="not deprecated">
  79099. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79100. <doc>
  79101. <![CDATA[Process one {@link HistoryEvent}
  79102. @param event
  79103. The {@link HistoryEvent} to be processed.]]>
  79104. </doc>
  79105. </method>
  79106. <method name="process"
  79107. abstract="false" native="false" synchronized="false"
  79108. static="false" final="false" visibility="public"
  79109. deprecated="not deprecated">
  79110. <param name="conf" type="java.util.Properties"/>
  79111. <doc>
  79112. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  79113. to be called once.
  79114. @param conf
  79115. The job conf properties to be added.]]>
  79116. </doc>
  79117. </method>
  79118. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  79119. abstract="false" native="false" synchronized="false"
  79120. static="false" final="false" visibility="public"
  79121. deprecated="not deprecated">
  79122. <doc>
  79123. <![CDATA[Request the builder to build the final object. Once called, the
  79124. {@link TopologyBuilder} would accept no more events or job-conf properties.
  79125. @return Parsed {@link LoggedNetworkTopology} object.]]>
  79126. </doc>
  79127. </method>
  79128. <doc>
  79129. <![CDATA[Building the cluster topology.]]>
  79130. </doc>
  79131. </class>
  79132. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  79133. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  79134. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  79135. abstract="false"
  79136. static="false" final="false" visibility="public"
  79137. deprecated="not deprecated">
  79138. <implements name="org.apache.hadoop.util.Tool"/>
  79139. <constructor name="TraceBuilder"
  79140. static="false" final="false" visibility="public"
  79141. deprecated="not deprecated">
  79142. </constructor>
  79143. <method name="main"
  79144. abstract="false" native="false" synchronized="false"
  79145. static="true" final="false" visibility="public"
  79146. deprecated="not deprecated">
  79147. <param name="args" type="java.lang.String[]"/>
  79148. </method>
  79149. <method name="run" return="int"
  79150. abstract="false" native="false" synchronized="false"
  79151. static="false" final="false" visibility="public"
  79152. deprecated="not deprecated">
  79153. <param name="args" type="java.lang.String[]"/>
  79154. <exception name="Exception" type="java.lang.Exception"/>
  79155. </method>
  79156. <doc>
  79157. <![CDATA[The main driver of the Rumen Parser.]]>
  79158. </doc>
  79159. </class>
  79160. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  79161. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  79162. <class name="TreePath" extends="java.lang.Object"
  79163. abstract="false"
  79164. static="false" final="false" visibility="public"
  79165. deprecated="not deprecated">
  79166. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  79167. static="false" final="false" visibility="public"
  79168. deprecated="not deprecated">
  79169. </constructor>
  79170. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  79171. static="false" final="false" visibility="public"
  79172. deprecated="not deprecated">
  79173. </constructor>
  79174. <method name="toString" return="java.lang.String"
  79175. abstract="false" native="false" synchronized="false"
  79176. static="false" final="false" visibility="public"
  79177. deprecated="not deprecated">
  79178. </method>
  79179. <doc>
  79180. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  79181. trees during rumen unit tests. If the trees are not identical, this chain
  79182. will be converted to a string which describes the path from the root to the
  79183. fields that did not compare.]]>
  79184. </doc>
  79185. </class>
  79186. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  79187. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  79188. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  79189. abstract="false"
  79190. static="false" final="false" visibility="public"
  79191. deprecated="not deprecated">
  79192. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  79193. static="false" final="false" visibility="public"
  79194. deprecated="not deprecated">
  79195. <doc>
  79196. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  79197. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  79198. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  79199. @param topology
  79200. The network topology.
  79201. @param defaultNode
  79202. The default node setting.]]>
  79203. </doc>
  79204. </constructor>
  79205. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  79206. static="false" final="false" visibility="public"
  79207. deprecated="not deprecated">
  79208. <exception name="IOException" type="java.io.IOException"/>
  79209. <doc>
  79210. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  79211. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  79212. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  79213. @param path Path to the JSON-encoded topology file.
  79214. @param conf
  79215. @param defaultNode
  79216. The default node setting.
  79217. @throws IOException]]>
  79218. </doc>
  79219. </constructor>
  79220. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  79221. static="false" final="false" visibility="public"
  79222. deprecated="not deprecated">
  79223. <exception name="IOException" type="java.io.IOException"/>
  79224. <doc>
  79225. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  79226. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  79227. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  79228. @param input The input stream for the JSON-encoded topology file.
  79229. @param defaultNode
  79230. The default node setting.
  79231. @throws IOException]]>
  79232. </doc>
  79233. </constructor>
  79234. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  79235. abstract="false" native="false" synchronized="false"
  79236. static="false" final="false" visibility="public"
  79237. deprecated="not deprecated">
  79238. </method>
  79239. <doc>
  79240. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  79241. obtained from job history logs.]]>
  79242. </doc>
  79243. </class>
  79244. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  79245. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  79246. <class name="ZombieJob" extends="java.lang.Object"
  79247. abstract="false"
  79248. static="false" final="false" visibility="public"
  79249. deprecated="not deprecated">
  79250. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  79251. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  79252. static="false" final="false" visibility="public"
  79253. deprecated="not deprecated">
  79254. <doc>
  79255. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  79256. {@link LoggedJob} passed in this parameter
  79257. @param job
  79258. The dead job this ZombieJob instance is based on.
  79259. @param cluster
  79260. The cluster topology where the dead job ran on. This argument can
  79261. be null if we do not have knowledge of the cluster topology.
  79262. @param seed
  79263. Seed for the random number generator for filling in information
  79264. not available from the ZombieJob.]]>
  79265. </doc>
  79266. </constructor>
  79267. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  79268. static="false" final="false" visibility="public"
  79269. deprecated="not deprecated">
  79270. <doc>
  79271. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  79272. {@link LoggedJob} passed in this parameter
  79273. @param job
  79274. The dead job this ZombieJob instance is based on.
  79275. @param cluster
  79276. The cluster topology where the dead job ran on. This argument can
  79277. be null if we do not have knowledge of the cluster topology.]]>
  79278. </doc>
  79279. </constructor>
  79280. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  79281. abstract="false" native="false" synchronized="true"
  79282. static="false" final="false" visibility="public"
  79283. deprecated="not deprecated">
  79284. </method>
  79285. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  79286. abstract="false" native="false" synchronized="false"
  79287. static="false" final="false" visibility="public"
  79288. deprecated="not deprecated">
  79289. </method>
  79290. <method name="getName" return="java.lang.String"
  79291. abstract="false" native="false" synchronized="false"
  79292. static="false" final="false" visibility="public"
  79293. deprecated="not deprecated">
  79294. </method>
  79295. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  79296. abstract="false" native="false" synchronized="false"
  79297. static="false" final="false" visibility="public"
  79298. deprecated="not deprecated">
  79299. </method>
  79300. <method name="getNumberMaps" return="int"
  79301. abstract="false" native="false" synchronized="false"
  79302. static="false" final="false" visibility="public"
  79303. deprecated="not deprecated">
  79304. </method>
  79305. <method name="getNumberReduces" return="int"
  79306. abstract="false" native="false" synchronized="false"
  79307. static="false" final="false" visibility="public"
  79308. deprecated="not deprecated">
  79309. </method>
  79310. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79311. abstract="false" native="false" synchronized="false"
  79312. static="false" final="false" visibility="public"
  79313. deprecated="not deprecated">
  79314. </method>
  79315. <method name="getSubmissionTime" return="long"
  79316. abstract="false" native="false" synchronized="false"
  79317. static="false" final="false" visibility="public"
  79318. deprecated="not deprecated">
  79319. </method>
  79320. <method name="getQueueName" return="java.lang.String"
  79321. abstract="false" native="false" synchronized="false"
  79322. static="false" final="false" visibility="public"
  79323. deprecated="not deprecated">
  79324. </method>
  79325. <method name="getNumLoggedMaps" return="int"
  79326. abstract="false" native="false" synchronized="false"
  79327. static="false" final="false" visibility="public"
  79328. deprecated="not deprecated">
  79329. <doc>
  79330. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  79331. @return The number of map tasks that are actually logged in the trace.]]>
  79332. </doc>
  79333. </method>
  79334. <method name="getNumLoggedReduces" return="int"
  79335. abstract="false" native="false" synchronized="false"
  79336. static="false" final="false" visibility="public"
  79337. deprecated="not deprecated">
  79338. <doc>
  79339. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  79340. @return The number of map tasks that are actually logged in the trace.]]>
  79341. </doc>
  79342. </method>
  79343. <method name="getUser" return="java.lang.String"
  79344. abstract="false" native="false" synchronized="false"
  79345. static="false" final="false" visibility="public"
  79346. deprecated="not deprecated">
  79347. </method>
  79348. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  79349. abstract="false" native="false" synchronized="false"
  79350. static="false" final="false" visibility="public"
  79351. deprecated="not deprecated">
  79352. <doc>
  79353. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  79354. This is mainly for debugging.
  79355. @return the underlining {@link LoggedJob} object]]>
  79356. </doc>
  79357. </method>
  79358. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  79359. abstract="false" native="false" synchronized="false"
  79360. static="false" final="false" visibility="public"
  79361. deprecated="not deprecated">
  79362. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  79363. <param name="taskNumber" type="int"/>
  79364. <param name="taskAttemptNumber" type="int"/>
  79365. <doc>
  79366. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  79367. taskType, taskNumber, and taskAttemptNumber. This function does not care
  79368. about locality, and follows the following decision logic: 1. Make up a
  79369. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  79370. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  79371. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  79372. {@link TaskAttemptInfo} from the trace.]]>
  79373. </doc>
  79374. </method>
  79375. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  79376. abstract="false" native="false" synchronized="false"
  79377. static="false" final="false" visibility="public"
  79378. deprecated="not deprecated">
  79379. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  79380. <param name="taskNumber" type="int"/>
  79381. </method>
  79382. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  79383. abstract="false" native="false" synchronized="false"
  79384. static="false" final="false" visibility="public"
  79385. deprecated="not deprecated">
  79386. <param name="taskNumber" type="int"/>
  79387. <param name="taskAttemptNumber" type="int"/>
  79388. <param name="locality" type="int"/>
  79389. <doc>
  79390. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  79391. taskType, taskNumber, and taskAttemptNumber. This function considers
  79392. locality, and follows the following decision logic: 1. Make up a
  79393. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  79394. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  79395. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  79396. from the trace, without considering locality. 4. If final state is
  79397. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  79398. scaled according to locality in simulation and locality in trace.]]>
  79399. </doc>
  79400. </method>
  79401. <doc>
  79402. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  79403. Each {@link ZombieJob} object represents a job in job history. For everything
  79404. that exists in job history, contents are returned unchanged faithfully. To
  79405. get input splits of a non-exist task, a non-exist task attempt, or an
  79406. ill-formed task attempt, proper objects are made up from statistical
  79407. sketches.]]>
  79408. </doc>
  79409. </class>
  79410. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  79411. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  79412. <class name="ZombieJobProducer" extends="java.lang.Object"
  79413. abstract="false"
  79414. static="false" final="false" visibility="public"
  79415. deprecated="not deprecated">
  79416. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  79417. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  79418. static="false" final="false" visibility="public"
  79419. deprecated="not deprecated">
  79420. <exception name="IOException" type="java.io.IOException"/>
  79421. <doc>
  79422. <![CDATA[Constructor
  79423. @param path
  79424. Path to the JSON trace file, possibly compressed.
  79425. @param cluster
  79426. The topology of the cluster that corresponds to the jobs in the
  79427. trace. The argument can be null if we do not have knowledge of the
  79428. cluster topology.
  79429. @param conf
  79430. @throws IOException]]>
  79431. </doc>
  79432. </constructor>
  79433. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  79434. static="false" final="false" visibility="public"
  79435. deprecated="not deprecated">
  79436. <exception name="IOException" type="java.io.IOException"/>
  79437. <doc>
  79438. <![CDATA[Constructor
  79439. @param path
  79440. Path to the JSON trace file, possibly compressed.
  79441. @param cluster
  79442. The topology of the cluster that corresponds to the jobs in the
  79443. trace. The argument can be null if we do not have knowledge of the
  79444. cluster topology.
  79445. @param conf
  79446. @param randomSeed
  79447. use a deterministic seed.
  79448. @throws IOException]]>
  79449. </doc>
  79450. </constructor>
  79451. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  79452. static="false" final="false" visibility="public"
  79453. deprecated="not deprecated">
  79454. <exception name="IOException" type="java.io.IOException"/>
  79455. <doc>
  79456. <![CDATA[Constructor
  79457. @param input
  79458. The input stream for the JSON trace.
  79459. @param cluster
  79460. The topology of the cluster that corresponds to the jobs in the
  79461. trace. The argument can be null if we do not have knowledge of the
  79462. cluster topology.
  79463. @throws IOException]]>
  79464. </doc>
  79465. </constructor>
  79466. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  79467. static="false" final="false" visibility="public"
  79468. deprecated="not deprecated">
  79469. <exception name="IOException" type="java.io.IOException"/>
  79470. <doc>
  79471. <![CDATA[Constructor
  79472. @param input
  79473. The input stream for the JSON trace.
  79474. @param cluster
  79475. The topology of the cluster that corresponds to the jobs in the
  79476. trace. The argument can be null if we do not have knowledge of the
  79477. cluster topology.
  79478. @param randomSeed
  79479. use a deterministic seed.
  79480. @throws IOException]]>
  79481. </doc>
  79482. </constructor>
  79483. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  79484. abstract="false" native="false" synchronized="false"
  79485. static="false" final="false" visibility="public"
  79486. deprecated="not deprecated">
  79487. <exception name="IOException" type="java.io.IOException"/>
  79488. </method>
  79489. <method name="close"
  79490. abstract="false" native="false" synchronized="false"
  79491. static="false" final="false" visibility="public"
  79492. deprecated="not deprecated">
  79493. <exception name="IOException" type="java.io.IOException"/>
  79494. </method>
  79495. <doc>
  79496. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  79497. </doc>
  79498. </class>
  79499. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  79500. </package>
  79501. </api>